Add bind address server config

https://github.com/rancher/k3s/issues/214#issuecomment-478015268
Depends on https://github.com/ibuildthecloud/norman/pull/1

@galal-hussein norman PR has been merged.

@ibuildthecloud Ready for Review


update commitment levels

Adds non-deprecated commitment levels.
https://docs.solana.com/developing/clients/jsonrpc-api#configuring-state-commitment
Closes #72

Would you mind merging in the latest master?


Splitting a cell can show an empty markdown cell message

Testing #208546
Repro:
Create a markdown cell, click the split cell button

I found it a little strange how an empty markdown cell can have 2 states:

and this:

I'm sure it was added for a reason, but it just seems like a weird inconsistency to me. Additionally, it says to press enter to edit but that's only true when it's focused so the advice is somewhat misleading imo. We also tend to not show keybindings or click instructions in our UI.

I don't think I can press enter without clicking?

this fixes the split -> preview mode bug, however the two states for the md cell is intentional. Rather than show an empty void in the notebook if an empty cell is set to preview mode, an empty message is shown.
re: not being able to use enter to edit, that is likely because your focus wasn't in the cell container, which is also intentional


Weird typing issue about tuple with some rare conditions

Environment data

Language Server version: 2021.3.1
OS and version: Windows 7
Python version (& distribution if applicable, e.g. Anaconda): 3.8.5(Anaconda)

Steps to reproduce

Run VSCode and open a workspace.
Create or open a python source file OUTSIDE the workspace.
Fill the source file with the sample code below.
See a wrong warning based on wrong typing.

Sample code
l: "list[tuple[str, int]]" = [("", 0)]  # `tuple` must be used instead of `typing.Tuple`

for (s, i) in l:
    _ = s + ""  # `s` is typed as `str`, and it's OK here.
    _ = i + 0  # `i` is also typed as `str` instead of `int`, and here is a warning about it.

Additional info

The issue does NOT exist if the source file is placed inside the workspace.
The issue does NOT exist if typing.Tuple is used instead of tuple.
The issue does NOT exist if there is from __future__ import annotations ahead.

Logs
[Info  - 下午3:37:18] Pylance language server 2021.3.1 (pyright 5d6db8d1) starting
[Info  - 下午3:37:18] Server root directory: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist
[Info  - 下午3:37:18] No configuration file found.
[Info  - 下午3:37:18] Setting pythonPath for service "a": "C:\Users\QWLHC\anaconda3\python.exe"
Search paths found for configured python interpreter:
  C:\Users\QWLHC\anaconda3\DLLs
  C:\Users\QWLHC\anaconda3\lib
  C:\Users\QWLHC\anaconda3
  C:\Users\QWLHC\anaconda3\lib\site-packages
  C:\Users\QWLHC\anaconda3\lib\site-packages\win32
  C:\Users\QWLHC\anaconda3\lib\site-packages\win32\lib
  C:\Users\QWLHC\anaconda3\lib\site-packages\Pythonwin
[Error - 下午3:37:18] stubPath d:\a\typings is not a valid directory.
[Info  - 下午3:37:19] Assuming Python version 3.8
[Info  - 下午3:37:19] Assuming Python platform Windows
[Info  - 下午3:37:19] Searching for source files
[Info  - 下午3:37:19] No source files found.
[Info  - 下午3:37:19] Background analysis(1) root directory: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist
[Info  - 下午3:37:19] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: ensurePartialStubPackages
[FG] parsing: d:\a.py (63ms)
[FG] parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 6ms] (309ms)
[FG] binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\builtins.pyi (80ms)
[FG] binding: d:\a.py (1ms)
Background analysis message: setFileOpened
Background analysis message: analyze
[BG(1)] analyzing: d:\a.py ...
[BG(1)]   parsing: d:\a.py (56ms)
[BG(1)]   parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 5ms] (192ms)
[BG(1)]   binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\builtins.pyi (54ms)
[BG(1)]   binding: d:\a.py (1ms)
[BG(1)]   checking: d:\a.py ...
[BG(1)]     parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 1ms] (25ms)
[BG(1)]     binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (3ms)
[BG(1)]     parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\typing.pyi [fs read 2ms] (47ms)
[BG(1)]     binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\typing.pyi (20ms)
[BG(1)]     parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stubs\typing-extensions\typing_extensions.pyi [fs read 3ms] (5ms)
[BG(1)]     binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stubs\typing-extensions\typing_extensions.pyi (2ms)
[BG(1)]     parsing: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\abc.pyi [fs read 1ms] (3ms)
[BG(1)]     binding: c:\Users\QWLHC\.vscode\extensions\ms-python.vscode-pylance-2021.3.1\dist\typeshed-fallback\stdlib\abc.pyi (1ms)
[BG(1)]   checking: d:\a.py (156ms)
[BG(1)] analyzing: d:\a.py (463ms)
Background analysis message: getSemanticTokens
Background analysis message: getSemanticTokens
Background analysis message: resumeAnalysis

Here is a Python source file inside the workspace with very same content, and the issue is gone.

The lower-cased types list and tuple are not subscriptable in versions of python prior to Python 3.9. Within your workspace, you probably have a Python 3.9 interpreter selected, so pylance is evaluating the code in that context.
If you add a from __future__ import annotations to the top of the file, it will work in both contexts.
list and tuple should also work fine in a quoted annotation in older versions of Python, and they currently don't. I've fixed that issue.
Thanks for reporting the problem.

This issue has been fixed in version 2021.3.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202132-17-march-2021


Number of Items in Dropdowns aren't Read Consistently when Screenreader Active

Issue Type: Bug
In the debug configuration dropdown, while a screenreader is active, the number of items present in the dropdown isn't reliably read.
Expand the dropdown, and note the number of items read. Close the dropdown. Expand the dropdown again, and the number of items read will be different (generally a much larger number).
Tested both with NVDA and Narrator, and reproed with both.

VS Code version: Code - Insiders 1.59.0-insider (e437d424c5e6de97632f5513229c7ebc2cf27a32, 2021-07-28T05:13:47.114Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
63.92GB (18.77GB free)

Process Argv
--crash-reporter-id bc368e6a-30f5-44b7-a3ad-e8bd3536f152

Screen Reader
yes

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.1.23

gitlens
eam
11.6.0

dotnet-interactive-vscode
ms-
1.0.2357011

vscode-dotnet-runtime
ms-
1.2.0

jupyter
ms-
2021.8.1081660962

A/B Experiments
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
vspor879:30202332
vspor708:30202333
vspor363:30204092
vspre833:30321513
vshan820:30294714
vscus158:30321503
vscod805:30301674
bridge0708:30335490

@chlafreniere thanks for filling this I can reproduce this.
However here we are using a native select box widget, and we actually do not explicitly set the number of items in the select drop down.

Can you reproduce the issue if you just use NVDA and a regular site with a dropdown using Chrome?
Can you file an issue in the NVDA repo so they also investigate on their side https://github.com/nvaccess/nvda Though it might be a chrome issue as well.

Thanks


limit concurrency when closing all connections handled by a Transport

I'm not 100% sure we not a Go routine here in the first place, but limiting the concurrency definitely seems reasonable.

The problem is that the connections remove their connection IDs from the map, which requires them to take the mutex which we're now still holding.


cli does not print usage of specific commands

"cooler dump" and other commands without arguments could print the page of the manual that describes the usage. It would make CLI much easier.

cooler dump -h or cooler dump --help does what you want.
No args gives you plain usage without help text, which is standard. But it should say something like use -h option for help, which it currently doesn't.

Click doesn't make this easy to do for individual subcommands, but I was able to put a general disclaimer when one types the root cooler command.
Usage: cooler [OPTIONS] COMMAND [ARGS]...

  Type -h or --help after any subcommand for more information.

Options:
  --debug / --no-debug  Verbose logging
  -pm, --post-mortem    Post mortem debugging
  --version             Show the version and exit.
  -h, --help            Show this message and exit.

Commands:
...


update docs

We decided that ruler.py was too generic a name, so I used imageruler as the name of the repo, and the program should be updated to match.
@mawc2019

Partially addressed by #3.   Mainly we just need better docs.

With the name change from ruler -> imageruler, the import in the notebook example is now broken.

I will update this in a new PR. Additionally, two minor issues on file organization are pending. Any suggestions?

Would be good to have a readthedocs manual generated from the code docstrings.


Add ability to use Terraform version defined in the service catalog product via TFEnv

Description of changes:

Add ability to define Terraform version via .teraform-version file inside the Service catalog product.
Updated dependencies and runtimes
Add Nix flake

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please see our contribution guidelines for this repo.


Add reset method to Counter

This is the feature we discussed in #62, giving me the ability to explicitly reset a Counter's value.

Sounds good to me, can you do a quick pass on the readme+changelog and update as well, then I will merge!

While looking at the CHANGELOG, I think what's listed there is not accurate.
While setting up this gem in my Rails app, I noticed that the PrometheusExporter::Instrumentation::Sidekiq.death_handler method listed in the README on GitHub in master was undefined. I assumed that a release hadn't been cut since that was merged.
Walking through git history and looking at when the version.rb file was tweaked, I think:

v0.4.3 is accurate in the CHANGELOG
v0.4.4 actually contains this commit, which was not listed in the CHANGELOG
v0.4.5 (latest version) contains what is currently listed in the CHANGELOG for v0.4.4, this commit
What is currently listed for v0.4.5 is not in any RubyGems release. I verified this by downloading the .gem from Rubygems, unpacking it, and looking at the source.

If you click on those commits I linked, Github is showing you what tags belong to. I think the git tags all jive with what is released the Rubygems; it's only the CHANGELOG that's incorrect. It's also a little confusing that there is code in the master README that does not exist in the latest RubyGems release.
I've updated the CHANGELOG with what I think is correct. Let me know if that makes sense. As far as updating the README, unless I made a new section documenting all the Metric classes, I'm not sure there's anything to update.

OK lets merge this in! Will do a new gem release today.
Regarding the README ... I support a new section to document metrics if you are feeling adventurous!


Update production.env.example documentation and ordering

This addresses #500 and partially addresses (at least in the sense of 'documents the behavior') #501. I did not do an exhaustive inventory in the source of all possible options available, but I'd consider this a good first pass at making production.env.example a 'living documentation source'.
Feel free to modify this as desired before merging.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #506   +/-   ##
=======================================
  Coverage   81.67%   81.67%
=======================================
  Files          38       38
  Lines        2680     2680
  Branches      163      163
=======================================
  Hits         2189     2189
  Misses        441      441
  Partials       50       50

Continue to review full report at Codecov.

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

Thanks for this! Only comment is that you can't set both TLS and SSL, so SSL should default to false


Add a script to send GH payloads

In order to test GH integration, there should be a script able to send requests like the ones sent by GH when a PR is created or modified or when a PR/commit message mentions bpo-NNNNN.
The script should be able to:

read and send payloads from a file
generate payloads of the given type, with the values provided or with default values.

This script might also be exploited by the tests.

Hi, I want work on this.
Should it be a python script right?
And can you explain the second point? What do you mean by the given type, with the values provided or with default values.

Hi,
I already started working on it a while ago, and the script is now able to send payload from files, but I still have to clean it up a bit and submit a PR.
Once I do (hopefully later today) that you are welcome to work on the second point.
The API should be something similar:
ghsend.py --type pull_request
ghsend.py --type pull_request --action reopened
ghsend.py --type push --author ezio.melotti --title 'bpo-12345: fix a bug'

You should be familiar with the several available fields (https://developer.github.com/webhooks/), the ones we use most frequently, and what the best default for each is.  For example the default type could be pull_request, and the default action could be opened, but it should be possible to specify other values if I want to.  Feel free to ask if you have any other questions.

Thanks for explaining! I got it. :)
On Mar 28, 2017 11:02 PM, "Ezio Melotti"<EMAIL_ADDRESS>wrote:

Hi,
I already started working on it a while ago, and the script is now able to
send payload from files, but I still have to clean it up a bit and submit a
PR.
Once I do (hopefully later today) that you are welcome to work on the
second point.
The API should be something similar:
ghsend.py --type pull_request
ghsend.py --type pull_request --action reopened
ghsend.py --type push --author ezio.melotti --title 'bpo-12345: fix a bug'
You should be familiar with the several available fields (
https://developer.github.com/webhooks/), the ones we use most frequently,
and what the best default for each is. For example the default type could
be pull_request, and the default action could be opened, but it should be
possible to specify other values if I want to. Feel free to ask if you have
any other questions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/python/docker-bpo/issues/4#issuecomment-289845291,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADB1P8II7BoQodgVadW_9B2N9UCQzfdiks5rqUQbgaJpZM4MP4uX
.

I created a pull request with the initial version of the script.
I designed it in such a way that it should be easy to extend and implement the second point:

define a file/constant with one or more basic payloads (if different types have different structures)
update parse_args() to accept and parse additional arguments (e.g. author, title, prnum, etc.)
update the basic payload with the specified arguments (add a separate function)
update the DEFAULT_HEADERS with the type of event (e.g. headers['X-GitHub-Event'] = 'pull_request')
call send_request(payload, headers) -- the function will take care of calculating the signature and adding headers for it and for the content-length.

A couple of notes about the current version:

If the argument is a filename with no path (e.g. python3 image/bin/ghsend.py pullrequestevent.txt, the script will look for it in ../roundup/test/data, if it's a path (relative or absolute), it will follow the path.
I created this file in image/bin/ because I thought of using it from within the docker, but later realized it's easier to use it from outside the docker.  I currently keep docker running in one terminal tab with roundup running, and I execute the script from a separate tab outside docker (on docker-b.p.o/).  This is also why I decided to set the default path to ../roundup/test/data rather than /opt/tracker/roundup/test/data.  It's probably possible to connect two shell to the docker and run roundup in one and ghsend in the other, but I don't see any advantage in doing so.

Thanks @ezio-melotti! I got it.
Should I fork your repo and send a PR to your branch and then include it in this PR #12? or should I wait till this gets in?

I went ahead and merged it so you can start working on it, @soltysh can look at it once he has time.

Should the payload have all the key/value pair or just few of those that are important for roundup?

In theory it would be good to create requests that are as close to the original as possible, but you could also remove some items if they are not important for Roundup and if it makes the script simpler.
Is there any specific problem you are trying to solve?

So currently, we are using Push, IssueComment and PullRequest events. The payload is quite different for all these events. I was thinking of creating a sample file for each event and then according to the arguments change the key/values (like title, author, etc).

SGTM.

Great! I will send PR in a day or two.
On Apr 4, 2017 12:12 AM, "Ezio Melotti"<EMAIL_ADDRESS>wrote:

SGTM.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/python/docker-bpo/issues/4#issuecomment-291235216,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADB1P1sp18yva03vLIrn7lp-ilDus0agks5rsT2RgaJpZM4MP4uX
.


Plugin no longer working

Reinstalling Lite-xl, now plugin no longer working as it used to be, re-downloaded and reinstall the plugin does not fix the problem.
Any help and assistance would be greatly appreciated. :pray:
Info:
OS : MXLinux 21
DE : Xfce
Lite-XL: Latest

are there any error messages?

unfortunately there's no error messasge or helpfull error log. It seem that the plugin just not start or triggered correctly n failled to read git-contained directory. is there any step to troubleshoot or reproduce error log?

does it say anything about files not being in repos in the log?

No error log when init.lua and gitdiff.lua is placed inside 'gitdiff_highlight' folder in $HOME/.config/lite-xl/plugins it is should be there right?
Error log showed when placing init.lua and gitdiff.lua directly on `$HOME/.config/lite-xl/plugins

yes, they should be in a folder together. What does the command output of git diff HEAD look like?

git diff HEAD returns:
sulistiono@mxsulis:~
$ cd blog
sulistiono@mxsulis:~/blog
$ git diff HEAD
diff --git a/pages/_document.js b/pages/_document.js
index 9b41fca..2b2ea14 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -8,8 +8,8 @@ class MyDocument extends Document {

   render() {
     const meta = {
-      title: 'Next.js Blog Starter Kit',
-      description: 'Clone and deploy your own Next.js portfolio in minutes.',
+      title: 'Test"blog',
+      description: 'Test"s Description,
       image:
         'https://assets.vercel.com/image/upload/q_auto/front/vercel/dps.png'
     }
@@ -24,7 +24,7 @@ class MyDocument extends Document {
           <meta property="og:title" content={meta.title} />
           <meta property="og:image" content={meta.image} />
           <meta name="twitter:card" content="summary_large_image" />
-          <meta name="twitter:site" content="@yourname" />
+          <meta name="twitter:site" content="@test_" />
           <meta name="twitter:title" content={meta.title} />
           <meta name="twitter:description" content={meta.description} />
           <meta name="twitter:image" content={meta.image} />
diff --git a/pages/index.mdx b/pages/index.mdx
index 41459f4..35b1c17 100644
--- a/pages/index.mdx
:

that's weird

unfortunately the plugin is not working for me. Seem it just won't start and highlight changed lines file tracked by git on my system.
Btw, Thanks for your time n support.

Open Lite-xl via terminal, open git-contained directory, returns:
sulistiono@mxsulis:~
$ lite-xl
fatal: not a git repository (or any of the parent directories): .git

Could it be caused by the plugin can't access git binary file at /usr/bin PATH due the file permission? and if it is the case, how to grant the plugin access?

I find that I can get the plugin works by by firstly cd-ing to git-contained directory then opening Lite-xl via terminal , seems that the plugin need full/absolute path.

is there another simple way workaround to make the plugin work by just launch it via lite-xl UI?
Any help and assistance would be greatly appreciated.

that's strange, because it works on my machine:tm:. I don't really know why it wouldn't work on yours

I have the same issue, though I must say I'm not surprised, since I'm starting Lite-XL from its own folder but accessing files from a completely different directory. I'm assuming process.start runs terminal commands in the directory that Lite-XL was started from?
It looks like you can use the -C option with git commands to run them as if they were in a different folder: https://git-scm.com/docs/git#Documentation/git.txt--Cltpathgt
If I modify the gitdiff-highlight plugin init.lua, around line 60, with this:
local folder = get_filepath_folder(current_doc) -- custom function I added to test
local is_in_repo = process.start({"git", "-C", folder, "ls-files", "--error-unmatch", current_doc})

Then it works—I start getting the diff-highlight bars showing up.


Automatic KIE Server Configuration Not Compatible With Docker Compose 2+

I am testing integration between jBPM Workbench Showcase and KIE Server Showcase Docker images.  I followed the instructions and ran:
docker run -p 8080:8080 -p 8001:8001 -d --name jbpm-workbench jboss/jbpm-workbench-showcase:latest
docker run -p 8081:8080 -d --name kie-server --link jbpm-workbench:kie_wb jboss/kie-server-showcase:6.5.0.Final
This works great!
However, using docker-compose.yml at v2, this does not work. I have both workbench and kieserver subdirectories with Dockerfiles that simply extend the public images. I have not customized the images yet.
version: '2'
services:
workbench:
build: './workbench'
ports:
- "8080:8080"
kieserver:
build: './kieserver'
links:
- workbench:kie_wb
ports:
- "8081:8080"
Further research into docker compose says this is not a bug even though it breaks backward compatibility:
https://github.com/docker/compose/issues/2172
https://github.com/docker/compose/issues/2038
Here is a v1 docker-compose.yml which works correctly:
workbench:
build: './workbench'
ports:
- "8080:8080"
kieserver:
build: './kieserver'
links:
- workbench:kie_wb
ports:
- "8081:8080"
It seems that the auto-configure is based on the host name, however, this will not work in future versions of docker-compose because it uses DNS instead. My suggestion would be to improve the "auto-discovery" feature so it is less dependent on certain implementations. Perhaps an environment variable with the host name might suffice but then, the host name might not be available if the workbench hostname is set dynamically so some other discovery tool/technique might be needed.
With jBPM 7 coming out, I hope maybe this can be addressed since there is even more emphasis on this controller/executor pattern. It has a lot of potential!

I managed to make those work on v 2+ of compose files.
I just compared the container created with the docker run and the one created with compose (using version 3.2), and I figured out this:
39c39
<             "NetworkMode": "default",
---
>             "NetworkMode": "bridge",

So I tried with the following compose file and it worked:
version: '3.2'

services:
  drools-wb:
    image: jboss/drools-workbench-showcase:latest
    ports:
      - 8080:8080
      - 8001:8001
    environment:
      - KIE_DEMO=false
      - M2_HOME=/maven/apache-maven-3.0.4
      - JAVA_OPTS=-Xms256m -Xmx512m -Djava.net.preferIPv4Stack=true
    volumes:
      - /tools/maven:/maven
    network_mode: default
    logging:
      # limit logs retained on host
      driver: "json-file"
      options:
        max-size: "1024k"
        max-file: "1"

  kie-wb:
    image: jboss/kie-server-showcase:latest
    ports:
      - 8180:8080
    environment:
      - JAVA_OPTS=-Xms256m -Xmx512m -Djava.net.preferIPv4Stack=true
    links:
      - drools-wb:kie-wb
    network_mode: default

Note how I'm using a  network_mode: default which I don't see anywhere in the docs.
Anyway, this setting seems to re-enable the use of the default bridge network and the services are discovered.
Anyway, this should not be the way to go. I've tried to use properly the network created by docker-compose, and tried to use the local DNS <IP_ADDRESS> inside the JVM like this:
environment:
      - JAVA_OPTS=-Xms256m -Xmx512m -Djava.net.preferIPv4Stack=true -Dsun.net.spi.nameservice.nameservers=<IP_ADDRESS> -Dsun.net.spi.nameservice.provider.1=dns,sun

But I'm still stuck in discovery - even if the containers can communicate to each other.
Any help appreciated, even if one can use the workaround in the meantime.

I know this was closed some time ago, but it's still a dead end without a reference to a docker-compose example that works with more recent versions of the showcase containers.  Adding this reference to (maybe) save someone else some frustration.  The workbench deployment in the showcase container is named "business-central". The kie-server self-registration works fine in docker-compose if the names match up.
https://github.com/jboss-dockerfiles/business-central/blob/master/docker-compose-examples/jbpm-kie-server.yml


Cannot get dtest to work under cygwin

I try the following under cygwin:
cd test
make clean
cd ../src
make clean
make depend   # with warnings
make
make install
cd ../test
make depend # with warnings
make
./dtest.exe
./dtest.exe list10.txt calc 1
But I dont get any output at all.
To debug, I put a printf line first in the main() function, but still no output, so it does not seem rech main() at all, but just exits.
The exit-code is 0.
Any idea how to troubleshoot this?
I am running on Win-10 -- have you tested this platform?

Copy the makefile you need into the /test folder. Then run make.
As an aside: if you want some output try some functions from the examples page.

Thanks Afwas. Yes, I also have copied the Makefiles, according to instructions -- forgot to mention that.

In the examples directory, I did:
cp Makefiles/Makefile_cygwin ./Makefile
make CalcDDtable
./CalcDDtable
Same result:
No output
exitcode=0
What is going on? :)

Is there a dds.dll (or similar) in the /examples folder? That should be created when you run make inside /src folder.

Yes, the
make install
copied dds.dll and dds.def
to /test and /examples
so that is OK.
I get no build errors, so everything seems ok, except nothing happens when I run .exe file.

You have installed g++ properly? See for example http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/

Yep, looks OK, too.
I have
gcc-g++
make
makedepend
installed.
Not gdb, but I think is not relevant here...
I can try that too, and see.

Installed gdb, too, and rebuilt everything. But didnt change anything, same result.

https://stackoverflow.com/questions/27824139/cygwin-gcc-cannot-find-stdio-h

Thanks Afwas. Everything looks ok here with that link, too?
But have you tested the cygwin-build under Win-10?
There are some tricky issues sometimes with permissions, etc...
Strange I dont get any build-errors or non-0 exit-codes, though.....

I'd have to install Windows to run cygwin. I might find some time after the weekend to set things up.

OK :)
I will also give it a shot with Visual C++ and/or Mingw compiler.

Works fine here (cygwin64 on Win10).

I installed the complete Devel tree in cygwin
I needed to copy dds.dll to /examples
Attached the session
cygwin_session.txt

Thanks Afwsa --- OK, will try full Devel, too, then.
Just checking my understanding here...
I didnt find windres and cvtres on my system.
In the Makefile header-text it says:
# The "windres" and "cvtres" tools are used for putting version
# information into the DLL in a way that Windows can see.
# It is not mandatory, and if you don't have those tools,
# You can remove $(VFILE).obj in the target line below.

What does this mean exactly?
I understood it as changing the line:
O_FILES = $(subst .cpp,.o,$(SOURCE_FILES)) $(VFILE).o
to this:
O_FILES = $(subst .cpp,.o,$(SOURCE_FILES))
Is that correctly understood?
Or did I make a mistake there?

So weird ----- I now rebuilt everything with mingw.
Build goes fine, but when I start dtest.exe I still get exactly the same result. No output. exitcode=0.
How frustrating..... :(

Now rebuilt with cygwin64, full Devel, too -- still same useless result.
Here also how it looks when I run from gdb -- immediately exits with no output.
$ file dtest.exe
dtest.exe: PE32+ executable (GUI) x86-64, for MS Windows
$ gdb dtest.exe
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
...
(gdb) run
Starting program: dtest.exe
[New Thread 3844.0x14e8]
[New Thread 3844.0x16f8]
[New Thread 3844.0xebc]
[New Thread 3844.0xb5c]
[New Thread 3844.0xf10]
[Thread 3844.0xb5c exited with code 0]
[Thread 3844.0xebc exited with code 0]
[Thread 3844.0xf10 exited with code 0]
[Inferior 1 (process 3844) exited normally]
(gdb)

I needed to copy dds.dll into /test

cygwin_session_dtest.txt

Yesw, I know -- otherwise the make job will throw error:
ld: cannot find -ldds
From the src directory, you can also do
make install
which will copy the files for you.

Now tried with Visual-C++, too....
Lo and behold.... that worked!
What an ordeal.... :)

I have the exactly the same problem (Win 10 Pro 64 bit, cygwin64); dds compiles without errors, but there is no output (in test, or example folder). On the same machine, same cygwin64, compiling simple HelloWorld.c program produces required output: Hello World!

Sorry for your trouble.  It should indeed work as described in the first message, and it does on my system.  If somebody finds something to change in the DDS set-up, let us know.  (v2.9.0 will be a bit different with regard to make depend.)


Launcher should be a button

When using Vimium bindings and pressing f, I think the launcher should become an option. I imagine this also impacts accessibility.
Not sure if this is a demo-specific issue or should be baked in to the Launcher icon.

Can you make a more general claim about what doesn't work? I'm not farmilliar with vimium

I think the launcher/close icon should be a button.

I think this would be a nice to have - let's keep it on the back burner.

I notice you actually can't do this on intercom.io either


discovery_document_loaded event fired twice. Once without value for 'info' and once with 'info' provided.

Describe the bug
I'm trying to wrap my head around why the 'discovery_document_loaded' event is fired twice.
The first time the event is fired, the 'info' property in the event has no value while the second time the event is fired the 'info' property contains information about the discovery document jwks.
Is this by design and if so, can someone explain this to me?
Thanks in advance!

@jeroenheijmans  When I run the sample project, I also see two discovery_document_loaded events. The first one doesn't contain any value for the info property while the second event does provide a value for it.

Thanks for the repro / details.
I had misinterpreted and thought you meant two network requests went out, but your title already clearly described slightly different behavior.
It seems like this is by design. Inside loadDiscoveryDocument this bit of code is run:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/99a0ced198d1df2d5f8d51f62032c6f9b9b17f5e/projects/lib/src/oauth-service.ts#L564-L579
But loadJwks itself might also spawn said event:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/99a0ced198d1df2d5f8d51f62032c6f9b9b17f5e/projects/lib/src/oauth-service.ts#L598-L608
So I suppose we can rationalize that:

the first event without details is an indication that the JWKS part of the discovery document was loaded
the second event indicates all the details have been handled

In a perfect world I suppose it would be cleaner to set this up slightly differently (numerous alternatives come to mind), but I don't think it's worth a breaking change to alter this behavior, should any consumers rely on this "special" behavior.

@jeroenheijmans Thank you for investigating.
My current project currently waits until the second event is fired and checks if the info property contains any value in order to determinate whether the discovery document is actually loaded or not, so I can work around it.
Is it an idea to keep this ticket in mind for when another (necessary) breaking change will be introduced so these events could be split up to make it more clear what is actually happening?
Many thanks again for looking into this!

I've changed it from "question" to "feature-request" but personally doubt if it would ever be worth it, unless the library gets completely re-architectured.
I'm happy to leave the issue open for a bit if others want to chip in, but presume at some time we'll close it as "wontfix". Hope that's understandable.
The workaround you mention (checking out the structure of the event to see what's truly up) should give anyone enough flexibility I think.
Thanks for your input and concerns!

Of course, totally understandable and we have a workaround to deal with this.


Extensions: readme could have some margins to the left

Currently the text seems to be too far to the left:

Dup of #8251


Substituting from context bindings?

Can I somehow a HERMIT context (with bindings added) to substitute type variable bindings into a type with variables? I've carefully gathered up bindings, and I want to apply them when I reach a type. I could instead do the substitution eagerly instead of saving the bindings, but then I'd make multiple passes, and I'm going for a very efficient implementation. I could instead add bindings to a Core Subst and pass it explicitly, but it seems redundant with the context mechanism.

I'm not sure I quite understand what you want to do.
If you want to extend the context with your own information, you can use:
http://hackage.haskell.org/package/kure-2.16.12/docs/Language-KURE-ExtendableContext.html
We should have most of our operations abstracted so they will work over an arbitrary ExtendedContext, but let me know if you run into snags. There are probably some helpful projection/injection functions we could write to lift a rewrite over HermitC into a rewrite over ExtendedContext HermitC e.
If you want to substitute, you can use substCoreExpr in HERMIT.Core to invoke GHC`s substitution algorithm. For types, you would call it something like:
foo :: RewriteH Type
foo =
  transform $ \ c ty ->
    let tv = ... some tyvar ...
        ty' = ... some type ...
    return $ substCoreExpr  tv (Type ty') (Type ty)

If you're pulling the tv and ty' directly from the context though, you probably just want to use inlineR with some kind of guard in the front:
isVarsT :: [Var] -> TransformH CoreExpr ()
isVarsT vs = anyM (map (\v -> varT (== v)) vs) >>= guardM

isVarsT some_vs >> inlineR


Support for activation profiles (classic mode)

Overview
Add support for all types of Activation Profiles and CPC profile import/export functionality supported in zhmcclient 0.28.
Proposal
New command group and commands for reset activation profiles:

resetprofile list CPC - List the reset activation profiles in a CPC
resetprofile show CPC PROFILE - Show the details of a reset activation profile
resetprofile update CPC PROFILE - Update properties of a reset activation profile

New command group and commands for image activation profiles:

imageprofile list CPC - List the image activation profiles in a CPC
imageprofile show CPC PROFILE - Show the details of an image activation profile
imageprofile update CPC PROFILE - Update properties of an image activation profile

New command group and commands for load activation profiles:

loadprofile list CPC - List the load activation profiles in a CPC
loadprofile show CPC PROFILE - Show the details of a load activation profile
loadprofile update CPC PROFILE - Update properties of a load activation profile

New commands for CPCs:

cpc import-profiles CPC - Import activation and system activity profiles from SE hard drive
cpc export-profiles CPC - Export activation and system activity profiles to SE hard drive

Support for activation profiles has been added in PR #499.
The remaining work for this issue is import/export of profiles.


Unable to sign in an Azure account on Linux

Storage Explorer Version: 1.17.0
Build Number: 20210106.4
Platform/OS: Linux Ubuntu18.04 / MacOS Catalina
Architecture: ia32
Regression From:  Previous release(1.17.0)
Steps to Reproduce

Extract 'StorageExplorer-linux-x64.tar.gz' on Linux.
Launch Storage Explorer -> Click 'Open Connect Dialog'.
Select 'Add an Azure Account -> Azure' -> Sign in an Azure account.
Check whether the account sign in successfully.

Expected Experience
The account sign in successfully.
Actual Experience
An error 'Unable to sign in...' shows in Activities.

Details:

Additional Context

This issue also reproduces on Linux when using 'device code flow sign-in' to sign in.
This issue reproduces on Mac when using 'device code flow sign-in' to sign in.
This issue doesn't reproduce when signing in an Azure China and Black forest account.

This issue doesn't reproduces after enabling MASL to sign-in.

This issue doesn't reproduces after enabling MASL to sign-in.

Based on what I've read so far about some new company policies, this is expected.

Based on what I've read so far about some new company policies, this is expected.


Return null in textDocument/diagnostic handler

While the specification isn't clear here, Neovim apparently had issues dealing with the empty object response. And since all the other editors seem to handle a null response too, let's just go with that instead.
Fixes #810

I've tried this branch and can confirm that Neovim could handle the response gracefully. The reported error message doesn't pop up anymore.

@folliehiyuki thanks!


Crypto: get-keypair-from-seed (ED25519)

Deterministic key pair generation is predicated upon using so-called seeds, i.e. 32 bytes of entropy / randomness.  Such seeds are often stored within hardware wallets.  Therefore the key pair factory needs an overloaded function that accepts the seed.

Reviewing the python SDK implementation may be of use.

In fact, the number of people using java may be more, so it is also very good to implement it in java

When this feature will be release? It almost 1 month later. I need this function for dev. Any help can I do?


:sparkles: feat(component): Date of birth field

Summary
We are using different design approaches for asking users for their date of birth. None of them use the best practice.

In some older applications we are using dropdowns (e.g., car insurance)
-Dropdown lists are cumbersome to use.
In some we include  three text entry fields (e.g., household insurance)
-Approach is good, but the design was not made explicitly for this
In some we use two interaction style, drop down & text field (e.g., Ford standalone solution)
-Using two interaction style increases users cognitive load and the likelihood of user error

Research from gov.uk has shown that three separate number fields, with text labels assigned is the most usable pattern (easy on mobile and desktop + low error rate).
https://designnotes.blog.gov.uk/2013/12/05/asking-for-a-date-of-birth/
Use Case
We need the date of birth field for all calculators. Currently, we are using it e.g., for Bank Now/Ford
Preferred Solution
Show three separate fields:

Add a hint below showing the right format for the fields
Do not use auto-tab between the three inputs, research from UK gov showed that users do not expect this behaviour (https://github.com/alphagov/govuk-design-system-backlog/issues/42)
-We need to support the behavior of the Backspace button across the input
The width of field should be adjusted to the amount numbers that are needed to be entered and should not be full width

Additional Information
Further usfull information: https://www.smashingmagazine.com/2021/05/frustrating-design-patterns-birthday-picker/
Will this feature introduce breaking changes?
None
Code of Conduct

[X] I agree to follow this project's Code of Conduct

will be done with #695


snakemake errors running demo

Hi ProteinCartography team,
I'm on an M2 mac running into some issues trying the snakemake demo. I have the conda environment all set up and activated. When I run the snakemake command:
snakemake --snakefile Snakefile --configfile demo/config_actin.yml --use-conda --cores 6
I receive:
CreateCondaEnvironmentException: Could not create conda environment from /Users/kylekimler/Projects/.../ProteinCartography/envs/run_blast.yml: Command: mamba env create --quiet --file "/Users/kylekimler/Projects/.../ProteinCartography/.snakemake/conda/b1b83db7a7ba8aea84a0e931f8dfe832_.yaml" --prefix "/Users/kylekimler/Projects/.../ProteinCartography/.snakemake/conda/b1b83db7a7ba8aea84a0e931f8dfe832_" Output: Could not solve for environment specs The following package could not be installed └─ blast 2.14.0**  does not exist (perhaps a typo or a missing channel).
I've tried installing foldseek and blast separately and adding to $PATH but it did nothing to help. Any suggestions?

Hey Kyle, thanks for reaching out! We've had similar issues caused by conflicts between different versions of conda that work on different processors (Apple vs. Intel silicon).
Could you share the text that prints when you run conda info from your command line interface (e.g. Terminal)?

Hello, I have a similar issue with the demo not being able to install Foldseek. I am using a 2021 MacBook Pro 14in M1 Pro.  Here is the output from running "conda info":
active environment : cartography_tidy
active env location : /Users/jackshanahan/miniconda3/envs/cartography_tidy
shell level : 2
user config file : /Users/jackshanahan/.condarc
populated config files :
conda version : 23.7.4
conda-build version : not installed
python version : 3.11.4.final.0
virtual packages : __archspec=1=arm64
__osx=13.5=0
__unix=0=0
base environment : /Users/jackshanahan/miniconda3  (writable)
conda av data dir : /Users/jackshanahan/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-arm64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/jackshanahan/miniconda3/pkgs
/Users/jackshanahan/.conda/pkgs
envs directories : /Users/jackshanahan/miniconda3/envs
/Users/jackshanahan/.conda/envs
platform : osx-arm64
user-agent : conda/23.7.4 requests/2.29.0 CPython/3.11.4 Darwin/22.6.0 OSX/13.5
UID:GID : 504:20
netrc file : None
offline mode : False

Hi Dennis, thanks, here's mine as well
active environment : cartography_tidy
active env location : /Users/kylekimler/miniconda3/envs/cartography_tidy
shell level : 2
user config file : /Users/kylekimler/.condarc
populated config files :
conda version : 23.5.2
conda-build version : not installed
python version : 3.11.4.final.0
virtual packages : __archspec=1=arm64
__osx=13.4=0
__unix=0=0
base environment : /Users/kylekimler/miniconda3  (writable)
conda av data dir : /Users/kylekimler/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-arm64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/kylekimler/miniconda3/pkgs
/Users/kylekimler/.conda/pkgs
envs directories : /Users/kylekimler/miniconda3/envs
/Users/kylekimler/.conda/envs
platform : osx-arm64
user-agent : conda/23.5.2 requests/2.29.0 CPython/3.11.4 Darwin/22.5.0 OSX/13.4
UID:GID : 501:20
netrc file : None
offline mode : False

Thanks for sending over this info!
Based on other similar issues we've had, I think this issue is caused by installing the macOS Apple M1 64-bit version of conda. It should be resolved by instead installing the macOS Intel x86 64-bit version of conda (see this page). I think the error is thrown because bioconda (which contains blast) doesn't yet support osx-arm64 architecture.
Even if you are running an M1 machine, you should be able to run the Intel x86 64-bit version of conda thanks to Rosetta, which should already be installed on your machine. You may have to open your Terminal or other CLI app using Rosetta, as described in the link above.
Let me know if this solves the issue; we can update our README to include more precise instructions for installing conda.

This method works great! Thank you! And thanks for teaching me about Rosetta


The update was never listed and therefore was not available

@rsanjuan87 Thanks for the PR. The update command was removed because it updates through pub global, and some people install through choco, brew, or the install.sh script. Until we can adjust the message depending on the method of installation, it's a bit confusing...


Resolve: Unexpected token export

How resolve this error: Unexpected token export ?
module: {
  loaders: [
    {
      test: /\.js$/,
      exclude: /(node_modules|bower_components)/,
      loader: 'babel-loader?presets[]=es2015'
    }
  ]
}

src file:  import {PerspectiveCamera} from 'three/build/three.modules';

There's not enough information. Can you check the issue template for instructions?

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template, or open a new issue.


Added missing WLC includes

If the WLC headers aren't installed globally (e.g. somewhere in your home directory rather than in /usr/includes), despite -DWLC_INCLUDE_DIRS being passed correctly to cmake, make fails.
Apparently, the CMakeList.txt in some subdirectories are missing WLC_INCLUDE_DIRS in their include_directories() directive.

None of these subdirectories use WLC...

Then why do I get following error, unless I add WLC_INCLUDE_DIRS to swaybg/CMakeList.txt?
[ 89%] Building C object swaybg/CMakeFiles/swaybg.dir/main.c.o
In file included from /tmp/sway/swaybg/main.c:14:0:
/tmp/sway/include/util.h:6:21: fatal error: wlc/wlc.h: No such file or directory
 #include <wlc/wlc.h>
                     ^
compilation terminated.
swaybg/CMakeFiles/swaybg.dir/build.make:62: recipe for target 'swaybg/CMakeFiles/swaybg.dir/main.c.o' failed
make[2]: *** [swaybg/CMakeFiles/swaybg.dir/main.c.o] Error 1
CMakeFiles/Makefile2:625: recipe for target 'swaybg/CMakeFiles/swaybg.dir/all' failed
make[1]: *** [swaybg/CMakeFiles/swaybg.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

(It seems that code in these subdirectories includes headers that in return include WLC headers.)

The actual problem then seems to be that "include/util.h" includes wlc/wlc.h without actually needing it.

If that is the case, feel free to remove the redundant includes. That should work as well.

I'm suggesting your remove them and update your pull request.

There you go.

Thanks!


Update dependencies and workflows

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (1d7e374) to head (c1bec07).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #120   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           34        34
  Lines          764       764
  Branches        33        33
=========================================
  Hits           764       764

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


BTPS Integration

Leaving this here to address later—sorry if I am bad at writing issues.
BTPS Correction is used to convert flow and volume measured at ambient conditions to the conditions within the lungs. Ambient conditions are called ATP (ambient temperature, pressure); the conditions within the lungs are called BTPS (body temperature, pressure, water vapor saturated).
Currently, the flow measurement and integration does not correct for the fact that the inspiratory flow is generally at atmospheric temperature, pressure, and humidity, while the expiratory flow has been saturated with moisture in the patient as well as increased in temperature. This has not been an issue during prototyping as there is no heat or mass transfer in the test lung.
The following link describes a standard correction to account for this fact.
https://d3cumwfln92soa.cloudfront.net/8a716ac3fd123ce0becd7b56596582d4fc4c0c47/appnote-btps-correction-v01r.pdf
I believe by my review this can be implemented solely in software without additional instrumentation, but only if the user enters approximate values for altitude and current temperature. We may later want to add sensors, I may make another issue on the hardware side here, as I believe this can be relatively easily (at least, pressure and humidity) accounted for in the circuit board with an additional sensor.

Related HW issue: https://github.com/RespiraWorks/SystemDesign/issues/17

sorry if I am bad at writing issues

This is a fantastic issue.  Thanks, Ethan.
One thing to note, volume zeroing will "fix" this.  The problem is, volume will be off by 10% (if I'm reading this document correctly), and the shape of the volume curve also won't look quite right.

Related to #652

Related to #652

We have to way to confirm that our corrections are correct without having humidifier, heater and probably more sophisticated test equipment.


Update Robinhood

Backstory
Tried to delete - live chat support said they can not delete or disable my login because they have to continue to allow me access to my records.  They do offer a self service option to delete marketing info they've collected.  They also allow you to delete individual accounts like your brokerage account but not your login.
Data

name: Robinhood
url: https://robinhood.com/contact
difficulty: impossible
notes: Support will not disable / delete your login.  Individual brokerage or crypto accounts can be deleted as well as marketing information through self-service option.

Thanks for your contribution!


Generalize analyze/sample tests to resolve CI failures

Looks like CI failures cropped up with the release of Dask 2022.8.0, which I imagine made some subtle changes to the behavior of Series.quantile and DataFrame.sample.
The broken tests both were doing some pretty specific checks that didn't seem too resistant to breakage (e.g. asserting the exact value / length for fixed random results), so I went ahead and reimplemented these tests so that instead of checking against given values, we are now asserting that dask-sql's implementation matches that of Dask, which should hopefully make it so these tests don't fail as often moving forward.

Codecov Report

Merging #668 (30ff264) into main (712a2af) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #668      +/-   ##
==========================================
+ Coverage   88.48%   88.62%   +0.14%
==========================================
  Files          69       69
  Lines        3507     3507
  Branches      710      710
==========================================
+ Hits         3103     3108       +5
+ Misses        317      308       -9
- Partials       87       91       +4

Impacted Files
Coverage Δ

dask_sql/_version.py
34.00% <0.00%> (+1.44%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


feat: Implementing last user searches functionality.

Implementing a GitHub username search feature on the page. This feature stores the last searched username in local storage and provides suggestions to the user based on their search history.
Suggestions in the below of input fields :

Ready to work in it.

Assigning to @SAGARSINGH-1 as he created the issue.

hey @thtauhid is this good or we just redirect the user to that user Profile page :
https://github.com/thtauhid/open-profile/assets/81561733/072c0e44-c2d7-4a7c-9583-2f67ca23143f

The search history needs to look a bit more elegant.
When clicked, it should directly go to the user's profile.

Hey @thtauhid check the referenced PR

Hi @SAGARSINGH-1 checked.


update CHANGELOG.md format

This PR improves the formatting and consistency of CHANGELOG.md.

Pull Request Test Coverage Report for Build 2110

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.0%) to 96.675%

Totals

Change from base Build 2104:
1.0%

Covered Lines:
9376

Relevant Lines:
9597

💛  - Coveralls


⚠ Bofrost.be has degraded performance

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

HTTP code: 200
Response time: 2212 ms

Resolved: Bofrost.be performance has improved in 7eb6789.


feat: allow optional duration parameter when creating proposal

Lets put an upper bound on the length of a vote

which is?

Something reasonable, like 1 months equivalent? That is already pretty long, I don't see any reason to have anything longer than that (depends on default ofc)


Accordion - it's not clear how section expanded is stored in session, and id has to be unique across the site

We store whether a user expanded a section, and use 'id' for that. It's not clear from the guidance that we do that, so it's unexpected, and that means its not clear that 'id' has to be unique across the whole site. There is some guidance in the nunjucks options but people might not see that.
In addition this means 'expanded' option may not work as expected - as the stored value will override it.

Is this the same as #1073?

Is this the same as #1073?

I feel like the guidance (particularly the nunjucks option for expanded) could be clearer - it gave me confidence that there was an option to set the expanded state, but this didn't work, and doesn't work as expected.
I also feel like there should be a way to set the state on load - but this doesn't seem possible.
For prototyping, it's hard to test the expanded option. It didn't work when I tried it.
I think because my process was:

Copy the example from the design system
Save
Kit autorefreshes the page
I possibly then tried the accordion to check it worked
Add expanded: true to an option
Kit autorefreshes the page
Section is closed / expanded doesn't work

I feel like the guidance (particularly the nunjucks option for expanded) could be clearer - it gave me confidence that there was an option to set the expanded state, but this didn't work, and doesn't work as expected.
I also feel like there should be a way to set the state on load - but this doesn't seem possible.
For prototyping, it's hard to test the expanded option. It didn't work when I tried it.
I think because my process was:

Copy the example from the design system
Save
Kit autorefreshes the page
I possibly then tried the accordion to check it worked
Add expanded: true to an option
Kit autorefreshes the page
Section is closed / expanded doesn't work

Is this the same as #1073?

I originally raised this as I wanted to set an accordion section as expanded on load - and following the design system docs did not work. So whilst one reason for the issue might be about ID's, for me the issue is clarity around how the expanded state works / updating it so you can set the state on page load.

Is this the same as #1073?

I originally raised this as I wanted to set an accordion section as expanded on load - and following the design system docs did not work. So whilst one reason for the issue might be about ID's, for me the issue is clarity around how the expanded state works / updating it so you can set the state on page load.

Since this issue first came up, we've published updated guidance:

If the user leaves and then returns to the page, the accordion component will remember if sections were opened or closed. You can configure sections to start and stay open, but not stay closed.

@joelanman Does that address your opening comment? Or should we also mention the unique ID?

Current wording of Nunjucks expanded option:

Whether the section should be expanded upon initial load or not. Defaults to false.

To be clearer, we should probably begin the Description with "Sets whether..."
Also, is this definitely all users have to do to set the state on page load?

We've now updated the accordion guidance with info about session storage behaviour.


Make a payment in PHP

Cannot make a payment with php with exact code provided in the examples. Shows error:
Argument 1 passed to Judopay\Helper\ArrayHelper::get() must be of the type array, null given, called in /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Exception/ApiException.php on line 46 and defined in /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Helper/ArrayHelper.php:18\nStack trace:\n#0 /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Exception/ApiException.php(46): Judopay\Helper\ArrayHelper::get(NULL, 'category', 0)\n#1 /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Request.php(90): Judopay\Exception\ApiException::factory(Object(GuzzleHttp\Exception\ClientException))\n#2 /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Model.php(125): Judopay\Request->post('transactions/pa...', Array)\n#3 /home/ftp/ftpuser/chargesurfingwpsite/wp-content/themes/gtl-multipurpose-chargesurfing/chargesurfingapi_util.php(43): Judopay\Model->create()\n#4 /home/ftp/ftpuser/chargesurfingwpsite/wp-content/themes/gtl-multipurpose-chargesurfing/chargesurfinga in /home/chargesurfing/vendor/judopay/judopay-sdk/src/Judopay/Helper/ArrayHelper.php on line 18

Hi @jpaquete  , we are currently looking into this error, and we will relay back by email

I am have same issue right now

Catchable fatal error:  Argument 1 passed to Judopay\Helper\ArrayHelper::get() must be of the type array, null given, called in /Applications/XAMPP/xamppfiles/htdocs/judopay/vendor/judopay/judopay-sdk/src/Judopay/Exception/ApiException.php on line 47 and defined in /Applications/XAMPP/xamppfiles/htdocs/judopay/vendor/judopay/judopay-sdk/src/Judopay/Helper/ArrayHelper.php on line 18

aftabafzaal. Still no concrete resolution for this problem. I suspect the main branch is broken. I was told by dev team member that this situation was not reproducible on their side... Glad someone has the same issue. May be this time it will get fixed ;)

Do you guys have any feedback on this? When is this going to be fixed? Thx in advance. I fixed by setting up the Client request like this:
$client = new Client([
'base_uri' => $configuration->get("endpointUrl"),
'verify' =>  SGL_LIB_DIR . '/vendor/judopay/judopay-sdk/cert/digicert_sha256_ca.pem'
]);
in this file: https://github.com/Judopay/Judo-PHP/blob/master/src/Judopay.php

@zggonzalez  Thank you , can you please submit this change for PR , so our Dev team can review it ?
Many Thanks

@freddy-onco Thanks for the follow up and support, I have made a PR. kind regards,
Hamza

Thx guys.

Thank you @hamza-mostafa   ,  @zggonzalez  PR approved and merged

It would be great to have 3DS2 implemented in this library. Do you have any timeline for this? Thx in advance.

Issue resolved thanks to this PR: https://github.com/Judopay/Judo-PHP/pull/41


Change the name of the ERD image

Desired Outcome
When I go to https://github.com/redhat-beyond/Hotails/tree/main/resources/documents I expect to see the DFD and the ERD
Implemented Changes
Changed the ERD image name so there no spaces
Connected Issue/Story
Resolves #51
Definition of Done
Both DFD and ERD are visible in the readme
Changelog

[ ] The CHANGELOG has been updated
[x] This PR does not include user-facing changes and doesn't require a
CHANGELOG update

Test coverage

[ ] This PR includes new unit and integration tests to go with the code
changes
[x] The changes in this PR do not require tests

Documentation

[x] Docs (e.g. READMEs) were updated in this PR
[ ] A follow-up issue to update official docs has been filed here: insert issue ID
[ ] This PR does not require updating any documentation

Signed-off-by: Jenia Sakirko<EMAIL_ADDRESS>

Nice catch


Add support for Rutube.Sport links

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2022.08.19 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and am willing to share it if required

Region
Russia
Example URLs
https://rutube.sport/video/reyndzhers-psv-obzor/
https://rutube.sport/video/fedor-emelyanenko-vs-andrei-orlovskii/
Provide a description that is worded well enough to be understood
Rutube.Sport is an unsupported subsite of already supported Rutube.ru, so to download videos from there I have to manually get the direct link to the video every time, while obviously I'd prefer that yt-dlp would do the extraction for me.
Example links (apparently no geoblock, also no login is required):
https://rutube.sport/video/reyndzhers-psv-obzor/
https://rutube.sport/video/fedor-emelyanenko-vs-andrei-orlovskii/
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://rutube.sport/video/reyndzhers-psv-obzor/', '--no-check-certificate']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.08.19 [48c88e0] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg git-2022-07-31-e725c5e24 (setts)
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.19, Current version: 2022.08.19
yt-dlp is up to date (2022.08.19)
[debug] [generic] Extracting URL: https://rutube.sport/video/reyndzhers-psv-obzor/
[generic] reyndzhers-psv-obzor: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] reyndzhers-psv-obzor: Extracting information
[debug] Looking for Brightcove embeds
[debug] Looking for embeds
ERROR: Unsupported URL: https://rutube.sport/video/reyndzhers-psv-obzor/
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1442, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1518, in __extract_info
  File "yt_dlp\extractor\common.py", line 666, in extract
  File "yt_dlp\extractor\generic.py", line 3077, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://rutube.sport/video/reyndzhers-psv-obzor/

Why we should add russian site in yt-dlp?
No war! Slava ukraine!


link to z-library is dead

z-library链接失效
问题描述：由于美国对z-library网站服务器多个使用的域名封杀导致现文档对其的链接失效

你们可以 file 一个 PR 修复这个挂掉的链接

what's a PR?

Pull Request

Raised PR to update z-lib link to the following:

新网站：z-lib.is

thanks, @xiaotianxt

@ArtieLiu I'm not sure why your PR did not working, and I made a new one, with it's Tor location added.
@xiaotianxt Thanks a lot.

hi @LingkKang, sorry for the closed pr, later I made another one to fix the broken link which updated to z-lib.is. Maybe that link was baned for a few days just after that pr was merged.

@ArtieLiu Alright.
@PKUFlyingPig Maybe you can close this issue now.


Performance degradation with large multi gets

It appears that multi-gets with large number of keys are substantially slow with nutcracker.
In this example, we talk to nutcracker listening on shady2:11222 . Its pool consists of a single memcached server listening on shady2:22122. We also directly talk to another mc server which is listening on shady2:11211.
In [1]: def get_keys(num):
   ...:     s = 'a' * 100
   ...:     return [s + str(i) for i in xrange(num)]
   ...:

In [2]: keys10 = get_keys(10)

In [3]: keys100 = get_keys(100)

In [4]: keys1000 = get_keys(1000)

In [5]: keys10000 = get_keys(10000)

In [6]: import cmemcached

In [7]: mc = cmemcached.Client(['shady2:11222'])

In [8]: %timeit mc.get_multi(keys10)
1000 loops, best of 3: 651 us per loop

In [9]: %timeit mc.get_multi(keys100)
100 loops, best of 3: 2.5 ms per loop

In [10]: %timeit mc.get_multi(keys1000)
10 loops, best of 3: 64.8 ms per loop

In [11]: %timeit mc.get_multi(keys10000)
1 loops, best of 3: 181 ms per loop

In [12]: non_nc_mc = cmemcached.Client(['shady2:11211'])

In [13]: %timeit non_nc_mc.get_multi(keys10)
1000 loops, best of 3: 463 us per loop

In [14]: %timeit non_nc_mc.get_multi(keys100)
1000 loops, best of 3: 782 us per loop

In [15]: %timeit non_nc_mc.get_multi(keys1000)
100 loops, best of 3: 2.26 ms per loop

In [16]: %timeit non_nc_mc.get_multi(keys10000)
100 loops, best of 3: 14.2 ms per loop

In [17]:

Is it usual? Is it possible to configure nutcracker to improve performance? ( I am already running nutcracker with 64K mbuf size and  upto100 server_connections)

I strace my apache process:
connect(60, {sa_family=AF_FILE, path="/var/run/nutcracker/nutcracker_goshop.redis-s0100.51fanli.it_6605.sock"}, 72) = 0 <0.000030>
fcntl(60, F_SETFL, O_RDWR) = 0 <0.000050>
setsockopt(60, SOL_TCP, TCP_NODELAY, [1], 4) = -1 EOPNOTSUPP (Operation not supported) <0.000010>
poll([{fd=60, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout) <0.000010>
sendto(60, "*2\r\n$7\r\nHGETALL\r\n$41\r\ngoshop:secondtaoke:item:time:521832288205\r\n", 65, MSG_DONTWAIT, NULL, 0) = 65 <0.000012>
poll([{fd=60, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout) <0.000043>
poll([{fd=60, events=POLLIN|POLLERR|POLLHUP}], 1, 120000) = 1 ([{fd=60, revents=POLLIN}]) <1.877846>
recvfrom(60, "*0\r\n", 8192, MSG_DONTWAIT, NULL, NULL) = 4 <0.000022>
Why poll(POLLIN) after sendto consume amazing 1.877846s?
My configuration:
--mbuf-size is 4096000
listen: /var/run/nutcracker/nutcracker_redis.51fanli.it_6381.sock 0777
hash: md5
distribution: modula
auto_eject_hosts: false
server_connections: 1
preconnect: true
backlog: 4096
timeout: 500
redis: true
servers:
- redis.51fanli.it:6381:1
$ nc <IP_ADDRESS> 22222|python -m json.tool|grep curr_connections
"curr_connections": 1251,


docs(pdk) add more docs for the new log serializer function

@gszr We have a few other commits on the tip of next that need to be cherry-picked into the 2.1 release branch. Maybe it is better to keep them together so that we keep track of which ones need to be cherry-picked.
But if you still believe PR against the release branch is better then I don't have strong feeling about it either :)

NVM, I will rebase this PR against the release branch for now, we can cherry pick the next commits later.

NVM, I will rebase this PR against the release branch for now, we can cherry pick the next commits later.
One of the commit came from next: 612c365.

There's no need to cherry-pick them into next, as they will eventually arrive in next (once 2.1 is out, release/2.1 is merged into master, then master is merged into next, as we regularly do).

@gszr Yeah I realized that. Although we do need to cherry pick the above commit because the second commit was based on it.


Suggestion to Include 'Salvo' in Framework Recommendations

I'd like to extend my gratitude for developing hyper , it's a  tool that's been essential for the Rust community.
Could you consider adding salvo to your list? It's a user-friendly server framework that relies on hyper.Including salvo might help users exploring their server options in Rust. :)

Thanks for the kind words :)
I'd personally rather not grow a list of recommendations, generally, and leave that up to something like arewewebyet.rs and other things.

Thanks for the kind words :)
I'd personally rather not grow a list of recommendations, generally, and leave that up to something like arewewebyet.rs and other things.

Thanks for the reply and have a great day!


Limit Angular UI-Bootstrap Typeahead to on-select and object property

@pkozlowski-opensource
Please see the code snippet below.
<input type="text" class="topic_select" id="selectTopic" ng-model="topicsPopulate" uib-typeahead="topic as topic.name for topic in topics|filter:{name:$viewValue}:startsWith" typeahead-show-hint="true" typeahead-min-length="0" placeholder="Select a Topic" typeahead-on-select="TopicChanged(topicsPopulate)">
The startsWith function basically filters based on the starting letters of each topic . But i have a small problem here, i am still able to type characters even after selecting a topic, how do i stop this from happening? Meaning to say that, i should not be able to type any other characters apart from the filtered names and i should not be able to add new character after onselect but i am able to remove the topic and type for another topic.
Plus i must be able to type only those letters present in topic name, for ex: when i type EC, the dropdown shows eclipse as an option, and i must not be able to type ECG, instead i have to limit my typing to the letters present in that topic name. I have posted this on Stackoverflow, http://stackoverflow.com/questions/39342584/limit-angular-ui-bootstrap-typeahead-to-on-select-and-object-property

I have posted this on Stackoverflow, http://stackoverflow.com/questions/39342584/limit-angular-ui-bootstrap-typeahead-to-on-select-and-object-property

This is the right forum for those types of questions, no need to cross-post here.

Hello @pkozlowski-opensource
I don't see any update on http://stackoverflow.com/questions/39342584/limit-angular-ui-bootstrap-typeahead-to-on-select-and-object-property


Forward port main into from-ash-we-rise

Include new developments from earlier branches like Tenant cleanup and Device Forwarder integration

Closing in favor of a new PR doing the same thing


Migrate to @vercel/ncc

What this PR does / Why we need it
Since @zeit/ncc is no longer maintained, we will migrate to @vercel/ncc.

@micnncim I apologize for the inconvenience, but please review this update, as we cannot build without it.


Bug: Unable to import million/block (Module not found: Error: Can't resolve 'packages/million/m')

Describe the bug
Getting following errors while importing Block from million (packages doesn't exist)

 Module not found: Error: Can't resolve 'packages/million/m'

 resolve as module
      /node_modules/million/dist/node_modules doesn't exist or is not a directory
      /node_modules/million/node_modules doesn't exist or is not a directory
     /node_modules/node_modules doesn't exist or is not a directory

To Reproduce
import { block } from 'million/block';

Expected behavior
Should work as docs

Screenshots
No response
Operating System
Ubuntu
Browser
FireFox
Additional context
It's the simple webpack 5 project, other than Block all methods works from million.js

Fixed in #169, pushing new patch soon


🌾 Natural Language Processing (NLP)

Hey, I would like to work on this issue. Please give a description on what needs to be done

Hey, I would like to work on this issue. Please give a description on what needs to be done

Hey, what's shaking? Sorry for the delay, I'm a little busy nowadays and only gotta time to answer you now.
About this issue, it would be some Jupyter Notebooks in Python explaining, step-by-step the theory and practice about NLP. Such as tokenizations, grams, corpus and the models!!
The notebooks should follow the structure of these ones: https://github.com/CSFelix/data-science-studies
If you have some time, I would be really glad to accept your contributions 😊😊


[WIP] Docs style guide repack

WIP - DO NOT MERGE
continuation of PR #1244
Based on docs-repack which hasn't landed yet. Don't worry about all those commits. It will be fine. Just  start adding stuff here.
googlebot: John and Jesus approve of this PR for his commits

closed by 3f50248 in PR #1260


Retry tests only on CI server

Retrying all tests by default is not great when developing tests. This behavior could be missed by a developer and result in new flakiness being introduced. This change will only enable retries when the "CI" environment variable is present.
I've tested this prevents retries in a dev environment, and I've tested that if I set the CI environment variable then it does retry, but I haven't actually tested it in the real Jenkins environment. However, the code here was copied straight from the retry plugin's README, and this Jenkins page does suggest that the environment variable is set.
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff
[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #5349 (0686b4e) into main (bdb8efe) will increase coverage by 0.19%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #5349      +/-   ##
============================================
+ Coverage     70.86%   71.06%   +0.19%
- Complexity    58068    58197     +129
============================================
  Files          4710     4710
  Lines        277508   277508
  Branches      40164    40164
============================================
+ Hits         196661   197198     +537
+ Misses        64663    64175     -488
+ Partials      16184    16135      -49

Impacted Files
Coverage Δ

.../opensearch/search/profile/ProfileShardResult.java
28.57% <0.00%> (-60.72%)
:arrow_down:

...ile/aggregation/AggregationProfileShardResult.java
55.55% <0.00%> (-40.75%)
:arrow_down:

...java/org/opensearch/threadpool/ThreadPoolInfo.java
56.25% <0.00%> (-37.50%)
:arrow_down:

...ava/org/opensearch/search/profile/NetworkTime.java
31.57% <0.00%> (-36.85%)
:arrow_down:

...functionscore/ExponentialDecayFunctionBuilder.java
40.00% <0.00%> (-32.00%)
:arrow_down:

...opensearch/index/reindex/BulkByScrollResponse.java
48.38% <0.00%> (-29.04%)
:arrow_down:

...ndex/seqno/RetentionLeaseBackgroundSyncAction.java
37.50% <0.00%> (-26.79%)
:arrow_down:

.../search/profile/query/QueryProfileShardResult.java
65.00% <0.00%> (-25.00%)
:arrow_down:

...ensearch/search/profile/query/CollectorResult.java
75.34% <0.00%> (-24.66%)
:arrow_down:

...a/org/opensearch/search/profile/ProfileResult.java
72.58% <0.00%> (-24.20%)
:arrow_down:

... and 507 more

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


Broadlink RM4 Pro

Not sure whether this is the place, but maybe someone can help.
I have been trying to add the following plugin: https://www.npmjs.com/package/homebridge-broadlink-rm4/
Added successfully, but my RM4 PRO is not detected, device 6026 not recognized.
Is there any solution?
Thanks.

Hi, I was able to recogize RM4, but Learn Code still not working. To recognize your device just try to remove RM4 from the Broadlink app, then reset it and then Add again but stop BEFORE adding device to room. Just close the app.


feat(setting): lazy update for volume-related settings

For settings taint-toleration, guaranteed-instance-manager-cpu, system-managed-components-node-selector, and priority-class, users can customize the settings, and the settings will only take effect when all volumes are detached.
Ref: longhorn/longhorn#7173

This PR only partially tackle immediate setting update before waiting for all volumes detached first.
However, it missed a primary part:

When changing any volume-related Pod configuration (ex: IM pod, share manager pod, upcoming object storage/s3gw pod) like priority class, the change will only take effect when doing volume upgrade or volume reattachement.

Let's continue this in LEP.

@mantissahz Let's just need to do in 1.6.0.
https://github.com/longhorn/longhorn-manager/pull/2411#discussion_r1440604306

I mean keeping your original implementation instead of introducing extra change to setting CR. Let's sync up later.

@mantissahz Please verify the e2e, the expected behavior should be.

When a danger zone setting is updated, it will persist, even though there are attached volumes.
The updated setting will not take effect if three are attached volumes. 3 cases here to apply the settings to user-deployed/system-managed pods.

It will be retried until being removed from the queue.
Each setting will be revisited every 60 minutes (in the current setting controller resync time), so it will be automatically retried again.
Otherwise, the setting will be only applied when the pods (user & system managed pods) are deleted and restarted. Users can also re-update the setting to trigger the process again.

For an IM pod especially, if there are no running instances on a running IM pod, it will be deleted and recreated to apply the new setting.

cc @derekbit , this is also related to v1/v2 data engine settings.


Copy the rules from eslint for markup

Description
You need to take all the rules from eslint and try to adapt them to the markup.
if (2) { // no-constant-condition
    "foo";
} else if (3) { // no-constant-condition
    "bar";
} else if (3) { // no-constant-condition no-dupe-else-if
    "baz";
}

{#if 2}

foo

{:else if 3}

bar

{:else if 3}

baz

{/if}

Perhaps you need to try to convert the markup to (pseudo) regular js and, in addition to the rules of the svelte, apply the rules for js to it (including other plugins and future ts support in the markup).

Thank you for posting this issue.
Since template logic blocks are different from JavaScript, I think we need to create rules like svelte/no-constant-condition separately.
If you think there is a rule we need, please post rule proposal in an new issue.

Perhaps you need to try to convert the markup to (pseudo) regular js and, in addition to the rules of the svelte, apply the rules for js to it (including other plugins and future ts support in the markup).

If you want to try out the idea of linting from pseudo JavaScript code, please create your own new plugin and try it out, as the mechanism is different from this plugin.


TypeError: 'builtin_function_or_method' object is not iterable

This problem cannot be solved. What's the solution? Or what kind of problem did it cause?

I solved  this problem  by putting '' totensor()" behind "center_crop" in transforms function


Updated project name and default QSS3KeyPrefix

Description of changes: Updated project name and default QSS3KeyPrefix
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/do-e2e-tests


Remove version: Magnate.SpeedManager version 3.8.1

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://file2.speedtest.cn/pc/win64/网速管家 Setup 3.8.1.exe
Response status code does not indicate success: 404 (Not Found).
(Automated message - build 896)


Finetuning of Kaleido-BERT for Fashion Captioning

Thanks for sharing this interesting work.
Would you please share how "Kaleido-BERT" has been fine-tuned on captioning task?
Have you used separate decoder for generation or "Kaleido-BERT"  encoder only?

Encoder only, and we use a very pool method: [Mask] all then predict them.
You can easily defeat the existing result if try to use a useful decoder.

During the fine-tuning on the image captioning task, Did you use any pre-training task (for e.g., AKPM, TIM and AMLM)  along with the fashion captioning task i.e., given an image ( i.e., sequence of image patches generated by "Kaleido Patch Generator") predict the corresponding caption?


Failed to create GCP bucket, error: "404 The requested URL /storage/v1/b was not found on this server."

When trying to create a bucket error occurred.
Environment details

OS: Windows 10
Node.js version: v10.16.3
npm version: 6.9.0
@google-cloud/storage version: 3.2.1

Steps to reproduce

Run this code:
`
// Imports the Google Cloud client library
const {Storage} = require('@google-cloud/storage');
const storage = new Storage(gcpCredentials);
const bucketName = 'bucket-name';
async function createBucket() {
// Creates the new bucket
await storage.createBucket(bucketName);
console.log(Bucket ${bucketName} created.);
}
createBucket();
`

Actual behavior:
Error was thrown
`
(node:22180) UnhandledPromiseRejectionWarning: Error: Cannot parse response as JSON:

Error 404 (Not Found)!!1

404. That’s an error.
The requested URL /storage/v1/b was not found on this server.  That’s all we know.
`
Expected behavior:
Bucket with name "bucket-name" should be created.

@serhiinikitenko can you also please show content of gcpCredentials

I was able to reproduce when override apiEndpoint to 'www.google.com'
  const storage2 = new Storage({apiEndpoint: 'www.google.com'});
  const bucketName = 'alex-bucket-name-test-bucket';
  await storage2.createBucket(bucketName);

UnhandledPromiseRejectionWarning: Error: Cannot parse response as JSON:

Error 404 (Not Found)!!1

404. That’s an error.
The requested URL /storage/v1/b was not found on this server.  That’s all we know.

@bcoe @AVaksman the still reproducible
const gcpCredentials = {     projectId: "account id",     keyFilename: "path/to/service_account.json" };
'@google-cloud/storage' uses default apiEndpoint: "apiEndpoint": "www.googleapis.com"

@serhiinikitenko could you provide a full example of the code you're running?
are you running on your personal computer? or is this a Windows server?

@bcoe

Hi,
I figured out what was the root cause of this error.
In my code I used two google npm packages '@google-cloud/compute' and '@google-cloud/storage', for both of them I used the same credentials("gcpCredentials" object)
See my code:
`
async function main() {
const gcpCredentials = {
projectId: 'ID',
keyFilename: 'PATH',
};
// Imports the Google Cloud client library
const Compute = require('@google-cloud/compute');
const { Storage } = require('@google-cloud/storage');

const compute = new Compute(gcpCredentials);
console.log(JSON.stringify(gcpCredentials, 1, 1));
// {
//     "projectId": "ID",
//     "keyFilename": "PATH",
//      set property by default in line https://github.com/googleapis/nodejs-compute/blob/master/src/index.js#L83
//     "apiEndpoint": "compute.googleapis.com"
// }
const storage = new Storage(gcpCredentials);
await storage.createBucket('some-name-for-bucket');

}
main();
`
The problem becomes when in "Compute" class( '@google-cloud/compute' ) constructor set default "apiEndpoint" value('compute.googleapis.com'), this value then used for "Storage" class('@google-cloud/storage') since I used the same object for both classes.


Issue generating notification for custom yang model with latest stable release

Hi,
We have compiled latest netopeer2 and sysrepo release v2.2.13 and v2.2.150 respectively.  We have written a subscribing application which subscribes to our custom yang model and generates a custom notification for the changes made in the data tree. Below are details for the same:-
Yang model's notification structure
notification router-modification-list {
    description
      "This notification is sent when there is a change in the router configuration.";
    leaf router-id {
      mandatory true;
	  type string;
      description
        "router-id to identify a router configuration.";
    }

    container add-prefix-list{
      list vrf{
        uses vrf;
		}
    }

   container del-prefix-list{
      leaf-list prefix-id {
			type string;
			description
			  "VRF ids to be deleted";
		}
    }
}

grouping vrf {
	leaf vrf-id {
		type string;
		description "vrf id configured for router instance";
	}

	leaf next-hop {
		type string;
		description "peer router's ip address";
	}

	container prefix-list {
	       description
		"prefix list for advertisement";
		 list prefix {
			key "prefix-id";
			description
                       "v4 and v6 prefix info to be advertised";
			uses prefix;
		  }
  	    }
	}
	grouping prefix {
		leaf prefix-id {
			type string;
			description "unique id for the prefix set";
		}

        leaf prefix-add-time {
           type string;
           description "timestamp corresponding to the prefix addition";
        }

		container ipv4-subnet-list {
			description
			"Ipv4 subnet list in the prefix information";

			leaf-list ipv4-subnet {
				type string;
				description
				"IPv4 subnet value";
			}
		}

		container ipv6-prefix-list {
			description
			"Ipv6 prefix list in the prefix information";

			leaf-list ipv6-prefix {
				type string;
				description
				"IPv6 prefix value";
			}
		}

}

Code written to generate the notification:-
struct lyd_node *notif = NULL;
lyd_new_path(NULL, ctx, "/test-router:router-modification-list", NULL, 0, &notif);
lyd_new_term(notif, NULL, "router-id", "Router_1", 0, NULL);
struct lyd_node *add_prefix_list_cont = NULL;
lyd_new_inner(notif, NULL, "add-prefix-list", 0, &add_prefix_list_cont);
struct lyd_node *vrf_list_cont = NULL;
lyd_new_list(add_prefix_list_cont, NULL, "vrf", 0, &vrf_list_cont);
lyd_new_term(vrf_list_cont, NULL, "vrf-id", "VRF_1", 0, NULL);
struct lyd_node *prefix_list_cont = NULL;
lyd_new_inner(vrf_list_cont, NULL, "prefix-list", 0, &prefix_list_cont);
struct lyd_node *prefixi_info = NULL;
lyd_new_list(prefix_list_cont, NULL, "prefix", 0, &prefixi_info);
lyd_new_term(prefixi_info, NULL, "prefix-id", "Prefix_1", 0, NULL);
lyd_new_term(prefixi_info, NULL, "prefix-add-time", "131242423421", 0, NULL);
struct lyd_node *ipv4_subnet = NULL;
lyd_new_inner(prefixi_info, NULL, "ipv4-subnet-list", 0, &ipv4_subnet);
lyd_new_term(ipv4_subnet, NULL, "ipv4-subnet", "<IP_ADDRESS>/29", 0, NULL);
lyd_new_term(ipv4_subnet, NULL, "ipv4-subnet", "<IP_ADDRESS>/29", 0, NULL);
lyd_new_term(ipv4_subnet, NULL, "ipv4-subnet", "<IP_ADDRESS>/29", 0, NULL);
struct lyd_node *ipv6_prefix = NULL;
lyd_new_inner(prefixi_info, NULL, "ipv6-prefix-list", 0, &ipv6_prefix);
lyd_new_term(ipv6_prefix, NULL, "ipv6-prefix", "2001:1b0:002:131::/48", 0, NULL);
lyd_new_term(ipv6_prefix, NULL, "ipv6-prefix", "2001:2b0:002:131::/48", 0, NULL);

rc = sr_notif_send_tree(session1, notif, 0, 0);

Data tree content after edit-config
  <router-instances xmlns="urn:rdns:com:hns:yang:test-router">
    <router-instance>
      <router-id>Router_1</router-id>
      <vrf-list>
        <vrf>
          <vrf-id>VRF_1</vrf-id>
          <next-hop>null</next-hop>
          <prefix-list>
            <prefix>
              <prefix-id>Prefix_1</prefix-id>
              <prefix-add-time>131242423421</prefix-add-time>
              <ipv4-subnet-list>
                <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
                <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
                <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
              </ipv4-subnet-list>
              <ipv6-prefix-list>
                <ipv6-prefix>2001:1b0:002:131::/48</ipv6-prefix>
                <ipv6-prefix>2001:2b0:002:131::/48</ipv6-prefix>
              </ipv6-prefix-list>
            </prefix>
          </prefix-list>
        </vrf>
      </vrf-list>
    </router-instance>
  </router-instances>

So, with the above code, I do not see any notification after doing a "subscribe" on netopeer2-cli. But I do see below error in the execution:-
libyang[0]: Duplicate instance of "prefix-id". (path: Data location "/test-router:router-modification-list/add-prefix-list/vrf[1]/prefix-list/prefix[prefix-id=''][prefix-id='Prefix_1']/prefix-id".)

However, if i remove below line from the code:-
lyd_new_term(prefixi_info, NULL, "prefix-id", "Prefix_1", 0, NULL);

I see notification getting generated on netopeer2-cli and it doesn't have "prefix-id" field set:-
notification (2024-03-04T13:29:49.721788794+05:30)
<router-modification-list xmlns="urn:rdns:com:hns:yang:test-router">
  <router-id>Router_1</router-id>
  <add-prefix-list>
    <vrf>
      <vrf-id>VRF_1</vrf-id>
      <prefix-list>
        <prefix>
          <prefix-id/>
          <prefix-add-time>131242423421</prefix-add-time>
          <ipv4-subnet-list>
            <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
            <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
            <ipv4-subnet><IP_ADDRESS>/29</ipv4-subnet>
          </ipv4-subnet-list>
          <ipv6-prefix-list>
            <ipv6-prefix>2001:1b0:002:131::/48</ipv6-prefix>
            <ipv6-prefix>2001:2b0:002:131::/48</ipv6-prefix>
          </ipv6-prefix-list>
        </prefix>
      </prefix-list>
    </vrf>
  </add-prefix-list>
</router-modification-list>

>

What could be the reason the for the error we are seeing as soon as we try to add "prefix-id" field in the notif tree?
Thanks and Regards,
Chinmaya Agarwal.

You are fairly "lucky" that you only get some weird error, your code causes undefined behavior and would expect it to crash. lyd_new_list() function has variable arguments and expects all the key values as those parameters, you are not providing any (so some random memory is being read as the string value creating a duplicate prefix-id key leaf).


context options

I want to set ZMQ_THREAD_AFFINITY_CPU_ADD but it looks like it, and other context options are not exposed in the python api..
zmq_context = SerializingContext()   zmq_context.set(zmq.THREAD_AFFINITY_CPU_ADD, 3) # constant not defined.   zmq_socket = zmq_context.socket(socketType)
When I tried to directly use the value of the enum (7), and I got an exception that this option is not supported.. Am I missing something ?

what version of libzmq and pyzmq do you have (zmq.zmq_version(), zmq.__version__)? And how did you install them? This option was promoted to stable in libzmq 4.3.0, I think.

I just have zmq and pyzmq installed:
pyzmq==22.3.0  zmq==0.0.0

(zmq.zmq_version(), zmq.version) return ('4.1.4', '22.3.0') .. I just used pip to install pyzmq

That's it, then. You need libzmq >= 4.3.0 for that feature.

oh, btw, I'm on a rasperypi 4 device, Ubuntu 64 bit installed.

You can install zeromq from source to get a version more recent than you have in apt, which follows the standard pattern for C projects:
./configure
make
make install

Or if you install pyzmq 22.3.0 from a wheel (I'm not 100% sure pyzmq's wheels will install on rPi), it will have libzmq 4.3.4.
To install pyzmq from source, ignoring libzmq you may have installed (after uninstalling pyzmq):
ZMQ_PREFIX=bundled pip install -vv pyzmq


Add/remove moderator button on user page

This pull request adds a button to add/remove a moderator, next to the follow/unfollow button. This button only shows up if the page owner is a moderator, the viewer has a store, and the viewer isn't viewing his/her own page.
The button could be unhidden by a clever person who knows how to use the debugger, making it possible to add a non-moderator as one of your store's moderators, but the same issue can happen in at least two other ways (malicious user modifies his/her client; existing moderator stops moderating). This should be dealt with server-side, by simply not accepting moderation of sales if you are not a moderator.
The code I wrote to make this work may be somewhat messy. I am a novice to JavaScript (background in C++, C# and Java), so I sometimes had to guess or just emulate the style of other bits of code.
(resubmitting because I made a bad merge and forgot to add translation entries)

This would be great!

Updated according to jjeffryes' advice.

The most ideal way to do this is the same way the block user button works, which uses a save function build into the user model (userMd.js). But the other optimizations I mentioned should be fine for now.

Pretty sure I covered all of the above improvements, except for building a save function into the user model. I'll look into that.

@Dekker3D awesome.
Moving the save to the model would be a pretty significant change, I'd treat it as a separate PR.

In that case, I'll leave it be for now. I figured I'd also give the follow/unfollow button the same treatment, might just do both in a separate PR after this one.

That would be great. Updating the follow/unfollow button to work like the block button is on our list of todos.

That would've been bad. In my defense: in any of the languages I know, it wouldn't even have been possible to mistake an array of objects for an array of numbers. Not used to this :P.
It should be fixed now.

@Dekker3D sigh... I too would prefer JS to be natively strongly typed, but this is not our reality :)

Alright, above comments implemented. Seems like I should read up on Underscore at some point.

I wasn't able to test this in time for the 1.1.4 release, assuming everything's ready we'll get it into the 1.1.5 iteration.

Yay!


One device location not updating (Beta 8a)

I have a phone who's location isn't updating in IC3. It's setup as a FamShr device and in the FindMy app the location is displaying just fine. It seems to be just this one device - I have other FamShr devices in my account that are updating just fine.
icloud3 says:

and, even after restarting and forcing a location refresh:

(As an aside, I notice the log says CountryCode-US, even though I've set Waze to be RoW and my HASS setup is set for UK/GB).

I think this might have been caused as I tried changing the Zone Name Format. Changing it back to HA Format seems to have resolved it.

I just uploaded Beta 9. Reopen this issue if you are still having problems after installing and using it.
Gary

This is still happening with Beta9. One device still says it's home, but the FindMy app recognises that the phone isn't home.
This is a FamShr device.
I tried doing an Update Location at 09:24. Results below.

Set log level Rawdata (Configuration > Event Log >Log Level), restart ic3 let it run until the phone is not located and send me the icloud3-debug.log file.
Also, the headings on the screenshot are shifted to the right. What are you displaying it on?

Set log level Rawdata (Configuration > Event Log >Log Level), restart ic3 let it run until the phone is not located and send me the icloud3-debug.log file.
Also, the headings on the screenshot are shifted to the right. What are you displaying it on?

Will do.
Re the screenshot - that happens as soon as I make the HA window wider then a certain width.

GRRRRRR - Bloomin' kid!
Looking at the log and it says:
 STAGE 5 >  Tracked Device > ryans_iphone_ic3 (Ryan's iPhone (IC3))   •  FamShr Device: iPhone X (NOT IN FAMILY SHARE LIST)
So, basically, the little 'angel' has turned it off! I've changed it to a FmF device instead of FamShr and it's picked it up instantly!
Should devices use both FmF and FamShr if it's possible? Does this cause any issues?
Thanks for your continued help!

Hmmm. Interesting - he hasn't turned off Family Sharing, but the log is saying it is off...

So he doesn’t want daddy to know where he is all the time. Sounds like a regular kid. How old is he? At least now you the first place to look when Silvie or Lauren stop tracking.
A mixture of FamShr and Fmf work well together. Since it gets all device locations on a location update, it can use info from both data sources, the latest location is selected. You will see the times and what was selected in the Event Log

Now that b9 is out, I'm going to close this to keep things tidy. Open a new issue if it continues in b9.


Bot loses money

The Bot loses money ,instead of making money?

Same issue https://github.com/Avnsx/EFT_Flea_Market_Bot/issues/4 , please close this issue there is no reason to have multiple forms for the same issue.

dublicate https://github.com/Avnsx/EFT_Flea_Market_Bot/issues/4


refactor: use button for share links

The SCSS has become a mess, we should probably use something like tailwindcss instead...


Create example data for testing

We need some way to create example traffic data for unittests. This should be either some script that fills a SQLite Database, a Database dump that can be replayed or the Database itself. The scheme should be as close as possible to the database-layout we use for the Traffic:

2 tables
one table inbound traffic with relevant fields (ip_dst, packets, bytes, stamp_inserted, stamp_updated)
one table outgoing traffic with relevant fields (ip_src, packets, bytes, stamp_inserted, stamp_updated)

Datatypes and so on can be taken from the example sql files of pmacct (they are shipped with the tar archive from http://www.pmacct.net/#downloads)

Done at least for sqlite.


Hybrid By.linktext is not working

Hi-
I am trying to automate a hybrid app. After switching to webview need to click a link text there. By using by.linktext(text) selendroid is not working. But same with using xpath its working.
Did any one faced this kind of issue earlier?

This is a question rather than an issue. Please send questions to the selendroid user group.
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.