Overriding

For some reason I thought this would work:
const Block = styled.div`
  background-color: blue;
  color: white;
`;

// Override Block and give it a red background, using all other styles (i.e. just adding another class that overrides the background-color
const EmergencyBlock = styled(Block)`
  background-color: red;
`;

Can we make this work? That would be a great overriding mechanism.

This works.

@mxstbr What about :
function Block(props){
 return

}

import Block from '@components'
const styledBlock = styled(Block)`
 background: steelblue;
`

it doesn't work, shouldn't it be working? 😕

You need to attach the class:
function Block(props){
 return

}

styled-components injects a class with the given styling. If you don't attach it to a DOM node, you're not attaching it a DOM node, so it can't be in the DOM!

Thanks. It's in the docs too.

would it be possible pass the desired className to the styled function ?
i.e.
const MyComponent = () =>
 ...

module.exports = styled(component, {className: 'my-component'})`
    ...
`

I don't like that my component has to behave (attach the custom className) as styled wants it to. I think the component should be agnostic.

That would make it easy to (automatically) show human-readable classNames in dev mode. It would make chrome inspector more approachable, with classNames extracted from the component names.

You can pass a class to a styled component and it will work perfectly fine @davibe:
const MyComp = styled.div`
  some: styles;
`

// ...

<MyComp className="my-global-class" />

@haikyuu see #227 and https://github.com/styled-components/babel-transform-styled-components, that will soon be a thing!

@mxstbr i know i can pass it a className but that means that the parent component needs to take care of it, which is not what i want either

Then do this:
// MyComp.js
const MyComp = styled.div`
  some: styles;
`

export default => (props) => <MyComp {...props} className="my-global-class" />;

Now in your parent component you can just use MyComp without having to worry about the class:
// ParentComp.js
import MyComp from './MyComp.js'

<MyComp />

right.

@mxstbr just to be clear. If i do it like that the rendered component will have BOTH the class i specified and the one generated by styled, right ?

I have also discovered that if i pass my custom className i can't extend the new component with styled() anymore, otherwise i get wrong results.. See the Note: in main.js here http://www.webpackbin.com/V1HzUEezf

@davibe it's working as intended. Here is the non breaking code:
const ButtonWithClass = (props) => <Button {...props} className={props.className+" button"}  />

http://www.webpackbin.com/4y64Cy-zz

I have the same concern as @davibe. I'm importing a third-party component such as:
import { AppBar } from 'material-ui';
and then I would like to override its default styling:
const OverrideAppBar = styled(AppBar)`
  border: 1px solid red;
  background-color: red;
`;

However, these override rules aren't working.
How can I achieve the override without editing code from the imported library, i.e. node_modules/material-ui?

How can I achieve the override without editing code from the imported library

You tell the material-ui people to attach the className to their components. I have no idea why they don't do that, but that means they also don't support <AppBar className="custom-styling" />, which is pretty ridiculous.

@mxstbr @davecyen I'm not sure how material-ui applies their styles, but if they inline them, they would override the ones from styled-components, would it not? Have you inspected the DOM in chrome dev tools for example?

@mxstbr thanks for the response and forgive me if I'm not understanding correctly.
Is this what you are suggesting?
import { AppBar } from 'material-ui';

const OverrideAppBar = styled(AppBar)`
  border: 1px solid red;
  background-color: red;
`;

// ...

<OverrideAppBar className="custom-styling" />

How then do I set the styles for .custom-styling? material-ui does support passing in className as a prop.

material-ui does support passing in className as a prop.

Then this works, since all styled-components does is pass in the className. See https://github.com/styled-components/styled-components/blob/master/docs/existing-css.md
const OverrideAppBar = styled(AppBar)`
  border: 1px solid red;
  background-color: red;
`;

Please let me note again, it seems as material-ui adds styles inline: (ref).

The first way to override the style of the components is to use the inline-style approach.

The second way to override the style of the components is to use the css-style approach.
Every component provides a className property. Those properties are always applied to the root element.
Note that CSS properties defined inline are given priority over those defined in a CSS class. You need to use !important to take precedence over the inline style.

Please excuse me if I missunderstood something.

Nope you got that right, so you need to use !important just due to the way material-ui works:
const OverrideAppBar = styled(AppBar)`
  border: 1px solid red !important;
  background-color: red !important;
`;

Thanks @mxstbr @GGAlanSmithee, !important is working as suggested although I was hoping for a different answer.
Bad on material-ui for using inline-styles, but would love to see a future update where styled-component is able to work around this.

but would love to see a future update where styled-components is able to work around this.

How should we work around this? I wish I could tell you we're going to fix this, but there's nothing we can do 😢 the fault is on material-uis side here 😕

@mxstbr you're right. After some further research, confirmed there's no way to override inline-styles without using !important. There's an ongoing debate amongst the material-ui community about this. Anyways, thanks for the help.

Is there a way to automatically apply !important to all styles? This can be useful for making widgets in conjunction with cleanslate.css

I second the question from @coffenbacher . We use semantic-ui-react and because their selectors have a higher specifity we need to apply !important to every css rule to overwrite the default styles of a specific component.

This is an extremely old issue that I opened before the library was even officially released, it's really not necessary to notify everyone here.
If you have a question or suggestion please ask it in the community, if you think you've found a bug please submit an issue here. Thanks!


New datatypes for timer programs

I have added some datatypes to read (and change) the settings related to the timer programs of the heat pump.
Parameters 161-221 seem to have a similar meaning, but I do not know how they can be checked / set from the heat pump controller. Moreover, the reading of parameter 161 is 6 for me, which does not fit the scheme of the other settings..
I have not allowed to set the timers related to the mixing circuits (MK) and swimming pool (Swb), since these are not available at my heat pump (and so I cannot check these settings).
Finally, for the air ventilation Luf (Parameters 895-955) and for the "silent inverter" (Parameters 1092-1113), the storage format seems to be different, both time stamps (without seconds) are saved in one parameter slot. Does anybody have reasonable readings for these settings? Is the "silence" setting used for air source heat pumps to limit the noise, e.g., during nights?
One thing is open to discussion: I converted the raw value into strings, e.g., "9:00" or "10:00-14:00". I think that a string is the simplest option from the users perspective, e.g., for parameters.set(507, "9:00") or parameters.set(896, "1:00-12:00"). What do you think?

@gerw
Same for me for Parameter 161:
Number: 161   Name: ID_Einst_SuAll_akt2   Type: Unknown   Value: 6

I think there are a lot more that use this timer type, if I do a luxtronik dump <IP_ADDRESS> | grep "ID_Einst_.*zeit" I get 621 results.

162-167 ID_Einst_SuAllWo
168-179 ID_Einst_SuAll25
180-221 ID_Einst_SuAllTg
223-228 ID_Einst_SuHkrW0
229-240 ID_Einst_SuHkr25
241-282 ID_Einst_SuHkrTG
284-289 ID_Einst_SuMk1W0
290-301 ID_Einst_SuMk125
302-343 ID_Einst_SuMk1TG
345-350 ID_Einst_SuMk2Wo
351-362 ID_Einst_SuMk225
363-404 ID_Einst_SuMk2Tg
406-415 ID_Einst_SuBwWO
416-435 ID_Einst_SuBw25
436-505 ID_Einst_SuBwTG
507-516 ID_Einst_SuZIPWo
517-536 ID_Einst_SuZIP25
537-606 ID_Einst_SuZIPTg
608-613 ID_Einst_SuSwbWo
614-625 ID_Einst_SuSwb25
626-667 ID_Einst_SuSwbTg
789-794 ID_Einst_SuMk3Wo
795-806 ID_Einst_SuMk325
807-848 ID_Einst_SuMk3Tg
896-898 ID_Einst_SuLufWo
899-904 ID_Einst_SuLuf25
905-925 ID_Einst_SuLufTg
926-928 ID_Einst_SuLufWo
929-934 ID_Einst_SuLufTg
935-955 ID_Einst_SuLufTg

They all follow a pattern, i guess those with Wo is "Woche", 25 is Monday through Friday  and Tg is "Tag".
The last few "SuLuf.." seem to bit in disorder for some reason.
My guess:

All = Allgemein
Hkr = Heizkreis
Mk1 = Mischkreis 1
Bw = Brunnenwasser
ZIP = Zirkulationspumpe
Swb = Schwimmbad
MK3 = Mischkreis 3
Luf = ??

Is the "silence" setting used for air source heat pumps to limit the noise, e.g., during nights?

Yes, AFAIK this is the idea and I've read about it in some manual, but haven't used it myself.

One thing is open to discussion: I converted the raw value into strings, e.g., "9:00" or "10:00-14:00". I think that a string is the simplest option from the users perspective, e.g., for parameters.set(507, "9:00") or parameters.set(896, "1:00-12:00"). What do you think?

For me that is fine. The alternative (dedicated datatype?) seems more complicated ...

Seems like this addresses (and will close) #33.

Is the "silence" setting used for air source heat pumps to limit the noise, e.g., during nights?

Yes, AFAIK this is the idea and I've read about it in some manual, but haven't used it myself.

IIRC, you have a air heat pump? Do you have this setting available? Could you test whether the conversion is correct?

They all follow a pattern, i guess those with Wo is "Woche", 25 is Monday through Friday and Tg is "Tag". The last few "SuLuf.." seem to bit in disorder for some reason.

25 means you have a setting for the week end (2) and a different setting for Monday-Friday (5).

My guess:
* All = Allgemein

* Hkr = Heizkreis

* Mk1 = Mischkreis 1

* Bw = Brunnenwasser

* ZIP = Zirkulationspumpe

* Swb = Schwimmbad

* MK3 = Mischkreis 3

* Luf = ??

Luf is Lüftung (ventilation) I would guess. And there seem to be two sets of timer settings for the ventilation.
Finally, Luf and Silence use a compressed storage for the timer settings, therefore they only have half as many settings.


Support for save to android sd cart #42

Description

Related issue(s)

Checklist:

[ ] It refers to an Issue.
[x] It fixes a bug.
[x] It's a new feature (non-breaking change which adds functionality)
[ ] It's a breaking (fix or feature that would cause existing functionality to change)
[ ] My code follows the code style of this project.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] CHANGELOG is updated.
[ ] Related language label is selected.

Codecov Report
Patch and project coverage have no change.

Comparison is base (092ae78) 84.81% compared to head (e377760) 84.81%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #44   +/-   ##
========================================
  Coverage    84.81%   84.81%
========================================
  Files            6        6
  Lines          935      935
========================================
  Hits           793      793
  Misses         127      127
  Partials        15       15

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


[Task]: Cleanup tooltip messages

What needs to happen?
We have a bunch of tooltips that are not yet included in the translation files.
Issue Priority
Priority: 3
Issue Component
Component: Translations

.take-issue


can: Add the padding to can_frame as Linux expects that

The can_frame struct must be identical with Linux in order
to send data properly.
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

Codecov Report

Merging #14195 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #14195   +/-   ##
=======================================
  Coverage   52.68%   52.68%
=======================================
  Files         307      307
  Lines       45473    45473
  Branches    10530    10530
=======================================
  Hits        23956    23956
  Misses      16640    16640
  Partials     4877     4877

Impacted Files
Coverage Δ

include/can.h
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

I don't really think we need this because we convert to zcan_frame anyway. But being 100% compatible to Linux is maybe a good idea.

I don't really think we need this because we convert to zcan_frame anyway. But being 100% compatible to Linux is maybe a good idea.

This is needed in native_posix port where we send the can_frame to Linux vcan driver, if the Linux struct is not identical to what is defined in Zephyr, then the CAN packets will be malformed in the wire.


how to install this?

sorry for the dumb question here, but I NEED your app!
how do I install it? is that a chrome extension?

You'll need an extension like Stylus that can edit the css on websites, and then you'll have to add this script.


Support marriages and merged ATXs in checkpoint-recovery

Motivation
Persist marriages (which IDs are married and form an equivocation set) and marriage ATXs (so they can be referenced in future ATXs) across the checkpoint-restore.
Description
Test Plan
Added tests.
TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[ ] Update documentation as needed
[ ] Update changelog as needed

bors merge


add space for some Show instances

A few Show instances were missing a space, NonAdaAsset is already taken care of in https://github.com/Plutonomicon/cardano-transaction-lib/pull/476

Thanks! Another annoying thing is that some types miss parentheses in Show. E.g. (Coin fromString "351823"). But we can sort of address that in wrapper instance: (Coin (fromString "351823")). Could you please look for problematic instances of this kind?

@klntsky wait, this is true for every BigInt newtype? Oh dear.

UInt is different e.g. (Epoch 5u) which is okay I guess


App crashes if You try to remove the current tab

Description of the Bug
if you have more than one tab and you try to remove the last tab which is also the current active tab
the program crashes
Code and Logs
from kivy.uix.scrollview import ScrollView

from kivymd.app import MDApp
from kivymd.uix.tab import MDTabsBase

KV = '''
BoxLayout:
    orientation: "vertical"

    MDToolbar:
        title: "Example Tabs"

    MDTabs:
        id: tabs

<Tab>:

    MDList:

        MDBoxLayout:
            adaptive_height: True

            MDFlatButton:
                text: "ADD TAB"
                on_release: app.add_tab()

            MDFlatButton:
                text: "REMOVE LAST TAB"
                on_release: app.remove_tab()

            MDFlatButton:
                text: "GET TAB LIST"
                on_release: app.get_tab_list()
'''

class Tab(ScrollView, MDTabsBase):
    '''Class implementing content for a tab.'''

class Example(MDApp):
    index = 0

    def build(self):
        return Builder.load_string(KV)

    def on_start(self):
        self.add_tab()

    def get_tab_list(self):
        '''Prints a list of tab objects.'''

        print(self.root.ids.tabs.get_tab_list())

    def add_tab(self):
        self.index += 1
        self.root.ids.tabs.add_widget(Tab(text=f"{self.index} tab"))

    def remove_tab(self):
        self.index -= 1
        self.root.ids.tabs.remove_widget(
            self.root.ids.tabs.get_tab_list()[0]
        )

Example().run()

Error:-
     return self.slides[self.index or 0]
 IndexError: list index out of range

Versions

OS: win 10
Python: 3.7
Kivy: 2.0
KivyMD: master

So far, the sample code works fine. the exception is spammed since the widget tries to remove a index outside the count of the parent's children widgets. (when there's no child.)
I believe that what @HeaTTheatR  tried to say was:
@p0lygun, you have to control what you remove from the widget, since the error doesn't occur on the kivymd library side, but instead, it does in your code.
at line 64.
def remove_tab(self):
        self.index -= 1
        self.root.ids.tabs.remove_widget(
            self.root.ids.tabs.get_tab_list()[0]
        )

@podraco
Run the code
Add new tab
Go to last tab
Try to remove it

This is the output after following those steps:
 Traceback (most recent call last):
   File "kivy\properties.pyx", line 599, in kivy.properties.Property.dispatch
   File "kivy\_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
   File "kivy\_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
   File "kivy\properties.pyx", line 1503, in kivy.properties.AliasProperty.trigger_change
   File "kivy\properties.pyx", line 1505, in kivy.properties.AliasProperty.trigger_change
   File "C:\Program Files\Python37\lib\site-packages\kivy\uix\carousel.py", line 194, in _curr_slide
     return self.slides[self.index or 0]
 IndexError: list index out of range
 Exception ignored in: 'kivy.properties.observable_list_dispatch'
 Traceback (most recent call last):
   File "kivy\properties.pyx", line 599, in kivy.properties.Property.dispatch
   File "kivy\_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
   File "kivy\_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
   File "kivy\properties.pyx", line 1503, in kivy.properties.AliasProperty.trigger_change
   File "kivy\properties.pyx", line 1505, in kivy.properties.AliasProperty.trigger_change
   File "C:\Program Files\Python37\lib\site-packages\kivy\uix\carousel.py", line 194, in _curr_slide
     return self.slides[self.index or 0]

Also, if you delete all the tabs in the container, MDTab works fine. but when you try to add a new tab, the MDTab trhows a error.
somewhere in MDTab a value changes to None instead of 0. and the error doesn't fix after that.
heres the output.
 Traceback (most recent call last):
   File "kivy\properties.pyx", line 599, in kivy.properties.Property.dispatch
   File "kivy\_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
   File "kivy\_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
   File "kivy\properties.pyx", line 1503, in kivy.properties.AliasProperty.trigger_change
   File "kivy\properties.pyx", line 1505, in kivy.properties.AliasProperty.trigger_change
   File "C:\Program Files\Python37\lib\site-packages\kivy\uix\carousel.py", line 143, in _get_index
     return self._index % len(self.slides)
 TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
 Exception ignored in: 'kivy.properties.observable_list_dispatch'
 Traceback (most recent call last):
   File "kivy\properties.pyx", line 599, in kivy.properties.Property.dispatch
   File "kivy\_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
   File "kivy\_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
   File "kivy\properties.pyx", line 1503, in kivy.properties.AliasProperty.trigger_change
   File "kivy\properties.pyx", line 1505, in kivy.properties.AliasProperty.trigger_change
   File "C:\Program Files\Python37\lib\site-packages\kivy\uix\carousel.py", line 143, in _get_index
     return self._index % len(self.slides)
 TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'

Exactly
So it's a bug rht?

It probably is, but my hands are full at the moment to check that.
I would recommend you to take a look at the tab.py and try to check why the values turn to None instead of Zero or a less than zero value, and doesn't change back to a numeric counter after the error.
Whatever you find, please post it in here to discuss a solution. And a proper way to fix it.

Ok

seems that the exception raises before any kind of update on the tab container happens

Here's one problem.
    def remove_widget(self, widget):
        # You can remove only subclass of MDTabsLabel.
        if not issubclass(widget.__class__, MDTabsLabel):
            raise MDTabsException(
                "MDTabs can remove only subclass of MDTabsLabel"
            )
        self.tab_bar.layout.remove_widget(widget)
        for tab in self.carousel.slides:
            if tab.text == widget.text:
                self.carousel.slides.remove(tab)
                break

This doesn't check if the widget has any child before trying to remove it.
or if the widget exists inside it.

@p0lygun If you found an error, you had to show the algorithm for reproducing the error. And so we just closed your question because we could not get what you described here.

sorry I actually forgot to add the steps to reproduce


⚠ Bofrost.fr has degraded performance

In 7037977, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1616 ms

Resolved: Bofrost.fr performance has improved in ab2290d.


bower install stops with error : fatal: unable to connect to github.com:

My whole try: (I'm on a MBP (Mavericks))
Marvins-MacBook-Pro:ardrone-webflight marvinosswald$ bower install
bower not-cached    git://github.com/jquery/jquery.git#~1.9.1
bower resolve       git://github.com/jquery/jquery.git#~1.9.1
bower not-cached    git://github.com/bowerjs/bootstrap.git#~2.1.1
bower resolve       git://github.com/bowerjs/bootstrap.git#~2.1.1
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github.com/jquery/jquery.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com[0: <IP_ADDRESS>]: errno=Operation timed out

It turns out this happens if the user running the command has SSH keys that are not registered on GitHub. You should either register the public key for this user on GItHub or remove the key-pair from the users .ssh directory.

The solution without changing the firewall:
git config --global url."https://".insteadOf git://


Unable to use script

I am unable to use the following script for blender3d (4.0).
https://github.com/aconz2/blender-addon-origamify
I followed the READ ME file but was still unable to use it. Could you assist?

Should work fine in 4.0, I thought you might have hit an issue in 4.2, but it sounds like you just aren't able to install it. See https://docs.blender.org/manual/en/latest/editors/preferences/addons.html and https://github.com/aconz2/blender-addon-origamify?tab=readme-ov-file#installation

It's still not working for me after following the above steps. I have installed Add-Ons before like the blenderkit addon. But for some reason, this doesn't appear on the add-ons list after installing.

Hi. I tried it again using the zip file and it worked. I think I downloaded it incorrectly the first time. There was some syntax error coming in the code before. Now it's working. Thanks for this excellent tool. Cheers.


Implemented auto commenting on PR merge

Fixes Issue🛠

Closes #796
Description👨💻

I have added auto-comment-on-pr-merge.yml in .github/workflows directory. This file will add the feature of auto commenting when a pr is merged.
Type of change📄

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Checklist✅

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added demonstration in the form of GIF/video file
[x] I am an Open Source Contributor

How have you tested this? Can you put a video showing the demo @suhanipaliwal

Can you fix this @Anshika14528

Yes Sir

Thankyou sir


Add Cpanel version

Hello,
It would be very useful to provide a qcow2 image with Cpanel preinstalled in it. In the past I was able to find such images built for Centos, on Cpanel's website, but now the option is not there anymore.

there has been a pr open for over a year. is there any plans to accept this? @LKHN

@ITJamie Hi :wave:
Unfortunately, The implementation used in the PR doesn't fit enough how we want it (i.e. squeezing everything in a single shell module). I am closing the PR and update this issue once we have start to implement it.

would you be happier with something like https://github.com/tzermias/ansible-plesk/blob/master/tasks/main.yml ?
I would be happy to accept a version with a similar setup to this? I would happily make a modified version of #108 pr


👽 Implement tzinfo.fromutc for TzInfo

Change Summary
Implement tzinfo.fromutc method in TzInfo as default behavior (see: https://docs.python.org/3/library/datetime.html#datetime.tzinfo.fromutc) isn't compatible with TzInfo implementation.
Related issue number
See https://github.com/pydantic/pydantic/issues/6735
Checklist

[x] Unit tests for the changes exist
[x] Documentation reflects the changes where applicable
[x] Pydantic tests pass with this pydantic-core (except for expected changes)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @adriangb

please review

please can we test fromutc directly, and also check if there are some nice tests for it in cpython and copy them?
I have no idea if the current implementation is correct.

Well, the current implementation of utcoffset is a shortcut as well and doesn't take into account dst or zone info data for the specific point of time of the argument. So, the whole class is pretty naive implementation. I have strong doubts it can pass all CPython tests.

@davidhewitt

if our TzInfo type represents a fixed time zone, maybe we want to implement dst like that too?

Returning 0 from dst explicitly means that there is no day light saving time in effect. However, there could be but we just do not know it in our implementation. So, having it return None in such a case seems fair.

However, there could be but we just do not know it in our implementation.

Is this the case? If we parse 2032-01-01T01:01:00+02:00 I would be ok with treating that as a fixed offset which we can assume to be +02:00 with dst offset of 0?
Looks like https://datatracker.ietf.org/doc/draft-ietf-sedate-datetime-extended/ is needed for RFC3339 datetimes to support zones with dst, in which case it's passed explicitly.

Is this the case? If we parse 2032-01-01T01:01:00+02:00 I would be ok with treating that as a fixed offset which we can assume to be +02:00 with dst offset of 0?

We cannot assume that. For example, CEST is exactly +02:00 but it has dst offset of +01:00 now included in that +02:00. 2032-01-01T01:01:00+02:00 could be CEST with dst+1h or some +02:00 timezone that doesn't use DST and thus has dst+0h now.

Returning 0 from dst explicitly means that there is no day light saving time in effect. However, there could be but we just do not know it in our implementation. So, having it return None in such a case seems fair.

Discussed offline - datetime.timezone always returns None, so we'll do the same.

@samuelcolvin shall we bring some of those tests in?
https://github.com/python/cpython/blob/main/Lib/test/datetimetester.py#L256

please revirew

please review

This looks good to me!


docs(jwt) add 2 new endpoints to list JWTs

Two new endpoints have been added to the JWT plugin:

/jwts/ to paginate through all JWT credentials
/jwts/:jwt_key_or_id/consumer to retrieve the Consumer
associated with a JWT

See https://github.com/Kong/kong/pull/3003

Manually merged as well! We are only left with the ACL updates - not sure if we will include them in 0.11.2 yet because the PR to Kong is more recent and hasn't been reviewed yet iirc. We will definitely try to get it in as well!
Thank you so much for your help with this documentation - greatly appreciated!

@thibaultcha Thanks for being so prompt with all these PRs.
I understand that the release date is very close and we might not have bandwidth to accommodate new changes.
But yes like you said, let's try to get the ACL PR in.
If there are major obstacles then we can put it off for a later release.
I'm waiting for this release to use to use the ACL and keys list endpoints.
In hindsight, I should have sent out ACL before the other ones.


Update e2e test with redhat-cne images

Update the e2e tests to use quay.io/redhat-cne/ images to pick up the latest changes.
Add .json extension to example event IDRAC.2.8.TMP0110 so that it is included in the e2e test.
The origin-xxx images (e.g. quay.io/openshift/origin-cloud-event-proxy) will be updated when next build is accepted by release controller for 4.13.
See https://amd64.ocp.releases.ci.openshift.org/. For example the latest accepted 4.13:

4.13.0-ec.3 Accepted 11 days ago

So the latest tag for quay.io/openshift/origin-xxx images is linked to commit-id from 11 days ago.

/test e2e-basic


about the bots !

hello today î saw bots ovh back to work and other like raga
my question the Bots will be working on the future or no
sorry for ,my english

I saw them too, I think it's already public somewhere else.. not sure. If it is its probably getting fixed on this feeder as well.
@davidmann4

The solution is very simple, code it yourself.

@
I don't know a lot in js
and pls next time Answered the question as or do not respond


Add version scheme to Panoptes once we reach a stable release

I like Semantic Versioning personally but open to ideas, especially any that ensure we don't forget to bump release versions.

How would the versioning information be used?

Possibly via a publicly accessible static file on the api nodes? See the link i just added.

+1 for semantic versioning.

On 3 Feb 2015, at 13:52, Campbell Allen<EMAIL_ADDRESS>wrote:
Possibly via a publicly accessible static file on the api nodes? See the link i just added.
—
Reply to this email directly or view it on GitHub https://github.com/zooniverse/Panoptes/issues/490#issuecomment-72653190.

Sorry @camallen I meant what would it be used for?

Master should always be deployed.
Staging can have non-merged features in 'pre-release' on the staging site.

If we want to patch a bug then we'd patch and deploy master (and the version number x.x.N). I agree we'll need version numbers for formalising the release cycle (especially for 3rd parties) but we're not at 1.0 yet and probably won't be till after stargazing.


Bump version of flannel

cc @luxas PTAL

New versions were released 3 days ago: https://quay.io/repository/coreos/flannel?tab=tags

Can you bump etcd to 3.0.4 also as I did in the previous PR?

yes sure

Works fine
PTAL

Okay, this time you've tested it, right? :)
LGTM (I'm on the go so can't test rn, but seems okay)


I found a way to serialize class objects, would be nice if you guys would like to implement this.

Is your feature request related to a problem?
So currently Qwik's need to be able to serialize things that are used in certain ways / places, adds quite some limitations to what you can use and do in your components. One limitation that I thought could be solved is having serializable classes.
Describe the solution you'd like
So I don't understand Qwik well enough yet to know how to implement this in Qwik. If I did, I would've created a PR instead of this issue.
But I did create a working proof of concept written in Svelte, with components that simulate server-client communication.
You can see it working here, in StackBlitz.
I'm confident that my solution could be ported to Qwik.
We'd need something like this. First, a class that contains two static methods for serializing and unserializing:
// src/lib/counter.ts

export type CounterSerialized = { count: number }

export class Counter {
    #count: number

    static serialize(instance: Counter): CounterSerialized {
        return { count: instance.#count }
    }

    static unserialize(serialized: CounterSerialized): Counter {
        return new Counter(serialized.count)
    }

    get count() {
        return this.#count
    }

    increment(byAmount = 1) {
        this.#count += byAmount
    }

    constructor(count: number = 0) {
        this.#count = count
    }

    toString() {
        return `class Counter { count: ${this.#count} }`
    }
}

// src/entry.tsx
import { Counter } from "./lib/counter"
import { registerClasses } from<EMAIL_ADDRESS>
registerClasses({
  // Counter will be type-checked here, whether it implements
  // the right methods for serializing and unserializing.
  // And path will be checked by this function during runtime,
  // to see if this path really leads to this Counter class
  "lib/counter[Counter]": Counter
})

And then just use the Counter class in any component without any limitations.
Describe alternatives you've considered
I haven't considered any alternatives.
Additional context
No response

The problem here, is that we will need to run user code to resume the app. Again serializing is not a problem, but unserializing. Our serializers today live here: https://github.com/BuilderIO/qwik/blob/main/packages/qwik/src/core/container/serializers.ts

I don't fully understand your response. You can see in my demo that it can indeed unserialize the serialized class instance. And in fact, I'm using a similar technique as QRLs in the demo. So I'm sure that if you guys would take a serious look at this, you could find a way to implement this correctly, according to all of your own standards, in Qwik.

I am not saying, we will not add custom serializers, but it's not a technicaly problem on how to serialize classes, we already support, URL, Data, Map, Set and custom ones, like Signal, or our Proxy. The technical problem as @jordanw66 mentions, is how developers inject code that runs before anything else.
@Evertt in the demo it's using Svelte, which already loads all the JS, Qwik does not load any JS. and the one that loads is based on interactivity.
Custom serializers bad implemented, means add a new baseline, that need to be eagerly injected no matter what, I feel like developers given this tool, will tend to abuse it, so they can pass their custom Classes, with no real benefit.

In qwik, this code:
// src/entry.tsx
import { Counter } from "./lib/counter"
import { registerClasses } from<EMAIL_ADDRESS>
registerClasses({
  // Counter will be type-checked here, whether it implements
  // the right methods for serializing and unserializing.
  // And path will be checked by this function during runtime,
  // to see if this path really leads to this Counter class
  "lib/counter[Counter]": Counter
})

will never run in the browser

In qwik, this code:
// src/entry.tsx
import { Counter } from "./lib/counter"
import { registerClasses } from<EMAIL_ADDRESS>
registerClasses({
  // Counter will be type-checked here, whether it implements
  // the right methods for serializing and unserializing.
  // And path will be checked by this function during runtime,
  // to see if this path really leads to this Counter class
  "lib/counter[Counter]": Counter
})

will never run in the browser

I agree, it doesn't need to. As long as it runs on the server without error, the serialized code doesn't need to be checked again in the browser.

how does the client get the unserialized value when it resumes?

It imports the path like a QRL

how would it look like? one idea i had was to have an api like:
const count = customSerialize$(Count, new Count);

similar to:
const count = noSerialize(new Count);

I could not say clearly! i think there is some use case for library authors of Qwik, but i would try to avoid it, or lead developers to solve their problem in a different way. Happy to keep the conversation open! All this will be useful when we decide to evaluate some API for this purpose. Internally it's already very easy to add new serializers!
https://github.com/BuilderIO/qwik/blob/main/packages/qwik/src/core/container/serializers.ts#L290-L304


Add additional steps needed to finish setup on contrib projects.

The Issue
When following the README Installation instructions for setting up a contrib project, additional setup is required before being able to run the commands provided by this project.
How This PR Solves The Issue
Explicitly list all steps needed for setup.
Manual Testing Instructions
Review documentation changes.
Automated Testing Overview
N/A. Documentation update.
Related Issue Link(s)
Related: https://github.com/ddev/ddev-drupal-contrib/issues/15
Release/Deployment Notes
N/A

Thanks


Client pipeline didn't trigger

Building a PoC with a client:

They've created a pipeline to download several images and process them
They're adding a second pipeline to upload the processed images to S3 (named with some scheme)
After creating the second pipeline, Pachyderm didn't start any jobs, even though the input repo had two commits in it

just in case this has to do with some odd dag bug:
Schema (1 commit) --> image_processor
Data (2 commits) --> image_processor
image_proc actually had 7 commits on it do to a few failed attempts, a few --reprocess calls, and stats commits (which we know are on a separate branch)
Created uploader with only image_proc as input... no jobs were triggered
Other notes for repro:

Originally tried creating and updating pipeline in same json which failed #2485. Unlikely to be the cause
pods/pipelines came up fine and everything looked good, but no jobs. Even update-pipeline for uploader didn't start jobs --> hypothesis: a pathalogical bug with flush-commit as opposed to some race state with pipeline creation/updates
running --reprocess on the image_proc pipeline then did trigger uploader to run, but only on those newly created commits

We just observed a similar bug with a user in our users channel:

The user has a very similar DAG: two inputs feeding into one pipeline
The user updated their pipeline, which spawned a job, which the user killed (deleted? Unclear from their message)
The user then called update-pipeline --reprocess on the pipeline and it stopped
Once the user's cluster got into a broken state, new commits in either input branch didn't cause downstream pipelines to run

Either deleting the job, --reprocess or some interaction between the two could be related

Another client ran into a similar bug: they called UpdatePipeline (without --reprocess) and lost the ability to trigger the pipeline.
One hypothesis: this bug is due to dangling JobInfos in etcd. When a pipeline master receives a new commit, it checks etcd to see if there any jobs with the same salt as the current pipeline, and if so, doesn't spawn anything new. If a PipelineInfo document for a dead job gets stuck in etcd, the pipeline master might stop spawning new pipelines.

Job triggering code has gone through several revisions since this issue was posted so I'm pretty sure this has been fixed. Since the commit invariant refactor we've had a lot fewer job triggering issues and the ones we have had proved to be pretty easy to fix. Unfortunately we never found a specific repro for this bug so I can't test to make sure it doesn't exist, but I think it makes sense to close this. Feel free to reopen if you feel you're still seeing this bug.


HIP-206 - Add delegatable_contract_id to Key message

Description:
Add the delegatable_contract_id field to the Key message, for contract
authentication that is durable across DELEGATECALL invocations in the
Smart Contract System.
Related issue(s):
Fixes #
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

I believe this can be closed as this field was added by another PR.


The emoji autocomplete does not appear after switching apps

Summary
Sometimes the emoji autocomplete does not appear when typing an emoji code in a message
By emoji autocomplete, I'm talking about this:

Environment Information

Device Name: Samsung S10e
OS Version: OneUI4.1/Android 12
Mattermost App Version: 2.6.0
Mattermost Server Version: 8.0.1

Steps to reproduce
Several times a day, when I start typing an : followed by an emoji code, the emoji autocomplete doesn't appear.

Open any channel
Start typing an emoji code (eg. :up) -> yhr emoji autocomplete appear
Switch to another app
Switch back to the MM app
Start typing the same code

Expected behavior
The emoji autocomplete should always appear when starting to type an emoji code,  even after switching app. This is especially important because since #7484 is still not implemented, there is no easy way to access the list of emojis.
Observed behavior (that appears unintentional)
The emoji autocomplete does not appear. Going to another channel and coming back seems to fix it.
Possible fixes
Unknown

@lindy65 @yasserfaraazkhan Are you able to reproduce this on Android?

@lindy65 @yasserfaraazkhan Are you able to reproduce this on Android?

@amyblais this is occurring as described. With the emoji suggestion window won't appear when user switches back to mm-app from a different application

Thank you, opened https://mattermost.atlassian.net/browse/MM-54163.


No way to go back from month picker on iOS

Hi,
I am using this plugin, works fine in android but for iOS when I go to pick a month there is no way to get back from picker and also scrolling the picker doesn't reflects as shown in attached screenshot the selected month is "January" while it is still showing "February". What could be the fix?

Hi there,
Seems like you are having problems using the iOS native select interface. Although the picker is partially shown, it doesn't work with the native select in the lower part of your screen. You need to select a value by tapping it and then the picker shows the selected month. Can you try it?

Hi,
Thanks for your response.
Yes, I tried that but it is not selecting month by tapping the picker. What should I do?

Any update on this?

Seems working fine for me. Google suggests that this problem can occur when an app compiled for older iOS (older Xcode) is run on newer iOS. Are you compiling the app in the latest version of Xcode and running it in the latest version of iOS?

I am using Xcode 8 and testing it on simulator also I have test it on iPhone 7. Doesn't seem to be working on my side.

Remove all content from index.html and put this there:
<select>
  <option>January</option>
  <option>February</option>
</select>

Build the app and run it on simulator or iPhone. Does the new select work or not?

Hello,
Can you make a ionic 2 version of this ? I want to use for desktops since ion-datatime-picker for ionic 2  iOS like is unusable and very difficult to use on desktops specially when using track pad it is very difficult to go from beginning to ends and vice versa.
Thanks

@rohamak Could you please make a new issue for that? I'm currently working on a new version of the picker that will work with both v1 and v2, but it's still not finished. However I can quickly convert current code (just simplified version of it) to v2 directive if you are interested in a quick solution.

sure I just added a new issue. thanks,

Any update on this issue?
From my experience, if you select the month from the native control and THEN press the selected month in the select control in the calendar itself, the value DOES get updated.
If you select the month from the native control, it does not close the native control and does not change the selection in the calendar selection box.


Don't wrap str pointer in Packed

Closes #9.

It's a shame this has never been merged, as the library remains unlinkable on iOS without it.

I'll merge this workaround when I see evidence that this behavior with packed pointers is acknowledged as either:

a compiler bug
an unfixable incompatibility with the linker


Export TreeCollection and TableCollection

Closes
✅ Pull Request Checklist:
This change shouldn't need any additional tests. We are building some utilities that want to access these collection classes. ListCollection is already exported (https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/list/src/index.ts#L17) but these collection classes are not, so I'm assuming it'd be OK to export these.

[?] Included link to corresponding React Spectrum GitHub Issue.
[N/A] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[N/A] Filled out test instructions.
[N/A] Updated documentation (if it already exists for this component).
[N/A] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

N/A
🧢 Your Project:

Stripe :)

Seems reasonable, related to #3405. Curious what you're looking to do with them!

If you don't mind, follow the instructions here https://react-spectrum.adobe.com/contribute.html#contributor-license-agreement then close and reopen this PR, that will cause it to pass the last check so we can review this PR and consider merging it.

Fixed in #3690 so we can include this in the next release.

Thanks a lot @reidbarber! I've been traveling so I didn't have time to re-open this.
@devongovett We are actually using our own collection APIs which have different tradeoffs. We aren't using the static JSX approach which turns it into data. Happy to talk more about it if you want!

That's interesting. I have been working on a potential new approach as well.


Is armhf supported?

Hi, I see no armhf build in the Releases page, is that architecture supported?
Thanks.

Yes, it’s supported. You can build it from source.

Do you have arm v6 & v7 environment for testing? I'll accept PR as long as it's tested. Thanks.

Yes, I have Raspberry Pi Zero (armv6) and Pi 4B (armv7 and arm64). What kind of testing do you need?

As long as trz, tsz and trzsz can upload and download files, it will be fine.

I've tested on Raspberry Pi Zero (armv6) and Pi 4b (armv6 & armv7), upload and download work fine.

[x] trz
[x] tsz something
[x] trzsz ssh and bash
[x] ttyd -t enableTrzsz=true

@ragazenta Thanks. Could you make a PR for this?


prompt for az vmware private-cloud delete

This is for internal work item 9019400. It prompts the user with This will delete private cloud. Are you sure? (y/N) when they try to delete a cloud. This is a breaking change and will need to be communicated appropriately. Any recommendation on how to communicate this breaking change? There will be another similar pull request soon.
For example:
(.venv) PS C:\Users\cataggar\io\azure-cli-extensions> az vmware private-cloud delete -g taggac-2020-12 -n taggac-pc
This will delete private cloud. Are you sure? (y/N):
(.venv) PS C:\Users\cataggar\io\azure-cli-extensions> az vmware private-cloud delete -g taggac-2020-12 -n taggac-pc
This will delete private cloud. Are you sure? (y/N): asfd
This will delete private cloud. Are you sure? (y/N): jnf
This will delete private cloud. Are you sure? (y/N): asdf
This will delete private cloud. Are you sure? (y/N): N
(.venv) PS C:\Users\cataggar\io\azure-cli-extensions> az vmware private-cloud delete -g taggac-2020-12 -n taggac-pc --yes
(.venv) PS C:\Users\cataggar\io\azure-cli-extensions>

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

vmware

vmware

hi @qwordy could you pls review?

hi @qwordy could you pls review?

@ctaggart Make sure add it to release history and highlight it as BREAKING CHANGE. It is the convention in Azure CLI.

@ctaggart Make sure add it to release history and highlight it as BREAKING CHANGE. It is the convention in Azure CLI.

Okay. I'll look into adding it to release history tomorrow.

Okay. I'll look into adding it to release history tomorrow.

I've updated the changelog and highlighted it as a breaking change.


New App in the GUI: Optional Settings are not Optional

A hurdle for the first-time user:

Click + New App
Enter a task ID. Leave Optional Settings blank.
Click + Create
Observe error AppDefinition must either contain one of 'cmd' or 'args', and/or a 'container'.

The panel should give an indication of what's needed to create a task.

@aldipower Could you take a stab at making this interaction a little bit more intuitive?

With the new design for the modal there will be a better separation between required and optional fields, as well as the new section for the container settings.
What if we added a help message below the command field like so, @air ?

Does a command field ever make sense if there's a docker image? Or does it
always get overwritten with a docker run?
On Jul 20, 2015 07:47, "Pierluigi Cau"<EMAIL_ADDRESS>wrote:

With the new design for the modal there will be a better separation
between required and optional fields, as well as the new section for the
container settings.
What if we added a help message below the command field like so, @air
https://github.com/air ?
[image: screen shot 2015-07-20 at 16 44 00]
https://cloud.githubusercontent.com/assets/1078545/8778543/d9c4b95c-2efe-11e5-9ef3-5f9e602867ef.png
—
Reply to this email directly or view it on GitHub
https://github.com/mesosphere/marathon/issues/950#issuecomment-122908006
.

You can supply both, yes.

As I understand it, it doesn't get overwritten by the run  in the Dockerfile - it runs in addition.

@air what do you think of my suggestion?

I can't argue with the logic. As a small fix it is fine. I think however with some bigger changes we can have a better flow.
The user will be coming in with either 1. A docker image or 2. A shell command they want to run.

They are roughly of equal importance. It's even possible docker is more widely used these days (subject to validation).
Having both a docker image AND a shell command is an edge case (subject to validation).

In the screenshot above docker is a third-class citizen. The flow should expect that a user is coming in with either #1 or #2 above and help the user accordingly.

Maybe this is fixed in the new docker UI, but I don't have an easy way to see that. Is there a 'nightly' Marathon stood up anywhere - e.g. marathon-dev.mesosphere.com that we can use to test things like this?

Following today's discussion, here is what we are going to do to improve the current workflow:

[ ] increase font size for collapsible section headers, remove “Show” / “Hide” portions of the strings
[ ] invert optional / docker settings position
[ ] add a new textarea “Docker Command” inside the Docker settings with an info text below that clarifies: "This will override the value in the Command field"
[ ] decrease opacity to 50% on the "(–)" icon when editing the last remaining row of a duplicable set of values (disabled state)

mesosphere/marathon-ui#162 only implements three of the four improvements in the comment above - simply adding a Docker command field really confused the modal, so I added the help text suggested by @pierlo-upitup on the command field instead.
I'll leave this issue closed and suggest we continue discussion of docker-specific commands over on #2052


Reduce panics

We saw some of these happen in our app, and the others are straight up calls to panic()

👍


Where is the code for alignmixup-AE?

Also, if you do not use AE, you do not use joint training as claimed in the paper, am I correct on this？

Hi,
Yes, when using AE, we only train the decoder using clean training examples (no alignment is used ).

Would you please upload the code about align-mixup/AE?


iOS 7 Tint Color

We're going to see a lot of "default blue" apps floating around in the next few months. This is a tough one, because the app is pretty monochromatic right now. We can't go gray, because that implies a disabled state.
My vote is red, because that's the color that was used as an accent in my xkcd: vol 0 book.

Fixed here. https://github.com/paulrehkugler/xkcd/pull/49


[carousel] Auto switch from the last slide to the first one seems strange

Version
1.6.0
Environment
web
Reproduction link
https://ng-zorro-antd-start-pv7vcd.stackblitz.io
Steps to reproduce
Make a carousel with auto-play following the guide
What is expected?
The switch from the last slide to first one should be smooth and clear.
What is actually happening?
It looks like all slides go backwards quickly before switching to the first slide.
Other?
Root cause : in carousel switch implementation, it should use animation instead of css transform. I think i can help on this issue.

Duplicates #2014. But I am afraid we are now short of hands fixing this animation. Thanks for your report.
Actually since the React version of Ant Design implemented this animation, it wouldn't be hard to do. Are you interested in that? @wanpeng2008

@wanpeng2008 Ok then. I will assign that issue to you.

@wanpeng2008 开源社区的工作都应该在公开的地方进行, 比如 GtiHub 的 issue.
你向哪里推送的代码?
应该推送你的修改到你 fork 的项目, 然后发起 pull request.

@vthinkxie has rewarded $18.00 to @wendzhue. See it on IssueHunt

:moneybag: Total deposit: $20.00
:tada: Repository reward(0%): $0.00
:wrench: Service fee(10%): $2.00


fix bug for class not found:org.apache.commons.vfs2.provider.webdav.WebdavFileProvider

1.fix bug for class not found:org.apache.commons.vfs2.provider.webdav.WebdavFileProvider since 2.5.0
this bug is caused by the remove of WebdavFileProvider, and when try to load WebdavFileProvider if the user does not have class WebdavFileProvider, then explode.
now the code will check the class as well as its dependency when load.(if the class itself does not exist then return)
2.add clean room test
This bug happened and even with this bug the tests now can pass.
that is because you include all things needed in test scope guys.
and we users do not usually include them all.
so when something went wrong and vfs can only run correctly when user code imports some repo(like this time), the current test mechanism can never tell.
So I add a clean room test for it.

Hi @XenoAmess ,
(CC: @garydgregory )
Thanks again for reporting and helping with problem determination!
I've filed a JIRA ticket with a simple improvement in a new PR ( https://github.com/apache/commons-vfs/pull/84 ) to avoid this kind of corner case in the future:

https://issues.apache.org/jira/browse/VFS-759

Cheers,
Woonsan


Generic interface inheriting from another generic interface results in incorrect inference

TypeScript Version:  2.5/2.4.2/2.4.1/2.3
Code
interface Api<I, O> {
    url: string;
    method: 'POST' | 'GET';
}

interface GetApi<O> extends Api<{}, O> {
    method: 'GET';
}

type PostApi<I, O> = Api<I, O>;

function defineGetApi<O>(api: GetApi<O>) {
    return api;
}

function definePostApi<I, O>(api: PostApi<I, O>) {
    return api;
}

interface SampleInput {
    command: string;
}

interface SampleOutput {
    success: boolean;
}

const sampleGetApi = defineGetApi<SampleOutput>({
    method: 'GET',
    url: 'string',
});
const samplePostApi = definePostApi<SampleInput, SampleOutput>({
    method: 'GET',
    url: 'string',
});

function consumeApi<I, O>(api: Api<I, O>, input: I, onSuccess?: (output: O) => void) {
    return;
}

consumeApi(sampleGetApi, {}, (o) => o.success); //(1)
consumeApi(samplePostApi, {}, (o) => o); //(2)

Expected behavior:
(1) should typecheck
(2) should not type check, but I guess that's by design
Actual behavior:
(1) does not typecheck, the interface inheritance doesn't seem to be able to infer O.

Property 'success' does not exist on type '{}'

With (2), using only a type alias, the inference for O works as expected. However, thanks to {} being a supertype of SampleInput... I still easily get bad code :(

If I "materialize" the phantom types I and O in API, we get a different picture:
interface Api<I, O> {
    url: string;
    method: 'POST' | 'GET';
    __data: I;
    __dataO: O;
}

interface ApiDefinition {
    url: string;
}

interface GetApi<O> extends Api<{}, O> {
    method: 'GET';
}

type PostApi<I, O> = Api<I, O>;

function defineGetApi<O>(api: ApiDefinition) {
    return {
        url: api.url,
        method: 'GET'
    } as any as GetApi<O>;
}

function definePostApi<I, O>(api: ApiDefinition) {
    return {
        url: api.url,
        method: 'POST'
    } as any as PostApi<I, O>;
}

interface SampleInput {
    command: string;
}

interface SampleOutput {
    success: boolean;
}

const sampleGetApi = defineGetApi<SampleOutput>({
    url: 'string',
});
const samplePostApi = definePostApi<SampleInput, SampleOutput>({
    url: 'string',
});

function consumeApi<I, O>(api: Api<I, O>, input: I, onSuccess?: (output: O) => void) {
    return;
}

consumeApi(sampleGetApi, {}, (o) => o.success); // (1)
consumeApi(samplePostApi, {}, (o) => o.success); // (2)

Both compile. (1) should, inference works.

(Screenshots from TS 2.5)

This is working as intended and is an effect of TypeScript's structural type system. We can only make inferences for a type parameters if they actually occur somewhere in the expansion of a generic type reference. See the FAQ:
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-doesnt-type-inference-work-on-this-interface-interface-foot---

@ahejlsberg Thanks for the quick reply.
But why does it make a difference whether I extend the interface or not?

In the case of the post API, O doesn't appear in the expansion of the type either, unless I misunderstand something.
Here, O is inferred, from what I understand, through the phantom type.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

From what I've gathered, the extends doesn't work because it's essentially syntactic sugar to define an interface. There is no actual connection between A and B in A extends B as there would be in a nominal type system, which is why the generic parameter isn't inferred.
Be that as it may,

We can only make inferences for a type parameters if they actually occur somewhere in the expansion of a generic type reference.

Doesn't that imply that what I did shouldn't work for a simple type alias either? It did infer the generic type merely based on the actual generic parameter, not on any member.


Can only place however many blocks you mined since bug occurs.

Playing on cities & towns 2, was using the diamond wand perfectly fine, suddenly stopped working.
After a little experimenting it'll start working again but only with however many blocks youve broke since the bug occured.
For example, previously was placing dirt in bulk (do big trip, load up on dirt, come back and spam it down with the wand)
Once the bug occurs you cant place any more of the item until you break some.

Running on a local lan server, was fine until it wasnt, tried in offline/ non lan on the same world, same issue.

additional info.
I can only place the blocks broken.
also weirdly the blocks i break dont merge into normal stacks and separate off into their own separate stack.

After more testing, it seems the dirt has a different tag for whatever reason and the wand doesent like it. seems like all my dirt has magically gained this tag and the wand wont work with it.


Feature: Support order by SimpleFunction and SimpleExpression

To allow ordering results on more than just plain column names I implemented support for SimpleFunctions and SimpleExpressions (created using Expressions.just(..)).
Before if you would try to use a SimpleFunction expression in orderBy it did result in invalid SQL, because it completely omitted the function; ORDER BY  ASC.
With these changes you can now use SimpleFunctions and SimpleExpressions as order by expression.
E.g.
orderBy(OrderByField.from(Expressions.just("1"))).asc() =>

   ORDER BY 1 ASC

orderBy(SimpleFunction.create("GREATEST", table1.column("updated_at"), table2.column("updated_at"))).asc() =>

   ORDER BY GREATEST(table1.updated_at, table2.updated_at) ASC

Related: #1113

[x] You have read the Spring Data contribution guidelines.
[x] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Thanks, this merged.

Is there a change this is going to be backported to 2.4.x? And then in turn to the spring-data-r2dbc package? Or do we have to wait for spring-boot 3 to be able to use this functionality?


⚠ Bofrost.lu has degraded performance

In 6d77af3, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1128 ms

Resolved: Bofrost.lu performance has improved in 7a84ed5 after 8 minutes.


Fix pluck function

There is currently a method called pluck that lives in /lib/pluck.js.
It is incomplete and needs to be fixed!

Acceptance Criteria:

Running yarn test pluck results in tests passing.
You have written a skeleton method for someone else to work on.
You have written tests surrounding your skeleton method.
Running yarn lint does not print any errors to the console!
Optional: write one or two more tests surrounding the method you are solving to account for potential edge cases.

Please include the skeleton of a new method + an accompanying test for someone else to work on at the time of creating a pull request! A pull request will most likely be denied if it does not contain a skeleton method for someone else to work on! For more information, please read the Contributing Guide.
Thank you so much for your contribution!

Requires #563 to be merged first

I'll give this a shot as well, if you don't mind.
My only thing was that coming up with the Skeleton methods. I have zero ideas right now but I'll create one if need be.

Hah, ok, just realized the BOLD TEXT ON THESE. yea... I'll have to fix my other request, too.

Hey @Soben ! I'll mark as in progress, but yeah- make sure you come up w/ a new method! It keeps the project going :) Thanks!


[blog] Discord announcement blog

Quick and simple blog to let everyone know we are on Discord!

Notion
Discord

https://deploy-preview-38258--material-ui.netlify.app/blog/2023-discord-announcement/

A dead file docs/public/static/blog/2023-discord-announcement/discord-preview.png?
It's close to 1 MB docs/public/static/blog/2023-discord-announcement/discord.png is there room to compress it?

yup, dead file. Was going to post a screenshot of the server but it didnt add any value when writing about it. I removed it
I ran it through image optim before uploading. Will see if i can compress it more


LongTermCredential, lossy conversion from UTF-8

org.ice4j.security.LongTermCredential.toString(...)
    line 77
    incorrect: new String(bytes, "UTF-8");
    problem  : unexpected bytes translated to 0xFFFD
    correct  : CharsetDecoder with onMalformedInput(REPORT), onUnmappableCharacter(REPORT)
    Also consider using static final Charset UTF_8 = Charset.forName("UTF-8"),
    (no UnsupportedEncodingException, UTF-8 must be supported).

or java.nio.charset.StandardCharsets.UTF_8


added files for news-api

Hey There ! I have added files related to news-api-projects using html,css and js! Hope you accept it!

Hi, You need to add your project details in the main README.md File
You can follow this Example: example-readme-details


Try not to move the existing panes

Right now tmuxl can and does move the existing panes at times as it doesn't really account for them -- it could possibly do this better by reusing the ids or issuing splits elsewhere etc.

This should be fixed by https://github.com/avamsi/tmuxl/commit/54cae7bcbaf972a2f7709c3c4d4a23ab1f4abee0.


Update sbt-pgp to 2.0.2

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

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

labels: sbt-plugin-update, semver-patch

Codecov Report

Merging #92 (3d99565) into master (2986a83) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #92   +/-   ##
=======================================
  Coverage   54.41%   54.41%
=======================================
  Files           1        1
  Lines          68       68
=======================================
  Hits           37       37
  Misses         31       31

Continue to review full report at Codecov.

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


Rechunk xarray

It would be useful to be able to use rechunker directly on an xarray Dataset (or DataArray), similar to the xarray chunk method.

Yes absolutely. This is in fact the most likely way users would want to interact with rechunker.
One challenge is that xarray does not (easily) expose the underlying stores that were used to create the Dataset objects. (Those may not even exist if the data has been modified from its on-disk version.) What we could easily do in the short term would be to work with the dask arrays (as implemented in #27) for each variable.

Fixed in #52


Launcher <IP_ADDRESS> to 3.1 Update error/fails

Release Type: Official Release/GitHub (please choose appropriate option)
Version: <IP_ADDRESS>-beta01-0441
Platform(s): Windows 10 Pro Build 1809
Describe the bug
Update fails to install
To Reproduce

Run Xenko Launcher
Click download for Xenko 3.1 update

Log and callstacks
An error occurred while installing version <IP_ADDRESS>-beta01-0441.
Failed to retrieve information about 'Humanizer.Core' from remote source 'https://api.nuget.org/v3-flatcontainer/humanizer.core/index.json'.
Unable to find package 'Xenko.Core.Assets.Quantum.<IP_ADDRESS>-beta01-0441'.
 at NuGet.Protocol.FindPackagesByIdNupkgDownloader.<GetNuspecReaderFromNupkgAsync>d6.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.<GetDependencyInfoAsync>d7.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.Commands.SourceRepositoryDependencyProvider.<GetDependenciesCoreAsync>d22.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.Commands.SourceRepositoryDependencyProvider.<>cDisplayClass21_0.<<GetDependenciesAsync>b0>d.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.Commands.SourceRepositoryDependencyProvider.<GetDependenciesAsync>d21.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.DependencyResolver.ResolverUtility.<CreateGraphItemAsync>d2.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at NuGet.DependencyResolver.ResolverUtility.<FindLibraryEntryAsync>d1.MoveNext()

The title of the issue is confusing as there is no such thing as an update from 3.0 to 3.1 in the launcher: both versions have their separate entry.
The actual issue seems to be a network/nuget failure. Try again and it should work.
On a side note, it is quite surprising to see an error related to the 'Humanizer.Core' package since I don't think we use that library.

@Kryptos-FR We do indirectly :)
https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp.Features/2.10.0
I will close this as a duplicate of #310


feat: user pages

https://github.com/denoland/saaskit/issues/181

nvm, already included the new getItemsByUser() in /utils/db.ts and also added the items to the user page


Cannot find module 'virtual:pwa-info' or its corresponding type declarations.

Hello,
I'm following the Prompt for Update PWA Example
Already done this but I can't find a way to disable TS2307 error
tsconfig.json:
{
  "extends": "astro/tsconfigs/strict",
  "compilerOptions": {
    "types": [
      "astro/client",
      "vite-plugin-pwa/info",
      "vite-plugin-pwa/vanillajs"
    ],
  }
}

=> I got error here : Cannot find type definition file for 'vite-plugin-pwa/info'. The file is in the program because: Entry point of type library 'vite-plugin-pwa/info' specified in compilerOptions
env.d.ts:
/// <reference types="astro/client" />
/// <reference types="vite-plugin-pwa/info" />
/// <reference types="vite-plugin-pwa/vanillajs" />

package.json:
{
  "name": "tarifs-besancon",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro check && astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@1055/ui": "workspace:^1.0.0",
    "@astrojs/check": "^0.3.2",
    "astro": "^4.0.4",
    "sharp": "^0.33.0",
    "typescript": "^5.3.3"
  },
  "devDependencies": {
    "@vite-pwa/astro": "^0.2.0",
    "workbox-window": "^7.0.0"
  }
}

Everywhere I try to import virtual:pwa-info or virtual:pwa-register I got the TS2307 error
There nothing specific to Astro for type declaration in the docs so I don't know what to do

what package manager are you using? try installing vite-plugin-pwa as dev dependency

pnpm ! I'll try this ✅ I'll let you know

Here is a really basic CodeSandbox where we can see the error :

it seems a problem with pnpm and shamefully-hoist and/or installing peer dependencies...

can you try adding "typescript": "^5.4.2" to your dev dependencies and move all deps to dev dependecies in the repo/codesanbox reproduction (also update to latest Astro and "vite-plugin-pwa": "^0.19.4" as dev dependency)?
Running pnpm astro check seems to be fine now:


search job by data

Hi,
What mechanisms kue provides me for searching a job by it's data?
My use-case comes from the RTB world, where ad campaign settings need to be visited daily - unless the advertiser pulled the campaign off.
So consider I have a delayed job per campaign, that once visited - it reschedules for the next interval.
But - when the advertiser pulls the camaign - I need to be able to abort it.
While I can on job-process time go to the advertizer db and see if the campaign is still active, I fancy a hook in which I can find the job and abort it in real time.
I'd appreciate any input.
If the functionality is there - great.
If it rolls to a feature-request - AND if we react fast - I'll be able to help as long as I'm working on this project.
Thanks,
O

I wrote an article that might help you
https://medium.com/@sanchitbansal10/search-kue-jobs-by-job-data-c33972c04c6c


Where is the Supplementary material?

nice work! Your paper lists multiple references to "Supplementary" but it's not in the attached paper. Do you have a link?

https://openaccess.thecvf.com/content/CVPR2021/supplemental/Kar_Zero-Shot_Single_Image_CVPR_2021_supplemental.pdf

Thanks!


logger seems to be duplicating logs / missing context

If you run a tendermint server and turn on the example app, you might see logs such as this:
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 5] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6][message_type:begin_block][hash:0x82799495fa53a682e50f958546ec58d1f9ff24041f9027b550863358068e6e0f][last_commit_info.round:0][header.app_hash:0x][header.chain_id:test-chain-qFW9Ac][header.proposer_address:0xf5fa01b64b1ba1e54ee6d7b640dd4328db9ff7d8][header.height:126][header.consensus_hash:0x048091bc7ddc283f77bfbf91d73c44da58c3df8a9cbc867405d8b7f3daada22f][header.total_txs:0][header.time:1.565061668067311e9][header.validators_hash:0x6b0f6ee69f6c7d6c34b7bc403cd266d9676663c4c193dcda14760ae608d0fb46][header.next_validators_hash:0x6b0f6ee69f6c7d6c34b7bc403cd266d9676663c4c193dcda14760ae608d0fb46][header.last_block_id.parts_header.hash:0x25a3642e99cbed7a8fb3ecd077753714108d82f95c20b2f6da822427c09bcc46][header.last_block_id.parts_header.total:1][header.last_block_id.hash:0x3a216ef41e834094447a6d5b59f90e7fb66c62b6a194f0ba10ce51cfef115393][header.evidence_hash:0x][header.last_commit_hash:0x720ecfa2b29be954e5ed69ff0a942b9f7890a53fc7f2b1de93b43fff4f6aa258][header.version.app:0][header.version.block:10][header.last_results_hash:0x][header.data_hash:0x][header.num_txs:0] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6][message_type:end_block][height:126] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 5] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:09][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received

It seems like there is some dulplicates / missing context?
for example:
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 5] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received
[2019-08-06 03:21:08][ABCI.Server][Info][Martins-MacBook-Pro.local][28658][ThreadId 6] Request Received

For the time being (before we do #41) you can start tindermint core if you have a tendermint binary in your path (v0.32.2)
> tendermint init
> tendermint node

then you can start the example app with
> make run-simple-storage

Seems the extra logs come from empty requests:
I changed ToObject instance to the following.
instance ToObject (Loggable (Request (t :: MessageType))) where
  toObject (Loggable v) = case A.toJSON v of
    A.Object o -> addMessageType v o
    -- unreachable case
    a          ->  at "showing_request" ?~ A.String (pack $ show a) $ mempty
   where -- everything else the same
      .
      .

Then running the both tendermint and the server I got the following:
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 6][showing_request:Array []] Request Received
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 6][message_type:end_block][height:33] Request Received
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 6][showing_request:Array []] Request Received
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 5][showing_request:Array []] Request Received
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 6][showing_request:Array []] Request Received
[2019-08-08 04:31:10][ABCI.Server][Info][Charless-MacBook-Pro.local][42308][ThreadId 6][showing_request:Array []] Request Received

Strange that empty requests are passed in since they don't seem to be of the MessageType.

After seeing Charle's comment, I looked into it as it seamed too strange and here is  "fix" https://github.com/f-o-a-m/hs-abci/pull/55
it's "fix" and not fix because after that pr is merged we would see nice logs but, underling issue is different.
We have
https://github.com/f-o-a-m/hs-abci/blob/bf9df3ec3d05c1e8e92f2f7a667b2458912be234/hs-abci-types/src/Network/ABCI/Types/Messages/Request.hs#L67-L74
and
https://github.com/f-o-a-m/hs-abci/blob/bf9df3ec3d05c1e8e92f2f7a667b2458912be234/hs-abci-types/src/Network/ABCI/Types/Messages/Request.hs#L392-L402
Looks like generic deriving of in ToJSON instances for these result in empty json array and as Request GADT defferes to ToJSON instance of underlying type as a result you wouldn't be able distinguish toJSON $ RequestCommit Commit and toJSON $ RequestFlush Flush from each other.
i.e. issue is that  ToJSON/FromJSON instances of Request and Responce are incorrect. instead they should have repesentation like this:
{ type: "flush", message: []}
{ type: "begin_block", message: {...}}

i.e.
https://github.com/f-o-a-m/hs-abci/blob/aaccc11f4963449cd84793608dadbeb0a1556459/hs-abci-extra/src/Network/ABCI/Server/Middleware/RequestLogger.hs#L23-L24
I've created issue for it https://github.com/f-o-a-m/hs-abci/issues/56

Besides this, I would recommend to use something like unsafeCrashWith "error message here"  from PureScript, for cases where we can't guaranty something by type system and we think is unreachable/impossible and explaine why it's like that as the error message, so if in future some of the assumptions change and impossible becomes possible, we get error message instead of incorrect behavior/silence.

Ahh got it, that's my bad didn't realize types without any parameters were treated that way.


track fx pool params

https://github.com/balancer-labs/balancer-subgraph-v2/pull/292

Build failed because it's missing a field from another PR, should work fine on staging-dev


Updated revisions of libs: scodec 1.10, scalaz-stream 0.8.1, scalaz 7…

….1.8, commons-pool-2.4.2, netty 4.1.0, flush client request in pipeline to avoid ~1 sec lags, minimum of 4 default endpoint and worker threads to avoid 100 to 200ms lags with single CPU machines awaiting for free connection.
This subsumes PRs 106 - 108 and adds:
1.) update of scodec, scalaz-stream (0.8.x) and scalaz (7.1.x) to latest.
2.) sets a minimum for endpoint and worker threads when they are not set by client but default to num processors, as it has been observed that there were lags even when processing one request at a time when the thread pool were less than 4 due to non-connection use of the thread (overhead, decoding, encoding).  The worker threads can be configured to be higher, obviously, but endpoint pool can't.  If acceptable and it is desired to merge 106 - 108 individually, I can re-base this to just include the deltas. Or if it is desired just to bump the versions and not include the thread pool changes.  @ahjohannessen, FYI ...
These changes constitutes the deltas from 1.4.3 which we are using in our application now.

I think it is fine to merge this as whole. WDYT @timperrett ?

@sbuzzard @ahjohannessen  I think this looks like a great change set. If we can rebase to the latest master then we can get it merged in.

Probably smart to bump travis & build to use scala 2.11.8 as scodec, shapeless etc. are using 2.11.8 and macroparadise with 2.11.8


Compile Error

The twitter image seems to be broken.

Hi @Buni55!
It seems that your operating system doesn't support symbolic links created by git. Can you please copy opengraph-image.jpg and save it as twitter-image.jpg? This should temporary fix the compile error.
You can enable symbolic links in Windows by following this guide: https://stackoverflow.com/questions/5917249/git-symbolic-links-in-windows/59761201#59761201
Best wishes,
Eduard


[Support request] - BTicino connected Energy meters

Hello and thanks for your precious work.
I tought it would be interesting to report the power consumption coming from energy meters like these. As you already know and can see they're all widely supported by the new API Home+Control from Netatmo.
By checking the dev page, I can assume these devices are part of the "Wiring devices with Netatmo / Electrical panel with Netatmo" family, therefore they should use the NLPC (Connected energy meter, according to the chart) API type for connected energy meters. As for the gateway, we can use NLG / NLGS.
There are plenty of settings for this API's scope, including tariff calcualtion and so on. I think that using the "getmeasure" function, we should be able to get power consumption and all the relevant electrical data out of this kind of sensors. Afterwards, pushing this data to a specific energy sensor inside the Home Assistant instance, should give us the ability to track the consumption almost in real time (you know, API limits...) inside our energy dashboard.
A more significant approach should gave us the ability to directly connect to the energy meter and get data in real time (or at least with a really low latency) in order to trigger automations (e.g. switch off high-power demanding outlets / devices if we're asking for more than "X" kW of power, to avoid shutdown by electrical service).
I have an F20T60A connected energy meter available for testing purposes 👍🏻 it's communicating to the network using a K4510C gateway (which is similar to the DIN-mounting version).

So :) I was able to play around with APIs, here's what I found:
By calling the homesdata endpoint, without putting anything inside, you'll retrive your house id + the complete list of all the devices connected, in my case I can see the gateway itself (NLG), the remote command "Entra&Esci" (NLT) and also my energy meter (NLPC).
All these devices are listed with their properties like following:

id (represents the MAC address for the device, absolutely needed for commands)
type (the kind of api needed for the device, according to the table "API" product types)
name
setup_date
room_id
bridge (the MAC address of the bridge being used by the device)

Now focusing to the getmeasure instuction, which is the one we need to get all the energy values out of the energy meter, I was able to get my readings by passing these params to the function:

device id (gateway mac address, check out the homesdata call)
module id (meter mac address)
timeframe = 1h (just to have the same inside home.netatmo.com/control page)
types: sum_energy_elec$X (where X depends on what you like to track, 0 = basic tariff, 1 = on peak time, 2 = off peak time)
date_begin (I put the epoch for 05/03/2022 - 00:00, which is:<PHONE_NUMBER>)

I compared the data inside the Netatmo Control page with the output from this call and it's absolutely correct 💪 Here are some screens attached:

for some reason the response is skipping the first measurement, I assume it's something related to the epoch begin calculation
but apart from that, all the other measurings are correct. We should only take in count to divide each measurement by 1000 if we want to get kW.
Just few words about the sum_energy_elec$x parameter, under the "types" for getmeasure:
This parameter is supposed to differentiate the energy tariff. In some contracts (like mine) there is the possibility to have two different prices, split by two timezones. So, for example in my case I pay more from 8:00 am to 7:00 pm. Therefore, my energy price increases a little. During the other time period, the price goes a little bit down, here is the case I configured inside the Netatmo website:

And as you can see the blue bar indicates the on-peak tariff ($1). The white bar, instead, represents the off-peak ($2).
I'm not 100% sure about the correct behaviour for this parameter. I don't know if it's better to have only one tariff ($0) and let Hass change the price dinamically using an automation that triggers a numeric value change inside a numeric helper or directly fetch both the two tariffs. If we choose the last suggested way, at this point I think it's better to have different sensors to fetch all the three tariffs.
I'm pretty sure we should do something like this, so we should ask everytime for the last reading and push it to the energy dashboard. This is something that Hass should do by itself, so the sensor should only display one reading at time, in the shortest time possible in order to get the maximum accuracy, accordingly to API limitations. A more complex approach might also take in count the historical readings inside Netatmo site and use them to refine data inside the energy dashboard, but for sure the sensors must be a sort of "counter" that increases by itself and resets on their own at the end of the day.
Hoping this was helpful, I'm here to discuss more and get suggestions. Thanks!

Support added, so I am closing this request. Only minor tweaks needed to get historical values, since at the moment we can retrieve instant power values each 5-6 mins.


Remove Ubuntu < 12.04 support

Canonical no longer supports releases of Ubuntu earlier than 12.04 so I think this is safe to remove.
Should help close https://github.com/hw-cookbooks/runit/issues/178

I'm moving this to 2.0.0 milestone. Even though these platforms that are no longer supported by the vendor, I believe this represents a breaking change.

Looks like this duplicates #181

@cwjohnston I could close this in favor of that one.

Closing in favor of #194


Reset styles when new layer is created from a analysis drop action

Previously, we were resetting styles to the simple one only when a new analysis was added. But we forgot several cases.

When an analysis is deleted (fixed in case A, marked in the files).
When a layer is created when an analysis is dragged out (fixed in case B, C and D, marked in the files).

B: Node is head of a layer
C: Node is the source of a prevLayer.
D: Node is NOT a head of a node.
Just moved the same logic done when analysis is added, and used where required.

CR: @nobuti
cc @saleiva, who spotted first.

LGTM

Fixing previous tests and adding some more.

Frontend tests from Travis passed, merging.


--no-server option is frowned upon by GraalVM 19 Windows

The process exits with this error on Windows with GraalVM 19:
Error: Unrecognized option: --no-server

This is fixed with https://github.com/taylorwood/clj.native-image/pull/9

Fixed in 546a77a4492be2f1d9b48e43cb48fb0ebfa39cc2.


run erases imported API configuration retrieved with pull

Prerequisites

Have an existing API in API Gateway. Mine is created with CloudFormation, using C# Lambdas for integration.
In awsmobile features, user-signin and hosting are enabled, but notably cloud-api is NOT enabled.

Reproducing

Using the MobileHub console in the CloudLogic service, use the Import existing API feature to import your existing API.
Following the instructions in the MobileHub Integrate wizard, execute the awsmobile pull command.
View the aws-exports.js file and confirm that the aws_cloud_logic value is set to enable and the aws_cloud_logic_custom field contains a list of information about your imported API:

aws_cloud_logic : 'enable',
aws_cloud_logic_custom : '[{"id":"someId","name":"Some API","description":"","endpoint":"https://someId.execute-api.us-east-2.amazonaws.com/Stage","region":"us-east-2","paths":["/123"]}]',

At this point there are two forks that I want to cover but lead to the same result.

Fork 1: Follow the instructions
4a. The Integrate wizard next guides you here: https://docs.aws.amazon.com/aws-mobile/latest/developerguide/web-access-apis.html#connect-to-your-backend which, reading from the anchor, suggests you are ready to start coding. So, add some code, if desired.
let apiName = 'Some API';
let path = '/stuff';
let myInit = {
    headers: {}
}
API.get(apiName, path, myInit).then(response => { console.log(response.body); });

5a. Now that you are done coding, execute awsmobile run.
6a. See the following error:
BadRequestException: Your AWS CloudFormation stack is busy being updated. Please retry your request in a few minutes. Current stack state is DELETE_IN_PROGRESS.

7a. Return to the MobileHub/Cloud Logic console, refresh, and confirm that Your API(s) have been deleted. The CloudFormation stack that integrated with your imported API is now gone.
8a. View aws-exports.js and note the aws_cloud_logic* attributes are gone.
Fork 2: Try to be smarter than the instructions
4b. Instead of just coding and then running, let's try running awsmobile cloud-api enable locally first.
5b. Confirm the aws_cloud_logic* variables are unchanged in the aws-exports.js file.
6b. Code as in Fork 1, if necessary, although your code should still be there.
7b. Now execute awsmobile run.
8b. Note the zipping sampleLambda step under building cloud-api.
9b. Note various CloudFormation states pass by on the status check line.
10b. Eventually, the application starts.
11b. Return to the MobileHub/Cloud Logic console, refresh, and confirm that your imported API is now deleted. The sampleCloudAPI provided by awsmobile cloud-api enable should be present.
12b. View aws-exports.js and note the aws_cloud_logic* attributes are gone.
Conclusion
It appears that no matter what I do, it is not possible to execute an awsmobile run with an imported API in Cloud Logic. It is also worth noting that in both cases, the code (similar to what is shown) generates the following error: API no configured

Somewhat similar to #9, though in that case there is no pull before the silent erasure.


Make demo presentable

Add some print statements to the CLI, something to show that the trace and memory files are the same as the ones generated with the Rust implementation.

something to show that the trace and memory files are the same as the ones generated with the Rust implementation.
You mean the compare_trace_memory target?

You mean the compare_trace_memory target?

Yes


fix(ci): fix killing command of error ui test

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Try to resolve https://github.com/risingwavelabs/risingwave/pull/16397#discussion_r1574765529
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Maybe we can skip running error ui tests for standalone and single node mode.


Revert Mono-MDK to sha256 :no_check.

Only 2 hours after https://github.com/caskroom/homebrew-cask/pull/15931 was merged they apparently updated it.

Merged as b4bd120fe0e6994029980c91c556613cceccced5.

:joy:


[docs] Better scaling on mobile and small screens.

Hopefully the docs will become easier to read on mobile devices.
Related: glfw/website#70
Follow up to : glfw/website#71

Some of the elements in the top navigation bars seem to be displaced. Currently they look like this

With this PR they instead look like this on Firefox and Edge

Would it be possible to move the three top links to where it matches the rest of the site?

It should be fixed now; forgot to test on big displays xD

Thank you!

You're welcome! 😊
On Thu, Sep 3, 2020, 12:23 AM Camilla Löwy<EMAIL_ADDRESS>wrote:

Thank you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/glfw/glfw/pull/1757#issuecomment-685961309, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIGT2QIQYVXFIOC63PVSXTSD2PEJANCNFSM4QRMDSUA
.


create project on Window

i.m using windows
->react-native init AutobotProject
This will walk you through creating a new React Native project in C:\Users\Navi\AutobotProject
Installing react-native package from npm...
this on the screen more than few hours not respond
my project file create only one package.json file
after few hours display this error
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save" "react-native"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
npm ERR! shasum check failed for C:\Users\Navi\AppData\Local\Temp\npm-4148-016236de\registry.npmjs.org\rebound-\rebound-0.0.13.tgz
npm ERR! Expected: 4a225254caf7da756797b19c5817bf7a7941fac1
npm ERR! Actual:   073eb296fe00d40a4a8757e9367f104dabfc2e49
npm ERR! From:     https://registry.npmjs.org/rebound/-/rebound-0.0.13.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Navi\AutobotProject\npm-debug.log
npm install --save react-native failed
what i do pls help....

Try to use an other version of node (e.g. 5.6.0) and npm.

thanks...
change my  node version 4.-.-LTS
before a hour start-->
react-native init AutobotProject
This will walk you through creating a new React Native project in C:\Users\Navi\Desktop\AutobotProject
Installing react-native package from npm...
but now create package.json and node-module others not created.
please help.

Are you saying that the package.json didn't get initialized by "react-native init" command?

now created...

thank u guys..

Closing as it seems the original issue is now fixed.

Hi,guys,how did it solved? i meet it too
os : windows 7 64 bit
nodejs:v5.10.1


Add go dep as pkg mgmt

fix #70 .

I full agree with you @dswarbrick. But in the meanwhile what we do, leave it in an unstable statusm Do you know vgo release date btw?

@dswarbrick ok thx, i agree with you about vgo. Closing this pr
We might continue the conversation on the issue referenced.
Ciao cu!


Consider adding Windows on ARM build of llama.dll to LLamaSharp.Backend.Cpu

The llama.cpp project added a native binary build of llama.dll for the Windows on ARM platform in release b2399 (with the rather misleading filename llama-b2399-bin-win-arm64-x64.zip). Please consider adding this to the LlamaSharp.Backend.Cpu NuGet package. 🙂

Hi, we're certainly willing to add such a backend. Could you please test whether it works well with current LLamaSharp? Though we could compile and test it with github actions, the period of debugging it will be much longer since we don't have arm windows device. So if you'd like to help it'll save a lot of time. :)
Here're some steps for it:

Clone llama.cpp and checkout to 3ab8b3a92ede46df88bc5a2dfca3777de4a2b2b6.
Compile it on your PC and get a file llama.dll.
Modify the code here to use NativeLibraryConfig.Instance.WithLibrary to load your compiled library file.
Run the examples one by one and see if they all works well.

If all things above go well, what we need to do is just adding it to CI and release next version. :)

Unfortunately it looks like Github Action doesn't have Windows+ARM available (docs) :(

And using the ARM DLL from llama.cpp's official releases isn't a viable workaround?

And using the ARM DLL from llama.cpp's official releases isn't a viable workaround?

Using dlls from llama.cpp's release will bring some troubles for auto binary-updating in CI, but I think we could make it as long as you've confirmed that LLamaSharp works well with that dll.

I have a Windows Arm device. The latest llama.cpp releases have two options for Windows arm64: llama-b3510-bin-win-llvm-arm64.zip and llama-b3510-bin-win-msvc-arm64.zip
llama-b3510-bin-win-llvm-arm64.zip: Build has llama.dll, which when loaded using NativeLibraryConfig.All.WithLibrary in Llama.Examples loads and runs the examples with no issues.
llama-b3510-bin-win-msvc-arm64.zip: Build has the usual libllama.dll and when I attempt to load this using NativeLibraryConfig.All.WithLibrary I get the same LLama.Exceptions.RuntimeError: The native library cannot be correctly loaded. It could be one of the following reasons: error as I do with the current native libraries in LLamaSharp.Backend.Cpu.
I can't really say why the llvm build works fine but the msvc build fails to load. The differences between various c++ compilers/toolsets is a bit outside my wheelhouse (which is why I really love LlamaSharp), but I can say that the win-llvm-arm64 build works fine on my Windows ARM laptop.

The current LLamaSharp version (0.15.0) is compatible with llama.cpp b3479. You need to make sure you're using that version if you're loading custom binaries.

The current LLamaSharp version (0.15.0) is compatible with llama.cpp b3479. You need to make sure you're using that version if you're loading custom binaries.

Good to know, thank you.
Ran it again using b3479 version of both win-msvc-arm64 and win-llvm-arm64 and they both load without issue and work just fine with the examples I tried.