labhub: Remove Hello World callback

Removal of automatic invitation of newcomers
through Hello World message in chat room.
Closes #538

Don't we want a modified version that tells user of the new newcomer process? That is select an issue and ask a maintainer for assignment. And then maintainer will invite the newcomer to the newcomer team and then assign the issue.

Travis tests have failed
Hey @nvzard,
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.

Travis tests have failed
Hey @nvzard,
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.

Travis tests have failed
Hey @nvzard,
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.

Travis tests have failed
Hey @nvzard,
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.

Travis tests have failed
Hey @nvzard,
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.
1st Build

     python -m pytest

============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.3.0, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.0, cov-2.5.1
collected 33 items

tests/answer_test.py .                                                   [  3%]
tests/coala_lowercase_c_test.py ..                                       [  9%]
tests/coatils_test.py ...........                                        [ 42%]
tests/deprecate_bot_prefixes_test.py .                                   [ 45%]
tests/explain_test.py .                                                  [ 48%]
tests/ghetto_test.py .                                                   [ 51%]
tests/git_stats_test.py .                                                [ 54%]
tests/labhub_test.py F.......                                            [ 78%]
tests/lmgtfy_test.py .                                                   [ 81%]
tests/nevermind_test.py .                                                [ 84%]
tests/pitchfork_test.py .                                                [ 87%]
tests/searchdocs_test.py .                                               [ 90%]
tests/ship_it_test.py .                                                  [ 93%]
tests/the_rules_test.py .                                                [ 96%]
tests/wolfram_alpha_test.py .                                            [100%]

----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25      0   100%
plugins/coala_lowercase_c.py           12      0   100%
plugins/coatils.py                    120      0   100%
plugins/constants.py                    5      0   100%
plugins/deprecate_bot_prefixes.py       6      0   100%
plugins/explain.py                     21      0   100%
plugins/ghetto.py                      10      0   100%
plugins/git_stats.py                   51      0   100%
plugins/labhub.py                     192      2    99%   342, 346
plugins/lmgtfy.py                       4      0   100%
plugins/nevermind.py                    5      0   100%
plugins/pitchfork.py                   12      0   100%
plugins/searchdocs.py                  16      0   100%
plugins/ship_it.py                      7      0   100%
plugins/the_rules.py                    5      0   100%
plugins/wolfram_alpha.py               18      0   100%
-----------------------------------------------------------------
TOTAL                                 509      2    99%

FAIL Required test coverage of 100% not reached.

            If optional args 'block' is true and 'timeout' is None (the default),
            block if necessary until an item is available. If 'timeout' is
            a non-negative number, it blocks at most 'timeout' seconds and raises
            the Empty exception if no item was available within that time.
            Otherwise ('block' is false), return an item if one is immediately
            available, else raise the Empty exception ('timeout' is ignored
            in that case).
            '''
        with self.not_empty:
            if not block:
                if not self._qsize():
                    raise Empty
            elif timeout is None:
                while not self._qsize():
                    self.not_empty.wait()
            elif timeout < 0:
                raise ValueError("'timeout' must be a non-negative number")
            else:
                endtime = time() + timeout
                while not self._qsize():
                    remaining = endtime - time()
                    if remaining <= 0.0:
>                       raise Empty
E                       queue.Empty

/opt/python/3.6.3/lib/python3.6/queue.py:172: Empty
----------------------------- Captured stdout call -----------------------------
DEBUG    errbot.backends.test      Merging {} to the bot config.
waiting on queue
message received
waiting on queue
ERROR    backoff                   Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401))
ERROR    errbot.plugins.Plugins    Something went wrong in fetching github repos.
Traceback (most recent call last):
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 48, in __init__
    self.IGH.write_repositories)}
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/GitHub.py", line 69, in write_repositories
    repo_list = get(self._token, '/user/repos')
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/__init__.py", line 218, in get
    headers=headers)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 105, in _fetch
    resp = get_response(method, base_url + url, json=data)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 72, in get_response
    raise RuntimeError(response.text, response.status_code)
RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401)
message received
waiting on queue
message received
----------------------------- Captured stderr call -----------------------------
2018-06-05 12:17:44,894 DEBUG    errbot.backends.test      Merging {} to the bot config.
2018-06-05 12:17:45,317 ERROR    backoff                   Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401))
2018-06-05 12:17:45,318 ERROR    errbot.plugins.Plugins    Something went wrong in fetching github repos.
Traceback (most recent call last):
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 48, in __init__
    self.IGH.write_repositories)}
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/GitHub.py", line 69, in write_repositories
    repo_list = get(self._token, '/user/repos')
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/__init__.py", line 218, in get
    headers=headers)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 105, in _fetch
    resp = get_response(method, base_url + url, json=data)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 72, in get_response
    raise RuntimeError(response.text, response.status_code)
RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401)
------------------------------ Captured log call -------------------------------
test.py                    371 DEBUG    Merging {} to the bot config.
_common.py                  89 ERROR    Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401))
labhub.py                   50 ERROR    Something went wrong in fetching github repos.
Traceback (most recent call last):
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 48, in __init__
    self.IGH.write_repositories)}
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/GitHub.py", line 69, in write_repositories
    repo_list = get(self._token, '/user/repos')
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/GitHub/__init__.py", line 218, in get
    headers=headers)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 105, in _fetch
    resp = get_response(method, base_url + url, json=data)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/backoff/_sync.py", line 85, in retry
    ret = target(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/IGitt/Interfaces/__init__.py", line 72, in get_response
    raise RuntimeError(response.text, response.status_code)
RuntimeError: ('{"message":"Requires authentication","documentation_url":"https://developer.github.com/v3/repos/#list-your-repositories"}', 401)
=============================== warnings summary ===============================
tests/answer_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

None
  Module already imported so can not be re-written: errbot.backends.test

tests/coatils_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/labhub_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/wolfram_alpha_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============== 1 failed, 32 passed, 5 warnings in 100.95 seconds ===============

Made the changes

ack https://github.com/coala/corobo/pull/539/commits/d9f12facfe3e766d1c1376bda1ec11afac22ce11

@gitmate-bot ff

@gitmate-bot rebase

ack https://github.com/coala/corobo/pull/539/commits/e657707f58472989bb827cb8ce944b3a2f298a35

Travis tests have failed
Hey @nvzard,
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.

@gitmate-bot ff


pfSense router upgrade

Plan, document procedure. Initiate backup.

Created backup. Still need to reboot.

Upgrade to 2.5.1 completed Thursday 28th May 2021
Had issue with local LAN / WLAN name resolution not working.
See -> https://redmine.pfsense.org/issues/11316
Checked https://nostromo.theatrix.priv/system_advanced_admin.php -> Disable DNS Rebind Check.

BackUp and reboot carried out.

Upgrade to 2.5.2 completed on or around Wednesday 25th August 2021.
No issues identified at this time.


Minor fixup for workflow

Signed-off-by: Chuck Ha<EMAIL_ADDRESS>What this PR does / why we need it:

Renames workflow
Only pushes master image

NONE

/lgtm


Update nodegit

Fixes a crash when creating a diff. See https://github.com/nodegit/nodegit/pull/945.

Looks like it hasn't been published on npm yet.


Allow passing a base URL in meatie.Client

I have sort of a unique situation. My use of meatie is only one small part of my overall application, and I would like to re-use my ClientSession, which has already been set up with various default options (like enabling env for proxy data, custom TCPConnector, timeouts, etc).
There's no easy way (that I could find) to quickly and generally apply these options to another ClientSession, and I wouldn't want to apply the base_url to this CS instance because that would of course apply to unrelated tasks.
I recognize that this is more an aiohttp limitation (not supporting base_url in .request() that I could pass into session_params=) than meatie, but perhaps there's room to increase flexibility by allowing for a local base variable that is combined in meatie.Client?  This could also make Clients reusable for platforms that have a consistent API but available on different hostnames, utilizing the same ClientSession (thus potentially opening up strategies like asyncio.gather() across several instances at once).

Hi @DefiDebauchery,
If you use aiohttp library and want to use the same ClientSession for communication with different hosts, then I would not set base_url. This is an entirely optional convenience option.
Otherwise, if you would like to access some advanced options of aiohttp library I would consider implementing a custom client class following this example: https://github.com/pmateusz/meatie/blob/master/src/meatie_aiohttp/client.py). Meatie codebase contains analog implementations for httpx and requests. By doing it you will have full control over the way HTTP requests are being dispatched.
We had a similar challenge in my other project (i.e., large API is spread across 5 different hosts). We ended up implementing 5 meatie clients with independent Client Sessions. We considered it best tradeoff because each of these hosts behaved differently in terms of error handling and rate limit policies.

fwiw, I just noticed another reason this would be helpful: aiohttp only allows domains as its base_url, whereas many APIs might have a path prefix (that would be redundant to add to every @endpoint)
This was actually pretty easy to implement in a subclassed Client; would you accept a (cleaned up) PR to implement this flexibility? Granted I can only speak to aiohttp as that's what I use.
from meatie_aiohttp import Client as OrigClient

class Client(OrigClient):
    def __init__(
            self,
            session: aiohttp.ClientSession,
            session_params: Optional[dict[str, Any]] = None,
            local_cache: Optional[Cache] = None,
            limiter: Optional[Any] = None,
            base_url: Optional[str] = None
    ) -> None:
        if base_url:
            self.base_url = base_url

        super().__init__(session, session_params, local_cache, limiter)

    async def send(self, request: Request) -> AsyncResponse:
        if not self.session._base_url:
            if self.base_url:
                request.path = self.base_url + request.path

        return await super().send(request)

@DefiDebauchery, I wasn't aware that aiohttp allows only subdomains as base_url.
Sure, I will accept the PR that adds base_url: Optional[str] = None as an argument to the constructor (class Client(BaseAsyncClient). Thank you for your useful suggestions and efforts to improve the library :bow:

Hi @pmateusz, I got a chance to update to 0.1.14 and the prefix works wonderfully. Thanks so much!
As an aside, I've been mentioning meatie on Twitter and through Discord; hope this will help add some well-deserved attention!


Drop body_json escaping

Companion PR for https://github.com/tenzir/vast-plugins/pull/58

Closing since a newer version of the submodule was already merged in #3221


Logout is not working in 1.6 stable

When I click logout I get:

and then after reloading the page I am still logged in.
Environment
Charm                      Channel           Revision
-------------------------  --------------  ----------
admission-webhook          1.6/stable              60
argo-controller            3.3/stable              99
argo-server                3.3/stable              45
dex-auth                   2.31/stable            129
grafana-agent-k8s          latest/edge             31
istio-ingressgateway       1.11/stable            285
istio-pilot                1.11/stable            302
jupyter-controller         1.6/stable             163
jupyter-ui                 1.6/stable             124
katib-controller           0.14/stable             92
katib-db                   latest/stable           35
katib-db-manager           0.14/stable             66
katib-ui                   0.14/stable            151
kfp-api                    2.0/stable             144
kfp-db                     latest/stable           35
kfp-persistence            2.0/stable             141
kfp-profile-controller     2.0/stable             125
kfp-schedwf                2.0/stable             155
kfp-ui                     2.0/stable             144
kfp-viewer                 2.0/stable             152
kfp-viz                    2.0/stable             134
kubeflow-dashboard         1.6/stable             183
kubeflow-profiles          1.6/stable              94
kubeflow-roles             1.6/stable              49
kubeflow-volumes           1.6/stable              84
metacontroller-operator    2.0/stable              48
minio                      ckf-1.6/stable          99
namespace-node-affinity    0.1/beta                 5
oidc-gatekeeper            ckf-1.6/stable          76
seldon-controller-manager  1.14/stable             92
tensorboard-controller     1.6/stable              69
tensorboards-web-app       1.6/stable              71
training-operator          1.5/stable              65

Supposedly this is fixed in 1.7 from what I've heard.

This and #579 are duplicates.

Note that this is to track the issue that the /logout endpoint doesn't work alone, while #579 tracks the fact that you never actually get logged out.


chore: upgrades http-wasm host to v0.6.0 to support clients using v0.4.0

What does this PR do?
Upgrades http-wasm host to v0.6.0 to support source address retrieval
Motivation
https://github.com/traefik/piceus/pull/54
More

[ ] Added/updated tests
[ ] Added/updated documentation

Additional Notes

Hello, can you rebase your PR on the branch v3.0?

Thank you!
On Tue, 27 Feb 2024, 14:22 Traefiker Bot, @.***> wrote:

Merged #10475 https://github.com/traefik/traefik/pull/10475 into v3.0.
—
Reply to this email directly, view it on GitHub
https://github.com/traefik/traefik/pull/10475#event-11936345304, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAXIMXOYXZDXZGXC77TYVXMYRAVCNFSM6AAAAABD2YRCD6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRHEZTMMZUGUZTANA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Applying configuration after git push, hangs?

I have setup the git config to sync from a new install of fleek. However when I do the fleek apply
it just seems to hang and not sure when it will finish? Maybe trying to install some packages?
❯ fleek apply
 [d]  debug enabled
 [d]  git autopush: true
 [d]  git autocommit: true
 [d]  git autopull: true
 [*]  Apply fleek configuration
 [d]  is git repo
 [d]  git will pull
From github.com:user_name_removed/fleek
 * branch            main       -> FETCH_HEAD
 [✓]  Writing configuration files
 [d]  is git repo
 [d]  git will add
 [d]  git will commit
 [d]  git status is empty, skipping commit
 [d]  git will push
Everything up-to-date
Applying configuration (just spins)

Config in .fleek.yaml is
 cat .fleek.yml
aliases:
    fleeks: cd /home/mike/.local/share/fleek
bling: default
ejected: false
flakedir: .local/share/fleek
git:
    autocommit: true
    autopull: true
    autopush: true
    enabled: true
name: Fleek Configuration
packages:
    - helix
    - nerdfonts
    - neo
    - difftastic
paths:
    - $HOME/bin
    - $HOME/.local/bin
programs:
    - dircolors
shell: bash
systems:
    - arch: x86_64
      hostname: docker1
      os: linux
       cat .fleek.yml
aliases:
    fleeks: cd /home/mike/.local/share/fleek
bling: default
ejected: false
flakedir: .local/share/fleek
git:
    autocommit: true
    autopull: true
    autopush: true
    enabled: true
name: Fleek Configuration
packages:
    - helix
    - nerdfonts
    - neo
    - difftastic
paths:
    - $HOME/bin
    - $HOME/.local/bin
programs:
    - dircolors
shell: bash
systems:
    - arch: x86_64
      hostname: docker1
      os: linux
      username: mike
    - arch: x86_64
      hostname: thinkpad
      os: linux
      username: mike
unfree: true
username: mike
    - arch: x86_64
      hostname: thinkpad
      os: linux
      username: mike
unfree: true

hopefully relevant lines from ps -ef
mike       17413   16154  0 10:41 pts/0    00:00:00 nix build<EMAIL_ADDRESS>--out-link /tmp/home-manager-build.kBOT2LdmC1/generation
root       17422    5559  1 10:41 ?        00:00:13 nix-daemon 17413
nixbld1    18163   17422  0 10:56 ?        00:00:00 bash -e /nix/store/57620l1168piiia2bmmsxxhh7sjb2n40-builder.sh
nixbld1    18172   18163 12 10:56 ?        00:00:03 curl --location --max-redirs 20 --retry 3 --disable-epsv --cookie-jar cookies --user-agent curl/8.0.1 Nixpkgs/23.05 --insecure -C - --fail https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/VictorMono.zip --output /nix/store/frfg13dfmcmarc4il8zyzqsly192d8zw-VictorMono.zip
mike       18188    2066  0 10:56 ?        00:00:00 /usr/libexec/gnome-control-center-search-provider

it's downloading NerdFonts here. I should remove that from the base, it's a huge package

ok thanks, it did finish in the end. Maybe showing progress would be helpful?


shuf: treat -e as a flag, not as a multi-value arg

This PR implements and tests support for the weird permitted argument order of shuf, especially for invocations like shuf -ez firstarg secondarg, where the z shall not be interpreted as a value to -e.
This moves us closer to passing the GNU testsuite.
Related:

Discussed in https://github.com/uutils/coreutils/issues/4254#issuecomment-1953201152 (turns out, I was wrong, it is possible)
Relates to https://github.com/uutils/uutils-args/pull/104 (which is kinda the same patch, but using the new uutils-arg).

This PR sadly slightly degrades the quality of the error message in one case:
Before:
$ cargo run -- a b
error: unexpected argument 'b' found

Usage: /path/to/target/debug/shuf [OPTION]... [FILE]
       /path/to/target/debug/shuf -e [OPTION]... [ARG]...
       /path/to/target/debug/shuf -i LO-HI [OPTION]...

For more information, try '--help'.
[$? = 1]

After:
$ cargo run -- a b
/path/to/target/debug/shuf: unexpected argument 'b' found
Try '/path/to/target/debug/shuf --help' for more information.
[$? = 1]

Note that this does not affect the --help message, so I think it's good enough.

Changes since last push:

Rebased on newest main
Applied two cleanups – thanks @tertsdiepraam!

Changes since last push:

Fix two lints that aren't in pre-commit, but were caught by CI (specifically: prefer .cloned(), and drop an unnecessary .to_string())

Changes since last push:

Rebased on current main
Added two new tests for error inputs, specifically multiple files (test_shuf_two_input_files and test_shuf_three_input_files). Thanks @cakebaker!
Added a new test for a single dash as filename. (test_explicit_stdin_file)

Both failures seem to be flakes:

test_split::test_round_robin_limited_file_descriptors (split: unable to open 'xav'; aborting)
test_timeout::test_kill_subprocess (panicked at ''' does not contain 'xyz'')

Thanks! Your updates on the force pushes are great by the way. Really useful while reviewing!


refactor: Move go-sdk to separate repo

What this PR does:
see https://github.com/mosn/layotto/issues/1075
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Thank you for your contribution.
I propose that you include a step-by-step guide on how to build in our document.


[proxima-beam-core] #180 CommitLogRead as SDF

To be merged after partial reviews.

This closes O2-Czech-Republic#180

This closes O2-Czech-Republic#180


Can't install from ftp.

I run a ftp server with .cia files in and would love to network install from ftp but whenever I try to install from ftp it does http://ftp://<IP_ADDRESS>/file.cia and then errors as it can't find it.

The network installer does not support the FTP protocol, only files served over HTTP.

If you're looking to send a local file from your PC, FBI comes bundled with a script called servefiles that can do this.

I want to be able to host a file from ftp and someone else outside my local network can download and install.

That’s not how ftp works. That someone else can download the file from your ftp server using their computer. Then, using their computer, along with ftpd on the 3ds, send it to their 3ds using that same client. Then they can install it with fbi.

They don't have a pc tho
On Sun, 10 Nov 2019, 17:32 urherenow<EMAIL_ADDRESS>wrote:

That’s not how ftp works. That someone else can download the file from
your ftp server using their computer. Then, using their computer, along
with ftpd on the 3ds, send it to their 3ds using that same client. Then
they can install it with fbi.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Steveice10/FBI/issues/522?email_source=notifications&email_token=AK4LR2PIE5RMCNMUV3H2HX3QTBAR3A5CNFSM4JJZTGYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDVCIMI#issuecomment-552215601,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK4LR2JJRJTGNXCGV5XZLTLQTBAR3ANCNFSM4JJZTGYA
.


FLW-1327 Fix Analytics, Validators tab: pie chart is updated several times

https://user-images.githubusercontent.com/17689921/135812426-3336e5e2-5de5-4ac0-82d4-15f3d4e40c64.mov

Codecov Report

Merging #405 (50d107f) into develop (7920849) will increase coverage by 2.86%.
The diff coverage is 41.33%.

@@             Coverage Diff             @@
##           develop     #405      +/-   ##
===========================================
+ Coverage    31.43%   34.29%   +2.86%
===========================================
  Files          462      560      +98
  Lines        19656    24945    +5289
===========================================
+ Hits          6179     8556    +2377
- Misses       13477    16389    +2912

Impacted Files
Coverage Δ

...on/DataProvider/Sources/CoingeckoPriceSource.swift
0.00% <0.00%> (ø)

...ataProvider/Sources/JsonSingleProviderSource.swift
0.00% <0.00%> (ø)

...Provider/Sources/Rewards/SubqueryStakeSource.swift
0.00% <0.00%> (ø)

...rovider/Sources/SubqueryEraStakersInfoSource.swift
0.00% <0.00%> (ø)

...DataProvider/Sources/WebSocketProviderSource.swift
0.00% <0.00%> (ø)

.../Subscription/SingleValueSubscriptionHandler.swift
0.00% <0.00%> (-11.12%)
:arrow_down:

...ion/FearlessUtils/StorageKeyFactory+Implicit.swift
0.00% <0.00%> (ø)

...Common/Extension/Foundation/String+Substrate.swift
0.00% <0.00%> (ø)

...s/Common/Extension/Model/WalletAssetId+Chain.swift
0.00% <0.00%> (ø)

...peration/CompoundOperationWrapper+Dependency.swift
0.00% <0.00%> (ø)

... and 292 more


Next video call: 2020 August 11  - 9:00PM CEST (?)

Link to Big Blue Button video call will be posted here (no signup required).
Any other day / time preferences?

Call didn’t happen yet - let‘s do it another time within the next 14 days. Will update this later this week.


filename* is lost when creating the FormFile class

When a multipart form includes a filename using RFC 5987 encoding semantics such as:
filename*=UTF-8''foo-%c3%a4.html

That filename is lost when the FormFile class is created.  The issue starts at line 184 in FormFeature.cs:
https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http/Features/FormFeature.cs#L184
At this point, contentDisposition.FileName is null, because contentDisposition.FileNameStar contains the value of the filename.
To reproduce this issue in test, send the following request:
POST /Home/formtest HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: __atuvc=34%7C7; permanent=0; _gitlab_session=226ad8a0be43681acf38c2fab9497240; __profilin=p%3Dt; request_method=GET
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266
Content-Length: 408

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="first part"

this is content of the first part
-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="file part";  filename*=UTF-8''foo-%c3%a4.html
Content-Type: text/plain

This is content of the file.
-----------------------------9051914041544843365972754266--

It's an easy fix, but not urgent. This is why the RFC recommends clients set both fields.


[openssl] Build error

Host Environment

OS:

OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19044 N/A Build 19044

Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

To Reproduce
Steps to reproduce the behavior:
In admin privileged x64 Native Tools Command Prompt for VS 2019
...in vcpkg dir
git fetch --all
git pull
vcpkg.exe install openssl --triplet x64-windows
Failure logs
c:\Users\me\gitrepos\vcpkg>vcpkg.exe install openssl --triplet x64-windows
Computing installation plan...
The following packages will be built and installed:
    openssl[core]:x64-windows -> 3.0.2#3
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\me\AppData\Local\vcpkg\archives in 250.7 us. Use --debug to see more details.
Starting package 1/1: openssl:x64-windows
Building package openssl[core]:x64-windows...
-- Using cached openssl-3.0.2.tar.gz.
-- Cleaning sources at C:/Users/me/gitrepos/vcpkg/buildtrees/openssl/src/openssl-3-67d457a95e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/me/gitrepos/vcpkg/downloads/openssl-3.0.2.tar.gz
-- Using source at C:/Users/me/gitrepos/vcpkg/buildtrees/openssl/src/openssl-3-67d457a95e.clean
-- Copying openssl release source files...
-- Copying openssl release source files... done
-- Configure x64-windows-rel
-- Configure x64-windows-rel done
-- Build x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
    Command failed: C:/Users/me/gitrepos/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe -j 1 -f makefile install_sw install_ssldirs
    Working Directory: C:/Users/me/gitrepos/vcpkg/buildtrees/openssl/x64-windows-rel
    Error code: 2
    See logs for more information:
      C:\Users\me\gitrepos\vcpkg\buildtrees\openssl\build-x64-windows-rel-1-out.log
      C:\Users\me\gitrepos\vcpkg\buildtrees\openssl\build-x64-windows-rel-1-err.log

Call Stack (most recent call first):
  ports/openssl/windows/portfile.cmake:84 (vcpkg_execute_required_process)
  ports/openssl/portfile.cmake:31 (include)
  scripts/ports.cmake:145 (include)

error: building openssl:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+openssl
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[openssl]+Build+error
including:
  package: openssl[core]:x64-windows -> 3.0.2#3
    vcpkg-tool version: 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb
    vcpkg-scripts version: c37cc7836 2022-04-19 (19 hours ago)

Additionally, attach any relevant sections from the log files above.

log 0
jom 1.1.3 - empower your cores

Error: File Makefile doesn't exist.
jom: C:\Users\me\gitrepos\vcpkg\buildtrees\openssl\x64-windows-rel\makefile [build_sw] Error 2
jom: Option /K specified. Continuing.

log 1
jom 1.1.3 - empower your cores

Error: File Makefile doesn't exist.
jom: C:\Users\me\gitrepos\vcpkg\buildtrees\openssl\x64-windows-rel\makefile [build_libs] Error 2

c:\Users\me\gitrepos\vcpkg>dir buildtrees\openssl\x64-windows-rel\
 Volume in drive C has no label.

Currently we can't reproduce this issue, and we will have some investigation later.

Your vcpkg is out-dated, please git pull and retry again.
Thanks.

I get the same version reinstalling
c:\dev\vcpkg>vcpkg --version
Vcpkg package management program version 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb
See LICENSE.txt for license information.
c:\dev\vcpkg>git fetch --all
Fetching origin
c:\dev\vcpkg>git pull
Already up to date.
c:\dev\vcpkg>git branch

master

c:\dev\vcpkg>git branch --list --all

master
remotes/origin/HEAD -> origin/master
remotes/origin/master

I got it working this time after reinstalling. As mentioned above the version is the same but I reinstalled to shorter path. I haven't gone back to test long path install again to see if problem initially experienced recurs but that's the first thing I would  try to isolate source of issue.

Ah, I guess your account has empty space.


Techniques to fill null values in data with code.

here as well we need to describe the methods and then submit the pynb ? i would be happy to contribute.

I would like to contribute

thanks.  @Niketkumardheeryan

Can I work on this issue? I'm a participant of LGM Soc21.

Can I work on this issue? I'm a participant of LGM Soc21.


gopdf just seems to hang

Greetings,
I have downloaded and compiled your gopdf example:
package main
import (
"fmt"
"net/http"
"github.com/terryh/gopdf"

)
func Pdfhandle(w http.ResponseWriter, r *http.Request) {
result, err := gopdf.Url2pdf("http://nvd3.org/examples/stackedArea.html")
fmt.Println(err)
w.Header().Set("Content-Type", "application/pdf")
w.Write(result)
}
func Jpeghandle(w http.ResponseWriter, r *http.Request) {
result, err := gopdf.Url2jpeg("http://nvd3.org/examples/stackedArea.html")
fmt.Println(err)
w.Header().Set("Content-Type", "image/jpeg")
w.Write(result)
}
func main() {
http.HandleFunc("/", Pdfhandle)
http.HandleFunc("/jpeg", Jpeghandle)

http.ListenAndServe(":8080", nil)

}
and when I run the example I just get:
spartan:~/work/gopdf$ ./gopdf
Checking wkhtmltopdf..
Looks like you have wkhtmltopdf install at your system path.
Checking wkhtmltoimage..
Looks like you have wkhtmltoimage install at your system path.
and nothing else seems to happen.
Can you please advise?
I was hoping to just have an example that went out to a site and generated the images.
Thanks,
Lonnie

I do can run your program on Mac. You might download from
http://wkhtmltopdf.org/downloads.html#stable

this library only wrap wkhtmltopdf && wkhtmltoimage easier on golang.
to check you can run those two command on your machine.


Crouton installed, but doesn't start

Please paste the output of the following command here: sudo edit-chroot -all

Please describe your issue:
I've installed crouton, no qualms, but it won't open start when I input the command ; sudo startxfce4. Instead, I get this ;

If known, describe the steps to reproduce the issue:

I have had this same problem, and seems to be the same scenario for both kde and xcfe.
BlnKgl has had a similair issue.


Add a property for text position

Add a property where the user can specify the position of the text in the barcode.
Possible values:

bottom
top

Released with version 1.07.10


Not able to consume kubevirt.io/kubevirt in my project

What happened:
I am planning to consume kubevirt.io/kubevirt in my project to interact with ssh package. But I am not successfully able to do so. Below is the issue that I get into when I try to do so
go<EMAIL_ADDRESS>reading github.com/openshift/api/go.mod at revision v0.0.0: unknown revision v0.0.0

What you expected to happen:
I expect the code to build successfully so that I can use ssh package.
Additional context:
One thing that I would like to highlight is, my project already has github.com/openshift/api and github.com/openshift/client-go direct dependencies.
And I have tried to include the replace statements with the versions that I have already been using for above dependencies but it still didn't work.

cc @mhenriks

hmmm, what versions of kubevirt/clinet-go and openshift/api are you using?

these are the version that I have currently
kubevirt.io/api v0.0.0-20220914144647-b82ad1cb4384
kubevirt.io/client-go v0.57.1

Are you using the same version of k8s libs as kubevirt (v0.23.5)?


update zh-CN language localization file

Translate new strings to zh-CN.
Changed the translation of "collection" to "收藏" (which is easy to understand as a verb "collect") to "收藏集" (a more nounical one).
Improve some translations.
Fixed some minor typo.

Do I launch a pull request in a right way? This is my first submit a pull request.


Support Lua 5.3 operators

Related to https://github.com/geappliances/applcommon.meta/issues/1249

[X] Add support for >>, <<, ~, //, and &
[x] Figure out how to get it to not blow up with |

The issue with the bitwise OR operator, | is that metalua uses | for its abstract syntax tree notation, which it needs in order to compile things that are included in the formatter.  I'm trying to see if there's a way that I can override that part of the parser after all of the metalua files have been required.

This looks awesome.

So I decided to remove the "validation" that used loadfile to check the file before running the formatter.  The issue is that the environment needs to be set correctly in order for any requires in the file to be correctly resolved, otherwise loadfile fails and the formatter doesn't run.  The metalua parser already looks for real syntactic errors, so there's no need to "validate" the file first.

Do we still need the Lua 5.3 binaries?

Deleted


Revert "feat: [marketingplatformadminapi] new module for marketingplatformadminapi (#11133)"

This reverts commit 466ae725047b08ddbe8ff164e05b1bfe32fa2d7e.

Why do you need to revert the change?


WTF!

brew doctor output
Does not matter...

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
  logstream
  display_manager
  Foundation
  kextdebug
  emsdk
  sshfs_androidmedia
  import

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  isc-dhcp

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  logstream
  display_manager
  Foundation
  kextdebug
  emsdk
  sshfs_androidmedia
  import

Warning: Your Xcode (14.3.1) is outdated.
Please update to Xcode 15.1 (or delete it).
Xcode can be updated from the App Store.

Verification

[X] My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update twice and am still able to reproduce my issue.
[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output
HOMEBREW_VERSION: 4.3.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: e0bc557e7b991cb23583679e1cf1c8a92b793aeb
Last commit: 5 days ago
Core tap JSON: 24 May 19:10 UTC
Core cask tap JSON: 24 May 19:10 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.cFkvSgK8L8/org.xquartz:0
HOMEBREW_MAKE_JOBS: 24
Homebrew Ruby: 3.3.1 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: 24-core 64-bit skylake
Clang: 14.0.3 build 1403
Git: 2.39.2 => /Volumes/Development/Xcode.14.3.1.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 13.6.4-x86_64
CLT: <IP_ADDRESS>.1.1700200546
Xcode: 14.3.1 => /Volumes/Development/Xcode.14.3.1.app/Contents/Developer

What were you trying to do (and why)?
I brew installed the openjdk
What happened (include all command output)?
While installing openjdk brew removed my working /usr/local/Celler/openocd, also proceeded to replace my working python3.11 (aka python3) with python3.12 which does not work because it is missing all the installed python3.11 packages!
Brew use to be good then I guess a bunch of mentally deficient people started to help and have mode the system unusable now.
Brew should never remove something from a Cellar without an express command to do so!  This might be the bloody packages or might be something else in brew but it also needs to stop trying to update my python3.11 to python3.12.
What did you expect to happen?
Just install openjdk
Step-by-step reproduction instructions (by running brew commands)
brew install openjdk

This should be resolved by https://github.com/Homebrew/brew/pull/17364.


Adds missing GIS engine for MySql to defaults.

To address:
https://github.com/django-extensions/django-extensions/issues/1371

Coverage remained the same at 71.353% when pulling caa76895a75a0b4b3ad7ec1983830b493134c0db on jdzero:patch-1 into 79f7219310a5e510db550ca3d2d118b69596d9c0 on django-extensions:master.

Thanks !


Fix build warnings, and add .travis.yml

TODO

[x] Setup Travis
[x] Setup stack
[x] Fix build warnings

@gazay would you mind taking a look please

@gazay more than happy to be a collaborator. Thank you

Done :) now you can merge this PR by yourself if it's ready :) thank you for interest in this lib and for your help :)

@gazay thank you very much!


Ranked Matches/decks not tracking

I've used Full Reset button already. Thou there is still a 15 or match gap that ain't tracking, I've noticed that within the W/L ratio tracker they are accounted for but they do not show up on the Match List.
I provided a Screen shot to better shot it, day(2018-12-29) started up fine with matches being tracked then it suddenly stopped, it resumed showing up next day(2018-12-30) but w/o opponent cards.

On top of that Ranked matched are being considered ordinary matches

It's fixed now. New matches will appear


Minifies output of sitemap plugin

Closes #1126

I added a flag to only perform the minification if it's a production build. Thoughts?


binary serialization of bitset does not compile

Hello,
first of all, I want to mention how great your library is. I have been using it for quite a while in a couple of projects of mine, and it very easy to use.
Unfortunately, I stumbled upon some issues using bitsets. Here is a minimal working example that shows the issue I have:
#include <cereal/cereal.hpp>
#include <cereal/types/bitset.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/archives/xml.hpp>
#include <random>
#include <sstream>

//choose one of the two pairs
typedef cereal::XMLInputArchive iarch_type;
typedef cereal::XMLOutputArchive oarch_type;

//typedef cereal::BinaryInputArchive iarch_type;
//typedef cereal::BinaryOutputArchive oarch_type;

// uncommenting this will make it compile and run for the binary archives
// #include <cereal/types/string.hpp>

int main()
{
    std::bitset<64> o_bit32 (41);
    std::bitset<64> i_bit32 (42);
    std::cout<<(i_bit32 == o_bit32)<<std::endl;

    std::ostringstream os;
    {
        oarch_type oar(os);
        oar(o_bit32);
    }
    std::istringstream is(os.str());

    iarch_type iar(is);
    iar(i_bit32);

    std::cout<<(i_bit32 == o_bit32)<<std::endl;

    return(0);
}

The above code (using XML archives) compiles, and runs as expected (thanks to @erichkeane comment below. If you modify the code to use the binary archives (change the typedefs at the top, it will not compile, unless you also include the "types/strings.hpp" header. Once you do, it compiles and runs through. The compilation fails with a long output with no useful clue to me :(
g++ -Wall -I ../include -o "unit_test_cereal_bitset" "unit_test_cereal_bitset.cpp" (in directory: /ihome/sfalkner/repositories/bitbucket/random_forest_run/tests)
In file included from unit_test_cereal_bitset.cpp:30:0:
../include/cereal/cereal.hpp: In instantiation of ‘ArchiveType& cereal::OutputArchive<ArchiveType, Flags>::processImpl(const T&) [with T = std::__cxx11::basic_string<char>; typename cereal::traits::detail::EnableIfHelper<(cereal::traits::has_invalid_output_versioning<T, ArchiveType>::value || ((! cereal::traits::is_output_serializable<T, ArchiveType>::value) && ((!(Flags & AllowEmptyClassElision)) || ((Flags & AllowEmptyClassElision) && (! std::is_empty<T>::value)))))>::type <anonymous> = (cereal::traits::detail::type)0; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’:
../include/cereal/cereal.hpp:333:9:   required from ‘void cereal::OutputArchive<ArchiveType, Flags>::process(T&&) [with T = std::__cxx11::basic_string<char>; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:249:9:   required from ‘ArchiveType& cereal::OutputArchive<ArchiveType, Flags>::operator()(Types&& ...) [with Types = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’
../include/cereal/types/bitset.hpp:71:11:   required from ‘void cereal::save(Archive&, const std::bitset<N>&) [with Archive = cereal::BinaryOutputArchive; long unsigned int N = 64ul]’
../include/cereal/cereal.hpp:410:34:   required from ‘ArchiveType& cereal::OutputArchive<ArchiveType, Flags>::processImpl(const T&) [with T = std::bitset<64ul>; typename cereal::traits::detail::EnableIfHelper<cereal::traits::has_non_member_save<T, ArchiveType>::value, (! cereal::traits::has_invalid_output_versioning<T, ArchiveType>::value), (cereal::traits::is_output_serializable<T, ArchiveType>::value && (cereal::traits::is_specialized_non_member_save<T, ArchiveType>::value || (! cereal::traits::is_specialized<T, ArchiveType>::value)))>::type <anonymous> = (cereal::traits::detail::type)0; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:333:9:   required from ‘void cereal::OutputArchive<ArchiveType, Flags>::process(T&&) [with T = std::bitset<64ul>&; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:249:9:   required from ‘ArchiveType& cereal::OutputArchive<ArchiveType, Flags>::operator()(Types&& ...) [with Types = {std::bitset<64ul>&}; ArchiveType = cereal::BinaryOutputArchive; unsigned int Flags = 1u]’
unit_test_cereal_bitset.cpp:56:16:   required from here
../include/cereal/cereal.hpp:448:9: error: static assertion failed: cereal could not find any output serialization functions for the provided type and archive combination.
 Types must either have a serialize function, load/save pair, or load_minimal/save_minimal pair (you may not mix these).
 Serialize functions generally have the following signature:
 template<class Archive>
   void serialize(Archive & ar)
   {
     ar( member1, member2, member3 );
   }
         static_assert(traits::detail::count_output_serializers<T, ArchiveType>::value != 0,
         ^~~~~~~~~~~~~
../include/cereal/cereal.hpp: In instantiation of ‘ArchiveType& cereal::InputArchive<ArchiveType, Flags>::processImpl(const T&) [with T = std::__cxx11::basic_string<char>; typename cereal::traits::detail::EnableIfHelper<(cereal::traits::has_invalid_input_versioning<T, ArchiveType>::value || ((! cereal::traits::is_input_serializable<T, ArchiveType>::value) && ((!(Flags & AllowEmptyClassElision)) || ((Flags & AllowEmptyClassElision) && (! std::is_empty<T>::value)))))>::type <anonymous> = (cereal::traits::detail::type)0; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’:
../include/cereal/cereal.hpp:701:9:   required from ‘void cereal::InputArchive<ArchiveType, Flags>::process(T&&) [with T = std::__cxx11::basic_string<char>&; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:604:9:   required from ‘ArchiveType& cereal::InputArchive<ArchiveType, Flags>::operator()(Types&& ...) [with Types = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’
../include/cereal/types/bitset.hpp:102:11:   required from ‘void cereal::load(Archive&, std::bitset<N>&) [with Archive = cereal::BinaryInputArchive; long unsigned int N = 64ul]’
../include/cereal/cereal.hpp:778:34:   required from ‘ArchiveType& cereal::InputArchive<ArchiveType, Flags>::processImpl(T&) [with T = std::bitset<64ul>; typename cereal::traits::detail::EnableIfHelper<cereal::traits::has_non_member_load<T, ArchiveType>::value, (! cereal::traits::has_invalid_input_versioning<T, ArchiveType>::value), (cereal::traits::is_input_serializable<T, ArchiveType>::value && (cereal::traits::is_specialized_non_member_load<T, ArchiveType>::value || (! cereal::traits::is_specialized<T, ArchiveType>::value)))>::type <anonymous> = (cereal::traits::detail::type)0; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:701:9:   required from ‘void cereal::InputArchive<ArchiveType, Flags>::process(T&&) [with T = std::bitset<64ul>&; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’
../include/cereal/cereal.hpp:604:9:   required from ‘ArchiveType& cereal::InputArchive<ArchiveType, Flags>::operator()(Types&& ...) [with Types = {std::bitset<64ul>&}; ArchiveType = cereal::BinaryInputArchive; unsigned int Flags = 1u]’
unit_test_cereal_bitset.cpp:61:13:   required from here
../include/cereal/cereal.hpp:822:9: error: static assertion failed: cereal could not find any input serialization functions for the provided type and archive combination.
 Types must either have a serialize function, load/save pair, or load_minimal/save_minimal pair (you may not mix these).
 Serialize functions generally have the following signature:
 template<class Archive>
   void serialize(Archive & ar)
   {
     ar( member1, member2, member3 );
   }
         static_assert(traits::detail::count_input_serializers<T, ArchiveType>::value != 0,
         ^~~~~~~~~~~~~
Compilation failed.

Am I doing something obviously wrong here? Is this related to #145?
Thank you,
Stefan

Your code is useless until you wrap it in a code block

Its hard to tell, but I think it is because you don't close the output archive before using the stream to open it.  In the XML case, it will have not written the closing tag, so the exception is likely that it is invalid XML.
With the Binary one, my understanding is it doesn't write a all until the input archive is closed, so you'll get an exception attempting to read, since there is no data in the stream.
Change inside your 'main' to do this:
std::ostringstream os;
{
    oarch_type oar(os);
    oar(o_bit32);
}
std::istringstream is(os.str());
iarch_type iar(is);
iar(i_bit32);
std::cout<<(i_bit32 == o_bit32)<<std::endl;
return(0);

Thanks for the answers. I can reproduce the problem on Arch 64bit, gcc 6.1.1 and gentoo, 32bit 4.9.3.
I think the problem is the way the bitset is serialized. If it is too long, it is stored as a string, but the necessary #include <cereal/types/string.hpp> is missing in cereal/types/bitstring.hpp. The problem does not show in the unit test because all tests include almost all header files trough common.hpp which contains #include <cereal/details/polymorphic_impl.hpp>, which contains #include <cereal/details/polymorphic_impl.hpp> which finally includes #include <cereal/types/string.hpp>.

I'll add the include for string in bitset so this isn't an issue in the future. In the next release if you are using the binary archive we actually serialize the bitset directly without going to a string representation.
@erichkeane The binary archives are actually the only ones we have that don't do any buffering whatsoever, but it is still best practice to use them as you mention.

@AzothAmmo  Ah, good to know.  For some reason I thought I remembered hearing the opposite at one point.  Guess my memory is failing :)


incorrect nodes at high orders due to incorrect zeros

Thanks for a great package!
Since this package depends on FunctionZeros, it suffers from https://github.com/jlapeyre/FunctionZeros.jl/issues/10 (that package doesn't work for orders larger than a few) and thus Hankel.jl cannot set up a plan for those orders. For example, here's a quick selection of nodes,
using Hankel
R = 1.0
N = 32
q = QDHT(10, R, N)
print(q.r[4:7])

[0.21586560553503556, 0.3827577984254705, 3.847210992460738, 0.24445021648591286]

These nodes aren't monotonically increasing!
I imagine this can be fixed by using a more reliable source of zeros, perhaps GSL? FunctionZeros is a very tiny package, so maybe a pure Julia replacement using more robust methods might be helpful.

For example, if you're willing to include a GSL.jl dependency, sf_bessel_zero_Jnu_e is a drop-in replacement for the FunctionZeros call.

For example, if you're willing to include a GSL.jl dependency, sf_bessel_zero_Jnu_e is a drop-in replacement for the FunctionZeros call.

Thanks for the issue. We do need a more reliable solution for high orders. And a great deal is known about computation of the zeros of bessel functions. e.g. http://dlmf.nist.gov/10.21.vi.

For example, if you're willing to include a GSL.jl dependency, sf_bessel_zero_Jnu_e is a drop-in replacement for the FunctionZeros call.

I do think we should drop FunctionZeros as a dependency. It is basically just a wrapper for Roots, which is actively maintained, unlike FunctionZeros whose recent maintenance I have initiated to fix issues we have faced here. But as @xzackli brings up, even this use of Roots breaks down for us. Using GSL would definitely be the fastest way to resolve this issue. It also would not take long to implement a pure Julia solution. I'd like to look into this. @chrisbrahms does this sound fine?

Thanks for the issue. We do need a more reliable solution for high orders. And a great deal is known about computation of the zeros of bessel functions. e.g. http://dlmf.nist.gov/10.21.vi.

For example, if you're willing to include a GSL.jl dependency, sf_bessel_zero_Jnu_e is a drop-in replacement for the FunctionZeros call.

I do think we should drop FunctionZeros as a dependency. It is basically just a wrapper for Roots, which is actively maintained, unlike FunctionZeros whose recent maintenance I have initiated to fix issues we have faced here. But as @xzackli brings up, even this use of Roots breaks down for us. Using GSL would definitely be the fastest way to resolve this issue. It also would not take long to implement a pure Julia solution. I'd like to look into this. @chrisbrahms does this sound fine?

As noted in https://github.com/chrisbrahms/Hankel.jl/pull/15#issuecomment-766308905, recent releases of FunctionZeros have also not been registered.

As noted in https://github.com/chrisbrahms/Hankel.jl/pull/15#issuecomment-766308905, recent releases of FunctionZeros have also not been registered.

Yes, this clearly needs fixing. Originally I avoided it as a heavy dependency, but using GSL seems like the best option. However if I understand this correctly it will then restrict SpecialFunctions back to v0.10?

Yes, this clearly needs fixing. Originally I avoided it as a heavy dependency, but using GSL seems like the best option. However if I understand this correctly it will then restrict SpecialFunctions back to v0.10?

However if I understand this correctly it will then restrict SpecialFunctions back to v0.10?

Yeah that's right. And bound Julia to >= v1.3. I'm locally testing using GSL, and the tests pass with GSL v0.6 which didn't have the Julia version bound, so that's not an issue. I'll open a PR there to bump its SpecialFunctions bound.

However if I understand this correctly it will then restrict SpecialFunctions back to v0.10?

Yeah that's right. And bound Julia to >= v1.3. I'm locally testing using GSL, and the tests pass with GSL v0.6 which didn't have the Julia version bound, so that's not an issue. I'll open a PR there to bump its SpecialFunctions bound.

GSL is now compatible with SpecialFunctions v1 https://github.com/JuliaRegistries/General/pull/28540

GSL is now compatible with SpecialFunctions v1 https://github.com/JuliaRegistries/General/pull/28540


Multiselect recursion

Hi, I'm trying to build an option tree using component recursion, but couldn't figure out how to avoid the duplication of multiselect tag itself
Here is my code, any guidance is greatly appreciated
<template> <multiselect placeholder='' select-label='' v-model="pvalue" :options="model" label="name">             <template slot="option" scope="props">
{{ props.option.param + ' - ' + props.option.name }}                     <category-dropdown-tree v-if="props.option.children" :model="props.option.children"></category-dropdown-tree>
             </template>         </multiselect> </template>

I don’t think Multiselect is the right choice here. You would probably be better with a custom implementation of a tree-view.
Feel free to fork / copy the code of the Multiselect component if you need parts of it.
Otherwise I can’t really help you, sorry. :(


Running inference in the cloud

Is it possible to run this in the cloud?

I am very sorry for my carelessness, I did not notice your question.
Of course, it can be deployed to cloud services.


Add "hex key add " command

I'm interested in creating additional Hex keys on my account so I can think about automated release publication (e.g. Travis' deployment functionality). Adding the command to the Rebar plugin seems like a nice way to go, although I ended up refactoring more than I'd intended. I can scale things back if I went too far.
The add command adds a new API key to the user's Hex account. The key is displayed to the user, but not stored anywhere.
I tried to put the key-adding code into rebar3_hex_key and the user-login code into rebar3_hex_user so now those two call each other a bit.

Is this a supported hex thing? I don't see it in the elixir client?

We call it hex.user auth in mix. https://hex.pm/docs/tasks#hex_user

I think rebar3 hex user auth is the equivalent of mix hex.user auth.
This makes the same API call as both of those commands, but for a different purpose. Instead of storing the token in your local config (replacing any previous key), this simply prints the token without changing your local config.
My intent is to use it like https://github.com/settings/tokens and other similar setups. I want to create a Hex token that's just used for CI deployment. Maybe one token per project.

In that case maybe it should be called gen or generate? add makes it sound like it's added to the system.

Sure, I'm happy with any name. Looking at this again, though, I wonder if this feature shouldn't be on the Hex.pm website and not the tool. However, I'm unlikely to make a PR for that.

We don't have any features on the website that requires you to log in, it's essentially read only. We are unlikely to add any features like that in the near future.

I haven't wanted this feature since that one time, so I'm going to close this.


Adding complex links

Within my resource I have some complex links that are created by many-to-many tables. No wonder when I want to add them through normal interface i recive an error:
ActiveRecord::HasManyThroughNestedAssociationsAreReadonly (Cannot modify association 'Activity#users' because it goes through more than one other association.):

Currenty I'm tackling this issue by modifing controller like this:
EventController < JSONAPI::ResourceController
 # ...
  def create
    attendees = @request.operations[0].values[:has_many].delete(:attendees)
    # do something with attendees
    super
  end
end

Is there any other, more 'standard' way to do it? Are there any possible issues i can encounter with this approach?

I don't know if this will work for your scenario, but take a look at the acts_as_set option in https://github.com/cerebris/jsonapi-resources#associations.
My guess is you're trying to do something a bit more complicated than a simple linking table. If so could you provide a bit more information, maybe with tables, models and resources simplified to highlight the issue.

Basicly my schama is like this:
class Activity < ActiveRecord::Base
  # (...)
  belongs_to :event
  has_many :activity_roles, :dependent => :destroy
  has_many :event_invitations, through: :activity_roles
  has_many :users, through: :event_invitations, source_type: 'User' do
    def hosts() merge(ActivityRole.hosts) end
    def attendees() merge(ActivityRole.attendees) end
  end
  # (...)
end

class V1::ActivityResource < AuthorizedResource
  # (...)
  has_many :attendees, class_name: 'User', foreign_key: 'user_ids'
  has_many :hosts, class_name: 'User', foreign_key: 'user_ids'
  has_one :event

  def records_for_hosts(options = {})
    @model.users.hosts
  end

  def records_for_attendees(options = {})
    @model.users.attendees
  end
  # (...)
end

When i want to create activity with some attendee I what my backend needs to do is to:

create ativity linked to event
find_or_create event_invitation for user (attendee)
create activity_role linked to event_invitation and user

So as you see the flow is quite complex and by no means just passing attendees in a 'link' (like in example below) can make rails to do it 'out of the box'. What I want to do is to implement this logic somehow.
"data":{
  "type": "activities",
  "attributes": {
    "name": "New Activity",
    "abstract": "Lorem"
  }, "links": {
    "event": {
      "linkage": {
        "type": "events",
        "id": "99f42e7f-a11c-41b4-a354-d3a0265f2e80"
      }
    }, "attendees": {
      "linkage": [{
        "type": "users",
        "id": "10abf7b8-8d68-4ef9-97c2-f19ca812e07a"
      }]
    }
  }
}

It looks like the "has_many :users" is computed on the model, yet you are trying to add in a user with the resource. Maybe you could override the user_ids= method.

Yep it is computed on the model by joining some tables.
I don't know if rails is smart enough to recreate the logic just by associations, i.e. how can it tell that only one event_invitation must be created per (event, user).
My idea was to 'take out' those complex links from the request and process them manully.
By overwriting user_ids u mean doing in in a model, controller or resource?

By overwriting user_ids u mean doing in in a model, controller or resource?

Sorry, I meant in the Resource.

Sorry for long pause in the converstion - I was pretty busy lately with my other projects.
It seems that your idea with user_ids= pretty much works. I got access to user_ids and I can implement some custom logic up there. The only thing i can't do is to distinguish between attendees and hosts (both triggers user_ids= method). Is it possible?
Example of a request with both attendees and hosts:
  "data":{
  "type": "activities",
  "attributes": {
    "name": "New Activity",
    "abstract": "Lorem"
  }, "links": {
    "event": {
      "linkage": {
        "type": "events",
        "id": "5b7d30ea-ca82-49b0-9f2d-024300456029"
      }
    }, "attendees": {
      "linkage": [{
        "type": "users",
        "id": "10abf7b8-8d68-4ef9-97c2-f19ca812e07a"
      }]
    }, "hosts": {
      "linkage": [{
        "type": "users",
        "id": "67421333-0e28-4a19-baf8-abc2277182ee"
      }]
    }
  }
}

It seem that was impossible but I've made some changes to resource implementation that makes user defined methods such as user_ids= to be called with two arguments: association_key_values and association_type, instead of just values. I'll prepare a pull request shortly.


Improve CSS parsing performance

For better browser parsing performance, and less bloat in the CSS,  I recommend changing to the following CSS output format:
.sprite-icons-zoom_out,
.sprite-icons-zoom_in,
.sprite-icons-zoom,
.sprite-cions-xhtml_valid {
  background-image: url('icons.png');
  background-repeat: no-repeat;
}

.sprite-icons-zoom_out    { top: 0; left: 0; }
.sprite-icons-zoom_in     { top: 0; left: -16px; }
.sprite-icons-zoom        { top: -16px; left: 0; }
.sprite-icons-xhtml_valid { top: -16px; left: -16px; }

Reference: Different CSS techniques and their performance
Note: The OOCSS style is also a option but that would require changes to the HTML as well.

Thank you very much Teddy,
Just pushed to master :) https://github.com/jorgebastida/glue/commit/9d27c2fe08ce84c6985d588e1c3ef8fdb42e36cd

Nice one! I did actually scan through the code before I created the commit to see if I easily could've done it myself but I'm not that used to Python and I was at work so I created the issue and though I could come back to it unless someone else took care of it :) I'll probably use this library this weekend!


Update routes-compiler to 2.8.18

Updates com.typesafe.play:routes-compiler from 2.8.16 to 2.8.18.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.8.16).
You might want to review and update them manually.
build.sc
contrib/playlib/test/src/mill/playlib/PlaySingleApiModuleTests.scala
contrib/playlib/test/src/mill/playlib/PlayTestSuite.scala
docs/antora/modules/ROOT/pages/Plugin_Play.adoc

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.play", artifactId = "routes-compiler" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.typesafe.play", artifactId = "routes-compiler" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:1

Superseded by #2099


Test coverage improvement

Following reactivation of the coverage reports, it showed that some of the recent work was lacking in coverage. This work rectifies some of bits that were missed by testing

It seems fitting that, after managing to get the coverage working again, I'm being punished for it by SonarCloud.
There is repetition in the test files in this project, but it always highlights test case array type variables as doing this. @florianduros do we have a way of changing this rule for .test. files?

@alunturner To be honest, I don't know


Fix Fedora Polkit

This is a fix for the issue https://github.com/boltgolt/howdy/issues/630
If think that on Fedora, polkit detect that the subprocess compare.py is created and to avoid security issue it is killed.
However, if we run this subprocess through a shell instance, this is no more a problem.
So this fix is not really clean, but it works.
In order to provide a proper solution, I think we need to investigate polkit to create a policy or something like that. But personally, I don't know anything about it, and this seems complex. It is also possible that there is no such thing and that it is simply a bug.

I made the modification from the tag of the current version of Howdy: v2.6.1.
In order to provide this fix for Fedora users we have several choices:

An official version of Howdy 2.6.2 is created
The Fedora's repo maintainer creates a "hot fix", but we keep the v2.6.1 tag as source. The version on Fedora would become 2.6.1-7 (currently 2.6.1-6)
I create a tag on the fedora-polkit branch of my fork, which is temporarily used as source. The version on Fedora would become 2.6.1-7
We do nothing for Fedora at the moment, and we wait for the next official release, the v3.0.0, which rewrites the pam module in C++

@principis What do you think of that?

Works flawlessly, can confirm from Fedora 36. Thanks so much!

So, do I only need to modify /lib64/security/howdy/pam.py? Do I have to restart or do anything else for this to start working?

Yes, just change the line 44 of /lib64/security/howdy/pam.py with this one :
status = subprocess.call(["/usr/bin/python3 " + os.path.dirname(os.path.abspath(__file__)) + "/compare.py " + pamh.get_user() + " &> /dev/null"], shell=True)

this is fantastic, thanks, +1 for merging or copr repo hotfix

I can confirm that this also worked for my installation. It also fixed the issue with being prompted to enter my password to unlock the Gnome keychain after I had logged in with Howdy

I'll add this in the copr repo.

Is polkit exclusive to Fedora, or is it a Gnome thing?

The next release of Howdy will completely remove pam.py to move over to a compiled pam_howdy.so and drop the dependency on pam-python. This file is now gone on the beta branch. Is it worth merging this into master still?

@wheelerlaw A Gnome thing


refused to execute script from because its mime type

Hi, I'm trying to use node-livereload to benefit from live reload, but it doesn't work, previously I was using apache http server and it works fine , but now when I use the live reload server I get :
Refused to execute script from '' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
foreach js, css file in my project.

@eniniz Please resubmit this and provide the information requested in the issue template. I don't know enough about your environment to attempt to debug this.


Auto Run / Enabled Status Not Always Saved

MacOS 13.4 (22F66)
Burp v2<IP_ADDRESS> Build 23718
Several rules under HTTP Rules were set with Auto Run = Unchecked and Enabled = Unchecked.
When going to Settings > Refresh Lists > Export Data to a file, exiting Burp then reloading Burp, some rules under HTTP Rules that had the above applied were back to Auto Run and Enabled checked.
Going to Settings > Overwrite Duplicates = Checked and then Import Data also had the rules back to Auto Run and Enabled checked.
Should the extension save existing rules and their state and reload on the next startup of Burp? Should saving and loading rules from a file (Export/Import) save and restore these states?

Hi @rob-ip, Auto Run and Enabled are saved and restored. In the case of Burp being reloaded or the exported data being reimported, it should contain the same states as before the event.
When exporting Rules, you must hit Refresh List before doing so because the tab keeps a snapshot of the list of Rules since the previous refresh or since Burp was reloaded. Without doing this, it is possible that some rules weren't exported which may lead to confusing states when imported. Because of the confusion, I may remove the Refresh List functionality in the future. You can open the exported file and verify the flags you mentioned have the expected states.
When reimporting Rules, if Overwrite Duplicates is selected, any existing Rules that contain the same name as one being imported are discarded completely. If unselected, the old Rule that has the same name as the one to be imported is kept as is, while the one that would have been imported is discarded.
I have not seen an issue with the above functionality not working for Auto Run and Enabled. Is your issue reproducible with the above in mind?

Thanks for your explanations. Those did fit with my expectations, however,
I think I know what I did wrong.
I was assuming the Save button was a global save for all rules rather
than only the current rule.
Now I've clicked Save on each rule individually, it is working as
expected.
As an aside, would it be possible for functionality to be implemented for
Import and Export to remember the last folder used?
On Mon, 2 Oct 2023 at 14:55, ddwightx @.***> wrote:

Hi @rob-ip https://github.com/rob-ip, Auto Run and Enabled are saved
and restored. In the case of Burp being reloaded or the exported data being
reimported, it should contain the same states as before the event.
When exporting Rules, you must hit Refresh List before doing so because
the tab keeps a snapshot of the list of Rules since the previous refresh or
since Burp was reloaded. Without doing this, it is possible that some rules
weren't exported which may lead to confusing states when imported. Because
of the confusion, I may remove the Refresh List functionality in the
future. You can open the exported file and verify the flags you mentioned
have the expected states.
When reimporting Rules, if Overwrite Duplicates is selected, any existing
Rules that contain the same name as one being imported are discarded
completely. If unselected, the old Rule that has the same name as the one
to be imported is kept as is, while the one that would have been imported
is discarded.
I have not seen an issue with the above functionality not working for Auto
Run and Enabled. Is your issue reproducible with the above in mind?
—
Reply to this email directly, view it on GitHub
https://github.com/synfron/ReshaperForBurp/issues/44#issuecomment-1743063564,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRXDJNCOEAUSR62GD2MZSTX5LBTZAVCNFSM6AAAAAA5PCKG4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGA3DGNJWGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
This email (and any attachment) is confidential.  If you are not the
intended recipient, kindly forward the email @.***
@.***> and delete it from your systems; you must not
use the email or any of its (or any attachments) content for any purpose,
or reproduce, store, or disclose it or any such content to anyone.  Views
expressed may not be those of the Company, but be the personal views of the
email’s author.   No right or licence is to be deemed granted, or
obligation deemed accepted, by the Company until a written agreement is
negotiated and executed between the relevant parties.  Agreements may only
be concluded by officers authorised to execute contracts on behalf of the
Company.
iProov Limited (Registration No.07866563), incorporated in
England and Wales.  Registered Office: 14 Bank Chambers, 25 Jermyn Street,
London, SW1Y 6HR.
References to Company mean iProov Limited and (where
relevant) its subsidiaries iProov, Inc. (a Delaware corporation) and iProov
PTE Ltd (a Singapore company).

Seems possible. Maybe create a feature request issue for that.


Web form file attachment

Task ID: https://bloomstack.com/desk#Form/Task/TASK-2020-00717
Problem: From Web Form it attach file into file manager but not linked to specific doctype
solve:

Pull Request Test Coverage Report for Build 963

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.002%) to 51.874%

Files with Coverage Reduction
New Missed Lines
%

frappe/utils/change_log.py
3
21.53%

Totals

Change from base Build 961:
-0.002%

Covered Lines:
21706

Relevant Lines:
41844

💛  - Coveralls

Develop: https://github.com/frappe/frappe/pull/10628
Hotfix: https://github.com/frappe/frappe/pull/10627


Input Text on register forms are not dark  mode compatible

In the Register Forms in both Register as donor and Register as Organisation  the input value  is not visible when we switch it  toDark mode
Register donor form :
Screencast from 2023-06-26 23-26-48.webm
Register org fom
Screencast from 2023-06-26 23-27-28.webm

@Saurav-Pant I can take this :)

it's yours now, @manuel12


Fallback for process Redemption and Staking

contracts, test: introduce fallback for process staking and redemption. fixes #26
this was forgotten to be merged into develop

updated code for review comments and corrections
extended unit test for process redemption by registrar


fix: Add missing return on compat checker.

Whoops, hadn't seen you were doing this as well. It actually needed to be continue rather than return. Have self-merged - will close this one.


[SUPPORT]

Please do not use the issues page to ask general questions about the OpenAI API. Questions asked here will usually not receive answers.
Feel free to report problems with code examples, suggest new code examples, or ask narrow questions about specific code examples.
For general discussion, try:

OpenAI API Community Forum
OpenAI Discord
OpenAI subreddit, GPT3 subreddit
OpenAI Cookbook discussion page

For general help, try:

OpenAI Documentation
OpenAI Help Center


Range-ify std.string.chompPrefix

http://dlang.org/phobos/std_string.html#.chompPrefix
unittests at 100%

The two functions changed have template constraints requiring isRandomAccessRange!Range, but the new implementations don't seem to require more than a bidirectional range and forward range, for chomp and chompPrefix respectively.

Yeah, you're right. Also fixed another problem I found with the constraints. startsWith and endsWith will autodecode the delimiter, sigh.

C2 makes no sense in the public interface now that C1 is part of the implementation.
The tests should test non-RA range inputs ("hello world"c.byDchar etc?)

Other than that, LGTM.

These two could be further generalized in the future to allow the delimiter to be a range as well.

I don't get the stance using array in unit tests instead of equal. Surely the last things our test suite needs are slower execution time and more memory use. Barring the import statement, using equal is even shorter code, although admittedly with an extra level of parentheses.

In chomp the else block starts with the line
auto orig = str;

whereas in chompPrefix the line is
auto orig = str.save;

I guess save should be called in both cases.

C2  makes no sense in the public interface now that  C1  is part of the implementation.

C2 is needed in the constraints.

The tests should test non-RA range inputs ( "hello world"c.byDchar  etc?)

added.

Auto-merge toggled on

These two could be further generalized in the future to allow the delimiter to be a range as well.

Why wasn't that done right away?


Navya component design

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.009%) to 93.62%

Totals

Change from base Build<PHONE_NUMBER>:
-0.009%

Covered Lines:
675

Relevant Lines:
721

💛  - Coveralls


luci-app-mwan3: luci shouldn't allow configuration of rule names beyond 15 characters

Steps to reproduce:

Navigate to Network > MultiWAN Manager
Navigate to Rule Tab
Add a new rule, with a rule name greater than 15 characters example in screenshot is '1234567890123456890' (20 chars)

Actual behavior:
Luci happily accepts the input and creates a new MWAN3 Rule

Expected behavior:
Add a character limit on the text box input OR should prompt an error Rule XXXXX exceeds max of 15 chars. based on mwan3 logs
Additional Information:
OpenWrt version information from system /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.4'
DISTRIB_REVISION='r24012-d8dd03c46f'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 23.05.4 r24012-d8dd03c46f'
DISTRIB_TAINTS=''

mwan versions
luci-app-mwan3	git-22.181.29827-675a0ea
mwan3	2.11.8-1
mwan3 does not apply rules that exceed 15 characters, sample log lines here:
Wed Aug  7 18:16:33 2024 user.warn mwan3-init[1844833]: Rule fastlane_rule_v4 exceeds max of 15 chars. Not setting rule
Wed Aug  7 18:16:33 2024 user.warn mwan3-init[1844833]: Rule fastlane_rule_v6 exceeds max of 15 chars. Not setting rule

Seems like a better solution would be to increase the limit in mwan3. But I don't know enough about it to comment on that.

15 char limit is generous as ipset chain names are limited to 29 characters only and mwan3 appends a prefix "mwan3_policy_" when adding the rule in iptables, each rule has its own chain

yes mwan3 still uses iptables.. it cant simply be increased as it's a limitation on iptables, unless someone migrates the thing to nftables, which has been in progress for 2 years and counting: https://forum.openwrt.org/t/mwan3-nftables-porting-help/120895

also this seems like a regression?? this was discussed and fixed before:

https://github.com/openwrt/luci/commit/678c0b2d5ba77092ca4c422b6a3c3e3eefe86b01
https://github.com/openwrt/luci/commit/8c19a2e1b8f8bb5f28beadd71bab88d8f892d28d
https://github.com/openwrt/packages/issues/13499

Seems it was left out when migrating the app to JS in f5f6b3e, it needs to have a validate function which checks the length.

based on the two commits referenced and Github issue https://github.com/openwrt/packages/issues/13499, yes this character limit only applies to
Policies - https://github.com/openwrt/luci/commit/8c19a2e1b8f8bb5f28beadd71bab88d8f892d28d
Rules - https://github.com/openwrt/luci/commit/678c0b2d5ba77092ca4c422b6a3c3e3eefe86b01


[fix] (inverted index) Fix errors caused by enable_need_read_data_opt

Proposed changes
select count(b) from test where b is null

Even if the column "b" has produced a result through index calculation, t is still necessary to read the "b" column.

run buildall

run buildall


Currency get

Hi @llonchj,
Thanks for your PR.
Nice helper method, should be useful in the future!
Could you please create branch from master? Because I see there is changes from llonchj:fix-currency-money-New Branch.
Ta

@llonchj BUMP

Moved to #26


Uncrafting grinder incorrectly handles blacklisted items from other mods

Currently the default/example is "item.milk".  This is incorrect, it should be "minecraft:milk_bucket".  It is not currently doing the proper lookup. (applies to both blacklists)
Also if possible, find a way to do a lookup and see if an item is "not consumed while crafting".  for example this milk bucket, as well as other tools such as the crystals from magical crops, glasscutter from EXU2, frying pan from harvestcraft, these items share that property.
If not, at least add those to default blacklist.
reported for Hyperantix modpack

New blacklist in 1.8.0 https://minecraft.curseforge.com/projects/cyclic/files/2342114


WIP: fix(search): successfully launch into today.wisc.edu from Madison theme

query parameter changed from term to search[term]

Note automatic merge incorrectly merged CHANGELOG update such that this needs a manual fix commit.


Add free-style

Original PR / code by stevenbenisek:
https://github.com/hellofresh/css-in-js-perf-tests/pull/8/files
Adapted to new structure of project.
Also put the libraries in alphabetical order...

LGTM 👍


setInterval stalls event loop entirely

Adding an arbitrary setInterval(() => {}) inside of a server handler will stall the server handler from completing entirely.
We need to:

Ensure that other tasks continue running correctly
Ensure that the engine shutdown is properly managed when there are ongoing timer tasks

There is an integration test for this in the timers test suite added in https://github.com/bytecodealliance/StarlingMonkey/pull/38.


[WIP] Improvements to reindexing

This PR aims to improve the search reindexing process.

Reduce memory usage (note that the memory usage isn't significantly decreased in this PR, Zend Lucene takes alot).
Allow resumption of indexing process.
Better error notices.
Show better progress: Realtime memory usage and current document.
Now listener is fully unit tested.

Related PRs

Documentation: https://github.com/sulu-io/sulu-docs/pull/163
MassiveSearch: https://github.com/massiveart/MassiveSearchBundle/pull/74

Add docs indicating that reindexing should be done in prod and that reindexing with PHP7 is 10x faster.

Ready. @chirimoya @danrot @wachterjohannes

As discussed, in order to allow resumption of indexing jobs on the ORM I will need to introduce a query builder which can be modified by clients from their Entity repositories.

Rebased.


Policy permission in Cloudformation template

The default permissions in the cloudformation template is a bit to broad, the app gets access to all of S3 and DynamoDB which might not even be used. A finer grade permission system where only the necessary permissions would be added to only the relevant resources (i.e. only a specific S3 bucket) would provide better security for the api.
My suggestion is to add options to the init function asking if S3/DynamoDB access is needed and then (optionally) add specific permissions for those resources.
I am happy to submit a PR for this change, but want to check if you have other suggestions how to handle this.
And thank you for an excellent tool, it has helped me a lot to get a FastAPI api running on AWS.

I'm happy to hear you are finding this project useful! I agree with your thoughts on the permissions. Please feel free to open a PR with your proposed changes, and I will take a look when I have a chance.
Thank you.


fix: minimize chance of small negative user balance from fee estimation

Description
There is an edge-case where onchain fee estimation can be lower than the actual fee used for an onchain txn in the case where the fee environment is very volatile.
In these cases, it is possible for our balance check to be bypassed by a small amount which amounts to the difference the fee estimate is off by in sats. The highest we've seen this be off by so far is 3586 sats.
To help address this two measures are proposed in this PR:

Bring the estimate check closer to the actual send to reduce the effects from fee volatility

(Feature change!) Add a fee buffer when doing the balance check to help mitigate from the edge instances where the fee can still differ
This 2nd measure effectively means that a user would not be able to empty their wallet via onchain, but can still do so over Lightning/Intraledger

The function we are calling from the OnChainServiceis sendToOnChainAddress.
That method accepts a fee_tokens_per_vbyte.
Why don't we simply pass the original estimation on to that function - then we don't need a buffer.

The function we are calling from the OnChainServiceis sendToOnChainAddress.
That method accepts a fee_tokens_per_vbyte. Why don't we simply pass the original estimation on to that function - then we don't need a buffer.

Juan and I looked at this as well and noticed that we probably can't enforce which UTXOs it selects so transaction size (and final fee) can still be variable.


Thrift 0.9.2

Merged without testing because default version is not affected.

Cool. For the record, it works: https://travis-ci.org/isaachier/hunter/builds/288647556.


auro-button: focus styles do not show when inside another shadow root

Describe the bug
When I render auro-button inside another shadow root (e.g. using in another custom element), focus styles are not applied when tabbing.
To Reproduce
I made a CodePen to demonstrate the issue. Two custom elements are rendered: auro-button by itself, and a focus-test component that renders auro-button inside its shadow root.

Click inside the starting input field and hit tab. The first auro-button receives focus styles.
Hit tab again. The second auro-button (inside of focus-test) is focused, but does not have any focus styles.
Hit tab again. The second input field (also inside of focus-test) is focused and has focus styles.

Expected behavior
auro-button receives focus styles by default when rendered inside a shadow root.
Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome & Firefox
Version: latest

Additional context
This will happen to any auro component that uses focus-visible.

The focus-visible docs mention this issue:

It could be very expensive to apply this polyfill automatically to every shadow
root that is created in a given document, so the polyfill ignores shadow roots
by default. If you are using Shadow DOM in a component, it is possible to apply
this polyfill imperatively to the component's shadow root:
// Check for the polyfill:
if (window.applyFocusVisiblePolyfill != null) {
  window.applyFocusVisiblePolyfill(myComponent.shadowRoot);
}

If you want to use this component in a shadow root, you need to explicitly apply the polyfill to the shadow root containing the button.
I think our solution to this issue should be twofold:

Document this so people know what they need to do to get focus-visible styling in a shadow root.
Show focus styles by default, i.e. remove the a11y footgun. People are more likely to notice "hey, focus styles are still there when I click, how do I get rid of that?" than notice that focus styles are missing when they tab. We should be able to check for the presence of the data-js-focus-visible on the root element (either <html> or the shadow root we're inside) to identify if the polyfill has been loaded. If it is not loaded, we apply focus styles using :focus. If it has been loaded, we apply focus styles using .focus-visible.

The focus-visible docs mention this issue:

It could be very expensive to apply this polyfill automatically to every shadow
root that is created in a given document, so the polyfill ignores shadow roots
by default. If you are using Shadow DOM in a component, it is possible to apply
this polyfill imperatively to the component's shadow root:
// Check for the polyfill:
if (window.applyFocusVisiblePolyfill != null) {
  window.applyFocusVisiblePolyfill(myComponent.shadowRoot);
}

If you want to use this component in a shadow root, you need to explicitly apply the polyfill to the shadow root containing the button.
I think our solution to this issue should be twofold:

Document this so people know what they need to do to get focus-visible styling in a shadow root.
Show focus styles by default, i.e. remove the a11y footgun. People are more likely to notice "hey, focus styles are still there when I click, how do I get rid of that?" than notice that focus styles are missing when they tab. We should be able to check for the presence of the data-js-focus-visible on the root element (either <html> or the shadow root we're inside) to identify if the polyfill has been loaded. If it is not loaded, we apply focus styles using :focus. If it has been loaded, we apply focus styles using .focus-visible.

Update: we can apply the polyfill inside auro-button and fix the issue -- the consumer does not need to do anything. See linked PR for details.

:tada: This issue has been resolved in version 6.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add docs to unauthenticated env var

Set this as an admonition (:::info) so it'll be noticeable :D


Missing Publisher in codeunit 5856 "TransferOrder-Post Transfer"

Currently there is not a single one there and it is very complicated to implement your extensions there. Please use the codeunit 5704 "TransferOrder-Post Shipment" or codeunit 5705 "TransferOrder-Post Receipt" as a template and insert a certain "standard".

Already addressed in part in issue #16171
Will add 3 more events as part of this issue to a total of 10.
After that if you are missing particular events please specify where exactly and which params you need, also keep it at one per issue, thanks.

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


Add Search

I'll go ahead and close up this old & stale PR.
We can always pick it up when we decide it is relevant again.
../Frenck


using squidpy native datasets

Description
was unable to load datasets which are included in squidpy (visium_hne_adata())
...
Minimal reproducible example
import squidpy as sq
adata = sq.datasets.visium_hne_adata()
img = sq.datasets.visium_hne_image()
...

Traceback

adata = sq.datasets.visium_hne_adata()
AttributeError: module 'squidpy' has no attribute 'datasets'
...

Version

...

Hi @amorje thank you for your interest in Squidpy.
I couldn't reproduce your error with the latest version 1.3.0 of Squidpy. Which Squidpy version are you running?


Cannot run Windows containers on Windows 10 1803 due to Bitlocker policy.

This issue was reportedly fixed in 17074, per a comment on issue #530.

Hello All - wanted to let you know we now have fixed this issue in our recent Server Insider build 17074 and higher. Please do download and give it a try. Let us know if we indeed did the job!

I don't believe it is resolved, as shown here in Windows 10 1803, build 17134:

This appears shortly after selecting the Docker context menu option, "Switch to Windows containers..."
No antivirus is involved here.

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


⚠ Bofrost.be has degraded performance

In b773642, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1596 ms

Resolved: Bofrost.be performance has improved in 386dbf5.


[Stabilization 2.6.0] NearMenuExamples: 1m auto follow example toggle pin state is not updated when auto follow is triggered.

Describe the bug
NearMenuExamples: 1m auto follow example toggle pin state is not updated when auto follow is triggered.

fixed with #9342


Fix libs order

Somehow there was a linker problem on Linux. The libs were included via -L, but the linker could not find them. The solution is simple, just move all libraries to the end of the parameter's list.

Also still works on macOS. LGTM

Thanks for fixing this!


Allow class expressions in type declarations

Suggestion
🔍 Search Terms
class expression declaration type
✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest ofTypeScript's Design Goals.

⭐ Suggestion
When a class is created by a static method, there doesn't seem to be a way to directly use it as a class type.
📃 Motivating Example
Implementation:
class BaseClass {
    static cloneClass() {
        return class extends BaseClass { }
    }
}

How I would expect the declaration to look, with the type error present now:
declare class BaseClass {
    static cloneClass(): class extends BaseClass {};
    //                   ~~~~~
    // Cannot find name 'class'.
}

The declaration actually created:
declare class BaseClass {
    static cloneClass(): {
        new (): {};
        cloneClass(): any;
    };
}

💻 Use Cases
Similar to #45013: it's difficult to represent class "factories" like this one in type declarations.

typeof BaseClass?

Same as #41581 / #41587

Super, thank you!