text:
Approval Container Integration with UI

Allow approve workflows with approval step from job details page.

[ ] Job details page should list all pending approvals from all approval steps
[ ] If current user is one of approvers when 'Approve' button should be rendered on step panel

I need to check this as approval is a step just like any other user-defined steps. From the image above, I can see it tries to show a status for the workflow. However, this is not accurate as if there are multiple approval steps in the workflow and they are in parallel steps, how would the UI shows the status correctly...
I was thinking more of a UI status for each individual approval step (showing in the small box), which will require the UI to recognize the approval step. I can provide an api to check whether a workflow_id/step_id is an approval step and the approval details for this step. Is this something we  can start with?

I think that we need details about approval step in exists api. Details I mean: who is assigned to approve and who approved.

Closing v1 issues.

authors: alexmt jessesuen roofi07 sytianhe

repo: argoproj/argo


text:
Default values of empty string are ignored

Checklist:

[x] I've included the version.
[x] I've included reproduction steps.
[x] I've included the workflow YAML.
[ ] I've included the logs.

What happened:
We tried setting a default value of "" for an output parameter. The workflow controller didn't register the default, and marked the workflow as failed when it couldn't resolve the output. Here's a reproducer:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: dag-default-
spec:
  entrypoint: steps
  templates:
  - name: steps
    steps:
    - - name: dag
        template: dag
  - name: dag
    dag:
      tasks:
      - name: A
        when: "false == true"
        template: print-message
        arguments:
          parameters:
            - name: message
              value: "hello world"
    outputs:
      parameters:
        - name: output
          valueFrom:
            parameter: "{tasks.A.outputs.result}"
            default: ''

  - name: print-message
    inputs:
      parameters:
      - name: message
    container:
      image: alpine:latest
      command: [sh, -c]
      args: ["echo result was: {{inputs.parameters.message}}"]

If I put any character into the default value, the default is registered.
What you expected to happen:
I expected empty strings to work as a default output.
Environment:

Argo version:

$ argo version
argo: v2.7.3
  BuildDate: 2020-04-15T22:52:59Z
  GitCommit: 66bd0425280c801c06f21cf9a4bed46ee6f1e660
  GitTreeState: clean
  GitTag: v2.7.3
  GoVersion: go1.13.4
  Compiler: gc
  Platform: darwin/amd64

Kubernetes version :

$ kubectl version -o yaml

clientVersion:
buildDate: "2019-10-15T19:16:51Z"
compiler: gc
gitCommit: 20c265fef0741dd71a66480e35bd69f18351daea
gitTreeState: clean
gitVersion: v1.15.5
goVersion: go1.12.10
major: "1"
minor: "15"
platform: darwin/amd64
serverVersion:
buildDate: "2020-02-29T01:24:35Z"
compiler: gc
gitCommit: 39e41a8d6b7221b901a95d3af358dea6994b4a40
gitTreeState: clean
gitVersion: v1.15.9-gke.24
goVersion: go1.12.12b4
major: "1"
minor: 15+
platform: linux/amd64

Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

This could be because empty string is a zero value in Golang. @simster7 this is your area of expertise - do you want to own?

Yes, I made the original enhancement and should be an easy fix

source: gharchive/issue

authors: alexec danxmoran simster7

license_type: permissive

license_source: github-api


text:
Issue 184: Added filter by template at the Global search for jobs.

Fixes #184

Fixes #183
The changes for https://github.com/argoproj/argo/issues/183 base on the changes to task #184
Both of tasks are done.

source: gharchive/pull-request


text:
docs: add Mixpanel to argo/USERS.md

Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[ ] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I've signed the CLA.
[x] My builds are green. Try syncing with master if they are not.
[x] My organization is added to USERS.md.

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

@nojvek how can we please confirm your relationship with Mixpanel please?

@alexec my profile has mixpanel badge

I can also send an email from my mixpanel address to make a verification. Let me know where to send to.

authors: CLAassistant alexec nojvek


text:
Add new keyword : Then response body should not have path

Just a minor issue. Adding validation when the json response has been updated and deleted some object items.
Example: Json response should not have contained this json query
$[0].data.cart_data.sellers[?(@.items[0].item_id == 3560)].items[0].item_id
Where item object id 3560 has been deleted.

@jmagaru This will be added on 1.7.2 upcoming version.

authors: ariesb jmagaru

repo: ariesb/autokin

license: MIT


text:
MySQL migration apply through atlas doesn't work

When running atlas migrate apply against MySQL 5.7.12 server, the following error occurs:
Error: sql/schema: create "atlas_schema_revisions" table: Error 1071 (42000): Specified key was too long; max key length is 767 bytes
Generated migration file:
-- Create "stations" table
CREATE TABLE `stations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) NOT NULL,
  `updated_at` datetime(3) NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` datetime(3) NULL,
  `station_name` varchar(100) NOT NULL,
  `deleted` bool NOT NULL,
  `updated_by` varchar(64) NULL,
  PRIMARY KEY (`id`),
  INDEX `idx_stations_deleted_at` (`deleted_at`)
) CHARSET utf8mb4;
-- Create "plugs" table
CREATE TABLE `plugs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) NOT NULL,
  `updated_at` datetime(3) NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` datetime(3) NULL,
  `station_id` bigint unsigned NOT NULL,
  `enabled` bool NOT NULL,
  `weight` bigint NULL,
  `updated_by` varchar(64) NULL,
  PRIMARY KEY (`id`),
  INDEX `fk_stations_plugs` (`station_id`),
  INDEX `idx_plugs_deleted_at` (`deleted_at`),
  INDEX `idx_plugs_down_since` (`down_since`),
  CONSTRAINT `fk_stations_plugs` FOREIGN KEY (`station_id`) REFERENCES `stations` (`id`) ON UPDATE CASCADE ON DELETE SET NULL
) CHARSET utf8mb4;

Hey @iSerganov, thanks for raising this. Unfortunately, I was not able to reproduce this. I couldn't apply your given migration with the following error: Error 1294 (HY000): Invalid ON UPDATE clause for 'updated_at' column. This is because CURRENT_TIMESTAMP can only be used on TIMESTAMP fields.
In addition, the key length issue is known from MySQL version 5.6 and before. It was raised to ~3000 bytes with MySQL 5.7 and later. So can you please check again, if you are indeed running version 5.7.12 and not something older?
Also, please note that MySQL 5.7 will reach EOL in the next month. If possible, please consider to update your database to be on the safe side. However, regardless of what you devide, I will be happy to assist with your above issue.

Hey @masseelch! Thank you for your fast reply!
Yeah, I am pretty sure that I have 5.7.12 version.
As well I am am sure that I can use CURRENT_TIMESTAMP with both TIMESTAMP and DATETIME fields - see MySQL 5.7 docs
Also, please note that MySQL 5.7 will reach EOL in the next month. - though that is a good remark - we will consider updating. Thank you! However until we do that, it would be very helpful if you could help me to apply migrations to MySQL 5.7 DB using Atlas.
Another point that makes me think that the issue comes from out of my SQL migration script is the error message I get - it states an error while creating atlas_schema_revisions table.

Hey @iSerganov.
Are you by any chance able to provide a repository, that shows the bug in action? I tried again to reproduce the issue without success.

Unfortunately no, I work in the private repository. But I am sure it should be quite easy to reproduce.
I have the latest atlas version 0.14 installed on MacOS using brew.
To reproduce you just need to perform the following steps against MySQL 5.7.12 DB:

Setup a Golang app.
Declare any struct as gorm model.
Create initial migration with atlas migrate diff $(MIGRATION_NAME) --env gorm --dev-url <your-db-url> - note it will generate awesome SQL statement that is perfectly working if you run it against the same DB using mysql cli.
Do atlas migrate apply

Here is my atlas.hcl file content:
data "external_schema" "gorm" {
  program = [
    "go",
    "run",
    "-mod=mod",
    "ariga.io/atlas-provider-gorm",
    "load",
    "--path", "./pkg/database/model",
    "--dialect", "mysql"
  ]
}

env "gorm" {
  src = data.external_schema.gorm.url
  migration {
    dir = "file://pkg/database/migrations"
  }
  format {
    migrate {
      diff = "{{ sql . \"  \" }}"
    }
  }
}

As the result I always see Error: sql/schema: create "atlas_schema_revisions" table: Error 1071 (42000): Specified key was too long; max key length is 767 bytes

Hey @iSerganov, I tried once again to reproduce the issue without success. Please find below the steps I took. It all works as expected. You can see the migration is applied and the atlas_schema_revisions table is created.
As long as I am not able to re-create the issue you are facing, I am unable to help :crying_cat_face:. If possible, please try to create an example repository that shows the issue. It does not need to have any of your private code there.
Also, if you want and can, I am willing to sign a NDA to have a look at the real example you are facing. Contact me on Discord privately, if you want to.

 See what I did to reproduce!
↪ tree .
.
├── atlas.hcl
├── go.mod
├── gorm.go
├── go.sum
└── migrations

2 directories, 4 files

↪ cat gorm.go
package gorm

import "gorm.io/gorm"

type Product struct {
  gorm.Model
  Code  string
  Price uint
}

↪ cat atlas.hcl
data "external_schema" "gorm" {
  program = [
    "go",
    "run",
    "-mod=mod",
    "ariga.io/atlas-provider-gorm",
    "load",
    "--path", "./",
    "--dialect", "mysql"
  ]
}

env "gorm" {
  src = data.external_schema.gorm.url
  format {
    migrate {
      diff = "{{ sql . \"  \" }}"
    }
  }
}

↪ atlas version
atlas version v0.14.0
https://github.com/ariga/atlas/releases/tag/v0.14.0

↪ docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS                                       NAMES
5de59678c6c5   mysql:5.7.12   "docker-entrypoint.s…"   18 minutes ago   Up 18 minutes   0.0.0.0:3311->3306/tcp, :::3311->3306/tcp   blissful_mestorf

↪ atlas migrate diff initial --env gorm --dev-url mysql://root:pass@localhost:3311/dev

↪ tree migrations/
migrations/
├── 20230920063044_initial.sql
└── atlas.sum

1 directory, 2 files

↪ atlas migrate apply --url mysql://root:pass@localhost:3311/gorm
Migrating to version 20230920063044 (1 migrations in total):

  -- migrating version 20230920063044
    -> CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) NULL,
  `updated_at` datetime(3) NULL,
  `deleted_at` datetime(3) NULL,
  `code` longtext NULL,
  `price` bigint unsigned NULL,
  PRIMARY KEY (`id`),
  INDEX `idx_products_deleted_at` (`deleted_at`)
) CHARSET latin1 COLLATE latin1_swedish_ci;
  -- ok (11.005814ms)

  -------------------------
  -- 17.042085ms
  -- 1 migrations
  -- 1 sql statements

↪ mysql -h 127.0.0.1 -P 3311 -uroot -ppass
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.7.12 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]> use gorm;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MySQL [gorm]> show tables;
+------------------------+
| Tables_in_gorm         |
+------------------------+
| atlas_schema_revisions |
| products               |
+------------------------+
2 rows in set (0.001 sec)

Hey @masseelch !
Thank you very much for your efforts!
The data you have provided made me trying the same steps with the local MySQL instance (in docker) against MySQL 8.0.34 and it works like a charm!
Most likely there is an issue particularly with AWS Aurora MySQL 5.7.12 instance. I will do my best to upgrade it this week and let you know if the issue is gone.
Thank you very much for your assistance once again!

After updating DB engine to MySQL 8.0 - migration apply works smoothly.
Thank you for your assistance gentlemen, closing the issue.

authors: iSerganov masseelch

repo: ariga/atlas-provider-gorm


text:
Feat(eos_cli_config_gen): Add port-channel esi and rt deprecation warnings

Change Summary
Depends on #2369
Adds deprecation warnings for old port-channel esi and rt vars which are replaced by ethernet_segment.identifier and ethernet_segment.route_target.
Related Issue(s)
Fixes #1297
Component(s) name
arista.avd.eos_cli_config_gen
How to test
Tested with molecule.
Checklist
Repository Checklist

[x] My code has been rebased from devel before I start
[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation and documentation have been updated accordingly.
[x] I have updated molecule CI testing accordingly. (check the box if not applicable)

@emilarista please rebase this one and make sure you get deprecation warning when running with the old keys

authors: ClausHolbechArista emilarista

repo: aristanetworks/ansible-avd


text:
Update value pattern to use sanitized callback

Original value is applied to apply_value_pattern() so sanitized callback never gets returned.

Good catch... merging. 👍

authors: aristath joshuatf

repo: aristath/kirki

license: mit

license_source: bigquery


text:
LoginResult (from UserDialogs) is set to true when Cancelling on iOS

Hi,
When cancelled, the login dialog retuns « true » as a result on iOS Devices instead of false.
The bug comes from the line 94 of UserDialogService of iOS :
93 - dlg.AddAction(UIAlertAction.Create(config.OkText, UIAlertActionStyle.Default, x => config.OnResult(new LoginResult(txtUser.Text, txtPass.Text, true))));
94 - dlg.AddAction(UIAlertAction.Create(config.CancelText, UIAlertActionStyle.Default, x => config.OnResult(new LoginResult(txtUser.Text, txtPass.Text, true))));
Second line should pass false instead of true.
I absolutely have no idea how to help fixing it, I've never done a pull request unfortunately :-/

No worries.  I can fix it.  Thanks for the report

Glad I could be of some help !

authors: PaulAchess aritchie

repo: aritchie/acr-xamarin-forms

license: MS-PL


text:
1.9 not rendering SVG at all

I am trying to take screenshots of a Leaflet based Map with SVG polylines drawn on it. No SVG elements are rendered in the resulting png.
What steps will reproduce the problem?

phantomjs examples/rasterize.js http://leafletjs.com/examples/geojson-example.html test.png
look at test.png
Note that none of the SVG elements are present

What is the expected output? What do you see instead?
Expected: The map to be what's viewed in Chrome/FireFox/etc.
Actual: No SVG rendered.
What version of the product are you using? On what operating system?
Tested version 1.9:
binary for Windows under Windows 7
binary for Linux 32bit under Fedora Core 15
source for Linux 32bit under Fedora Core 15
Please provide any additional information below.
I have read through the issue list and it seems some people are getting some success with rendering SVG but I am unable to get SVG to render at all.

@cesarvarela Want to give a huge thank you and then add some tags to this issue for people who have been googling away with no results
###Tags for google
casperjs no png no svg no render no capture not capturing not rendering svg

Please upgrade to PhantomJS 2. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2 version.

authors: Frozenfire92 Vitallium Yermo

repo: ariya/phantomjs


text:
how install phantomjs beta 2.5 ubuntu 16.04

hello thank you very much for your great work but I am not a programmer and I would appreciate if you share the script to install phantomjs beta 2.5 on ubuntu 16.04 from scratch with all the dependencies you need.
since it had installed phantomjs 2.1.1 in this way but intenete install the 2.5 in the same way and can not install it, thanks.
sudo apt-get install build-essential chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
cd ~
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz
sudo tar xvf phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz -C /usr/local/share/ sudo ln -s /usr/local/share/phantomjs-2.5.0-beta-ubuntu-xenial/bin/phantomjs /usr/local/bin/
phantomjs --version

manlix@6c9a12c8124e:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

manlix@6c9a12c8124e:~$ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz
manlix@6c9a12c8124e:~$ tar xf ./phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz
manlix@6c9a12c8124e:~$ chmod +x ./phantomjs-2.5.0-beta-ubuntu-xenial/bin/phantomjs
manlix@6c9a12c8124e:~$ sudo apt install -y libfontconfig libjpeg8 libicu55 libxml2 libxslt1.1 libhyphen0
manlix@6c9a12c8124e:~$ ./phantomjs-2.5.0-beta-ubuntu-xenial/bin/phantomjs --version
2.5.0-development

@manlix First, and most important note :: do not use our repo at Bitbucket. Its deprecated (see our homepage).... No support whatsoever......

@manlix and @pixiuPL
thanks for your answer I could install it perfect now could you please share the installation in centos? Would it be the same script?

@xaiborweb by it you refer to PJS 2.1.1 or 2.5?

@pixiuPL 2.5

@xaiborweb See above => not supported version. Use at your own risk

authors: manlix pixiuPL xaiborweb


text:
Can arm64 also be optimized for field arithmetic operation?

I am developing a program using arkworks' groth16 snark library.
Proof verification benchmark performance results were sufficiently fast in the local development environment, but very slow performance results were observed in the embedded environment.
As a result of using the profiler tool, most of the overhead occurred in ark-ff's field arithmetic operation (mul_assign).
The current arithmetic implementation of ark-ff appears to have inline assembly optimization only for x86_64.

The embedded environment uses arm64 architecture and has low-performance hardware such as Raspberry Pi. Of course, low hardware performance is the main cause, but considering the generic mobile environment, I think arm64 optimization support is necessary.
I would like to ask if you have any plans to support the arm64 arithmetic optimization.

I found related docs as following, and I maybe understand why montgomery optimization based on arm64 ISA is difficult. Unless the same instructions are provided as Intel ADX and BMI2, assembly optimization probably won't help much.
However, I don't know if this conclusion is accurate due to my limited knowledge of cryptography, so please close the issue if there are no other opinions after the final review.
https://research.nccgroup.com/2021/09/10/optimizing-pairing-based-cryptography-montgomery-multiplication-in-assembly/

repo: arkworks-rs/algebra


text:
chore(package): update rollup to version 0.45.0

Closes #129

Codecov Report

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

@@           Coverage Diff           @@
##           master     #130   +/-   ##
=======================================
  Coverage   91.41%   91.41%
=======================================
  Files          18       18
  Lines         163      163
=======================================
  Hits          149      149
  Misses         14       14

Continue to review full report at Codecov.

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

Coverage remained the same at 91.411% when pulling 0b04838dfafdeeeeabef7de818c1d0ea723bd690 on greenkeeper/rollup-0.45.0 into 8eb8a4f56fe15e98e614558171f4a94edcfff42b on master.

authors: arlac77 codecov-io coveralls


text:
REF: split out code writing logic

The goal of this PR is to start separating out the actual generation of rust code from the rest of the code generation logic.  All logic for writing rust code should now live in /templates. The plan is for the beast that is codegen.rs to not have to worry about the actual printing of the code, making it a bit simpler.
While this pr also uses more format! style code to write the rust code, the purpose of this PR is to gain the benefits of starting to decouple this logic rather than decide on a specific code writing mechanism. There may be better solutions for this in the future, hopefully isolating all this code in templates/ will make any future rust code generation changes simpler and less invasive.
There are also some other tangential benefits:

Code writing is consolidated: most of handling struct and enum writing now is handled in a single place which should make future extensions easier
Dependencies of items are becoming clearer, eg exactly what information is needed for a struct or enum to be written.

Note that right now most (or all :)) types are still String and their friends. This PR makes an in-progress branch much easier that is designed to start more strongly typing things (differentiate between strings which now represent various different concepts from a RustType, what identifier names are, raw strings specified in the stripe spec, and more).
Since hopefully there is a lot of future code generation simplification coming, much of this code will likely end up changing, so there are some cleanups I didn't want to spend time worrying about yet  (which is one reason why there is some wanton cloning since I didn't want to think about lifetimes :) )
Generated code changes
The diff in the generated code is easier to look at with the ignore whitespace setting. The changes in the generated code should all be whitespace or doc changes caused by the following general changes:

The comment for the deleted field name was changed since we now format it like other doc comments
The comment for all structs now ends with a period since all are formatted in the same place
impl Paginate unfortunately had to be moved to a different place in the printed file order when some logic was consolidated
We use less code worrying about formatting since we'll run rustfmt later anyway. Beyond code simplification, this has the added benefit of (hopefully) reducing formatting related diffs in the future since we can gradually defer more and more to rustfmt and have fewer changes related to adding newlines and tabs. Unfortunately, this is annoying as long as there are unused generated files because they don't get formatted. However, this makes it clearer at a glance what files are unused :)
Because of https://github.com/rust-lang/rustfmt/issues/3863 and some of the related issues mentioned in that chain, some rare extremely long lines /variable names have tab-related spacing changes since they aren't being formatted

Hey! Took some time off to recharge. Gonna check this out today. Hope you had a nice break!

Hey! Took some time off to recharge. Gonna check this out today. Hope you had a nice break!

I did thanks - glad you could too! Also am working on another branch built on this which might be a bit more interesting :) . Hopefully will have a draft up today / tomorrow so no rush on reviewing this

Hi! You can rebase this branch now, the code coverage PR is merged :)

Lets get this in and we can start working seriously on #314. I am open to merging that PR into a new branch (perhaps next which we can use for prerelease versions. Approving with that in mind, and I will merge once CI is good.

Sorry for the delay here - going to put this into draft for now until a bit more progress made on #314. I think some of the changes there will influence this pr.

Closing as this does not appear to be a useful precursor

repo: arlyon/async-stripe


text:
"Compile files" options (every file or only first-line comment) not working

I have two files: main.scss and _fonts.scss.
main.scss has first-line comment where I define output. Second line of the file is @import 'fonts';
_fonts.scss has only @font-face rules. No comments.
But everytime I save _fonts.scss it compiles.
I have "Compile files" options set to "Only with first-line-comment" in Package Settings tab.
Expected behaviour: file without first-line-comment should not compile.

Hey!
I fixed that bug with version 0.10.3. Now it should work!
Thanks for you report :)

authors: armin-pfaeffle soanvig

repo: armin-pfaeffle/sass-autocompile


text:
Use semver to define release name

It will be much more easy to add automatic tool setup when version is aligned with semver
betav1.0.41 -> v1.0.41-beta | 1.0.41-beta

Fixed.
Tnx

authors: Bezbran VladyslavKurmaz

repo: armosec/kubescape


text:
🛑 NWTFV is down

In 9a456b5, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in f9a2d46.

repo: arnef/status


text:
🛑 NWTFV is down

In 143f43d, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in d6f19a9.


text:
🛑 NWTFV is down

In 5096546, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in 5683773.


text:
getToken(function(token)... returns undefined

Hi, I'm having lot of issues trying to make this plugin works in android.
I created an app in Google Firebase, I downloaded the google-services.json and I placed it into the root folder, I installed the plugin, I ran the app (in the simulator) and then when I run this command:
window.FirebasePlugin.getToken(function(token) {
  alert(token);
}, function(error){
  alert('Error!!!');
});

I just got a blank alert.
What am I doing wrong?

Your emulator needs some extra setup to support push notifications. Try installing on your phone and see if it works.

if your token is blank, try reinstall your plugin with GitHub url
cordova plugin add https://github.com/arnesson/cordova-plugin-firebase

I found the same problem with this plugin under ionic2 and with the @kirajhpang solution works correctly, thanks!!!

I have the same problem on android (not ios) . plugin version : 0.1.24. The google-services.json is well in platforms/android folder.  I've already try to reinstall plugin with GitHub url but without success :(

@Makaveli17 do you receive token recently but suddenly blank?

I received with the FCM-plugin  but i changed to firebase-plugin because i had a conflict between FCM plugin and goople-plus plugin.
At start I had a problem with the google-services.json to 0 octet in  platform/android  so I copied directely the right file in, but no more success. (sorry for my english and thanks you for the help)

Thank you, @kirajhpang!

@kirajhpang very helpful, thanks a lot.

closing for now, reopen if still an issue with the latest version of the plugin

Hi guys, i've installed 0.1.25 yesterday, did exactly what the documentation says, and when i run the getToken: in the success handler, the token equals an empty string.
Android: Oreo (8.0), Xiaomi Mi A1
cordvoa version: 8

@omeriko version 0.1.25 is broken and we are still waiting for a new release (https://github.com/arnesson/cordova-plugin-firebase/issues/625)

Ok,
Meanwhile which version is recommend to the community for use?
BTW, there is  a fix in one of the issue trackers: copying the app_id, and app_key from google-services.json to strings.xml, it works for me. It's a good idea to mention it in the installation documentation of version 0.1.25, at least until the new version comes out.

I'm getting this only with an android emulator using the 1.0.4 version of the plugin.
On real hardware the token is returned just fine.

authors: BeRMaNyA BulliteShot Harha Makaveli17 c0bra camtera kirajhpang neogero omeriko robertarnesson soumak77

repo: arnesson/cordova-plugin-firebase


text:
Feature : Adding Gooey Text Animation

Issue Type:

[x] Feature Request

Description

I would like to add 3d CSS loading bar to this project.
This feature will help increase User Interface(UI) of your website.

Screenshot

Please assign me on this issue under GSSOC '22.

Issues for new projects will be assigned next week. This week we are only focussing on improving the existing ones. You can raise this issue / reopen it next week.


text:
unable to install

Hello, I was following the installation instruction but couldn't solve the following error:
make
Building BEDTools:
CXXFLAGS is [-g -Wall -O2 -I/home/sealight1999/miniconda3/envs/zlib/include -std=c++11  -fPIE]
DETECTED_VERSION = v2.29.1
CURRENT_VERSION  = v2.29.1

Building main bedtools binary.
/usr/bin/ld: src/utils/htslib/libhts.a(bgzf.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(hfile.o): relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(hfile_net.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(hts.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(multipart.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(sam.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(textutils.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(thread_pool.o): relocation R_X86_64_32 against .rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(cram_decode.o): relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(cram_encode.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(cram_external.o): relocation R_X86_64_32S against symbol itf8_bytes' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(cram_index.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(cram_io.o): relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(cram_samtools.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(cram_stats.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(mFILE.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(open_trace_file.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(rANS_static.o): relocation R_X86_64_32 against .rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(sam_header.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(knetfile.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(kstring.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(faidx.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: src/utils/htslib/libhts.a(md5.o): relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: src/utils/htslib/libhts.a(cram_codecs.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status

What could be the problem? Thank you!

Hello,
Even I'm encountering errors in the make command while trying to install bedtools version 2.25.0.
The Make command breaks with the following error:
/usr/include/c++/11/bits/stl_queue.h:480:67: error: static assertion failed: value_type must be the same as the underlying container
480 |       static_assert(is_same<_Tp, typename _Sequence::value_type>::value,
|                                                                   ^~~~~
/usr/include/c++/11/bits/stl_queue.h:480:67: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
make[2]: *** [Makefile:39: ../../../../obj//StrandQueue.o] Error 1
make[1]: *** [Makefile:45: Records] Error 2
make: *** [Makefile:177: src/utils/FileRecordTools] Error 2
any help on how to resolve it and initiate the installation would be great!
Thank you!


text:
typo on readme

Hi Javier,
Readme states (2x)
React.createClass({
  mixin:[Reactions.mixin],

Should be "mixins".
Hehe, confused me for 5 minutes as to why "trigger" was undefined, lol
Will reply to your comment (thnx btw) on freezer.js after I gather some thoughts on the matter, form rendering is something close to my heart :)
Cheers, TiM

Fixed, thanks!

authors: arqex hampsterx

repo: arqex/flux-reactions


text:
🛑 Libreddit is down

In e50f02a, Libreddit (https://reddit.artemislena.eu) was down:

HTTP code: 502
Response time: 394 ms

Resolved: Libreddit is back up in 8bb2ec8.

repo: artemislena/upptime


text:
🛑 BreezeWiki is down

In 5402c3b, BreezeWiki (https://bw.artemislena.eu) was down:

HTTP code: 502
Response time: 461 ms

Resolved: BreezeWiki is back up in 6709494 after 7 minutes.


text:
Evaluation loss issue (strange trend)

A weird thing happens when I inspect the val_loss, it decreases and then increases in a strange way. Does anyone have an idea of solving it?

same here

Validation loss will often decrease and then increase later. In deep learning people often train past the point where validation loss starts increasing even though that indicates some "overfitting" to the training set. I would recommend tracking performance on the actual downstream metrics you are interested in improving throughout training.

I have the same problem. I fine-tuned mt5-xxl, ul2 and xglm-7.5 model on 2 datasets, and the model manage to "learn" for a good amount of steps, but usually after an epoch or 2 the model starts to diverge, the loss increase and also the task metric itself. It's get to the 80% accuracy and then quickly decrease to 0%. This behavior is consistent numerous  several runs.
The same code exactly without the 4bit part (only Lora) behave normally - the model does not diverge even after 50 epochs.
So it seem to me it has something to do with the training dynamic. I'm trying now different lr to see if that has something to do with that.

authors: FHL1998 OfirArviv artidoro jocastrocUnal

repo: artidoro/qlora


text:
@orta: Swift 2 migration article

First draft.
Fixes https://github.com/artsy/mobile/issues/52

:+1:

authors: ashfurrow orta


text:
RFC: Formalize a branching strategy

Today, most Eigen development is done on the master branch, but that makes it difficult to release patch releases based on the last stable branch. For example, master currently can't be shipped because it has incomplete Messaging work.
I propose we move to a git flow which boils down to:

Master branch is always stable/deployable
A develop branch is made off of master
Feature branches (like messaging) are PR'd into the develop branch
When releasing, master is updated with the develop branch

There are provision for patch releases, too.
We can do whatever we want, but this process is pretty established/popular/well-understood. In any case, we should decide on what to do and document it.
/cc @artsy/mobile

I think this would be great!

@alloy @orta thoughts?
Running into this again because I want to solve this fonts issue for the next release or beta ( #2441 ) and I'm probably going to have to merge the fix into 2 different branches because it's relevant for master as well.

Oh I gave it a 👍 on the original message from @ashfurrow.

I guess this can be closed now? I feel our git ways on the app are working well.
(I was just looking around for RFCs in eigen and saw this open still 😅)

Agreed.
For posterity, the solution we went with:

master is always deployable.
Features that take longer than a sprint are placed behind a feature flag (see docs).
Features get QA'd every two weeks for our springily submission to App Store review.

Extra branches? Extra work 🙅♂
The QA process for really large features is still evolving – MX and Galleries are meeting next week to discuss this for viewing rooms specifically, and I imagine we will generalize out from there (and document our decision).

this can go to our work agreements

Agreed.
For posterity, the solution we went with:

master is always deployable.
Features that take longer than a sprint are placed behind a feature flag (see docs).
Features get QA'd every two weeks for our springily submission to App Store review.

Extra branches? Extra work 🙅♂
The QA process for really large features is still evolving – MX and Galleries are meeting this week to discuss this for viewing rooms specifically, and I imagine we will generalize out from there (and document our decision).

authors: MounirDhahri alloy ashfurrow pvinis sarahscott

repo: artsy/eigen


text:
Issue in setup process.

There's an issue when I try to setup the app. Maybe it's because I don't have all the prerequisites?

Hrm, so this looks like you might not have permission to save files to bundler's cache directory. I guess this is because at some point you did a sudo bundle install. I would think that chown  ~/.bundler/ would give you permission to save files to that directory. I got this info from here
@alloy - feels reasonable?

Agreed :+1:

I tried and it didn't work :\

@raducanb try sudo chown -R $USER ~/.bundler

@alloy Same result. I tried deleting that cache folder (see in screenshot), ran the command, but same error. As orta said, I did try running the sudo bundle install command at some moment, so maybe that broke something. Do you have any other ideas? I didn't find anything else on google.

Maybe the problem is with the /Library/Ruby/Gems/2.0.0/bundler/gems/cocoapods-119c8c765941 dir that it mentions as well. Try removing that also.

You were right. Although I removed the folder shown in the first screenshot, after that the error was the same but the folder changed. In the end I deleted all three folders from "/Users/raducanbogdan/.bundler/cache/git/" and "/Library/Ruby/Gems/2.0.0/bundler/gems/". Thanks for the help.

Glad you got this sorted :+1:

authors: alloy orta raducanb


text:
Fix fastlane spelling

Gotta protect the brand

💯

Hah - sure

authors: KrauseFx ashfurrow orta


text:
[MyCollection] Continue filling out views and nav stubs

This continues work on filling out views and stubbing out navigation structure.
Note that this PR is just a logical stopping point as some structure aspects have settled as well as some cleanup.

Fails

:no_entry_sign:
Missing Test Files:

src/lib/Scenes/Consignments/v2/Components/__tests__/ScreenMargin-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkAddPhotos-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkTitleAndYear-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionHome/__tests__/MyCollectionMarketingHome-tests.tsx
src/lib/Scenes/Consignments/v2/State/__tests__/navigationState-tests.tsx

If these files are supposed to not exist, please update your PR body to include "#skip_new_tests".

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
Missing Test Files:

src/lib/Scenes/Consignments/v2/Components/__tests__/ScreenMargin-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkAddPhotos-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkTitleAndYear-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionHome/__tests__/MyCollectionMarketingHome-tests.tsx
src/lib/Scenes/Consignments/v2/State/__tests__/navigationState-tests.tsx

If these files are supposed to not exist, please update your PR body to include "#skip_new_tests".

  Generated by :no_entry_sign: dangerJS

@damassi I think we're finally getting somewhere with this PR where we can discuss concrete code re: the evaluation of easy-peasy, so I'm super excited about that! I'm going to describe what I see here, but feel free to correct me if I miss something!
This PR begins to wire up button taps to navigation by creating a NavigationState object with a series of attributes corresponding to routes. This object collaborates with the SwitchBoard.presentNavigationViewController and NavigatorIOS.push methods to cause screens to show up.
Call sites look something like this:
<Button block onPress={() => navActions.navigateToAddArtwork()}>
  Add a work
</Button>

Over on https://github.com/artsy/eigen/pull/3301 I spiked with @pepopowitz on how we might structure things for the My Collection work and I was very interested in the routing aspects. I created a handful of routes and wired them up to this set of Scenes:
https://github.com/artsy/eigen/tree/e98c2a9544e9494a05ad7da054976ff721d09adf/src/lib/Scenes/MyCollection
For the sake of the spike I only really fleshed out the NewArtworkForm one. In that case I used NavigatorIOS with an initial route of ArtworkForm. I passed a close function and it inherits a navigator from it's parent:
https://github.com/artsy/eigen/blob/e98c2a9544e9494a05ad7da054976ff721d09adf/src/lib/Scenes/ArtworkForm/index.tsx
So then that ArtworkForm component passes a pushRoute func to the Summary component where it can coordinate button taps with state/nav changes:
https://github.com/artsy/eigen/blob/e98c2a9544e9494a05ad7da054976ff721d09adf/src/lib/Scenes/ArtworkForm/Summary/index.tsx
These call sites look something like this:
const handleArtistPress = () => {
  props.pushRoute(artistRoute)
  setArtistDone(true) // this line is where we'd interact with Formik so it was intentionally naive
}

return (
  <Button inline onPress={handleArtistPress} variant="noOutline">
    Artist*
  </Button>
)

So these approaches have a lot in common actually! Both provide some abstractions to navigation although I would argue that the approach here is more abstract. On the other hand the approach here uses a framework while the other approach is just something I made up. Pros and cons people.
Would love to hear other people's thoughts. I'll also cross-post something on the RFC. Thank you for coming to my TED talk. 😝

Warnings

:warning:
Missing Test Files:

src/lib/Scenes/Consignments/v2/Components/__tests__/ScreenMargin-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkAddPhotos-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionAddArtwork/Screens/__tests__/MyCollectionAddArtworkTitleAndYear-tests.tsx
src/lib/Scenes/Consignments/v2/Screens/MyCollectionHome/__tests__/MyCollectionMarketingHome-tests.tsx
src/lib/Scenes/Consignments/v2/State/__tests__/navigationState-tests.tsx

If these files are supposed to not exist, please update your PR body to include "#skip_new_tests".

  Generated by :no_entry_sign: dangerJS

@jonallured

So these approaches have a lot in common actually! Both provide some abstractions to navigation although I would argue that the approach here is more abstract. On the other hand the approach here uses a framework while the other approach is just something I made up. Pros and cons people.

Yup, they are very similar in a lot of ways, thats actually pretty cool 🙂 What is filled out in this PR is more of the required paperwork around view controllers needing certain dependencies on mount, and automating some of this work behind hooks so that we don't need to pass props and things can remain decoupled. Also the establishment of a separation of concerns so that we can extract routing business logic from component code.
What isn't shown in this pr is whats described in in this comment where much of the control flow within our application can be automated away.
I plan on getting Formik in today and fleshing out some of the raw form state stuff so hopefully the intersection will become clearer.

It looks like the RFC was approved so going to merge this to keep going. If anyone has any futher comments happy to address / incorporate in a follow-up!

authors: ArtsyOpenSource damassi jonallured


text:
feat: mark ARUseNewErrorMiddleware as readyForRelease

This PR resolves PHIRE-226
Description
mark ARUseNewErrorMiddleware as readyForRelease

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a [feature flag], or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an [app state migration], or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.
#noChangelog

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against ac60441056569dae8949ed7c65d1fa05788301e2

authors: ArtsyOpenSource gkartalis


text:
Tam kis/onyx 364 update case manage your alerts

The type of this PR is: FIX

This PR solves ONYX-364
Description
Capitalize "Manage Your Alerts" CTA for Auction Header Alerts

Since we have the "Manage your alerts" button also in the ConfirmationStep and ConfirmationScreen modals, the decison was to stay with the existing case for consistency.

repo: artsy/force


text:
Enables query batching via environment variable

This allows us to enable query batching via an environment variable. I've defaulted it to false here but I don't anticipate any issues with turning this on.
Will leave in draft until https://github.com/artsy/metaphysics/pull/2694 is in production.

Sigh, meant to open this in draft.

https://github.com/artsy/force/pull/6273


text:
feat(works-for-you2): Rebuild page

Addresses https://artsyproduct.atlassian.net/browse/GRO-740
This rebuilds the works for you page and brings it into the new framework. The new FilterSelect palette component worked well here and will follow up with the other spots in the ArtworkFilter.

Seriously struggling to figure out how to properly test using RTL (and also relay test data custom fixtures aren't working as expected anymore??), but will follow up in a separate PR.
cc @artsy/grow-devs

Ah, good catch about the CTA, will fix 👍

Updated:


text:
Cutout component fixed in the docs

Fixed imports in Cutout template for docs
Closes #192

@branopuzder we're using standarized commit messages in order to handle automatic releases and generating changelog.
We have a command line tool for that. Instead of runnint git commit run git cz and the tool will walk you through what you have to do. Can you change the commit message?

@arturbien it should be okay now. Please have a look.

@branopuzder can you make a new pull request with just one commit? I know it's annoying but we need to keep commit history clean 😅

@arturbien I'll do it

authors: arturbien branopuzder


text:
Gradle Plugin Portal "latest" version incorrect

Expected Behavior
Visting https://plugins.gradle.org/plugin/io.gitlab.arturbosch.detekt will show 1.0.0.RC9.2, released September 23, 2018 as being latest version.
Current Behavior
Visting https://plugins.gradle.org/plugin/io.gitlab.arturbosch.detekt shows 1.0.0-rework-beta5, September 8, 2018 as being latest version.
Steps to Reproduce (for bugs)
See above.
Context
The plugin portal should show the latest released version number as the "latest" release.
This has happened because "rc" and "rework" are both considered "qualifiers" for version releases. "rc" is a recognized qualifier and "rework" is an unrecognized qualifier. Unrecognized qualifiers are considered after recognized qualifiers, so as far as Gradle Plugin Portal is concerned the "rework" versions have a higher version than the "rc" versions, so they will always appear as the latest versions.
Due to version ordering rules in Maven repositories this also means the "1.0.0-rework" versions will be considered a higher version than "1.0.0", so options are either to take down any published "rework" versions, or have "1.0.1" be the first "final" version.
Your Environment
N/A

Thanks for the issue analysis, I wrote to the gradle support team to get the rework-beta versions removed.

That was quick - the rework versions have been taken down.

repo: arturbosch/detekt


text:
Problems with installing Mup on Ubuntu (14.10 64bit)

My meteor app runs smoothly on my localhost. Now I want to use the mup command and push the app to production on a VPS server (running ubuntu).
Running the default command npm install -g mup, returns the following errorcodes:

npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/mup'
npm ERR! error rolling back  mup@0.9.7 { [Error: EACCES, unlink '/usr/local/bin/mup'] errno: 3, code: 'EACCES', path: '/usr/local/bin/mup' }
npm ERR! Error: EACCES, unlink '/usr/local/bin/mup'
npm ERR!  { [Error: EACCES, unlink '/usr/local/bin/mup'] errno: 3, code: 'EACCES', path: '/usr/local/bin/mup' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "mup"
npm ERR! cwd /home/thijs/projects/gridpay
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/bin/mup
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/bin/mup'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/thijs/projects/gridpay/npm-debug.log
npm ERR! not ok code 0

Of course, I should run it as sudo:
sudo npm install -g mup gives me the following:

/usr/local/bin/mup -> /usr/local/lib/node_modules/mup/bin/mup
mup@0.9.7 /usr/local/lib/node_modules/mup
├── colors@0.6.2
├── underscore@1.7.0
├── async@0.9.0
├── uuid@1.4.2
├── rimraf@2.3.2 (glob@4.5.3)
├── nodemiral@0.3.11 (debug@0.7.4, ejs@0.8.8, handlebars@1.0.12)
└── cjson@0.3.0 (jsonlint@1.6.0)

Mup seems to be installed. However, when I try to run any of the mup commands, no result seems to be returned, not even an error message.
I tried the following commands: mup init, mup setup, mup deploy, mup logs, mup -help, mup reconfig.
None seem to work.
Then I tried adding the mup.json & settings.json manually. This didn't help either. I followed the youtube video by sacha and followed the exact same procedure.
Other things I tried:

Reinstalling nvm, node, npm.
npm install mup/npm install -g mup/npm update mup -g
searching stackoverflow for similar questions

Here is the full debug log: http://pastebin.com/4Lnmm4fZ

Had an outdated version of node installed:
this thread helped me: http://stackoverflow.com/questions/27727234/sudo-mup-deploy-error

repo: arunoda/meteor-up


text:
Update requirements to make PAM packagable

I have split up the requirements to ensure only those needed by the package can be installed as a basis. The others are now split into "docs" (for the notebooks) and "tests".
I've also added a conda environment file, although it is mostly duplication of the requirements text files and can be removed once s2sphere is available on the conda-forge channel (https://github.com/conda-forge/staged-recipes/pull/23041).
Incidently fixed #178 to ensure tests pass. There were copy-paste errors in some of the tests.

I should note @mfitz that the CI builds on my fork are failing (e.g., this one) due to issues with secrets and AWS access credentials (I assume both would be dealt with in the merge CI run as the secrets are set in this repo) AND coverage.
Locally, I have coverage >89%, but I think the __init__.py file I added isn't being correctly ignored by the run in the GH action. I have a PR that would clean up QA and for which the tests do pass

repo: arup-group/pam


text:
RCT: connect error, please check IP adress and network

Hallo,
in der jüngeren Vergangenheit kam es bei mir immer mal wieder vor das, vor allem Nachts/Morgens mein Iobroker abgestützt ist.
Leider bin ich eine Zeit lang nicht dazu gekommen nach der Ursache zu suchen, weswegen ich auch nicht genau festlegen kann, seit wann folgendes Verhalten tatsächlich auftritt.
Kurz zum Hintergrund meiner Anlage:
Ich habe zwei Wechselrichter inklusive PowerSwitch und Speicher, der Speicher hängt an dem Master-Wechselrichter
Der Slave schaltet sich Abends ab, weswegen ich dann das Skript von https://github.com/aruttkamp/ioBroker.rct/discussions/27 nutze um den Adapter des Slaves auszuschalten.
Sobald kein Strom mehr vom Dach kommt dauert es nicht lange, dass mir die Fehlermeldung "RCT: connect error, please check IP adress and network" im Log ausgegeben wird.
Das Verhalten trifft bei mir auch auf die Instant RCT.1 für den Slave zu, dieser wird aber durch das automatische Skript irgendwann abgeschaltet.
Der RCT.0 Adapter feuert die Meldung aber die ganze Nacht lang durch und das mit 1-3 Meldungen pro tausendstel Sekunde. Was dann ungefähr 7,2 Millionen Logeinträge pro Stunde, und Loggrößen von ca. 3GB verursacht.
Der Adapter Arbeitet, solange mein System von dem Meldungen nicht überfordert ist, auch Nachts tapfer weiter.
Der Datenpunkt rct.0.info.connection bleibt die ganze Nacht lang auf true und auch die Daten wie der Speicherstand werden korrekt ausgegeben.
Versionen habe ich schon Kontrolliert und geupdatet, sowie die Wechselrichter neu ins Netzwerk eingebunden, jedoch hat das leider keine Veränderung gebracht.
Versionsstände IoBroker
RCT Adapter: 1.2.9
Node.js: v20.14.0
NPM: 10.7.0
Admin: 6.13.16
Versionsstände Wechselrichter
RCT Control Version: 2.3.5676
BMS Version: 5607
(Wechselrichter sind per Lan-Kabel ans Netzwerk angeschlossen)
Ich habe ehrlichgesagt, keine Ahnung woran das liegen kann oder was ich noch zur Fehlerbehebung tun könnte, weswegen ich auf Hilfe hoffe :)
Vielen Dank
Corneys

Hm, das macht bisher aus sehr vielen Gründen nicht so Recht Sinn...
Eigentlich sollte das bei Verlust der Netzwerkverbindung (habe einfach das Kabel abgezogen) ungefähr so aussehen:
2024-06-23 13:39:20.043 - error: rct.0 (1450) RCT: connection error! Previous stream was not closed correctly!
2024-06-23 13:39:35.886 - error: rct.0 (1450) RCT: connection error, please check ip address and network!
2024-06-23 13:39:42.027 - error: rct.0 (1450) RCT: connection error, please check ip address and network!
2024-06-23 13:40:45.132 - error: rct.0 (1450) RCT: connection error, please check ip address and network!
2024-06-23 13:41:48.236 - error: rct.0 (1450) RCT: connection error, please check ip address and network!
2024-06-23 13:42:48.238 - info: rct.0 (1450) RCT: connected to server at 192.168.178.70
Was ich jedoch bei dir nicht verstehe:
Die Meldung kommt von dem WR der die Batterie dran hat? Der sollte dann doch weiterhin erreichbar sein?
Ist der denn nachts noch anpingbar?
Und dazu: die Meldungsflut sollte so eigentlich nicht vorkommen, ein reconnect wird bei Abbruch der Verbindung erst nach 1 Minute wieder versucht.
Hast du die Version von @aruttkamp im Einsatz oder meinen Fork? Bin mir nicht sicher ob meine letzten Änderungen schon in der 1.2.9 drin sind...

Guten Morgen,
vielen Dank für deine Unterstützung! Gestern Abend habe ich das ganze noch einmal beobachtet.
Genau, die Meldung kommt vom WR an dem die Batterie hängt, der Master WR also.
Ich habe keinen Fork im Einsatz, sondern die "normale" 1.2.9
Gestern ist mir dabei aber aufgefallen, dass während der Meldungsflut der WR in der Fritzbox als verbundenes Gerät erkannt wird und auch ein anpingen per Eingabeaufforderung, wird erfolgreich beantwortet.
Der RCT-Adapter meldet währenddessen auch ganz normale und valide Daten des Speicherstandes, sodass der der Adapter (bis auf die vielen Meldungen) eigentlich ganz normal funktioniert.
Aber gestern ist mir dabei, mehr durch Zufall, aufgefallen, dass während der Meldungsflut die RCT-App quasi tot ist, weil sie den Master-WR als offline ansieht.
Sobald ich den RCT-Adapter Deaktivieren, wird der WR wieder als online erkannt und Daten an die App gesendet.

Ok, das erklärt es ein Stück weit.
In der 1.2.9 sind meine letzten Änderungen noch nicht drin und daher werden bei dir wohl immer wieder neue Verbindungen aufgebaut. Auch wenn mich das im Millisekunden-Bereich schon sehr wunder. Ich hatte das erst kurz nach dem Release der 1.2.9 etwas "resilienter" gestalten können. Da werden Verbindungen immer erst getrennt bevor neue aufgebaut werden.
Da du mit dem Konstrukt scheinbar einer der wenigen bist die dieses spezifische Problem haben, wäre es spannend ob die Verbesserungen bei dir zum Erfolg führen (dann bräuchtest du theoretisch auch kein Skript mehr, hättest nur für den Slave noch jede Minute eine Fehlermeldung). Hier könnte man aber sicher in Zukunft noch an den Timeouts feilen.
Du kannst also entweder auf ein neues Release warten, oder die Github Version von @aruttkamp oder mein fork probieren 😃

Vielen Dank für die schnelle Rückmeldung.
Ja, der Aufbau den wir haben ist etwas umfangreicher und kommt deswegen nicht ganz so oft vor.
Da ich jetzt die Adapter zur Sicherheit, bis auf weiteres, bei Dunkelheit automatisch deaktiviere, werde ich mal die neuen Versionen testen.
Die RCT-Adapter sind ja alle nur "lesend", oder? Sodass der Betrieb keinen Einfluss auf die Wechselrichter hat, oder sie beschädigen könnte? Sorry bin da immer etwas paranoid/vorsichtig.
Zum Testen werde ich vermutlich dann auch erst wieder am Wochenende kommen, da zur Zeit das testen doch erst recht spät möglich ist :)

Stimmt, aktuell gibt es ja zum Glück sehr lange und seit heute auch wieder mehr Strom :)
Aktuell liest der Adapter nur Werte vom WR aus.
Es gibt aber die Idee/Bestrebung zumindest die SOC-Ziel Werte durch den Adapter ändern zu können (#20 ), die Umsetzung wird aber sehr vorsichtig erfolgen und sicher auch noch etwas Zeit brauchen. Wären dann aber auch nur Werte die man jetzt schon über die RCT-App ändern kann.
Aktuell also kein Grund zur Sorge, kaputt machen kann der Adapter nix!

So, ich habe mich gestern Abend dem Adaptern angenommen und und habe beobachtet.
Dazu habe ich deinen Fork mit der Version 1.2.11 installiert.
Nach dem Installieren des Forks, lief der Adapter Tagsüber sauber ohne Fehlermeldungen durch.
Sobald es aber Richtung Dämmerung ging, habe ich folgende Meldung bekommen
2024-06-29 21:49:46.187  - error: rct.0 (935118) RCT: connection error! Previous stream was not closed correctly!
Nach der Meldung blieb der Adapter quasi stehen und lieferte keine neuen Daten mehr.
Ich habe um 23:10 Uhr den Adapter noch einmal neu gestartet, woraufhin der Adapter wieder für 13 Minuten sauber lief. Daraufhin folge wieder die Meldung und der Adapter blieb stehen.
Ansonsten gab es in Logs nichts weiter zu der Instanz, also keine Flut von Fehlermeldungen oder ähnlichem.

Dass der Wechselrichter nach Sonnenuntergang nicht mehr erreichbar ist, macht ja auch Sinn.
Zumindest der zweite. Und dass da dann keine Daten mehr kommen ist ja auch klar. Und das jetzt keine Meldungsflut mehr kommt ist auch gut, damit haben die Änderungen ja dieses Problem gelöst.
Im normalen Tagesverlauf bekommst du von beiden Instanzen korrekte Daten? Und sind diese zeitversetzt oder kommen die gleichzeitig?
Eigentlich sollte die Instanz mit dem Haupt-WR weiterlaufen und die mit dem zweiten WR keine mehr liefern.
Zumindest sofern es funktioniert dass zwei Instanzen Datenverbindungen zu zwei WRs aufbauen. Das kann ich natürlich nicht testen und müsste man anhand der Logs auslesen.

Hi, das habe ich nicht ganz klar geschrieben.
Gestern Abend hatte ich bisher noch mein Skript laufen, was die Instanz des Slave-WRs deaktiviert, sobald dieser offline geht.
Deswegen lief auch nur die Instanz rct.0 mit dem Master-WR
Genau Tagsüber passen die Daten zu dem was mir die RCT-App auch sagt und die Daten aus den Instanzen rct.0 (Master) und rct.1 (Slave) kommen dabei zeitversetzt.
Nachdem die Meldung "connection error! Previous stream was not closed correctly!" ausgeworfen wurde und der Master keine Daten lieferte blieb die Instanz trotzdem auf grün.

Also die Instanz mit dem WR-Master bringt bei Sonnenuntergang den Fehler?
Wenn der WR erreichbar bleibt, sollte das eigentlich nicht passieren, der Fehler kommt nur wenn die Kommunikation mit dem WR abbricht und/oder nicht mehr neu aufgebaut werden kann.
Bitte teste heute Abend doch mal folgendes:
Instanz rct1 ausschalten und nur die rct0 laufen lassen.
Sollte dann noch einmal die Fehlermeldung kommen, dann bitte das komplette Log (auf debug) herunterladen und hier rein posten.

@NCIceWolf - Vielleicht spicken wir den Verbindungsprozess mal mit zusätzlichen InfoLogausgaben !?!
Oder führen einen neuen Parameter ein "Debug Modus" - der dann eben diese zusätzlichen Logs schreibt.
@peperoni60 - Du hast doch auch 2 Wechselrichter - wie ist das bei Dir ?

Ich hatte solche Probleme bisher nicht. Ich habe zwei WR mit je einem Batteriestack. Meine Instanzen liefen alle sauber. Mittlerweile bin ich aber auf den Homeassistant umgestiegen, weil der m.E. benutzerfreundlicher und funktionsreicher ist.

@peperoni60 - Danke für Deine Schnelle Reaktion. ok. du hast an beiden WR nen Batterieturm. Das macht natürlich nen großen Unterschied.
So so .. abgewandert zu Homeassist ;-) Dann streiche ich das mit der "android_description" ... :-P

Hi, leider komme ich erst jetzt dazu meine Erkenntnisse von letzter Nacht zu teilen.
Gestern Abend habe ich meinen Test-Raspi, mit mit dem IoBroker komplett neu aufgesetzt und eventuelle selbstgemachte Probleme auszuschließen. Auf dem System habe ich nur den Fork 1.2.11 und den History-Adapter laufen um zu sehen wann keine validen Daten mehr ankommen. (Deswegen ist der Log auch recht überschaubar)
Die RCT-Instanzen auf meinem "Produktiv"-System, sowie die Instanz rct.1 für den Slave-WR im Testsystem habe ich gegen 18 Uhr deaktiviert.
Es lief an RCT-Instanzen also nur die Instanz des Master-WRs auf dem Testsystem.
Leider war es wieder so, dass als es dunkel wurde keine Daten mehr geliefert wurden und auch obwohl die Instanz auf dem Log-Level "debug" stand nichts an Fehlermeldungen mitgekommen ist.
Log RCT IoBroker.txt

Reden wir hier über immer 22:00 wenn es auftritt ? @Corneys

Kann ich mir heute noch einmal anschauen.
Aber letztes Mal war es so, dass ich die Instanz neu gestartet hatte, wobei sie dann für 12 Minuten wieder lief. Danach gab es wieder den error.

Was mich stört ist das es nur bei dir auftritt. jetzt ist die Lösung mit 2WR natürlich nicht sooo häufig.
kann es auch ein Ausfall deiner Infrastruktur sein ? Hast mal auf deinem WLAN Router nach evtl. unterbrechungen geguckt ?
Oder bei Kabelanbindung .. startet evtl. der Switch neu oder resettet den Port ?
Ja, alles sehr weit hergeholt - gebe ich zu. aber irgendwas muss es doch sein.

Also die RCT-App funktioniert weiterhin ohne Probleme. Würde es am Netzwerk liegen, dürfte da ja auch nichts zu sehen sein.
Außer es ist nur ein kurzer Abbruch, aber sollte der Adapter dann nicht wieder die Verbindung aufnehmen?

Ja, da scheint irgendwo das Problem zu liegen.
Im Log ist ja ersichtlich dass die Datenverbindung nicht sauber abgebaut werden konnte.
Also irgendetwas passiert da auf Verbindungsebene, die Frage ist nur was.
Und warum dann der nächste Aufbau nicht mehr funktioniert und scheinbar auch das Intervall nicht weiterläuft...
A propos: Welches Intervall hast du denn eingestellt?
Der Ablauf ist ja inzwischen so:
Intervall zum Abruf der Daten (Standard: 10s)
|-> Abruf der Daten mit Neuverbindung zum WR
||-> Abbau der Verbindung nach 2 Sekunden
|
|
|-> Abruf der Daten mit Neuverbindung zum WR -> Fehlermeldung im Log: vorherige Datenverbindung nicht abgebaut!
-----> XXXXX -> Hier passiert nichts mehr!  <-----
||-> Abbau der Verbindung nach 2 Sekunden
|
|
|-> Abruf der Daten mit Neuverbindung zum WR
||-> Abbau der Verbindung nach 2 Sekunden

So, habe in meinen Fork nun ein paar mehr Log-Einträge eingebaut.
@Corneys : Bitte einmal die jetzt aktuelle Version meines Forks installieren und bei Gelegenheit noch einmal testen!

Hi also ich habe deinen Fork gestern Abend noch installiert und heute Nacht wurden durchgängig Werte vom Speicher geliefert.
Es gab immer mal wieder die Meldung "connection error! Previous interval connection not successful!", die Instanz blieb aber weiterhin auf grün.
Den Intervall habe ich nicht verändert und stand auf 10
Log_IoBroker_03.07.2024.txt

Ok, nun werden wir etwas schlauer!!
Hier scheint tatsächlich Nachts immer mal wieder die Verbindung zwischen Adapter und WR abzubrechen.
Zu sehen ist das daran dass die Verbindung noch aufgebaut wird, dann aber in jedem einzelnen Fall nicht mehr abgebaut werden (können).
Im Zeitraum zwischen 17:35Uhr (Update) und 0:00Uhr ist das bei dir 9mal passiert, in meinem Log hab ich das gar nicht gesehen. Zuerst kam das um 21:45Uhr.
Wenigstens wird der Abbruch jetzt korrekt verarbeitet und nach 1 Minute eine neue Verbindung aufgebaut die dann jeweils auch funktioniert (die ist hauptsächlich wegen dem 30Sekunden Timeout jedes Verbindungsversuchs so gewählt.
Die Instanz bleibt hier noch auf grün, erst wenn diese Neuverbindung nach 1 Minute scheitert geht sie auf gelb.
Ab dann wird eine Neuverbindung nur noch alle 2 Minuten versucht.
Hier das erste Mal als Referenz:
2024-07-02 21:45:00.879 - info: rct.0 (32260) RCT: terminating interval connection to server at 192.168.178.100
2024-07-02 21:45:00.879 - info: rct.0 (32260) RCT: interval connection to server at 192.168.178.100 closed
2024-07-02 21:45:08.879 - info: rct.0 (32260) RCT: interval connection to server at 192.168.178.100 successfully established
--------> Fehler
2024-07-02 21:45:18.880 - error: rct.0 (32260) RCT: connection error! Previous interval connection not successful!
2024-07-02 21:45:18.882 - info: rct.0 (32260) RCT: interval connection to server at 192.168.178.100 closed
2024-07-02 21:46:18.886 - info: rct.0 (32260) RCT: Initial connection successful to server at 192.168.178.100!
2024-07-02 21:46:18.888 - info: rct.0 (32260) RCT: interval connection to server at 192.168.178.100 successfully established
2024-07-02 21:46:20.891 - info: rct.0 (32260) RCT: terminating interval connection to server at 192.168.178.100
2024-07-02 21:46:20.892 - info: rct.0 (32260) RCT: interval connection to server at 192.168.178.100 closed

Also die Forks habe ich auf einem eigenen neu aufgesetzten Pi laufen auf dem sonst nichts läuft, weswegen ich die Maschine und den IoBroker fast ausschließen würde, da der selbe Fehler ja auch auf meinem Echtsystem auftritt.
In meinem Netzwerk hängt schon eine Menge, aber nichts (was mir bewusst wäre) was erst bei Sonnenuntergang losrennt und hier Probleme verursachen könnte.
Ich habe hier noch eine ungenutzte FritzBox rumfliegen, die ich am Wochenende mal anschließen kann und nichts außer den Pi und die Wechselrichter dran anschließen kann. Eine Andere Möglichkeit und Probleme auszuschließen sehe ich sonst nicht, außer ihr habt noch Ideen für mich.

Interessant wäre nun noch der Log von gestern um zu sehen bis wann die Verbindungsprobleme gingen und ab wann sie wieder angefangen haben.
Laut Log sieht es bisher so aus als würde die Verbindung noch sauber aufgebaut werden können, dann jedoch nicht mehr abgebaut werden. Habe da mal noch einen kleinen Log-Eintrag hinzugefügt der vielleicht zeigen kann ob der Abbau gar nicht erst gestartet wird, oder eben nicht erfolgreich ist (der Adapter schickt hier ein FIN-Paket an den WR).
Sonst bliebe aus meiner Sicht fast nur noch ein Netzwerkmitschnitt (z.B. Port-Mirroring am Pi und/oder WR) um zu sehen wo das hängen bleibt.
Da es ja irgendwie mit dem Sonnenstand zu tun hat, kann ich mir auch interne Timeouts im WR vorstellen, wenn dieser seinen Slave nicht mehr erreichen kann. Sollte sich dann aber auch irgendwie in der RCT-App bemerkbar machen, vielleicht auch nur durch kurze Verzögerungen.
Sonst bleibt nur die Frage ob man hier weiter Aufwand betreiben will. Wenn man 10 Ausfälle pro Stunde annimmt, würden dir in der Nacht (aktuell kürzer, im Winter länger) pro Stunde 10 Minuten an Daten fehlen.
Besser als bisher ist es ja schon, aber da wären halt immer wieder Lücken drin...

Gestern Abend um 19:22 habe ich den aktuellsten Fork geladen. Hier der Log von gestern.
Log_IoBroker_04.07.2024.txt
Eine positive Sache hatte das ganze bisher trotzdem schon für mich.
Durch diese ganze Thematik habe ich mich natürlich etwas intensiver mit den Wechselrichtern und auch der RCT-App beschäftigt.
Dabei ist mir aufgefallen, dass in den Einstellungen des Slave-WR die gesamte Watt Peak Leistung in den Einstellungen angegeben war, aber auf dem Master nur genau die Hälfte der Peak-Leistung.
Durch unsere Ost-West Ausrichtung war mir auch bewusst, dass nie Zeitgleich die gesamte Peak-Leistung vom Dach kommen wird. (Das aber bei Sonnenschein immer nur maximal die Hälfte des Peaks vom Dach kam hätte mich eigentlich schon früher stutzig machen sollen.)
Deswegen habe ich heute Morgen beim RCT-Kundenservice angerufen, der sich auf mein System schalten konnte und die Einstellungen innerhalb ein paar Minuten korrigiert hat. Zack kam direkt 2/3 der Peak Leistung vom Dach.
Ich habe auch ganz Leise die Hoffnung, dass dadurch vielleicht auch das Problem der Verbindungsabbrüche gelöst ist, weil die Einstellungen der beiden Systeme nicht konsistent waren. Das werde ich euch aber erst Morgen berichten können.
Drückt mir die Daumen

Das klingt doch nach einem echten Gewinn 😁
Dann drücken wir die Daumen und sind gespannt auf den Log von heute!

Einen schönen Guten Morgen zusammen,
ich weiß gar nicht, was ich sagen soll, aber heute Nacht hatte ich nicht einen error in meinem Log.
Es scheint tatsächlich so, als ob das korrigieren der Einstellungen vom RTC-Kundenservice hier die Lösung war.
Bitte fragt mich aber nicht, wieso eine falsch eingetragene Anlagenpeakleistung in den Geräteeinstellungen nachts zu Verbindungsabbrüchen führt.
Ich werde heute die Instanzen auf meinem Echtsystem wieder starten und heute Abend dort beobachten.

Na dann war ich ja mit den "internen Timeouts" im WR ziemlich nah dran!!
Haben wir ja immerhin viel gelernt und die Verbindung sollte nun auch für nicht 100% stabile Verbindungen wie WiFi und Co. besser funktionieren.
Hatten also wenigstens alle was von 😊

Perfekt gelaufen würde ich sagen !
Adapter verbessert - Eigene Hardware besser kennengelernt - was will man mehr !

Mache dann hier zu.

authors: Corneys NCIceWolf aruttkamp peperoni60


text:
Miscelaneous changes

Make fit_moments private to prevent possible confusions. The rationale for this method is  to provide a reasonable initial guess for optimization methods. So it is just an intermediate step and not intended to provide an accurate moment matching method.
Improve description in the code of the initial guess heuristic.
Improve warning message for maxent and quartile method
Add example for the quartile method
Fix typos in the notebook example.
Other minor fixes.

Codecov Report

Merging #54 (3002bde) into main (5ddafc4) will decrease coverage by 0.01%.
The diff coverage is 68.18%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   57.11%   57.10%   -0.02%
==========================================
  Files          13       13
  Lines        1005     1000       -5
==========================================
- Hits          574      571       -3
+ Misses        431      429       -2

Impacted Files
Coverage Δ

preliz/quartile.py
20.83% <0.00%> (+2.97%)
:arrow_up:

preliz/roulette.py
11.74% <0.00%> (ø)

preliz/utils/optimization.py
64.06% <0.00%> (-2.07%)
:arrow_down:

preliz/utils/plot_utils.py
52.63% <0.00%> (ø)

preliz/distributions/continuous.py
92.92% <100.00%> (ø)

preliz/distributions/discrete.py
98.83% <100.00%> (ø)

preliz/distributions/distributions.py
80.28% <100.00%> (ø)

preliz/maxent.py
75.67% <100.00%> (-1.83%)
:arrow_down:

preliz/tests/test_distributions.py
96.42% <100.00%> (ø)

Continue to review full report at Codecov.

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

authors: aloctavodia codecov-commenter

repo: arviz-devs/preliz


text:
add a copy button to copy code

we should add a copy icon here to copy a particular code snippet

is that repo is still active?

It isn't active, but feel free to contribute.


text:
Refactor OpenSearchSchema to be more robust.

Should make retrieval of the schema more robust when there are mapping fields not present in the examples.

I reworked this PR so that it returns results in a more structured (and hence type-checkable) way, and defers how the schema is rendered into the LLM prompt to the planner code. Also added a test.

OK, updated to support missing properties in some docs.

repo: aryn-ai/sycamore


text:
Any way we can pass events or model to the component ?

I am using it in a list view of users to view calendar for each users , i am thinking if we can pass events or model to the component rather than loading in the component.

You can use the mount function to load the data in, and then return the collection in the events () function.

You can use the mount function to load the data in, and then return the collection in the events () function.

is it possible for you to elaborate more on how we can pass data to the events method

Sure, in your events() function you'd end up with something like this, where you utilise the map function to connect your fields.
For example, for a TaskItem model with a start_date, end_date field for the dates, and a title, description, and user_id field, you'd be looking at something like the following:
return TaskItem::query()
->whereDate('start_date', '>=', $this->gridStartsAt)
->whereDate('end_date', '<=', $this->gridEndsAt)
->where('task_list_id', $this->tasklistid)
->orderBy('start_date')
->get()
->map(function (TaskItem $taskitem) {
$start_date = Carbon::parse($taskitem->start_date)->format('H:i');
return [
'id' => $taskitem->id,
'title' => $taskitem->name,
'description' => $taskitem->description,
'user_id' => $taskitem->user_id
];
});
You can then reference these mapped fields in your calendar.

Thanks found a way by passing it into the livewire component the same was you pass the year and month

You can pass the ID of the model to the $extras property. :extras="['modelName' => $model->id]"
In your AppointmentCalendar component you can get the $extras property in the afterMount($extras = []) method.
Inside the afterMount method you can then retrieve your model and set it on a public property of the component.

authors: Robert95th lrljoe sanderdewijs skakrecha

repo: asantibanez/livewire-calendar


text:
Error: Cannot find module 'update-notifier'

Error: Cannot find module 'update-notifier'

Could you give more information? Or try syntax-parser@1.0.15.

authors: ascoders songfeido

repo: ascoders/syntax-parser


text:
xcode not installed

xcode-select --install

This is needed for some of the brew recipes.

Done in 91a4ead08323a749b4f58b42499c552afdac1bfb

repo: aserrallerios/dev-env


text:
The name, though?

I was looking for info on ash (You know, the Almquist Shell), and came across this project.
Obviously, you're free to use the name; it's not copyrighted. But don't think that can lead to confusion?

Hey @goodevilgenius - Apologies for any confusion.
When I created this project I actually had no knowledge of Almquist Shell, but I have been aware of it for a while.  Someone on reddit let me know earlier last year.
I do plan on renaming this project, but haven't had time to dedicate refactoring everything.
If you'd like to submit a PR putting something in the Readme saying something like "If you were looking for information on the Alquemist shell, this is not it!  Check out (wikipedia link)" or something, I will certainly approve it.

authors: BrandonRomano goodevilgenius

repo: ash-shell/ash


text:
Adds --memory_saving_sd_config option

PR is related to a problem
Yes, I wanted to run on 8 GB GPU (a 3070), but couldn't do it without some adjustments.
Enabling the provided memory saving sd config solves CUDA out of memory on my particular hardware setup.
The config's changes and their trade-offs:

Loads the model weights directly in half precision (16f instead of 32f). This might reduce output quality, not sure.
Enables attention slicing. This slows down inference times by about 10%.

Alternatives I've considered
I looked up huggingface docs for memory savnig config alternatives.
https://huggingface.co/docs/diffusers/v0.14.0/en/optimization/fp16
To be honest I just implemented each optimization suggestion from the top and downwards until it worked.
After adding `self.unet.set_attention_slice("auto"), I got total GPU memory usage of 7132MiB, which was low enough for my GPU. That number was gotten from a test run like this:
$ python main.py --text "a hamburger" --workspace trial -O --memory_saving_sd_config

This works as expected and creates a hamburger in ~39 minutes.

I realized that if I used more of the optimizations listed in the huggingface docs, I might get away with --w 128 and --h 128. I pushed the second optimization level as an option since it dramatically improved quality of output while still using below 8G of VRAM.
The left hamburger was generated in 39 min with
$ python main.py --text "a hamburger" --workspace trial -O --vram_O 1

the right one was generated in 65 min with
$ python main.py --text "a hamburger" --workspace trial -O --vram_O 2 --w 128 --h 128

Maybe this could allow those of you with more VRAM to run with --w 512 --h 512? I guess that would produce even nicer hamburgers.

The using of pipeline is neat, I think we can make that the default way (making vram_O == 1 the default?).
Also, since there is already an --fp16 option, maybe we can use it to control SD loading dtype.
Would you mind helping to make these changes? Or I could merge now and make a new commit.
It's interesting that the mesh quality can be improved with higher resolution!

Yes it's quite interesting. I continued stepping through the huggingface optimization guide today, trying to push for w512 h512 renders on my hw. I got only to w300 h300 but it looked really great. It also took only 55 min.
Here are some burgers. Left to right: 64x64, 128x128, 256x256, 300x300

I also managed to use the Trace optimization mentioned in the docs page. It uses some more vram, but lets me generate a 200x200 (high-ish quality) burger in ~20 min, down from ~30 without the tracing.
It will take some time to disentangle and clean up. I like the idea to just use the --fp16 option. I think --fp16 feels like a default to new users since it's included in the -O option that is mentioned in the first usage example in the readme. Maybe we should rename --fp16 to --save_vram or something similar, since it will do more than just reduce precision.
It makes sense to keep the non-vram-optimized mode around, since we won't get further quality gains by going beyond 512x512 anyways.
About the tracing feature and code. It requires a bit of effort to set up but it saves so much time that it will be my default way of using stable-dreamfusion. Should I include the somewhat messy trace code, and explain the process of using it in the readme, or should I just leave it out of this PR?

I included everything into this PR so you can look at it before making up your mind.

I prefer to separate speed and memory optimization options, as --fp16 can also boost speed, while --vram_O focuses on reducing memory even at the cost of speed (like cpu offloading). I'll merge the current ones and do some slight modifications.
Thanks again for your contribution!

Thanks for creating and maintaining this awesome repo btw. It really blew my mind to realize this existed :pray:

authors: ashawkey tobbelobb

repo: ashawkey/stable-dreamfusion


text:
🛑 codequiz API is down

In dba1512, codequiz API (https://api.codequiz.me/v1/courses) was down:

HTTP code: 0
Response time: 0 ms

Resolved: codequiz API is back up in 29916d6.

Resolved: codequiz API is back up in 29916d6.


text:
3.0 Swiftification

The original Reachability.swift was inspired by Tony Million's Reachability library, which was based on Apple's Objective-C Reachability. As Swift develops, so does Reachability.swift, but it still carries some Objective-C baggage with it.
Have you looked at the code and thought… "there's a much Swiftier way of achieving that"? If so, please raise a PR (against the iOS10 branch for now). Let's take this code into 2017!! 😄
Cheers
Ash

Martin R did post a Swift 2 and Swift 3 reachability code example:
http://stackoverflow.com/questions/25623272/how-to-use-scnetworkreachability-in-swift/25623647#25623647


text:
Adding a Custom 404 Page

Currently, this project does not have a custom 404 error page. When users navigate to a non-existent URL, they are either presented with a default server error page or a blank page. A custom 404 page would improve the user experience by guiding users back to relevant parts of the site instead of leaving them with an error.
Design a 404 page with the following elements:
A friendly message to inform the user that the page is not found.
A link back to the homepage or main sections of the website.
Please assign me under this issue @aslams2020

Follow the website theme.


text:
Add sqlite

I had to add an Id property for the Metric entity, as well. I need it for SQLite db. I hope is not a problem.

@dcostea I couldn't see an extension method to instantiate the SQLiteMetaDataStore. You may want to add one, e.g. UseSQLite().
Would you be able to test it real quick locally as well to make sure it appears to work? If not, I'm happy to try it during one of the streams. Thanks!

@dcostea I couldn't see an extension method to instantiate the SQLiteMetaDataStore. You may want to add one, e.g. UseSQLite().
Would you be able to test it real quick locally as well to make sure it appears to work? If not, I'm happy to try it during one of the streams. Thanks!

I have added UseSQLite. I will try to test later, otherwise, we can do it in the next stream.

authors: aslotte dcostea


text:
using black config file?

couldnt tell from documentation but does by default will be blacken-docs use projects black config within pyproject.toml example
# pyproject.toml
[tool.black]
line-length = 79

it does not use the configuration file -- here are the supported options: https://github.com/asottile/blacken-docs#usage

@asottile understood. yea sorry should have looked at issue board before writing this. seeing your similar coomments in https://github.com/asottile/blacken-docs/issues/62. just wanted to double check. thanks for quick response

authors: asottile ksdaftari

repo: asottile/blacken-docs


text:
[Bug]: Incorrect diff_test failure with write_source_files to same folder

What happened?
When using write_source_files with a generated file, writing to same folder, a diff_test clause introduced in https://github.com/aspect-build/bazel-lib/commit/b2955dcb052fea910192dfd9289751309c0bcaac fails with
...external/aspect_bazel_lib/lib/private/diff_test.bzl", line 53, column 13, in _diff_test_impl
                fail(msg)
Error in fail: diff_test comparing the same file <generated file test/hello.txt>

I expect it the test to pass.
Here is the minimized repro:
WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

####
# aspect_bazel_lib
####

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "695d319362b227725e4daa60d863b4d1969b167889902511f1fd3051cea1071f",
    strip_prefix = "bazel-lib-1.16.3",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.16.3.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

test/BUILD:
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")

FILE = "hello.txt"

genrule(
    name = "file",
    outs = [FILE],
    cmd = """cat << EOF > $@
Hello world.
EOF"""
)

write_source_files(
    name = "test",
    files = {
        FILE: ":file",
    },
)

Version
Development (host) and target OS/architectures: macOS 12.6.1 (Intel)
Output of bazel --version: bazel 5.3.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: v1.16.3
Language(s) and/or frameworks involved: Just bash.
How to reproduce
Given the above minimal repro, run the following:

bazel run //test
bazel test //...

### Any other information?

_No response_

### Fund our work

- [ ] Sponsor our open source work by donating a [bug bounty](https://opencollective.com/aspect-build/)

This issue is due to a limitation in the expressiveness of bazel targets.
Your write_source_files target:
write_source_files(
    name = "test",
    files = {
        "hello.txt": ":file",
    },
)

Fails because "hello.txt" is a pre-declared output of the genrule target. Give a label ":hello.txt" that could refer to a source (a file in the source tree) or an output file (a file in the output tree) of the same name, bazel will prefer the output file.
So the diff test is essentially comparing the output file to itself.
The way I generally get around this problem is to give the output file a different name from the source file:
genrule(
    name = "file",
    outs = ["_hello.txt"],
    cmd = """cat << EOF > $@
Hello world.
EOF"""
)

write_source_files(
    name = "test",
    files = {
        "hello.txt": ":_hello.txt",
    },
)

Helpful explanation, thanks.

authors: aran gregmagolan

repo: aspect-build/bazel-lib


text:
Pass views assembly to linker

Re-schedule target to run before linker
Add additional linker input item

Requires https://github.com/dotnet/sdk/pull/3539
Addresses AspNetCore#12064

@rynowak @pranavkm @mkArtakMSFT @sbomer Still draft as the SDK side needs testing, as does this side, though I could use some help with that.

The only way to test this is by building a franken-build. I'd be happy to sit with you and try stuff out if you have the bits :)

Any unfortunately there's no way to write an automated test for this scenario in our repo 😠

@rynowak @pranavkm This is ready for review. See updated description. I've tested with and without my sdk change. This works without it and future proofs it to work with it as well. We can take this small change independently through ask mode from the larger sdk change.

Code changes here look fine. Are you taking this through ask mode or are we? 👼

Sending the mail. I don't have permission to set the ask-mode label.

@dougbu does this need to target the release/3.0-preview9 branch if this needs to get in to 3.0-preview9?

@dougbu does this need to target the release/3.0-preview9 branch if this needs to get in to 3.0-preview9?

Yes, definitely.

I've changed the target branch

BTW, @nguerrera I know you know this but for @pranavkm and others: This PR has been QB approved though @SteveCarrollMSFT had a question (still open) about perf impact.

authors: dougbu nguerrera pranavkm rynowak

repo: aspnet/AspNetCore-Tooling


text:
Changing bound Parameter not causing re-render on StateHasChanged

Have a page with sub-components with bound parameters.
https://github.com/kiyote/RiftDrive/blob/master/src/RiftDrive.Client/Pages/PlayPages/GameViewPage.razor
Cause a change in those bound parameters.
https://github.com/kiyote/RiftDrive/blob/master/src/RiftDrive.Client.State/AppState.cs
Have StateHasChanged called indirectly.
https://github.com/kiyote/RiftDrive/blob/master/src/RiftDrive.Client/Pages/MainLayout.razor.cs
Sub-component does not re-render.
However, in the same sequence, if the sub-component is bound directly to the injected IAppState object (instead of having that object passed in via a parameter) it will re-render.
It feels like StateHasChanged should cause a re-render even when bound parameters have changed.

I suppose I should clarify this is client-side Blazor.  Sorry about that.

Total misunderstanding of StateHasChanged.  I had previously thought it was global.  I now understand it triggers changes scoped to the location it's invoked from.

repo: aspnet/AspNetCore


text:
Return an empty list instead of null for IHeaderDictionary extensions…

https://github.com/aspnet/AspNetCore/issues/3486

Also need to update 3 tests to expect not null instead of null; and add check for count is 0
HeaderDictionaryTypeExtensionsTest.GetListT_UnknownTypeWithTryParseListAndInvalidValue_Null()
 in /_/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs:line 141

HeaderDictionaryTypeExtensionsTest.GetListT_UnknownTypeWithTryParseListAndMissingValue_Null()
 in /_/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs:line 150

HeaderDictionaryTypeExtensionsTest.GetListT_KnownTypeWithMissingValue_Null()
 in /_/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs:line 109

@benaadams I think I Should change it back to new List, because you get a exception when calling Add on Array.Empty. What's your thought?

I think I Should change it back to new List, because you get a exception when calling Add on Array.Empty. What's your thought?

Don't see a need. Previously you'd get a null reference exception; the IList<T>'s property IsReadOnly will return true; it isn't a live list (adding an element won't update the headers), and its primary use is for reading the elements.

Agreed, Array.Empty is fine.

Tests?

Thanks

authors: Kahbazi Tratcher benaadams davidfowl


text:
Also target netstandard2.1 for Identity.EFCore

Description
Fix for https://github.com/aspnet/AspNetCore/issues/13340
For 3.0 we decided to support netstandard 2.0 for the User/RoleManager portions of identity (basically the non auth features).  Unfortunately we missed updating the Identity.EntityFrameworkCore package to target netstandard 2.1 (required for EF), so its currently only targeting netcoreapp3.0 (the default for ASP.NET Core).  This change just enables this package to be target netstandard2.1.
Customer Impact
Customers are unable to use the default identity + EF implementation outside of netcoreapp3.0 which is also regression from 2.2
Regression?
Yes, in 2.2, this package targeted netstandard2.0
Risk
Low

Rebase went extremely poorly, just went with a new PR replacing this one https://github.com/aspnet/AspNetCore/pull/13401, I will create a new PR for master if needed in the future


text:
Add missing ref-assembly for header propagation

I think this was missed because the PR predates ref assemblies :)

@aspnet-hello triage

Looks like Ubuntu hung on Kestrel tests:
  Starting test group: InMemory.FunctionalTests/netcoreapp3.0
  Microsoft (R) Test Execution Command Line Tool Version 16.0.0-preview-20190124-02
  Copyright (c) Microsoft Corporation.  All rights reserved.

  Starting test execution, please wait...

@aspnet-hello triage https://dev.azure.com/dnceng/public/_build/results?buildId=138017

This comment was made automatically. If there is a problem contact ryanbrandenburg.
I've triaged the above build.

authors: Eilon aspnet-hello rynowak


text:
Ability to pass parameters to event handlers

It seems that currently parameters are not supported. If you do e.g. this:
    @foreach(var x in xCollection)
    {

x.Name Click me

    }

    //More code

    @functions {
        private void HandleClick(string p)
        {
        }
    }

you get a compilation error:
error CS1503: Argument 1: cannot convert from 'void' to 'string'

It would simplify the binding to be able to pass parameters there.

The syntax is
    @foreach(var x in xCollection)
    {

x.Name  HandleClick(x.Value))">Click me

    }

    //More code

    @functions {
        private void HandleClick(string p)
        {
        }
    }

@Suchiman, is onclick="@(() => HandleClick(x.Value))" a temporary solution or the way to go in Blazor ?

@enetstudio it's the way to go, this is standard C# and razor, @() defines an expression context and inside what we've got is a normal capturing lambda expression that takes no arguments and calls another method () => HandleClick(x.Value) like is often used in LINQ. onclick is just something that takes an Action, Action<UIEventArgs>  or Func<Task>.

authors: Suchiman enetstudio korsaire

repo: aspnet/Blazor


text:
Cannot resolve @typeparam

I have Blazor 0.6.0 installed, using the VS template.  .NET Core SDK 2.1.402.  I see this, both with ReSharper enabled and disabled.
The app appears to still compile and run correctly, so perhaps this is an issue with Visual Studio?  I have VS 2017 15.8.6.

Hmm, strange. I'm not able to reproduce this. @rynowak Any ideas?

I don't have any off the cuff ideas. Can you confirm that other blazor features work in the editor? @layout for instance. Can you confirm the version of the blazor extension in the About... dialog

One other thing to check. Did package restore complete successfully for the project?

Can you please report back about @layout? @inject works the same way in MVC as it does in Blazor. I'm curious if the editor thinks this file is in an MVC project.

I created the project from the VS template, and opened _ViewImports.cshtml.  I see no syntax errors.  I also retyped the @layout line and it still appears to be working fine.

By the way, just in case, here is my .csproj
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <RunCommand>dotnet</RunCommand>
    <RunArguments>blazor serve</RunArguments>
    <LangVersion>7.3</LangVersion>
  </PropertyGroup>

  <ItemGroup>
    <BlazorLinkerDescriptor Include="linker.xml" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.6.0" />
    <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.6.0" PrivateAssets="all" />

    <DotNetCliToolReference Include="Microsoft.AspNetCore.Blazor.Cli" Version="0.6.0" />
  </ItemGroup>

</Project>

Also, here is the linker.xml I'm using
<linker>
  <assembly fullname="mscorlib">
    <!-- Preserve all methods on WasmRuntime, because these are called by JS-side code
    to implement timers. Fixes https://github.com/aspnet/Blazor/issues/239 -->
    <type fullname="System.Threading.WasmRuntime" />
  </assembly>
  <assembly fullname="System.Core">
    <!-- This is required by JSon.NET and any expression.Compile caller -->
    <type fullname="System.Linq.Expressions*" />
  </assembly>
  <!-- Name of the entry point assembly -->
  <assembly fullname="BlazorTest" />
</linker>

@kakins Can you share the project with us?

I'm having the same problem. All other directives are working (@page, @inherits, etc). I've tried creating from various templates just to isolate:  a Razor View, Razor Page, Razor Layout. My VS2017 is version 15.9.0 Preview 4.
In my case though, it turns out this is an issue only when I have ReSharper (v2018.2.3) active. If I disable ReSharper, it works properly.

I had the same issue and was able to resolve it by uninstalling Blazor language services through the VS installer and reinstalling it in Extensions and Updates.

@alexDevBR, I'm interested to know if your working setup included a ReSharper. Does it?

@nolisj no, I don't have ReSharper. I also upgraded to 15.9.1, maybe that also helped, but what solved it was reinstalling Blazor language services. I reinstalled it after the upgrade, but maybe reinstalling it before would have solved the problem too.

authors: alexDevBR danroth27 kakins nolisj rynowak


text:
MouseEvent does not adopt the properties

The Javascript function returns normal values like:

ClientX: 106, ClientY: 285

The C# function only returns default values.

{"detail":0,"screenX":0,"screenY":0,"clientX":0,"clientY":0,"button":0,"buttons":0,"ctrlKey":false,"shiftKey":false,"altKey":false,"metaKey":false,"type":null}

JavaScript Interop
        document.onmouseup = function (event) {
            console.log(event);
            DotNet.invokeMethodAsync('DSA.App', 'JsMouseUp', event);
        }

JavaScriptInteropClass
 [JSInvokable]
        public static Task<bool> JsMouseUp(UIMouseEventArgs eventArgs)
        {
            var found = false;
            Console.WriteLine(Json.Serialize(eventArgs));
            return Task.FromResult(found);
        }

Is this an error? This is Blazor ServerSide

This is not the way event handling is intended to be used. I strongly recommand that you read the documenation at https://blazor.net/docs/components/index.html#event-handling.
When marshalling DOM events from JS to C# they are wrapped into special types by blazor. If you really need to insall the event handler in JS, you have to mimic this. In this case, see here: https://github.com/aspnet/Blazor/blob/0.7.0/src/Microsoft.AspNetCore.Blazor.Browser.JS/src/Rendering/EventForDotNet.ts
I am very sure however that you do NOT want to do this. You cannot put an event handler in the document itself with blazor actually, but you can mimic the behavior by putting everything into a container (div for example) and installing the event handler on this container. You can also wrap this in its own container:
@functions{
   [Parameter] private RenderFragment ChildContent {get;set;}

   private void OnMouseUp(UIMouseEventArgs e)
   {
      // [ ... ]
   }
}

   @ChildContent

}

This can then be used for example in your App.cshtml.

authors: AndreasTruetschel UrielMhezzek