text:
New type of Heatmaps

Hello there,
I'm willing to create such kinds of Heatmaps: http://alastaira.files.wordpress.com/2011/02/image22.png
Is there people who can help me to do it or point me in the right directions ?
Thanks !

Work in progress: http://pol-dev.be/heatmap/
I'm struggling to find a way to make the grid pan correctly, any help is welcome.

I think this can be easily done by extending heatmap.js' drawAlpha function + reducing datapoint accuracy (probably has to be done in the heatmap-openlayers implementation).
I wrote a small article about getting rid of too much datapoints by reducing accuracy, probably helpful:
http://www.patrick-wied.at/blog/data-clustering-for-a-multiuser-website-heatmap
you would have to get rid of the radial gradients (in drawAlpha), just set the opacity fillstyle and the fillRect should make it

No, I think the problem is more complicated (or maybe I don't get your explanations ?).
Let's stay that we want to divide the canvas by square of 20px width.
We need to find the 'distribution' of all the features into this grid.
The distribution means for me:
At row 1, column 3, we have 3 features.
At row 3, column 7, we heave 8 features,
etc etc etc
Then, once the distribution is done, we have to colorize the squares and set the right opacity according to the number of features into it.
I'm almost there with the demonstration up there, it's just that I can't find a way to make the grid pan with the layer behind it and I cannot cover the whole canvas with the grid (only when panning).
It looks easy but I don't think it is.
That kind of grid could be very helpful because it would requires less CPU, and that's interesting ! And the result is also very nice.
I'm looking forward for your reply.


text:
群加不了啊

814712305 加不了群

一个都加不了。。

同问，为什么不让加啊

同问，为什么不让加啊

+1

有些jar包还下载不了

source: gharchive/issue

repo: paascloud/paascloud-master

license_type: permissive

license_source: github-api


text:
Transaction files created that caused OOM issues will persist

The OOM issue brought on by #22 creates a transaction file that remains and continues to cause OOM crashes. Harmony needs to handle the situation where this transaction file is removed if an OOM issue occurs while parsing strings.

Fixed in #36

repo: pablobaxter/Harmony


text:
The future of auth

@gabrielgrant and I just had a conversation about how our auth system should work in the longer term. Conclusions:

Right now, Pachyderm's auth system makes it easy to model groups of users, but the map from "Can U perform operation O" to the data structures and interfaces we export is complicated and brittle
To fix this, what we're currently calling Scopes in Pachyderm will become Roles (which is more in line with conventional auth nomenclature) and we'll define a new notion of Scopes which correspond, in a fine-grained way, to operations in Pachyderm.
We'll add an API (or modify the Authorized() API) to be oriented around the new Scopes, so it'll be easy to say, e.g. in the dashboard, "does U have the ability to do X, if so, display the 'do X' button"
Moreover, it'll let us deduplicate authorization logic that currently exists both in Pachd and the dashboard, which will help us avoid errors where the two become inconsistent

One thought: in our original discussion, we proposed that each object in Pachyderm have a vector of Scopes associated with it. Then, the dashboard will be able to get the Scopes associated with each object in the display and render it appropriately.
If, instead of an API that provided "here is the list of operations that U can perform", we narrowed the API to simply "can U perform operation O?" => (yes|no), we might be able to have a more fine-grained collection of operations that aren't necessarily orthogonal or additive(e.g. "can the user update this pipeline?" "can the user update this pipeline with --rerun=true?", etc), as well as offer an explanation ("to update this pipeline with --rerun=true, you must be an READER of inrepo (true) and an OWNER of outrepo (false)")
(though this might be complicated and not particularly useful. Just a thought)

To clarify this issue a little, I think we should build a role-based access control model similar to Kubernetes. See:
https://en.wikipedia.org/wiki/Role-based_access_control
https://stackoverflow.com/questions/4989063/what-is-the-meaning-of-subject-vs-user-vs-principal-in-a-security-context
In Pachyderm (for example):
Principals (things that can be added to ACLs):

GitHub users (authenticate via OAuth), LDAP users, groups
Subjects (things that try to access data):
Humans, Pipelines
Permissions:
Repo

CreateRepo/DeleteRepo
InspectRepo/List (discovery -- does this repo show up in ListRepo)
GetFile/DiffFile
ListFile/GlobFile/ListCommit/InspectCommit/FlushCommit/SubscribeCommit/ListBranch
StartCommit/FinishCommit/PutFile/CopyFile/DeleteFile
SetBranch/DeleteBranch

Pipeline

CreatePipeline/UpdatePipeline
DeletePipeline
Rerun pipeline
Get stats? Right now this is a property of the repo. May entail a stats redesign
Roles:

Repo

Spectator (can discover the repo -- mostly useful for making a repo publicly discoverable)
Reader
Writer
Owner

Pipeline

Writer
Owner

Discoverability permissions specifically is tracked in #2434

We'd also like to add a Users table to Pachyderm's auth system

This will fix some silly Pachyderm semantics where certain calls (e.g. ListRepo) can only be called by logged-in users, but users may log in as someone totally unrelated to a given cluster and then start listing that cluster's repos (they'll see that they don't have access to anything, but still)
This will also help our UX (which will be able to filter repos/pipelines based on the user that is loading Pachyderm's dashboard) and affect our enterprise business model
Finally, this might allow us to build a delegation system. Currently, there is no practical distinction between "principals" and "subjects", since a subject can't have more than one identity. With a users table, though, we might be able create delegation tokens that have access to an object iff the issuer also has access to the object, and associate those delegation tokens with the receiver

Other features:
Ultra-high priority (just so they're in here):

SAML support (for e.g. okta)
LDAP support (for authentication at least, and ideally for syncing groups)
Groups in general

Others:

Display name != internal ID. This way a github user can change their username without losing their access to Pachyderm resources

Another change: PPS shouldn't have a superuser token. PPS should be its own subject in Pachyderm, and it should have explicit, limited access to the resources it uses (specifically, the spec repo). Things like adding every pipeline to its inputs ACLs should be handled by a more limited admin API.
We may also want to add a cluster-global lock, that lets calls ensure that no new pipelines are created while existing pipelines are being added to their inputs' ACLs

hi @msteffen  is this ongoing,  I'd like to take some work on this. BTW,  OPA might be an option for authz

Hi @jiangytcn, thanks for offering to help out! I think this is work is still on our long-term roadmap, but so far we haven't made any immediate plans. OPA does look interesting, thanks for pointing it out!
What kind of changes are you interested in making? Are there particular features you're hoping to add to Pachyderm's auth system?

authors: gabrielgrant jiangytcn msteffen

repo: pachyderm/pachyderm


text:
When installing pachyderm 1.9.9 using pachctl to deploy into a specific namespace, the pachd pod has issues and keep crashing

What happened?:
Installing pachyderm 1.9.9 on AWS EKS specifying namespace the pachd pods keeps crashing.
This is a new eks cluster, nothing else installed yet.
Installation command, replacing some values with x just for demonstration purposes:
$ pachctl version
COMPONENT           VERSION
pachctl             1.9.9
$ pachctl deploy amazon ${BUCKET_NAME} ${AWS_REGION} ${STORAGE_SIZE} --dynamic-etcd-nodes=1 --iam-role="arn:aws:iam::xxxxxx:role/xxxxxxxx" --namespace=xxxxxxx

Checking the pod on kubernetes
pod/dash-8554598bf8-gr8cn    2/2     Running            0          20m
pod/etcd-0                   1/1     Running            0          20m
pod/pachd-57b494dbbb-zmkb7   0/1     CrashLoopBackOff   7          20m

Running logs on the pod I have only INFO and WARNING and a trace, but it still doesn't go up and available:
2019-12-13T14:18:53Z INFO no Jaeger collector found (JAEGER_COLLECTOR_SERVICE_HOST not set)
2019-12-13T14:18:53Z WARNING TLS disabled: could not stat public cert at /pachd-tls-cert/tls.crt: stat /pachd-tls-cert/tls.crt: no such file or directory
2019-12-13T14:18:53Z WARNING s3gateway TLS disabled: could not stat public cert at /pachd-tls-cert/tls.crt: stat /pachd-tls-cert/tls.crt: no such file or directory
2019-12-13T14:18:53Z INFO validating kubernetes access returned no errors
2019-12-13T14:19:23Z INFO error starting githook server context deadline exceeded

panic: failed to initialize pach client: context deadline exceeded

goroutine 191 [running]:
github.com/pachyderm/pachyderm/src/server/pkg/serviceenv.(*ServiceEnv).GetPachClient(0xc000156f70, 0x2ad81a0, 0xc000144100, 0xc000144100)
	src/github.com/pachyderm/pachyderm/src/server/pkg/serviceenv/service_env.go:171 +0x11a
github.com/pachyderm/pachyderm/src/server/pps/server.(*apiServer).master.func1(0x0, 0x0)
	src/github.com/pachyderm/pachyderm/src/server/pps/server/master.go:58 +0xe5
github.com/pachyderm/pachyderm/src/server/pkg/backoff.RetryNotify(0xc000ba8020, 0x2a99520, 0xc0004e04e0, 0xc000c86fb8, 0x2a, 0x1)
	src/github.com/pachyderm/pachyderm/src/server/pkg/backoff/retry.go:35 +0x4a
github.com/pachyderm/pachyderm/src/server/pps/server.(*apiServer).master(0xc0002618c0)
	src/github.com/pachyderm/pachyderm/src/server/pps/server/master.go:52 +0x20a
created by github.com/pachyderm/pachyderm/src/server/pps/server.NewAPIServer
	src/github.com/pachyderm/pachyderm/src/server/pps/server/server.go:67 +0x3d4
panic: failed to initialize pach client: context deadline exceeded

goroutine 211 [running]:
github.com/pachyderm/pachyderm/src/server/pkg/serviceenv.(*ServiceEnv).GetPachClient(0xc000156f70, 0x2ad81e0, 0xc0000d0018, 0xc0000ba2a0)
	src/github.com/pachyderm/pachyderm/src/server/pkg/serviceenv/service_env.go:171 +0x11a
github.com/pachyderm/pachyderm/src/server/pfs/server.newAPIServer.func1(0xc000584880)
	src/github.com/pachyderm/pachyderm/src/server/pfs/server/api_server.go:66 +0x48
created by github.com/pachyderm/pachyderm/src/server/pfs/server.newAPIServer
	src/github.com/pachyderm/pachyderm/src/server/pfs/server/api_server.go:66 +0x15

What you expected to happen?:
Pod be available, pachyderm installation successfull and pachctl commands working to list pipeline, repo, commit, etc.
How to reproduce it (as minimally and precisely as possible)?:
EKS version is 1.12
AWS region is eu-west-1 and also the bucket
Bucket size is 20
Use pachctl 1.9.9 and try to deploy to a specific namespace using the --namespace option flag.
Anything else we need to know?:
Environment?:

Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.10-eks-afa464", GitCommit:"afa464ce9760bd08a53a207f505b133b93366ea3", GitTreeState:"clean", BuildDate:"2019-10-22T21:42:57Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Pachyderm CLI and pachd server version (use pachctl version):
COMPONENT           VERSION
pachctl             1.9.9

Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
AWS

Actually it was a issue with S3 bucket policy in the iam of the new eks cluster. Closing


text:
readme: correct available meta labels

Reorder. Add device_id. Remove organization_id (it isn't in main.go)

Note I didn't reorder them arbitrarily :) I ordered them to match the order in the main.go file so they're easy to compare.

@grahamc OK. Maybe I will put both of those lists to alphabetical order.

source: gharchive/pull-request

repo: packethost/prometheus-packet-sd


text:
[propose_downstream job] Allow to specify more branches

Looking at this PR I'm wondering whether it would be more user-friendly if there was a way how to specify all branches in one job, i.e.
- job: propose_downstream
  trigger: release
  metadata:
    dist_git_branches:
    - master
    - f30
    - f29

instead of
- job: propose_downstream
  trigger: release
  metadata:
    dist_git_branch: master
- job: propose_downstream
  trigger: release
  metadata:
    dist_git_branch: f30
- job: propose_downstream
  trigger: release
  metadata:
    dist_git_branch: f29

what should happen when the first update fails? should it continue or break?

what should happen when the first update fails? should it continue or break?

fail, the same as when copr-build fails in one target/chroot

I'm personally not much in favor of these simplifications

ok

Let's leave this open, the fact that I don't like the idea doesn't mean that we shouldn't do it. I'd say we just need to discuss this.

I personally don't need this and there are some .packit.yaml related proposals in https://github.com/packit-service/packit/issues/574 so closing.

authors: TomasTomecek jpopelka

repo: packit-service/packit-service

license: MIT


text:
Copr build process stuck at "Pending — Starting RPM build... "

Under https://github.com/oamg/convert2rhel/pull/122, the copr builds are not being created. The last message from packit is "Pending — Starting RPM build... ".
When looking at the linked copr build job (https://copr.fedorainfracloud.org/coprs/g/oamg/convert2rhel/build/1775484/), it says "importing - Package sources are being imported into Copr DistGit."

Regarding some retry mechanism, we've been discussing this a lot so I've created an upstream issue for it: #873

thanks for opening the issue, can we close this in favor of #873 or #830?

thanks for opening the issue, can we close this in favor of #873 or #830?

If you're asking me, then feel free to do that :)

If you're asking me, then feel free to do that :)

@TomasTomecek Yes, I think it's covered by those two.

@TomasTomecek Yes, I think it's covered by those two.

authors: TomasTomecek bocekm lachmanfrantisek

repo: packit/packit-service


text:
Hello from HN!

I'm bobblywobbles on HN, I'm glad we connected. Is there anything in specific you'd like me to look at or just give it a general review?
(I used Java while in school so as to say I have a bit of catching up to do here, but it could be that it's good to have a newcomer review the docs!)

A general review would be great.
I've tried to provide a good amount of documentation and examples to get started.  I'm sure there are topics missing, but I don't know where to focus my efforts.  Everyone using it has had some introduction by myself or another, and not started from the documentation alone.
Other then documentation, I'm interested in feedback on the syntax for defining pagemodel files and using the generated chaining api.
I've tried to build this to be very easy to pick up for people new to Java.  So any feedback on that would be great too.

You can email me at matt@pagemodel.org or in page-model-tools.slack.com

Hi @matt-stevenson, I figured it would be easy to reply here. Thank you for some time while I was able to look at this [from a newcomer's perspective].

From my perspective, I would find it helpful if you had documentation that isn't purely for reference. I understand the necessity to add documentation that explains every method call, parameter and return value, but I found it hard to grasp how everything kinda worked together from this repo alone. I had to look at another blog post and that gave me the context at what I feel your repo is solving for. If you don't want to cater to beginners, that's purely your decision, but if you do I would suggest to answer the question "what problem does this repo solve" for visitors to your project? Something like: "Do you want to do integration testing in Java but find it hard or want an easy way to be consistent in your tests? Try out pagemodel - a consistent way to define and execute your Java tests" (yes. I know it's more marketing but it helps with understanding and greater adoption).

I didn't feel I would provide helpful feedback on the syntax, purely out of lack of experience in this sort of testing in Java. I don't want to suggest something with my limited exposure to the ecosystem to make something less recognizable to someone who has worked with similar tools here. I did find the general format of element_line = [displayed] element_name [element_tester] find_by [click_nav] [modifiers] makes sense and is intuitive, which is important in my opinion [to be intuitive].

I feel your chaining API works. Personally, I'm not a fan of them myself, (I'm more familiar with XUnit - which has a similar chaining API) - I find that I can never remember what methods work with other methods as the names of these methods have more human-readable names, I would much rather prefer Assert.IsEqual(myvariable, 4); but that is just me and I don't represent everyone's opinions. To that point, some of your methods for say within the ComparableTester return a PageModel, but some return a ComparableTester, or StringTester - how do I easily know with just the method name myself which methods I can call without consulting the documentation for each method? Something to consider, I'm not sure if I was building the same type of project how I'd go about it.

Thanks for trying it out and the feedback!
Are there any projects with really good introduction content you'd recommend I look at?

@matt-stevenson Have you found an example?
I have been busy with life and slow to reply to this thread.

@reZach not yet, trying to make time to work on it Friday

authors: matt-stevenson reZach

repo: pagemodel/page-model-tools


text:
🛑 Arise is down

In f8cf5ac, Arise (https://arisefotografie.be) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Arise is back up in 56697e9.

repo: pageon/uptime


text:
🛑 School of intersession is down

In 3730852, School of intersession (https://www.schoolofintercession.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: School of intersession is back up in 57fb7d9.


text:
🛑 School of intersession is down

In bfa427b, School of intersession (https://www.schoolofintercession.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: School of intersession is back up in 5a3af65.


text:
Page title uses the first heading instead of _config.yml values

I'm having this problem with my Github page: https://github.com/titcoin/titcoin.github.io
In _config.yml, I have configured the title and description as:
title: Titcoin
description: The adult cryptocurrency

However, the page title comes out as:
<title>Welcome to Titcoin! | Titcoin</title>
What I would expect is:
<title>Titcoin | The adult cryptocurrency</title>
On https://pages-themes.github.io/cayman/ it seems to work as expected and the first heading is not used. So is this a bug, or am I misunderstanding something? How can I make the page title look as described above?

The default is set up here on line 26 & 27: https://github.com/pages-themes/cayman/blob/7269e0563fc074edd9c7ff1588424e7caf1d2ed5/_layouts/default.html
So that should help you set up your titles and descriptions accordingly.

Thanks! I explicitly set the "title" and "description" front matter tags in the index.md file (in addition to _config.yml) and now it works as expected. :)

repo: pages-themes/cayman

license_source: bigquery


text:
IMN-48 - Implement  /compute/agreementsState

Closes IMN-48
This PR implements the /compute/agreementsState endpoint. Refer to the Scala logic here for review: https://github.com/pagopa/interop-be-agreement-process/blob/88402a001d4c285fb45da4081d782fb696a2894a/src/main/scala/it/pagopa/interop/agreementprocess/api/impl/AgreementApiServiceImpl.scala#L459
Automated tests ✅

Manual tests
Draft >> MissingCertifiedAttributes + Active >> Suspended (two parallel updates)

MissingCertifiedAttributes >> Draft + Suspended >> Active  (two parallel updates)

Pending >> MissingCertifiedAttributes + no effect on the other agreement (not updatable state)

Agreements in an updatable state by no change in suspendedByPlatformFlag

Agreement in an updatable state but transition is not allowed

@galales I should have addressed all comments 👍

repo: pagopa/interop-be-monorepo


text:
Made World available in System.New

Fixes #93.

Does not work, awaiting fix.

repo: paked/engi


text:
Implement RFC 0053: Create Static Jammy Buildpackless Builder

In https://github.com/paketo-buildpacks/rfcs/blob/main/text/0053-add-static-stack.md, the creation of a new static stack, and related buildpackless builder were introduced.
Since then, the Jammy static stack has been created: https://github.com/paketo-buildpacks/jammy-static-stack. In order to make this a more useable addition, we should implement the buildpackless static builder as described in the RFC.
Per the RFC:

The builders team will create a new Github repository at: paketo-buildpacks/builder-jammy-buildpackless-static similar to existing buildpackless builders.

cc @paketo-buildpacks/builders-maintainers

@sophiewigmore i think we were holding off on creating a buildpackless builder until we validated that the stack was usable by any of our supported buildpack.
I started exploring integration with Go (see this slack thread) but I ran into some Go-specific issues and deprioritized the investigation. I didn't try Rust, which is the other language I'd expect to work on the scratch stack. I'm not 100% sure if Java Native would work on static or not - I'm not familiar enough with that ecosystem.
If we don't ever get to the point of integrating the static stack with Paketo Buildpacks, even a buildpackless-builder seems like a bit of overkill.
Was there something specific you were looking to achieve with a buildpackless builder, or were you just trying to ensure the RFC was fully implemented?

@robdimsdale I didn't see that thread, that makes sense though. The goal of this issue was to make sure the RFC gets fully implemented. Whether the resolution is to re-explore this or to opt not to go through with a builder, it'll be good to have an easily-discoverable record of that decision.

This is an example of where a static builder would be useful: https://github.com/paketo-community/rust/issues/288

Give the above use-case of a community member trying to build a statically-linked self-contained rust app, and given the relatively low-cost of maintaining this builder, I think it's worth prioritizing the creation (and ongoing maintenance) of this builder.

Repo created at: https://github.com/paketo-buildpacks/builder-jammy-buildpackless-static

Automation is hooked up and the first release of the builder has been created: https://github.com/paketo-buildpacks/builder-jammy-buildpackless-static/releases/v0.0.1. I'll close this issue now as the builder is usable via paketobuildpacks/builder-jammy-buildpackless-static.

authors: robdimsdale sophiewigmore

repo: paketo-buildpacks/rfcs


text:
Pronoun Switcher has incorrect grammar

the way the regex parser works is fundamentally flawed, it will need to be rebuilt following the sentence splitter

Sentence splitter is being started, this should fix grammar issues, the structure of pronoun switcher will need to be modified as to accommodate more flexible grammatical structures

repo: palamalama/Language-Processor


text:
compiler error in angular 2 sample

I followed this tutorial (https://angular.io/docs/js/latest/quickstart.html) for angular 2 using vi.  Then, I did the same with an eclipse project and palantir.  The palantir plugin finds errors that tsc does not.  How can I resolve these?  How can I set 'emitDecoratorMetadata' in the palantir Typescript builder? (maybe it matters-I don't know).

I think some of those features (like decorators) require using the as-yet unreleased version of TypeScript plug-in (1.5). You can get it by switching to the develop update site. Instructions for doing so are in the wiki.

using 1.5 from the dev branch worked for me!

I just merged the 1.5 support (which includes decorator support) into the main (non-develop) release so you should be able to switch back to normal releases now.

authors: Waog derekcicerone jjfraney

repo: palantir/eclipse-typescript


text:
Typedef call-signature is not working on arrow functions

See the following example:
export class TsLint {
    function helloWorld() {
        return 'Hello World';
    };

    arrowHelloWorld = () => {
        return helloWorld();
    };
}

In tslint.json file I have the following rule configured:
"typedef": [
      true,
      "call-signature",
      "parameter",
      "arrow-parameter",
      "property-declaration",
      "variable-declaration",
      "member-variable-declaration"
    ],

When running tslint I get an error only for the helloWorld function and not for the arrow function arrowHelloWorld  also:
[08:59:38] Starting 'tslint'...
[08:59:38] [gulp-tslint] error (typedef) tslintIssue.ts[2, 25]: expected call-signature: 'helloWorld' to have a typedef
[08:59:38] 'tslint' errored after 175 ms
[08:59:38] Error in plugin 'gulp-tslint'
Message:
    Failed to lint: tslintIssue.ts[2, 25]: expected call-signature: 'helloWorld' to have a typedef.

Is this an issue in tslint?

Thanks for the report @sergiubologa, seems like a bug to me!

authors: JKillian sergiubologa

repo: palantir/tslint


text:
React component imports being reported as unused imports even though they are being refrenced by other components

Bug Report

TSLint version: 3.13.0
TypeScript version: 1.9
Running TSLint via:  CLI

TypeScript code being linted
import * as React from "react";

React.Component {
    return(

);
}

with tslint.json configuration:
 "no-unused-variable": true

Actual behavior
React component imports are being flagged as unused even though they are being used in another components..
Expected behavior
linter should not flag such imports as and this applies to all tsx files that uses this pattern.

@mdahamiwal that code sample doesn't look like valid typescript. Also, which identifier is flagged as unused?

I can provide an example (for lack of a better issue, I have no idea how I'd describe this bug anyways):
Given React and Radium,
package.json
{
   "dependencies": {
        "radium": "0.16.2",
        "react": "0.14.8",
    }
}

import * as React from 'react';
import * as Radium from 'radium';

interface MyTestComponentProps extends React.Props<MyTestComponent> {
}

export class MyTestComponent extends React.Component<MyTestComponentProps, void> {
    render(): JSX.Element {
        return (

                <Radium.Style
                    scopeSelector='.myDiv'
                    rules={{
                        margin: '1px auto',
                    }}
                />

                    I am some friendly text.

        );
    }
}

The error is
import * as Radium from 'radium';
            ^^^^^^ Unused variable 'Radium'

Though it is used below in
<React.Style ... />

I'm also seeing this issue consistently when using import * as Foo from "foo" and then only using Foo in TSX syntax. If used in plain TS code, it doesn't complain, otherwise Foo is reported as unused.
FWIW I also have a slightly related issue with chained imports:
import * as Foo from "foo"`;
import bar = Foo.bar;

Foo is reported as unused by TSLint even when it's used in another import. I agree this is a weird syntax, but still valid TypeScript.
My guess is that both issues are related.

@mschnee which version of TypeScript are you using? that looks a lot like https://github.com/palantir/tslint/issues/1010

tsc --version
Version 1.8.10

tslint --version
3.14.0

If I update to TypeScript@2.0.0, the issue gets fixed, but I don't want to use it yet. Have I got other choices?

Well, another option is to use // tslint:disable-next-line:no-unused-variable above your import, but that's a pain.
TS 2.0 is really easy to upgrade to though! I don't think I've had to change a single line of code in any of my projects that I upgraded.

@adidahiya
Typescript 1.8.10, tslint 3.9.0
If it's fixed in newer tslint, I'll pass that up the chain.  Unfortuantely for the specific project I am working on, the versions of typescript and tslint are locked and outside of my control :/

It was a bug in the TypeScript language services that was fixed in v1.9. Disabling the rule is your best option if you can't upgrade TS.

@adidahiya Where is TS 1.9? I can only see 1.8.10 and 2.0 beta in https://github.com/Microsoft/TypeScript/releases

@pablonete 1.9.x only had -dev releases, so you'll see that on the next dist-tag on NPM. 2.0 beta also has the fix.

authors: JKillian adidahiya mdahamiwal mschnee pablonete


text:
More control to vnode equality comparison during patch

Hi @paldepind and thanks for the great library! I noticed this issue when I was implementing snabbdom interpreter to TSERS.
Reactive libs (e.g. RxJs, Kefir, ...) usually have a combinator function for arrays of observables (like Rx.Observable.combineLatest) that cache the latest values from the combined observables and return the cached values from other observables than the changed one.
I discovered that if I remove one item from the existing observable list (list$ = O.combine(item1$, item2$, ...., render)) the list rendering crashes. It seems that this happens because snabbdom mutates  the patched/rendered new vnode by adding elm into it. However, because the items are cached inside the O.combine, the next patch/render (after item removal) receives exactly same vnodes as old and new ones. If I remove one item from the beginning of the list, snabbdom starts to patch and mutate existing vnodes, hence causing unexpected behaviour (somethings it crashes, sometimes just renders the DOM incorrectly, depending on the content).
Here is an example that is broken:
var snabbdom = require('snabbdom');
var patch = snabbdom.init([ ]);

var h = require('snabbdom/h');

var root = document.getElementById('app')

var li_1 = [
  h("li", [h("span", ["1"])]),
  h("li", [h("span", ["2"])]),
  h("li", [h("span", ["3"])]),
  h("li", [h("span", ["4"])])
]

var first = h('div', [
  h("ul", li_1)
])

var li_2 = [
  li_1[0],
  li_1[2],
  li_1[1],
  li_1[3],
]

var second = h('div', [
  h("ul", li_2)
])

patch(root, first)
patch(first, second)

In the end, that should render 1, 3, 2, 4. However, the final output is 1,2,3,4.
Fortunately this can easily be avoided by cloning the vtree before the patching operation:
function cloneVTree(vnode) {
  return {
    sel: vnode.sel,
    data: vnode.data,
    children: vnode.children && vnode.children.map(cloneTree),
    text: vnode.text,
    key: vnode.key,
    elm: vnode.elm
  }
}

However, this disables a very important performance optimization: vnode identity check.
My proposal is to give more control to vnode's equality comparison. The solution would be extremely simple: optional .equals function to vnode which performs the equality comparison. The solution would require only one backwards compatible change:
    ...
    var elm = vnode.elm = oldVnode.elm, oldCh = oldVnode.children, ch = vnode.children;
-   if (oldVnode === vnode) return;
+   if (oldVnode === vnode || (isDef(i = vnode.equals) && i(oldVnode, vnode))) return;
    ...

Now it would be possible to clone the existing vtree (thus avoid invalid patching behaviour) and preserve the identity check optimization:
// in my library code (simplified...)
const hh = require("snabbdom/h")
const h = (...args) => {
   const vnode = hh(...args)
   vnode.data.identity = {}
   vnode.equals = (old, vnode) => old.data.identity === vnode.data.identity
   return vnode
}

What do you think? Does this modification make any sense? I already have a forked branch with the modification and tests. If this is ok for you, then I'll make a PR for this.
Thanks!

However, this disables a very important performance optimization: vnode identity check.

This optimization only applies when using thunks or something similar. Are you using thunks?

This optimization only applies when using thunks or something similar. Are you using thunks?

Nope. It actually applies to normal vnodes as well and when using snabbdom with Observables it's quite easy to take advance of that optimization when using e.g. combineLatest.
You can verify this by debugging my example above (place debugger statement between first and second patch: the first li vnode is caught by the identity check, thus it and its children are not diffed/patched further).

There are 7 likes on this issue. But I'm not sure whether they are users who came here because they reused VNodes (which I'm pretty sure is not supported) and got undesired behavior or they support the suggestion of a custom VNode equality check API. Regardless, I've changed the title to make it obvious what this is about.
I am skeptical about the necessity of this feature. I'd like to see evidence of insufficient performance myself.

authors: mightyiam milankinen paldepind

repo: paldepind/snabbdom

license: mit


text:
Fix cursor jumping to the end of "controlled" inputs

DOM INPUT.value should never be updated when it matches the new vnode.
This fixes issues where typing into an INPUT with a sync event handler cause a render (such as for validation feedback) where setting INPUT.value also pushes the cursor to the end of the input.

@katyo brought something similar up just recently here #63. In his/her code the same fix was made among other things. I'd like to hear what you think about it?
I think the cursor preservation in @katyo proposal is very nice. But this PR certainly fixes a significant part of the issue and since you mentioned that this is a present problem for you I will merge this PR and do a release.

With this fix #63 should also be fixed. Range will be preserved.

@garth With the code #63 one can additionally change the input value with props and still preserve cursor position.

@paldepind if the re-render happens on the same tick then the cursor position or selection should be unaffected by the render, in which case this PR should be sufficient.
If you want to update the value (and preserve or modify the selection range) then I think that is a more specialised operation that could possibly be handled by the app which can monitor the selection, as with any regular app that manipulates the DOM directly would have the same issue.

authors: garth paldepind


text:
-status_exploit_timeout_error occurs and cannot continue

Device
iPhone 6s Plus
Version
iOS 15.8.2
Passcode?

[ ] Passcode is enabled.

Start going into detail..
I tried to resolve the error by following the official documentation, but failed. Is this error repairable?
Familiarity with palera1n

[X] I am familiar with palera1n and how to use it!

Familiarity with CLI

[ ] I am familiar with the command-line!

Is this related to Timed out waiting for download mode?

https://docs.palera.in/docs/troubleshoot/troubleshooting-steps/#timed-out-waiting-for-download-mode

Is this related to Timed out waiting for download mode?

https://docs.palera.in/docs/troubleshoot/troubleshooting-steps/#timed-out-waiting-for-download-mode

Yes

You can keep trying and use a different port if possible, a fix isn't really a thing as this can happen any time with little to no information available on what the culprit could be.
Just keep trying and you should eventually get it.

authors: K-Yuzen-GitHub khcrysalis


text:
Revisit Pagination

Devise a more extensible solution which deals with the issues raised in #232, #281, #265, #151 & #70

I put some thoughts into #272, and think it is worth to mention here. OFFSET is not the best way to paginate. It was also noticed by @noah in https://github.com/mitsuhiko/flask-sqlalchemy/issues/232#issuecomment-76480428. So, I like to join discussion.

Something I didn't find mentioned directly in the other pagination issue reports is that db.session does not use the same query class as db.Model.query.  This is trivial to solve by passing query_cls, but it's a weird oversight that can cause confusion.  For example when db.session.query(thing1, thing2).paginate() doesn't work.
from flask_sqlalchemy import SQLAlchemy, BaseQuery
db = SQLAlchemy(session_options={'query_cls': BaseQuery})

Making a note here that db.session now uses the same class as db.Model.query by default as of #328 :dancer:

I am sure I am using flask_sqlalchemy, but "AttributeError: 'list' object has no attribute 'paginate'" happens. so upset!

@wck821829906: Don't call .all() before calling .paginate(). Also, don't hijack unrelated issues.

Has there been any progress on this issue? I am not at all an SQL expert, otherwise I would try to tackle it ...

COUNT is super slow, and Flask-SQLAlchemy always gets COUNT for pagination. The first step would be to stop using COUNT and just have prev/next based pagination. Since this project looks dead, we just have to create our own implementations.

Hi Patrick, this project is not dead. I'd be happy to review any work you're willing to put into pull requests, but have limited free time to devote to this myself at the moment. Thank you.

As to the count stuff, this comes up every now and then, search back through the closed issues for an explanation. I don't plan to remove it.

There are many cases where COUNT and OFFSET are perfectly fine. Unless you are above ten thousands of rows in the initial resultset you can safely use them. And honestly, most typical webapps using flask-sqlalchemy's pagination are not that likely to end up having to paginate that many rows.
If you need something more efficient (usually prev/next based on WHERE indexed-column > prev-value LIMIT x and similar approaches writing your own implementation is easy.

This may be way out in left field but...should we consider removing pagination from Flask-SQLAlchemy?  My brief thought is that FSA is a bridge between Flask and SQLAlchemy.  Pagination seems like a separate concern.  Is there anything that requires Pagination to be embedded in the library as opposed to maintained in a separate library (assuming someone wanted to do that)?

#1087 addressed some pagination issues, I'm fine with continuing to support it.
The query interface is legacy in SQLAlchemy 2.0, I'll be adding some support for select() instead.

In #1100 I ended up removing creating Pagination objects manually as a public API. I think supporting pagination makes sense, it's a very common interface in web applications, but I also don't think we need to provide a generic pagination API. So now db.paginate and query.paginate are the only ways to get pagination in the public API.

authors: ThiefMaster davidism immunda patrickyan rsyring sebpiq wck821829906 xen

repo: pallets-eco/flask-sqlalchemy


text:
UnicodeEncodeError when script is in a folder with non-ascii characters in the name

Very very nice work done in Flask! Really liked it!
However, I was trying to run my Flask script under a subfolder of my Desktop folder in Ubuntu. Since my system is set up for Portuguese (I'm Brazilian), the default name for the folder is "Área de Trabalho". I was getting UnicodeEncodeError every time I tried to run the example in "11.7 Uploading Files". (At least it was really good to teach me how to use the Flask debugger!) I went around, examining where the error was coming from, and, finally, got to "File "/usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/helpers.py", line 350, in send_file", when the function adler32 uses the unicode string. Then, I just tried a quick "from zlib import adler32; adler32(u'Á')" to realize that zlib doesn't allow unicode strings, returning a "UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 0: ordinal not in range(128)".
Of course I can move my script to another folder, but it would be nice not having to think about that in the future, especially when it is said that "Flask like Jinja2 and Werkzeug is totally Unicode based when it comes to text".
Sorry if I don't make much sense... it's almost 3:00am around here...
Congrats for the great job on Flask!
jjunho

The original bug was reported against Flask 0.6.
Is this issue still relevant?

Tried this on 0.7 thru master and could not reproduce. Flask examples run fine even when the path contains non-ascii chars.

authors: antsar jeffwidman jjunho

repo: pallets/flask


text:
Date HTTP header duplicated on static content

Using Flask 2.2.2, it seems that serving static resources leads to a duplicate Date HTTP Header field.
Here is a simple snippet easy to understand and to show how to reproduce:
from flask import Flask

app = Flask(__name__, static_url_path='/static')

@app.route('/', methods=['GET'])
def index():
    return "Hello World"

app.run(port=30887)

Let's create a simple file inside static directory:
mkdir static
echo Hello > style.css

Now let's check HTTP headers:
maxux@workx0 ~ $ curl -I http://127.0.0.1:30887
HTTP/1.1 200 OK
Server: Werkzeug/2.2.2 Python/3.10.8
Date: Thu, 05 Jan 2023 21:53:31 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 11
Connection: close

All good here.
maxux@workx0 ~ $ curl -I http://127.0.0.1:30887/static/style.css
HTTP/1.1 200 OK
Server: Werkzeug/2.2.2 Python/3.10.8
Date: Thu, 05 Jan 2023 21:53:53 GMT                <<<<
Content-Disposition: inline; filename=style.css
Content-Type: text/css; charset=utf-8
Content-Length: 6
Last-Modified: Thu, 05 Jan 2023 21:50:59 GMT
Cache-Control: no-cache
ETag: "1672955459.103843-6-1459357711"
Date: Thu, 05 Jan 2023 21:53:53 GMT                <<<<
Connection: close

You can see Date header twice, for a static content response.
In addition, you can see python and Flask running version in the response as well to confirm running version.
This was spotted using nginx on front which complains (by a warning) that the header is duplicated.

Duplicate of https://github.com/pallets/werkzeug/issues/2500.
Do not use the development server in production.

authors: davidism maxux


text:
Remove extra backtick in docs

Removes an extra backtick from the inline code

Please make docs changes against the latest feature release.

authors: Numerlor davidism


text:
docs: fix MAX_CONTENT_LENGTH calc to match description

description below says the value is in megabytes, so it should be * 1024 instead of * 1000?

Checklist:

[ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
[x] Add or update relevant docs, in the docs folder and in code.
[ ] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[ ] Add .. versionchanged:: entries in any relevant code docs.
[ ] Run pre-commit hooks and fix any issues.
[ ] Run pytest and tox, no tests failed.

This change isn't needed. The 1000 vs 1024 issue is not worth it.

The next line in docs says "The code above will limit the maximum allowed payload to 16 megabytes.", which is not this number. Hence this PR to fix the discrepancy.

You're thinking of mebi (1024) vs mega (1000), it's correct as-is. But personally I don't care about the distinction.

authors: davidism yedpodtrzitko


text:
Wishlist: Add unique filter

Hi,
It would be useful to have unique filter to convert source list into list containing only unique items.
Expected Behavior
{% set unique_items = ['a', 'b', 'a']|unique %}  should make unique_items a list of  ['a', 'b'].
Actual Behavior
There is no unqiue filter.

#469

authors: Talkless davidism

repo: pallets/jinja


text:
python3.7 tox DeprecationWarning

Tox report DeprecationWarning on two files in the latest release.

Expected Behavior
No warnings from tox
Actual Behavior
Tell us what happens instead
============================================================================================ warnings summary ============================================================================================
.tox/py37/lib/python3.7/site-packages/jinja2/utils.py:485
  /Users/c.h/stash/oh-xx/.tox/py37/lib/python3.7/site-packages/jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import MutableMapping

.tox/py37/lib/python3.7/site-packages/jinja2/runtime.py:318
  /Users/c.h/stash/oh-xx/.tox/py37/lib/python3.7/site-packages/jinja2/runtime.py:318: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================= 22 passed, 2 warnings in 1.83 seconds ==================================================================================
________________________________________________________________________________________________ summary _________________________________________________________________________________________________

Template Code
tox

Full Traceback
see behavior

Your Environment

Python version:  3.7
Jinja version: 2.10.1

Already addressed in master

authors: davidism hemskgren


text:
investigate removing get_filesystem_encoding

I think this is a non-issue in Python >= 3.6 ~because of PEP 529~, but I haven't had time to look thoroughly. It would be helpful if someone could write up some research on whether it's still relevant.

So there are mainly two things that get_filesystem_encoding checks:

Whether or not the system is a "buggy" unicode filesystem, i.e. linux or bsd system and the result of sys.getfilesystemencoding is None (which can't be anymore so this check should no longer make sense)
Whether or not sys.getfilesystemencoding is ASCII

In theory has_likely_buggy_unicode_filesystem should no longer be needed as sys.getfilesystemencoding will never return None, but according to the python docs:

On Unix, the encoding is the locale encoding.

And according to the werkzeug docs:

several bug reports against Werkzeug have shown that the value of sys.getfilesystemencoding() cannot be trusted under traditional UNIX systems. The usual problems come from misconfigured systems, where LANG and similar environment variables are not set

So I think we shouldn't be able to safely remove get_filesystem_encoding. This is all theoretical thinking based on docs as I am unsure about how to create tests for this.

Great writeup, thank you. It sounds like we can at least clean this up a bit, even if we can't remove it yet. The comment in the Werkzeug docs is pretty vague, were you able to find any of the issues it referred to?

Here's what comes up searching for getfilesystem on the repo. From these, #689 and #635 seem to be relevant and have been fixed by #674, which implements the get_filesystem_encoding. I think we could try and create some tests for this and see exactly what can be removed from the code without issues. I'm not sure about how to implement these tests for different architectures though, but it should be fun :)

To follow up on this, it looks like Werkzeug's get_filesystem_encoding uses the same logic as PEP 538 and PEP 540: on Linux, if the encoding is not available or is "C", use "UTF-8" instead. Once we drop Python 3.6 support, probably in 2.1, we can remove these functions.

authors: davidism gmelodie

repo: pallets/werkzeug


text:
Add support for Dask DataFrames

As I said in #279, this is my work so far. I changed the name of the lib so I could have both packages installed.
As you can see, it's far from a finished work for:

It's from an old version
I replaced the pandas functions, therefore it is concurrent to the original
Many features were lost in the process

But I'm willing to put the effort into it, so I created this mostly to discuss what would be a great approach for adding support for dask dataframes.

@brunompacheco Thanks for this exciting contribution. Performance is one of the biggest downsides of the current implementation of pandas-profiling. Dask would be a great candidate to scale up.
For the reasons you mention, working further in this direction requires dedicated effort to produce a dak. Moreover, maintaining two code bases for two in parallel integrations for pandas and Dask introduces significant technical debt. We do want to support multiple integrations, but supporting them are not a core task of pandas-profiling. Modin seems to most suitable candidate for this at this moment.
For now I would like park this PR for a while, we might come back to it later.

authors: brunompacheco sbrugman

repo: pandas-profiling/pandas-profiling


text:
Simplify condalock workflow to work without chatops

Discussed in detail here https://github.com/CryoInTheCloud/hub-image/issues/18
A less convoluted workflow for creating and installing from a unified lockfile from conda-lock would be nice.
The chatops /condalock command was a fun solution at the time to allow administrators to trigger the condalock workflow (that requires a token with write permissions to add files to a PR), but there are alternatives now such as manually triggered workflow_dispatch or adding a label to an open PR
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

Hi @scottyhq, I've been discussing with @yuvipanda and a few others on turning the /condalock chatops into a GitHub Action or GitHub App in a dedicated repo under the jupyter org (though we'll probably test things on CryoInTheCloud or some other org first). There's been some interest from 2i2c and the folks at NASA IMPACT/VEDA to put some effort into this, and we can rope you into the discussion if you're interested!

The chatops /condalock command was a fun solution at the time to allow administrators to trigger the condalock workflow (that requires a token with write permissions to add files to a PR), but there are alternatives now such as manually triggered workflow_dispatch or adding a label to an open PR
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

On this conda-lock trigger mechanism, could you elaborate on what's the ideal way to set things up from a repo maintainer perspective? Currently the /condalock chatops is a bit hacky, though it allows just about any GitHub user to trigger the locking mechanism. Were you thinking of a more secure way of triggering the workflow that requires approval on first run (like most GitHub Actions) instead?

In case it's useful, here's a snippet from a workflow over in pangeo-forge-runner that triggers an integration test based on the presence of a particular label:

https://github.com/pangeo-forge/pangeo-forge-runner/blob/3b71752c3654b3fbab39ad242ba7901b166902ac/.github/workflows/dataflow.yaml#L1-L24

The workflow triggers on every commit to a PR (if the specified label is also present at commit time). It also triggers against the latest commit, if the label is added.

I do think just typing /condalock is perfectly fine, and the way to automate it is perhaps to have another bot that does /condalock whenever an update is done - or even be automatically triggered each time a push is made (similar to how pre-commit.ci does it). It's a fairly harmless action (unlike pangeo-forge runs!) that we can hand out broader control to the world to

There's been some interest from 2i2c and the folks at NASA IMPACT/VEDA to put some effort into this, and we can rope you into the discussion if you're interested

Cool! Thanks @weiji14 @cisaacstern @yuvipanda for the ideas. I'm definitely interested but don't really have time to work on it. Any simplifications to the current setup or ways to make it more easily setup in other repositories would be fantastic.

There's been some interest from 2i2c and the folks at NASA IMPACT/VEDA to put some effort into this, and we can rope you into the discussion if you're interested

Cool! Thanks @weiji14 @cisaacstern @yuvipanda for the ideas. I'm definitely interested but don't really have time to work on it. Any simplifications to the current setup or ways to make it more easily setup in other repositories would be fantastic.

Totally understand, I'll keep you in the loop on the outcome when we start implementing this :smile:. If it's ok, I might open a few PRs on pangeo-docker-images to test things out in the next few months. Have recently got conda-lock=2.0 to work on https://github.com/CryoInTheCloud/hub-image/pull/14, and would be nice to roll that out to pangeo-docker-images soon too!

Started initial implementation of a composite GitHub Action at https://github.com/weiji14/conda-lock-refresh, with related demo repo at https://github.com/weiji14/conda-lock-refresh-demo. Note that I'm still testing this out, and there's still a few bugs (e.g. the 'bot' pushes to the main branch instead of the Pull Request branch, gets triggered on regular comments without /condalock, etc), but it's looking promising :slightly_smiling_face:
Once this work is a bit more polished, I can transfer ownership of these repos to a more official organization.

authors: cisaacstern scottyhq weiji14 yuvipanda

repo: pangeo-data/pangeo-docker-images


text:
Don't overwrite cache

This adds a check to prevent caching if it looks like the file is already there.

Bit by the same cfgrib issue.

I apparently made a mess of the commit history by rebasing this on master. Whoops.

repo: pangeo-forge/pangeo-forge


text:
Error when I run Anglian Water: Force Refresh Statistics

System Health details
System Information

version
core-2024.11.2

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.12.4

os_name
Linux

os_version
6.6.31-haos-raspi

arch
aarch64

timezone
Europe/London

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

HACS Data
ok

GitHub API Calls Remaining
4993

Installed Version
2.0.1

Stage
running

Available Repositories
1463

Downloaded Repositories
41

Home Assistant Cloud

logged_in
true

subscription_expiration
7 December 2024 at 00:00

relayer_connected
true

relayer_region
eu-central-1

remote_enabled
true

remote_connected
true

alexa_enabled
true

google_enabled
false

cloud_ice_servers_enabled
true

remote_server
eu-central-1-11.ui.nabu.casa

certificate_status
ready

instance_id
06596e6908f04cbd8eeae351a515c8ed

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Home Assistant Supervisor

host_os
Home Assistant OS 13.2

update_channel
stable

supervisor_version
supervisor-2024.11.3

agent_version
1.6.0

docker_version
27.2.0

disk_total
457.7 GB

disk_used
25.3 GB

healthy
true

supported
true

host_connectivity
true

supervisor_connectivity
true

ntp_synchronized
true

virtualization

board
rpi4-64

supervisor_api
ok

version_api
ok

installed_addons
Advanced SSH & Web Terminal (19.0.0), Samba share (12.3.2), Mosquitto broker (6.4.1), ESPHome (2024.10.3), Let's Encrypt (5.2.3), File editor (5.8.0), OLED System Monitor (2.3.0), Glances (0.21.1), Node-RED (18.1.1), Studio Code Server (5.17.3), JupyterLab (0.15.4), AppDaemon (0.16.7), HassOS I2C Configurator (0.14), OpenSpeedTest (v2.0.5), openWakeWord (1.10.0), Piper (1.5.2), Whisper (2.2.0), Matter Server (6.6.0), Speedtest (1.6.2), SQLite Web (4.2.2)

Dashboards

dashboards
8

resources
14

views
13

mode
storage

Recorder

oldest_recorder_run
19 October 2024 at 15:19

current_recorder_run
16 November 2024 at 17:47

estimated_db_size
4737.87 MiB

database_engine
sqlite

database_version
3.45.3

Sonoff

version
3.8.1 (ffa7e22)

cloud_online
1 / 1

local_online
1 / 1

Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of any previous issues..

Describe the issue
I have been using the Anglian Water: Force Refresh Statistics in an automation to update water usage which I show on my HA energy dashboard.  Without running this I am forced to restart HA to populate this information.  On upgrading to 2024.11.0 my automation now shows this error:
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:526
First occurred: 14:31:48 (1 occurrences)
Last logged: 14:31:48
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: unsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/anglian_water/init.py", line 80, in force_refresh_statistics
await coordinator.insert_statistics(
File "/config/custom_components/anglian_water/coordinator.py", line 135, in insert_statistics
hourly_consumption_data = await self.client.get_usages(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyanglianwater/init.py", line 78, in get_usages
output["cost"] += (self.current_tariff_rate / days_in_year(start.year)) * days(start, end)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyanglianwater/init.py", line 17, in days
return (e-s).days
~^~
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'
Is there a workaround to address this issue?
Reproduction steps

Go to Developer tools
Select Actions
Choose Anglian Water: Force Refresh Statistics
Input to and from dates
Click on "Perform Action"

This results in an error
Debug logs
See file attached in diagnostics log as too long to paste in here

Diagnostics dump
home-assistant_anglian_water_2024-11-18T14-44-19.278Z.log
home-assistant_2024-11-18T14-45-32.192Z.log

Hi,
Yes I've seen this too.
Working on a fix now.

2024.11.0 just released which should address this.


text:
Conditionally load action_text in CI

Conditionally load action_text in CI with matrix, to test without engine loaded.

Done in #117 and #118


text:
Create Posts “technologyvshumantrafficking”

Automatically generated by Netlify CMS

👷 Deploy Preview for rangitoto-reporter processing.
🔨 Explore the source changes: 007c9d65573a2a82fb2a24ae254f10bcdafb2803
🔍 Inspect the deploy log: https://app.netlify.com/sites/rangitoto-reporter/deploys/60fd2b7e51069000070c39e0

repo: pantryfight/rangitoto-reporter


text:
interpreter.py's _from_binary_external doesn't handle perm errs well.

Python35 has been mis-installed on my dev system. Some of the packages are owned root, read only root. (This is a diff issue which I'll be emailing root about).
However, Pex's interpreter identifier throws a "permission denied" error trying to get versions of those packages at the point it imports "pkg_resources". Which causes it to decide the interpreter as a whole is unusable, causing my python>3.0 requirement to fail to be satisfied...
Should it perhaps not yield a valid interpreter but without the extras portion of the identification data?

(This is a diff issue which I'll be emailing root about).

Hah!

Should it perhaps not yield a valid interpreter but without the extras portion of the identification data?

Perhaps, but its likely code downstream will fail. For example, pkg_resources is part of setuptools, and pex tries to install setuptools for the interpreter it's using and I suspect that step would then fail in your case.
It's not immediately clear to me how to teach pex to check for broken python distributions that are broken little-enough to be viable.
I'm going to mark this as answered but leave the issue open a bit to attach some cleanup PRs to - your prompt got me looking at some code where some dead bits stood out.

Hah!

Root did, in fact, email me back about ten minutes later have done a recursive chmod...
We have no idea why the package update didn't work properly.

Perhaps, but its likely code downstream will fail.

Fair enough!

authors: engineerkatie jsirois

repo: pantsbuild/pex


text:
Misbehaviour in debug_traceCall

Describe the bug
In reth, we fail to retain contract address when using debug_traceCall,
however the exact same function, without anychanges, returns the right values in geth
Steps to reproduce
Reth, faulty response:
curl http://localhost:8545/ -X POST -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"debug_traceCall","params":[{"data":"0x03e11a81a460ea6fd96a73d5672f1f4aa684697d4b44cc46c8229b","from":"0xaeeb8456f598f7242ed32bc9658ba20f6b4557fd","gas":"0x927c0","gasPrice":"0x149d12861","to":"0x0015fe03456b000000009a38ba029a1d515f00e8","value":"0x49e1b0a"},"0x12e0a13",{"stateOverrides":{},"tracer":"{ retVal: [], callStack: [], byte2Hex: function(byte) { if (byte < 0x10) return \"0\" + byte.toString(16); return byte.toString(16); }, array2Hex: function(arr) { var retVal = \"\"; for (var i = 0; i < arr.length; i++) retVal += this.byte2Hex(arr[i]); return retVal; }, getAddr: function(log) { return this.array2Hex(log.contract.getAddress()); }, step: function(log, db) { var opcode = log.op.toNumber(); if (opcode == 0x54) { this.retVal.push(this.getAddr(log) + \":\" + log.stack.peek(0).toString(16)); } if (opcode == 0x55) this.retVal.push(this.getAddr(log) + \":\" + log.stack.peek(0).toString(16) + \";\" + log.stack.peek(1).toString(16)); }, fault: function(log, db) { this.retVal.push(\"FAULT: \"); }, result: function(ctx, db) { return this.retVal; } }"}]}'

[":29014e76b0986d11d3cdf684c1f9f21c48ee047d65ac69db0da87068aa883c4f"]

Geth right response:
*just change localhost to this geth node: https://eth-pokt.nodies.app *
["c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:29014e76b0986d11d3cdf684c1f9f21c48ee047d65ac69db0da87068aa883c4f"]

as you can see, the contract address before the : is missing in reth respone
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
reth Version: 0.2.0-beta.6
Commit SHA: ac29b4b73
Build Timestamp: 2024-05-03T11:36:14.574613897Z
Build Features: jemalloc
Build Profile: maxperf
What database version are you on?
Current database version: 2
Local database is uninitialized
Which chain / network are you on?
mainnet
What type of node are you running?
Archive (default)
What prune config do you use, if any?
No response
If you've built Reth from source, provide the full command you used
No response
Code of Conduct

[X] I agree to follow the Code of Conduct

yeah and contract is set:
https://github.com/paradigmxyz/evm-inspectors/blob/089efacf72e7583630841b7027c46a3cb2f9c28b/src/tracing/js/bindings.rs#L202-L202
looks like log.contract.getAddress() returns an empty vec? which would explain ":..."

for a little context,
this script is mainly used to generate accessLists
since the ‘eth_generateAccesslist’ is restricted to one transaction
simulation at once
Sent from Gmail Mobile
On Mon, May 6, 2024 at 9:57 AM Matthias Seitz @.***>
wrote:

yeah and contract is set:
https://github.com/paradigmxyz/evm-inspectors/blob/089efacf72e7583630841b7027c46a3cb2f9c28b/src/tracing/js/bindings.rs#L202-L202
looks like log.contract.getAddress() returns an empty vec? which would
explain ":..."
—
Reply to this email directly, view it on GitHub
https://github.com/paradigmxyz/reth/issues/8103#issuecomment-2096081324,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5XKAAT3D5MBLHMZWD4YPTZA6D4VAVCNFSM6AAAAABHHAXBBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJWGA4DCMZSGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

@Arvmor finally found it, sorry for the delay

authors: Arvmor mattsse

repo: paradigmxyz/reth


text:
Transmit pane

What's this PR do?
Implements a transmit pane to support host-to-microcontroller communication, as defined in issue #76 and the attached document.
Where should the reviewer start?
Pull down this branch, remove node_modules, npm install - to get the latest updates to bs2-serial.
npm run build
How should this be manually tested?
The Transmit Pane is the new bar between the editor and the Receive Pane. Right away, you should not be able to click into the Transmit Pane because no devices are connected. Load in some test code that uses SERIN. Download the code to a BS2 device. As long as the connection is open the Transmit Pane will be active.
While the connection is open, try typing text, paragraphs, long lines into the Transmit Pane.

Click back into already entered text. Press another key.
Press the backspace key.
Press the enter key.
Press the shift/ctrl/caps lock/tab/alt keys
Navigate with the arrow keys

Ensure the behavior around those events is as expected.
Disconnect your device. The Transmit Pane should become inactive. Connect and download again, the Pane should clear and reactive.
Any background context you want to provide?
The transmit pane is currently sending a Uint8 Buffer with ASCII codes to the device layer. The device layer seems to handle this well, as the characters representing those ASCII codes are displayed in the Receive Pane.
What are the relevant tickets?
Closes #76
Screenshots (if appropriate)

Problems found while testing last night:

board.write didn't accept strings properly - @2fast2fourier already fixed this
Backspace only worked the first time pressed, didn't cause backspaces to be echoed more than once to the transmit pane
Using the change event caused a bunch of weird behaviors, not sure if it was specific to my implementation, current impl looks very similar and probably will have problems.

updated with fixes to discovered problems.

@PropGit one more decision on key press events here in the transmit pane. We noticed some strange behavior when control, shift, command, or caps lock keys were pressed. They were either adding spaces or in the case of shift, clearing the receive pane. This doesn't seem to make sense, as the receive pane was clearing when typing capital letters. We tested the behavior in MacBS2 and noticed that it is ignoring those control keys. So we set up the transmit pane to ignore those as well. Is that how you want it working?

Well, I'm okay with that for now because the behavior you noticed is definitely not wanted, but it sounds like this solution prevents keyboard-based copying and pasting with the Transmit pane, and that's something we'd ultimately like to enable.  It's a lower priority all things considered, so we'll have to address that later.

@PropGit it doesn't stop keyboard-based copy-pasting, it just avoids sending the ascii code for those keys to the BS2.  You'll be able to test copy-paste during your testing.

Oh great!  That's good to hear, thanks!

authors: PropGit drquinn phated

repo: parallaxinc/Parallax-IDE


text:
ci: added image scanning step using trivy

What does this PR change?

Adds image scanning using trivy

Does the PR depend on any other PRs or Issues? If yes, please list them.

No

Checklist
I confirm, that I have...

[ ] Read and followed the contributing guide in CONTRIBUTING.md
[ ] Added tests for this PR
[ ] Formatted the code using go fmt (if applicable)
[ ] Updated documentation on the Paralus docs site (if applicable)
[ ] Updated CHANGELOG.md

closing current pr, will be tracking it as part of https://github.com/paralus/paralus/pull/219

repo: paralus/paralus


text:
Create company links and GTM tracker components

Traditionally, these components have been copied/pasted between tenants using Leaders. This consolidates them within the leaders package.

 Add leader (company) "impression" tracking


text:
Trajectory replay

Describe your changes
Movement recording and replay - fixes https://github.com/parasollab/VR_Robot/issues/11
@gche3  implemented both the joint recording and replay, I fixed the bug that caused the movement replay to get stuck while interpolating between the recorded positions
What is the purpose of this part of the project? Which assets and/or scripts are you adding or editing? Describe below.
The SetupUI script was modified to support the new functionality.
Checklist before requesting a review
Fill in by placing an x between the brackets below.

[x] I have performed a self-review of my code
[x] I have merged the master branch into my branch so it is up to date
[x] I have verified that the code will build and run
[x] I have checked that my changes do not conflict with other team members' work
[ ] I have added or edited pages on the wiki to reflect these changes

Anything else we should know?
Video:

Any issues introduced by these changes or bugs we should be aware of? Describe below or mark "N/A".
A grad student will review your changes and either approve and merge them or request changes. Please be responsive if changes are requested. Thanks!

Great work, I've merged in what you have here. One last little thing before we call this feature complete: it looks like the reset button is gone (is that true or did it just move?). Can we put it back so that if someone replays a trajectory and decides they don't like it, it can be discarded?

Nevermind, I didn't realize you could just record a new one to reset. All good

authors: AndreCorreaSantos courtneymcbeth

repo: parasollab/RADER


text:
chore: nested multisig example

Closes: #1124

Simplified a bit, hope this is better :smiley:

repo: paritytech/capi


text:
Move srml_support::storage to core or off-tree

While it is not much needed in any SRML runtime or in current Substrate codebase, macros like storage_items! provided by srml_support::storage still serve purposes for those non-srml runtimes, because what they need is a really thin wrapper on runtime's storage. So we may consider to move this module to core or off-tree.

Unless there's a way to refactor things to avoid a dependency from the storage_items macro into SRML, then no. It might possibly be rearchitected into some non-core substrate runtime help crate that could perhaps depend only on sr-io (which is core), I guess.

stale

authors: gavofyork shawntabrizi sorpaas

repo: paritytech/substrate


text:
Propagate the underlying error of ApplyError::Can'tPay

https://github.com/paritytech/substrate/blob/51ec6283ff1fb3a1fd9e1844d83229e40e387a63/srml/executive/src/lib.rs#L275-L276
Related #2880

+1
This silent error took a lot of time from me.

authors: Kianenigma xlc


text:
[network] Extend Notifications logs with SetId where missing

This should simplify debugging of ProtocolController & Notifications state machine synchronization issues.

Maybe we should also downgrade the warnings for peerset to debug?

What do you mean exactly? Change trace to debug in logs like PSM <= Dropped?

I also created an issue to fix how reserved peers are disconnected when they are banned: https://github.com/paritytech/substrate/issues/14407

bot merge


text:
Add env.sh

한 곳에서 env 값을 채워주는 스크립트가 있으면 해서 추가해봤습니다.
$ source env.sh

위와 같이 쓸 수 있습니다.

PR 감사합니다! 다만, 이 저장소는 단순히 the-camp-lib의 사용 예시를 보여주기 위한 저장소로, 기능 추가 및 사용성 개선 등의 메인테이닝은 하지 않고 있습니다. 또한 .env를 사용한 가장 큰 이유는 아이디, 비밀번호, 이름, 생년월일 등 정보를 노출하지 않기 위함이기 때문에 개인적인 용도가 아닌 이상 쉘 스크립트에 환경 변수로 작성해두면 위험할 수 있을 것 같습니다. 혹시 프로젝트에 관심이 있으시다면 the-camp-lib 저장소를 둘러보셔도 좋을 듯합니다. 다시 한번 감사드립니다 :D

authors: kyle-seongwoo-jun parksb

repo: parksb/daily-news-for-trainee


text:
add alert message to m2k transform

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story (FLPATH-xxxx):
Fixes #
Change type

[ ] New feature
[ ] Bug fix
[ ] Unit tests
[ ] Integration tests
[ ] CI
[ ] Documentation
[ ] Auto-generated SDK code

Impacted services

[ ] Workflow Service
[ ] Notification Service

Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.

TBH, the message should be get from checker here:
https://github.com/parodos-dev/parodos/blob/842b5748b84ac9cd880cb7968087b1f1d7f12fd6/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/aspect/WorkFlowTaskExecutionAspect.java#L158-L160

workFlowTaskDefinition

yea..  so far now UI can't get checker status so we have to set the alert in task

/lgtm

authors: RichardW98 eloycoto masayag

repo: parodos-dev/parodos


text:
Callback when scan is complete

Currently one has to call startScan and then poll getScanResults until the scan is complete. It will be simpler if I could call waitForScanResult (not a good function name, but nvm....) and have a callback called when an intent with SCAN_RESULTS_AVAILABLE_ACTION is sent. An example usage :smile: ..
BTW, :+1:¹⁰⁰ for this package, it works great :smiley:

Hey, sorry for the late reply on this issue. I think you have the right idea. StartScan returns true once the scan has started. We should register  a BroadcastReceiver to the SCAN_RESULTS_AVAILABLE_ACTION in order to get the list of the available access points as soon as the scan completes. Definitely going to look into this.
Thanks.

Hey, the pull request still seems to be open. We would like to use this feature as well. Is it possible to merge or is there any need for further improvements?

authors: ItsNotYou bojidar-bg hoerresb

repo: parsonsmatt/WifiWizard


text:
Lookup Limit

The event stream won't start with too many matches already in place.
etherstream: historic logs unavailable: query returned more than 10000 results

Alchemy provides a better 👇 error message than Infura does ☝.
etherstream: historic logs unavailable: Log response size exceeded. You can make eth_getLogs requests with up to a 2K block range and no limit on the response size, or you can request any block range with a cap of 10K logs in the response. Based on your parameters and the response size limit, this block range should work: [0x0, 0x87fe9]

ERC-20 transactions are numerous enough for a good test case.
matchERC20Txs := ethereum.FilterQuery{Topics: [][]ether.Hash{{
        ether.HexToHash("0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"),
}}}

For now there are too many issues for a reliable workaround on full content retrieval.

repo: pascaldekloe/etherstream


text:
How to highlight today

(Required) Version Number:
8.0.3
Description
I need to highlight today in the calendar, and even that the selection or deselection does not matter
Steps To Reproduce
func calendar(_ calendar: JTACMonthView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTACDayCell {

<some code>

        if testCalendar.isDateInToday(date)  {
            cell.contentView.cornederRadius(borderWidthAndColor: (width: 2, color: .red))
        }

        return cell
    }

Expected Behavior
The today's cell is highlighted always
Additional Context
But several different cells are radnom highlighted and when I switch to another month this happens too

The today's cell is highlighted always

But what is actually happening?

A'm add print to func
if testCalendar.isDateInToday(date)  {
print("\nDATE: ", date)
cell.contentView.cornederRadius(borderWidthAndColor: (width: 2, color: .red))
}
And that's what I got in console:
DATE:  2020-02-05 21:00:00 +0000
DATE:  2020-02-05 21:00:00 +0000
DATE:  2020-02-05 21:00:00 +0000
and in display аfter loading:

After I changed the month to the next and back:

This calendar is a UICOllectionView.
Cells are reused.
Therefore your code should be
if testCalendar.isDateInToday(date)  {
   cell.contentView.cornederRadius(borderWidthAndColor: (width: 2, color: .red))
} else {
   // Remove the selection
}

Facepam)) Ok, i edit my code:
if testCalendar.isDateInToday(date)  {
cell.contentView.cornederRadius(borderWidthAndColor: (width: 2, color: .red))
} else {
// Cose reusable cell
cell.contentView.cornederRadius(borderWidthAndColor: (width: 0, color: .red))
}
It looks good, but for now, in January 2020, today is still highlighted

i do not understand what you said. Do you have an image with the new problem.

The current day in the current month is displayed correctly, but why is the same day shown in the last month?
Current moth

Previous month

Because it is today's date.
If you do not want it to be displayed in the outDates or inDates, then just add this to your condition:
if testCalendar.isDateInToday(date) && cellState.dateBelongsTo == .thisMonth  {
   cell.contentView.cornederRadius(borderWidthAndColor: (width: 2, color: .red))
} else {
   // Remove the selection
}

you can close this issue if resolved.

repo: patchthecode/JTAppleCalendar


text:
Importing views in mysite/urls.py

Thanks for supporting django-1.10!
Following the README for branch django-1.10, I got an error at the step:
python manage.py makemigrations
Error: NameError: name 'generate_run' is not defined
This can be fixed by importing the needed views in the main site's urls.py, i.e. adding following lines to mysite/urls.py:
from questionnaire.views import generate_run, set_language
from questionnaire.page.views import page, langpage

So the complete (initial) mysite/urls.py looks like this:
[mysite/urls.py]
from django.conf.urls import include, url
from django.contrib import admin

from questionnaire.views import generate_run, set_language
from questionnaire.page.views import page, langpage

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),

    # questionnaire urls
    url(r'q/', include('questionnaire.urls')),

    url(r'^take/(?P<questionnaire_id>[0-9]+)/$', generate_run, name='generate_run'),
    url(r'^$', page, {'page_to_render' : 'index'}, name='page'),
    url(r'^(?P<lang>..)/(?P<page_to_trans>.*)\.html$', langpage, name='langpage'),
    url(r'^(?P<page_to_render>.*)\.html$', page, name='page'),
    url(r'^setlang/$', set_language, name='set_language'),
]

Fixed in https://github.com/pathway/ed-questionnaire/commit/c32ef2f71676918c7fbf421e9423544c39864eaa
Submitted PR to upstream repo at https://github.com/eldest-daughter/ed-questionnaire/pull/22

authors: kristinriebe pathway

repo: pathway/ed-questionnaire


text:
First time use of this addon - is this the best user interface?

I mean absolutely no disrespect - I'm very grateful to everyone who has worked on this project. It is the most popular ember keyboard addon.
Being someone using this for the first time, the interface in which to use this is very verbose. And boilerplate.
I takes 3 imports per file
import { keyUp } from 'ember-keyboard';
import { on } from "@ember/object/evented";
import { EKMixin } from 'ember-keyboard';

I have to extend with the mixin in every file
export default Controller.extend(EKMixin, {

I have to initialize the addon in every file
init() {
	this._super(...arguments);
	this.set('keyboardActivated', true);
},

And then this unconventional syntax for usage
nextProduct: on(keyUp('KeyS'), function() {
	console.log('next');
}),

Is this the best interface for this? I just thought starting the discussion would be a good idea.

The keyUp and EKMixin can be merged, so one line less. The keyboardActivated bit is a bit tedious, that's true.
We should have a different mixin for that, like EKOnInsertMixin.
Regarding the "unconventional syntax": what do you find unconventional about that? All event listeners in Ember work that way.
You might also use the @on decorator from ember-decorators, which makes for quite sexy syntax IMHO:
@on(keyUp('ctrl+KeyS'))
save() {
  // ...
}

Good call on importing both items.
What circumstance would exist where you would not want to do the this.set('keyboardActivated', true); step?
The @on syntax would be good, but it doesn't seem to work.
import { on } from 'ember-decorators/object';
@on(keyUp('alt+KeyS'))
	toggleClientSku() {
		// stuff
	},

Throws ember-metal.js:3988 TypeError: (0 , _object.on) is not a function

My mistake, it's import { on } from 'ember-decorators/object/evented'
So you still need an additional import for that.
I guess my preferred interaction with this library would not be events, but actions. You would register your keys with an action name. And that action would get called. That makes the most ember since to me. Maybe it's just the kinds of apps that I build, but I almost never use on for anything. I only have used it when an addon has me use it.
I know key events sounds like they should be events, but ember is very actiony, and I the action style / syntax makes the most sense to me.
The way that ember-keyboard-shortcuts does this clicks for me. You mixin the thing. Then you define a pre-named keyboardEvents function. That function maps keys to action names. Then you just write your actions.
However, when doing this in practice, actually takes more boilerplate setup then your current method does. So maybe events is best. I'd have to spend more time thinking. Maybe I'll mock up an ideal usage so we can talk about something tangible.

So you still need an additional import for that.

Trying to circumvent a feature / import only for saving a LOC doesn't make a lot of sense to me. I've you've ever written an app in Java or C++ you'll be no stranger to over 50 lines of only imports.
But when you're writing codes in these languages, imports are usually automatically added / removed by the IDE. We don't have this in Ember yet, but I think, we're not so far away from that brighter future.

I guess my preferred interaction with this library would not be events, but actions. You would register your keys with an action name. And that action would get called. That makes the most ember sense to me.

Actions require you to wire them up in the template. So inn reality you're not avoiding on, but shifting that responsibility to a different place.
Furthermore, how would you actually want to the wiring then? By action name, like keyUpCtrlAltKeyS? Maybe it's just me, but that doesn't appeal to me at all.

Yea not anything pre-defined like that. It would be something like
keyboardEvents: [
{
     event: "KeyUp",
     key: "alt+KeyS",
     action: "someAction"
}
]

And then someAction in this controller or component would get fired. I don't think I like this more than the on method though. I think I like your event method better after writing both out.
The only thing really after going through some scenarios that feels out of place, is the init activation.  If I'm pulling in that mixin, isn't almost always the case that we are activating the keyboard? I think your idea of making that part of the mixin would work well.

Thanks for getting to this, @buschtoens!
@optikalefx, if you can find a way to simplify the interface for ember-keyboard, that would totally warrant a 3.0. Please let us know anything you think of!
As for activating the keyboard, there are a few cases where you wouldn't want to do that on init or didInsertElement. For instance, let's say you have comment form and you want to submit on Enter, but only if the comment textfield is focused. In that case, you'd want to activate the keyboard on focus, but not on insert.
Currently, there are a couple of mixins that handle activation for components, namely EKOnFocusMixin and EKOnInsertMixin. They don't support controllers, though. If you wanted to set them up to do that, I think that would make an excellent incremental improvement that wouldn't require a major version release.

Thanks @patience-tema-baron I will look into creating a mixin for controllers. If I have a chance to look into an alternate interface, I'll post that for everyone to discuss.

I've submitted a PR for the onInit mixin https://github.com/patience-tema-baron/ember-keyboard/pull/74

Closing this since it was somewhat addressed by #74. I think there is room for improvement and a need to develop and non-mixin based API. Ideas for this can be discussed in #115

authors: buschtoens lukemelia optikalefx patience-tema-baron

repo: patience-tema-baron/ember-keyboard


text:
Add scan and keys functions to get objects and keys matching key pattern

This is for the issue https://github.com/patrickmn/go-cache/issues/169

Hi @patrickmn and devs,
Please help review this MR and merge it if you think it's a better feature with go-cache. :)
Thanks!

repo: patrickmn/go-cache


text:
Android Support

Hello
Have you tried this library with Android SDK 1.8 and jack compiler options?
regards sebastian

Hi Sebastian
No, I have not used the library on Android.
Cheers Patrick

authors: patrickvankann xxseabxx

repo: patrickvankann/rxmqtt


text:
Pseudo patterns don't work in view all

I have used a number of pseudo patterns to show various states of the same pattern with booleans. This works fine except all the pseudo patterns show as blank on the view all pages.

Thanks for reporting this. I'll take a look at it.

Any luck figuring this one out?

Nothing is jumping out but I can't say I've debugged it in detail. I've been focused on trying to clean up PL2 so it's a little tough jumping back into the old code.

Fair enough. I might have a look and see if I can fix myself and do a pull request. Having no knowledge of the code I'm not sure how much luck I'll have though!

Any updates on this? Has been happening to me from the get-go.

I've had (I think) a similar issue. In particular, if my pseudo-pattern is modifying a value that is multiple levels deep in _data.json, the entire parent object is replaced instead of just the chosen attribute.
For example, if this is the code in _data.json…
{
    "callout" : {
            "headline" :  "Sample headline",
            "content" : "Sample content."
    }
}

…and I have a partial called callout-block.mustache, I can put this code into callout-block.json and it will work fine:
{
    "callout" : {
            "content" : "New content."
    }
}

However, if I try to create a pseudo-pattern using a file called callout-block~new-content.json, the same code will give me a blank pattern. Adding the "headline" attribute back into the file will cause it to work again, but it requires specifying text for this particular pseudo-pattern.
It seems that in pseudo-patterns with multiple levels of depth, the entire object (in this case "callout") is replaced instead of just the listed attributes.

I have run into this today, with v0.7.12, in the same way as @wonkeythemonkey. I have also noticed that if I override a 4-items array with a 2-items array, my context will have the two overrides plus the last two original items. That leads to a rather simple obdeduction: patternlab builds the initial context from_data.json, then deep-merges the partial-specific data object, then shallow-merges the pseudo-pattern-specific data object. Therefore, it should be as simple as having the deep-merge from the pattern applied for the pseudo pattern as well.

authors: dmolsen lostsatellites rasenplanscher u982744 wonkeythemonkey

repo: pattern-lab/patternlab-php


text:
Update Buttons design doc to include guidance to designers about when to use buttons vs links

It is not always obvious when to use a Button vs a link. Ghost buttons, for example, and styled to look like links but should actually be used to represent actions. For accessibility considerations, it is important to differentiate links that use the  tag to navigate to a new page from actions that keep the user on the current page. Providing some examples of common use cases like buttons and actions in cards or toolbars would be helpful.
Current Button design doc here: https://github.com/patternfly/patternfly-design/blob/master/patternfly-4/components/button/design.md

From an implementation perspective, there is a difference in the html elements that would be used. A "link" is anything that navigates to a new url. The url could be a section on the current page, or a new page. Anything else is a button.
At our last a11y meeting, there was a general consensus that users should know when a clickable element is a navigation link or an action button, but I would be hesitant to make a statement that <a> elements must always look like links and <button> elements must always look like buttons.
There are many use cases when designers would swap the visual styles for the element being used. For example:

a link that displays in a toolbar along with other buttons (e.g. when the action to open a wizard is a full page wizard and not in a modal)
a link that is the main call to action on a web page
icons in the masthead could be a mix of buttons and links. Alternatively, the settings icon could be a link to a settings page in one product and a button that opens a modal in another product, depending on how complex the settings are.
a button that displays inline within a body of text (e.g. "Download product documentation for... ".

As part of this issue, it would be great to make sure these cases are considered.

authors: jgiardino mcarrano

repo: patternfly/patternfly-next


text:
fix(page): fixed hamburger alignment on mobile

fixes https://github.com/patternfly/patternfly-next/issues/2400

PatternFly-Next preview: https://patternfly-next-pr-2402.surge.sh

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: mcoker patternfly-build redallen


text:
Why is aider hitting the API when I'm only managing what files are included?

Issue
Per the screenshot, I would have thought that listing files, adding/removing them etc would be local operations.  However as we see, it's chatting with the API at each action.  Is that expected behaviour?

Version and model info
No response

That wasn't the one I was referring to - it was the /add ones.
I've redone this with a more constrained set of files and it doesn't exhibit the behaviour.

This has been fixed. The change is available in the main branch. You can get it by installing the latest version from github:
python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

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

Yes, this is indeed fixed.  Thanks Paul!

authors: glinkot paul-gauthier

repo: paul-gauthier/aider


text:
Gradle build issue when upgrading Gradle version

The latest version of flutter_blue produces an error when trying to upgrade the Gradle version to 5.1.1:
ERROR: Directory <my-app>flutter_blue/extracted-include-protos/main specified for property '$3' does not exist.

I’ve tested working with 5.6.2

authors: decubate pauldemarco


text:
Context menu "Save as CSV" is not working on FireFox (though works on Chrome). On Chrome utf-8 csv does not have BOM prepending, resulting in garbage on Excel

Context menu "Save as CSV" is not working on FireFox (though works on Chrome). On Chrome utf-8 csv does not have BOM prepending, resulting in garbage on Excel. BOM can be added by replacing
var blob = new Blob([data], {type: 'text/csv;charset=utf-8;'});
with
var blob = new Blob([new Uint8Array([0xEF, 0xBB, 0xBF]),"Text",data], {type: 'text/csv;charset=utf-8;'});
but what to do with FireFox?

Ok, for Firefox need to attach thsi created anchor to DOM

It has been fixed on v3.

authors: magdute paulhodel

repo: paulhodel/jexcel


text:
Setting data

When i am calling setData method than it is not taking style.Is there any way to fix the style while setting data.

You can:
resetStyle()
them
setStyle()

@paulhodel @Guillaume-Bo is there any way we can update a cell's data dynamically outside updateTable:, that is like inside an API call if I get a certain value then I want to update a particular row's particular column value. so can we do it?
Thank you.

yes with setValue. See documentation for know how use 😉
Le mar. 29 sept. 2020 à 21:12, Deba Mishra notifications@github.com a
écrit :

@paulhodel https://github.com/paulhodel @Guillaume-Bo
https://github.com/Guillaume-Bo is there any way we can update a cell's
data dynamically outside updateTable:, that is like inside an API call if I
get a certain value then I want to update a particular row's particular
column value. so can we do it?
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/paulhodel/jexcel/issues/735#issuecomment-700924816,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMOGZK4IWZV7BFTEK4HNRB3SIIWSVANCNFSM4JQYUL7Q
.
--
-- Guillaume Bonnaire Bonnaire.gtg@gmail.com 06 85 06 38 27

is it with setValue or setColumnData ? @Guillaume-Bo

as you want, setValue is for 1 cell, ans setColumnData is for change all
cell of column in 1 time.
Le mar. 29 sept. 2020 à 21:39, Deba Mishra notifications@github.com a
écrit :

is it with setValue or setColumnData ? @Guillaume-Bo
https://github.com/Guillaume-Bo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/paulhodel/jexcel/issues/735#issuecomment-700942603,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMOGZK23XKS7AK5FIOYZN7DSIIZW7ANCNFSM4JQYUL7Q
.
--
-- Guillaume Bonnaire Bonnaire.gtg@gmail.com 06 85 06 38 27

@Guillaume-Bo thank you so much for your response, but when trying with setValue('F1', 'Text') then that cell is not getting updated, am I doing anything wrong?

show how you make your setValue ?

authors: DebaPrasad14 Guillaume-Bo Harsh-baghel paulhodel


text:
Tizen build release not working - Promise error

Describe the bug
Error during compiling release for tizen
To Reproduce
Steps to reproduce the behaviour:

Run command 'rnv build -p tizen -s release'
See error

Expected behavior
Tizen build
Screenshots or copy&paste
[ task ] [platform configure] checkAndConfigureSdks[1]
[ task ] [platform configure] checkAndConfigureTizenSdks:tizen[1]
[ task ] [platform configure] isBuildSchemeSupported[1]
[ error ] [platform configure] Build scheme you picked does not exists.
[ task ] [platform configure] You need to specify scheme[1]
? Pick one of available buildSchemes (Use arrow keys)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read property 'value' of undefined
at ListPrompt.getCurrentValue (/usr/local/lib/node_modules/rnv/node_modules/inquirer/lib/prompts/list.js:121:53)
at MapSubscriber._next (/usr/local/lib/node_modules/rnv/node_modules/rxjs/src/internal/operators/map.ts:84:29)
at MapSubscriber.Subscriber.next (/usr/local/lib/node_modules/rnv/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
at TakeSubscriber._next (/usr/local/lib/node_modules/rnv/node_modules/rxjs/src/internal/operators/take.ts:92:24)
at TakeSubscriber.Subscriber.next (/usr/local/lib/node_modules/rnv/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
at Interface.handler (/usr/local/lib/node_modules/rnv/node_modules/rxjs/src/internal/observable/fromEvent.ts:201:20)
at Interface.emit (events.js:203:15)
at Interface.EventEmitter.emit (domain.js:448:20)
at Interface._onLine (readline.js:308:10)
at Interface._line (readline.js:656:8)
at Interface._ttyWrite (readline.js:937:14)
at ReadStream.onkeypress (readline.js:184:10)
at ReadStream.emit (events.js:203:15)
at ReadStream.EventEmitter.emit (domain.js:448:20)
at emitKeys (internal/readline.js:424:14)
at emitKeys.next ()
at ReadStream.onData (readline.js:1073:36)
at ReadStream.emit (events.js:198:13)
at ReadStream.EventEmitter.emit (domain.js:448:20)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at ReadStream.Readable.push (_stream_readable.js:224:10)
Desktop (please complete the following information):

OS: Ubuntu 20.04
Node Version 10.19.0
RNV Version 0.31.3

Additional context
Been stuck on this for a couple of days, would appreciate some guidance.

Just to add more info here, I've just tested this command on macOS and it's worked just fine:
Desktop (please complete the following information):
OS: macOS Catalina 10.15.7
Node Version 10.20.1
RNV Version 0.31.3

Just to add more info here, I've just tested this command on macOS and it's worked just fine:
Desktop (please complete the following information):
OS: macOS Catalina 10.15.7
Node Version 10.20.1
RNV Version 0.31.3

authors: chmiiller redgoalsuk

repo: pavjacko/renative


text:
UnboundLocalError: local variable 'output' referenced before assignment

Unexpectedly occurs. Seems pretty clear.
Version: json-rpc==1.9.0
File "/app_path/.env/local/lib/python2.7/site-packages/jsonrpc/manager.py", line 59, in handle
    return cls.handle_request(request, dispatcher)
  File "/app_path/.env/local/lib/python2.7/site-packages/jsonrpc/manager.py", line 75, in handle_request
    responses = [r for r in cls._get_responses(rs, dispatcher)
  File "/app_path/.env/local/lib/python2.7/site-packages/jsonrpc/manager.py", line 129, in _get_responses
    yield output
UnboundLocalError: local variable 'output' referenced before assignment

could not reproduce.


text:
Add memory and cpu metrics

Add memory and cpu metrics
Refactor calls to the S3 api for DT stats that were failing in our cluster. Node info exposes a data IP and a management IP. Some clusters are configured so these are different IPs. Need to be querying the dataIP for this to successfully return metrics.

Hello,
Thanks for creating this great exporter!
I'm not sure if this project is still active, but I needed to tweak it a bit to run in my cluster and thought others may benefit from having the cpu and memory metrics as well.

repo: paychex/prometheus-emcecs-exporter