Generic mqtt input example

This adds the an input with MQTT json text.
In the code, no conversions is done, hence the json object should match the data elements as in the generic.py

note: @jonesPD borrowed some bits & pieces from your mqtt code
However, main difference is that I did not want to trigger the refresh from the P1 meter, as it already automatically comes every few seconds.

Cool! I'll have a look at this when I have a bit more time so I can merge it properly. Thanks for your work!


Face ID

Thank you for a great lib. We used this in our app which enabled us a secure fingerprint login.
Is there a chance you could add a support for iOS Face ID?

Hi @maciejsaw , I already did it https://github.com/mCodex/react-native-sensitive-info/blob/master/ios/RNSensitiveInfo/RNSensitiveInfo.m#L37
@mCodex could I ask you to create new release please 😊

Doing this right now 😄

Done! 🤗  Released in 5.4.0 🎉

@savelichalex  thanks for your addition, but how can I integrate face ID? By simply adding kSecAccessControl: "kSecAccessControlBiometryAny" to the options object?
Thanks in advance

@Prophetaa Hi! Yes, just like that. I'm also using touchID: true, don't remember actually why 😅

@savelichalex Thanks for the quick reply! I've tried, however, my iPhone X simulator and real devices keep crashing on authentication, the screen goes black and the app dies. Has this ever occured to you?

@Prophetaa no, sorry. I didn't get part about authentication, does it occur before or after you had a chance to use FaceID (I mean, do you see a system alert for biometry authentication) ?

@savelichalex That's the problem, it happens when the alert for biometry is supposed to show up, the screen goes black for a second and then the app crashes, then I get this on Xcode

I went from version 5.2.7#keystore to 5.5.0 , is there any breaking changes? I'm so sorry for the trouble

It would be great if you did a sample project with this error, I'll try to take a look then.

Good morning @savelichalex , sorry it took some time to get back I was a bit busy, anyway I managed to replicate the issue, I saved it here https://github.com/Prophetaa/rnsi-test, just git clone install the pods and run that baby on iOS. When you attempt to get items from the RNSI storage it dies if you're using faceID, touchID works fine :(

Hi @Prophetaa, unfortunately I don't have an X device right now, but I'll look as soon as I can, hope it won't be too long, sorry.

Hey @savelichalex It also crashes in a simulator the same way, but surely take your time, thank you so much for the help <3

UPDATE: @savelichalex  don't bother, I found the issue. I went to read the apple docs, and it turns out you need to declare a NSFaceIDUsageDescription key on the Info.plist file.  @mCodex Should we add this to the libraries Readme file?

Hey guys, should a modal/dialog prompt when using setItem ? I am not getting it on using that method although storing works. Only on getItem I get the dialog prompt "Do you want to allow XY to use Face ID". Any suggestions here?

Hey @morrigan , setItems does not require authentication, therefore it doesn't prompt the user, only getItem will ask for auth (finger or faceID) 😄

@Prophetaa that's interesting! Ok, good to know (and maybe document).

@mCodex can we close this issue? Obrigado <3

Sure! Obrigado! 😉


Adding support NavigateFrom and NavigatingFrom

This pull request extends the support to also encompase NavigateFrom and NavigatingFrom.
Also, the overload of ResolveForPage is necessary to add a DataContext unwrapping to ResolveForPage. This existing ResolveForPage is only called with the page Type, while the new overload of ResolveForPage includes the actual Page object necessary when doing an unwrap.

Not sure why you are modifying the snippets behavior. Also, this code will duplicate the work already in ResolveForPage. I do not see how added complexity to do the same thing is worth it.

Jerry it is clear to me that I have been unable to explain that this code is doing. Either that  or that you do not read my comments or code???
Once more: The current ResolveForPage will NOT provide what is needed to unwrap context. In the current master only the Type of the page is passed to the ResolveForPage. To unwrap the viewModel the actual Page object is needed. Just as I wrote above. Without the changes I've proposed Template 10 will not have the ability to manage wrapped ViewModels. You might decide that you don't care, in which cae I will be unable to use Template10. But I'd much rather that you decided to add this capability as it hurts no one.
Regarding the snipit just ingore it, but I've changed it because I'm unable to compile the code unless I remove the snippets. Not sure why, but it is irrelevant in this context.


[mds-db][mds-policy-author] DB layer will generate policy_id if not set.

PR Checklist

[ ] simple searchable title - [mds-db] Add PG env var, [config] Fix eslint config
[ ] briefly describe the changes in this PR
[ ] mark as draft if should not be merged
[ ] write tests for all new functionality

Impacts

[ ] Provider
[ ] Agency
[ ] Audit
[ ] Policy
[ ] Compliance

Concur

Agreed with above comments.


[Feature] Support crop sequence

Motivation
Support random cropping a sequence of images. The existing crop function Crop will choose different regions for each image in a sequence.
This PR adds the functionality CropSequence, which crops the same region for every image in the sequence.
Modification
Modify crop.py

You may fix the conflicts.


Cant select tomorrow if minDate is tomorrow

Hi.
In my case I need to select only tomorrow or next dates.
var tomorrow = moment().add(1, 'days');

$('#datetimepicker').datetimepicker({
    minDate: tomorrow,
    ignoreReadonly: true,
    format: 'DD/MM/YYYY',
    allowInputToggle: true,
    defaultDate: tomorrow,
    useCurrent: false
});

But I cant choose tomorrow date.
http://jsfiddle.net/jjufgejc/1/

Yep it seems like a bug, however you can get this behaviour if you change minDate at today like this:
var tomorrow = moment().add(1, 'days');

$('#datetimepicker').datetimepicker({
        minDate: moment(),
        ignoreReadonly: true,
        format: 'DD/MM/YYYY',
        allowInputToggle: true,
        defaultDate: tomorrow,
        useCurrent: false
});

Check this answer: https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1567#issuecomment-213200598

If anybody just happen to get this just do
moment().startOf('day')
and the if you want add x days


feat(addons): update app deploy to deploy addons stack

fix #649

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

I'm so exciting to start playing around with this :D
Did you test this with no addons and the feature flag set to true? I just want to make sure it doesn't break the existing behavior.

Yes! I've tested that and it won't break. So if the flag is set to be false, no matter if you have addons folder or not the nested stack won't be created. If the flag is set to be true and there's no addons folder, the nested stack won't be created either.


a4kStreaming episode

Good day,
a4kStreaming for the episodes does not work via TheMovieDb Helper. He does take movies.
Can someone take a look at that?
Thank you in advance

Is there an error?

Yes he doesn't take all episodes, one series does and the other series doesn't

Have you checked the log?

Yes he can find one series in a4kStreaming via TheMovieDb Helper and the other cannot.

Check your log to see if there are errors: https://kodi.wiki/view/Log_file/Easy
I would recommend uploading the log so we can investigate further as well.

https://paste.kodi.tv/yugezezete

Has the problem already been found?
thanks in advance

a4kStreaming is definitely a gem, will be a plus if this issue could be addressed

Foreign


Uses array syntax on $provide.decorator to allow uglification

Ran into missing provider problem because we use uglify on our JS. This fixes it.

published 0.2.0

Thanks!


Create a Python Image with pip and a shell installed

What software would you like us to add to our image catalog? (one per issue please)
The existing python image doesn't contain pip or a shell, making it hard to use as a build container. Ideally we should be able to model a Dockerfile like this:

FROM cgr.dev/chainguard/python-dev as builder
COPY . /app
RUN pip install -r requirements.txt

FROM cgr.dev/chainguard/python
COPY --from=builder /app /app
CMD ["python", "/app/main.py"]

Or something similar.
which versions of the containerized software do you need?
No response
Add some justification for why this specific image and versions are important.
No response

pip is there. just need to add shell i guess.

@tuananh I ran your command:
 docker run -it --rm --entrypoint pip cgr.dev/chainguard/python --version

but got the following error indicating that pip is not installed:
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pip", line 33, in <module>
    sys.exit(load_entry_point('pip==22.3.1', 'console_scripts', 'pip')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pip", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for pip

@simon-sk lol i seriously dont know why. as you can see from the screenshot.

@tuananh I suspect that you might've had an older version of the image before that still had pip installed?

@amouat to prioritise

The cgr.dev/chainguard/python:latest-dev does have a shell, but not pip:
> docker run -it --rm cgr.dev/chainguard/python:latest-dev sh
/ $ python -m pip
/usr/bin/python: No module named pip
/ $ pip
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pip", line 33, in <module>
    sys.exit(load_entry_point('pip==22.3.1', 'console_scripts', 'pip')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pip", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for pip

Yeah, there's something broken in the pip3 package. Let's get this fixed.

I think @kaniini mentioned this may be fixed by a build that was happening today.

related https://github.com/chainguard-images/images/issues/241

should be fixed in our latest build.


gnome-control-center: point to gnome-session's libexecdir properly

Motivation for this change
Noticed while investigating some ultimately unrelated problem,
but seems like whatever it wants gnome-session libexecdir for
looking for it in a place that surely will not have those bits
is likely not the best.
(and if intentional should perhaps be documented)
If gnome3 maintainer thinks this is a clear win, great,
if it's a maze of questionableness then NP let's leave as-is :).
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Seems this option is used for the info panel, and obviously the default when unset won't go very well.

Noticed while investigating some ultimately unrelated problem,
but seems like whatever it wants gnome-session libexecdir for
looking for it in a place that surely will not have those bits
is likely not the best.

Think that's what you meant @dtzWill?

For completeness, it is used in these places:
https://gitlab.gnome.org/GNOME/gnome-control-center/blob/1fed01f2cd95fbf21c4390fe5ea9326e217c0f96/panels/info/meson.build#L32
https://gitlab.gnome.org/GNOME/gnome-control-center/blob/1fed01f2cd95fbf21c4390fe5ea9326e217c0f96/panels/info/cc-info-overview-panel.c#L269

I would recommend using gnome-session from package arguments in the spirit of https://github.com/NixOS/nixpkgs/commit/606ceda352de9830cc5e01c169571e742d88fb15#diff-0b2655b076a77e9d8a924c2ce49b2488

I would recommend using gnome-session from package arguments in the spirit of 606ceda#diff-0b2655b076a77e9d8a924c2ce49b2488

Fixed that.


PkgResourcesDeprecationWarning for every command executed with pipenv

Issue description
I installed pipenv using pip install pipenv in my conda base environment. The installation was successful, but every command I run shows a weird warning at the start:
Anaconda3\lib\site-packages\pkg_resources\__init__.py:116: PkgResourcesDeprecationWarning: -PKG-VERSION is an invalid version and will not be supported in a future release
  warnings.warn(

This was from the simple command pipenv -h, but every command emits this warning before proceeding. The commands seem to work correctly, however. For pipenv -h, for example, the program displays the help message correctly after the warning.
Another thing I should note is that it looks like the warning slows down pipenv. When I run pipenv -h, for example, it takes about a second or two to display the warning, and after that, it takes additional 1~2 seconds to display the actual help message, or run the specified command for this matter.
Expected result
The commands executed by pipenv should not display this weird warning which seems out of nowhere. The commands shouldn't be slowed down because of this as well.
Actual result
Every command executed by pipenv displays this warning and executes around 1~2 seconds after that.
Steps to replicate
Just run any command like pipenv -h and see the warning. I am using Anaconda with Python 3.9.9 on Windows 11. I am not sure if any of these factors are related to the problem. As mentioned before, I installed pipenv into my (base) conda environment by running pip install pipenv.
$ pipenv --support result (Notice this command also printed the warning)
D:\Programs\Anaconda3\lib\site-packages\pkg_resources\__init__.py:116: PkgResourcesDeprecationWarning: -PKG-VERSION is an invalid version and will not be supported in a future release
  warnings.warn(
<details><summary>$ pipenv --support</summary>

Pipenv version: '2022.1.8'
Pipenv location: 'D:\\Programs\\Anaconda3\\lib\\site-packages\\pipenv'
Python location: 'D:\\Programs\\Anaconda3\\python.exe'
Python installations found:

3.9.9: D:\Programs\Anaconda3\python.exe
3.9.9: D:\Programs\Anaconda3\python.exe

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.9.9',
 'os_name': 'nt',
 'platform_machine': 'AMD64',
 'platform_python_implementation': 'CPython',
 'platform_release': '10',
 'platform_system': 'Windows',
 'platform_version': '10.0.22000',
 'python_full_version': '3.9.9',
 'python_version': '3.9',
 'sys_platform': 'win32'}

System environment variables:

ALLUSERSPROFILE
APPDATA
AZ_ENABLED
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
CONDA_DEFAULT_ENV
CONDA_EXE
CONDA_PREFIX
CONDA_PROMPT_MODIFIER
CONDA_PYTHON_EXE
CONDA_SHLVL
DRIVERDATA
GOPATH
HOMEDRIVE
HOMEPATH
INTELLIJ IDEA COMMUNITY EDITION
JAVA_HOME
LOCALAPPDATA
LOGONSERVER
MOREPATHS
NUMBER_OF_PROCESSORS
ONEDRIVE
ONEDRIVECOMMERCIAL
ONEDRIVECONSUMER
OS
PATH
PATHEXT
PIPENV_VENV_IN_PROJECT
POSH_GIT_ENABLED
POWERLINE_COMMAND
POWERSHELL_DISTRIBUTION_CHANNEL
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PSMODULEPATH
PUBLIC
PYCHARM COMMUNITY EDITION
SYSTEMDRIVE
SYSTEMROOT
TEMP
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
WINDIR
WORKON_HOME
WSLENV
WT_PROFILE_ID
WT_SESSION
_CONDA_EXE
_CONDA_ROOT
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

PATH: D:\Programs\Anaconda3;D:\Programs\Anaconda3\Library\mingw-w64\bin;D:\Programs\Anaconda3\Library\usr\bin;D:\Programs\Anaconda3\Library\bin;D:\Programs\Anaconda3\Scripts;D:\Programs\Anaconda3\bin;D:\Programs\Anaconda3\condabin;C:\Program Files\PowerShell\7;D:\Programs\Anaconda3;D:\Programs\Anaconda3\Library\mingw-w64\bin;D:\Programs\Anaconda3\Library\usr\bin;D:\Programs\Anaconda3\Library\bin;D:\Programs\Anaconda3\Scripts;D:\Portable_Programs\geckodriver;D:\Portable_Programs\Go\bin;D:\dev\go-workspace\bin;D:\Programs\NASM;.;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\bin;d:\portable_programs\kotlin\kotlinc\bin;c:\program files (x86)\razer chroma sdk\bin;c:\program files\razer chroma sdk\bin;c:\program files (x86)\intel\intel(r) management engine components\icls;c:\program files\intel\intel(r) management engine components\icls;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0;c:\windows\system32\openssh;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\intel\intel(r) management engine components\ipt;c:\windows\system32\config\systemprofile\appdata\local\microsoft\windowsapps;d:\programs\cmake\bin;c:\program files\nvidia corporation\nvidia nvdlisr;C:\Program Files\dotnet;D:\nodejs\npm;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\shai\AppData\Local\Microsoft\WindowsApps;C:\Users\shai\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\shai\AppData\Roaming\npm;D:\Programs\Git\cmd;C:\Users\shai\.dotnet\tools;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;D:\Programs\Calibre2;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Portable_Programs\Gradle\gradle-7.0.2\bin;D:\.jdks\openjdk-15.0.2\bin;D:\Programs (x86)\texlive\2021\bin\win32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\Programs\nodejs;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Users\shai\.cargo\bin;D:\Programs\JetBrains\IntelliJ IDEA Community Edition 2018.3\bin;D:\Programs\JetBrains\PyCharm Community Edition 2019.2\bin;C:\Users\shai\AppData\Local\GitHubDesktop\bin;C:\Users\shai\AppData\Local\Programs\oh-my-posh\bin;C:\Users\shai\AppData\Local\Programs\oh-my-posh\themes

@ShaiAvr Have you tried it outside of Conda with a normal python install?  I notice you have pipenv installed on a system path but the recommendation for using it well is to have it installed at the --user level and add that to your PATH.  For example pip install pipenv --user instead of just pip install pipenv.  I've used the latest version you are describing on Windows in recent days without these type of issues but I am not using Anaconda python.  Also, this thread seems related:  https://github.com/pdm-project/pdm/issues/720

@ShaiAvr I don't see also where you included a Pipfile to help debug with.  If you create a new Pipfile with just one requirement say requests then do you still get this behavior?

@matteius I tried reinstalling it at the --user level after deactivating the conda environment, but the warning remains. Also, when I did which python or which pip in the base environment, I got the same results, which leads me to believe there is no difference between the base environment and the global interpreter.
Indeed I haven't tried creating a project. The warning was shown for the simple command pipenv -h and any other command which requires a project generates this warning and correctly fails since no Pipfile is present. I tried to create a simple project with the requests package. The install command still displayed the warning and the installation actually failed with this error message:
D:\Programs\Anaconda3\lib\site-packages\pkg_resources\__init__.py:116: PkgResourcesDeprecationWarning: -PKG-VERSION is an invalid version and will not be supported in a future release
  warnings.warn(
Creating a virtualenv for this project...
Pipfile: D:\dev\python\demo\Pipfile
Using D:/Programs/Anaconda3/python.exe (3.9.9) to create virtualenv...
[=== ] Creating virtual environment...created virtual environment CPython3.9.9.final.0-64 in 6826ms
  creator CPython3Windows(dest=D:\dev\python\demo\.venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\shai\AppData\Local\pypa\virtualenv)
    added seed packages: pip==22.0.3, setuptools==60.6.0, wheel==0.37.1
  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Successfully created virtual environment!
Virtualenv location: D:\dev\python\demo\.venv
Creating a Pipfile for this project...
Installing requests...
Error:  An error occurred while installing requests!
Error text:
Traceback (most recent call last):
  File "D:\Programs\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\Programs\Anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\__main__.py", line 29, in <module>
    from pip._internal.cli.main import main as _main
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 23, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\cli\parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\configuration.py", line 24, in <module>
    from pip._internal.utils import appdirs
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_internal\utils\appdirs.py", line 13, in <module>
    from pip._vendor import platformdirs as _appdirs
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 33, in <module>
    PlatformDirs = _set_platform_dir_class()  #: Currently active platform
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 29, in _set_platform_dir_class
    result: type[PlatformDirsABC] = getattr(importlib.import_module(module), name)
  File "D:\Programs\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:\dev\python\demo\.venv\lib\site-packages\pip\_vendor\platformdirs\windows.py", line 3, in <module>
    import ctypes
  File "D:\Programs\Anaconda3\lib\ctypes\__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.

Installation Failed

As for setuptools:
>>> import setuptools
>>> setuptools.__version__
'59.8.0'

Update:
I managed to fix the error by reinstalling pipenv using conda instead of pip. It looks like the pip installation creates troubles in a conda environment. The weird warning still shows, however.
I created a sample project with the requests package. Everything was installed and executed successfully. However, every command still displayed the same warning. The Pipfile is extremely simple, so I don't believe it is useful or relevant to the issue, but here it is anyway:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "*"

[dev-packages]

[requires]
python_version = "3.9"

And Pipfile.lock:
{
    "_meta": {
        "hash": {
            "sha256": "b8c2e1580c53e383cfe4254c1f16560b855d984fde8b2beb3bf6ee8fc2fe5a22"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.9"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certifi": {
            "hashes": [
                "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872",
                "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"
            ],
            "version": "==2021.10.8"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597",
                "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"
            ],
            "markers": "python_version >= '3'",
            "version": "==2.0.12"
        },
        "idna": {
            "hashes": [
                "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
                "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
            ],
            "markers": "python_version >= '3'",
            "version": "==3.3"
        },
        "requests": {
            "hashes": [
                "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61",
                "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"
            ],
            "index": "pypi",
            "version": "==2.27.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:000ca7f471a233c2251c6c7023ee85305721bfdf18621ebff4fd17a8653427ed",
                "sha256:0e7c33d9a63e7ddfcb86780aac87befc2fbddf46c58dbb487e0855f7ceec283c"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
            "version": "==1.26.8"
        }
    },
    "develop": {}
}

Another Update:
I just checked on my MacBook Pro with Anaconda installed and it seemed to work. I didn't get any warnings. This probably means the problem is happening in Windows or in Anaconda in Windows.

I get this warning in Debian Sid Linux #1 SMP PREEMPT Debian 5.16.7-2 (2022-02-09) GNU/Linux.
$ pipenv 1> /dev/null
/home/kyleg/.local/lib/python3.9/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 2.8.2.dev9999-git.b-82c1373ba0b424c57e8c12cb5f6f1a7ee3829c27- is an invalid version and will not be supported in a future release
  warnings.warn(
/home/kyleg/.local/lib/python3.9/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(

Which is funny, because neither of these warnings relate to pipenv at all. These are versions of other python packages installed on my system (powerline-status==2.8.2.dev9999-git.b-82c1373ba0b424c57e8c12cb5f6f1a7ee3829c27- on user and gpg==1.16.0-unknown via the apt package python3-gpg).
Why is it showing warnings for other packages and how do we silence them?

Related issue; This led to setuptools introducing the warning.
pypa/setuptools#296 (located using the setuptools version history)

Why is it showing warnings for other packages and how do we silence them?

I don't exactly know what is going on here, but I think if the versions of things you had installed were compliant version numbers then you wouldn't get the warning.   Sorry I am not more help here but I am going to take off the Windows label because I don't believe it is specific to windows.   I think that @ShaiAvr has some old package as well that is violating the correct version numbering constraints and so getting a warning on Windows.
Would be really helpful if there were clear steps on how to reproduce this on a new machine that isn't having the warnings show up.   If the answer is install a version of something that violates the package versioning that won't be supported in the future then I think we can close this as won't fix because it was a decision in the packages we depend on to through this warning and eventually not support those version numbers.

workaround for unix-like system users
Replace your pipenv command file with following warning filtered version
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
import warnings
from pkg_resources import PkgResourcesDeprecationWarning
warnings.simplefilter("ignore", category=PkgResourcesDeprecationWarning)
from pipenv import cli
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(cli())


Using DeleteTagger

Hello,
While trying to use the 'DeleteTagger'  in preParseHandlers, entering an XML regex to remove all fields with 'pdf_' does not appear to be working as expected.  Going based on the documentation
Using Norconex collector 3.0.1, importer 3.0.0 and committer Solr 3.0.0. Running Solr 9.1.
I am likely not applying the proper syntax.
        <preParseHandlers>
          <!-- Remove navigation elements from HTML pages. -->
          <handler class="DOMDeleteTransformer">
            <dom selector="header" />
            <dom selector="footer" />
            <dom selector="nav" />
            <dom selector="noindex" />
          </handler>
          <handler class="com.norconex.importer.handler.tagger.impl.DeleteTagger">
            <fieldMatcher method="regex">
                    ^(pdf)*
            </fieldMatcher>
          </handler>
        </preParseHandlers>

In the stanza for the regex, I have tried the following but the fields are still present after a commit to the index.
            <fieldMatcher method="regex">
                    ^(pdf)*
            </fieldMatcher>

This causes a malformed XML file
            <fieldMatcher method="regex">
                    <value=^(pdf)*/>
            </fieldMatcher>

Tried the standard name for the handler
            <handler class="DeleteTagger">

Additionally, if I were to put in a string of multiple regex searches, would it be like so
             <fieldMatcher method="regex">
                    ^(pdf)*
                    ^(field2)*
            </fieldMatcher>

FYI - I am closing this as I found the FAQ and that led me to using the 'KeepOnlyTagger' instead.
Better results and easier to say 'only what you want' vs. 'remove certain things'.
The crawler has been good to work with so far. Thanks!


Specified PemFiles path not valid.

I cannot seem to specify the path for pem files correctly... or there is bug. I've tried putting it in all formats I can think of... here's the error I'm getting:
[EROR] No path specified
[EROR] (Exception) Unable to store certificate: Specified PemFiles path e:\ is not valid.
[EROR] Create certificate failed: Store failed: Specified PemFiles path e:\ is not valid.
e:\ is a valid location. I've tried "e:" and e:\ and e:\certs ... nothing works. I've looked in the docks and it doesn't seem like I'm doing anything wrong.
I'm using verision 2.1.2. I'm using full options, and using manual DNS record entry as verification method (option 6). I am asking to store the certificate as PEM encoded files (option 2).
Appreciate some guidance... thank you!

I have the same error when creating the pen files for using them with nginx

I think that I found the bug at: https://github.com/PKISharp/win-acme/blob/d52fe31aa5716145ce968d65658345afc3d7982e/src/main.lib/Plugins/StorePlugins/PemFiles/PemFiles.cs#L30
It should be path.ValidPath(log) instead of _path.ValidPath(log).

Great! I will try with version 2.1.1 until somebody patches 2.1.2

Thanks for the bug report and the bug hunting! I'll get a patched version out there shortly.

Thanks all, 2.1.1 worked for me... glad we figured out what was causing the issue.


Functionalgputest

Updated windows GPU circle CI

@mthrok this incorporates the new changes on master. Apologies I keep opening new PRs, I'm having trouble finding a good workflow to just make updates to existing PRs I have while incorporating new changes from master


Different Bytecode Version of Groovy Classes when using Java Toolchain for JDK 8

Expected Behavior
When using a Java toolchains with the version 8 to compile Groovy and Java classes then both Groovy and Java classes are compiled into appropriate bytecode version 52 (Java 8).
Current Behavior
When using a Java toolchains with the version 8 to compile Groovy and Java classes then the resulting Groovy classes are compiled into byte code version 51 (Java 7) but the Java classes are compiled to byte code version 52 (Java 8).
Context
We would like to use the toolchains feature to compile our Groovy code with appropriate JDK. Using targetCompatibility and sourceCompatibility instead is not the best solution as there are breaking changes in the JDK which (e.g. removal of Java Activation API).
When the Groovy files are compiled with Java 7 we are facing strange issues in our Spock tests such as java.lang.VerifyError: Illegal type at constant pool entry 61.
Interestingly, the issue does not happen when the toolchain is set to Java 11.
Steps to Reproduce

clone the example repository https://github.com/musketyr/gradle-toolchains-issue.
compile classes with ./gradlew classes
inspect the classes cd build/classes/groovy/main && java demo.GroovyClass

Your Environment
Build scan URL: https://gradle.com/s/uitgrjj4zznt2

Hello, What is the current status of this issue ? Thanks 🙏

Thank you for providing a valid reproducer.
The issue is in the backlog of the relevant team and prioritized by them.


Fix typo in networking.md

Just fixes a small typo in the networking documentation

Hi @kobus-v-schoor, please sign the CLA for the PR to be reviewed

/check-cla

The section containing the typo was deleted in a recent commit in main, so this PR is moot. Closing


Split NuScenes evaluation into groups using distance toward LiDAR

Hello,
Thank you very much for making your work available.
Can you share how to split NuScenes evaluation results into groups using distance toward LiDAR as you did in Table. 2 of your paper?

Hi quan-dao! We converted the nuScenes dataset into KITTI format and evaluated it using the same KITTI evaluation code.

Thank you.


Bitcoin Core 0.16.2

can be merged if it passes travis

Oh, we already had #582 open.

Weird.  This fails because it says the torrent file is missing, but I see it listed in https://bitcoincore.org/bin/bitcoin-core-0.16.2/ .  But but, if I click on it, it 404s.

Got 403 here

oh, sorry, will close and check the file
might be a permissions issue though my upload script is supposed to normalize those


[Table]: Nested Rows render within Tables

add nested rows to the table props model

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.41.0 :tada:
The release is available on npm package (@release-1.x dist-tag)
Your semantic-release bot :package::rocket:


Error in annotations = config['annotations']

While running:
(lndmanage) admin@RPi4:~/lndmanage $ ./lndmanage.py listchannels rebalance
Initializing node interface.
Initializing network graph.
Saved graph is too old. Fetching new one.
Traceback (most recent call last):
  File "./lndmanage.py", line 365, in <module>
    main()
  File "./lndmanage.py", line 289, in main
    args.unbalancedness, sort_string=args.sort_by)
  File "/home/admin/lndmanage/lib/listchannels.py", line 313, in print_channels_unbalanced
    self.node.get_unbalanced_channels(unbalancedness))
  File "/home/admin/lndmanage/lib/listchannels.py", line 396, in _add_channel_annotations
    annotations = config['annotations']
  File "/usr/lib/python3.7/configparser.py", line 958, in __getitem__
    raise KeyError(key)
KeyError: 'annotations'

$ ./lndmanage.py status and
$ ./lndmanage.py rebalance works as expected. Getting the channel ID-s from RTL.

That's due to the removal of the file 'channel_annotations' from the project, which is now in a section of the config.ini file.
If you use latest master, then old config.ini files are currently incompatible because of the missing [annotations] section (compare with config_sample.ini).
I'll make this pass even if no such definition is present.


Update ebuild for cockpit 317

Show this errors

 * QA Notice: Unrecognized configure options:
 *
 *      --with-cockpit-user
 *      --with-cockpit-ws-instance-user
 *      --with-cockpit-group
 *      --with-cockpit-user
 *      --with-cockpit-ws-instance-user
 *      --with-cockpit-group

Failed to open 'cockpit-tempfiles.conf': No such file or directory

Fix in https://github.com/inode64/inode64-overlay/commit/f2c9485457334da17eca291957f3b408bd8be37c


Unit-test Transmit with a fake PIV card

Add a unit test for the SCardTransmit call from the JS side. To make the
testing closer to real-world use cases, we add a basic simulation of a
PIV card applet, and simulate the SELECT command in the test.

Let me land it - if we figure out a better approach later we can update the code anytime.


Python 3.6 only

Python 3.7 has not yet been fully qualified for DSS 8.0
Python 3.5 is no longer supported by Python

FYI @jonas92130


Events

Thanks for cool plugin.
Is it possible to add custom class or detect when image is downloaded? I would like to display image using 'fade-in' effect.

Sure I can add this.

Thanks, I am waiting for this feature

Just published 1.7.0 that has this feature.
To do what you're looking to do:
<img-loader src="path/to/img" (load)="onImageLoad($event)"></img-loader>

import {Renderer } from '@angular/core';
import { ImgLoader } from 'ionic-image-loader';

...

constructor(private renderer: Renderer) { }

...

onImageLoad(imgLoader: ImgLoader) {
  this.renderer.setElementClass(imgLoader.element, 'fade-in', true);
}

Thank you! works like a charm. Cheers


Cannot build with neopixels extension

Describe the bug
If the Neopixels extension is added with PlanetX, either by the user or as dependency of another extension, the project cannot build.

There are muliple duplicate definition errors in the browser console.
This was reported to https://support.microbit.org/ (ticket number 61588) by a user trying to use these extensions together
https://github.com/elecfreaks/pxt-PlanetX
https://github.com/elecfreaks/pxt-wukong
For a potential fix, please see the discussion on this PR: https://github.com/microsoft/pxt-microbit/pull/4946
To Reproduce
Create new project. Add PlanetX. Add Neopixels or wuKong. Download. See error.
Expected behavior
Extensions can be used together.

Thanks @elecfreaks1 What version is this fixed in? It still seems to be a problem in a new project with v1.5.26.

@elecfreaks1 This is not fixed. Cannot build an empty project.

@elecfreaks1 Please reopen.

@martinwork , thanks for pointing out this problem. We have solved this bug in version v1.5.29. 🫡


Update build status even on exception

This change ensures that the build status is always set to FINISHED even in the event that an unexpected exception is encountered during the build (this could be something like yaml.safe_load encountering an invalid YAML file).
This change also ensures that update_build is never called from a BuildEnvironment, and is instead only invoked from the task.

OK, sure.
This means that the BuildEnvironmentError class doesn't really have any special meaning any more, so I've noted that too.

Sorry, should have clarified. My thought here was that the best UX here is to expose a non-specific error to users on exceptions that aren't BuildEnvironmentError. In the case of the YAML parsing error, this should be up to the Mkdocs backend to surface a BuildEnvironmentError that states YAML parsing failed, in a user friendly way. I think hiding tracebacks from users makes sense. Thoughts?

This looks great! 💯
I think this will clear up a number of issues that have been bothering me. Probably looking at a deploy early next week on this.


Change the color of the site.

The current site looks dull change it. To get the issue first claim it and once you are assigned only then start working.

claim

Hey! I am a UI designer and also a front-end developer and I can make this website look more presentable by not only changing the color but also the content placement. So, can I do this?

assigned to @99anjali


Fix: don't override user definied region

Fix #https://github.com/oam-dev/kubevela/issues/3384
Signed-off-by: Zheng Xi Zhou<EMAIL_ADDRESS>Description of your changes

Fixes #
I have:

[ ] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

Any idea when this will be merged?

By upgrading vela-core (to version 1.3.4):
All existing Terraform typed Applications won't be affected.
But all newly provisioned Terraform typed Applications won't become successful. To solve the issue:

Upgrade add-on terraform to version 1.0.6+
Manually upgrade CRD Configuration https://github.com/oam-dev/terraform-controller/blob/v0.4.3/chart/crds/terraform.core.oam.dev_configurations.yaml.


caching and performance

since the status site can be hit pretty hard if everyone visits it at once, it is important that its performance is stellar.
on the demo site, i see that the page loads in a little under 800ms. The HTML gets delivered (TTFB) in 180ms for a total wait time for the HTML only of 300ms here. Chromium tells me that caching headers are not set correctly and that the site cannot be cached by reverse proxies (e.g. Varnish or Nginx). CSS files also do not have cache expiration which would allow those static files to be cached by the browser.
The main page also sets a cookie, which not only breaks caching but also tracks users needlessly.
Now maybe something funky is going on with Viaduct on the frontend servers, but that's what I can tell from the outside...

boom. was this fixed or just closed?


[BUG] Fixed team feedback bugs

Fixes #95
Fixes #96
See also #94
Changes proposed in this pull request:

Implemented a condition to give an error message via toast when the value of the minimum number of sessions is set to 0 in validateQueryForm
Implemented a test case for the above in the QueryForm component test
Implemented a quick fix for #96, to replace \n escape character in dataset_name with a space
Implemented DatasetResultsTSV e2e test for the above

Checklist

[ ] PR has an interpretable title with a prefix ([ENH], [BUG], [DOC], [INFRA], [MAINT])
[ ] PR links to Github issue with mention Closes #XXXX
[ ] Tests pass
[ ] Code is properly formatted

For new features:

[ ] Tests have been added

For bug fixes:

[ ] There is at least one test that would fail under the original bug conditions.

@rmanaem I don't think you commited any changes. Did you mean to push them still or do you want me to review just based on your comments?

There we go


Update dApps to new web-sdk and wallet-api

New versions of JS libraries have been published, which we should strive to use in our applications.
Libraries to update:

@concordium/web-sdk
@concordium/react-components
@concordium/wallet-connectors
@concordium/browser-wallet-api-helpers

Applications needing updates

[ ] id-verifier
[ ] wallet-connect-test-bench

@soerenbf Is this done now or not? Can you please add some description if it is not?

@abizjak updated the description. I didn't get around to updating these when I updated most of our dapps as they're testing tools only.
If you want, we can just close the issue.

No, let's leave the issue since work is needed. Thanks for adding details.


Backport "Count size of parameters for platform limit check" to LTS

Backports #18464 to the LTS branch.
PR submitted by the release tooling.
[skip ci]

No regressions detected in the community build up to lts-18731.
Reference


Kube2iam service monitor

What this PR does / why we need it:
Add metrics Service and optional support for ServiceMonitor.
Setting the metrics-port argument of kube2iam and adding a new Service to map the
metrics ports so we can then create a ServiceMonitor to scrape metrics
via a Prometheus Operator managed servers.
Also adding the standard chart helper template and updating the chart label
on all resources to use the template.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

This duplicates this PR: https://github.com/helm/charts/pull/11416


Question: ROS support in ubuntu/parabuntu?

The number of cores looks very promising for my project.
Is it possible to run full ROS / ROS-SLAM on it?
Ref: wiki.ros.org

According to the Wiki, ROS armhf is supported in Ubuntu 18.04 "bionic" so in principle it should be possible to install ROS. However, note that Ubuntu is only running on the dual-core ARM host processor, not on the 16-core Epiphany processor, which requires custom software to run on it.

Thank you for the response. I will be back with, how ROS processes can be routed to these processors. I will continue to ask question as the multicore device looks promising to me. I hope to get support. :)
Keeping the issue open for future references and actually closing it later based on result.


Fix "date" in docs

Docs on http://bendavis78.github.io/paper-date-picker/paper-date-picker/ read:

The selected date (YYYY-MM-DD)

That format seems to be invalid. I get an error:

Invalid date: 2018-02-02.

I'm unable to repro the console error on plnkr, but the date isn't set correctly.
http://plnkr.co/edit/APbI7Z61zgIEqDif1nIP?p=preview

I'm unable to re-create your error as it's running fine for me in that plunkr, however I did notice that the date is off by 1 day, I'll open an issue for that one.


Other way of setting heating/cooling load

Currently, it is in the gui only possible to put in energy loads in kWh. However, sometimes, it is possible to have a fixed profile and just a difference in yearly energy demand. In this issue the possibility is investigated to include a second way to input the monthly energy loads based on a monthly load percentage and a yearly energy demand.

This will be implemented after issue #45 is finished

Also to be implemented here: seperate DHW and SPF for heating/cooling/DHW.


Update django-rq compatibility with django 1.7/1.8

Hi,
There's still warning on test with django 1.8
RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead.
  RemovedInDjango19Warning)

As for the test test_empty_queue_setting_raises_exception, I deleted it since I can't figure out how to fix it.
Before django 1.7, the django_rq.settings file is loaded AFTER the test function is called.
However in 1.7 and 1.8, the django_rq.settings file is loaded BEFORE the test function, hence the QUEUES variable will always have a value and results in no exception.

Thanks for the PR!


Fix .pki/nssdb directory permissions

By creating the directory before installing any software and changing its ownership to the default user.
This fixes the issue with builds failing when using aufs as the Docker storage driver.

@bparees ptal

lgtm


Allow 'observables' in attributes

Background
While discussing #960 today, it was raised that altering the type of attributes from string_t or int_t to more specific types like user_agent_t is a breaking change.
We could wait until the 2.x line to introduce this, or we could break with semver and accept a breaking change in 1.x. But neither of these are desirable.
Proposal
An alternative solution is to add the observable property to attributes. Currently, only types and objects support the observable property.
This could be defined in any event, object, or dictionary.
Example:
{
  "attributes": {
    "user_agent": {
      "observable": 19,
      ...
    },
    ...
}

Upside

As this is an additive change, it is non-breaking and does not require a major semver bump. Consumers and producers that don't support it will continue to operate as before.
This provides a (slightly) more flexible way to define observables.

Downside

This would need to be implemented in the OCSF server.
It (slightly) increases effort involved in troubleshooting observables.
All validators will need to be updated.
Platform implementations of observables may need to be updated.

Thanks Jeremy, late comment but we are going down this path that you suggest.

I'll sort it out as I dig in. I might just close both when this is resolve.

@query-jeremy : This will work now and be properly validated.


Sorted output to have a fixed list for diff.

Sort output so that we can diff between runs.

Hello @martinusnel, I don´t know either what happened with this check. Can you test this code and I can put it back to the repo?
#!/usr/bin/env bash

# Prowler - the handy cloud security tool (c) by Toni de la Fuente
#
# This Prowler check is licensed under a
# Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
#
# You should have received a copy of the license along with this
# work. If not, see <http://creativecommons.org/licenses/by-nc-sa/4.0/>.

CHECK_ID_check45="4.5,4.05"
CHECK_TITLE_check45="[check45] Ensure routing tables for VPC peering are \"least access\" (Not Scored)"
CHECK_SCORED_check45="NOT_SCORED"
CHECK_TYPE_check45="LEVEL2"
CHECK_ALTERNATE_check405="check45"

check45(){
  # "Ensure routing tables for VPC peering are \"least access\" (Not Scored)"
  textInfo "Looking for VPC peering in all regions...  "
  for regx in $REGIONS; do
    # Sort output so that we can diff between runs.
    LIST_OF_VPCS_PEERING_CONNECTIONS=$(printf '%s\n' $($AWSCLI ec2 describe-vpc-peering-connections --output text $PROFILE_OPT --region $regx --query 'VpcPeeringConnections[*].VpcPeeringConnectionId') | sort | paste -s -d" " -)
    if [[ $LIST_OF_VPCS_PEERING_CONNECTIONS ]];then
      textInfo "$regx: $LIST_OF_VPCS_PEERING_CONNECTIONS - review routing tables" "$regx"
      #LIST_OF_VPCS=$($AWSCLI ec2 describe-vpcs $PROFILE_OPT --region $regx --query 'Vpcs[*].VpcId' --output text)
      #aws ec2 describe-route-tables --filter "Name=vpc-id,Values=vpc-0213e864" --query "RouteTables[*].{RouteTableId:RouteTableId, VpcId:VpcId, Routes:Routes, AssociatedSubnets:Associations[*].SubnetId}" $PROFILE_OPT --region $regx
      # for vpc in $LIST_OF_VPCS; do
      #   VPCS_WITH_PEERING=$($AWSCLI ec2 describe-route-tables --filter "Name=vpc-id,Values=$vpc" $PROFILE_OPT --region $regx --query "RouteTables[*].{RouteTableId:RouteTableId, VpcId:VpcId, Routes:Routes, AssociatedSubnets:Associations[*].SubnetId}" |grep GatewayId|grep pcx-)
      # done
      #echo $VPCS_WITH_PEERING
    else
      textPass "$regx: No VPC peering found" "$regx"
    fi
  done
}

Can you please also shere with me an output with and without paste command?

ok ok, I know what has happened, my bad memory... In the latest AWS CIS Benchmark recommendations they deleted check 4.5 so I deleted it as well. Check the guide TOC here https://d0.awsstatic.com/whitepapers/compliance/AWS_CIS_Foundations_Benchmark.pdf in any case I could move it to extras... Thoughts?

I am more interested in the resulting check44, which is just the new name of check45, having sorted output :)
The magic bit is: | sort | paste -s -d" " -.
Do you want me to do a PR for the new check44?

Ok, I get it. Can you please share the output of the current check, also with and without -M csv and the new check with your suggested options? We need to make sure we don't break anybody else output diffs. I know about lots of people doing diffs between Prowler csv or json outputs and I shouldn't ruin their day ;)

Not a problem, please see attached.
Please note that without the sort you cannot diff as the AWS CLI output is not deterministic at all. It is potentially different on each run.  Example - and other than redaction, not modified to suite my argument :)
15:40 $ aws ec2 describe-vpc-peering-connections --output text --profile dev --query 'VpcPeeringConnections[*].VpcPeeringConnectionId'
pcx-555    pcx-222    pcx-111    pcx-444    pcx-333

15:41 $ aws ec2 describe-vpc-peering-connections --output text --profile dev --query 'VpcPeeringConnections[*].VpcPeeringConnectionId'
pcx-333    pcx-222    pcx-111    pcx-555    pcx-444

The original change, as was excepted, will not work in any case as I forgot to translate the tabs to newlines so that sort can actually work :)
| tr '\t' '\n' | sort | paste -s -d"\t" -
All private information redacted in attached files.  The peers themselves (pcx-...) has been replaced by 111 - 555 and correctly represented as I just used a recursive search/replace.
after_change_csv.txt
after_change_html.txt
before_change_csv.txt
before_change_html.txt

Do you need any further information?

Thanks @martinusnel, it is all right, I'll work on it as soon as possible :)


Add missing metadata for hibernate-core

What does this PR do?
Add missing metadata for hibernate-core required to instantiate generator types retrieved from annotation attribute.
Closes: #323
Checklist before merging

[x] I have considered including reachability metadata directly in the library or the framework (see our contributing document)
[x] I am the original author of all content provided in the pull request, and I did not copy the content from any other source (see the tests section from our contributing document)
[x] For all tests where I am not the sole author, I have added a comment that proves I may publish them under the specified license (see the tests section from our contributing document)
[x] I have properly formatted metadata files (see our formatting guide)
[x] I have added thorough tests (see the tests section from our contributing document)
[x] I have filled all places where my pull request accesses files, network, docker, or any other external service (see the section above)

@sdeleuze framework support for this kind of stuff is very nice but will not work for those not relying on them. Since they are hibernate core types I'd rather see them present here.

@melix Any thoughts?

@msupic @dstepanov is this needed for Micronaut?

It would be nice to have it. I don't know what the reasoning is for having it determined dynamically.
It might be a good idea for the native config to provide a list of interfaces/abstract classes meant to be instantiated by the reflection. Any implementation class would be automatically added, and all the constructors would be open for reflection.

The reason for implementing a dynamic discovery is to handle custom implementation specified via annotation, but this PR provide default ones which does not hurt with Spring feature, so let's maybe merge it to provide support for the most common use cases with all frameworks.


Target new CI release

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.0%

Totals

Change from base Build<PHONE_NUMBER>5:
0.0%

Covered Lines:
532

Relevant Lines:
560

💛  - Coveralls


db_schema.xml

I'm new to Magento but aren't best practices to use db_schema.xml instead of InstallSchema.php? If that is the case why is this tool generating InstallSchema.php?

Magento introduced the db_schema.xml feature in Magento 2.3.  Whether it's a "best practice" or not to use this feature depends on the version(s) of Magento you're targeting.
Pestle generates InstallSchema scripts because pestle predates Magento 2.3, and because no one's been passionate enough about a db_schema.xml generator to add one to pestle.
Closing this out as answered, but if you have follow up questions don't hesitate to bring them up.


Fixed link to PRs in CHANGELOG

[x] Is this related to documentation?

Please do the same in RELEASE NOTES for 2.6.0 and 2.7.0 releases.

I did this during #21, when preparing the CHANGELOG entry for that patch.


Detailed installation instructions

Fix #105.

This change is

Self merging to get this out there.

This is a huge improvement but I don't think we have a solution here without flattening dependencies.  This sucks but I'm not sure what is to be done.

@lavalamp well written. Thanks!

I'm going to put together an update on this today.
On Wed, Mar 1, 2017 at 11:56 AM Timothy St. Clair<EMAIL_ADDRESS>wrote:

@timothysc commented on this pull request.
In INSTALL.md
https://github.com/kubernetes/client-go/pull/106#discussion_r103774707:

+* You want your install to be reproducible. For example, for your CI system or

for new team members.

+There are three tools you could in theory use for this. Instructions
+for each follows.
+
+### Dep
+
+dep is an up-and-coming dependency management tool,
+which has the goal of being accepted as part of the standard go toolchain. It
+is currently pre-alpha. However, it comes the closest to working easily out of
+the box.
+
+```sh
+$ go get github.com/golang/dep
+$ go install github.com/golang/dep/cmd
this is already out-of-date btw.
go install github.com/golang/dep/cmd/dep
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/client-go/pull/106#pullrequestreview-24574192,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACRvqw8gyQPaVht29hlntl03CN-F7iWks5rhc13gaJpZM4MBHNq
.


findHomography leaves mask untouched in case of no inliers

The inlier mask is left untouched in case of no solution: fundam.cpp#L411
This means that

if we use an already populated mask as parameter (and this is allowed since the input values are completely ignored), the resulting mask stays the same which leads to the wrong conclusion
if we pass an empty mask and afterwards want to check for each provided point if it was an inlier, we get an index-out-of-bounds exception.

The latter problem even happens in official OpenCV code: global_motion.cpp#L506-L508.
I propose to change the function so that the mask is always set to the appropriate size (and zeroed if needed). Is this feasible?

I'll pick this task if needed.
@Admin, can you mark this as bug?


CGI custom stylesheet loading issue

Problem:
In my project, I use a custom css file located in the src/assets folder. This file is referenced in one of my templates as follows:
<link rel="stylesheet" href="{{ page.root }}assets/bstreeview.css" />

Previously, when running the project with Nanobot's serve mode, the CSS file loaded and worked as expected. However, after switching to use Nanobot in CGI mode, the CSS file no longer works.
Debug experiments:

The browser's developer tools show that the CSS file is loaded successfully.

JavaScript files imported in a similar way continue to work without any issues:

<script src="{{ page.root }}assets/bstreeview.js"></script>

When I serve the same CSS file via a CDN, it works as expected:

<link rel="stylesheet" href="http://cdn.jsdelivr.net/gh/Cellular-Semantics/human-neocortex-non-neuronal-cells/src/assets/bstreeview.css"/>

The issue might be related to the Content-Type response headers. Here's a comparison of Content-Type values from different sources:

Content-Type of CGI mode: text/html; charset=utf-8, text/css
Content-Type of  serve mode: text/css
Content-Type of  CDN: text/css; charset=utf-8

PS: sorry, I accidentally posted with my test account. This is @hkir-dev

This issue occurs in Chrome v131 and Safari 18.1.1. Interestingly, the CSS renders correctly in Firefox v132.

Flask was adding default headers, which caused the issue. Clearing those headers and using the headers provided by Nanobot CGI resolved the problem.


Add function ssh_cclip_pass_key

ssh_cclip_pass_key copy to clipboard the value of a private ssh key managed by pass.

Done in b4d62a576ce469243483aff679d1baa13200117c.


Added order link field to Part class

(for seagate, it is currently just set to the order link page: http://seagateplastics.com/order.html)

Looks good to me.


Analysis/latency: Add task CPU residency utilities

This can be useful to look at the behaviour of a task (or from another point of view, the behaviour of the scheduler regarding this task) and to have an overview of how much time a task has spent on each CPU.
I'm not entirely too sure about with task states should be considered in the runtime sum - from my understanding, anything but sleeping should be accounted, but I could be wrong on that.

Sorry, forgot about this. LGTM :+1:

Added docstring & cleaned some stuff up.

Addressed @derkling's comments.


[ADP-1963] publish certificates in ApiTransaction from stored cbor

I have added certificates to get /transaction and  get /transactions by parsing the CBOR from the transaction history
Comments
Sadly, last PR I published unused files that were not polished, the second commit tries to remedy
Issue Number
ADP-1963

bors try

bors try

bors try

bors try

bors try

bors merge

bors merge

bors retry


soft keyboard not have clickable area on android q

Steps to Reproduce

image:

Target Platform: android q
**Devices: sumsung **
**Input method: sumsung default input method **
**html:
<input type="number"/>
**

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.12.13+hotfix.5, on Mac OS X 10.14.6
    18G87, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK
    version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)

• No issues found!

Hi @ponytony
what keyboard are you using?
Also can you please provide your ``flutter run --verbose`
and a reproducible minimal code sample
or the steps to reproduce the problem.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


feat: improve regex pattern

Problem

Not bound at the end of the string, and the ^ start position was in a capture group
Unnecessary capture groups and syntax ({0,1} instead of ?) ((\/|:) instead of [\:])
.git should be escaped: \.git
The ending pattern (.git){0,1}((\/){0,1}) catches .git/, but it should be either .git or /: (\.git|\/)?

Changes
Simplified and improved regular expression syntax by:

Start and end bounds at each end of the pattern to match the full string
Removed unnecessary capture groups
Escaped .
Mutually exclusive .git|/

@IonicaBizau can we get a review on this? :pray:

@IonicaBizau can we get a review on this? 🙏

Sorry for the late reply and review on this. I only got the chance now to merge these PRs. Let me know if you have any questions or suggestions.


[BUG] Entry point function cannot do a far jump

Bug Report
Based on the conversation in the Discord server (see: https://discord.com/channels/953703904086994974/1184915191411003463), if, due to the guest program being sophisticated enough, the entry point function, showed below, cannot call the __start function.
@DefiCake reported this problem.
// Entry point; sets up global pointer and stack pointer and passes
// to zkvm_start.  TODO: when asm_const is stablized, use that here
// instead of defining a symbol and dereferencing it.
#[cfg(target_os = "zkvm")]
core::arch::global_asm!(
    r#"
.section .text._start;
.globl _start;
_start:
    .option push;
    .option norelax;
    la gp, __global_pointer$;
    .option pop;
    la sp, {0}
    lw sp, 0(sp)
    jal ra, __start;
"#,
    sym STACK_TOP
);

where the definition of the __start function is:
#[cfg(target_os = "zkvm")]
#[no_mangle]
unsafe extern "C" fn __start() -> ! {
    env::init();

    {
        extern "C" {
            fn main();
        }
        main()
    }

    env::finalize(true, 0);
    unreachable!();
}

jal is an RISC-V raw instruction that jumps to __start, where __start is represented by a signed 20-bit number. This means that it can jump either backward up to 1MB or forward up to 1MB. But, if it takes more than 1MB to go to __start in the memory from the current pc, this instruction does not work.
This would result in a compilation time error, shown as follows.

= note: rust-lld: error: /Users/cusgadmin/r0/fuel-risc0-prover/target/riscv-guest/riscv32im-risc0-zkvm-elf/release/deps/prover-8ebe1890752312c1.prover.cc888d54-cgu.6.rcgu.o:(.text._start+0x14): relocation R_RISCV_JAL out of range: 1508240 is not in [-1048576, 1048575]; references __start
prover:           >>> referenced by musl_memcpy.c
prover:           >>> defined in /Users/cusgadmin/r0/fuel-risc0-prover/target/riscv-guest/riscv32im-risc0-zkvm-elf/release/deps/prover-8ebe1890752312c1.prover.cc888d54-cgu.6.rcgu.o

Solution
Tested locally. If we make a single-line change to the https://github.com/risc0/risc0/blob/main/risc0/zkvm/src/guest/mod.rs#L166.
- jal ra, __start;
+ call __start;

The problem can be fixed. call is a "pseudo" instruction, in that LLVM would expand it according to its need.
A remaining question is whether this change would affect the binary that is generated by previous code. I.e., whether the image file would be different. This is not really a big issue, but it would be a headache to, if necessary, update the IMAGE id that has been hardcoded.
I tested https://github.com/l2iterative/vfhe0 with Ghidra. The answer is positive---even if the jump can be done with "jal" using an offset, Rust (indeed, LLVM) would emit two instructions: auipc and jalr, as expected.
        002024d4 97 00 00 00     auipc      ra,0x0
        002024d8 e7 80 80 00     jalr       ra=>__start,ra,0x8

For this reason, I am reluctant to submit a PR since there is going to be a lot of work to update the IMAGE ids as it would affect everything. That being said, it is a good argument that this fix should be included in the incoming LTS release.

For more context, the pedantic definition for call is exactly:
auipc ra, TOP 20 bits
jalr ra, ra, LOWER 12 bits

Thanks for tracking down this issue! I've opened https://github.com/risc0/risc0/pull/1257 to replace jal with call.

This is not really a big issue, but it would be a headache to, if necessary, update the IMAGE id that has been hardcoded.

In general, we don't guarentee image ID stability unless the user pins to an exact version (git commit) of the zkVM and builds in Docker using cargo risczero. Any changes, including to comments or file locations, to the transitive dependencies of the guest will general result in a new image ID since the Cargo build system does not provide any reproducible build guarantees. We find in practice that building in Docker can at least reproduce a build with sufficient pinning of sources, Rust version, etc.


(eframe) add Frame.set_visibility

Closes https://github.com/emilk/egui/issues/1800.
You can use frame.set_visibility(false); to hide the window - good for background applications that open from a hotkey.

(Still needs support for web.)

Is there a reason you chose set_visibility instead of set_visible?
Other than that, I think it looks good, but I'm not a maintainer.

Looks good, but I agree that set_visible is a better name.

Renamed it.


Webhooks (D->M) do not bridge nicely

Heavily blurred to protect privacy, however:

This is a Minecraft/Discord bridge being brought over to Matrix. It appears to operate by using webhooks to Discord which then bridge down through the Matrix bridge.
This isn't great because it generates a ton of state changes, making the room harder to calculate and takes up a lot of space. Additionally, it adds noise to the chat.
What's going on in the image above is the light brown user talks, then another webhook comes in for the dark brown user. Instead of the Matrix/Discord bridge creating a new user, it reuses the light brown user. It then switches back at the end due to off-screen messages. This goes on for quite a while.

so a ghost per webhook id per display name?

That might be best, perhaps a config option to toggle that behaviour?


Use json.Number for claims check if parser.UseJSONNumber is true

if parser.UseJSONNumber is true then the Claims[“exp”] and
Claims[“nbf”] can be full int64 range by using json.Number.Int64(), not limited to float64
passed verification test

Why not just switch on type?

I'm pretty new to go, could be I missed a better way of doing it, happy to learn! Yet, I tried switching on type and while I agree it looked more like idiomatic go code, it didn't really look any cleaner to me and this way inherently does an additional sanity check (p.UseJSONNumber must be expecting a json.Number)...

Can you please merge this and/or update the coding style and merge? Using the current master breaks when trying to force int64

Replaced by #125

@dakom wanna play with #125 a bit and let me know if it accomplishes what you need?


Markdown headings generated when # is in middle of string

hint: # of days.

This is a feature actually. Will leave pending discussion.


WICG Issue on Improving AccessKey

From @chaals, for discussion at our London f2f: https://discourse.wicg.io/t/improving-accesskey/1177

Discussed at our London F2F

Agreed at Tokyo f2f to close until there is something to review. /cc @chaals


Please add VND

fixer.io gets it exchange rates from the ECB. You will have to contact them to add the currency you desire, or you can just use another api that provides the currency you want.


Relax Consumer channel binding in AbstractTestBinder

When native decoding is enabled on the consumer, relax the requirement
for using AbstractBinderTest.createBindableChannel(..)
Fixes #1137

Codecov Report

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

@@            Coverage Diff            @@
##             master    #1138   +/-   ##
=========================================
  Coverage     56.48%   56.48%
  Complexity      667      667
=========================================
  Files           121      121
  Lines          3433     3433
  Branches        503      503
=========================================
  Hits           1939     1939
  Misses         1321     1321
  Partials        173      173

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 2275d40...2d7a39d. Read the comment docs.


Deprecate nav() in favor of nav_panel()

Closes #492.
Also renames shiny.express.layout.nav to the more aptly named shiny.express.layout.nav_panel.
TODO

[ ] py-shiny-site probably needs updating as well

From @schloerke:
* Nav -> NavPanel
* Nav.nav -> Nav.nav_panel
* nav, content = render_navset(.... -> nav_panel, content = render_navset(....
* NavSetCard.layout(nav=) -> NavSetCard.layout(nav_panel=) ; (And NavSetPillList or any class with a layout(nav=) method)

I'm more concerned about the first two and the last two are internal.


Add the correct memory threshold

Fix the issue with the threshold alerting at the wrong times. This I believe was caused by the decimal point within the code. Please review trello card for more infromation: https://trello.com/c/GJDx8cFx/1755-adjust-mysql-rds-instance-memory-warning-threshold

Thanks for adding the Trello link. You will need to git rebase master and git push origin change-default-memeory-threshold --force-with-lease once more to make the CI checks pass again...


Message display corruption

Scrolling down though the messages to the dnsop mailing list using the down key I got to this one and then after that, each time I pressed down key the bottom pane showing the message did not change but linked text "Show header" was added, with the link to https://mailarchive.ietf.org/arch/browse/dnsop/#.  This is reproducible.
See screenshot:

This is caused by recent rate limit rules applied to mailarchive.ietf.org to combat abuse, 40 requests per minute per IP. The down arrow loads content for every message viewed in the preview pane. The UI needs to be refactored to load content more efficiently.

Related to issue #3859


No way to loop over components in a container or an app

It would be nice to be able to loop over components in a container and an app, so that we could access their properties and work with them. I think that's possible in the base library, although not totally sure.

Do you have an example of what you want to do?

@JJ - do you mean something like gtk_container_foreach()?

Could be, yeah, but TBH, I don't really remember.
El mar, 22 dic 2020 a las 21:33, Xliff<EMAIL_ADDRESS>escribió:

@JJ https://github.com/JJ - do you mean something like
gtk_container_foreach()?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lizmat/GTK-Simple/issues/99#issuecomment-749762531,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAD5FVS7K3OYE3TTLHWUTSWD7AZANCNFSM4NWEE6RA
.

--
JJ

@JJ: Yeah, that's it. For GTK::Simple, you'd only have the methods accessible from GtkWidget, but it's doable.

Given the original reason seems to have been solved or not around any more, then unless there is use case for this that exceeds the need for the change to GTK 4, I'm closing the issue


Fix test date issues related to UTC vs. local time

Co-authored-by: Forrest Cahoon<EMAIL_ADDRESS>

All the checks have passed and this was originally submitted by someone else. Merging.


Optionally install cla-assistant to use couchbase db instead of mongodb

Because of mongodb's changed license terms, one of our clients wants to use cla-assistant for their repository with a couchbase database. The idea would be to use the node.js ottoman ODM for the database models rather than mongoose via an installation switch. Would a contribution like this be of interest?

Yes, sure! 😄 We are always open for valuable contributions. The idea sounds great. We have also got some similar requests but we were not able to implement it sofar.
Let us know if you need any advice from our side.

And here is the first request for an advice 😃 How can I test the callback URL ://:/auth/github/callback against a localhost installation? I used smee.io (https://smee.io/) but the callback path is simply concatenated to my url. So no way with smee. Any suggestions?

ahh must escape the greater and less signs, sorry.

ahh must escape the greater and less signs, sorry.

😄  So, all good now ? @codezork

no problem we use in our case ngrok.io But I can imagine that smee.io is a better solution.

as I understood GitHub adds the path for the callback to my given url. can ngrok.io handle this? Smee cannot it seems.

..or at least checks that the path is given

My mac: „ngrok“ kann nicht geöffnet werden, da es von einem nicht verifizierten Entwickler stammt.

hmm, ok. We had no problem with the path of githubs callback.
Theese are my env varaibles for the setup with ngrok:
PORT=5000
PROTOCOL=https
HOST=<mydomain at ngrok>.eu.ngrok.io

And in GitHub the "Authorization Callback URL": https://<mydomain at ngrok>.ngrok.io
Another alternative could be the serveo.net

No luck today: Serveo is temporarily disabled due to phishing. I'll try again on Monday. Thank you!

Got ngrok running and tried alike your settings:
"PORT": "5000",
"PROTOCOL": "https",
"HOST": "https://b65c9cb6.ngrok.io",
"MONGODB": "mongodb://cla_assistant:cla_assistant@localhost:27017/cla_assistant",
"GITHUB_CLIENT": "ab45ba13e3b04a4dec84",
"GITHUB_SECRET": "d413dbc9ae511ab1d84700e8a29443d37edad36f",
"GITHUB_USER": "",
"GITHUB_PASS": ""
In Github:
Homepage URL: https://0d8d054f.ngrok.io
Authorization callback URL: https://0d8d054f.ngrok.io
Github answers when trying to sign in:
https://0d8d054f.ngrok.io/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https:%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch
You wrote in your readme:
Setup your own instance of CLA assistant
Register an application on GitHub. The callback URL needs to be of the form
.../auth/github/callback
I have not done that as passport rejects this callback
Could you imagine what I'm doing wrong?

works with grok!

@codezork  Sounds great 😃

It turned out that Couchbase also has a difficult license. So Apache CouchDB will come as alternative. Is this ok for you too?

Yes, it is ok from our side

Made pull request. CI/CD failed for reasons I do not understand. Could you give a hint?

I am sorry for late response. Please, give us some time to look into the PR and check on possible root cause for the failing Build... Probably there are failing unit test. It is important for us to keep a good unit test coverage also for the new features. We'll look into it and let you know.


Automate the WCAG checks for Zulip frontend

@jmbowman
stated
various automated tools that have been used in a11y-ing edX, which differ by
which building-blocks they are built with. It is still an unresolved question on
how to repurpose them for Zulip. There is an implementation trade-off between
writing one from scratch to be Zulip-specific with Casper, or running the checks
end-to-end from a deployed git commit (I wonder if @zulipbot can be tweaked to
do CD staging area for UI testing). I am in favor of the latter, for there may
be the cases for multiple frontends (Roost? Or any server that speaks Zulip
protocol) to be checked.

I don't expect we'll modify zulipbot to do CI type stuff; Travis is the right place to do that.
I think probably a better approach for this would be to add support for doing some Selenium testing in Zulip s we can use those tools.  Maybe we'll end up deciding to use Selenium more broadly (it is a more widely used stack than Casper).  Especially since for accessibility, a pretty basic test accessing only a few pages should be able to catch most things.


Fixes GPII-3939: Updates to latest version of all third-party dependencies.

This PR contains updates to gpii-launcher's third-party dependencies, which have drifted a bit since it was last updated.

Thanks, @colinbdclark, this looks fine, will merge with my repo and cut a dev release shortly.

The dev release is available now: 1.0.0-dev.20190527T124956Z.9255cfa.GPII-2103


Use flask blueprints to cleanup routing code

Blueprints can greatly simplify how large applications work and provide a central means for Flask extensions to register operations on applications.
http://flask.pocoo.org/docs/0.10/blueprints/

This just helps with code quality and readability. This doesn't make any changes that are externally visible in the application.

Add routes deliberately in webapp.py rather than implicitly through each of the views.py files
Makes the url_for() statements match the actual code layout more closely

All the routes I tried worked for me, including a number of JSON routes.


node.yaml files can't use environment variables when naming a command to execute

From some reference I found,

The command to execute must an absolute path name. It may contain spaces, but control characters are not allowed.

Currently, on coreos, rkt is downloaded and installed to /opt/rkt/rkt-${RKT_VERSION}.  It either needs to be installed somewhere literal or the binary needs to be symlinked to something literal.

Created PR 12436 to address this.  This only fixes gce, so someone else that uses aws might want to take care of that one.
Also if anyone has any issues with how I'm fixing this I'm happy to change it, seems simple enough though.

Fixed by #12436

This is still an issue on aws, right?
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/aws/coreos/node.yaml#L127

Ah, sorry! I didn't read your second comment.


Apply operators conditionally based on commands

Signed-off-by: metonymic-smokey<EMAIL_ADDRESS>Description
This applies all three manifests on system start, but only the operator manifest on system stop.
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@navendu-pottekkat
Here are the screenshots for platform kubernetes(the endpoint issue is invalid):

start:

status:

stop:

@navendu-pottekkat here are the screenshots for docker:

start

pod status

stop


Packit tracebacks when running srpm in a dist-git repo without upstream_project_url configured

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/packit/api.py", line 1314, in prepare_sources
    self.up.prepare_upstream_for_srpm_creation(
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 592, in prepare_upstream_for_srpm_creation
    SRPMBuilder(upstream=self, ref=upstream_ref).prepare(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/upstream.py", line 918, in __init__
    self.rpmbuild_dir = self.upstream.absolute_specfile_dir
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/base_git.py", line 91, in absolute_specfile_dir
    return self.absolute_specfile_path.parent
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/base_git.py", line 99, in absolute_specfile_path
    self._specfile_path = self.get_absolute_specfile_path()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/base_git.py", line 94, in get_absolute_specfile_path
    return self.local_project.working_dir / self.package_config.specfile_path
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/packit/cli/utils.py", line 50, in covered_func
    func(config=config, *args, **kwargs)
  File "/usr/lib/python3.11/site-packages/packit/cli/utils.py", line 149, in covered_func
    func(*args, **decorated_func_kwargs)
  File "/usr/lib/python3.11/site-packages/packit/cli/srpm.py", line 109, in srpm
    srpm_path = api.create_srpm(
                ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/packit/api.py", line 1366, in create_srpm
    self.prepare_sources(upstream_ref, update_release, release_suffix)
  File "/usr/lib/python3.11/site-packages/packit/api.py", line 1321, in prepare_sources
    raise PackitSRPMException(
packit.exceptions.PackitSRPMException: Preparation of the repository for creation of an SRPM failed: unsupported operand type(s) for /: 'NoneType' and 'str'

Context. This is an issue when origin is a downstream repo and upstream_project_url is not set.
Also related, this part is flaky depending on the order of remotes:
https://github.com/packit/packit/blob/42961092dbc5b5598c05f1d13d260cce8a1365a9/packit/cli/utils.py#L320-L336

Things are a bit more complicated than I thought, and it needs more documentation on how to interact in a downstream dist-git. E.g. even after I updated the spec file, using packit srpm or packit build in-mock still seem to use the old sources and version.


DDP solver for quadruped case - [merged]

In GitLab by @cmastalli on Oct 2, 2018, 17:26
Merges CM-devel -> master
This PR contains significantly improvement of the DDP solver before working collaboratively. The main goal achieved was to test our solver for the quadruped case where we manage to converge in few iterations.
Additionally the Python structure of the code is quite stable, however there is still need to review it before moving forward.

In GitLab by @cmastalli on Oct 2, 2018, 17:27
mentioned in commit 01739e27a6e8c939642be18b469ff401f84677b4

In GitLab by @cmastalli on Oct 2, 2018, 17:27
merged


fix rejection of award

Pull Request Test Coverage Report for Build 94

8 of 8 (100.0%)  changed or added relevant lines in 2 files are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 94.444%

Files with Coverage Reduction
New Missed Lines
%

openprocurement/auctions/geb/managers/checkers.py
1
100.0%

openprocurement/auctions/geb/managers/awarding.py
4
100.0%

Totals

Change from base Build 93:
0.02%

Covered Lines:
1649

Relevant Lines:
1746

💛  - Coveralls


add Fanling Kau Yan College

add Fanling Kau Yan College
website: https://web2.fkyc.edu.hk/

👀

btw email domain is
@ms.fkyc.edu.hk

hello


async is too slow on http

Same code for inference. But when using difference protocol method give me difference processing time.
results = []
        result_filenames = []
        request_ids = []
        image_idx = 0
        last_request = False
        user_data = UserData()
        sent_count=0

        while not last_request:
            input_filenames = []
            input_batch = []
            for idx in range(self.batch_size):
                input_filenames.append(idx)
                input_batch.append(image_data[image_idx])
                image_idx = (image_idx + 1) % len(image_data)
                if image_idx == 0:
                    last_request = True

            # Send request
            if not self.async_set:
                results.append(self.ctx.run(
                    {   self.input_names[0] : image_data },
                    {   self.output_names[0] : (InferContext.ResultFormat.RAW),
                        self.output_names[1] : (InferContext.ResultFormat.RAW),
                        self.output_names[2] : (InferContext.ResultFormat.RAW) },
                                self.batch_size))
                result_filenames.append(input_filenames)
            else:
                self.ctx.async_run(partial(self.completion_callback, input_filenames, user_data),
                                {   self.input_names[0] : image_data },
                                {   self.output_names[0] : (InferContext.ResultFormat.RAW),
                                    self.output_names[1] : (InferContext.ResultFormat.RAW),
                                    self.output_names[2] : (InferContext.ResultFormat.RAW) },
                                                        self.batch_size)
                sent_count += 1

        # For async, retrieve results according to the send order
        if self.async_set:
            processed_count = 0
            while processed_count < sent_count:
                (request_id, input_filenames) = user_data._completed_requests.get()
                results.append(self.ctx.get_async_run_results(request_id))
                result_filenames.append(input_filenames)
                processed_count += 1

for http:

for gRPC:

@ThiagoMateo Which version of Triton did you use for this experiment?

hello @CoderHam . i don't use Triton, i use trtis:20.02-py3.
i have tried triton 20.03.1 but it is slower than trtis. i think it is new so i decide to skip it. =)

Trtis transitioned to Triton. We are fixing any performance regressions. In the future releases of Triton the issue described here should not exist.

Closing. Please try your example using the 20.08 version of Triton and reopen if the issue is still present.


Release assets not available under github release

Do we want to upload wheels et al. to GH? If it's on pypi it should be enough, I'd think?

Well it's what we do for the other two repos, so. It's not a big deal.

Closed by #69


UX Research: create a video walkthrough of the Garden UI

The UX researcher asks to have this material to guide users during the research.

Ted is working on this.

Done with: https://drive.google.com/file/d/1LSyfzd4NBFAPMNMiMKBToUo-yTc6wQrP/view


This is not working on powershell core on linux due to Get-CimInstance

Prerequisites
Put an X between the brackets on each line to confirm you have completed them:

[X] The issue is still present in the latest version of the module.
[X] The issue has not been previously reported.

Describe the bug
PS /home/scottw/db_powershell> Send-SyslogMessage -Server localhost -Message "Test from POWERSHELL" -Severity Informational -Facility local5
Get-CimInstance : The term 'Get-CimInstance' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /usr/local/share/powershell/Modules/Posh-SYSLOG/4.0/private/Get-SyslogHostname.ps1:42 char:30
+     $Win32_ComputerSystem =  Get-CimInstance -ClassName win32_compute ...
+                              ~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get-CimInstance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

The variable cannot be validated because the value  is not a valid value for the Hostname variable.
At /usr/local/share/powershell/Modules/Posh-SYSLOG/4.0/public/Send-SyslogMessage.ps1:282 char:13
+             $Hostname = Get-SyslogHostname -Socket $NetworkClient.Cli ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : MetadataError: (:) [], ValidationMetadataException
+ FullyQualifiedErrorId : ValidateSetFailure

To Reproduce
Run the above on an installation of Powershell core on linux
Expected behavior
A message show up in the local log files.
Screenshots or Transcripts
If applicable, add screenshots or PowerShell transcripts to help explain your problem. You can use Start-Transcript and Stop-Transcript to record the steps you have performed.
System Details

Operating System: Linux
Operating System Version : Linux  3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
PowerShell Version: [Use Get-Host] PSVersion                      6.1.3
PSEdition                      Core
Architecture for PowerShell Session: [64bit
Is this system an Azure Automation Worker?: [No,
Other loaded modules: [Include the output of Get-Module]

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   <IP_ADDRESS>    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty...}
Manifest   <IP_ADDRESS>    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Script     <IP_ADDRESS>    PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}
Script     4.0        Posh-SYSLOG                         Send-SyslogMessage
Script     1.6.7      PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}
Script     2.0.0      PSReadLine                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler...}

Additional context
Add any other context about the problem here. Is there any other information like system configuration or data that might help us understand the problem.

I quick fix could be:
if (!$isWindows) {$hostName = System.Net.Dns]::GetHostByName((hostname)).HostName}

That will only work on PS Core as $isWindows on PowerShell 5.1 will return $null
Perhaps this might be better:
if ($isLinux) {$hostName = [System.Net.Dns]::GetHostByName((hostname)).HostName}
else {
    # use existing code
}

Is there any reason to use this instead of built-in syslog in linux?

Cross platform scripts?

I’d think it’d be easier/better/cleaner to build the “cross-platform” part of it into the script. You can see some of the solutions being suggested here include detecting OS.  If you did that in the script and selected your version of syslog there, I think that’d be cleaner. If linux, use syslog. If windows, use posh.  Especially if this is your only requirement for powershell in linux, though I’m not sure it is. Does that make sense?

Code base also doesn't work due to Get-NetworkAdapter.
Need to think through this logic and test it thoroughly.

This isn't just a linux thing, doesn't correctly work on 6 on Windows either.
I think I have a cross platform fix, will post on a branch shortly.

Hit a bit of a wall trying to clean up the logic.
We can determine if a FQDN has been configured at a global level (Windows Domain or Linux), via:
$ipProperties = [System.Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()
$ipProperties.DomainName

This doesn't pick up if there is a NIC based domain name specified however. Something that has been overlooked. I think this one is easy to fixed.
The next issue is if no domain name has been specified (just a hostname), we need to confirm if the IP address for that adapter is static or dynamic.
Looking at possible replacements for the Get-NetworkAdapter call. The obvious one is [System.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces() unfortunately that doesn't work correctly on WSL under PowerShell 6.2.1 (due to this issue in DotNetCore), but does under 7 preview.

I will go ahead and code the solution up, however I am not sure how to resolve the WSL issues.

Just spent 4 hours replacing Get-NetworkAdapter...when I already did that....sigh....

This has now been fixed as of release 4.1


[Feature Request] Add Notification System for Request Availability

Is your feature request related to a problem? Please describe.
Yes, currently there is no notification system to alert users when a requested feature or update becomes available. This means users have to manually check for updates or availability, which can be inefficient and lead to missed updates.
Describe the solution you'd like
I would like to request a notification feature for Doplarr. When a request is available, the bot should send a notification to the user who made the request. This would ensure users are promptly informed and can take action without needing to continuously check the status manually.
Describe alternatives you've considered
An alternative could be to provide a periodic status update (e.g., daily or weekly) summarizing the availability of requests. However, this approach might still lead to delays compared to a real-time notification system.
Additional context
Implementing this feature would enhance user experience by ensuring timely notifications and reducing the need for users to check manually. It would be helpful if notifications could be sent via a preferred channel, direct messages, or notifications within the same request via an edit.

Overseer has this feature as a webhook, request no longer needed.

Overseer has this feature as a webhook, request no longer needed.

I would say this would still make sense as a feature.  Especially since not all members may have a discord account and the service is forced to use the doplarr-fallback account on overseerr.
Just like how it @'s a particular user about a request being made, it would be nice to have it @ that same user for when that request is available.


Chrome extension doesn't work in dev mode

Hey guys, I'm trying to run the chrome extension in dev mode.
I've done everything the instructions say, and everything works EXCEPT the todo app.
When I load the production version with npm run build, I get the todo app, but when I do npm run dev and load the dev folder, the todo app is blank.
Attaching images below. Any idea why?

Also, unrelated but is there anyway to connect the inject.js through redux with the app components?  Getting stumped there. I want to pass data I'm getting through inject.js to the App.js components.

Hi @lightninglu10, thanks for report!
I'm found the problem, it looks related to redux-devtools-extension:

/cc @zalmoxisus

Is the solution for now to remove the redux-dev-tools portion?

You can remove popup.pug#L12-L13 first (and window, inject), and check it work.

Ah, just my fault, I missing object here, I'll fix it. 😂

@jhen0409
Bringing this up again:
"Also, unrelated but is there anyway to connect the inject.js through redux with the app components? Getting stumped there. I want to pass data I'm getting through inject.js to the App.js components."
Would you know how to do this?

Also, unrelated but is there anyway to connect the inject.js through redux with the app components? Getting stumped there. I want to pass data I'm getting through inject.js to the App.js components.

Currently the inject page used iframe for CSS isolation, but pass data to App container will be difficult (may use postMessage of iframe or background), so it's not a good example.
Actually I'm Investigating ReactShadow to replace iframe, just not enough time.

If I don't care for CSS isolation, can I just import the component directly into the inject page?

@lightninglu10 yeah, just replace here.