Fix installation

This commit modifies several files in order to make the dashboard install-able using the description in the README.md.

README.md has been updated to describe the dev installation process.
.pre-commit-config.yaml has been cleaned up, and a few steps have been removed.
Added an environment.yaml file for creating a virtual environment using mamba.
Updated pyproject.toml to fix requirements and settings.

Resolves #32

After running pre-commit run --all-files, it identified sever errors for existing files which we need fix
ensure we are not committing to branch `main`............................Passed
check json...............................................................Passed
check for merge conflicts................................................Passed
check toml...............................................................Passed
check yaml...............................................................Passed
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing src/arviz_dashboard/ppc.py

mixed line ending........................................................Passed
python tests naming..................................(no files to check)Skipped
pretty format json.......................................................Failed
- hook id: pretty-format-json
- exit code: 1
- files were modified by this hook

Fixing file examples/forest_dashboard.ipynb
Fixing file examples/elpd_dashboard.ipynb
Fixing file examples/posterior-marginal1d-examples.ipynb
Fixing file examples/ppc_dashboard.ipynb
Fixing file examples/trace.ipynb

trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook

Fixing src/arviz_dashboard/forest.py
Fixing CONTRIBUTING.md
Fixing src/arviz_dashboard/ppc.py

sort Python imports using isort..........................................Failed
- hook id: isort
- files were modified by this hook

Fixing /Users/yilinx/arviz_dashboard/src/arviz_dashboard/__init__.py
Fixing /Users/yilinx/arviz_dashboard/src/arviz_dashboard/forest.py
Fixing /Users/yilinx/arviz_dashboard/src/arviz_dashboard/marginal/one_d.py
Fixing /Users/yilinx/arviz_dashboard/src/arviz_dashboard/ppc.py
Fixing /Users/yilinx/arviz_dashboard/src/arviz_dashboard/trace/trace.py

remove unused Python imports using pycln.................................Passed
format Python code using black...........................................Failed
- hook id: black
- files were modified by this hook

Identified `/Users/yilinx/arviz_dashboard` as project root containing a .git directory.
Using configuration from project root.
target_version: ['py310', 'py311', 'py312', 'py313']
Found input source: "src/arviz_dashboard/__init__.py"
Found input source: "src/arviz_dashboard/dashboards.py"
Found input source: "src/arviz_dashboard/elpd.py"
Found input source: "src/arviz_dashboard/forest.py"
Found input source: "src/arviz_dashboard/marginal/__init__.py"
Found input source: "src/arviz_dashboard/marginal/one_d.py"
Found input source: "src/arviz_dashboard/plots.py"
Found input source: "src/arviz_dashboard/ppc.py"
Found input source: "src/arviz_dashboard/trace/__init__.py"
Found input source: "src/arviz_dashboard/trace/trace.py"
Found input source: "src/arviz_dashboard/widgets.py"
reformatted src/arviz_dashboard/__init__.py
src/arviz_dashboard/dashboards.py already well formatted, good job.
src/arviz_dashboard/marginal/__init__.py already well formatted, good job.
src/arviz_dashboard/plots.py already well formatted, good job.
src/arviz_dashboard/trace/__init__.py already well formatted, good job.
src/arviz_dashboard/elpd.py already well formatted, good job.
src/arviz_dashboard/widgets.py already well formatted, good job.
src/arviz_dashboard/marginal/one_d.py already well formatted, good job.
src/arviz_dashboard/trace/trace.py already well formatted, good job.
reformatted src/arviz_dashboard/ppc.py
reformatted src/arviz_dashboard/forest.py

All done! ✨ 🍰 ✨
3 files reformatted, 8 files left unchanged.

lint Python using ruff...................................................Failed
- hook id: ruff
- exit code: 1

[2024-06-10][22:11:08][ruff::resolve][DEBUG] Using Ruff default settings
[2024-06-10][22:11:08][ruff::commands::check][DEBUG] Identified files to lint in: 2.77725ms
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/trace/trace.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/marginal/one_d.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/forest.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/dashboards.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/ppc.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/widgets.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/__init__.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/plots.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/trace/__init__.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/marginal/__init__.py
[2024-06-10][22:11:08][ruff::diagnostics][DEBUG] Checking: /Users/yilinx/arviz_dashboard/src/arviz_dashboard/elpd.py
[2024-06-10][22:11:08][ruff_linter::rules::isort::categorize][DEBUG] Categorized 'arviz_dashboard.marginal.one_d.posterior_marginal1d' as Known(FirstParty) (SamePackage)
[2024-06-10][22:11:08][ruff_linter::rules::isort::categorize][DEBUG] Categorized 'arviz_dashboard.trace.trace.trace' as Known(FirstParty) (SamePackage)
[2024-06-10][22:11:08][ruff_linter::rules::isort::categorize][DEBUG] Categorized '.elpd.dashboard_elpd' as Known(LocalFolder) (NonZeroLevel)
[2024-06-10][22:11:08][ruff_linter::rules::isort::categorize][DEBUG] Categorized '.ppc.dashboard_ppc' as Known(LocalFolder) (NonZeroLevel)
--- src/arviz_dashboard/dashboards.py
+++ src/arviz_dashboard/dashboards.py
@@ -4,7 +4,6 @@
 import panel as pn
 import param
 from bokeh.palettes import Colorblind8
-from bokeh.plotting import figure

 class DashboardBaseClass(param.Parameterized):

--- src/arviz_dashboard/ppc.py
+++ src/arviz_dashboard/ppc.py
@@ -1,6 +1,5 @@
 import arviz as az
 import bokeh.io
-import matplotlib.pyplot as plt
 import panel as pn

 bokeh.io.reset_output()

--- src/arviz_dashboard/marginal/one_d.py
+++ src/arviz_dashboard/marginal/one_d.py
@@ -5,7 +5,6 @@
 import param
 from bokeh.models.sources import ColumnDataSource
 from bokeh.models.tools import HoverTool
-from bokeh.palettes import Colorblind8
 from bokeh.plotting import figure

 from arviz_dashboard import plots, widgets

--- src/arviz_dashboard/trace/trace.py
+++ src/arviz_dashboard/trace/trace.py
@@ -3,10 +3,8 @@
 import arviz as az
 import panel as pn
 import param
-from bokeh.models.callbacks import CustomJS
 from bokeh.models.sources import ColumnDataSource
 from bokeh.models.tools import HoverTool
-from bokeh.palettes import Colorblind8
 from bokeh.plotting import figure

 from arviz_dashboard import plots, widgets

[2024-06-10][22:11:08][ruff::commands::check][DEBUG] Checked 11 files in: 8.988042ms
Would fix 5 errors.

format Markdown using mdformat...........................................Failed
- hook id: mdformat
- files were modified by this hook
pydoclint................................................................Failed
- hook id: pydoclint
- exit code: 1

Loading config from user-specified .toml file: pyproject.toml
No config found in pyproject.toml.
Skipping files that match this pattern: \.git|\.tox
src/arviz_dashboard/__init__.py
src/arviz_dashboard/dashboards.py
src/arviz_dashboard/elpd.py
src/arviz_dashboard/forest.py
src/arviz_dashboard/marginal/__init__.py
src/arviz_dashboard/marginal/one_d.py
src/arviz_dashboard/plots.py
src/arviz_dashboard/ppc.py
src/arviz_dashboard/trace/__init__.py
src/arviz_dashboard/trace/trace.py
src/arviz_dashboard/widgets.py

src/arviz_dashboard/marginal/one_d.py
    47: DOC101: Method `PosteriorMarginal1d.__init__`: Docstring contains fewer arguments than in function signature.
    47: DOC103: Method `PosteriorMarginal1d.__init__`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**params: ].

src/arviz_dashboard/trace/trace.py
    48: DOC101: Method `Trace.__init__`: Docstring contains fewer arguments than in function signature.
    48: DOC103: Method `Trace.__init__`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**params: ].

inspect Python code using flake8.........................................Failed
- hook id: flake8
- exit code: 1

flake8.checker            MainProcess     69 INFO     Making checkers
flake8.main.application   MainProcess    270 INFO     Finished running
flake8.main.application   MainProcess    270 INFO     Reporting errors
flake8.main.application   MainProcess    271 INFO     Found a total of 163 violations and reported 161
src/arviz_dashboard/__init__.py:1:1: D400 First line should end with a period
src/arviz_dashboard/__init__.py:5:1: F401 'arviz_dashboard.marginal.one_d.posterior_marginal1d' imported but unused
src/arviz_dashboard/__init__.py:6:1: F401 'arviz_dashboard.trace.trace.trace' imported but unused
src/arviz_dashboard/__init__.py:8:1: F401 '.elpd.dashboard_elpd' imported but unused
src/arviz_dashboard/__init__.py:9:1: F403 'from .forest import *' used; unable to detect undefined names
src/arviz_dashboard/__init__.py:9:1: F401 '.forest.*' imported but unused
src/arviz_dashboard/__init__.py:10:1: F401 '.ppc.dashboard_ppc' imported but unused
src/arviz_dashboard/dashboards.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/dashboards.py:7:1: F401 'bokeh.plotting.figure' imported but unused
src/arviz_dashboard/dashboards.py:15:1: D107 Missing docstring in __init__
src/arviz_dashboard/dashboards.py:15:71: ANN003 Missing type annotation for **params
src/arviz_dashboard/dashboards.py:15:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/dashboards.py:25:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/dashboards.py:34:43: ANN202 Missing return type annotation for protected function
src/arviz_dashboard/dashboards.py:37:42: ANN201 Missing return type annotation for public function
src/arviz_dashboard/dashboards.py:38:80: E501 line too long (89 > 79 characters)
src/arviz_dashboard/dashboards.py:41:42: ANN002 Missing type annotation for *args
src/arviz_dashboard/dashboards.py:41:47: ANN202 Missing return type annotation for protected function
src/arviz_dashboard/dashboards.py:44:41: ANN002 Missing type annotation for *args
src/arviz_dashboard/dashboards.py:44:46: ANN201 Missing return type annotation for public function
src/arviz_dashboard/dashboards.py:45:1: D401 First line should be in imperative mood
src/arviz_dashboard/dashboards.py:49:1: D401 First line should be in imperative mood
src/arviz_dashboard/elpd.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/elpd.py:15:1: D103 Missing docstring in public function
src/arviz_dashboard/elpd.py:15:20: ANN001 Missing type annotation for function argument 'idatas_cmp'
src/arviz_dashboard/elpd.py:15:31: ANN201 Missing return type annotation for public function
src/arviz_dashboard/elpd.py:17:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/elpd.py:18:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/elpd.py:23:80: E501 line too long (90 > 79 characters)
src/arviz_dashboard/elpd.py:39:23: ANN001 Missing type annotation for function argument 'model_selection1'
src/arviz_dashboard/elpd.py:39:41: ANN001 Missing type annotation for function argument 'model_selection2'
src/arviz_dashboard/elpd.py:39:59: ANN001 Missing type annotation for function argument 'thre_slider'
src/arviz_dashboard/elpd.py:39:72: ANN001 Missing type annotation for function argument 'ic_group'
src/arviz_dashboard/elpd.py:39:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/elpd.py:39:81: ANN201 Missing return type annotation for public function
src/arviz_dashboard/elpd.py:54:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:56:80: E501 line too long (99 > 79 characters)
src/arviz_dashboard/elpd.py:64:38: F821 undefined name 'y_min'
src/arviz_dashboard/elpd.py:64:45: F821 undefined name 'y_max'
src/arviz_dashboard/elpd.py:69:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:85:80: E501 line too long (98 > 79 characters)
src/arviz_dashboard/elpd.py:93:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:101:30: ANN001 Missing type annotation for function argument 'model_selection1'
src/arviz_dashboard/elpd.py:101:48: ANN001 Missing type annotation for function argument 'model_selection2'
src/arviz_dashboard/elpd.py:101:66: ANN001 Missing type annotation for function argument 'thre_slider'
src/arviz_dashboard/elpd.py:101:79: ANN001 Missing type annotation for function argument 'ic_group'
src/arviz_dashboard/elpd.py:101:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/elpd.py:101:88: ANN201 Missing return type annotation for public function
src/arviz_dashboard/elpd.py:104:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/elpd.py:106:80: E501 line too long (89 > 79 characters)
src/arviz_dashboard/elpd.py:121:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:135:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/elpd.py:146:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:149:26: ANN001 Missing type annotation for function argument 'model_selection1'
src/arviz_dashboard/elpd.py:149:44: ANN001 Missing type annotation for function argument 'model_selection2'
src/arviz_dashboard/elpd.py:149:61: ANN201 Missing return type annotation for public function
src/arviz_dashboard/elpd.py:152:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/elpd.py:156:80: E501 line too long (85 > 79 characters)
src/arviz_dashboard/elpd.py:161:80: E501 line too long (91 > 79 characters)
src/arviz_dashboard/elpd.py:164:5: F821 undefined name 'display'
src/arviz_dashboard/forest.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/forest.py:15:1: D101 Missing docstring in public class
src/arviz_dashboard/forest.py:21:1: D107 Missing docstring in __init__
src/arviz_dashboard/forest.py:21:18: ANN101 Missing type annotation for self in method
src/arviz_dashboard/forest.py:21:67: ANN003 Missing type annotation for **params
src/arviz_dashboard/forest.py:21:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/forest.py:33:47: ANN202 Missing return type annotation for protected function
src/arviz_dashboard/forest.py:34:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/forest.py:40:44: ANN202 Missing return type annotation for protected function
src/arviz_dashboard/forest.py:41:80: E501 line too long (98 > 79 characters)
src/arviz_dashboard/forest.py:42:80: E501 line too long (93 > 79 characters)
src/arviz_dashboard/forest.py:43:80: E501 line too long (96 > 79 characters)
src/arviz_dashboard/forest.py:49:1: D101 Missing docstring in public class
src/arviz_dashboard/forest.py:50:1: D107 Missing docstring in __init__
src/arviz_dashboard/forest.py:50:18: ANN101 Missing type annotation for self in method
src/arviz_dashboard/forest.py:50:24: ANN001 Missing type annotation for function argument 'idata_dict'
src/arviz_dashboard/forest.py:54:1: D102 Missing docstring in public method
src/arviz_dashboard/forest.py:54:26: ANN101 Missing type annotation for self in method
src/arviz_dashboard/forest.py:55:0: ANN201 Missing return type annotation for public function
src/arviz_dashboard/forest.py:70:80: E501 line too long (84 > 79 characters)
src/arviz_dashboard/forest.py:112:0: ANN201 Missing return type annotation for public function
src/arviz_dashboard/forest.py:123:1: E800 Found commented out code
src/arviz_dashboard/forest.py:154:0: ANN201 Missing return type annotation for public function
src/arviz_dashboard/forest.py:207:1: E800 Found commented out code
src/arviz_dashboard/marginal/__init__.py:1:1: D104 Missing docstring in public package
src/arviz_dashboard/marginal/one_d.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/marginal/one_d.py:8:1: F401 'bokeh.palettes.Colorblind8' imported but unused
src/arviz_dashboard/marginal/one_d.py:18:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:23:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:28:80: E501 line too long (83 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:30:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:31:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:32:80: E501 line too long (85 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:33:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:36:80: E501 line too long (80 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:41:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:50:15: ANN003 Missing type annotation for **params
src/arviz_dashboard/marginal/one_d.py:55:80: E501 line too long (85 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:62:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:102:47: ANN002 Missing type annotation for *args
src/arviz_dashboard/marginal/one_d.py:109:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/marginal/one_d.py:132:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/plots.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/ppc.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/ppc.py:3:1: F401 'matplotlib.pyplot as plt' imported but unused
src/arviz_dashboard/ppc.py:13:1: D103 Missing docstring in public function
src/arviz_dashboard/ppc.py:13:19: ANN001 Missing type annotation for function argument 'idatas_cmp'
src/arviz_dashboard/ppc.py:13:30: ANN201 Missing return type annotation for public function
src/arviz_dashboard/ppc.py:14:80: E501 line too long (100 > 79 characters)
src/arviz_dashboard/ppc.py:20:22: ANN001 Missing type annotation for function argument 'model_selection1'
src/arviz_dashboard/ppc.py:20:40: ANN001 Missing type annotation for function argument 'thre_slider'
src/arviz_dashboard/ppc.py:20:52: ANN201 Missing return type annotation for public function
src/arviz_dashboard/ppc.py:29:80: E501 line too long (94 > 79 characters)
src/arviz_dashboard/ppc.py:34:9: E265 block comment should start with '# '
src/arviz_dashboard/ppc.py:37:80: E501 line too long (98 > 79 characters)
src/arviz_dashboard/ppc.py:43:9: E265 block comment should start with '# '
src/arviz_dashboard/ppc.py:44:9: E266 too many leading '#' for block comment
src/arviz_dashboard/ppc.py:46:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/ppc.py:52:80: E501 line too long (84 > 79 characters)
src/arviz_dashboard/ppc.py:63:9: E266 too many leading '#' for block comment
src/arviz_dashboard/ppc.py:69:9: E266 too many leading '#' for block comment
src/arviz_dashboard/ppc.py:75:80: E501 line too long (94 > 79 characters)
src/arviz_dashboard/ppc.py:83:23: ANN001 Missing type annotation for function argument 'model_selection1'
src/arviz_dashboard/ppc.py:83:41: ANN001 Missing type annotation for function argument 'thre_slider'
src/arviz_dashboard/ppc.py:83:53: ANN201 Missing return type annotation for public function
src/arviz_dashboard/ppc.py:85:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/ppc.py:91:80: E501 line too long (84 > 79 characters)
src/arviz_dashboard/ppc.py:103:80: E501 line too long (80 > 79 characters)
src/arviz_dashboard/ppc.py:105:1: E800 Found commented out code
src/arviz_dashboard/ppc.py:106:1: E800 Found commented out code
src/arviz_dashboard/ppc.py:110:5: F821 undefined name 'display'
src/arviz_dashboard/ppc.py:112:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/trace/__init__.py:0:1: A005 the module is shadowing a Python builtin module "trace"
src/arviz_dashboard/trace/__init__.py:1:1: D104 Missing docstring in public package
src/arviz_dashboard/trace/trace.py:0:1: A005 the module is shadowing a Python builtin module "trace"
src/arviz_dashboard/trace/trace.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/trace/trace.py:6:1: F401 'bokeh.models.callbacks.CustomJS' imported but unused
src/arviz_dashboard/trace/trace.py:9:1: F401 'bokeh.palettes.Colorblind8' imported but unused
src/arviz_dashboard/trace/trace.py:24:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/trace/trace.py:29:80: E501 line too long (83 > 79 characters)
src/arviz_dashboard/trace/trace.py:31:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/trace/trace.py:32:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/trace/trace.py:33:80: E501 line too long (85 > 79 characters)
src/arviz_dashboard/trace/trace.py:34:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/trace/trace.py:37:80: E501 line too long (80 > 79 characters)
src/arviz_dashboard/trace/trace.py:42:80: E501 line too long (86 > 79 characters)
src/arviz_dashboard/trace/trace.py:48:62: ANN003 Missing type annotation for **params
src/arviz_dashboard/trace/trace.py:60:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/trace/trace.py:107:33: ANN002 Missing type annotation for *args
src/arviz_dashboard/trace/trace.py:114:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/trace/trace.py:137:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/trace/trace.py:144:80: E501 line too long (81 > 79 characters)
src/arviz_dashboard/trace/trace.py:160:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/widgets.py:1:1: D100 Missing docstring in public module
src/arviz_dashboard/widgets.py:10:80: E501 line too long (85 > 79 characters)
src/arviz_dashboard/widgets.py:11:80: E501 line too long (87 > 79 characters)
src/arviz_dashboard/widgets.py:12:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/widgets.py:18:80: E501 line too long (82 > 79 characters)
src/arviz_dashboard/widgets.py:23:80: E501 line too long (84 > 79 characters)
src/arviz_dashboard/widgets.py:28:80: E501 line too long (88 > 79 characters)
src/arviz_dashboard/widgets.py:33:80: E501 line too long (81 > 79 characters)


feat(design): add daffHeroBody and daffHeroIcon transcludables

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
Additional content placed in hero do not have appropriate margin.
Fixes: N/A
What is the new behavior?
Added daffHeroBody directive to style additional content, and added daffHeroIcon for brand/visual reinforcement.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

@xelaint I'm not sure this is backwards compatible -- See: https://daffio-next-gonzvrmnp-graycoreio1.vercel.app/

@damienwebdev The hero is using a deprecated property. I could re-order the CSS so that the deprecated property applies, but is that necessary if it's deprecated and daff.io needs to be updated? We're essentially replacing layout with textAlignment


skale implementation on fortune app

 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.


[Bug] table 5050 Contact - GetTDDAddr

In table 5050 Contact please add this check in the following code:
    procedure GetTDDAddr(ContactNo: Code[20]; var AddrArray: array[8] of Text[100])
    var
        FormatAddr: Codeunit "Format Address";
    begin
        if Get(ContactNo) then begin
            FormatAddr.FormatAddr(
              AddrArray, Name, '', '', Address, '',
              City, "Post Code", '', "Country/Region Code");
            // check to add
            if "VAT Registration No." <> '' then
            // check to add
               AddrArray[8] := FieldCaption("VAT Registration No.") + ':' + "VAT Registration No.";
        end;
        CompressArray(AddrArray);
    end;

Thank you

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Made start and end message directly changed from write func

Please review my code for bugs (if there is any). Thanks!

Hello @Marcus1YouTube,
Thanks for your pull request.
Are you looking to overwrite the startAlert / endAlert?
If yes, you can simply apply this code snippet:
// MARK: - Sample I/O Functions
func read() {
    NFCR.startAlert = "Hello! Please hold your iPhone near the tag."
    NFCR.endAlert = "Thank you."
    NFCR.read()
}
func write() {
    NFCW.startAlert = "Hello! Please hold your iPhone near the tag."
    NFCW.endAlert = "Thank you."
    NFCW.msg = NFCR.msg
    NFCW.write()
}

Hope it solves your question :)

Oh, sorry. That didn't come to mind. Thanks!

That's fine 🙂


Extract VM and Widget out of this repo

The Widget (including VM) should be standalone publishable package. This will allow importing and reusing of Widgets outside of the main viewer.

https://github.com/NearSocial/VM


fix error in parameter reporting and add missing parameter

What changes does this PR introduce?
bug fix for issue #226
What is the current behaviour?

#226
value of balancePrintMean is not report to STDOUT

What is the new behaviour

value of balanceEmRmR is reported instead of balanceQnet in STDOUT
value of balancePrintMean is reported to STDOUT

Does this PR introduce a breaking change?
No
Other information:
Suggested addition to tag-index

fix small bug in config_summary.F reported by Christopher Wolfe
print balancePrintMean to STDOUT

LGTM

LGTM

LGTM +1
Going to merge soon (after updating tag-index).


applyPaddingTopIfApplicable does not take themes into consideration

this is a technical refactoring, so i want it to live in staging a little to see if it works as expected


GPU delegate linker errors when building TFLite 2.16.1 for Android with CMake

Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.16.1
Custom code
Yes
OS platform and distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
Clang 14.0.6 (Android NDK r25b)
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I'm trying to build TFLite 2.16.1 for Android using CMake and Android NDK r25b and got the following linker errors related to GPU delegate.

Standalone code to reproduce the issue
CMake options:

cmake -S tensorflow/lite -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D BUILD_SHARED_LIBS=ON -D TFLITE_ENABLE_GPU=ON -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_VERSION=29 -D ANDROID_PLATFORM=29 -D CMAKE_ANDROID_ARCH_ABI=arm64-v8a -D ANDROID_ABI=arm64-v8a -D CMAKE_TOOLCHAIN_FILE=android-ndk-r25b/build/cmake/android.toolchain.cmake

Relevant log output
No response

Hi @eltimen,
Enabling GPU support requires additional libraries and dependencies related to OpenCL. This might be the reason for
the error  tflite::gpu::gl and tflite::gpu::OptionalAndroidHardwareBuffer.  Please try to add the following to the Android manifest in order to detect GPU delegate.
<uses-library android:name="libOpenCL.so"
           android:required="false"/>

<uses-library android:name="libOpenCL-pixel.so"
           android:required="false"/>

Also Verify that the NDK version (r25b) is compatible with the TensorFlow Lite version you are trying to build.
Thank You

Hi @LakshmiKalaKadali,
I'm not using Gradle or Android Studio. I just tried to build libtensorflow-lite.so for Android using CMake following the documentation and I got the linker errors above.
I tried to build it with Bazel as mentioned here and build was successful. According to this page NDK r25b should be compatible with this TFLite version.
According to the documentation, TensorFlow Lite supports both ways to build it for Android: with CMake and with Bazel. Looks like CMake building is broken with enabled GPU delegate in this version.

This looks like a duplicate of https://github.com/tensorflow/tensorflow/issues/65744, investigating.

Hi @eltimen, I was able to build fine with these steps:
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
cd tensorflow_src
git switch r2.16
cd ..
mkdir tflite_build
cd tflite_build
cmake -S ../tensorflow_src/tensorflow/lite -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D BUILD_SHARED_LIBS=ON -D TFLITE_ENABLE_GPU=ON -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_VERSION=29 -D ANDROID_PLATFORM=29 -D CMAKE_ANDROID_ARCH_ABI=arm64-v8a -D ANDROID_ABI=arm64-v8a -D CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake

Please note $ANDROID_NDK is the path to my NDK, which is 25b.
I am building on MacOS, you didn't specify an OS so that could be an issue.
Can you please let us know what OS you are using? Additionally please review my reproduce steps and let me know if I did something different than what you are doing? Thanks.

Hi @pkgoogle, I use Ubuntu 22.04.
I'm building TFLite from the tag v2.16.1, but you are building it from the branch r2.16.
Can you try to reproduce this using the release 2.16.1 version?

Hi @eltimen, I am using a Debian system, and went to that tag, but am using NDK=r25c, I am still not reproducing the error:
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
cd tensorflow_src
git checkout v2.16.1
cd ..
mkdir tflite_build
cd tflite_build
cmake -S ../tensorflow_src/tensorflow/lite -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D BUILD_SHARED_LIBS=ON -D TFLITE_ENABLE_GPU=ON -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_VERSION=29 -D ANDROID_PLATFORM=29 -D CMAKE_ANDROID_ARCH_ABI=arm64-v8a -D ANDROID_ABI=arm64-v8a -D CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake

It looks like my Clang is different (14.0.7) probably from the different r25c.
Can you try with a fresh repo, perhaps fresh NDK, and ensure you follow the same steps exactly? Let me know if somehow that resolves your issue.

Hello @pkgoogle,
I followed your step exactly, the error does not come from the generating the build file but from actual building with cmake --build . -j, can you verify this is the correct command to build?

Also just double checking, when building with CMake, is this step in this guide still needed to build GPU delegate?

Hi @dorishyc3, I believe you are in the wrong thread, please follow your issue in that thread instead so we don't confuse the issues (Same error but different OS right now), to answer your question -- that is the correct command if you are following these directions: https://www.tensorflow.org/lite/guide/build_cmake. That guide is following directions with Bazel, I don't recommend you mix build systems unless you truly understand both and what they are doing. For cmake I would follow this: https://www.tensorflow.org/lite/guide/build_cmake#opencl_gpu_delegate. If you want to try Bazel or see if you can complete your workflow with it instead, please feel free to do so.

Hi, @pkgoogle. Sorry for the delay.
I tried building the TFLite exactly following your steps using NDK r25c, but I'm still reproducing this error. My CMake verision is 3.27.7

Hi @eltimen,
It seems we have been miscommunicating slightly :). The original problem didn't include the cmake --build . -j step, so I wasn't doing that -- as seen in my previous comment. After doing that step, I was able to reproduce. To recompile to ensure there is no further miscommunication the reproduce steps are as follows:
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
cd tensorflow_src
git checkout v2.16.1
cd ..
mkdir tflite_build
cd tflite_build
cmake -S ../tensorflow_src/tensorflow/lite -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D BUILD_SHARED_LIBS=ON -D TFLITE_ENABLE_GPU=ON -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_VERSION=29 -D ANDROID_PLATFORM=29 -D CMAKE_ANDROID_ARCH_ABI=arm64-v8a -D ANDROID_ABI=arm64-v8a -D CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
cd build
cmake --build . -j

Hi @terryheo, can you please take a look? Thanks.


tour: clarify that "export" means "public"

Context: https://tour.golang.org/basics/3
Change the title above to describe your issue and add your feedback here, including code if necessary
hI
I did not understand the description export.Please provide more clear explanation
regards,ppp

@getpradeep9 it basically says that the language doesn't have something like:
public someMethod() {
  // ...
}

private someOtherMethod {
  // ...
}

In order to make something visible outside, you'll have to use a capital letter, as in:
SomeMethod() {
 // ...
 // SomeMethod can be seen from outside
}

someOtherMethod {
 // this one can't, it doesn't begin with a capital letter
}

Be careful. Export does not mean the same thing as public. Export is a module concept, while public is (usually) a class concept.

Sure. I changed the bug summary again... "clarify what "export" means"

This is a duplicate of #12005


Few pages are not displaying the values

I am facind weird issue with Puppet Board setup, I have setup this in two locations with same configuration but one is working like charm where as second is giving trouble in displaying few of the pages like Overview, Nodes, Radiateor, Catalog...etc
Please find below the configuration of my setup:
Puppet Server - puppetserver-2.4.0-1.el7.noarch - CentOS Linux release 7.2.1511 (Core)
Puppet DB - puppetdb-4.4.0-1.el7.noarch  - CentOS Linux release 7.3.1611 (Core)
Puppet Board - v0.3.0 - Installed on Puppet DB server
Attached the screen shots for more information, Can you please help me to fix the issue.

Hi mterzo,
Yes, it is showing the node info when I select "*" but I want the values should be displayed when I select "Production" environment as all my nodes are present in it. Is there any way?
If not, please let me know how to set the environment to "*" by default as work around. Thanks in advance.

So * is all environments. For some reason your other DC is not in the production environment.

Configuration of the ui is here.
https://github.com/voxpupuli/puppetboard/blob/master/README.rst#settings

I can see that both DCs are pointing to production environment, I don;t see any difference in the settings when I run "puppet config print --environment=production" on both the puppet servers and even on puppet.conf on client machines. Not sure what's wrong with the other DC's puppetboard.
For now, I have set the "DEFAULT_ENVIRONMENT = '*'" in setting.py file to list all the environments by default.
Thanks a lot for all your help.

Just to be clear you don't run puppet config that way.
mterzo@host:~$ puppet config print --environment=production environment
production
mterzo@host:~$ sudo puppet config print --environment=production environment
production
mterzo@host:~$ sudo puppet config print --environment=foo environment
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'foo' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist? (Puppet::Environments::EnvironmentNotFound)

Using --environment changes the what the saved configuration bit would be.
Also, if you have catalogs enabled.  You can on that section and look at one of the values by clicking on the catalog compile time.
You should see something like:
Package[python-matplotlib] | /etc/puppetlabs/code/environments/production/manifests/default.pp:28

I have checked "puppet config print environment" on puppet server, PuppetDB server and Puppet Client..all are pointing to Production environment.
Somehow Catalogs data is not copied to Puppet DB on new DC, but I can see the information in "inventory" page.  There, it is showing "agent_specified_environment = production" for all the nodes, that means they all are from "production" environment.
Can you please guide me the way to update the "Catalogs" info to PuppetDB.

What's the result of:
curl http://localhost:8080/pdb/query/v4/environments

Output is as below, it is showing "production" only
curl http://localhost:8080/pdb/query/v4/environments
[{"name":"production"}]

Hi mterzo,
Any other things I need to check? Please suggest

I'm having similar issues.  The reports tab is devoid of any reports, the Environments tab has only "production" in it and there's nothing else in the drop down to select.

Same problem and symptoms here. Changing the Environment to * in Puppetboard shows everything.
root@puppet:~# curl http://localhost:8080/pdb/query/v4/environments
[{"name":"production"}]

FWIW, this only started happening to me today after I upgraded my server from Puppet Collection 1 (PC1, which includes puppetdb 4.4, puppetserver 4.x) to puppet5 (puppetdb 5.2.2, puppetserver 5.3.1).
Maybe something changed in querying the puppetdb 5 API?

To wrap that up in a nice bow, I believe the problem is that I don't currently push puppet catalogs to puppetdb and Puppetboard is expecting catalog_environment to be set and match the puppet_environment. My catalog_environment is set to null on all of my nodes, so the queries to puppetdb never return any results.
I was able to resolve this by removing or commenting out the following lines of code in app.py:

On or near line 132, query.add(EqualsOperator('catalog_environment', env))
On or near line 223, query.add(EqualsOperator("catalog_environment", env))
On or near line 1001, query.add(EqualsOperator("catalog_environment", env))

I'm not sure if this change is agreeable to the project maintainers, so I'm hesitant to submit a PR. @mterzo , could you take a look, please?

This problem still exists, I am hit by it too. In some setups the environment set in various attributes does not match.
F.e. this is a result of nodes { certname = "my.fqdn.com" } query in one of my envs:
[
    {
        "cached_catalog_status": "not_used",
        "catalog_environment": "custom_env",
        "catalog_timestamp": "2022-02-05T12:21:21.890Z",
        "certname": "my.fqdn.com",
        "deactivated": null,
        "expired": null,
        "facts_environment": "production",
        "facts_timestamp": "2022-02-05T12:21:56.243Z",
        "latest_report_corrective_change": null,
        "latest_report_hash": "<hash>",
        "latest_report_job_id": null,
        "latest_report_noop": false,
        "latest_report_noop_pending": false,
        "latest_report_status": "changed",
        "report_environment": "custom_env",
        "report_timestamp": "2022-02-05T12:21:56.076Z"
    }
]

Because of that on a Node view I don't see the node's facts if I choose "custom_env" BUT I do see them if I stick to "*"...
I am just not sure if this is result of a valid puppet config and should be supported by Puppetboard OR if it's an invalid Puppet configuration that should be fixed...

What I mentioned in a comment above happens when you use "resubmit_facts" feature with Puppet 5.x, see https://tickets.puppetlabs.com/browse/PUP-9290.

Does anyone experience this with Puppet 6 or 7?


Ability to increase default seeding duration

By default I'd love to seed/host Dats that I connect to for longer than just when I visit.

@aaronshaf That's interesting, what might you pick as your default?

A day or a week. Something more ... altruistic. :-D
Another option would be to indefinitely seed/host such sites up to X mb of storage, etc

Yeah I think those are both neat ideas. We might group them under "seeding policies" or something like that. cc @taravancil

I think that the slider used for choosing how long you seed for should be there in the network settings.
So by default it'll be set to "while visitng", but you can go into the settings to change that.


Create custom fields that are computed based on referencing other data

Proposed Functionality
Read-only computed custom fields using existing data already stored in the database.  This will allow users to be able to build lightweight Jinja (or Python) templates to populate a read-only custom field value.
Use Case
As a user, I want to dynamically generate interface descriptions using device, neighboring device, circuit, or circuit ID.  All data already stored in Nautobot, I should be able to use Jinja templating, similar to custom links, to build that string thus simplifying the network configuration templates that are used to generate full configurations.  As a user, I should be able to auto-generate fields that are required by automation systems like Ansible, e.g. ansible_network_os being "{{ vendor }}.{{ os }}.{{ os }}".
Database Changes
Will require some sort of database record to define and store these templates. Probably a new model as the existing custom-fields model is not directly applicable.
External Dependencies
None.

Is there also a possibilty to add such functionality to interface templates?
For e.g. a stacked switch has 48 Ports that have a name that depends on chassis nr
Gi1/0/[1-48] for switch 1
Gi2/0/[1-48] for switch 2
so to define
Gi{% chassis_nr %}/0/[1-48]

@jifox Where would chassis_nr be defined in this example?  Proposing to use a custom field to define the number and then use that in the template?

@jedelman8 It should reference the Position field of Members to Virtual Chassis

@jedelman8 with a default value of 1

I'll take this one!

I think we should be good to close this one

Fixed by #577


[Feature Request] Add support to register the OTEL graphQL tracer to a mode.

Currently, you can pass different schemas through the config to register the tracer. However, it's not currently feasible to register the tracer to a specific mode. This feature can be very handy if you aim to have a high-performance mode without any tracing and a separate trace mode for troubleshooting. In GraphQL code, this functionality is achieved by using trace_with, where you specify both the tracer module and the mode. For example:
::GraphQL::Schema.trace_with(Tracers::GraphQLTrace, mode: :otel_trace_mode)

Cc: @rmosolgo

It certainly sounds good to me... the line above is taken straight from the instrumentation's source:
https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/a5648173c25576c4a2d5083958eb5ff0e7092d45/instrumentation/graphql/lib/opentelemetry/instrumentation/graphql/instrumentation.rb#L90
I think it's just a question of interface. Do you want to expose some kind of option that gets threaded through OpenTelementry and eventually passed there? Or, expose the trace module as a public API and invite users to attach it to their schema however they want?

@alexus37 is on holiday but I think we don't need the entire trace module at this point. Just having the option to configure a mode would be great.

@alexus37 is on holiday so I can't speak for him but I think we don't need access to the entire trace module API at this point. Just having the option to configure a mode would be great.

I would agree with this too :)

@alexus37 - What do you think about @rmosolgo's question above?
https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues/1126#issuecomment-2299774561

Do you want to expose some kind of option that gets threaded through OpenTelementry and eventually passed there?

I believe that if I could pass the mode parameter to take advantage of trace modes, it would definitely resolve my issue.


[BLAS:: SYCL-BLAS backend] Enable sycl blas routines

Description
This PR enables the following routines in the SYCL-BLAS backend: sbmv, tbmv, spmv, tpmv, tbsv, trsv and rotmg.
This patch depends on https://github.com/oneapi-src/oneMKL/pull/262 and https://github.com/oneapi-src/oneMKL/pull/264.
Checklist
All Submissions

[*] Do all unit tests pass locally? Logs: test_results.txt
Failing ones are due to requiring fp64 support: Intel(R) UHD Graphics 770 [0x4680] is not supported.

[*] Have you formatted the code using clang-format?

New features

[*] Have you provided motivation for adding a new feature?
[*] Have you added relevant tests?

Thanks @mkrainiuk.
@andrewtbarker could you please take a look at this PR here and let us know if we need to make any other changes?

Sorry for the late review. This looks fine to me, can you test the newly supported APIs on nvidia hardware to make sure that configuration is working before we merge?

No problem! Here are the test logs for the NVIDIA gpu,  NVIDIA_GPU_test_results.txt.
Thanks for your reviews, @mkrainiuk and @andrewtbarker.
We are planning to enable more SYCL-BLAS routines for the future. This will involve other PRs very similar to this, i.e., each changed line will add a routine. In this regard, we are wondering what could be an ideal PR size that could ease your reviewing tasks.
Do you prefer fewer PRs containing more routines, or more PRs containing fewer routines?

Do you prefer fewer PRs containing more routines, or more PRs containing fewer routines?

Speaking only for myself, for a PR like this I think it makes sense to include many routines in few PRs. I like to run the tests locally for confirmation and that will be easier to do this way.
If you were changing logic / algorithms it would be a different story, then smaller PRs would likely be better.

Do you prefer fewer PRs containing more routines, or more PRs containing fewer routines?

Speaking only for myself, for a PR like this I think it makes sense to include many routines in few PRs. I like to run the tests locally for confirmation and that will be easier to do this way.
If you were changing logic / algorithms it would be a different story, then smaller PRs would likely be better.

Same here, thanks!

Do you prefer fewer PRs containing more routines, or more PRs containing fewer routines?

Speaking only for myself, for a PR like this I think it makes sense to include many routines in few PRs. I like to run the tests locally for confirmation and that will be easier to do this way.
If you were changing logic / algorithms it would be a different story, then smaller PRs would likely be better.

Same here, thanks!

I was thinking the same. Thanks for your feedbacks, @mkrainiuk and @andrewtbarker.


TEST PULL REQUEST- DO NOT MERGE

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you created a JIRA and used it in the commit message?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same issue?
[ ] Have you built the project locally prior to submission with mvn clean install?

Can one of the admins verify this patch?

ok to test

ok to test


subtitle option "--all-subs --embed-subs --write-sub --write-auto-sub" causing HTTP 429 too many requests on YouTube.

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.02.04. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Maybe on other rate-limited sites too.
Set a delay or retry.
Verbose log
ERROR: Unable to download video subtitles for 'mg-zh-Hant': HTTP Error 429: Too Many Requests

use --sleep-subtitles
duplicate: https://github.com/yt-dlp/yt-dlp/issues/2212

Just found this option😅


Support for Obsidian Reminder Plugin

Is it possible to support/make a better experience when using Minimal and the Reminder plugin? I’m mostly talking about styling etc. It doesn’t really fit the rest of the beautiful theme, IMO.

I also use the reminder plugin. This is a duplicate posting. See #127
https://github.com/kepano/obsidian-minimal/issues/127
Also #147 https://github.com/kepano/obsidian-minimal/issues/147

Added in 5.2.7

Added in 5.2.7


Unable to run

After using bw_plex with docker, I decided to try just installing it on my Ubuntu machine instead of docker. I used the install script as per the docs, but when trying to run it, I received this error whenever trying to run bw_plex:
Traceback (most recent call last):
  File "/usr/local/bin/bw_plex", line 11, in <module>
    load_entry_point('bw-plex', 'console_scripts', 'bw_plex')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/bw_plex/src/bw-plex/bw_plex/__init__.py", line 8, in <module>
    from plexapi.compat import string_type
  File "/usr/local/lib/python2.7/dist-packages/plexapi/__init__.py", line 6, in <module>
    from plexapi.config import PlexConfig, reset_base_headers
  File "/usr/local/lib/python2.7/dist-packages/plexapi/config.py", line 4, in <module>
    from plexapi.compat import ConfigParser
  File "/usr/local/lib/python2.7/dist-packages/plexapi/compat.py", line 50, in <module>
    from mock import patch, MagicMock
ImportError: No module named mock

I then ran pip install mock, and now I'm getting this:
Traceback (most recent call last):
  File "/usr/local/bin/bw_plex", line 11, in <module>
    load_entry_point('bw-plex', 'console_scripts', 'bw_plex')()
  File "/opt/bw_plex/src/src/bw-plex/bw_plex/cli.py", line 21, in fake_main
    bw_plex.init(folder=default_folder, debug=debug, config=config)
  File "/opt/bw_plex/src/src/bw-plex/bw_plex/__init__.py", line 127, in init
    os.makedirs(DEFAULT_FOLDER, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

As far as I can gather, this error comes because python2 is used instead of python3. Here are my installed versions:
python -V
Python 2.7.16
python3 -V
Python 3.7.3

Got any ideas?

Your using python2. Try 🐍 3

How do I "use" python 3? I have both installed, and I'm just running bw_plex

I think you can call it manually.
python3 -m bw_plex watch

Closing this for inactivity.


Losing formatting/pivot table from loaded file

Finding that when I load an xlsx file that has a pivot table, with or without adding data, it is lost upon saving. Further, the font changes from white to black.
I've tried streaming and non-streaming - same result.

@akramhussein - I've just published 0.4.2, which I'm hoping will resolve this issue.
I'm not sure about the pivot tables, ExcelJS doesn't handle them explicitly but there was an issue with themes.
Could you check whether your issue has been resolved?

@guyonroche The xlsx is losing pivot table upon saving yet (using 0.4.4 version)

Is there any update on this, by any chance? :)

+1

+1 ... any update ?

any update

Any update for this?

Is this bug still present or am I doing something wrong?

@andrelung It's still present. Loading a spreadsheet from a file then saving it to file breaks the pivot table and all of its formatting.

Any updates here?

Any updates here? I want to read pivot table

Any update?

It would be great, if we could even only pass through a template with existing pivot tables and add / modify other worksheets.

Does anyone know a workaround for this issue?

Any update?

Is any one watching this library able and interested in adding support for Pivot Tables as a paid project?
The basic idea would be to allow pivot tables to be created anew and existing ones to be preserved.
An ideal deliverable might be an accepted pull request to this library with the above functionality and unit test.
Feel free to contact me directly to discuss.
I have some basic notes in this related issue. https://github.com/exceljs/exceljs/issues/1392#issuecomment-1538452788.  I think the big challenge is not so much the pivot table definitions but creating the cached content that is saved in the spreadsheet as cell values.  We can start with a small proof of concept example to test feasibility.


EF Core Update Error

I want to update a existing record by EntityFrameworkCore, but it throws error below:
fail: Microsoft.EntityFrameworkCore.DbContext[1]
      An exception occurred in the database while saving changes.
      Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
         at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException(Int32 commandIndex, Int32 expectedRowsAffected, Int32 rowsAffected)
         at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.<ConsumeResultSetWithoutPropagationAsync>d__6.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.<ConsumeAsync>d__2.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.<ExecuteAsync>d__32.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.<ExecuteAsync>d__10.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.<ExecuteAsync>d__6`2.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__54.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__52.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.DbContext.<SaveChangesAsync>d__35.MoveNext()
Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException(Int32 commandIndex, Int32 expectedRowsAffected, Int32 rowsAffected)
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.<ConsumeResultSetWithoutPropagationAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.<ConsumeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.<ExecuteAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.<ExecuteAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.<ExecuteAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__52.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.DbContext.<SaveChangesAsync>d__35.MoveNext()

Steps to reproduce
private static async Task InsertTestData(IServiceProvider serviceProvider)
        {
            //add users
            var users = GetUsers();
            await AddOrUpdateAsync(serviceProvider,u=>u.Id,users);
        }
        public static IEnumerable<ApplicationUser> GetUsers()
        {
            var users = new ApplicationUser[] {
                //new ApplicationUser{ Id="1", UserName="Tom" },
                //new ApplicationUser{ Id="2",UserName="Jim"},
                new ApplicationUser{ Id="3",UserName="Tony"}
            };
            return users;
        }

        private static async Task<IEnumerable<TEntity>> AddOrUpdateAsync<TEntity>(IServiceProvider serviceProvider,
            Func<TEntity,object> propertyToMatch, IEnumerable<TEntity> entities) where TEntity : class
        {
            //query existing data in a separate context, and then attach them as modified
            List<TEntity> existingData;
            using (var serviceScope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
            {
                var db = serviceScope.ServiceProvider.GetService<ApplicationDbContext>();
                existingData = db.Set<TEntity>().ToList();
            }
            var resultList = new List<TEntity>();
            using (var serviceScope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
            {
                var db = serviceScope.ServiceProvider.GetService<ApplicationDbContext>();
                foreach (TEntity item in entities)
                {
                    var state = existingData.Any(data => propertyToMatch(data).Equals(propertyToMatch(item))) ? EntityState.Modified : EntityState.Added;
                    if (state == EntityState.Added)
                    {
                        await db.Set<TEntity>().AddAsync(item);
                        resultList.Add(item);
                    }
                    else
                    {
                        db.Entry(item).State = state;
                        //db.Set<TEntity>().Update(item);
                        resultList.Add(item);
                    }
                }
                await db.SaveChangesAsync();
                return resultList;
            }
        }

ApplicationUser with Id=3 already exist, I want to update it with UserName.
Further technical details
IDE:VS2017

@Edward-Zhou If seems likely that this:
propertyToMatch(data).Equals(propertyToMatch(item)))

is returning true for entities that have not already been saved. This then causes them to be put into a Modified state, resulting in an UPDATE statement being sent to the database, but that update does not match an existing entity and hence the exception is thrown.

@ajcvickers Thanks.
I think it is not related with propertyToMatch(data).Equals(propertyToMatch(item))) which is used to check whether the entity already exists, if not, add, if exists, update.
And, I made a test with below code, this issue still exist.
        private static async Task<IEnumerable<TEntity>> AddOrUpdateAsync<TEntity>(IServiceProvider serviceProvider,
            Func<TEntity,object> propertyToMatch, IEnumerable<TEntity> entities) where TEntity : class
        {
            //query existing data in a separate context, and then attach them as modified
            List<TEntity> existingData;
            using (var serviceScope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
            {
                var db = serviceScope.ServiceProvider.GetService<ApplicationDbContext>();
                existingData = db.Set<TEntity>().ToList();
            }
            var resultList = new List<TEntity>();
            using (var serviceScope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
            {
                var db = serviceScope.ServiceProvider.GetService<ApplicationDbContext>();
                foreach (TEntity item in entities)
                {
                    db.Entry(item).State = EntityState.Modified;
                    //var state = existingData.Any(data => propertyToMatch(data).Equals(propertyToMatch(item))) ? EntityState.Modified : EntityState.Added;
                    //if (state == EntityState.Added)
                    //{
                    //    await db.Set<TEntity>().AddAsync(item);
                    //    resultList.Add(item);
                    //}
                    //else
                    //{
                    //    db.Entry(item).State = state;
                    //    //db.Set<TEntity>().Update(item);
                    //    resultList.Add(item);
                    //}
                }
                await db.SaveChangesAsync();
                return resultList;
            }
        }

@Edward-Zhou I am not able to reproduce this issue with the code you have posted. Could you try to post a full code listing or project that reproduces what you are seeing?

@ajcvickers
Sorry for late response.
For the project, please check https://github.com/Edward-Zhou/AngularWithCore.
Steps:Build and Run the Project.
This line   DbInitializer.Initialize(app.ApplicationServices).Wait(); will call the piece code.
If there is any problem, please let me know.

@Edward-Zhou Still can't get this to reproduce. Or at least, only in one case--with the code in this comment, which has the existingData check removed, it will fail if the database doesn't have the existing data, but this is expected. With the check back in the code correctly puts new objects into the Added state and existing objects into the Modified state.
Is there something special I need to do to try to get this to show the issue?

@ajcvickers
Please follow below steps to reproduce this issue.

Clone my project,
Run my project, if the database does not create, please run add migration and update database
3.After running project, it will run below code and insert new test record.
       private static async Task InsertTestData(IServiceProvider serviceProvider)      {          //add users          var users = GetUsers();          await AddOrUpdateAsync(serviceProvider,u=>u.Id,users);      }      public static IEnumerable<ApplicationUser> GetUsers()      {          var users = new ApplicationUser[] {              //new ApplicationUser{ Id="1", UserName="Tom" },              //new ApplicationUser{ Id="2",UserName="Jim"},              new ApplicationUser{ Id="3",UserName="Tony"}          };          return users;      }
4.Check whether Tony user with Id 3 exist in database
5.Change the above code to new user.
new ApplicationUser{ Id="3",UserName="Test"}
6.It will produce error which should update the Tony user to Test user.
7.If you did not get error, I assume it is related with async, and I suggest you check database whether the record is udpate.
If you still could not reproduce, please share me your steps.

@ajcvickers  Have you tried? await db.SaveChangesAsync(); this line save changes async. If there is any error in this step, will it break application?

@Edward-Zhou When you say, "If you did not get error" I assume you mean that there is some situation where you think (or even have seen) that the error doesn't happen. And when you say, "I assume it is related with async" I assume you mean that you think that if the error doesn't happen is is related in some way with async. Can you provide more details on what you mean by this? In what situations have you not seen or you think I may not see the error? And in what way are those situations related to async?
Basically, there is nothing obvious in the code you have posted that is wrong, and I have not been able to get it to fail on my machine. Would it be possible to trim things down to a console app where you are still seeing the error? That way we can eliminate some of the variables here and maybe both figure out why you are seeing the issue but I am not, and then also figure out what can be done to fix it.

Can you update the records with current code? I want to update the record if it exist, can you update it my current code?

@ajcvickers Could you reproduce this issue?

I was able to reproduce this issue. The error here is due to ApplicationUser.ConcurrencyStamp property.
ApplicationUser in identity uses ConcurrencyStamp of type Guid for concurrency. When creating new class it sets the value to NewGuid(). When you create new ApplicationUser like that and set its state to Modified EF Core does not have data about what was ConcurrencyStamp in database. Hence it will use whatever is the value set on the item (which will be NewGuid()) Since this value differ from value in database and it is used in where clause of update statement, exception is thrown that 0 rows modified when expected 1.
When updating entity with concurrency token you cannot create new object and send update directly. You must retrieve record from database (so that you have value of ConcurrencyStamp) then update the record and call SaveChanges. Since the ApplicationUser.ConcurrencyStamp is client side concurrency token you also need to generate a NewGuid() while updating the record. So it can update the value in database.
For more information on how to deal with ConcurrencyStamp in identity, look at code here https://github.com/aspnet/Identity/blob/f555a26b4a554f73eea70b4b34fca823fab9a643/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/UserStore.cs#L175
In above code user is database retrieved record which had some of the properties modified. It described precise way to update the record.
For general questions around how to work with client generated concurrency tokens, use stackoverflow.


There are typos in two of the scripts

In the "Ensure port 445 is open" script,
fileHost=$(echo $fileHost | tr -d "/")
points to itself - it should be echo $smbPath
In the "Use the mount command to mount the Azure file share" script,
smbPath=$(echo $httpEndpoint | cut -c7-$(expr length $httpEndpoint))$fileShare
references $fileShare, not $fileShareName

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

ID: 8d60d83f-0094-6c5e-e105-712c24bf1acc
Version Independent ID: 594af294-fd5d-a8c7-d456-6d753b7b62f8
Content: Use Azure Files with Linux
Content Source: articles/storage/files/storage-how-to-use-files-linux.md
Service: storage
Sub-service: files
GitHub Login: @roygara
Microsoft Alias: rogarana

@joshlcoffin Thanks for bringing this to our notice. We are investigating into the issue and will update you shortly.

@joshlcoffin Thanks for the question! Your feedback has been shared with the content owner for further review.


Use  to indicate keyboard input in README

Fixes the flow of the sentence "Command like TAB should indent
correctly." Previously, on GitHub, this read as "Commands like should
indent correctly."
On GitHub, <kbd> elements also look like keyboard keys.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brotzeit (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

thanks!


How do I create a custom preset for magick?

Is it possible to create a custom preset for magick.
Example:
{% img "example.jpg" magick:custom-preset1 %}
custom-preset1 should resize and crop an image

We don't support custom presets for Magick.  Please file a ticket with MiniMagick an see if they support it and if they do please let me know and I'll happily see if we can do it here and reopen.


[Material] An option for circular progress indicator on preloader and indicator to be multi-color

This is a (multiple allowed):

[ ] bug

[x] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: v1.4.2

Platform and Target: Cordova (Android)

What you did
Trying Modal Preloader and Indicator.
Expected Behavior

The loading text on preloader should be placed inline / aside with the circular progress indicator
Circular progress indicator should be multi-color (like what you guys did on progressbar)

Actual Behavior

The loading text is placed above the circular progress indicator
Circular progress indicator isn't colorful (or doesn't have option to enable / disable it)

Not quite sure if the author care enough about this, but I able to hack the preloader color by overriding the animation keyframes:
@keyframes preloader-left-rotate {
    0%,
    100% {
        border-left-color: #4285F4;
        transform: rotate(130deg);
    }
    75% {
        border-left-color: #1B9A59;
        border-top-color: #1B9A59;
    }
    50% {
        border-left-color: #F7C223;
        border-top-color: #F7C223;
        transform: rotate(-5deg);
    }
    25% {
        border-left-color: #DE3E35;
        border-top-color: #DE3E35;
    }
}

@keyframes preloader-right-rotate {
    0%,
    100% {
        border-right-color: #4285F4;
        transform: rotate(-130deg);
    }
    75% {
        border-right-color: #1B9A59;
        border-top-color: #1B9A59;
    }
    50% {
        border-right-color: #F7C223;
        border-top-color: #F7C223;
        transform: rotate(5deg);
    }
    25% {
        border-top-color: #DE3E35;
        border-right-color: #DE3E35;
    }
}

Well, it's better to add a new selector class (e.g: .preloader.colorful) and assign to a new animation rather than override the default animation directly, it will let you specify whether you want to the preloader to be colorful or not.

Hi, can you create a PR for this? https://help.github.com/articles/about-pull-requests/

yes please! :D

Oh sorry for previous message (I deleted it), I though you want to create pull request hahaha
I will try to create PR later


Difference in appearance across different machines.

Same version of Python, Tcl/Tk, tkinter, and OSX.

Seems not a significant problem for practical use, so closing this issue for now.


Tissue and Tissue System & Cell Cycle & Biomolecules

In This two Chapter is yours and you will the give data is correct or not . If the data is wrong change it.

error cleared


Difference in shading normal orientation between CPU and OpenCL

Originally reported by Sharlybg: http://forums.luxcorerender.org/viewtopic.php?f=5&p=21073#p21072
LuxCore version: v2.4alpha0
OS: Ubuntu 19.10
GPU: Nvidia RTX 2080
Scene: mix_mat_difference.zip
Steps to reproduce:

Render once on CPU, then switch the render slot (e.g. by pressing 2)
Switch to OpenCL, render again
The results will be different

Notes:

The scene contains materials that use Dot(shadingNormal, (0, 1, 0)) to texture parameters

When used on the diffuse color of a matte material, the result is the same on CPU and OpenCL
But when used as mix amount in a mix material, the result on OpenCL looks like (1, 0, 0) was used as second parameter of the dot product
Likewise, there is a difference when used in the glossycoating material

CPU, mix material amount:

OpenCL, mix material amount:

CPU, matte diffuse color:

OpenCL, matte diffuse color:

I should have fixed this problem.

Confirmed, thanks.


yy to system buffer

Yanking text within cell puts it in some non system buffer (xclip does not see it). It is very inconvinient

If you install jupyterlab-vimrc (https://github.com/ianhi/jupyterlab-vimrc#jupyterlab-vimrc) and going to that extensions settings and setting unnamedplus to true

I think it would be great if it was possible to include this part of jupyterlab-vimrc into jupyterlab-vim as part of the core extension

Actually, this could probably be close as a duplicate of https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/36.

Thanks for the clarification in https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/36 @firai. Could the title of this issue be updated to reflect that it is about changing the default clipboard register?

Since system clipboard access is now handled upstream in codemirror-vim, this issue might be more appropriate upstream as well


GOBBLIN-1177: Provide a config for overprovisioning Gobblin Yarn cont…

…ainers by a configurable amount
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1177

Description

[x] Here are some details about my PR, including screenshots (if applicable):
Over-provisioning config can be used to spin up a fleet of spare containers to allow Helix to reassign tasks to away from unhealthy containers (e.g. containers that experience persistent task failures due to N/W issues) to the potentially healthy spare containers.

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3023 into master will increase coverage by 4.23%.
The diff coverage is 25.00%.

@@             Coverage Diff              @@
##             master    #3023      +/-   ##
============================================
+ Coverage     41.47%   45.71%   +4.23%
- Complexity     8466     9291     +825
============================================
  Files          1951     1951
  Lines         74241    74244       +3
  Branches       8215     8215
============================================
+ Hits          30790    33938    +3148
+ Misses        40533    37132    -3401
- Partials       2918     3174     +256

Impacted Files
Coverage Δ
Complexity Δ

...rg/apache/gobblin/yarn/YarnAutoScalingManager.java
51.28% <25.00%> (-1.35%)
1.00 <0.00> (ø)

.../modules/scheduler/GobblinServiceJobScheduler.java
57.14% <0.00%> (-2.12%)
24.00% <0.00%> (-2.00%)

...e/gobblin/runtime/app/ServiceBasedAppLauncher.java
47.57% <0.00%> (-1.95%)
12.00% <0.00%> (ø%)

...in/java/org/apache/gobblin/cluster/HelixUtils.java
34.92% <0.00%> (ø)
14.00% <0.00%> (+1.00%)

...src/main/java/org/apache/gobblin/runtime/Task.java
67.26% <0.00%> (+0.22%)
84.00% <0.00%> (+1.00%)

.../org/apache/gobblin/runtime/SafeDatasetCommit.java
47.31% <0.00%> (+0.48%)
29.00% <0.00%> (ø%)

...ache/gobblin/cluster/GobblinHelixMultiManager.java
53.64% <0.00%> (+0.52%)
17.00% <0.00%> (+1.00%)

...main/java/org/apache/gobblin/util/ConfigUtils.java
58.86% <0.00%> (+0.63%)
41.00% <0.00%> (+1.00%)

...rg/apache/gobblin/runtime/AbstractJobLauncher.java
60.36% <0.00%> (+0.77%)
37.00% <0.00%> (+2.00%)

...ain/java/org/apache/gobblin/runtime/fork/Fork.java
75.00% <0.00%> (+0.83%)
68.00% <0.00%> (ø%)

... and 149 more

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 2747b8d...8be8181. Read the comment docs.


member accounts do not have access to audit log bucket

Describe the bug
Per the examples, member accounts are set up to reference the audit log bucket created for the master account. Subsequent terraform runs on these account work fine, but they trigger an Access Denied event in AWS for the audit log bucket. We use assumed roles for member account access, per AWS best practice recommendations, but those roles are not part of the audit log bucket access policy. Hence the access denied error.
This might be my misunderstanding, or it might be out of scope for this module. Is there a recommended JSON bucket policy to include in the master account configuration to allow access for member account roles?
Versions

Terraform: v1.1.5
Provider: v3.73.0
Module: 0.34.0

Reproduction

Set up master and member accounts per the examples in this repository, and then run terraform plan on any member account.
Expected behavior

No AWS Access Denied events when running terraform.
Actual behavior

Terraform runs without error but AWS triggers an Access Denied event, which in turn puts the Unauthorized API Calls alert into the alarm state.

@derylseale Sorry for the late reply 🙏🏼
I guess you need to set var.member_accounts for the master account module, which defaults to [].

I have set the var.member_accounts variable correctly, and I can see that the bucket policy allows access for the root users for those members. The issue is that we run terraform with a non-root user that assumes a privileged role for the member account, and that role does not have access to the bucket.
I can see two ways to remedy this:

Amend the bucket policy to allow access for the privileged roles. Will audit_log_bucket_custom_policy_json append to the generated bucket policy or overwrite it?
Generate a new role to allow access to the bucket, and attach it to the user who executes terraform.

Is either option preferable? Or is there another option that is better than these two?

Although upon further reflection, I am not sure option 2 would work. We assume a privileged role for the member account when executing terraform, and even if the user also had a role for accessing the bucket in the master account, I don't think that would be in play (i.e. the assumed role is the only one that is evaluated). I'll test it out, but I don't think it will work.

@derylseale Thanks for the additional explanation! I understand that you'd like to allow additional roles to access the audit log bucket, which was automatically created by secure-baseline module.
From the options you mentioned, I'd recommend Option 1. var.audit_log_bucket_custom_policy_json will be merged into the policy the module creates. Implementation-wise, it is passed as override_policy_documents argument to data.aws_iam_policy_document.audit_log (here is the actual code, just for reference). AWS provider document describes how merging multiple policy documents works.
Another option would be to use var.use_external_audit_log_bucket which tells the module not to create the audit log bucket. In this way, you can create the bucket however you want. external_bucket example describes this pattern.
Please let me know if you have any questions or concerns.

I was able to get this working using your suggestion of the audit_log_bucket_custom_policy_json attribute. It was a little tricky, so I thought I'd outline the steps I took below in case it helps someone in the future.

I added a cross_account_role attribute to the member-accounts structure. When using STS to assume a role, you have to use the unique role ID in the policy statement, because the token part is always different. (See step 2 below)

member-accounts = [
    {
      account_id         = "1234567890"
      email              =<EMAIL_ADDRESS>      cross_account_role = "AROABLAHBLAHBLAH"
    }
]

I then created a new aws_iam_policy_document data element for the new statement to merge into the bucket policy. Note that you must use a condition statement to restrict the authorized principals, because that is the only place that allows the wildcard necessary to reference the ever-changing STS token. The only S3 operation that was failing was GetBucketWebsite but there might be more that I have not yet encountered.

data "aws_iam_policy_document" "audit-bucket" {

  statement {
    sid    = "Allow Cross Account Role Access"
    effect = "Allow"
    principals {
      identifiers = ["*"]
      type        = "*"
    }
    actions   = ["s3:GetBucketWebsite"]
    resources = ["arn:aws:s3:::${local.audit_log_bucket_name}"]
    condition {
      test     = "StringLike"
      values   = [for m in var.member-accounts : "${m.cross_account_role}:*"]
      variable = "aws:userId"
    }
  }

}

Finally, I referenced the data element from step 2 in the secure_baseline module.

audit_log_bucket_custom_policy_json = data.aws_iam_policy_document.audit-bucket.json

This seems to have eliminated the spurious Access Denied errors I encountered. Any additional access necessary can always be added to the statement above. Thanks for your suggestion, glad to have this great module working perfectly for me now!

@derylseale Great to hear that it's working, and thanks for sharing the way you resolved it! 👍🏼


added new feature of email address suggestion(updated required changes suggested in the last pull request))

This feature will add some functionality to the log-in screen.It will suggest email addresses typed by the user earlier in his/her phone.So that user wont be typing it again.This will save some type from user perspective.
Apart from that it remembers the email id used by the user in his previous log-in.
updates Done
1)Removed extra object of Values class that was emailVal
2)removed old readnewprefs method and created new getters and setters for lastloginemailaddress
3)updated APP_PREFERENCE_NEWPREFS with new name of constant

You don't have to create a new pull request every time you push a new commit. If you go back to your previous PR, you can see that your latest commit was added to that PR. Once you send a PR from your branch to other, all commits added to that branch get added to that PR automatically.
However, a better practice would be to create a new pull request if your new commit is a corrective commit like this one.  This way, the commits with wrong variable names etc won't be merged into the main repo and thus, repo look cleaner.Look for 'git rebase' for squashing commits together.

Thanks for the advise @gitanshu .I will keep that in mind from the next time

@gitanshu That was a good suggestion :+1:
@arjunvijayvargiya Just one more little change and the PR is good to go.

Hi shivam,
My pull requested is updated now .I have removed the parameter username.I have removed the unnecessary variable username extract too .please see to it once.


OAE-Meetups with BigBlueButton

Updates for supporting the server module oae-meetups

Hi @jfederico,
I tried this and noticed that the "End meetup" feature (link below the activity block) is a static one that redirects to http://guest.oae.com/api/meetup/g:guest:.... Then I remembered I had already fixed it (at least partially) in commit https://github.com/brecke/3akai-ux/commit/74efe5a5c39faf8816a4ac78cebf0cb505c7bf3e
I assume you forgot to include it in this PR, so I'll ask you to include it and updated it, is that okay? I think a cherry-pick would work.

Hi Miguel,
Absolutely. I actually didn't check your 3akai repo. Only the Hilary one.
I'll try to have the PR clean by tomorrow.
Thanks,
JF
Jesus Federico
On Thu, May 18, 2017 at 9:01 AM, Miguel Laginha<EMAIL_ADDRESS>wrote:

Hi @jfederico https://github.com/jfederico,
I tried this and noticed that the "End meetup" feature (link below the
activity block) is a static one that redirects to
http://guest.oae.com/api/meetup/g:guest:.... Then I remembered I had
already fixed it (at least partially) in commit brecke/3akai-ux@74efe5a
https://github.com/brecke/3akai-ux/commit/74efe5a5c39faf8816a4ac78cebf0cb505c7bf3e
I assume you forgot to include it in this PR, so I'll ask you to include
it and updated it, is that okay? I think a cherry-pick would work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/oaeproject/3akai-ux/pull/4149#issuecomment-302396637,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjTN-yEcePC8HYa-UdZCD0Rcah6DCgvks5r7EEigaJpZM4NRID5
.

Done

Hi @jfederico
There were some conflicts so I merged them (couldn't do rebase because it would rewrite history for all who share the oae-meetups branch) and pushed again. If this works, it's ready to be merged.

Also, while trying to run this I realised one needs to change line 340 of group.js in order to remove err as the first parameter otherwise the page isn't rendered correctly. It should be changed to:
var setUpMeetupsMenu = function (lhNavPages, callback) {


Move the mouse using Python in a virtual machine [RESOLVED]

I need to create an automation that performs clicks and enters information into a virtual machine. I have access to a VM where I access via RDP which is where this project needs to be running, it is a server that is always on. However, when I run it and close the VM, it generates an error because it cannot find my mouse.
I've already tried using the PyAutoGUI and Pynput libraries... I believe that regardless of the library I use, it will generate the error of not finding the mouse and keyboard due to the fact that I have closed the VM application.
Any solution?

I put my project to execute and use a command in cmd inside the VM tscon rdp-tcp#0 /dest:console , after executing this command you will be disconnected, but the keyboard and mouse will work normally.
Check it out here: https://learn.microsoft.com/en-us/answers/questions/1086036/is-it-possible-to-have-a-virtual-mouse-or-keyboard
I tested with the PyAutoGUI library and was unsuccessful even using the method mentioned above. So, I needed to use the ahk library


Update for v21.10

Looks like this PR was never merged. Since 21.08 has been merged to main and branch-21.10 has been created, I think we can close this.


chore: update style exceptions

I'm happy to remove some style exceptions for you.

This commit is automatically generated by lake exe lint-style --update from #14757 and only contains "improvements": removing obsolete entries, or reducing file lengths when the file is at least 200 lines shorter than the previous exception.

Let me remove the "easy" tag: github makes the diff sufficiently non-obvious

bors merge


Moving to static layout and updating tests

I thought we were going to have an issue moving to the getLayout pattern (https://nextjs.org/docs/basic-features/layouts#per-page-layouts) because it removes the layout from the page that some of our page tests rely on.
Those tests can easily be fixed by wrapping the component in it's own getLayout call like this
https://github.com/garageScript/c0d3-app/blob/4d1cebcbdbfbdbb8134fd75ef9038372bc39623f/__tests__/pages/forgotpassword.test.js#L43
But I think it actually cleaner to leave the layout out of the snap shot as it really just adds a lot of noise to the screen shot when 90% of the time we a really just making sure the page matches some set of input props with the layout never changing.
So if we move forward with this move we could have one set of really nice tests for the layout component that just mocks next/router and makes sure all the route links work as expected and then a bunch of separate page snapshots without all the extra noise of the layout in each screen shot and then if there are any pages that need the layout for testing we can still wrap it like above.
Curious if anyone sees any issues of separating the layout from the page component that I might be missing?

I like it, was even wondering if some pages/components really need the whole layout to be tested like you said. Because of this some test failures are really hard to debug because of the huge snapshot that gets printed out.


Update prettier dependency

There's conflicting output between prettier 0.0.9 and 0.0.10

Closed for #28


[BUG] Error: Failed to parse Bard response

Describe the bug / 描述问题
Same as https://github.com/sunner/ChatALL/issues/213, but I can't reopen the issue some I'm opening a new one.
To Reproduce / 复现步骤
Use Bard
Expected behavior / 期望行为
Bard should work.
Screenshots / 截图
No response
Devtools Info / 开发者工具信息
Bot.js:198 Error send prompt to Bard: Error: Failed to parse Bard response
at l (BardBot.js:9:11)
at BardBot.js:83:33
sendPrompt @ Bot.js:198
OS and version / 操作系统版本
Kubuntu 23.04
ChatALL version / ChatALL 版本
v1.48.71
Network / 网络
No
Additional context / 其它相关信息
No response

Have you given the troubleshoots a try? https://github.com/sunner/ChatALL#troubleshooting


Change segment names from s1, s2 to frontend, backend for demo user.

Change segment names from s1, s2 to frontend, backend for demo user.

Looks fine. Merge it.


rasterize! throws error on 0-element Vector

Should a 0-element Vector simply be skipped when Rasterizing or is there good reason to return an error?
ERROR: BoundsError: attempt to access 0-element Vector{ArchGDAL.IGeometry{ArchGDAL.wkbMultiPolygon}} at index [1]

My fault... I was passing in an empty GeoDataFrame

For rasterize! or rasterize with a to, another option is to just return a Raster filled with missingval.

Yep that makes more sense


Plugin count comments although in the options it is indicated not to do it

Hi, it seems plugin count comments although in the options it is indicated not to do it

I've just experienced the same issue.

#61 was closed but seems like it is the seem recurrent issue.

Yes, I also see comments (wrapped by %% ... %%) are still being counted

I'm experiencing the same issue as of 2023-06-21. Hoping for a fix (plus a feature to exclude metadata in counting).

This has been fixed in v0.10.0

Thanks @mgmeyers... I guess would be important a feature to exclude metadata in counting too: there are very frequent cases in which you have to write texts with character limits and frontmatter should be excluded by default.

I confirm fix for comments. We should close this issue then.
If you need to exclude more things you can add details to https://github.com/lukeleppan/better-word-count/issues/84

I am still seeing this bug in 0.10.0.

Looks like this is still counting comments in the API. My counts via the API are different from the status bar. API seems to also count all frontmatter. A fresh note with frontmatter and comments should be a zero count.
---
front:
matter:
stuff:
---
%%
Comments
%%

I am using the getWordCountPagePath() method in dataviewjs.

V0.10.1
It's partial, maybe someone mixed up which "comments" are counted and omitted?
What works correctly in V0.10.1
<!---
HTML Comments
-->

What does not work as expected in V0.10.1
```
# Codeblock Comments
```

[comment]: <> (Markdown Comment, universally compatible)

[//]: <> (Markdown Comment, alternative.)

[//]: # (Markdown Comment, compact)


[BUG] Error: 9 FAILED_PRECONDITION: The requested snapshot version is too old.

Error: 9 FAILED_PRECONDITION: The requested snapshot version is too old.
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:330:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78
at processTicksAndRejections (internal/process/task_queues.js:77:11)

Closing because this doesn't follow the issue template. @bholendraofficial if you'd like help, please answer the questions in the issue template.


Unhandled error in response

The script worked fine on Windows 10, but I get this output after switching to Windows 11:
‼  WARNING  Following folk/s have unfollowed you recently.
× Fetching GitHub followers
C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\utils\cli.js:38
if (error.response.status === 404) {
^
TypeError: Cannot read properties of undefined (reading 'status')
at module.exports (C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\utils\cli.js:38:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async module.exports (C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\index.js:29:2)

Thanks for letting me know. I will fix it ASAP.

@eduardomecchia kindly take a look now.


fix(_upsertAttrs): upsert map attribute correctly

https://docs.tigergraph.com/tigergraph-server/current/api/upsert-rest


Gaussian Process Demo in 2D

It would be nice to extend the Gaussian processes demo notebook to include a 2D (imaging) example. I will work on this a bit if I have time.

Cool! I'd suggest you copy the taste test notebook and hack it to work with
a 2D image dataset instead of the existing 1D one - and you could just use
the sklearn implementation for simplicity. Keep us posted on your progress
via this thread!
PS. Are there any good sklearn image demos online? A good hack would be to
astronomize one of them... so its worth a few mins googling.

I think this is closed by @ixkael in #29!


Support 'Compute' for MeshImporter.color

MeshImporter.color=Compute forces constant to vertex and uses first color as vertex color if other methods fail

Holding this to merge until after preview1 has been released

Holding this to merge until after preview1 has been released

If possible, please merge this, as we have several use cases that currently require fragile workarounds. Thanks.

Doh, sorry to leave this hanging so long!

Hey @TimsLuxo, this new compute code path only gets hit when the mesh colors are broken or are uniform, right?
Are you actually just trying to add support for uniform colors?

Would be nice to kill the .gamma call (ultimate fix TBD) and perhaps refactor this to just be the default when we find uniform colors?

This is implemented in latest update to pull request.

I'm sincerely sorry for sitting on this for so long @TimsLuxo - I'm going to close this PR, since #261 refactors so much of the import code.
If you ever want to revisit this, ping me and I'll make it happen.


Change FMS fields to a single CPUID_1_EAX formatted field.

@kongoshuu Please reapprove. I had some lint fixes.


ConvertTo: downgrade 3.1 to 3.0

Hi! I tries to use this package to downgrade a 3.1 spec file to a 3.0 one. That result in success, but the file is still in 3.1.
I doing something wrong or this is not supported?
npx openapi-format openapi.yaml -o openapi3.json --convertTo "3"

==============================================================================
OpenAPI-Format CLI settings:
- Sort file:            (defaultSort.json)
- Input file:           openapi.yaml
- Output file:          openapi3.json
==============================================================================
✅  OpenAPI formatted successfully
==============================================================================

hi @gcacars
The expected usage was foreseen to only upgrade from 3.0 to 3.1, which explains the fixed version number of 3.1.
Is it ok for you that I investigate this further, and next extend the convertTo option to respect upgrading AND downgrading?

Yes, for sure @thim81.
The reason I need this is because I'm developing OpenAPI spec in version 3.1 as this allows me to distribute schemas across different files/Internet.
But many services and other tools like openapi-validator-middleware only work with specification version 3.0. :/