Image changes not properly reflected if element is used inside another element

As discussed here, there are a couple of  features I'd like to add (and I would set up the pull requests for these).  I have a problem though: the original demo does not seem to work.   Here's what I'm doing:
bower install
polymer build
polymer serve

Then, I visit <IP_ADDRESS>:8081 in the browser.
The page does not render correctly - rather, this text is all that is displayed:
Basic image-carousel demo
image-carousel demo with autoplay feature
image-carousel demo with no dots
image-carousel demo with no navigation icons

I believe the problem is that the paths are wrong in demo/index.html, or am I missing something?  If this is working, then I can just extend to add to demo the new features.   BTW, the features are:

Using dom-repeat to populate carousel does not work from inside another polymer element.  The problem seems to be that this.computeNumberOfImages() is being called before the slot is populated.  Why this only happens inside another polymer element, and not directly in index.html, I don't know.  Adding the following to connectedCallback fixed the problem:

this.shadowRoot.querySelector('slot[attribute="images"]').addEventListener('slotchange', e => {
            this.computeNumberOfImages();
        });

There is currently no way to react to the selection of a particular image in the carousel.  For my use case, I need to do some back-end stuff based on a particular image. Dispatching the event following inside the if(elem) conditional of _changeAttrAndProps achieves this:

let event  = new CustomEvent("selection-changed" , {
       composed: true, // allows to pass through shadow dom to parent
       detail: {
           id: this.id,
           index: e.model.index
   }});
this.dispatchEvent(event);

When the event is dispatched, any listeners get the id of the carousel element doing the dispatching (assuming that the id was set on the element, of course), as well as the index of the carousel item being displayed.
I'll be happy to do these as pull requests, but first the demo should be in working order.  Or maybe I need to be educated as to what I'm doing incorrectly in running it :)

So, I was missing something after all.  I was visiting the wrong url.  when I visit http://<IP_ADDRESS>:8081/components/image-carousel/demo, all is good!
If you want me to add the pull requests & update the demo, let me know...

Sure. That will be great

For your selection-changed is image-carousel-changed event not doing the trick?

image-carousel-changed seems only to fire when images are inserted, not when selected by the user

Just to clarify you want to do some action when the image that is viewable changes and not when user selects/clicks on the image

What I want is an event fired when the user selects an image, either with the dots or the arrows.  In my use case, I load the carousel once, using dom-repeat (as in the other demo cases).  What I see is that 'image-carousel-changed' fires three times, presumably as each image is loaded.  But that doesn't do me any good for my use case.  What I need is that the event fires when the user initiates the change, either through using the arrow keys, or the dots.  The 'selection-changed' event that I'm proposing does just that.

So, that does not include image change because of auto-scroll?

Ah, good point. I've added a user-settable boolean, notifySelectionChanged, whose default value is false.  That way, the user must specify this explicitly in order for notifications to be generated.  A user could set nofitySelectionChanged=="true" if desired, even when autoscrolling, iof that's the behavior they want.  This is not checked in yet -- do you want me to add it to the current pull request branch, or wait until you've merged that, at which time I'd do another pull request?

Another PR will be a better option.

Ok, will do

I've published new version 2.1.0 with all the fixes.


Add MKL for a faster DDtheta test run

Is your feature request related to a problem? Please describe.
Running the tests DDtheta_mocks always take a long time because there are no vectorized acos functions available directly through gcc/clang.
Describe the solution you'd like
A clear and concise description of what you want to happen.
icc has an implementation through MKL/SVML, and would be good to i) either install MKL as a dependency (with an option to disable) or ii) check if MKL is already available.
Then during compile time, if MKL is available, we should just use the vectorised MKL trig routines - will speed up the DDtheta_mocks runs significantly.
Describe alternatives you've considered
Compile directly with icc, if available.
The MKL linking code already exists in common.mk, so might not be too difficult to sort out

Noting that the intel channel on conda has an mkl-devel package, that contains the relevant mkl.h header and the libraries. We could add an option to request MKL and expand out the inverse cosine into the MKL-defined functions + the existing fallback when neither icc nor MKL are available.


Correct typos in roadmap/STRUCTURES.md

I would also suggest to add a hint, how structs are used and when and why.
Currently, this is still obscure to me. An example and some rules of thumb might help.

@ShalokShalom Any joy?

What do you mean?

@ShalokShalom I mean the change to polymorpic or any further developments in this PR

@ShalokShalom You introduced a change from polymorphic to polymorpic. That's not correct as far as I'm aware

I guess both is fine
I showed you the example from the dictionary while I see that both is readable
Maybe such a difference between English UK and US?

I changed it from polymorhpic to polymorpic, which is both wrong :D
Now its correct ^-^

@ShalokSalam oh! I was reading this issue over 10 times and I've never noticed the h and p were inversed :O
I'm blind

And I committed the wrong thing in the first place, together with a link to the correct one, so I am pretty blind as well ;-)


[DOC][MINOR] ml.feature Scala and Python API sync

What changes were proposed in this pull request?
I reviewed Scala and Python APIs for ml.feature and corrected discrepancies.
How was this patch tested?
Built docs locally, ran style checks

cc @MLnick @holdenk

Test build #58728 has started for PR 13159 at commit a124a1a.

Test build #58728 has finished for PR 13159 at commit a124a1a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58728/
Test PASSed.

Test build #58792 has started for PR 13159 at commit 2b657c5.

Test build #58792 has finished for PR 13159 at commit 2b657c5.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58792/
Test FAILed.

retest this please

Test build #58795 has started for PR 13159 at commit 2b657c5.

Test build #58795 has finished for PR 13159 at commit 2b657c5.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58795/
Test PASSed.

Thanks for doing this, looks like a good improvement. While we are updating the PyDocs here it seems like some of stages that require fitting make links to the transformer/model when they say fitted by and some don't - we could consider fixing the links while we are here but its probably not all that bad to leave as is.

Ya, that would be good to fix and might as well do it here

Test build #58812 has started for PR 13159 at commit 09f3078.

Test build #58812 has finished for PR 13159 at commit 09f3078.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58812/
Test PASSed.

LGTM, thanks @BryanCutler. Merged to master/branch-2.0

@MLnick did you actually merge this in 2.0?

@rxin I thought I had but must have missed it by mistake. Thanks for picking to 2.0


add .. as syntax to pattern matching example

for example [head, .. as tail] -> 9

Hi @Anton-4  I tried to setup a very simple code for this here
Basically used the [head, .. as tail] pattern to find length of a list or to find an element in a list
Does the code look ok ? If so I can create a PR or if you had any suggestions before I create a PR I can correct that as well. Thank you

Yeah, looks like a great start @bairymr. Thank you for looking into this. I'd say make a PR and we can make any edits/comments.
Some comments (my 2cents) 😄
I would write this
listToStr = List.map list1 Num.toStr
                |> Str.joinWith ","

# like this
listToStr =
    list1
    |> List.map Num.toStr
    |> Str.joinWith ","

For the length of a list we have List.len which is free, so I would rather encourage we share this with new users.
I'd format the if then else on multiple lines so it's easier to read

Thank you @lukewilliamboswell . Appreciate you taking time to explain this. I have restructured the code now to remove the function to find the length of the list. The search is modified to return a boolean rather than a string. Also the listToStr variable is formatted now.
I will create a pull request shortly.


Change locale doesn't update selected value

I'm Submitting a ...
[ ] Bug report
[ ] Feature request
[x] Support request

Expected Results
Everytime I change the locale it should change the selected value of the picker.
Actual Results
It doesn't change the locale of the selected value, but if the user clicks in another date it renders as it should (correct locale).
How do I need to do to make it work?
Minimal Reproduction of the Problem
Demo
import React from "react";
import { render } from "react-dom";
import Datetime from "react-datetime";
import Moment from "moment";

class Container extends React.Component {
  constructor(props, context) {
    super(props, context);

    this.state = {
      value: undefined
    };
    this.onChange = this.onChange.bind(this);
  }

  onChange(e) {
    this.setState({ value: e });
  }

  render() {
    return <Datetime value={this.state.value} onChange={this.onChange} />;
  }
}

class App extends React.PureComponent {
  constructor(props, context) {
    super(props, context);
    this.state = {
      currentLanguage: "pt-PT"
    };
    this.onChangeLocale = this.onChangeLocale.bind(this);
  }

  onChangeLocale() {
    let next;
    if (this.state.currentLanguage === "en-US") next = "pt-PT";
    else next = "en-US";

    Moment.locale(next);
    this.setState({ currentLanguage: next });
  }

  render() {
    return (
      <div>
        <Container />
        <button onClick={this.onChangeLocale}>Change locale</button>
      </div>
    );
  }
}

render(<App />, document.getElementById("root"));

I found that the problem isn't the "react-datetime" itself, but the way I store the value.
Since I'm saving it as an instance of Moment, it will not update if I don't create a new object.
What I changed:
 onChange(e) {
    this.setState({ value: e });
  }

To
  onChange(e) {
    this.setState({ value: e.valueOf() });
  }

And inside render I just convert the value to moment:
  render() {
    return <Datetime value={Moment(this.state.value)} onChange={this.onChange} />;
  }

Demo


Samples: Each sample needs its own .gitignore file

Otherwise, when copying a sample for use as an app starter template, git will want to check in all built files, node_modules contents, and other unwanted things.

Fixed.


Create averaging functionality of sensor reads to prevent read errors

Moving this to the backlog because we'll need to redesign the temperature driver in order to get this to work. Will need to discuss with team member(s) and possibly Nic to see if this functionality is needed.

Complete.


Restrict the branch to master

Restrict the run only for the master branch commit

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mkumatag
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [mkumatag]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mkumatag: Updated the job-config configmap in namespace prow at cluster default using the following files:

key kubernetes-postsubmit.yaml using file config/jobs/ppc64le-cloud/builds/kubernetes-postsubmit.yaml

In response to this:

Restrict the run only for the master branch commit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Add atom feed generation

Looks good. Couple of PHP style points inline.

All good feedback – I've updated everything as you suggested, except the docBlock (which you suggested you will change, if I understood you correctly).


Does Request have 'on('end') event?

Does Request have 'on('end') event?

In my case it works. It started when I moved 'end' before pipe():
        var deferred = Q.defer(),
            writeStream = fs.createWriteStream('...');
        request.get(url)
            .on('error', ...)
            .on('end', function () {
                deferred.resolve(....);
            })
            .pipe(writeStream, {end: false});


Remove all listeners for a plugin

Match removeAllListeners() function with Capacitor API to remove all listeners of a plugin.
Refs #137

Is there any documentation on how to use events on a Capacitor Electron plugin?
I'm still having issues understanding how to use/implement this, and can't find any implementation examples.

@hampoelz thanks! I have something similar but it's not working.
I'm just confused what to put in each file of the plugin codebase.
src/definitions.ts:
export interface SomePlugin {
    echo(s: string): Promise<string>;
}

electron/src/index.ts
export class Some extends EventEmitter implements SomePlugin {
    echo(s: string): Promise<string> {
        return Promise.resolve(s);
    }
}

It sounds like the above example would let you do something like this, from the client code:
import { Some } from 'some-plugin';

const hello = await Some.echo('hello');

const id = Some.addListener('some-event', () => console.log('fired'));
Some.removeListener(id);

But the last two lines won't work because those methods are not implemented on the plugin.
I also don't understand what this means from the example:
CapacitorCustomPlatform.plugins.MyPlugin.addListener('my-event', console.log);

Where do I access CapacitorCustomPlatform from?
Any help is much appreciated!

@matallui your code looks good to me. Apparently it's not supported yet to access Electron plugin eventemitter via the import statement. (Maybe there is a way, but I don't know it)
If you're using Capacitor with the bundled Capacitor-Core you can access your plugin with Capacitor.Plugins.yourPlugin or on Electron with CapacitorCustomPlatform.plugins.yourPlugin. (Capacitor and CapacitorCustomPlatform are globally scoped)
(I'm using const myPlugin = Capacitor.Plugins.myPlugin || CapacitorCustomPlatform.plugins.myPlugin; to access my plugin cross-platform)

@hampoelz thanks! I actually got it working by simply type casting the plugin to any:
import { Some } from 'some-plugin';

let listener: any;

listener = (Some as any).addListener('some-event', console.log).then(res => (listener = res));

// some code

if (listener) {
  if (listener.remove) {
    // iOS & Android
    listener.remove();
  } else {
    // electron case
    (Some as any).removeListener(listener);
  }
}

This is what is working for me right now.

@matallui may I ask what are the contents of "SomePlugin" in your case when you got the addListener to work? while I am a bit unfamiliar with typescript, my interface has this method:
addListener(
    eventName: 'sampleStatusChange',
    listenerFunc: SampleStatusChangeListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;

and my class is written similarly as yours where it "extends EventEmitter and Implements SamplePlugin" but I don't call addListener and it returns an error:
electron/src/index.ts(8,14): error TS2420: Class 'SampleElectron' incorrectly implements interface 'SamplePlugin'.
         The types returned by 'addListener(...)' are incompatible between these types.
           Type 'this' is not assignable to type 'Promise<PluginListenerHandle> & PluginListenerHandle'.
             Type 'SampleElectron' is not assignable to type 'Promise<PluginListenerHandle> & PluginListenerHandle'.
               Type 'SampleElectron' is not assignable to type 'Promise<PluginListenerHandle>'.
                 Type 'this' is not assignable to type 'Promise<PluginListenerHandle>'.
                   Type 'SampleElectron' is not assignable to type 'Promise<PluginListenerHandle>'.
                     Type 'SampleElectron' is missing the following properties from type 'Promise<PluginListenerHandle>': then, catch, [Symbol.toStringTag], finally

I have gotten my other functions to work when it doesn't involve addling listeners so I'm hoping someone could help me out with this one.

@Gangceen I used Capacitor once about 2 years ago, at a previous job. I can't remember exactly what I did back then, and I don't have access to that code to share, unfortunately.
If the info here is not enough, not sure I can really be of much help.


Properly handle the case where an environment variable is an empty string

v.idup is undefined when called on an empty array, and currently it
returns null.  This is undesirable because we want to differentiate
between not-present and empty-but-present.

LGTM. Is there an issue report associated with this?

No, I just ran into it.

When the style is fixed LGTM

Um, I meant fix it for that line specifically, but w/e. Thanks for putting it in a separate commit though.
LGTM

Auto-merge toggled on

Why hasn't the auto tester merged this?

That's a good question.

https://auto-tester.puremagic.com/show-run.ghtml?projectid=1&runid=1913350&isPull=true

Auto-merge toggled off

Turned off auto-merge to quit prioritizing this build since it's broken on windows.

Turned off auto-merge to quit prioritizing this build since it's broken on windows.

Possibly related: https://github.com/D-Programming-Language/druntime/pull/1404#issuecomment-171425594

The autotester is still failing, and doesn't seem to be related to timerfd.  The line number doesn't seem to make any sense (points to import core.thread;??! though claiming to be a unittest failure).  Something wrong with this fix on Windows?  Does Windows allow empty environment variables or does it treat them the same as unsetting?

P.S. A little googling reveals that, disturbingly(?), the Windows command prompt treats empty environment variables the same as non-existent. So this fix will not work on Windows.
Probably a version(Posix) is in order, somewhere in this PR?


Make descending star count default view in production

Most starred cards should be first

Call it "Popular" and have it be selected by default

Might need to make it so there isn't a default section in the database that will be selected

Perhaps a an icon for the popular item

Icons
Trending Up
Rocket Launch
hotel Class
Insights
Auto Awesome

[ ] Remove 'default' from section 1 in production
[ ] deploy


Redeploying "production" with new variables GraphQL query failed with 1 errors: Not Authorized

When trying to set an environment variable inside a github action I'm getting the following error:
Run npx railway variables set HELLO="world"
==> Updated HELLO for "production"
HELLO: world

🚝 Redeploying "production" with new variables
🚅 Redeploying "production" with new variables
🚄 Redeploying "production" with new variables
🚇 Redeploying "production" with new variables GraphQL query failed with 1 errors: Not Authorized

The weird part is that the variable is set on the app but the failure makes the github actions fails and stops.
Here is a github action to replicate the issue:
name: Railway
on: push
jobs:
  deploy:
    runs-on: ubuntu-18.04
    env:
      RAILWAY_TOKEN: ${{secrets.RAILWAY_TOKEN}}
    steps:
      - uses: actions/setup-node@v1
        with:
          node-version: '15'
      - run: npm install<EMAIL_ADDRESS>-g
      - run: npx railway variables set HELLO="world"

Huh, aight we’ll defs have a look into it!
Will circle back next week with a response

This should be fixed now in the current CLI release. Please let us know if there are any more issues with it.

Thank you, it works now!


Transparent billboards not working as expected.

From the mailing list: https://groups.google.com/d/msg/cesium-dev/_RSvkl1M9d8/fDV7_ZgBBXkJ

Pase this gist into Sandcastle: https://gist.github.com/rlittlefield/e7ee65ccf3f103fcc78d
Select "add polyline to old collection"
Select "add polyline to new collection"

Orient the camera so that the billboard is visual in front of both lines, you'll see a screenshot similar to the below.  I would expect both lines to behave like the line on the left.
Here's a screenshot

The billboard-transparency branch has a hacked in fix for this. If we decide to go with two passes, I could clean it up.

On my laptop, I'm seeing odd borders behind label billboards, do you think it's related to this?  Or perhaps another bug?  In the below shot, the G is obviously this bug, but the odd border on the 1 seems like something different.

I think #3011 fixes the border issue, but I need to test it out on more machines.

Recently brought up again on the mailing list: https://groups.google.com/d/msg/cesium-dev/LAeE70CWecs/Y_BtC_u4DwAJ

Could be the problem: http://www.realtimerendering.com/blog/gpus-prefer-premultiplication/

Or part of the problem.

Brought up again in #3550

Hi guys, I also got this issue, anybody can help or can give us a time to fix? @mramato @bagnell @

possibly related issue: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/Mlqw0pR8jvg
there is a weird transparency effect when the billboard is scaled

Also causes #3782

Also reported here: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/gipZ4pITQOs
Labels transparency is incorrect over models
var viewer = new Cesium.Viewer('cesiumContainer');

var entity = viewer.entities.add({
    position : Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706),
    model : {
        uri : '../../SampleData/models/CesiumAir/Cesium_Air.glb',
        minimumPixelSize : 128,
        maximumScale : 20000
    },
    label: {
        text: 'cesium test name',
        scale:1,
        font: '15px Verdana',
        fillColor : Cesium.Color.BLUE,
        horizontalOrigin : Cesium.HorizontalOrigin.RIGHT,
        eyeOffset: new Cesium.Cartesian3(0,0,-50)
    }
});

viewer.trackedEntity = entity;

Also reported here: https://groups.google.com/d/msg/cesium-dev/vEJZ8cgoz1A/wtP3-54CBQAJ

As a temporary fix, would it be possible to merge branch master into billboard-transparency?  This way billboard-transparency will be up to date.

Also seen here: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/ElkPcTGhTwo

Also reported here: #4720

Some more appearances:

This also happens for points.  From #2885:
var viewer = new Cesium.Viewer('cesiumContainer');

for (var i=0; i<35000; i++) {
    viewer.entities.add({
        position : Cesium.Cartesian3.fromDegrees(-122.431297 +i/10, 37.773972+i/10),
        point : {
            pixelSize : 10,
            color : Cesium.Color.fromRandom({
                    alpha : 1.0,
                    minimumRed : 0.5,
                    minimumGreen : 0.5,
                    minimumBlue : 0.5
                })
        }
    });
}

Forum post: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/5qv7Q_qudt8

Also mentioned here: https://groups.google.com/forum/#!topic/cesium-dev/uoxSFmYmhi8

Thanks all for the input, @haisapan, @nikakhov, @billwritescode.
@bagnell fixed this in #4886, which will be in Cesium 1.30 next Tuesday.
Let us know if you run into anything else.

This is fantastic! Thanks @pjcozzi @bagnell and @hpinkos.


MERGE MASTER VIA GITHUB

Hello @nabobalis! Thanks for submitting the PR.

In the file examples/2011_06_07_sampledata_overview.py, following are the PEP8 issues :

Line 26:101: E501 line too long (133 > 100 characters)
Line 112:1: E265 block comment should start with '# '

In the file examples/map_from_numpy_array.py, following are the PEP8 issues :

Line 24:25: E231 missing whitespace after ','

In the file examples/plot_sample_images.py, following are the PEP8 issues :

Line 28:13: E722 do not use bare except'
Line 30:9: E722 do not use bare except'

In the file sunpy/net/fido_factory.py, following are the PEP8 issues :

Line 61:21: E128 continuation line under-indented for visual indent
Line 411:1: E101 indentation contains mixed spaces and tabs
Line 411:1: W191 indentation contains tabs
Line 412:1: E101 indentation contains mixed spaces and tabs


why is getNodes not returning all nodes/info

zwavejs2mptt system on Ubuntu 20.04 and setup is
{
  "mqtt": {
    "name": "LINUX-SERVER",
    "host": "xxx.xxx.xxx.xxx",
    "port": 1883,
    "qos": 0,
    "prefix": "zwave",
    "reconnectPeriod": 10000,
    "retain": false,
    "clean": true,
    "auth": false,
    "_ca": "",
    "ca": "",
    "_cert": "",
    "cert": "",
    "_key": "",
    "key": "",
    "store": false,
    "disabled": false
  },
  "gateway": {
    "type": 0,
    "plugins": [],
    "authEnabled": false,
    "payloadType": 0,
    "nodeNames": true,
    "hassDiscovery": false,
    "discoveryPrefix": "homeassistant",
    "logEnabled": true,
    "logLevel": "debug",
    "logToFile": true,
    "values": [],
    "ignoreLoc": false,
    "sendEvents": false
  },
  "zwave": {
    "port": "/dev/ttyACM0",
    "commandsTimeout": 100,
    "logLevel": "debug",
    "securityKeys": {
      "S0_Legacy": "hidden",
      "S2_Authenticated": "hidden",
      "S2_Unauthenticated": "hidden",
      "S2_AccessControl": "hidden"
    },
    "logToFile": true,
    "serverEnabled": false,
    "enableStatistics": false,
    "serverPort": 3000,
    "assumeAwake": false,
    "pollInterval": 60000,
    "saveConfig": true,
    "logging": true,
    "disclaimerVersion": 1,
    "logEnabled": true
  }
}

when I send the mqtt command (via mosquitto_pub) I receive back only the first 3 of the nodes info.
The command send is:
mosquitto_pub -h linux-server -t zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/api/getNodes/set -m true
It returns info is for nodes 1, 4, 5 only, node 1 is a zooz s2 stick, there are 5 sets of bali blinds (eg, 4 & 5). then 3 Allegion door locks (nodes 28, 41 & 42).
Nodes 5,7,9,11,13 are asleep most of the time as they are hand held bail blind (e.g somfy) controls.
any clue why I am not getting the info on nodes 6,7,8,9,10,11,12,13,28,41&42
the info does show up on the web browser at port 8091.

@hi-flyer Could you show me the result json?

here is what is on the broker:
zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/api/getNodes/set true zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/api/getNodes {"success":true,"message":"Success zwave api call","result":[{"id":1,"name":"Zwave-Hub","loc":"Basement","values":{},"groups":[],"neighbors":[],"ready":true,"available":true,"hassDevices":{},"failed":false,"inited":true,"hexId":"0x027a-0x0401-0x0002","dbLink":"https://devices.zwave-js.io/?jumpTo=0x027a:0x0401:0x0002:2.3","manufacturerId":634,"productId":2,"productType":1025,"deviceConfig":{"filename":"/usr/src/app/store/.config-db/devices/0x027a/zst10.json","isEmbedded":true,"manufacturer":"Zooz","manufacturerId":634,"label":"ZST10","description":"S2 USB Stick Controller","devices":[{"productType":1025,"productId":2}],"firmwareVersion":{"min":"0.0","max":"255.255"}},"productLabel":"ZST10","productDescription":"S2 USB Stick Controller","manufacturer":"Zooz","firmwareVersion":"2.3","protocolVersion":3,"nodeType":0,"endpointsCount":0,"endpointIndizes":[],"isSecure":false,"security":"None","supportsSecurity":false,"supportsBeaming":true,"isControllerNode":true,"isListening":true,"isFrequentListening":false,"isRouting":true,"keepAwake":false,"maxDataRate":100000,"deviceClass":{"basic":2,"generic":2,"specific":1},"deviceId":"634-2-1025","status":"Alive","interviewStage":"Complete","lastActive":1642426461703,"statistics":{"messagesTX":9,"messagesRX":39,"messagesDroppedRX":0,"NAK":0,"CAN":0,"timeoutACK":0,"timeoutResponse":0,"timeoutCallback":0,"messagesDroppedTX":0}},{"id":4,"name":"BEE-blind","loc":"Blinds","values":{"37-0-currentValue":{"id":"4-37-0-currentValue","nodeId":4,"commandClass":37,"commandClassName":"Binary Switch","endpoint":0,"property":"currentValue","propertyName":"currentValue","type":"boolean","readable":true,"writeable":false,"label":"Current value","stateless":false,"list":false,"value":true,"isCurrentValue":true,"targetValue":"37-0-targetValue","lastUpdate":1642426462384},"37-0-targetValue":{"id":"4-37-0-targetValue","nodeId":4,"commandClass":37,"commandClassName":"Binary Switch","endpoint":0,"property":"targetValue","propertyName":"targetValue","type":"boolean","readable":true,"writeable":true,"label":"Target value","stateless":false,"list":false,"value":true,"lastUpdate":1642426462385},"37-0-duration":{"id":"4-37-0-duration","nodeId":4,"commandClass":37,"commandClassName":"Binary Switch","endpoint":0,"property":"duration","propertyName":"duration","type":"duration","readable":true,"writeable":true,"label":"Transition duration","stateless":false,"list":false,"value":{"unit":"seconds"},"lastUpdate":1642426462386},"38-0-targetValue":{"id":"4-38-0-targetValue","nodeId":4,"commandClass":38,"commandClassName":"Multilevel Switch","endpoint":0,"property":"targetValue","propertyName":"targetValue","type":"number","readable":true,"writeable":true,"label":"Target value","stateless":false,"min":0,"max":99,"list":false,"value":99,"lastUpdate":1642426811174},"38-0-duration":{"id":"4-38-0-duration","nodeId":4,"commandClass":38,"commandClassName":"Multilevel Switch","endpoint":0,"property":"duration","propertyName":"duration","type":"duration","readable":true,"writeable":true,"label":"Transition duration","stateless":false,"list":false,"value":{"value":0,"unit":"seconds"},"lastUpdate":1642426811176},"38-0-currentValue":{"id":"4-38-0-currentValue","nodeId":4,"commandClass":38,"commandClassName":"Multilevel Switch","endpoint":0,"property":"currentValue","propertyName":"currentValue","type":"number","readable":true,"writeable":false,"label":"Current value","stateless":false,"min":0,"max":99,"list":false,"value":99,"isCurrentValue":true,"targetValue":"38-0-targetValue","lastUpdate":1642426811177},"38-0-Down":{"id":"4-38-0-Down","nodeId":4,"commandClass":38,"commandClassName":"Multilevel Switch","endpoint":0,"property":"Down","propertyName":"Down","type":"boolean","readable":true,"writeable":true,"label":"Perform a level change (Down)","ccSpecific":{"switchType":2},"stateless":false,"list":false,"value":true,"lastUpdate":1642426462392},"38-0-Up":{"id":"4-38-0-Up","nodeId":4,"commandClass":38,"commandClassName":"Multilevel Switch","endpoint":0,"property":"Up","propertyName":"Up","type":"boolean","readable":true,"writeable":true,"label":"Perform a level change (Up)","ccSpecific":{"switchType":2},"stateless":false,"list":false,"value":true,"lastUpdate":1642426462392},"114-0-manufacturerId":{"id":"4-114-0-manufacturerId","nodeId":4,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"manufacturerId","propertyName":"manufacturerId","type":"number","readable":true,"writeable":false,"label":"Manufacturer ID","stateless":false,"min":0,"max":65535,"list":false,"value":622,"lastUpdate":1642426462393},"114-0-productType":{"id":"4-114-0-productType","nodeId":4,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"productType","propertyName":"productType","type":"number","readable":true,"writeable":false,"label":"Product type","stateless":false,"min":0,"max":65535,"list":false,"value":21075,"lastUpdate":1642426462394},"114-0-productId":{"id":"4-114-0-productId","nodeId":4,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"productId","propertyName":"productId","type":"number","readable":true,"writeable":false,"label":"Product ID","stateless":false,"min":0,"max":65535,"list":false,"value":23089,"lastUpdate":1642426462394},"128-0-level":{"id":"4-128-0-level","nodeId":4,"commandClass":128,"commandClassName":"Battery","endpoint":0,"property":"level","propertyName":"level","type":"number","readable":true,"writeable":false,"label":"Battery level","stateless":false,"min":0,"max":100,"unit":"%","list":false,"value":100,"lastUpdate":1642426462395},"128-0-isLow":{"id":"4-128-0-isLow","nodeId":4,"commandClass":128,"commandClassName":"Battery","endpoint":0,"property":"isLow","propertyName":"isLow","type":"boolean","readable":true,"writeable":false,"label":"Low battery level","stateless":false,"list":false,"value":false,"lastUpdate":1642426462396},"134-0-libraryType":{"id":"4-134-0-libraryType","nodeId":4,"commandClass":134,"commandClassName":"Version","endpoint":0,"property":"libraryType","propertyName":"libraryType","type":"number","readable":true,"writeable":false,"label":"Library type","stateless":false,"list":true,"states":[{"text":"Unknown","value":0},{"text":"Static Controller","value":1},{"text":"Controller","value":2},{"text":"Enhanced Slave","value":3},{"text":"Slave","value":4},{"text":"Installer","value":5},{"text":"Routing Slave","value":6},{"text":"Bridge Controller","value":7},{"text":"Device under Test","value":8},{"text":"N/A","value":9},{"text":"AV Remote","value":10},{"text":"AV Device","value":11}],"value":3,"lastUpdate":1642426462396},"134-0-protocolVersion":{"id":"4-134-0-protocolVersion","nodeId":4,"commandClass":134,"commandClassName":"Version","endpoint":0,"property":"protocolVersion","propertyName":"protocolVersion","type":"string","readable":true,"writeable":false,"label":"Z-Wave protocol version","stateless":false,"list":false,"value":"4.33","lastUpdate":1642426462397},"134-0-firmwareVersions":{"id":"4-134-0-firmwareVersions","nodeId":4,"commandClass":134,"commandClassName":"Version","endpoint":0,"property":"firmwareVersions","propertyName":"firmwareVersions","type":"string[]","readable":true,"writeable":false,"label":"Z-Wave chip firmware versions","stateless":false,"list":false,"value":["11.2","0.18"],"lastUpdate":1642426462398},"134-0-hardwareVersion":{"id":"4-134-0-hardwareVersion","nodeId":4,"commandClass":134,"commandClassName":"Version","endpoint":0,"property":"hardwareVersion","propertyName":"hardwareVersion","type":"number","readable":true,"writeable":false,"label":"Z-Wave chip hardware version","stateless":false,"list":false,"value":255,"lastUpdate":1642426462398}},"groups":[{"text":"Lifeline","endpoint":0,"value":1,"maxNodes":1,"isLifeline":true,"multiChannel":false}],"neighbors":[],"ready":true,"available":true,"hassDevices":{},"failed":false,"inited":true,"hexId":"0x026e-0x5253-0x5a31","dbLink":"https://devices.zwave-js.io/?jumpTo=0x026e:0x5253:0x5a31:11.2","manufacturerId":622,"productId":23089,"productType":21075,"deviceConfig":{"filename":"/usr/src/app/store/.config-db/devices/0x026e/rsz1.json","isEmbedded":true,"manufacturer":"Springs Window Fashions","manufacturerId":622,"label":"RSZ1","description":"Somfy Motorized Shade","devices":[{"productType":21075,"productId":23089}],"firmwareVersion":{"min":"0.0","max":"255.255"},"associations":{}},"productLabel":"RSZ1","productDescription":"Somfy Motorized Shade","manufacturer":"Springs Window Fashions","firmwareVersion":"11.2","protocolVersion":3,"zwavePlusVersion":1,"zwavePlusNodeType":0,"zwavePlusRoleType":7,"nodeType":1,"endpointsCount":0,"endpointIndizes":[],"isSecure":false,"security":"None","supportsSecurity":false,"supportsBeaming":true,"isControllerNode":false,"isListening":false,"isFrequentListening":"250ms","isRouting":true,"keepAwake":false,"maxDataRate":100000,"deviceClass":{"basic":4,"generic":17,"specific":7},"deviceId":"622-23089-21075","status":"Alive","interviewStage":"Complete","statistics":{"commandsTX":2,"commandsRX":1,"commandsDroppedRX":0,"commandsDroppedTX":0,"timeoutResponse":0},"lastActive":1642426811178},{"id":5,"name":"BEE-blind-remote","loc":"Blinds","values":{"114-0-manufacturerId":{"id":"5-114-0-manufacturerId","nodeId":5,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"manufacturerId","propertyName":"manufacturerId","type":"number","readable":true,"writeable":false,"label":"Manufacturer ID","stateless":false,"min":0,"max":65535,"list":false,"value":622,"lastUpdate":1642426461842},"114-0-productType":{"id":"5-114-0-productType","nodeId":5,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"productType","propertyName":"productType","type":"number","readable":true,"writeable":false,"label":"Product type","stateless":false,"min":0,"max":65535,"list":false,"value":16978,"lastUpdate":1642426461843},"114-0-productId":{"id":"5-114-0-productId","nodeId":5,"commandClass":114,"commandClassName":"Manufacturer Specific","endpoint":0,"property":"pro zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/status {"value":false} zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/version {"value":"5.5.1","time":1642431374637} zwave/_CLIENTS/ZWAVE_GATEWAY-LINUX-SERVER/status {"value":true,"time":1642431374637}

@hi-flyer Yeah like you can see the json is truncated like I said.

ok I am only really looking for the node ids. Is there a better request for this?

You could use driverFunction api to get all you want. If you only need ids you can get them from internal nodes map

Thanks I will look into it.


Add examples with use of input-group

This shows some problems when combining input-group-sm / input-group-lg with add ons / buttons when activating typeahead functionality.

thanks, i could only merge this with an instruction of how to install these examples

aah, ok, well... nothing fancy. It uses NPM to install the dependencies.
npm install
Now the .html files can be opened standalone.
Maybe you prefer bower during development? Simply change the paths in the example to the .js and .css files.


Step definitions not found

Hi guys,
I'm currently trying to use the gradle-cucumber-plugin 0.6 without success.
I'm using cucumber 1.1.6
I'm facing the following problem, step definitions are not found by the plugin even if location in glueDirs are good.
Note: I do not have any troubles with featureDirs / tags.
/**
* Cucumber
*/
cucumber {
    formats = ['pretty','html:target/cucumber-html', 'json:target/cucumber.json']
    glueDirs = ['src/test/java/com/foo/features/stepDefs/folder1',
                'src/test/java/com/foo/features/stepDefs/folder2',
                'src/test/java/com/foo/features/stepDefs/folder3',
                'src/test/java/com/foo/features/stepDefs/folder4']
    featureDirs = ['src/test/ressources/com/foo/features/cloud']
    tags = ['@featureInProgress']
    monochrome = false
    strict = false
    dryRun = false
}

When I run the gradle cucumber, i have the following output:
Feature: FeatureInProgress

@featureInProgress
Scenario: Delete                                                             # WorkInProgress.feature:10
Given User is authenticated
Then I navigate to "foo" tab
And In quotesList I open all item starting with "quote_" and delete it

1 Scenarios (1 undefined)
3 Steps (3 undefined)
0m0,000s

You can implement missing steps with the snippets below:

@Given("^User is authenticated$")
public void user_is_authenticated(DataTable arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    // For automatic transformation, change DataTable to one of
    // List<YourType>, List<List<E>>, List<Map<K,V>> or Map<K,V>.
    // E,K,V must be a scalar (String, Integer, Date, enum etc)
    throw new PendingException();
}

@Then("^I navigate to \"(.*?)\" tab$")
public void I_navigate_to_tab(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Then("^In quotesList I open all item starting with \"(.*?)\" and delete it$")
public void in_quotesList_I_open_all_item_starting_with_and_delete_it(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

Can someone help me on this ? thank you guys

@viphe I am still running into this issue that @acorse laid out. Using this plugin version 0.9 and cucumber version 1.2.5 running 'gradle cucumber' it cannot find the glueDirs that I specified. I tried using classpath and relative path, but both were unsuccessful. Has there been any progress with this issue?

Hi @viphe I am also having the similar problem when I used gradle cucumber it complained steps are undefined. I am using cucumber-jvm with scala. I am using this plugin version 0.9, cucumber version is 1.2.5and my gradle version is 3.5. I added the glueDirs as classpath: and also hard coded the path but it still says steps are undefined. Any progress on this issue?

I got rid of the 'java.lang.AbstractMethodError: cucumber.runtime.java.JavaBackend.getSnippet(Lgherkin/formatter/model/Step;Lcucumber/runtime/snippets/FunctionNameGenerator;)Ljava/lang/String;' error by updating all parameters in the pom.xml with the latest version in the MVNRepository


[security]: upgrade dependency

What problem does this PR solve?

Issue Number: close https://github.com/pingcap/tiflow/issues/10147, close https://github.com/pingcap/tiflow/issues/10148, close https://github.com/pingcap/tiflow/issues/10149
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

/ok-to-test

/retest

/test verify

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/test dm-integration-test


CentOS 8 minimal install need to install tar

Just leaving a note for others who may had an issue when installing in CentOS 8.
If using CentOS 8 minimal install, please install tar.
The openvpn-install needs tar.

The official CentOS 8 installation has tar available.
Can you please share which provider are you seeing this on? It must be providing a custom template without tar.

I used this iso, CentOS-8-x86_64-1905-dvd1.iso and did the install using minimal setting.
There was no tar after the install.

Thanks a lot for the report, this has been addressed.


Failed to connect

Hi,
I have just stumbled on the issue. This has presented it self in the past and was fixed by using pipx install catt.
However this hasn't seemed to fix it.
catt --version catt v0.12.2, Zaniest Zapper
python3 --version Python 3.8.10
catt -d <IP_ADDRESS> status [(<IP_ADDRESS>):8009] Failed to connect, retrying in 5.0s [(<IP_ADDRESS>):8009] Failed to connect. No retries.
telnet <IP_ADDRESS> 8009 Trying <IP_ADDRESS>... Connected to <IP_ADDRESS>. Escape character is '^]'.
This on a Ubuntu 20.04 installation.
Please let me know what other information you may require.
Thanks

Not sure what the issue was but it's now working.
I uninstalled catt using pip3 and pipx. I then reinstalled via pip3 and it is now working.


MAAS-1807 | Separate graphite webs endpoint

Coverage remained the same at 88.454% when pulling 427dfc829ddfb4884ca816a0126ed54bd19cc85d on MAAS-1807 into f5815c906a2fad17c9cad6ad8ce285c7c1d74c7a on develop.

:steam_locomotive:

:+1:


Fix: Explicitly disable php_unit_test_class_requires_covers fixer

This PR

[x] explicitly disables the php_unit_test_class_requires_covers fixer

Follows #917.
💁♂ I believe explicitly disabling the fixer, rather than just removing it, sends the signal that a) we are aware of the fixer, and b) have decided not to use it (anymore).

Thank you, @chartjes!


How to run CGCNN through Jupyter or Python interface

I'm able to run CGCNN on a command line interface (PowerShell) through Anaconda, but I'm curious if you have suggestions for using it with an IDE.

%run main.py data/sample-regression
and
%run predict.py pre-trained/formation-energy-per-atom.pth.tar data/sample-regression
seem to do the trick in a Jupyter Notebook.

%run main.py data/sample-regression
and
%run predict.py pre-trained/formation-energy-per-atom.pth.tar data/sample-regression
seem to do the trick in a Jupyter Notebook.

For Spyder, one way to go about it is using runfile() or debugfile(), i.e.
runfile(<path-to-main.py>, args='data/sample-regression', wdir=<path-to-working-directory>)

or
debugfile(<path-to-main.py>, args='data/sample-regression', wdir=<path-to-working-directory>)

e.g.
runfile('main.py', args='data/sample-regression', wdir='.')

For Spyder, one way to go about it is using runfile() or debugfile(), i.e.
runfile(<path-to-main.py>, args='data/sample-regression', wdir=<path-to-working-directory>)

or
debugfile(<path-to-main.py>, args='data/sample-regression', wdir=<path-to-working-directory>)

e.g.
runfile('main.py', args='data/sample-regression', wdir='.')

Another potential approach is to copy the code in main.py into a Jupyter notebook. This would allow to modify the code in the notebook as well.

Another potential approach is to copy the code in main.py into a Jupyter notebook. This would allow to modify the code in the notebook as well.

Maybe you should copy and paste all the cgcnn code in your jupyter notebook in sequence, and should amend "args" part to a class with instance attributes. I am using cgcnn model like that. Until now, It's working well. hope you success!


Less no of records being inserted in cassandra DB

Hi,
I am trying to insert 1 Billion records to stress test Cassandra DB using multiple ycsb clients. I observe that less than 1 Billion records are inserted when i sum up the insert record count from each individual client. Is it a know issue with ycsb?? there is a loss of about 100 to 500 records overall.

@SourabhSanghi - sorry for the long pause on this issue. I tried to replicate with YCSB 0.5.0, Cassandra 2.1, and the cassandra2-cql client, but was unable to reproduce.
I tested with:
insertstart=0
insertcount=990

the record count seemed to be correct. Output excerpt from YCSB:
[INSERT], Operations, 990.0
[INSERT], AverageLatency(us), 2646.6656565656567
[INSERT], MinLatency(us), 1549.0
[INSERT], MaxLatency(us), 32399.0
[INSERT], 95thPercentileLatency(us), 3605.0
[INSERT], 99thPercentileLatency(us), 9327.0
[INSERT], Return=OK, 990

and cqlsh output:
cqlsh:ycsb> select count(*) from usertable;

 count
-------
   990

Is this still an issue?

closing as stale. please reopen if you're still seeing the issue with the changes that @kruthar noted

I saw this in a very early version of YCSB, and dealt with it in typical student manner, by discarding in my application what were NPEs, iirc. I remember it was fixed in a later YCSB version.


Unable to install in andriod 11.

Performing Streamed Install
adb: failed to install pinning-demo.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed collecting certificates for /data/app/vmdl1878923663.tmp/base.apk: Failed to collect certificates from /data/app/vmdl1878923663.tmp/base.apk: Attempt to get length of null array]```

Hmm, that's weird. I must've forgotten to sign that. I've just signed an updated version - can you test out the new APK at https://github.com/httptoolkit/android-ssl-pinning-demo/releases/tag/v1.2.1 and let me know if it works for you?

@pimterry installs properly now. Thanks.

@pimterry installs properly now. Thanks.


ConcatenatedModulePlugin 3.5.x breaks hot reload

Do you want to request a feature or report a bug?
bug

What is the current behavior?
in development, i make a change to a file and wait for hmr to run.
with ConcatenatedModulePlugin enabled and with version 3.5.3 i get errors and hmr fails.
with ConcatenatedModulePlugin disabled and with version 3.5.3 hrm works.
with ConcatenatedModulePlugin enabled and with version 3.4.1 hmr works.
If the current behavior is a bug, please provide the steps to reproduce.
make a change in a file:

the referenced line in client.js is:
    if (module.hot) {
      module.hot.accept('./app/Router', () => {

and in the compiled src for client.js i found this:
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_selectors_zipcode__ = __webpack_require__("oPy7");

but no declaration of __WEBPACK_IMPORTED_MODULE_19__app_Router__. the module.hot.accept section looks like this:
module.hot.accept("WuSt",function(__WEBPACK_OUTDATED_DEPENDENCIES__) {
 /* harmony import */  __WEBPACK_IMPORTED_MODULE_19__app_Router__ = __webpack_require__("WuSt");

What is the expected behavior?
using 3.4.1 hrm works as expected and looking into client.js i see:
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__app_Router__ = __webpack_require__("WuSt");

and
module.hot.accept("WuSt",function(__WEBPACK_OUTDATED_DEPENDENCIES__) {
/* harmony import */ __WEBPACK_IMPORTED_MODULE_19__app_Router__ = __webpack_require__("WuSt");

If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
most recent node, webpack, osx.

Yep that's a bug

@modosc I'm not able to reproduce this.
Can you share this issue in a small reproducible example?

hey @sokra - thanks for the quick response. 3.5.4 seems to make hmr work again (at least according to the console, no more errors) but the results are.. strange. lots of react errors, elements not showing up, etc. i don't have time to put together another bug / test case this morning but i will later today or tomorrow, i just wanted to give you a heads up.

Create a new issue, if you have a repro case.


Database Error handling with Redux

Hello,
I was wondering how some of you guys handle errors from the database in Redux? I am currently using Redux to call an action that uses Axio(along side Redux-Thunk and ES6 Promises) to fetch my data then dispatch it into the Redux state. From there, should the response be 500 or 401,  I want to redirect them to a certain page or show an error message.
My first thought would be to return the response and do the logic from there, but I would like to know how other people approach this.
Thanks for all your help!

Hi,
I'm also thinking about something similar (my app is speaking to an different API, but in the end I also have to handle errors somehow). It's just at the stage of an idea, I'm not writing code yet: I want to try to get some action creators to actually put the errors in the store and have components connect to it (think flash messages or lightboxes).
I think this can fit nicely for global errors (service is gone, need to re-authenticate, ...). If there are more specific errors, I would think they need to be handled locally.
Hope that make sense. I'll be following the thread and see what you come up with!

In examples/real-world in this repo, there is error handling that shows a message.
Please take a look at it.
Performing router transitions isn't different from how you'd do it normally: call the router method (or dispatch an appropriate action if you use something like redux-router) in the AJAX callback.


Mobile First, Function instead of eval and fixed paths in the dev/ folder.

Hi, nice job. We included this library in our project.
I made the breakpoints "mobile first" like Bootstrap, Foundation and all main responsive frameworks. I find it easier to understand and we don't have to duplify the values when using multiple breakpoints. I added a test to docs/demo.html
Before:

After:

Function and eval are both not safe but Function is much faster than eval. Maybe we should find a better alternative like using global functions or a custom data-* syntax.
Please feel free to modify my pull request.

Merging into 1.3.0. Will check it out.

Hey @fjguerrero!
I created a 2.0 version of lax last weekend and would love your feedback if you had time. Check the branch out here: https://github.com/alexfoxy/laxxx/tree/version-2
Lots of new fun stuff. I haven't worked in breakpoints yet, but it's on the list :)


setup: set long description content type for markdown

So we can use the README as is on PyPI
This should fix the upload hopefully :)

@xrmx Thanks! It works.


Can't Utilize use_fp16=True in BGEM3EmbeddingFunction

When using use_fp16=True, the below error came up. However, when using use_fp16=False, there is no error.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[70], line 14
      4 retriever = MilvusHybridRetriever(
      5     document_store=document_store,
      6     vector_store=vector_store2,
      7     search_kwargs={"top_k": 10}
      8 )
      9 texts = [
     10     "Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen. 'Strong' AI is usually labelled as AGI (Artificial General Intelligence) while attempts to emulate 'natural' intelligence have been called ABI (Artificial Biological Intelligence). Leading AI textbooks define the field as the study of 'intelligent agents': any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals.",
     11     "Machine learning (ML) is the study of computer algorithms that improve automatically through experience and by the use of data. It is seen as a subset of artificial intelligence. Machine learning algorithms build a mathematical model based on sample data, known as 'training data', in order to make predictions or decisions without being explicitly programmed to do so. Machine learning algorithms are used in a wide variety of applications, such as email filtering and computer vision, where it is difficult or infeasible to develop conventional algorithms to perform the needed tasks.",
     12     "Deep learning (also known as deep structured learning) is part of a broader family of machine learning methods based on artificial neural networks with representation learning. Learning can be supervised, semi-supervised or unsupervised. Deep learning architectures such as deep neural networks, deep belief networks, recurrent neural networks and convolutional neural networks have been applied to fields including computer vision, speech recognition, natural language processing, audio recognition, social network filtering, machine translation, bioinformatics, drug design, medical image analysis, material inspection and board game programs, where they have produced results comparable to and in some cases surpassing human expert performance."
     13 ]
---> 14 retriever.vector_store.add_texts(
     15     texts=texts,
     16     ids=["1", "2", "3"],
     17 )
     18 retriever.document_store.mset(
     19     key_value_pairs=[
     20         ("1", json.dumps(LangChainDocument(page_content=texts[0]).dict()).encode()),
   (...)
     23     ]
     24 )

Cell In[67], line 178, in MilvusBgeM3VectorStore.add_texts(self, texts, ids, batch_size)
    172 def add_texts(
    173         self,
    174         texts: List[str],
    175         ids: List[str],
    176         batch_size: int = 1000
    177 ):
--> 178     embeddings: Dict[str, Any] = self.embedding_model.encode_documents(texts)
    180     total_count: int = len(ids)
    181     for start_index in range(0, total_count, batch_size):

Cell In[66], line 34, in BgeM3Embeddings.encode_documents(self, texts)
     33 def encode_documents(self, texts: List[str]) -> Dict[str, Any]:
---> 34     return self._embedding_model.encode_documents(texts)

File /usr/local/lib/python3.10/dist-packages/milvus_model/hybrid/bge_m3.py:95, in BGEM3EmbeddingFunction.encode_documents(self, documents)
     94 def encode_documents(self, documents: List[str]) -> Dict:
---> 95     return self._encode(documents)

File /usr/local/lib/python3.10/dist-packages/milvus_model/hybrid/bge_m3.py:84, in BGEM3EmbeddingFunction._encode(self, texts)
     82     values = list(sparse_vec.values())
     83     row_indices = [0] * len(indices)
---> 84     csr = csr_array((values, (row_indices, indices)), shape=(1, sparse_dim))
     85     results["sparse"].append(csr)
     86 results["sparse"] = vstack(results["sparse"])

File /usr/local/lib/python3.10/dist-packages/scipy/sparse/_compressed.py:56, in _cs_matrix.__init__(self, arg1, shape, dtype, copy)
     53 if len(arg1) == 2:
     54     # (data, ij) format
     55     coo = self._coo_container(arg1, shape=shape, dtype=dtype)
---> 56     arrays = coo._coo_to_compressed(self._swap)
     57     self.indptr, self.indices, self.data, self._shape = arrays
     58 elif len(arg1) == 3:
     59     # (data, indices, indptr) format

File /usr/local/lib/python3.10/dist-packages/scipy/sparse/_coo.py:366, in _coo_base._coo_to_compressed(self, swap)
    363 indices = np.empty_like(minor, dtype=idx_dtype)
    364 data = np.empty_like(self.data, dtype=self.dtype)
--> 366 coo_tocsr(M, N, nnz, major, minor, self.data, indptr, indices, data)
    367 return indptr, indices, data, self.shape

ValueError: Output dtype not compatible with inputs.

Notes:

BgeM3Embeddings is just a direct interface of BGEM3EmbeddingFunction.
I'am using scipy==1.13.0.

okay, fp16  seems to have some type-related problems with scipy csr array.


Unexpect JSON response error

Hi,
Thanks for working in this repo, it is very interesting.
I have tried your code but after setting my Open AI api key in config.php and writing and submit a simple Hi prompt, it returns an error like as follows.
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
at HTMLFormElement. (script.js:26:37)
(anonymous) @ script.js:26
What could be the problem.
Thanks

sorry testet again lokks good. look for syntax error please. you make the mistake . Open consoleand show for errors. Sorry bro, but if you make a mistake by a so simple script and cant understand the error, please let it, cause you can harm yourself. It is an basic to learn! Read the Readme.md again please!


Update CI config for Flutter 2

Includes cleanup to simplify our setup. Major changes:

Eliminate the NNBD plugin filtering for stable.
Remove the temporarily-added beta branch testing.
Enable Linux, macOS, and web on stable (Windows is LUCI-based)
Combine the two different macOS matrix configurations now that they
are the same.
Reorder the tasks slightly and give them comments to identify
platform groupings

Looks like there are issues with regenerating the Docker instances that would need investigation and reworking, so reverting the merging of the Dockerfiles.


fix(DSL): improve keyword mapping handling for nested fields

This fixes the mapping issue bug when using whereExact for a field requiring a keyword lookup deeper than 1 level.
The methodology now traverses the returned array instead of only looking one level down. In addition to that I leverage the getFieldMapping function instead of getting ALL the mappings. This makes it easier to traverse the array.
Fixes #42

@pdphilip This is ready for you to look at. Not a huge change but the issue is resolved and I added tests to cover all mapping scenarios.

Thanks, @use-the-fork - will review the first chance I get; looks good, though.

@use-the-fork - this one is good to go. I've refactored the bridge for fieldMapping() to get a key/value array of fields and types. Useful feature so brought this into the Schema and Query builder as well.
The test is passing, but feel free to have a look at your end as well. Nice one.

@pdphilip your changes look good to me. I think your good to merge. Only thing I may add an issue for to look at later is the fact that we should.prob give the option to perform unsafe queries on where exact.
Reason being if you do 3 whereExacts in a call you technically query elastic 4 times. It would be nice to allow the option to skip the check if a dev is confident in there feild mapping.
Other option may be to combine and do a single call and cache it? I'm not sure just not crazy about the overhead.

Good point & not too hard to do. We can cache the first need for a map lookup in the bridge itself. Then reference it on subsequent lookups.
Will just need to know all the possible fields upfront, and make sure the lookup applies to the current field only.
I'll work on this tomorrow

Good point & not too hard to do. We can cache the first need for a map lookup in the bridge itself. Then reference it on subsequent lookups.
Will just need to know all the possible fields upfront, and make sure the lookup applies to the current field only.
I'll work on this tomorrow

If you go this route it may be better to do the full map lookup like you did before. Then use Arr::dot to flatten the whole thing and look for keyword feilds that way. Should be much easier to traverse.


Bugfix: populate state in named entity metadata

Signed-off-by: Katrina Rogan<EMAIL_ADDRESS>TL;DR
Populate state in named entity metadata response object
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[x] Code completed
[ ] Smoke tested
[x] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
fixes https://github.com/flyteorg/flyte/issues/2323
Follow-up issue
NA

cc @ursucarina


Stripe Live Mode Only validates Card Number?

I've been able to use this plugin successfully using Stripe test mode (test key).
However, the issue that I have is that when i switch to the Stripe Live Key, this plugin acts strangely.
It basically only validates the Card number and ignores the Expiry Number and CVC number.
Example:
If I use a fake Card Number, the plugin returns an error message that says the card number is wrong.
However, if i use a Real Card Number with a fake/wrong Expiry date or wrong CVC number, the plugin returns a token but this token cannot be used in the Stripe (backend) since the Expiry date and CVC numbers are wrong thus making the payment fail!
This issue doesn't appear in the test mode and only exists if i use the Live Stripe Key.
This is my code:
cordova.plugins.stripe.setPublishableKey('pk_live_345345435345345345345');

var cardCharge = {
  number: cNo, // 16-digit credit card number
  expMonth: month, // expiry month
  expYear: year, // expiry year
  cvc: cSe // CVC / CCV
};

function onSuccess(tokenId2) {

alert(tokenId2);

}

function onError(errorMessage) {
    alert(errorMessage);
	return false;

}

cordova.plugins.stripe.createCardToken(cardCharge, onSuccess, onError);

any idea whats causing this issue and how to fix this?

Are you experiencing this on all supported platforms (Android/iOS/Browser)? or just a specific one?

The latest release of this plugin uses updated versions of Stripe's SDKs. Please try<EMAIL_ADDRESS>and let me know if you're still experiencing this issue.

The whole plugin stopped working on Android for some strange reason and I have no idea why!
it was working fine and everything was building perfectly fine as well but from a few days ago, everything stopped working and I started getting BUILD FAILED error for (Android Only) in the phonegap build.
I looked in the log file to see what the error is and it was to do with this Plugin so I removed it from my app and everything was built fine again!
I don't know what updates you guys have made but it actually stopped this plugin working so I had no choice but to abandon this plugin.
Thanks anyway.

@DavidHoperz is your issue like #25 ?


Start server only after the first emit

This is a port of the fix https://github.com/rubenspgcavalcante/webpack-extension-reloader/issues/51 from the unmaintained webpack v4 repo.
The idea is that when starting up the dev server, we shouldn't tell the browser to reload the extension until after the files have been emitted to the disk.

Thanks for the PR!


Apple TV Reset

Preconditions

[X] Requirements fulfilled
[X] The known issues did not answer my question
[X] The question has not been asked in the past or the answer does not satisfy me
[X] There is currently no other opened issue that matches my question
[X] I cannot find any answer to my question in GitHub discussions

Current Situation
I had to reset the Apple TV to the factory configuration. After the reset, I can no longer pair the Apple TV.
Logs
[E] Apple TV Della Cameretta (A8:51:AB:0B:8E:AF): Unable to execute request 52: Traceback (most recent call last):File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/support/__init__.py", line 71, in error_handler
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/protocol.py", line 120, in _setup_encryption
    await pair_verifier.verify_credentials()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/auth.py", line 150, in verify_credentials
    encrypted_data = self.srp.verify1(self.credentials, server_pub_key, encrypted)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/auth/hap_srp.py", line 101, in verify1
    raise exceptions.AuthenticationError("incorrect device response")
pyatv.exceptions.AuthenticationError: incorrect device response

The above exception was the direct cause of the following exception:

Traceback (most recent call last):File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 978, in _run_application
    return await cli_handler(loop)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 723, in cli_handler
    return await _handle_commands(args, config, storage, loop)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 851, in _handle_commands
    atv = await connect(config, loop, protocol=args.protocol, storage=storage)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/__init__.py", line 155, in connect
    await atv.connect()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/core/facade.py", line 684, in connect
    if await setup_data.connect():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/__init__.py", line 571, in _connect
    await api.connect()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/api.py", line 143, in connect
    await self._protocol.start()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/protocol.py", line 108, in start
    await error_handler(self._setup_encryption, exceptions.AuthenticationError)
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/support/__init__.py", line 77, in error_handler
    raise fallback(str(ex)) from ex
pyatv.exceptions.AuthenticationError: incorrect device response

>>> An error occurred, full stack trace above
[08/03/2024, 20:10:26] [Apple TV Enhanced] [E] Apple TV Della Cameretta (A8:51:AB:0B:8E:AF): Error: Unable to execute request 52: Traceback (most recent call last):File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/support/__init__.py", line 71, in error_handler
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/protocol.py", line 120, in _setup_encryption
    await pair_verifier.verify_credentials()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/auth.py", line 150, in verify_credentials
    encrypted_data = self.srp.verify1(self.credentials, server_pub_key, encrypted)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/auth/hap_srp.py", line 101, in verify1
    raise exceptions.AuthenticationError("incorrect device response")
pyatv.exceptions.AuthenticationError: incorrect device response

The above exception was the direct cause of the following exception:

Traceback (most recent call last):File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 978, in _run_application
    return await cli_handler(loop)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 723, in cli_handler
    return await _handle_commands(args, config, storage, loop)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/scripts/atvremote.py", line 851, in _handle_commands
    atv = await connect(config, loop, protocol=args.protocol, storage=storage)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/__init__.py", line 155, in connect
    await atv.connect()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/core/facade.py", line 684, in connect
    if await setup_data.connect():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/__init__.py", line 571, in _connect
    await api.connect()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/api.py", line 143, in connect
    await self._protocol.start()
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/protocols/companion/protocol.py", line 108, in start
    await error_handler(self._setup_encryption, exceptions.AuthenticationError)
  File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.11/site-packages/pyatv/support/__init__.py", line 77, in error_handler
    raise fallback(str(ex)) from ex
pyatv.exceptions.AuthenticationError: incorrect device response

>>> An error occurred, full stack trace above
    at /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/node_modules/@sebbo2002/node-pyatv/src/lib/tools.ts:172:15
    at Generator.next (<anonymous>)
    at o (/var/lib/homebridge/node_modules/homebridge-appletv-enhanced/node_modules/@sebbo2002/node-pyatv/dist/lib/index.cjs:1:627)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Configuration
{
            "name": "Apple TV Enhanced",
            "mediaTypes": [
                "video"
            ],
            "deviceStates": [
                "paused",
                "playing"
            ],
            "deviceStateDelay": 0,
            "avadaKedavraAppAmount": 15,
            "customInputURIs": [
                "https://www.youtube.com/playlist?list=PLV338Zy6GfgfOTbkD7KI4KMElPb-l7jw5"
            ],
            "disableVolumeControlRemote": false,
            "setTopBox": false,
            "discover": {
                "multicast": true,
                "blacklist": [
                    "<IP_ADDRESS>",
                    "A8:51:AB:0B:8E:AF"
                ]
            },
            "forceVenvRecreate": false,
            "logLevel": 3,
            "updateCheckLevel": "stable",
            "deviceSpecificOverrides": [
                {
                    "overrideMediaTypes": false,
                    "overrideDeviceStates": false,
                    "overrideDeviceStateDelay": false,
                    "deviceStateDelay": 0,
                    "overrideRemoteKeysAsSwitch": false,
                    "overrideAvadaKedavraAppAmount": false,
                    "avadaKedavraAppAmount": 15,
                    "overrideCustomInputURIs": false,
                    "overrideDisableVolumeControlRemote": false,
                    "disableVolumeControlRemote": false,
                    "overrideSetTopBox": false,
                    "setTopBox": false
                }
            ],
            "_bridge": {
                "username": "0E:82:89:D9:8D:61",
                "port": 33254
            },
            "platform": "AppleTVEnhanced"
        }

Operating System
Linux
Operating System: Bits
64-bit
Operating System: Distribution
Debian GNU/Linux
Operating System: Distribution Version
12 (bookworm)
Docker
no
Docker Image
None
Docker Image Tag
No response
Homebridge Version
1.7.0
Homebridge Config UI Version
4.54.2
Homebridge Storage Path
/var/lib/homebridge
Homebridge Apple TV Enhanced Version
1.2.5
Node Version
20.11.1
NPM Version
10.2.4
Python Version
3.11.2
PIP Version
23.0.1
HDMI Hops
No response
Audio Output
no
Same Subnet
yes
Additional Context
No response

Paid a little more attention this time. The error happens as soon as its paired

@alealibrandi fulfill the pre-checks if you expect an answer. The bot told you what to do.

The bot is useless other than to shuffle actual issues away from you. There's enough info in the initial post without the "pre-checks" to say it's a problem. I have the same problem. There's no way to delete an AppleTV once it's been added into your plugin. The plugin was asking my main AppleTV over and over again for the four digit code, which made my family annoyed as it was coming on screen in the middle of watching TV. I wanted to reset it in the app and see if that made it go away. Putting it in a child bridge seems to have handled it, but the issue is sound without the checks.

The bot is useless other than to shuffle actual issues away from you.

Exactly, it shuffles issues away from me. I have spend hours and hours answering issues in this repository in my spare time. Issue occur for various reason but most of the issues that are opened here are trivial and are easily fixable by just complying with the requirements. In the past there were tediously long conversations just to find out that a version was outdated or the system architecture was not right or the Apple TV is not in the same subnet and so on ... Especially since many users that are roaming around here are not that deep into FOSS and have no development nor Linux experience. Once you will start your own open source project you will understand. For that reason I have written the bot. The bot makes sure that all requirements are fulfilled. If the requirements are fulfilled the issue is non-trivial and worth to take a look at. And once I go to GitHub and start looking at open issues I want to have everything in place, including debug logs ...

There's no way to delete an AppleTV once it's been added into your plugin. The plugin was asking my main AppleTV over and over again for the four digit code, which made my family annoyed as it was coming on screen in the middle of watching TV. I wanted to reset it in the app and see if that made it go away. Putting it in a child bridge seems to have handled it, but the issue is sound without the checks.

And here we go again. I don't know why people just open issues instead of reading the README. You can deactivate multicast discovery and do it via unicast or just put your main Apple TV on the blacklist. Is it that hard to read the README?

I want the app to forget it has credentials for that particular AppleTV so that I can re-pair it.

You can revoke the credentials in the settings of the Apple TV. The plugin will detect that the credentials are no longer valid on a restart. It will automatically initiate a new pairing request to issue new credentials.

Just like the OP needs to delete the credentials because they're no longer valid, as they reset their AppleTV and it created a new key sequence.

Not sure what you mean by "OP".

@alealibrandi Have you fulfilled these requirements from the README?

The access of Speakers & TVs should be either set to "Everybody" or "Anybody On the Same Network" in the Home app.
Additionally, make sure to check the TV's HomeKit settings.

@alealibrandi @jondthompson
I also experienced this issue upon ATV reset & there is no way to revoke specific credentials from the settings on the Apple TV itself in order for the plugin to request a new pairing credential. If it is possible, it would need to be done through code with a connection to Xcode. Turning off/on AirPlay password requirements or AirPlay entirely did not fix this either.
The manual solution @maxileith suggested was the way that worked well for me.
For anyone who is reading this later on & is not familiar with code commands in Homebridge's Terminal, you would simply type "rm" before the file location/name for Terminal to process the request & delete file with the saved credentials.
Example:
rm ./appletv-enhanced/AABBCCDDEE/credentials.txt
Please note that when replacing AABBCCDDEE with the actual MAC address of your ATV, do not include any punctuations.
Please also note that you will not receive a confirmation message when it is deleted, it will just happen. You should see a new pairing code popup right away on the ATV if the plugin is still running & performs another discovery attempt. If not, reboot Homebridge or the child bridge & you should see the pairing code appear after the plugin starts back up & searches again for devices.
Side note, @maxileith a great idea for the future would be to allow for users to manage saved credentials from inside the plugin interface instead of having to perform a manual code deletion of the file, which a large majority of the average Homebridge users would not know how to do. Another way other plugins I've used have done this is by adding the credentials to the JSON configuration file & I was easily able to find, edit or delete that line if needed, but I understand the importance of keeping it saved in a file within the directory for this plugin. Just a suggestion that it would be nice to essentially have a "reset" button of some kind within the interface for any current/past paired ATV's.
I wish you all well & good luck.


issue 84: GFM strikethrough causes nested attention sequences to be considered just text data

The original issue I was trying to solve was that a markdown line like this ~~foo __*a*__~~ was not correctly parsed because tilde was not being considered punctuation.
After changing that, the interplay between emphasis and strikethrough started failing because to implement how Github flavors it, we must consider tilde not punctuation when deciding if the sequence is the close.  The interplay example is e ***~~xxx~~***yyy
I've added a specific exception for tilde with a comment explaining why it is there.

Thank you Adam for your work and your patience, that was interesting to solve.
I solved it more similar to how it is done in micromark.
I also noticed another bug present here: some ASCII punctuation characters are not Unicode punctuation.


dependency: update vmm-sys-util to 0.10.0

To fix vmm-sys-utils' version conflict when building code.
Signed-off-by: Zizheng Bian<EMAIL_ADDRESS>

close this now since the problem doesn't exist now.


Fix pytest when upgrading to virtualenv 13.1.2

We got the error this person got, https://github.com/numpy/numpy/issues/4074, this PR is their fix applied to our test, and I have tested by hand on our internal build slave.
This Travis build passes the pytests that this fix was meant for, but then it failed later, with this:
The command "./util/test_all.bash" exited with 0.
0.22s$ cd docs/ && make html
sphinx-build -b html -W -d build/doctrees   source build/html
Running Sphinx v1.4.1
making output directory...
Warning, treated as error:
WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead.

Back to work, now to fix Travis.

Todays version of this PR goes in after PR #5, which was shown to work with Python 2.7 and 3.
Part of this PR was developed before PR #5, and was shown to work with Python 2.6.
Nothing too significant.


Missing comments for ComplexMath.TransferFunction and ShowTransferFunction

Models Modelica.ComplexBlocks.ComplexMath.TransferFunction and Modelica.ComplexBlocks.Examples.ShowTransferFunction added by #1850 for MSL v3.2.2 miss a descriptive comment.

resolved by SHA-1: b8d6d31003ba661a9f67ca9581c8c6e4b5bcdbc0 for trunk
resolved by SHA-1: e1dfd65e0481db6bf304768a19c3b5d9a254f296 for maint/3.2.2


How to release to conda-forge

Hey @danielballan @tacaswell,
Is there anything I can do on my end to help with assisting/tightening the release schedule re: conda-forge?

After you have uploaded the new release to Pypi, just adapt the version and SHA256 hash in this recipe. This you do via a PR so that you have the opportunity to check whether the build succeeds. You can also add yourself as maintainer in that file, which gives you push rights to the feedstock.


ZCL_EXCEL_READER_HUGE_FILE do not read column's customWidth attribute

ZCL_EXCEL_READER_HUGE_FILE do not read column's customWidth attribute.
The columns width get  lose when the file is reading with ZCL_EXCEL_READER_HUGE_FILE and written back with ZCL_EXCEL_WRITER_HUGE_FILE without any modifications. This is because the reader to not read the customWidth of columns.

Thank you for reporting this case. In fact, ZCL_EXCEL_READER_HUGE_FILE has many limitations "by definition", because it was created to have a lot less features than ZCL_EXCEL_READER_2007 to increase the speed. Only the values are read, all the formatting is lost.
To keep the formatting, please use ZCL_EXCEL_READER_2007.


Gmail chat issues when Chrome extension is on

I have a Chrome extension that uses the Gmail-js with email ID to work.
Does the Gmail chat use the same ID as an email? are they treated the same by the API? I've been getting some errors with it, my extension has nothing to do with the chat portion of gmail (no API  calls for chat), just wondering if the "The FetchEvent for "<chat.google...>" resulted in a network error response: the promise was rejected." had anything to do with it.
I got a report from a user that they can't use the chat with the extension on
Thank you!

I have no idea or knowledge about Google chat.
Gmail.js does intercept all ZHR invocations between the browser (GMail) and any server it contacts, so while I don't know speciically how it should interfere with chat, I cannot exclude the possibility that it is Gmail.js interfering.
These are the relevant lines in gmail.js:
https://github.com/KartikTalwar/gmail.js/blob/edd1beeacf9faa9f82af7929706e95d0cd83e463/src/gmail.js#L2095-L2197
You can debug yourself to see if/what bad things happen when XHR is targetting Google chat services.
With some concrete findings, we may be able to:

determine that it is Gmail.js' fault and
find a way to resolve the issue.

Let me know what you find :smiley:


Thoughts on CI

The check should run as a post build phase and should only run for affected builds so I wonder how to have the check running as a "post build" somehow

Another thought is if cannot use this gha for getting results for multiple projects with nx would develop a dedicated one

This section does the job but would be nice to see the report as a comment on the PR.
      - run: npx nx affected --target=build --base=origin/main

      - run: |
         APPS=( $(ls -1d dist/packages/*/ | xargs -n 1 basename) )
         echo "APPS=$APPS" >> $GITHUB_ENV

        env:
           APPS: ${{ env.APPS }}
      - run: |
           for app in $APPS; do
             npx nx run $app:size-limit
           done

Requirements of a suitable GHA:

The action is not a standalone, meaning it won't install size-limit or other dependencies and expected to be run as a step
The action should have an input of relevant projects either all | list of projects configured with nx-size-limit
The action should get an input of the affected projects
The action should run nx-size-limit per project and aggregate the results into a json file declaring of app:result
A failure of a limit check shouldn't fail the step - use the tool as a recommendation.
The action should parse the aggregated result and format into a comment on the PR


Adding own functions to twig

Expected behavior

According to docs on https://timber.github.io/docs/guides/functions/  after adding
add_filter('timber/twig', 'add_to_twig_test');

function add_to_twig_test($twig) {
    $twig->addFunction(new Twig_SimpleFunction('test_function', 'test_function'));
    return $twig;
}

function test_function() {
	return 'tralalla';
}

I should be able to use {{ test_function }} in twig template.
Actual behavior

But I doesn't work. It only works when I use it like this {{ test_function() }}.
I'm not sure is there a small bug in docs or I'm doing something wrong.
Steps to reproduce behavior

Just add this code and try both version - with and without ().
What version of WordPress, PHP and Timber are you using?

PHP 7.3, WordPress 5.2, Timber 1.9.4
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Composer

Yes, it doesn’t work, but I think that’s how it’s supposed to work. I guess it’s the difference between functions and methods that would allow you to omit parenthesis for post.link, but not for get_permalink(). Check out the Implementation Box in the Variables section of Twig for Template Designers:

Implementation
For convenience's sake foo.bar does the following things on the PHP layer:

check if foo is an array and bar a valid element;
if not, and if foo is an object, check that bar is a valid property;
if not, and if foo is an object, check that bar is a valid method (even if bar is the constructor - use __construct() instead);
if not, and if foo is an object, check that getBar is a valid method;
if not, and if foo is an object, check that isBar is a valid method;
if not, and if foo is an object, check that hasBar is a valid method;
if not, return a null value.

Twig also supports a specific syntax for accessing items on PHP arrays, foo['bar']:

check if foo is an array and bar a valid element;
if not, return a null value.

So that tells me that when Twig sees post.link, it would first check if link is a property and then check if it’s a method.

I wanted to be sure. They ommited the example of function on
https://twig.symfony.com/doc/2.x/advanced.html and in some places I saw
examples without the (). I'll grab the laptop and push a small fix to the
docs example
niedz., 19 maj 2019, 19:33 użytkownik Lukas Gächter <
<EMAIL_ADDRESS>napisał:

Yes, it doesn’t work, but I think that’s how it’s supposed to work. I
guess it’s the difference between functions and methods that would allow
you to omit parenthesis for post.link, but not for get_permalink(). Check
out the Implementation Box in the Variables section of Twig for Template
Designers https://twig.symfony.com/doc/2.x/templates.html#variables:
Implementation
For convenience's sake foo.bar does the following things on the PHP layer:

check if foo is an array and bar a valid element;
if not, and if foo is an object, check that bar is a valid property;
if not, and if foo is an object, check that bar is a valid method
(even if bar is the constructor - use __construct() instead);
if not, and if foo is an object, check that getBar is a valid method;
if not, and if foo is an object, check that isBar is a valid method;
if not, and if foo is an object, check that hasBar is a valid method;
if not, return a null value.

Twig also supports a specific syntax for accessing items on PHP arrays,
foo['bar']:

check if foo is an array and bar a valid element;
if not, return a null value.

So that tells me that when Twig sees post.link, it would first check if
link is a property and then check if it’s a method.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timber/timber/issues/2004?email_source=notifications&email_token=AAR34OWPQHE7ZTHP4M5X7VTPWGFNLA5CNFSM4HN26QN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVXGY6Y#issuecomment-493775995,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAR34OWA3NWSAJ3M64ATQSTPWGFNLANCNFSM4HN26QNQ
.


[Question]How to understand prometheus_remote_storage_sedn_latency_seconds?

hi, i'm a little poor on the histogram and quantile slot, what's the graph means ?

thanks a lot.

In Prometheus we usually use 100-quantiles also called percentiles. They represent the range of values in 100 equally sized groups.
In the example above the latency of all calls to the OpenTSDB remote storage is recorded in seconds. The 0.5 quantile means 50% of all calls took at most $value seconds, 0.9 means 90% of all calls took at most $value seconds, etc. So at the end of the time range you can see that 90% of all calls to OpenTSDB were not slower than 1s.

oh, percentiles is fit for me. is it means that we don't need the statistic of sends in various time region [0.1,0.5,1,2,5]s? named like prometheus_remote_storage_send_latency_seconds_bucket. prometheus will do the statistic internal and calculate it to the percentiles.
thanks @grobie .

The difference are summaries (quantile labels) vs. histograms (_bucket metrics). Read more about the differences here: https://prometheus.io/docs/practices/histograms/

thanks. closing it.


Polynomial Word left/right shifting

Add:

[x] Left polynomial shifting
[x] Right polynomial shifting
[x] Add zero completion
[x] Polynomial word is always filled, even if vakues are zero

Shifting: polynomials words should be ablke to perform cycle shifting
Zero completion: while converting or doing cycle shift, polynomial word should be complemened with zero value words

Add:

[ ] ToBinaryString method
[ ] FromBinaryString method


Update

Describe your bug here.
I updated to 7.0.1 but it still says that im running 7.0
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
no

There is no version called 7.0. There is no version called 7.0.1. We're still on the 0.x.x versions.

shadowmario wtf :sob:

There is no version called 7.0. There is no version called 7.0.1. We're still on the 0.x.x versions.
im srry i did not know

There is no version called 7.0. There is no version called 7.0.1. We're still on the 0.x.x versions.
srry i did not know


Update diag_e_metric to support masks

Modify diag_e_metric in stan/mcmc/hmc/hamiltonians (this) to have masks (use Eigen::VectorXds for the masks, with 1 to represent a parameter that can move and a 0 to represent a parameter that is fixed).
Masks should be used to make sure the right entries of dtau_dp and dphi_dq are zero.
Masks should be used to make sure initial momentum of masked variables are zero.
dense_e_metric, and unit_e_metric would need converted eventually but for now just do diag_e_metric.
The goal here is to make sure that the clamped parameters never change from their initial positions. Setting the initial momentums to zero and zeroing out the right entries of dtau_dp and dphi_dq ensure this. Check the leapfrog integration here to see why.

There are a couple follow up things to #7: https://github.com/clamped-params/stan/pull/7#pullrequestreview-621218910

Ideally these changes and then the interfaces and we should be good to go with a prototype. I could have missed some other change we need to make though. I'm down to pair program it.


Configure allowed users by id, not by username

Currently, the list of users who are allowed to trigger a merge is a list of usernames, but usernames can change. We should instead configure user ids, which are stable.
Even better would be to query the Github API for all users with push access. That would eliminate the need for configuration entirely, but it would also complicate things significantly, so a list of user ids is a good first step.

Actually, we should probably tie approval powers to push access immediately. If we are going to enable this on a repository with ~30 collaborators, I don’t want to look up their user id manually, and it is easy to forget to update the configuration.
Fortunately, there is an endpoint that allows checking if a user is a collaborator, and if the user has write access. (docs). So for the approval check, when a command directed at the bot is received, we instead of testing that the username is in a pre-configured list, we can make an API call and check that the user has write access.
This eliminates the need for configuration while also making things more secure.

Unfortunately though, the library we use does not implement that particular endpoint. But looking at the implementation, it looks like it would be easy to add a new endpoint, so maybe we can add it ourselves (and open a pull request to upstream it).


Replace the arrow with a cross

What really confuses me is that my instincts look for a cross to remove an item, but it's an arrow.

I'd be more comfortable if it was (shadow is a mistake):

I agree that when instantUpload is set to true it's probably more intuitive if the icon is a cross and the text says "tap to remove" instead of "tap to undo". I'll add this to the roadmap.
In the mean time, you can change the icons using FilePond instance properties.
For some very nice looking items, take a look at Feathericons

Now available in version 2.0.0, text remains "tap to undo" but icon is automatically replaced with a cross (the icon set to remove button).

Nice, thanks!


Target "BeforeBuild" does not exist anymore in C++ projects

In file C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.targets there is a line <Target Name="AfterBuild"> but there is no line <Target Name="BeforeBuild">. BeforeBuild is not referenced anywhereeither:
    <BuildDependsOn>
      _PrepareForBuild;
      $(BuildSteps);
      AfterBuild;
      FinalizeBuildStatus;
    </BuildDependsOn>

Because of this, the following lines will never be executed when placed in a .vcxproj file:
  <Target Name="BeforeBuild">
    <Message Importance="High"
             Text="BeforeBuild BeforeBuild BeforeBuild !!!" />
  </Target>

even though AfterBuild works just fine in the same .vcxproj file:
  <Target Name="AfterBuild">
    <Message Importance="High"
             Text="AfterBuild AfterBuild AfterBuild !!!" />
  </Target>

In .NET Classic .csproj files everything works as expected.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 868d865b-89d9-ec87-d569-862d168dc6ca
Version Independent ID: a95f34e2-8f4b-4a4b-cb7e-075e4ceebd69
Content: Extend the build process - Visual Studio
Content Source: docs/msbuild/how-to-extend-the-visual-studio-build-process.md
Product: visual-studio-windows
Technology: msbuild
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

Is this a product issue or a documentation issue?

@Science-and-Motion-Sports -- thanks for your question. It looks like you're having an issue with the product itself, rather than an issue with the documentation. Here are a few options where you might consider asking your question:

https://social.msdn.microsoft.com/Forums/vstudio
https://www.stackoverflow.com
https://www.reddit.com/r/VisualStudio/

As well, you might also consider using the Report a Problem tool to report the issue.
I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.

@olgaark Is BeforeBuild still supported in .vcxproj? I would guess that BeforeBuild would work fine if added to Microsoft.BuildSteps.targets.  fyi @rainersigwald