clipmon: init at unstable-2022-08-28

Description of changes
Under Wayland, an application itself is responsible for "serving" the current clipboard contents. As soon as that happens, clipmon claims the clipboard and copies the contents from the application[1].
As a result, clipboard contents are still available after closing the application where something was copied from.
Additionally, I implemented a small VM test to check the behavior when using Sway like this:

Open a terminal and write something to the clipboard using wl-copy -f. That way the clipboard is held by a sub-process of the terminal (which simulates a Ctrl-Shift-C in foot, not using -f would cause wl-copy to fork itself to keep the contents after closing the terminal which wouldn't happen when copying by e.g. mouse).
Ensure in a second terminal that the clipboard contents can be accessed.
Close both terminals. Without clipmon, the selection would be lost now.
Open another terminal and run wl-paste to ensure that the selection still exists (because of clipmon).

[1] https://git.sr.ht/~whynothugo/clipmon#design

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Closing because I get regularly bitten by https://todo.sr.ht/~whynothugo/clipmon/2 and I haven't figured out a way to fix this and this bug is unfortunately a deal-breaker for me.
If someone else wants to pick that up, feel free, but please remove me as maintainer first.


Freshen up Account methods

Issue #88

This has breaking changes. @Naliath can you confirm it looks good?

While we were braking things anyway I changed the sort thing to something more generic since it's now used for both tv and movie things

Awesome. :)


Scala 2.13 support with dependencies update

I can't create a PR in your archived repo. Will do it if you want to make a new release

@kovacshuni Your library is still useful and it would be great to have it for Scala 2.13 also. I would like to merge this into your repo (but I can't - it is currently archived). Is it possible for you to unarchive and release or you have abandoned this project?

I unarchived the repository, you can submit the PR. I'll merge and i'll try to do a Sonatype release then.
The idea behind archiving was that, looking back now as a full-time Scala developer, (then a learning hobby) it's not the best code, however even if it works, the libraries (as you've seen) start becoming outdated, old, other solutions are being used nowadays. Even OAuth 1.0a is not that popular. This is fixed on Future, I'm not seeing my Scala API that easy to use like I saw then.. and so on. And I didn't want to bother updating. Now we make for 2.13, but then 3 will be the standard so.. :)
But let it be then for 2.13.

Thank you very much for spending your time on this.
OAuth 1.0a is not that popular so the list of libraries is not that big: https://oauth.net/1/


Date-centered Test Sets (Rebalancing)

As of now, the CV is valuable, but to bring it closer to asset management as opposed to data science the rebalancing ordinarily doesn't occur in a number of days, but perhaps on the 15th of every month or every 4th Friday.
Expected behaviour:

##polars nomenclature
self.cv = WalkForwardDate(period=252, every="4w",  offset="-3d") ## This would run every 4th Friday.

##asset management nomenclature
self.cv = WalkForwardDate(lookback=252, rebalance="4w",  offset="-3d") ## This would run every 4th Friday.

Here I am taking inspiration from the group_by_dynamic from polars.
    df_signal_long.group_by_dynamic(
                index_column=date_col,
                every=every,
                period=f"{lookback}{every[-1]}" if isinstance(lookback, int) else lookback,
                by=entity_col,
                closed="left",
                label="left",
                offset="-3d",  # Offset by 3 days to end on Friday
                include_boundaries=False
            )

Yes also a good idea. It's related to https://github.com/skfolio/skfolio/discussions/41#discussioncomment-8889409
I'll list all arguments and features that I have in mind taking inspiration from that previous discussion and the polar implementation you mentioned


Pipenv reverting to Python2.7 when locking

Environment

pip version: 20.1.1
Python version: 3.7.7
OS: Kubuntu 18.04

Inside a pipenv. Running in either Pycharm or in terminal results in the same issue.
Description
Trying to add ruamel.yaml to my pipfile, results in failure of the lock step as pip starts using Python 2.7 at some point during the process. I have tried adding the requirement to the pipfile and running pipenv install as well as just pipenv install ruamel.yaml or pipenv install ruamel-yaml.
I can install ruamel.yaml fine with pip install ruamel.yaml, but I cannot add it to my piplock.
Expected behavior
I expect to generate a pip lock file, but cannot with this specific dependency for some reason.
How to Reproduce

Make a new project, generate a pipfile.
Add 'pytest' to the pipfile, or install it manually like below.
Run pip install ruamel.yaml which will try to generate the piplock.
That fails, saying it is trying to use python 2.7

Output
(brain-brew) jmo@Depth:~/Development/brain-brew$ python -V
Python 3.7.7
(brain-brew) jmo@Depth:~/Development/brain-brew$ pipenv run python -V
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Python 3.7.7

(brain-brew) jmo@Depth:~/Development/brain-brew$ pipenv install ruamel.yaml
Installing ruamel.yaml...
✔ Installation Succeeded
Pipfile.lock (c44c5c) out of date, updating to (b36b8e)...
Locking [dev-packages] dependencies...
✘ Locking Failed!
Traceback (most recent call last):
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 126, in <module>
    main()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 119, in main
    parsed.requirements_dir, parsed.packages)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 85, in _main
    requirements_dir=requirements_dir,
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 69, in resolve
    req_dir=requirements_dir
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
    req_dir=req_dir,
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
    resolved_tree = resolver.resolve()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 385, in resolve
    results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies
    results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs
    results = resolver._resolve_one(reqset, ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 274, in _resolve_one
    self.requires_python = check_dist_requires_python(dist, absorb=False)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/utils/packaging.py", line 62, in check_dist_requires_python
    '.'.join(map(str, sys.version_info[:3])),)
pipenv.patched.notpip._internal.exceptions.UnsupportedPythonVersion: pytest requires Python '>=3.5' but the running Python is 2.7.17
File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 126, in <module>
    main()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 119, in main
    parsed.requirements_dir, parsed.packages)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 85, in _main
    requirements_dir=requirements_dir,
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 69, in resolve
    req_dir=requirements_dir
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
    req_dir=req_dir,
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
    resolved_tree = resolver.resolve()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/utils.py", line 385, in resolve
    results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies
    results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs
    results = resolver._resolve_one(reqset, ireq)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 274, in _resolve_one
    self.requires_python = check_dist_requires_python(dist, absorb=False)
  File "/home/jmo/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/utils/packaging.py", line 62, in check_dist_requires_python
    '.'.join(map(str, sys.version_info[:3])),)
pipenv.patched.notpip._internal.exceptions.UnsupportedPythonVersion: pytest requires Python '>=3.5' but the running Python is 2.7.17

Please run $ pipenv --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting.
$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/jmo/.local/lib/python2.7/site-packages/pipenv'
Python location: '/usr/bin/python'
Python installations found:

3.7.7: /home/jmo/.pyenv/versions/3.7.7/bin/python3.7m
3.8.3: /usr/bin/python3.8
3.7.7: /usr/bin/python3.7
3.6.9: /usr/bin/python3.6
3.7.7: /home/jmo/.pyenv/versions/3.7.7/bin/python
3.6.9: /usr/bin/python3.6m
3.7.7: /usr/bin/python3.7m
2.7.17: /usr/bin/python2
3.7.7: /home/jmo/.local/share/virtualenvs/brain-brew-hOrYNHNI/bin/python

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.3.0-53-generic',
 'platform_system': 'Linux',
 'platform_version': '#47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020',
 'python_full_version': '2.7.17',
 'python_version': '2.7',
 'sys_platform': 'linux2'}

System environment variables:

SNAP_LIBRARY_PATH
KDE_SESSION_VERSION
SNAP_CONTEXT
LESSOPEN
XCURSOR_SIZE
TERMINAL_EMULATOR
XDG_SESSION_TYPE
LOGNAME
USER
PATH
XDG_VTNR
HOME
PS1
PAM_KWALLET_LOGIN
PYENV_VIRTUALENV_INIT
SNAP_ARCH
KDE_FULL_SESSION
LANG
SNAP_REVISION
VIRTUAL_ENV
SHELL
XDG_SESSION_PATH
XAUTHORITY
PYENV_SHELL
GPG_AGENT_INFO
XDG_DATA_DIRS
GS_LIB
MANDATORY_PATH
SNAP_DATA
DISPLAY
QT_ACCESSIBILITY
BAMF_DESKTOP_FILE_HINT
SNAP_USER_DATA
PYTHONFINDER_IGNORE_UNSUPPORTED
SSH_AGENT_PID
XDG_SESSION_CLASS
SNAP_VERSION
XDG_SESSION_DESKTOP
XDG_CONFIG_DIRS
KDE_SESSION_UID
XDG_RUNTIME_DIR
SNAP_USER_COMMON
SNAP_COOKIE
SSH_AUTH_SOCK
XCURSOR_THEME
TERM
SNAP_INSTANCE_KEY
PAM_KWALLET5_LOGIN
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
SNAP_NAME
XDG_SEAT_PATH
SNAP_REEXEC
SNAP_INSTANCE_NAME
XDG_CURRENT_DESKTOP
XDG_SESSION_ID
DBUS_SESSION_BUS_ADDRESS
_
DESKTOP_SESSION
SNAP_COMMON
LESSCLOSE
DEFAULTS_PATH
PIP_DISABLE_PIP_VERSION_CHECK
OLDPWD
SESSION_MANAGER
LANGUAGE
SHLVL
PWD
DESKTOP_STARTUP_ID
QT_AUTO_SCREEN_SCALE_FACTOR
PIP_SHIMS_BASE_MODULE
SNAP
LS_COLORS
XDG_SEAT

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/jmo/.local/share/virtualenvs/brain-brew-hOrYNHNI/bin:/home/jmo/.pyenv/plugins/pyenv-virtualenv/shims:/home/jmo/.pyenv/shims:~/.pyenv/bin:/home/jmo/.cargo/bin:/home/jmo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL: /bin/bash
LANG: en_GB.UTF-8
PWD: /home/jmo/Development/brain-brew
VIRTUAL_ENV: /home/jmo/.local/share/virtualenvs/brain-brew-hOrYNHNI

Contents of Pipfile ('/home/jmo/Development/brain-brew/Pipfile'):
[[source]]
name = "Brain Brew"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "==5.4.1"

[packages]
args = "==0.1.0"
clint = "==0.5.1"
coverage = "==4.5.4"
PyYAML = "==5.1.2"
ruamel-yaml = "*"

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/home/jmo/Development/brain-brew/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "a1fdf18fb74ab9ec7c5d2e956b782058ac37275e59250e5067bf531a4bc44c5c"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "Brain Brew",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "args": {
            "hashes": [
                "sha256:a785b8d837625e9b61c39108532d95b85274acd679693b71ebb5156848fcf814"
            ],
            "index": "Brain Brew",
            "version": "==0.1.0"
        },
        "clint": {
            "hashes": [
                "sha256:05224c32b1075563d0b16d0015faaf9da43aa214e4a2140e51f08789e7a4c5aa"
            ],
            "index": "Brain Brew",
            "version": "==0.5.1"
        },
        "coverage": {
            "hashes": [
                "sha256:08907593569fe59baca0bf152c43f3863201efb6113ecb38ce7e97ce339805a6",
                "sha256:0be0f1ed45fc0c185cfd4ecc19a1d6532d72f86a2bac9de7e24541febad72650",
                "sha256:141f08ed3c4b1847015e2cd62ec06d35e67a3ac185c26f7635f4406b90afa9c5",
                "sha256:19e4df788a0581238e9390c85a7a09af39c7b539b29f25c89209e6c3e371270d",
                "sha256:23cc09ed395b03424d1ae30dcc292615c1372bfba7141eb85e11e50efaa6b351",
                "sha256:245388cda02af78276b479f299bbf3783ef0a6a6273037d7c60dc73b8d8d7755",
                "sha256:331cb5115673a20fb131dadd22f5bcaf7677ef758741312bee4937d71a14b2ef",
                "sha256:386e2e4090f0bc5df274e720105c342263423e77ee8826002dcffe0c9533dbca",
                "sha256:3a794ce50daee01c74a494919d5ebdc23d58873747fa0e288318728533a3e1ca",
                "sha256:60851187677b24c6085248f0a0b9b98d49cba7ecc7ec60ba6b9d2e5574ac1ee9",
                "sha256:63a9a5fc43b58735f65ed63d2cf43508f462dc49857da70b8980ad78d41d52fc",
                "sha256:6b62544bb68106e3f00b21c8930e83e584fdca005d4fffd29bb39fb3ffa03cb5",
                "sha256:6ba744056423ef8d450cf627289166da65903885272055fb4b5e113137cfa14f",
                "sha256:7494b0b0274c5072bddbfd5b4a6c6f18fbbe1ab1d22a41e99cd2d00c8f96ecfe",
                "sha256:826f32b9547c8091679ff292a82aca9c7b9650f9fda3e2ca6bf2ac905b7ce888",
                "sha256:93715dffbcd0678057f947f496484e906bf9509f5c1c38fc9ba3922893cda5f5",
                "sha256:9a334d6c83dfeadae576b4d633a71620d40d1c379129d587faa42ee3e2a85cce",
                "sha256:af7ed8a8aa6957aac47b4268631fa1df984643f07ef00acd374e456364b373f5",
                "sha256:bf0a7aed7f5521c7ca67febd57db473af4762b9622254291fbcbb8cd0ba5e33e",
                "sha256:bf1ef9eb901113a9805287e090452c05547578eaab1b62e4ad456fcc049a9b7e",
                "sha256:c0afd27bc0e307a1ffc04ca5ec010a290e49e3afbe841c5cafc5c5a80ecd81c9",
                "sha256:dd579709a87092c6dbee09d1b7cfa81831040705ffa12a1b248935274aee0437",
                "sha256:df6712284b2e44a065097846488f66840445eb987eb81b3cc6e4149e7b6982e1",
                "sha256:e07d9f1a23e9e93ab5c62902833bf3e4b1f65502927379148b6622686223125c",
                "sha256:e2ede7c1d45e65e209d6093b762e98e8318ddeff95317d07a27a2140b80cfd24",
                "sha256:e4ef9c164eb55123c62411f5936b5c2e521b12356037b6e1c2617cef45523d47",
                "sha256:eca2b7343524e7ba246cab8ff00cab47a2d6d54ada3b02772e908a45675722e2",
                "sha256:eee64c616adeff7db37cc37da4180a3a5b6177f5c46b187894e633f088fb5b28",
                "sha256:ef824cad1f980d27f26166f86856efe11eff9912c4fed97d3804820d43fa550c",
                "sha256:efc89291bd5a08855829a3c522df16d856455297cf35ae827a37edac45f466a7",
                "sha256:fa964bae817babece5aa2e8c1af841bebb6d0b9add8e637548809d040443fee0",
                "sha256:ff37757e068ae606659c28c3bd0d923f9d29a85de79bf25b2b34b148473b5025"
            ],
            "index": "Brain Brew",
            "version": "==4.5.4"
        },
        "pyyaml": {
            "hashes": [
                "sha256:0113bc0ec2ad727182326b61326afa3d1d8280ae1122493553fd6f4397f33df9",
                "sha256:01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4",
                "sha256:5124373960b0b3f4aa7df1707e63e9f109b5263eca5976c66e08b1c552d4eaf8",
                "sha256:5ca4f10adbddae56d824b2c09668e91219bb178a1eee1faa56af6f99f11bf696",
                "sha256:7907be34ffa3c5a32b60b95f4d95ea25361c951383a894fec31be7252b2b6f34",
                "sha256:7ec9b2a4ed5cad025c2278a1e6a19c011c80a3caaac804fd2d329e9cc2c287c9",
                "sha256:87ae4c829bb25b9fe99cf71fbb2140c448f534e24c998cc60f39ae4f94396a73",
                "sha256:9de9919becc9cc2ff03637872a440195ac4241c80536632fffeb6a1e25a74299",
                "sha256:a5a85b10e450c66b49f98846937e8cfca1db3127a9d5d1e31ca45c3d0bef4c5b",
                "sha256:b0997827b4f6a7c286c01c5f60384d218dca4ed7d9efa945c3e1aa623d5709ae",
                "sha256:b631ef96d3222e62861443cc89d6563ba3eeb816eeb96b2629345ab795e53681",
                "sha256:bf47c0607522fdbca6c9e817a6e81b08491de50f3766a7a0e6a5be7905961b41",
                "sha256:f81025eddd0327c7d4cfe9b62cf33190e1e736cc6e97502b3ec425f574b3e7a8"
            ],
            "index": "Brain Brew",
            "version": "==5.1.2"
        },
        "ruamel-yaml": {
            "hashes": [
                "sha256:0962fd7999e064c4865f96fb1e23079075f4a2a14849bcdc5cdba53a24f9759b"
            ],
            "index": "Brain Brew",
            "version": "==0.16.10"
        },
        "ruamel.yaml.clib": {
            "hashes": [
                "sha256:1e77424825caba5553bbade750cec2277ef130647d685c2b38f68bc03453bac6",
                "sha256:392b7c371312abf27fb549ec2d5e0092f7ef6e6c9f767bfb13e83cb903aca0fd",
                "sha256:4d55386129291b96483edcb93b381470f7cd69f97585829b048a3d758d31210a",
                "sha256:550168c02d8de52ee58c3d8a8193d5a8a9491a5e7b2462d27ac5bf63717574c9",
                "sha256:57933a6986a3036257ad7bf283529e7c19c2810ff24c86f4a0cfeb49d2099919",
                "sha256:615b0396a7fad02d1f9a0dcf9f01202bf9caefee6265198f252c865f4227fcc6",
                "sha256:77556a7aa190be9a2bd83b7ee075d3df5f3c5016d395613671487e79b082d784",
                "sha256:7aee724e1ff424757b5bd8f6c5bbdb033a570b2b4683b17ace4dbe61a99a657b",
                "sha256:8073c8b92b06b572e4057b583c3d01674ceaf32167801fe545a087d7a1e8bf52",
                "sha256:9c6d040d0396c28d3eaaa6cb20152cb3b2f15adf35a0304f4f40a3cf9f1d2448",
                "sha256:a0ff786d2a7dbe55f9544b3f6ebbcc495d7e730df92a08434604f6f470b899c5",
                "sha256:b1b7fcee6aedcdc7e62c3a73f238b3d080c7ba6650cd808bce8d7761ec484070",
                "sha256:b66832ea8077d9b3f6e311c4a53d06273db5dc2db6e8a908550f3c14d67e718c",
                "sha256:be018933c2f4ee7de55e7bd7d0d801b3dfb09d21dad0cce8a97995fd3e44be30",
                "sha256:d0d3ac228c9bbab08134b4004d748cf9f8743504875b3603b3afbb97e3472947",
                "sha256:d10e9dd744cf85c219bf747c75194b624cc7a94f0c80ead624b06bfa9f61d3bc",
                "sha256:ea4362548ee0cbc266949d8a441238d9ad3600ca9910c3fe4e82ee3a50706973",
                "sha256:ed5b3698a2bb241b7f5cbbe277eaa7fe48b07a58784fba4f75224fd066d253ad",
                "sha256:f9dcc1ae73f36e8059589b601e8e4776b9976effd76c21ad6a855a74318efd6e"
            ],
            "markers": "platform_python_implementation == 'CPython' and python_version < '3.9'",
            "version": "==0.2.0"
        }
    },
    "develop": {
        "attrs": {
            "hashes": [
                "sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c",
                "sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"
            ],
            "version": "==19.3.0"
        },
        "importlib-metadata": {
            "hashes": [
                "sha256:0505dd08068cfec00f53a74a0ad927676d7757da81b7436a6eefe4c7cf75c545",
                "sha256:15ec6c0fd909e893e3a08b3a7c76ecb149122fb14b7efe1199ddd4c7c57ea958"
            ],
            "markers": "python_version < '3.8'",
            "version": "==1.6.1"
        },
        "more-itertools": {
            "hashes": [
                "sha256:558bb897a2232f5e4f8e2399089e35aecb746e1f9191b6584a151647e89267be",
                "sha256:7818f596b1e87be009031c7653d01acc46ed422e6656b394b0f765ce66ed4982"
            ],
            "version": "==8.3.0"
        },
        "packaging": {
            "hashes": [
                "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8",
                "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181"
            ],
            "version": "==20.4"
        },
        "pluggy": {
            "hashes": [
                "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0",
                "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"
            ],
            "version": "==0.13.1"
        },
        "py": {
            "hashes": [
                "sha256:5e27081401262157467ad6e7f851b7aa402c5852dbcb3dae06768434de5752aa",
                "sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0"
            ],
            "version": "==1.8.1"
        },
        "pyparsing": {
            "hashes": [
                "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1",
                "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"
            ],
            "version": "==2.4.7"
        },
        "pytest": {
            "hashes": [
                "sha256:0e5b30f5cb04e887b91b1ee519fa3d89049595f428c1db76e73bd7f17b09b172",
                "sha256:84dde37075b8805f3d1f392cc47e38a0e59518fb46a431cfdaf7cf1ce805f970"
            ],
            "index": "Brain Brew",
            "version": "==5.4.1"
        },
        "six": {
            "hashes": [
                "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259",
                "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"
            ],
            "version": "==1.15.0"
        },
        "wcwidth": {
            "hashes": [
                "sha256:980fbf4f3c196c0f329cdcd1e84c554d6a211f18e252e525a0cf4223154a41d6",
                "sha256:edbc2b718b4db6cdf393eefe3a420183947d6aa312505ce6754516f458ff8830"
            ],
            "version": "==0.2.3"
        },
        "zipp": {
            "hashes": [
                "sha256:aa36550ff0c0b7ef7fa639055d797116ee891440eac1a56f378e2d3179e0320b",
                "sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96"
            ],
            "version": "==3.1.0"
        }
    }
}

Looking at those details of the support call, I can see Pipenv location: '/home/jmo/.local/lib/python2.7/site-packages/pipenv', but I have no idea why that would be or how to fix it.

Does this issue still exist on the master branch? @ohare93


A page should only contain one h1

Thank you for the theme!
I noticed that the site name and blog post titles oth use <h1> tags. For SEO reasons, a page should only ever contain one <h1>. There can be multiple <h2> tags present on a page, however, with no negative SEO implications.

@chaddjohnson Multiple <h1> tags should no longer have negative impact on search engine results when using HTML5.
More information is available at:

Google Webmasters answer by Matt Cutts
Tuts+ article by Kezz Bracey
Stack Overflow question

Ah, good to know. Those are pretty old articles, and I have seen mixed things in articles online. As long as nothing's changed in Google's algorithms related to this since 2012, I guess we're fine!


Bump desugar_jdk_libs version to 1.2.2

We can update this one now, after we upgraded AGP to 7.3

What a wacky chain of events. I appreciate that you've stayed on top of it...this would be easy to miss.


[pytket-qiskit] Conversion of qiskit circuit to pytket circuit with non-real angles

It is possible to construct a circuit in qiskit which can be successfully converted with qiskit_to_tk to a pytket circuit, but where the pytket circuit contains invalid data. The following script (bad.py) illustrates this:
from qiskit.opflow import PauliTrotterEvolution
from qiskit.opflow.primitive_ops import PauliSumOp
from pytket.extensions.qiskit import qiskit_to_tk
from pytket.passes import DecomposeBoxes

op = PauliSumOp.from_list([("Z", 1j)])
evolved_op = op.exp_i()
evolution_circ = PauliTrotterEvolution(reps=1).convert(evolved_op).to_circuit()

tk_circ = qiskit_to_tk(evolution_circ)

DecomposeBoxes().apply(tk_circ)

cmds = tk_circ.get_commands()
assert len(cmds) == 1
op = cmds[0].op

print(op.type)
print(op.params)

Output:
OpType.Rz
Traceback (most recent call last):
  File "bad.py", line 19, in <module>
    print(op.params)
RuntimeError: Not Implemented

Any thoughts on this @cqc-alec ? What is weird is that in the former case, when the return of get_commands() is assigned to a variable, there is no runtime error.

The Not Implemented just means that there was an invalid (non-real) parameter in the operation. TKET is correct to raise an error here (though the error message could be more helpful). The problem is that an exception should have been thrown earlier: I think it shouldn't be possible to construct such a circuit. i.e. qiskit_to_tk should have failed.

Because it's not physically meaningful: U3(a,b,c) is non-unitary unless we restrict a, b and c to real values. So we should not accept them as valid parameters.

Sure, but none of the parameters from the qiskit U3 are complex when passed to qiskit_to_tk.

Here is the output of the same script above where I print evolution_circ in two cases where the parameter is 1j and 1 respectively. In both cases, the circuit parameters are identical but somehow there is an error thrown from pytket when it is complex. It returns the right value otherwise.
❯ python bad.py
evolution circ
    ┌──────────────┐
q: ┤ exp(-i Z)(1) ├
   └──────────────┘
circ params [(Instruction(name='exp(-i Z)', num_qubits=1, num_clbits=0, params=[1.0]), [Qubit(QuantumRegister(1, 'q'), 0)], [])]
<tket::Circuit, qubits=1, gates=1>
[CircBox q[0];]
<class 'list'>
OpType.Rz
Traceback (most recent call last):
  File "/Users/roland/Desktop/Projects/Tket/tket-sdk/pytket/pytket-extensions/modules/pytket-qiskit/bad.py", line 30, in <module>
    print(op.params)
RuntimeError: Not Implemented
❯ python bad.py
evolution circ
    ┌──────────────┐
q: ┤ exp(-i Z)(1) ├
   └──────────────┘
circ params [(Instruction(name='exp(-i Z)', num_qubits=1, num_clbits=0, params=[1.0]), [Qubit(QuantumRegister(1, 'q'), 0)], [])]
<tket::Circuit, qubits=1, gates=1>
[CircBox q[0];]
<class 'list'>
OpType.Rz
[1.0]

I don't think there is any difference in what is printed there; need to dekve further into how the operations are expanded.
Anyway, the bottom line is that qiskit_to_tk should reject this non-physical circuit.


Setup nextjs OT application

Why
As described in the ADR, we want to develop server side features for Open Truss. This requires us to update the structure of this project to be fullstack.
How
I initially spiked out a middleware implementation of OT, but that ran into issues. I then made a spike where ot is a full nextjs app, but that also ran into issues.
This PR tries an approach where OT has a full nextjs app, but we silo OT specific functionality into specific directories. e.g. src/pages/ot. Then we have a script that copies all the ot directories into user applications. I imagine there will be some massaging that needs to happen after instal to get this to work for apps, but I believe applications can be refactored to make this simple. Additionally, we can set this up to where it is mostly automated for apps that follow standard nextjs (or frameworks) conventions.
The easiest way to review this PR is commit by commit starting with this https://github.com/open-truss/open-truss/commit/00df75b4870b238e372c063161fd69f097582b0c and reading the comments along the way. The first commit is a development Readme and should provide a good overview of how the project is setup.
Next steps

@open-truss/engineers your feedback is requested.
If this approach seems reasonable, I would like to merge this PR and continue spiking this out in a follow up PR. I want to try to get this setup in GitHub and see what other hurdles I run into.

@jonmagic great questions!

I'm unclear what this PR solves right now
My thinking was that the demo-app could be an example that users look to for inspiration on how to install and integrate our packages into their applications.

This solves the problem where we need to build server side features for OT (e.g. config service, query engine, workflows, etc). We should make those all individual libraries in OT, but it would be even easier if OT also had control over entire APIs and pages to make the integration smoother.
We would have to build those anyway for our app, so might as well do that in an open source way. e.g. for your uqi work, you could build a uqi Rest / Graphql API in the OT nextjs app and that can be copied over to the nextjs app we have. That's more reusable than implementing it in our app.
I view this as similar to how Rails approaches things. You install the gem and generate some code. Ours does the same. The main difference is our generated code is outputted in "user space" whereas rails is in the vendor code, but it's still the same concept.

I'm concerned that scripting away the installation of the integration of the open-truss package and the applications that use it will be very difficult to maintain. For example, every time a new version of create-next-app is released we'll have to update packages/open-truss/nextjs and if we support installation into multiple frameworks we'll have to manually update all of those as well.

I think that is something to keep track of, but I feel pretty confident we can keep our footprint relatively small. Much of this code can be libraries in OT and the platform specific bits (e.g. nextjs) are just wrappers. Every page for example is an OT page so most the view code should be in the components library and not in the app. And if we make the server side configurable too, then the same applies. And I'm not too worried about maintaining multiple frameworks. We'll maintain the one we care about and if others want to maintain a separate one they are more than welcome to.

I apologize if I missed something in my haze 🤒

:heart:

I'm still not completely sold on the approach but I went ahead and applied my last requested changes and am approving so I can merge

Totally fine 👍. Let's keep playing around with it and if nothing else we'll learn a lot. Anything we build that we want to bring over can be easily copied. FWIW though, I'm feeling pretty optimistic about this approach but we'll see how it goes. :)


added support to install nfs ganesha

ceph-ansible to install nfs-ganesha.

jenkins test this please

test this please

@rakeshgm sorry this is 'rh' branch issue, i didn't realize you raised again that branch, I will fix that but please raise this against master, for now I will cherry pick. thanks


Add static landscape modal

Clicking the static landscape link in the header should launch a modal that covers almost the whole screen and displays https://raw.githubusercontent.com/cncf/landscape/master/landscape/CloudNativeLandscape_latest.png
Click the l key for landscape should bring up and dismiss this modal.

Kamino closed and cloned this issue to cncf/landscape


Instantiate the debug sender inside connect()

This doesn't build with clang-16, but does with gcc-12. Is there any reason conceptually we shouldn't be able to check the actual vs expected completions within connect?

This doesn't build with clang-16, but does with gcc-12. Is there any reason conceptually we shouldn't be able to check the actual vs expected completions within connect?

I can't think of a reason why this would be problematic in principle.

/ok to test

/ok to test


feat: add ResponsiveOptions type helper, add generic type to Svg#getNode method

Codecov Report

Merging #1347 (b58426c) into main (4f4bb29) will not change coverage.
The diff coverage is 100.00%.

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


Blog post: JabRef & WinEdt

For a release in about one week (not to have to many posts in a short time).

:+1:
We should always push each blog post through the mailing list.

PRs should go into gh-pages. I fixed it here locally.
Site note: blog posts with a future date will be published at the future date and not earlier. - See http://www.fizerkhan.com/blog/posts/Working-with-upcoming-posts-in-Jekyll.html

@koppor It looks like the publication at future date does not work...

It works - but not as expected:
The page has to built after the future date of the post - and this does not happen automatically.
I just edited another post, and after this change your WinEdt also appears automatically.
@koppor Is there a way to force a jekyll built here at GitHub without pushing a commit to the repo? I found none... Apart from this "hack"

@matthiasgeiger Thanks!

@matthiasgeiger I haven't been testing whether GitHub is smart enough to publish blog posts when they are ready. Seems, that GitHub isn't. There is no other possibility to trigger a build. A git push -f also works.
@mlep Sorry, I missed to write something, maybe you can do?
I still have on my agenda to change the URL of the blog to http://blog.jabref.org. This makes the maintainance on my side much more easy.


Improve tests

[x] tests and linter show no problems (npm t)
[x] tests are added/updated for bug fixes and new features
[x] code is properly formatted (npm run fmt)
[ ] description of changes is added in CHANGELOG.md
[ ] update .d.ts typings

Landed in https://github.com/tshemsedinov/wasm-import/commit/b782ff3382d27b43a339e373ffdc1bcaf07a83cd, https://github.com/tshemsedinov/wasm-import/commit/6f4d3019b69c42bf175f2e7b4b35d58b267dae24, https://github.com/tshemsedinov/wasm-import/commit/8069ece132a3a9db7697f5bf0bbfef8173e4571b, and https://github.com/tshemsedinov/wasm-import/commit/cbd6ff8490a7e182e1947b8e63e6deeef8ea60f1


Make drupal 7 and drupal 8 settings distinct, recover settings[hash_salt], fixes #647

The Problem/Issue/Bug:
Drupal8-specific config values got lost in the appmatrix refactor, we need to get them back. The most obvious was the loss of $settings["hash_salt"]
How this PR Solves The Problem:

Splits the d7 and d8 config sections.
Uses the right one for the detected apptype
Removes IsDrupal8 from the config struct

I'm not happy with the very, very not-DRY way we're doing Drupal and Backdrop settings creation. Loads of code and it's all repeated. However, it's what we've decided to go with for now, and this just does it again.  Maybe sometime when we're feeling more pure we can fiddle with it and clean it up.
Manual Testing Instructions:

Do a ddev import-db on a d7 and d8 site, and verify the settings.local.php that gets created.

Related Issue Link(s):
OP #647
Release/Deployment notes:

Updating reviewers.
@rfay Regarding the need to consolidate code on the database credential file management. I think we're going to hit this this relatively soon with the potential splitting up of TYPO3 v8 and v9  (maybe). Should we file a follow-up issue or is the LOE less than a day and therefore worth tackling now versus later?

Any TYPO3 work should be completely unrelated to this ticket, which affects only d7/d8.
Also, we're just learning here about TYPO3 and haven't even quite stabilized with v8, so it's better to get v8 fully working and then add v9. Especially since those with even modest TYPO3 skill can already do what they need to do with v9.

@rfay I agree the scope of this is related to D7/D8 and not TYPO3. I was more focused on the comment that suggested refactoring and consolidating the code for existing CMS support, which would also help if/when additional CMS's are added OR we have additional distinctions between versions.
Let's proceed as per the PR for now, but you bring up an excellent point/concern that warrants a follow-up issue (if it doesn't already exist).


Add tests for ZookeeperDynamicConfiguration

What is the purpose of the change
Add tests for ZookeeperDynamicConfiguration (#7823)
Related issue: #7823

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #7825 (b40b610) into master (e3a0e29) will decrease coverage by 0.24%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #7825      +/-   ##
============================================
- Coverage     59.40%   59.16%   -0.25%
+ Complexity      557      555       -2
============================================
  Files          1086     1086
  Lines         43813    43766      -47
  Branches       6393     6360      -33
============================================
- Hits          26029    25894     -135
- Misses        14904    14998      +94
+ Partials       2880     2874       -6

Impacted Files
Coverage Δ
Complexity Δ

...a/org/apache/dubbo/rpc/filter/AccessLogFilter.java
28.35% <0.00%> (-50.75%)
0.00% <0.00%> (ø%)

...va/org/apache/dubbo/rpc/support/AccessLogData.java
53.16% <0.00%> (-37.98%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-34.49%)
0.00% <0.00%> (ø%)

...rg/apache/dubbo/remoting/utils/PayloadDropper.java
76.92% <0.00%> (-15.39%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/WrappedChannelHandler.java
43.47% <0.00%> (-15.22%)
0.00% <0.00%> (ø%)

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
0.00% <0.00%> (ø%)

...in/java/org/apache/dubbo/common/utils/JVMUtil.java
81.13% <0.00%> (-11.33%)
0.00% <0.00%> (ø%)

...che/dubbo/remoting/transport/mina/MinaChannel.java
35.52% <0.00%> (-10.53%)
14.00% <0.00%> (-1.00%)

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
0.00% <0.00%> (ø%)

.../dubbo/remoting/transport/netty4/NettyChannel.java
57.42% <0.00%> (-6.94%)
0.00% <0.00%> (ø%)

... and 42 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 e3a0e29...b40b610. Read the comment docs.


Configurable "splitters" instead of fixed _

How complex would it be to support other indicators for nested structs like e.g. __ or something configurable? From quickly looking over the code it seems like changing the Node structure and a few functions could be it? Would it be something that fits the goal of the project?
We have a system to target that exports with __ because it keeps the single _ for snake_cased field names.

Seems a good idea to me, would you like to submit a PR for this?


02 03 2023  as incident host exposure level

Change(s):

New playbook

Reason for Change(s):

New playbook

Testing Completed:

Yes

Hi @rahul0216, @manishkumar1991,
Can you please review and share your thoughts on it.
Thanks

@rahul0216 First two items have been addressed. Here is a screen shot of a successful run on a test deployment. First two failures were before we figured out the microsoft sentinel contributor role was needed for the managed identity to be able to add comments to incidents. Nothing in the logic app was changed between the failed and successful runs- only the contributor role was added.


Carousel: Add text to image link

The carousel image is a link, but it only contained an image. This PR adds visually hidden text for screen readers.
Additions

Add text to image link in carousel.

How to test this PR

Pull branch and run site and generate a lighthouse report for the homepage. It should not flag the carousel image link.

Is this better than having the two adjacent links with redundant text? How do screen readers currently read the link around the image?

Looks good, @anselmbradford.
@Scotchester currently the desktop Lighthouse tests generate an error:

Links do not have a discernible name: Link text (and alternate text for images, when used as links) that is discernible, unique, and focusable improves the navigation experience for screen reader users. Learn more.

This PR fixes that error.

I understand that, but my question is whether fixing that error actually improves the user experience, or in fact makes it worse :)

@Scotchester Looks like I have the goldfish memory this time 😛 https://github.com/cfpb/consumerfinance.gov/pull/5433#issuecomment-571799667
So what we have is essentially "Failure Example 4" on https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/H2, except we don't have two directly adjacent links, as one is in a div. I still think having the duplicate links labelled is the best we can do since the image link is focusable, so having it labeled describes what's there, which is two links next to each other. I suppose we could make the label "Image: Access our resources" or something to have it differentiated from the text link next to it? What do you think about that?

Heh, yeah. Again, I think we should do the work to combine these into a single <a> element, but as I said in the prior discussions, this is a small improvement over the current situation.
In this case, at least in VoiceOver, when you tab over to the link, it reads the final segment of the href, so in this example:

it reads "link: bureau taking action build more inclusive financial system", and I agree it's better to use the same text as the link instead, to make it more clear that the two links go to the same place.

@Scotchester Yeah let me know if you see a way to combine them, but since they aren't directly adjacent links in the markup I don't see an easy way without much hackery.
Just to confirm, do you think having at a link label on the image, but prefixing it with "Image: , is the best path forward for this PR and improves on what's there?

@Scotchester Yeah let me know if you see a way to combine them, but since they aren't directly adjacent links in the markup I don't see an easy way without much hackery.

I'll try to find time to take a look at it.

Just to confirm, do you think having at a link label on the image, but prefixing it with "Image: , is the best path forward for this PR and improves on what's there?

No, I think the PR is fine as is. Calling out the fact that it's an image doesn't seem any more helpful.


Do not throw when channel not set

When channel is not set any TrackFoo operation throws unhandled exception.
Exception thrown here:
https://github.com/Microsoft/ApplicationInsights-dotnet/blob/1ccd5b466451db1884b242b6a58b3e9401a1fbcf/src/Core/Managed/Shared/Extensibility/Implementation/TransmissionProcessor.cs#L43
Exception is unhandled:
https://github.com/Microsoft/ApplicationInsights-dotnet/blob/e0c93977e9aa05616ecc22c5b11ef39f8cb4587f/src/Core/Managed/Shared/TelemetryClient.cs#L310
Need to:

Set channel to default.
Make sure TrackFoo doesn't throw non-system (like OutOfMemory) exceptions.

They may have created TelemetryConfiguration using constructor instead of CreateDefault. You do not want to put initialization logic in there. Do you have more info on that?

@SergeyKanzhelev Do you agree that we should close the issue or do you propose to initialize channel if TelemetryConfiguration is created using constructor (and not CreateDefault)?

Alternatively we can make it on "Track"


Bumped egui version to 0.23

Bumped the egui version to 0.23. Pretty simple change, just required wrapping one argument in Some(). Works well for me on Windows in the egui demo project. Let me know if there's any more tests you'd like to see! <3

Ah, just saw that this was migrated to egui_winit some time ago - not sure how I missed that 🤣 I'll use that instead. Feel free to close.

This project has not been migrated. It'm still maintaining it for people who use and and want to provide updates.
I will release a new version at the end of the week.


Refactor and improve model estimator tool

What does this PR do?
This PR, while on the surface changes no values, will work towards improving the estimator tool by allowing us to explicitly state the various types of memory one could expect.
Specifically we can now differentiate on the four memory workloads during training:

Model + Optimizer
Gradients
Backward pass
Optimizer step

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@SunMarc

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


[test] Test Utility to redirect noisy output #98

Fixes #98

@atb00ker @nemesisdesign please review it again

Coverage remained the same at 99.756% when pulling dfb9c326bf48e68e91c708bfe7c14393aceec267 on devkapilbansal:issues/98 into eff2770b9acff446b5317e9653f44a180054d21a on openwisp:master.

Coverage remained the same at 99.756% when pulling dfb9c326bf48e68e91c708bfe7c14393aceec267 on devkapilbansal:issues/98 into eff2770b9acff446b5317e9653f44a180054d21a on openwisp:master.

@atb00ker @nemesisdesign please review it. If it's fine I will wrote the documentation part

You can proceed with documentation with the work. :smile:

Travis tests have failed
Hey @devkapilbansal,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
SUCCESS: Migration name check on "./tests/test_project/migrations" with migrations-to-ignore: 0 successful!
Skipped 1 files
SUCCESS: Isort check successful!
--- openwisp_utils/tests.py	2020-11-08 08:43:16.568208 +0000
+++ openwisp_utils/tests.py	2020-11-08 08:43:43.039115 +0000
@@ -78,11 +78,11 @@
     def get_resultclass(self):
         return TimeLoggingTestResult

 class RedirectOutput(object):
-    def __call__(self,function):
+    def __call__(self, function):
         def wrapped_function(*args, **kwargs):

             if self.stdout:
                 sys.stdout = self.stdout

@@ -115,10 +115,11 @@
                 finally:
                     self.stdout.close()
                     self.stderr.close()
                     sys.stdout = sys.__stdout__
                     sys.stderr = sys.__stderr__
+
         return wrapped_function

 class redirect_stdout(RedirectOutput):
     def __init__(self, stdout, **kwargs):
would reformat openwisp_utils/tests.py
Oh no! 💥 💔 💥
1 file would be reformatted, 46 files would be left unchanged.
ERROR: Black check failed! Hint: did you forget running openwisp-qa-format?
./openwisp_utils/tests.py:83:22: E231 missing whitespace after ','
ERROR: Flake8 check failed!
SUCCESS: ReStructuredText check successful!
SUCCESS: Commit message check successful!
No changes detected
SUCCESS: Migrations check successful!

TravisBuddy Request Identifier: 8a97b6c0-219e-11eb-a04c-b76cbd6ddda3

Travis tests have failed
Hey @devkapilbansal,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
SUCCESS: Migration name check on "./tests/test_project/migrations" with migrations-to-ignore: 0 successful!
Skipped 1 files
SUCCESS: Isort check successful!
--- openwisp_utils/tests.py	2020-11-08 08:56:59.784104 +0000
+++ openwisp_utils/tests.py	2020-11-08 08:57:25.832230 +0000
@@ -78,11 +78,11 @@
     def get_resultclass(self):
         return TimeLoggingTestResult

 class RedirectOutput(object):
-    def __call__(self,function):
+    def __call__(self, function):
         def wrapped_function(*args, **kwargs):

             if self.stdout:
                 sys.stdout = self.stdout

@@ -115,10 +115,11 @@
                 finally:
                     self.stdout.close()
                     self.stderr.close()
                     sys.stdout = sys.__stdout__
                     sys.stderr = sys.__stderr__
+
         return wrapped_function

 class redirect_stdout(RedirectOutput):
     def __init__(self, stdout, **kwargs):
would reformat openwisp_utils/tests.py
Oh no! 💥 💔 💥
1 file would be reformatted, 46 files would be left unchanged.
ERROR: Black check failed! Hint: did you forget running openwisp-qa-format?
./openwisp_utils/tests.py:83:22: E231 missing whitespace after ','
ERROR: Flake8 check failed!
SUCCESS: ReStructuredText check successful!
SUCCESS: Commit message check successful!
No changes detected
SUCCESS: Migrations check successful!

TravisBuddy Request Identifier: c61793d0-21a0-11eb-a04c-b76cbd6ddda3

Travis tests have failed
Hey @devkapilbansal,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
6th Build
View build log

     ./run-qa-checks

SUCCESS: Blank endline check successful!
SUCCESS: Migration name check on "./tests/test_project/migrations" with migrations-to-ignore: 0 successful!
Skipped 1 files
SUCCESS: Isort check successful!
All done! ✨ 🍰 ✨
47 files would be left unchanged.
SUCCESS: Black check successful!
SUCCESS: Flake8 check successful!
There are some Errors in your RST file syntax

- <string>:490: (WARNING/2) Title underline too short.
-
- ``openwisp_utils.tests.redirect_any_output``
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ERROR: ReStructuredText check failed!
SUCCESS: Commit message check successful!
No changes detected
SUCCESS: Migrations check successful!
travis_time:end:1e2ed47c:start=1604827223678971129,finish=1604827227119761391,duration=3440790262,event=script

TravisBuddy Request Identifier: 1ab9cef0-21a4-11eb-a04c-b76cbd6ddda3

Hi, @atb00ker @nemesisdesign I use decorator to decorate some more function but getting assertion error
When the function is like the following it works fine
    @redirect_stdout()
    def test_print_color(self, captured_output):
        print_color('This is the printed in Red Bold', color_name='red_bold')
        expected = '\033[31;1mThis is the printed in Red Bold\033[0m\n'
        self.assertEqual(captured_output.getvalue(), expected)
        with captured_stdout() as stdout:
            print_color('This is the printed in Red Bold', color_name='red_bold', end='')
        expected = '\033[31;1mThis is the printed in Red Bold\033[0m'
        self.assertEqual(stdout.getvalue(), expected)
        with captured_stdout() as stdout:
            print_color('This is the printed in Red Bold', color_name='invalid')
        expected = '\033[0mThis is the printed in Red Bold\033[0m\n'
        self.assertEqual(stdout.getvalue(), expected)

But when I change it the test fails.
    @redirect_stdout()
    def test_print_color(self, captured_output):
        print_color('This is the printed in Red Bold', color_name='red_bold')
        expected = '\033[31;1mThis is the printed in Red Bold\033[0m\n'
        self.assertEqual(captured_output.getvalue(), expected)
        print_color('This is the printed in Red Bold', color_name='red_bold', end='')
        expected = '\033[31;1mThis is the printed in Red Bold\033[0m'
        self.assertEqual(captured_output.getvalue(), expected)
        print_color('This is the printed in Red Bold', color_name='invalid')
        expected = '\033[0mThis is the printed in Red Bold\033[0m\n'
        self.assertEqual(captured_output.getvalue(), expected)

Great progress! @devkapilbansal
I don't see tests for stderr and any_output which assert on the captured output, I think we must ensure assertions are present to ensure the functionality will not be broken inadvertently by future maintenance.
I also left more comments to improve it further.

I include tests for any_output but don't see a place where stderr can be used. Should I include a test function myself? :thinking:


Add Element.GetSize()

Hi @sclevine,
Another function that can be useful: retrieving the width and height of an element.
Thanks for your great job.

Thanks!


Compile time exceptions

Trying to apply this preset in different forms and it throws different errors.
The configuration which works:
const modernize = [
    path.resolve(preset, './plugins/transform-umd-to-cjs'),
    // Currently disabled, causes problems with non-CJS files:
    // cjs && path.resolve(preset, './plugins/transform-cjs-to-esm'),
    [path.resolve(preset, './plugins/transform-arguments'), { loose }],
    // path.resolve(preset, './plugins/transform-destructuring'),
    // path.resolve(preset, './plugins/transform-classes'),
    // path.resolve(preset, './plugins/transform-methods'),
    // too broken:
    // path.resolve(preset, './plugins/transform-mangle-identifiers'), // the only one disabled before
    path.resolve(preset, './plugins/transform-fallbacks'),
    // path.resolve(preset, './plugins/transform-iife-arrows'),
    path.resolve(preset, './plugins/transform-implicit-scope'),
    path.resolve(preset, './plugins/transform-array-spread'),
    // path.resolve(preset, './plugins/transform-template-literals'),
    // path.resolve(preset, './plugins/transform-optimize-webpack'),
    // path.resolve(preset, './plugins/transform-remove-polyfills'),
    // module && path.resolve(preset, './plugins/transform-implicit-strict')
  ].filter(Boolean);

Trying to compile on "result bundles" results in not very replicable errors (firstly in remove-polyfills), so I've ended applying this preset via webpack loader per every file. Just a few caused an error.

<EMAIL_ADDRESS>- react-router-dom/esm/react-router-dom.js
<EMAIL_ADDRESS>- react-redux/es/connect/selectorFactory.js
<EMAIL_ADDRESS>- connected-react-router/esm/selectors.js

TypeError: react-router-dom/esm/react-router-dom.js: Cannot read property 'arguments' of undefined
    at visitParam (babel-preset-modernize/dist/plugins/transform-destructuring/index.js:232:34)

<EMAIL_ADDRESS>
/lodash-es/_cloneBuffer.js: Cannot read property 'node' of undefined
    at isValidRefPath (node_modules/babel-preset-modernize/dist/plugins/transform-destructuring/index.js:163:45)

<EMAIL_ADDRESS>
core-js/library/modules/es6.array.from.js: Cannot read property 'end' of undefined
    at NodePath.getSource (@babel/traverse/lib/path/introspection.js:145:12)
    at isOptionalParamCheck (babel-preset-modernize/dist/plugins/transform-classes/index.js:1:10755)

<EMAIL_ADDRESS>
react-helmet-async/lib/index.js: You passed `path.replaceWith()` a falsy node, use `path.remove()` instead
    at NodePath.replaceWith (/Users/akorzunov/dev/Z/arnica/urge/the-urge-reactjs/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/replacement.js:115:11)
    at PluginPass.Identifier (/Users/akorzunov/dev/Z/arnica/urge/the-urge-reactjs/node_modules/babel-preset-modernize/dist/plugins/transform-classes/index.js:1:12633)

interesting failure found at<EMAIL_ADDRESS>the code
// Exit early if we're not running in a browser.
if (typeof window !== 'object') {
  return;
}

caused an error
Module parse failed: 'return' outside of function (12:2)
You may need an appropriate loader to handle this file type.
|  */
| if (false) {
>   return;
| }

After fixing all problems (removing plugins causing errors and changing some scripts) 28kb were removed from a total 1.5mb bundle. Size comparison can be found at https://gist.github.com/theKashey/45050f6fc341e0e324ac4fbee46a5c72

Thanks for doing such a thorough investigation @theKashey!
FWIW the preset is less effective when applied per-module because it can't apply cross-module knowledge when removing polyfills or helper functions. It does produce useless error stacks though, that's for sure.
The early exit issue is actually just because you're applying this to a non-module file - switching Babel-loader's options to include sourceType:'unambiguous' would fix that.
I'll try to look into the per-library errors you uncovered. Rough edges like these are why I sat on this code for so long :P


Remove emphasis line entry

Remove emphasis line in jsx code block

Guess code-block element is needed here.


Add eleventy-plugin-lazyimages to list of plugins

I created eleventy-plugin-lazyimages - a plugin that adds progressive lazy loading to images in 11ty HTML output.
This PR adds a link to the plugin on the Plugins page.

Thanks!


Additional conditions

Desc:
Added new conditions that I personally would use.
HasPermission
Checks if the target (player) has a permission node
Example: ?HasPermission{permission=essentials.god}
OnGround
A simple condition that checks if the target is standing on solid ground, or a solid specified block.
Example: ?OnGround{}
On a specific block(s) example: ?OnGround{blocks=DIRT,STONE,GRAVEL}
MythicMobsFaction - Requires mythic mobs
Checks if the target entity is of a provided faction
Example: ?MythicMobsFaction{faction=monsters}

Requested changes implemented! Removed unnecessary conditions and improved the code.


fix uniquify strings function so that it does not return duplicates

Coverage increased (+4.5%) to 97.826% when pulling c7f34cc871ca69bea734af2c693e637c42fe693a on orourkedd:master into d48aa4355f942e79e1a4ac2bd08c5c46371b78ca on gernest:master.


Curve editor is not moving points in the correct plane

When I'm editing a curve for a Path, I have the interface set to top view Orthogonal I expect that moving the points on a curve around, the points should only move in the X and Z direction, the Y should remain constant.
After moving things around I can see the curve is now all over the place, it has changed the Y coordinates. Didn't use to do this :)
Godot 3.1 master commit 68676c774d4f3b7bfad8866a08546acf5a594cdf

I tried to reproduce this but I couldn't. I added a Path node and moved points around while in top orthogonal view but they all ended in the same plane, any idea on what can be going on?
I suspect it may be related to #20584 but I'm not sure.

I'm getting this too. More detailed steps to reproduce:
0: Create path with 2 points.
1: Viewing the path from the side, move one of the points up high along the vertical axis
2: Move viewport camera to the top, looking down. Move the both points a small amount.
3: See that both points are now very close by, the second point has been moved a lot along the vertical axis.
It seems like whenever you move a point, it moves it to be the same distance from the camera as the path's center is.

It was my fault indeed, I'll open a PR fixing this in a bit.


Unable to resolve module Dimensions from

Hello,
I get the following warning in the packager:
Unable to resolve module Dimensions from .... dist.js

Any idea how to fix that? Everything is working correctly, just the message in the packager.
Regards

Upvote! :+1:
Sent from my iPhone

On Jul 29, 2015, at 21:58, Philipp Krone<EMAIL_ADDRESS>wrote:
Hello,
I get the following warning in the packager:
Unable to resolve module Dimensions from .... dist.js
Any idea how to fix that? Everything is working correctly, just the message in the packager.
Regards
—
Reply to this email directly or view it on GitHub.

:+1:

I still get this error with the current version, is someone updating the npm for this module?

@leecade I'm getting this error as well...

@leecade I'm getting this error as well

I'm getting this error as well

Same, getting this error in .../dist/index.js

I'm experiencing the same issue. The full message is:
Unable to resolve module Dimensions from /Users/user/MyApp/node_modules/react-native-swiper/dist/index.js: Invalid directory /Users/node_modules/Dimensions
As far as I can tell the issue is that it's looking in wrong directory for Dimensions module (two levels above what it should be).

I'm getting this error too, similar to what @viktors described. Xcode can't build after adding this library and example code.

same error,
this needs to get fixed asap

Hi,
you can fix it by changing the following in dist/indexjs:
from:
var _Dimensions = require('Dimensions');

var _Dimensions2 = _interopRequireDefault(_Dimensions);

var _Dimensions$get = _Dimensions2['default'].get('window');

to
var React = require('react-native');
var {
  Dimensions
} = React;
var {width, height} = Dimensions.get('window');

Thanks so much @PhilippKrone !

Did that, now I'm getting Can't find variable: _Dimensions$get

https://github.com/leecade/react-native-swiper/pull/64

fixed


add Merhaba

Add Merhaba Bonjour networking library.
Project URL
https://github.com/abdullahselek/Merhaba
Description
Add Merhaba Bonjour networking for discovery and connection between iOS devices.
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

Hey @abdullahselek, thanks for contributing. Please fix the issue above


fix typo in help message

Pull request summary
Brief description:
fix typo in help message
At a glance:

[x] This is a minor change
[x] Changes are backwards-compatible
[ ] Changes are urgent

Added features:

None

Changes to existing features:

None

Bugfixes:

None

Testing checklist:

[x] Codebase compiles with current tsconfig configuration
[ ] Deployed and tested changes on public server

Thanks!


Throwing unexpected error inside sneaker background job.

Hi. @pyromaniac . I've been in trouble using chewy in background job and found it difficult to trace the error.
Originally my sneaker job is:
class NiceOrderNotifyJob
  include SneakersPacker::CommonWorker
  from_queue "nice.pay_notify"

  def call(data)
    params = data.symbolize_keys
    logger.info " sneaker receive data is #{params}"
    # https://github.com/toptal/chewy/issues/419
    Chewy.strategy(:atomic) do
      Billing.receive_billing(params)
    end
    logger.info " billing is created!"
  end

end

The method Billing.receive_billing will update some related indexed models.
The method inside will also call RestClient to send a post request to another host. (which I guessed is causing this issue.)

I got this error in PROD:
2016-09-17T23:45:46Z p-24635 t-13en9k ERROR:
 [worker-nice.pay_notify:1:ijglmr][#<Thread:0x00000007e3e890>][nice.pay_notify][#<Sneakers::Configuration:0x00000007e3e610>]
 unexpected error [Exception error="can't create Thread: Resource temporarily unavailable" error_class=ThreadError backtrace=/home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/timeout.rb:81:in `start',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/timeout.rb:81:in `block in timeout',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/timeout.rb:101:in `timeout',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/http.rb:878:in `connect',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/http.rb:863:in `do_start',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/http.rb:852:in `start',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/http.rb:1398:in `request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/rest-client-1.6.9/lib/restclient/net_http_ext.rb:51:in `request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/newrelic_rpm-<IP_ADDRESS>0/lib/new_relic/agent/instrumentation/net.rb:27:in `block (2 levels) in request_with_newrelic_trace',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/newrelic_rpm-<IP_ADDRESS>0/lib/new_relic/agent.rb:428:in `disable_all_tracing',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/newrelic_rpm-<IP_ADDRESS>0/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/newrelic_rpm-<IP_ADDRESS>0/lib/new_relic/agent/cross_app_tracing.rb:48:in `tl_trace_http_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/newrelic_rpm-<IP_ADDRESS>0/lib/new_relic/agent/instrumentation/net.rb:23:in `request_with_newrelic_trace',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:82:in `perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in `call',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/http/faraday.rb:21:in `block in perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/base.rb:201:in `perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/client.rb:125:in `perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-api-1.0.15/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-api-1.0.15/lib/elasticsearch/api/actions/indices/exists.rb:46:in `block in exists',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-api-1.0.15/lib/elasticsearch/api/utils.rb:191:in `__rescue_from_not_found',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/elasticsearch-api-1.0.15/lib/elasticsearch/api/actions/indices/exists.rb:45:in `exists',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/index/actions.rb:15:in `exists?',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/type/import.rb:24:in `import',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/type/import.rb:58:in `import!',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy/atomic.rb:27:in `block in leave',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy/atomic.rb:27:in `each',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy/atomic.rb:27:in `all?',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy/atomic.rb:27:in `leave',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy.rb:54:in `tap',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy.rb:54:in `pop',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy.rb:62:in `ensure in wrap',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy/strategy.rb:62:in `wrap',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/chewy-0.8.3/lib/chewy.rb:173:in `strategy',
 /var/apps/nice/releases/20160914031151/app/jobs/nice_order_notify_job.rb:9:in `call',
 /var/apps/nice/shared/bundle/ruby/2.3.0/bundler/gems/sneakers_packer-c1f75944ad45/lib/sneakers_packer/common_worker.rb:17:in `work',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/sneakers-2.3.5/lib/sneakers/worker.rb:58:in `block (3 levels) in do_work',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/sneakers-2.3.5/lib/sneakers/metrics/logging_metrics.rb:10:in `timing',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/sneakers-2.3.5/lib/sneakers/worker.rb:54:in `block (2 levels) in do_work',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout',
 /home/bhuser/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/timeout.rb:101:in `timeout',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/sneakers-2.3.5/lib/sneakers/worker.rb:53:in `block in do_work',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/thread-0.1.7/lib/thread/pool.rb:56:in `execute',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/thread-0.1.7/lib/thread/pool.rb:404:in `block (2 levels) in spawn_thread',
 /var/apps/nice/shared/bundle/ruby/2.3.0/gems/thread-0.1.7/lib/thread/pool.rb:371:in `loop']
2016-09-17T23:45:46Z p-24635 t-13en9k INFO: INC: work.NiceOrderNotifyJob.handled.error

It doesn't reproduce in production or development.
However, I checked the records in Production and was pretty sure that the code wasn't interrupt until it tried to make that post request through RestClient.
I've not been able to find anything relevant to my problem in the docs. Please advise.

Hey, have never meet this before, but looks like some kind of http lib - threads rpoblem, nothing about chewy here probably.

Oh yeah, find out it is caused by linux thread limitation.  Closing this now.


Add Date Literal

#30

Hey @nathanielCherian, thanks for picking this up. I will have more time to look at this PR in depth next week, but I'll do some quick review so that you're able to make any changes without waiting for me!

Thanks for the feedback! When running the linting script I received hundreds of these errors, error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style. According to this post this is a Unix/windows compatibility problem and can be fixed with "linebreak-style": 0 under eslint rules. I've added that rule here and the linebreak issues seem to go away. When running yarn test on a fresh branch I got 9 errors with the message Cannot find module 'cashc' from 'packages/cashscript/src/Contract.ts'  and one issue with Location.test.ts:  expect(received).toEqual(expected) // deep equality.
Of less importance, when cloning the project to a windows machine I had to change some of the filenames in cashproof that contained invalid characters. I can change it back if necessary, but it looks like the only place it is being used is here.

Thanks for the changes! Linebreak linting change is fine by me, thanks for fixing that. Same for the cashproof filenames.
Hmm, weird that it doesn't work when you run yarn test, did you run yarn in the root directory before? That should set up some monorepo linking magic with Lerna, but it might be that there's some quirk with Lerna on Windows 🤔

Yeah, I ran the same code on WSL and tests ran perfectly.

Codecov Report

Merging #90 (5f54024) into master (8a6100c) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   94.71%   94.73%   +0.02%
==========================================
  Files          38       38
  Lines        2023     2034      +11
  Branches      265      268       +3
==========================================
+ Hits         1916     1927      +11
  Misses        102      102
  Partials        5        5

Impacted Files
Coverage Δ

packages/cashc/src/ast/AstBuilder.ts
99.42% <100.00%> (+0.03%)
:arrow_up:

Continue to review full report at Codecov.

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

Awesome! Thanks for the contribution! Just merged it in.
I added an extra commit to add two extra test cases and moved the throw statements to a new line so that the line length is < 100 characters.
I still have a few other things I want to include in the next release, but I expect it to go live some time next week.

No problem! I can add the date code to the docs as well if needed

That would be great if you could add a small section to the docs. I think a subsection of the Integer type section would be the best place.

Great, added here #93


Online-Store

Task: https://github.com/rolling-scopes-school/tasks/tree/master/tasks/online-store-team
Screenshots:
main-page:

product:

cart:

modal-window:

Deploy: https://big-typical-hallway.glitch.me/products
Done / deadline: 09.01.2023 / 10.01.2023
Score:  300

store-page: 120
cart-page: 60
purchase-modal: 50
product-details-page: 40
header-module: 20
404-page: 10

Issues:

It's better to check invalid id as id == null instead of !id because technically id could be 0

Blocks have similar implementations, so can be introduced as an external method/function

Introduce key of interfaces as keyof T of type T instead of declarating as string and makings conversions

It's better to introduce a new type of sort possible values (union or enums)


Add ref support on input components

For input components it could be useful to developers who want to programmatically focus or invoke events on those inputs to have access to the DOM ref.  To do this, I think Thumbprint components should use React.forwardRef to wrap the existing components and pass the forwarded ref to the internal input element.
This would need to be considered a major version change: https://reactjs.org/docs/forwarding-refs.html#note-for-component-library-maintainers
For that reason, I don't think this is a high priority issue.
A challenge in implementing this is keeping the components as class components while being able to wrap them.  To wrap a class component you must pass the ref as a prop to the inner component.  This prop is not part of the public API for the component, so it means writing a second internal component to handle the ref.
Alternatively, we could convert the class components to functional components (some may need to use hooks to accomplish this).  I had some success trying this out on the Input component, but it ran into a snag trying to test the focusing behavior as you can't spy on the internals of the functional component.
An example of a forwardRef component:
const Input = React.forwardRef((props, ref) => { /* ... */ return <Input ... ref={ref} /> });

Thanks for the thoughtful issue, Matt!
Here's some previous discussion on this:
https://github.com/thumbtack/thumbprint/issues/112
And also:
https://github.com/thumbtack/thumbprint-archive/pull/1339 (Internal to Thumbtack employees)
I'm open to doing it. @lavelle, do you want to take this on?


Add support for index sort options

Closes #326

@khellang Would you mind rebasing when you have a chance?

Hi! I was just wondering if this change has been merged and available for us to use? if so, what version? thanks for new info!

Hi! I was just wondering if this change has been merged and available for us to use? if so, what version? thanks for new info!

Nope, it's still sitting here, unmerged. I'll see if I can pick this up again.

Alright, updated. Hopefully there should be few issues left now 🤞

I've started on the scaffolding bits for this, but need a bit more time to get the tests written properly. I don't think this PR needs to wait for it though. Just letting you know 😊

Also, it seems like collation isn't being scaffolded - this seems like it might be a simple matter of joining on indcollation etc. For completeness it would be nice to have this in this PR as well - did you run into any issue with this?

Ah, no, for some reason I just forgot 😂

Hmm. Looks like a legit CI failure. Passed on my Mac. I wonder if there's a difference between included collation on different OS'es? 🤔

Possibly... Or something else related to the updated base image (#822, appveyor/ci#2872).

Looks like it:

On all platforms, the collations named default, C, and POSIX are available. Additional collations may be available depending on operating system support.

I guess I'll have to use POSIX for the unit test then 😅

Looks like it:

On all platforms, the collations named default, C, and POSIX are available. Additional collations may be available depending on operating system support.

I guess I'll have to use POSIX for the unit test then 😅

Nice find. Can you edit to include a citation?

Nice find. Can you edit to include a citation?

Updated. (https://www.postgresql.org/docs/current/collation.html, under <IP_ADDRESS>. Standard Collations)

Hopefully most issues should be solved now 🤞

Hmm. That CI failure (Test_change_tracking_key_sizes) seems to be unrelated?

@khellang that has nothing to do with you, just pushed a commit to skip that test for now, can you please rebase on top of that?

@khellang I think we're still waiting on some very minor things here, can you confirm? It would be good to finally merge :)

Yup, I just haven't had time to fix them yet. I'll get to it this week 👍

@roji Sorry about the delay. I've added the tweaks from the last review and squashed the commits 👍


Update dependency dev/types-requests to v<IP_ADDRESS>40602

This PR contains the following updates:

Package
Type
Update
Change

dev/types-requests (changelog)
project.optional-dependencies
patch
==<IP_ADDRESS>40523 -> ==<IP_ADDRESS>40602

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

cf https://github.com/robert-koch-institut/mex-extractors/pull/94


Follow conventions for Cargo.toml files

Motivation
Completes the work started in #193 and #197 - now all files should follow the Cargo convention :)

thanks @safeforge

@wqfish any chance to review?

@huitseeker just rebase on top of master and fixed the conflicts. Feel free to review and merge. thanks


Walkthrough: Right-Klick always counted twice

I tried just now with IE 11.0.9600.18638 (Updateversionen 11.0.41), Firefox 53.0 (32-bit) and Chrome Version 56.0.2924.87.

Thanks for the report, this makes some sense because contextmenu works a little differently on Windows.  Today I'll focus on the Windows issues and try to close them all out..


Access denied

I download the branch 7.2 and docker-compose up it.
But, I cannot access database. Can't open PHPMyaadmin.
Everywhere I am getting the error:-
Warning:  mysqli_connect(): (HY000/1045): Access denied for user<EMAIL_ADDRESS>(using password: YES) in /var/www/html/index.php on  line 34
MySQL connecttion failed: Access denied for user<EMAIL_ADDRESS>(using password: YES)

Check two things:

Make sure the phpmyadmin container is running.
You need to pass mysql as a hostname instead of localhost

Can you explain in detail please? I am just a novice in docker.

Check two things:

Make sure the phpmyadmin container is running.
You need to pass mysql as a hostname instead of localhost

The phpmyadmin container is working just fine.
I have done everything correct

I have fixed the error. Thank you


MatAutocomplete - looks for ValueExprression when inside EditForm with Validation

The Autocomplete doesn't seem to work within a form with EditForm validation.
InvalidOperationException: MatBlazor.MatTextField requires a value for the 'ValueExpression' parameter. Normally this is provided automatically when using 'bind-Value'.
MatBlazor.BaseMatInputComponent<T>.SetParametersAsync(ParameterView parameters) in BaseMatInputComponent.cs
+
                        FieldIdentifier = FieldIdentifier.Create(ValueExpression);
Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters)
Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(ref DiffContext diffContext, int frameIndex)
Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(ref DiffContext diffContext, int frameIndex)
Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(ref DiffContext diffContext, int newFrameIndex)
Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(ref DiffContext diffContext, int oldStartIndex, int oldEndIndexExcl, int newStartIndex, int newEndIndexExcl)
Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, int componentId, ArrayRange<RenderTreeFrame> oldTree, ArrayRange<RenderTreeFrame> newTree)

I'm having the same issue,  tried coping out side of the EditForm, then it just runs

I was having the same problem so I looked into this. Autocomplete creates a text field:
<MatTextField Icon="@Icon" OnFocus="@OpenPopup" HideClearButton="true" FullWidth="@FullWidth" OnFocusOut="@ClosePopup" Label="@Label" Value=@StringValue OnInput=@OnValueChanged Outlined="@Outlined" Attributes="@Attributes" Id="@Id"></MatTextField>

MatTextField needs a ValueExpression when EditContext is set (which is a cascading value from EditForm), but there is no value binding for the mat text field within MatAutoComplete.
Currently BaseMatAutocomplete inherits from BaseMatDomComponent, which is not an input component so therefore doesn't support EditContext/ValueExpression.
I made the following changes locally but I'm not sure if this is the right way to fix it:

BaseMatAutocomplete now inherits from BaseMatInputComponent<string>
StringValue is changed to just Value because it is inherited from the input component
Value is changed to DefaultValue because it obviously needed a new name
@bind-Value="Value" is added to the text field. Alternatively ValidationDisabled could be made a cascading value
OnTextChanged is now OnValueChanged
OnValueChanged is now OnDefaultValueChanged
ValueChanged is invoked in the set for DefaultValue so that the validation for Value updates properly when an element is clicked

Just these changes get rid of the error but validation in the text field doesn't work.
I added @bind-Value="Value" but "Value" doesn't have the same validation rules as whatever the value passed into the autocomplete component was. I'm not sure of the best way to fix this, ideas? My current solution is turning off validation in the text field and adding custom css, but that's a bad way to do it.

I'm having the same issue. Unfortunately, I cannot move MatAutocomplete outside EditForm. I'm yet to come up with a solution to this challenge.

Make a new component, named something like "MatAutocompleteForm.razor"
@namespace MatBlazor
@typeparam ItemType
@inherits BaseMatAutocomplete<ItemType>
@using System.Collections;

<div<EMAIL_ADDRESS>    <MatTextField Icon="@Icon" OnFocus="@OpenPopup" HideClearButton="true" FullWidth="@FullWidth" OnFocusOut="@ClosePopup" Label="@Label" Value=@StringValue OnInput=@OnValueChanged OnKeyDown="@OnKeyDown" Outlined="@Outlined" Attributes="@Attributes" Id="@Id" ValueExpression="@(() => _dummyVal)"></MatTextField>
    @if (IsShowingClearButton)
    {

            <MatIconButton Icon="clear" OnMouseDown="@ClearText"></MatIconButton>

    }
    @if (Collection != null && IsOpened)
    {

            <MatList @ref="ListRef" SingleSelection="true">
                @foreach (var elementWrapper in GetFilteredCollection(StringValue))
                {
                    <MatListItem OnMouseDown="@((e) => ItemClicked(elementWrapper.Element))">
                        @if (ItemTemplate != null)
                        {
                            @ItemTemplate(elementWrapper.Element)
                        }
                        else
                        {
                            <MatListItemText>@(elementWrapper.StringValue)</MatListItemText>
                        }
                    </MatListItem>
                }
            </MatList>

    }

@code {
    private string _dummyVal { get; set; }
}

Here is what I used: https://docs.telerik.com/blazor-ui/knowledge-base/value-changed-validation-model

I'm having the same issue, Autocomplete doesn't seem to work within a form with EditForm validation.. Unfortunately, I cannot move MatAutocomplete outside EditForm. Somebody fix it ? you ave a solution  ? thx

Merged fix into develop branch.


Implement message reply

This pull request adds the ability to reply to a given Privmsg using the reply-parent-msg-id IRC tag.
Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Running rustfmt turns the method signatures into multi-line ones that don't fit with the rest of the functions at all, so I suppose the check can be ignored.

Running rustfmt turns the method signatures into multi-line ones that don't fit with the rest of the functions at all, so I suppose the check can be ignored.

If the method signatures are long then it‘s okay to wrap them like rustfmt wants to. I want to keep the formatting consistent with rustfmt, that‘s why there is the CI check.

If the method signatures are long then it‘s okay to wrap them like rustfmt wants to. I want to keep the formatting consistent with rustfmt, that‘s why there is the CI check.

:+1:

:+1:

Also, something that I just thought of is that it's not possible to do a /me message in response with the current methods, but I'll probably add that separately when I add the /me sending function.

Also, something that I just thought of is that it's not possible to do a /me message in response with the current methods, but I'll probably add that separately when I add the /me sending function.


Upgrade QuoteFix to 2.7.3

Also changed license from :oss to :mit. (Check https://github.com/robertklep/quotefixformac#licence--copyright. It doesn't explicitly say MIT, but the license terms are clearly MIT.)
Oops I mistook the included license of Sparkle for the license of QuoteFix. Reverted the license change.

Appcast shasum should also be updated, in future PRs.
This is fine for the time being, as we don't yet have anything in place to auto-update, but Soon(TM)

Thank you for the contribution. It was merged directly as acbfde7ab750255f464027498340c86157e60c07 to keep commit history cleaner. Your contribution is still credited to you.

Didn't even realize appcast also has a checksum now... Thanks for the heads up.

https://github.com/vitorgalvao/tiny-scripts/blob/master/cask-repair is also useful for automating the process, fyi.

Thanks for the info. Personally I won't use it because the current version (https://github.com/vitorgalvao/tiny-scripts/commit/deb849dc1595ac9bf2c71d74419368980fd95a59) clears the Homebrew download cache, but I can see it's a nice and useful script, and maybe I'll fork it someday if manual editing becomes too annoying.

the current version (…) clears the Homebrew download cache

Not anymore. I wasn’t doing it for any particular reason other than convenience (to me, when coding it). If that makes a difference to someone, though, no quarrel with changing it. Code isn’t exactly uglier, and should work just the same.
Largely untested, but should work.

Cool, thanks for the quick change. Nitpick: You need to use /usr/bin/stat to prevent picking up coreutils stat which may be default for some (e.g. me) but is incompatible with BSD stat.
Due to the largely untested nature, I'll need to fully review it before daring to run it on my system, and I don't have time for that now. But the script could potentially be a time saver for regular cask contributors, so maybe a pointer in an appropriate doc page would be nice (or maybe there already is one)?

use /usr/bin/stat to prevent picking up coreutils stat which may be default for some (e.g. me) but is incompatible with BSD stat.

Good point. Will change it.

Due to the largely untested nature

To be clear, the script has been throughly tested and is used by many people without any (reported) issue. The only thing I haven’t tested is this small change, but it’s not like it’ll break anything. Worse case scenario, it could get the wrong file and you’d submit a wrong shasum (that would be caught by Travis) or it wouldn’t work at all.
To reiterate, there isn’t anything anything in this change that’ll break your system, and every other part of the script has been tested and is in use.

But the script could potentially be a time saver for regular cask contributors, so maybe a pointer in an appropriate doc page would be nice (or maybe there already is one)?

maintaining.md.

To be clear, the script has been throughly tested and is used by many people without any (reported) issue.

Okay, misinterpreted. Sorry.


How to add custom inline balloon component

Is there a way to add custom inline balloon to a custom plugin? Something like the image balloon toolbar in the video
Version
suneditor-react: 2.16.5
Additional context
https://user-images.githubusercontent.com/30943398/123689224-fc659180-d820-11eb-82fc-964f18e3a73c.mov

https://github.com/JiHong88/SunEditor/blob/master/src/plugins/dialog/math.js#L247
Please refer this link.
You must create your own controller.
And call the "core.setControllerPosition" and "core.controllersOn" methods in order.
http://suneditor.com/sample/html/out/document-editor.html#controllersOn

Perfect, thanks for all you do @JiHong88  😄