factory openSUSE RsaUsing.py on Python 2

When using branch factory Nuitka-<IP_ADDRESS>6202417, on openSUSE Python 2.7
[  538s] Consider output of recursively compiled program: RsaUsing.py
[  538s] Comparing output of 'RsaUsing.py' using '/usr/bin/python2' with flags silent, expect_success, standalone, remove_output ...
[  601s] --- /usr/bin/python2 (stderr)
[  601s] +++ nuitka (stderr)
[  601s]
[  601s] @@ -1 +1,2 @@
[  601s]
[  601s] +Nuitka:INFO:Missing optimization, used fallback: ('Add', <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeList'>, <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeStr'>)
[  601s]
[  601s] Error, outputs differed.
[  601s] Error exit! 1
[  601s] error: Bad exit status from /var/tmp/rpm-tmp.fnbPwf (%check)

Great, that is with debug mode I suppose. It seems to be a static raise, going to check where the optimization is missing for this one.

Just a small warning there, I don't think I ran nearly enough tests with this info on, although I think the CPython test suites, I did, and standalone at least once on Windows.
This therefore might happen more often, or it may not. I cannot reproduce it here, with my pip installed rsa on Python. It would indicate an upstream problem, or a Nuitka bug if it's a false alarm. After I fix this, feel free to run it with --warn-implicit-exceptions (not yet recognized because that pair has not been classified, thus the warning) and report the exact source code. It is definitely smelly for Nuitka detect such obvious errors.

I added the indication that those "+" will raise TypeError, give it a spin, it's on factory.

I think this one is fixed, and I am giving --warn-implicit-exceptions a spin now.

Also not seeing it on Python 3.

Havent seen this for a long time; gamma rays?

Grrr.  maybe I closed it too soon.
I have hit this once now in develop (but maybe it is fixed in factory only).
[ 1158s] Comparing output of 'RsaUsing.py' using '/usr/bin/python2' with flags silent, expect_success, standalone, remove_output ...
[ 1280s] [ 1257.862200] watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [cc1:13918]
[ 1281s] [ 1258.172047] watchdog: BUG: soft lockup - CPU#3 stuck for 31s! [cc1:13905]
[ 1280s] [ 1257.862200] watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [cc1:13918]
[ 1281s] [ 1258.172047] watchdog: BUG: soft lockup - CPU#3 stuck for 31s! [cc1:13905]
[ 1383s] --- /usr/bin/python2 (stderr)
[ 1383s] +++ nuitka (stderr)
[ 1383s]
[ 1383s] @@ -1 +1,2 @@
[ 1383s]
[ 1383s] +Nuitka:INFO:Missing optimization, used fallback: ('Add', <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeList'>, <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeStr'>)
[ 1383s]
[ 1383s] Error, outputs differed.
[ 1383s] Error exit! 1


Allow creating a jar from each layer and add them up on runtimeClasspath.

Not sure if we always want to have resources expanded on the file system. Allow an option to create them as jars.

Already fixed, in #16. By default we always produce a jar per layer.


Windows: error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers

https://ci.appveyor.com/project/Mapbox/node-sqlite3/build/1.0.500/job/n2y9fo4eg316db56#L289
C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34):
error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers [C:\projects\node-sqlite3\build\deps\sqlite3.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134): note: see declaration of '__pfnDliNotifyHook2'

AppVeyor is ☑
https://ci.appveyor.com/project/Mapbox/node-sqlite3/build/1.0.503
npm had to be upgraded.
Hint was here: https://github.com/nodejs/node-gyp/issues/972


Reason for existence of neut archive?

Is there any reason for this, considering the fact that it doesn't differ much creating it yourself, or just downloading it from GitHub as such: https://github.com/u2zv1wx/neut-core/archive/master.tar.gz? It's obviously a bit different, since it adds the name of the repository to the beginning of the paths inside the archive, but it seems vastly simpler than having a custom process for creating tar archives.

The intention of archive is to add an abstraction layer.
For example, a tar archive may or may not create the outer directory (the archives generated by GitHub do). Let's suppose that we want to provide a library foo. Using the tar command, we might by mistake construct an archive that creates the outer directory. In that case, the resulting files of (ensure foo/<IP_ADDRESS> "${URL}") are extracted into foo/<IP_ADDRESS>/foo/(...), not foo/<IP_ADDRESS>/(...). This would cause problems. Therefore, in that case, we would have to show users how to create an archive that doesn't create the outer directory, for example by adding platform-dependent instructions in the readme.
The abstraction layer provided by archive / ensure is something that absorbs such internal difference. As long as programmers use archives via archive / ensure, they don't have to care about how those archives are structured (theoretically, they don't even have to know the format of an archive). This is why I chose to add the subcommand archive.
This doesn't mean, though, that I stick to the current implementation. I would happily remove this subcommand if I found a convincing argument against the necessity of it – There's not much more pleasant than removing unnecessary code.

This is a bit off-topic, but IMO there are multiple problems with the current "module" system.
In a somewhat random order:

You can override dependencies installed by other files by specifying the same output directory with ensure (of course the efficacy of this depends on which gets loaded first)
There is no checksum checking to make sure that you have the correct dependency, which would also allow getting your libraries from an alternative source, since if the checksum matches, then there's a very high chance of it being the required dependency. In addition, this would prevent errors due to corruption of the local cache of dependencies, e.g. due to user error (accidental rm -rf) or filesystem corruption
In the case of a diamond-like dependency tree (i.e., A needs B and C, B and C both need D), it is easy to accidentally include the same file twice, since it's probable that each dependency specifies a different output directory with ensure
There is no "namespacing", meaning that different versions of the same library will have the same names, which will cause a conflict. You can trivially test this by just having an ensure for the core library twice with different output directories.

I am not sure what the best way to solve all these problems are, but they are IMO blockers for neut becoming widely used, since using dependencies is a pain. You of course don't want a huge dependency tree like e.g. Cargo or NPM, where you need to trust every single dependency, but in the case of a fully pure language (which neut is if you erase all the impurities and make pure abstractions for them), then you don't need to trust them, since you can be sure that dependencies can only do what their type says.

I just realized, you can include dependencies you haven't ensured.

I would not say that the current implementation of the dependency system is ready for daily use, of course. It is meant to be an initial sketch, and definitely requires sophistication (or total rewriting).
I thank you for making the room of improvement easier to grasp. I'll try to write down my current thoughts on the points that you kindly made:

There is no checksum checking to make sure that you have the correct dependency, which would also allow getting your libraries from an alternative source, since if the checksum matches, then there's a very high chance of it being the required dependency.

Yes, it is definitely a desired feature (Indeed, the feature is already included in the "someday" section of my private todo list). The naive implementation would be to allow users to specify checksum information in ensure. The implementation itself would be not so difficult. I am willing to implement it after taking enough rest.

There is no "namespacing", meaning that different versions of the same library will have the same names, which will cause a conflict. You can trivially test this by just having an ensure for the core library twice with different output directories.

Yes, this would cause a pain. Thank you for making me aware of this. The naive solution would be to prohibit using multiple versions of a library, but it seems to be too restrictive. I definitely need to look for a better way to handle this.

You can override dependencies installed by other files by specifying the same output directory with ensure (of course the efficacy of this depends on which gets loaded first)

In the case of a diamond-like dependency tree (i.e., A needs B and C, B and C both need D), it is easy to accidentally include the same file twice, since it's probable that each dependency specifies a different output directory with ensure

Correct. At the same time, however, these are intended behavior, with the following intention:
The documentation of a library is expected to contain information on how to ensure it. For example, the documentation of the core library suggests users to ensure it into core/<IP_ADDRESS>. As long as users follow the instruction specified in the documentation, a library is downloaded in an integrated way. The current library management system can be considered as something in which the name of a library is specified by its user, not its author.

you can include dependencies you haven't ensured.

This is intended behavior. Currently I don't have a reason to prohibit this. Once ensured, a file in a project is no different than a file in the ensured library.

Off topic, but I really like this project. I hope it becomes popular since it fills a niche that isn't really filled by any other language. Thanks.

This is intended behavior. Currently I don't have a reason to prohibit this. Once ensured, a file in a project is no different than a file in the ensured library.

I think this is a great idea, but I don't see why this has to mean that you can use files you haven't ensured. Allowing you to use files from projects you don't explicitly depend on can result in other people not being able to compile your project, since they might not have the required libraries in the cache. In addition, removing a dependency from your project would entail manually searching for includes of the files since you won't get errors from removing the ensure, unless you also remove the entry in the cache.
It's not a huge issue, and there might be other ways to fix them, but I think it's important to declare your dependencies for the sake of reproducibility; it's not uncommon for me to encounter projects that don't specify all their dependencies which is much more noticeable on NixOS, where you have to specify them all explicitly since it's all compiled in a sandbox.
In any case, I don't think much can be done about the above issue without first considering the other points, since they are deeply intertwined, but I don't think solving this problem would be a hard task. A somewhat simple band-aid could be having ensure unpack the archive into a folder, where the folder name is hash of the archive. This would mean that users can't choose where to unpack the folder, and the user-specified name would instead specify the location of the virtual "file system" entry, so that effectively nothing in the language would change.

Thank you for suggestions, including the hash-based system. It sounds promising.
Also, now I think that your point on ensure (or reproducibility) is completely valid, thanks to your clear explanation. Towards the goal, it seems to me that we can split the current include into the one for a library and the other one for a user program. The former one will be something that includes a library file, which must be ensured beforehand. The latter one will be something that corresponds to the current include with a relative path. I'll add this to my todo list.
Anyway, I think we are too off-topic now (though it was constructive). Can we close this issue?

Yeah, definitely, thanks.


output data of your experiment

Hi! I need to do some comparative experiments. Could you please provide the output on the formal style transfer task (GYAFC dataset)?

I am sorry we didn't preserve the outputs of T5, you may need to train the model by yourself.


allOf with condition breaks completion

Describe the bug
While choosing suggested property value, Tab inserts <property-value>: <property-value> instead of just <property-value>:

To Reproduce
Setup:
{
    "$schema": "http://json-schema.org/draft-07/schema",
    "definitions": {
        "version-property": {
            "description": "A syntax version\nhttps://taskfile.dev/usage/#getting-started",
            "type": "string",
            "enum": [
                "2"
            ]
        },
        "v2-properties": {
            "properties": {
                "version": {
                    "$ref": "#/definitions/version-property"
                }
            },
            "additionalProperties": false
        }
    },
    "title": "tasks",
    "description": "Tasks",
    "type": "object",
    "required": [
        "version"
    ],
    "properties": {
        "version": {
            "$ref": "#/definitions/version-property"
        }
    },
    "allOf": [
        {
            "if": {
                "properties": {
                    "version": {
                        "const": "2"
                    }
                }
            },
            "then": {
                "$ref": "#/definitions/v2-properties"
            }
        }
    ]
}

schema for some local YAML file via .vscode/settings.json
Try to complete version value and obtain this bug.
Expected behaviour
Just "2" expected to be put while 2: 2 is inserted.
Versions (please complete the following information):

Environment: Node.js 16.14.2
yaml: [e.g. 1.10.0 or 2.0.0-2]
OS: Linux x64 5.15.0-67-generic

Additional context
Add any other context about the problem here.

Wrong repo for this; your issue appears to be with your VS Code plugin.


How to specify the Node executable if I cannot modify the system environment?

I cannot modify the system environment for security reason in our company,
I tried to debug the Jest test cases in VSCode, but I got an error "Cannot find runtime 'node’ on PATH. Is ‘node’ installed?".
Can I specify the Node executable file through the settings.json for this VSCode extension?

After reading the source code, I know how to set it in settings.json file.
"jestrunner.debugOptions": {
     "runtimeExecutable": ".../node-v10.16.3-win-x64/node.exe"
}

Thanks @zhangyanwei ! This worked for me 🎉


Improve genre handling

This query errors out for me locally with sample percentage must be between 0 and 100
Also this is the wrong endpoint for getting tracks by genre. You should be using tracks/random/[genreId]/genre


Replace any std usage of U256 with the native u256

This may not be implemented or stable in Sway at this moment but we should update for a performance boost.
Moreover, ref #10 in case that happens to be implemented.

Task completed at https://github.com/FuelLabs/fuel-bridge/pull/106


Web interface suggestion: Provide option to persist disk images and their SCSI IDs over reboot

Info

Which version of Pi are you using: Raspberry Pi 4 4GB Model B
Which github revision of software: 524f1c7
Which board version: 2.3 FULLSPEC
Which computer is the RaSCSI connected to: Quadra 700 and PowerMac 8500

Describe the issue
Typically, we setup our RaSCSI to connect to the computer, select our boot drives, and get everything configured nicely via web interface and then forget about how we setup the system.  Then the power fails and we lose the whole config again.
It'd be very nice to either have the image-to-SCSI ID have an optional 'persist upon reboot' assignment at time of attachment or "Save config" button on the main page that the service will read and configure upon reboot.

Alternately, it'd be nice to have a rascsi.conf file where these things would persist, potentially with overrides (vendor/model/serial-number examples that enable certain formatters, for example)

For the record, the way that you make device configurations persistent through reboots is to edit the rascsi.service configuration file typically residing in /etc/systemd/system/
I still agree that having the convenience of editing this through the webui would be great.

This exists in develop - you can save pre-sets and if it's name default it will load when rascsi-web loads.

I couldn't find a trace of the original implementation, so I went ahead and coded a new one in https://github.com/akuker/RASCSI/issues/217
@kraptv Can you please confirm that this resolves your intended usecases?


Handle time zone environment variable having international characters.

Description

Provide details of the change, and generalize the change in the PR title above.

Avoid sending the backend the wrong time zone format (or one with international characters) by using the Windows ICU library to get the canonical IANA time zone names (e.g. "America/Los Angeles").

Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Tested with "Romance Standard Time" --> "Europe/Paris" with LogInfo, prior to changing back to LogDebug.

Type of Change
Place an x the applicable box:

[ ] Bug fix. Add the issue # below if applicable.
[ ] New feature. A non-breaking change which adds functionality.
[ ] Other, such as a build process or documentation change.

Notes

Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
Read the contribution guidelines CONTRIBUTING.md.
Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

FYI not planning to merge until after the Unity release, just to be safe.

Unity build and tests succeeded here: https://github.com/firebase/firebase-unity-sdk/actions/runs/5138069241

Removed the extraneous log statements and added a comment to the cmake file.


[Q] Auto generate patch-xml files

Hi @lelegard ,
I started to use the "patch-xml" option with some plugins and it works very well. However, it's quite difficult to construct such files without errors. Luckily the tool tsxml helps a lot to check/debug these files. But, I'm thinking if it's possible to enhance the tool with a simple "comparison" mode. The concept is to compare two XML files and generate the patch version. Then it will be more easy to create the first version (or a draft) of the patch file, and after complete it with more advanced options. For sure, it will be not possible to generate all combinations. But a simple output with small changes will be useful.
What you think? This has sense? It's complext to implement it?
In any case, thanks for listening to us about these crazy ideas.

This has sense?

Not really, unfortunately. It is technically feasible to build a diff. But a diff is not a patch. An XML patch file contains matching criteria and then updates to apply. Having a diff gives no information on which matching criteria were used.

OK.
It could have general rules that would build upon and transform the input.
Sorry this is late, but I've done on the fly modification of XML where the
rules are converted to XSLT which is applied to the input.
We might pass the existing tables as XML to the XSLT and have it create the
updated output tables.
On Thu, Feb 18, 2021 at 12:04 PM Thierry Lelegard<EMAIL_ADDRESS>wrote:

This has sense?
Not really, unfortunately. It is technically feasible to build a diff. But
a diff is not a patch. An XML patch file contains matching criteria and
then updates to apply. Having a diff gives no information on which matching
criteria were used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tsduck/tsduck/issues/728#issuecomment-781492102, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTUOMBROXPWRCM7WOK4P5DS7VB6VANCNFSM4XZ3V6VQ
.

Hi @lenosj ,
I'm not sure about the advantage of a complex solution. My request was to create a first draft of the patch file. Just that, to after rewrite it manually. It's true that the current patching model of the tables using XML is quite difficult to write. But, this is more or less like programming. I suggest to @lelegard to continue with the KISS model.
Regards.

Unlike Java, C++ has unfortunately no XML standard library. C++ developers rely on various heterogeneous XML libraries which bring their portability and integration issues. I refuse to rely on this mess. I initially used TinyXML in TSDuck but it had compilation issues that the maintainers did not really want to address. Additionally, I had to write glue code on top of it that turned almost as big as the tiny library. So, I just dropped TinyXML and implemented basic XML parsing under the existing glue code.
But I do not want to dive into implementations of XML-Schema and XSLT which are powerful but overly complicated. So I use the light-weight builtin "XML Model" and "XML Patch" instead.
I used XML-Schema and XSLT quite extensively when I worked in Java about a decade ago. They are quite powerful but they require an extremely stable library that C++ does not have.
And by the way, based on my previous experience, XSLT is much harder to use than the light-weight XML Patch in TSDuck which is in fact really simple: define what you want, define your selection criteria, define what to change. Former Prolog programmers, if there are any left around, will find it quite natural.


refactor(traverse): generate_uid_in_root_scope method

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#3613
#3612
#3611  👈
#3610
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite


ReferenceError: Can't find variable: Intl

Current behaviour
An error shows when displaying the time modal
Expected behaviour
It should show the modal time picker
How to reproduce?
click on the timer icon
Preview

What have you tried so far?

Your Environment

software
version

ios
x

android
Android API 34 x86_64

react-native
"0.68.2"

react-native-paper
^5.1.3

node
v18.12.1

npm or yarn
yarn 1.22.19

expo sdk
"^45.0.0"

See related https://github.com/web-ridge/react-native-paper-dates/issues/213, https://github.com/web-ridge/react-native-paper-dates/issues/184, https://github.com/web-ridge/react-native-paper-dates/issues/153.
Also check out android caveats.

See related #213, #184, #153.
There are other resolved threads pertaining to this issue here.
Also check out android caveats.

adding this at app.json solved this bug. Thanks
...
"jsEngine": "hermes",
...


[nrf fromtree] Integrate nrfx3.0.0

cherry-picked from upstream zephyr
PR https://github.com/zephyrproject-rtos/zephyr/pull/57259

The following west manifest projects have been modified in this Pull Request:

Name
Old Revision
New Revision
Diff

hal_nordic
https://github.com/zephyrproject-rtos/hal_nordic/commit/140140ea047f441fe076d26f79eb54dc9a38bcb6
https://github.com/zephyrproject-rtos/hal_nordic/commit/a1a8a83771361fe932673119a073fd4af3943a77 (master)
<EMAIL_ADDRESS>

trusted-firmware-m
https://github.com/zephyrproject-rtos/trusted-firmware-m/commit/0e25742e8023a0c823c825fbaf19ea265162cc56
https://github.com/zephyrproject-rtos/trusted-firmware-m/commit/8209cb2ed2bc9a768cc1d715c2059616192cc720 (master)
<EMAIL_ADDRESS>

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Please cherry-pick also commit https://github.com/zephyrproject-rtos/zephyr/commit/b00422424f765b847c650f0a54f7c847a87f89ac.

already pulled in with upmerge


Update .travis.yml

Travis tests has failed
Hey Eliran Pe'er,
Please read the following log in order to understand why the tests failed.
It'll be awesome if you fix what's wrong and commit the changes.
Powered by: Travis Buddy


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-yml-archive-non-versioning-archive/pull/129 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-yml-archive-non-versioning-archive.git

Docs Build status updates of commit cb2b394:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit cb2b394:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Support the stm32duino platform.

This fixes #141.

Not compiling due to the way attachInterrupt was implemented within stm32duino ... would need to be fixed there.


update fingerprint

Status
Ready
Related Content Pull Request
Related PR: link to the PR at demisto/content
Related Issues
Related: link to the issue
Description

Updating the trust key.
Updating unzip to debian as unrar is not available anymore in alpine. Also see that build is working good.

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/unzip:<IP_ADDRESS>495
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/unzip/tags
Get started by pulling the image:
docker pull devdemisto/unzip:<IP_ADDRESS>495

Docker Metadata

Image Size: 58.70 MB

Image ID: sha256:902143aaadc1f7b4d6be6a756af608430434d0f98e4e2f3edd14aa03685cd333

Created: 2023-01-07T08:29:19.986616151Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.9
PYTHON_PIP_VERSION=22.3.1
PYTHON_SETUPTOOLS_VERSION=65.5.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py
PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6
DOCKER_IMAGE=devdemisto/unzip:<IP_ADDRESS>495

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:53450dc6a9eb372c26059149469ed0cbd015861f
org.opencontainers.image.version:<IP_ADDRESS>495

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/unzip:<IP_ADDRESS>496
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/unzip/tags
Get started by pulling the image:
docker pull devdemisto/unzip:<IP_ADDRESS>496

Docker Metadata

Image Size: 58.70 MB

Image ID: sha256:9f4142d527845f7c9063a79d1ffc0a8348c5a641bbc0f4da2633674215cd40d1

Created: 2023-01-07T08:34:48.208626062Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.9
PYTHON_PIP_VERSION=22.3.1
PYTHON_SETUPTOOLS_VERSION=65.5.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py
PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6
DOCKER_IMAGE=devdemisto/unzip:<IP_ADDRESS>496

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:c520492463101540f6f6c33ff159555a96375085
org.opencontainers.image.version:<IP_ADDRESS>496

@GuyAfik how were we able to support unzip in the native docker image? Do we need to make changes here?

@GuyAfik how were we able to support unzip in the native docker image? Do we need to make changes here?

we were able to install it from fedora-epel repo, here: https://github.com/demisto/dockerfiles/blob/master/docker/py3-native/Dockerfile#L68
regardless the script that uses this image is ignored at the moment. https://github.com/demisto/content/blob/master/Tests/docker_native_image_config.json#L37
There isn't anything needs to be done in the py3-native as long as no new OS dependency was added

Docker Image Ready - Production
Docker automatic build at CircleCI has deployed your docker image: demisto/unzip:<IP_ADDRESS>498
It is available now on docker hub at: https://hub.docker.com/r/demisto/unzip/tags
Get started by pulling the image:
docker pull demisto/unzip:<IP_ADDRESS>498

Docker Metadata

Image Size: 58.70 MB

Image ID: sha256:7f72f5f94429da196698c71bc891304d01c774b6845ef3fc90f759af3e92cd6f

Created: 2023-01-08T09:48:05.535691074Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.9
PYTHON_PIP_VERSION=22.3.1
PYTHON_SETUPTOOLS_VERSION=65.5.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py
PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6
DOCKER_IMAGE=demisto/unzip:<IP_ADDRESS>498

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:bece79b43f26f351ab1f341ca55e848119fcbb33
org.opencontainers.image.version:<IP_ADDRESS>498


rss, json and more

Newb alert: This is my first pull request!
I've piggybacked on another fork which includes the ability to configure a lookup field. This means that you can update or create a new record, depending on some field.
Things I added

You can import from a url, instead of uploading a file.
You can import json data.
You can import from a rss feed. You'll need to configure this mapping in rails_admin.rb.
I rearranged the view. This includes helper links in the message. The filetype is set explicitly, not inferred from the content type.

I merged in JSON support into version 1.0.0. I didn't actually put in RSS, but would consider it if enough people find it useful.
Thanks for your branch @adamwong246

no prob!
One last question- any reason to keep my forked repo around?

Not really any reason to get rid of it since you put the effort of writing all that code.
If you don't mind, I'll remove your link to RailsAdminImport++ in the plugin section of the Rails Admin wiki so new users won't get confused.

yes, that was my main concern. I didn't want to clutter github with projects I'm not working on. But if there's any value you at all, I'l leave it as it is.


Docs for library authors

Library authors sometimes need access to lower-level functionality of Prisma Client that's not available via the "official" Prisma Client API.
Often this involves access to the private dmmf property of Prisma Client. When documenting this, we have to make sure that it's clear that this is an "unofficial API" that might break in any release and should therefore be used with great care.

Hullo, the Prisma Docs team is closing older tickets that might be stale or no longer relevant. If you feel we have closed this Issue in error, please feel free to re-open it, or create a new Issue to update the topic. Thank you for being involved in our docs!


GCP: HTTPS Target Proxy

Target proxies are referenced by one or more global forwarding rules. In the case of HTTP(S) load balancing, proxies route incoming requests to a URL map. In the case of SSL proxy and TCP proxy load balancing, target proxies route incoming requests directly to backend services.

This uses the HTTPS Target Proxy API:
https://cloud.google.com/compute/docs/reference/rest/v1/targetHttpsProxies
This would should include the region based as well:
https://cloud.google.com/compute/docs/reference/rest/v1/regionTargetHttpsProxies
Related to #115

HTTPS Target Proxies use SSL Policies, so I have implemented those in this PR as well:
https://cloud.google.com/compute/docs/reference/rest/v1/sslPolicies


Adds tests against multiple cook schedulers

Passing build: https://travis-ci.org/twosigma/Cook/builds/233417110


What version of ecmascript is supported in JerryScript?

Hi @gustavosbarreto, JerryScript currently supports ECMA Script v5.1 specification.

Is there documentation tells what's left out from ECMA specification with the cp (compact profile) build?

@cwong1, AFAIK there is no documentation. Compact profile is quite experimental at the moment. In compact profile all ECMA builtins and arguments object are disabled. You may interested in the following issue: #88
You can also check the https://github.com/Samsung/jerryscript/blob/master/tests/jerry-test-suite/compact-profile-list file. Those tests run in CP. Do you have any usecase already?


IMU calibration

All the IMU sensors need to be calibrated and the calibration file should be used as an input parameter to the node

Update README when done

IMU sensors are not calibrated, but the calibration file should be copied to the default location: ~/.config/sense_hat/RTIMULib.ini, how to load this using the ROS node or launch file?


Drawing Classifier: input image resize fix

Fixes #3236.
This is an update to #3313. An image resize is already happening inside of image_util::copy_image_to_memory_impl.

Internal tests pass.


Heartbeat skip serialize and deserialize

What is the purpose of the change
提供者和消费者之间的心跳，Request和Response的Data都为null：
//org.apache.dubbo.remoting.exchange.support.header.HeartbeatTimerTask#doTask
Request req = new Request();
req.setVersion(Version.getProtocolVersion());
req.setTwoWay(true);
req.setEvent(HEARTBEAT_EVENT);//HEARTBEAT_EVENT = null

//org.apache.dubbo.remoting.exchange.support.header.HeartbeatHandler#received
Response res = new Response(req.getId(), req.getVersion());
res.setEvent(HEARTBEAT_EVENT);//HEARTBEAT_EVENT = null

当提供者和消费者数量非常大时，每个节点都需要发送/接受大量的心跳Requet和Response，这些Requet、Response也会和服务调用一样经过serialize+encode、decode+deserialize，而其中的serialize/deserialize需要消耗过多的CPU资源。
这个优化的目的是对于心跳Requet/Response跳过serialize/deserialize处理，serialize改为赋值为null对象的序列化后字节，deserialize改为直接赋值null。
Brief changelog
在CodecSupport中增加getNullBytesOf(Serialization s)方法，首次访问时根据serialization获得null对象的字节数组并缓存到ID_NULLBYTES_MAP
DubboCodec、ExchangeCodec中在调整encodeRequest、encodeResponse、decodeBody逻辑，实现上述目标。
备注：目前DUBBO的Serialization的实现中，以下三个实现其实尚不支持null对象的序列化，在CodecSupport.getNullBytesOf中降级为返回空字符串。

KryoSerialization2
GenericProtobufSerialization
GenericProtobufJsonSerialization

Follow this checklist to help us incorporate your contribution quickly and easily:

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

Codecov Report

Merging #7077 (fdc767a) into master (70b6fb3) will increase coverage by 0.32%.
The diff coverage is 63.07%.

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

Codecov Report

Merging #7077 (fdc767a) into master (70b6fb3) will increase coverage by 0.32%.
The diff coverage is 63.07%.

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


No Pokemon

there are no pokemon on map, still after 10 minutes not

The pokemon servers are down right now.

Yes the servers are going up and down for the last hour. It is not this applications fault.

ok thanks

Can someone confirm that when the servers aren't on fire, all I need to do is open the app, login, and the pokemon will load automatically on the map.

yes, it was working fine.

There's no pokemon on mine either. I downloaded the file unzipped it and opened the file entered my info and the map opened with no pokemon appearing anywhere.


Add "Too new to rate" status to Payment History Profile

We are working on a Canadian credit reporting product, and while consulting the Canadian Metro2 documentation from Equifax we found that there is a payment history profile status missing in this library that we require - Too New To Rate, status code Z.
I have added it alongside the other payment history profile statuses, and added it to the validator which I believe should be sufficient, but please let me know if there is more to this.
I also can't link to the documentation as it is a private PDF from Equifax; I'm not sure if any confirmation of this is required but if it is I'll have to find a way to present it.
@adamdecaf tagging you as the most recent author I see contributing since this is a trivial PR

@jamierajewski can you try updating the library in your project?
go get -u github.com/moov-io/metro2@master

We were actually using a fork of the library so I need to swap it out with the original. It might be a little while before we can do that as there were a few other changes made that I need to compare to the original and see if I need to put up anymore consistency PR's

Okay sounds good. We'd be happy to accept more fixes for metro2!


Faster implementation?

Would it be faster to do something like:
  redashUuid4(uuid) {
    let final = "";
    for(var i = 0; i < uuid.length; i++){
      if(i == 12 || i == 16 || i == 20){
        final = final.concat('-')
      }
      final = final.concat(uuid.charAt(i))
    }
    return final;
  },

Either way it probably wouldn't make a huge difference. 😄


Add istio-must-gather page

@JStickler thanks for the review, Julie. I've updated the PR and replied some of your comments.
I'm really not sure how to describe the output dir, since must-gather - which is not a tool we developed, does not have to seem a proper doc about that.


[BUG] - DatePicker Console Error

NextUI Version
2.3.5
Describe the bug
I'm getting a warning that the props are named incorrectly. Since everything is ok, apparently it is an error in the component core
React does not recognize the showMonthAndYearPickers prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase showmonthandyearpickers instead. If you accidentally passed it from a parent component, remove it from the DOM element.
React does not recognize the isRequired prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase isrequired instead. If you accidentally passed it from a parent component, remove it from the DOM element.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Justa pass one of this props isRequired, isDisabled, isReadOnly, showMonthAndYearPickers
Expected behavior
No console warnings
Screenshots or Videos
No response
Operating System Version
Windows 11
Browser
Edge

Duplicated #2823


[Feature Request] make registration of gym and gymnasium based env more easily

🚀 Feature
Make registration of gym and gymnasium based env more easily
Motivation
No response
Additional context
No response
Checklist

[X] I have checked that there is no similar issues in the repo
[X] I have read the documentation

added in #139


idea for logo? Anigma - An Open Era of Messaging

i like this logo. but even if this logo is not used, the colors are still lovely


bug: Pydantic dataclasses with extra args break parsing of the function signature

Description of the bug
Griffe fails to parse the class init signature for pydantic dataclasses that allow extra kwargs.
The result is missing types in the documentation and everything marked as required.
allow_extra = ConfigDict(extra="allow", str_strip_whitespace=True, allow_inf_nan=False, arbitrary_types_allowed=True)

@dataclass(config=allow_extra)
class FDK_AAC(Encoder):
    """
    Uses the libFDK implementation in ffmpeg to encode audio to AAC.
    It's strongly recommended to use qAAC if you're on windows because its straight up the best AAC encoder.

    :param bitrate_mode:        Any int value from 0 - 5
                                0 will be CBR and using the bitrate below, 1 - 5 are true VBR modes
                                See https://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC#Bitrate_Modes

    :param bitrate:             Any int value representing kbps
    :param cutoff:              Hard frequency cutoff. 20 kHz is a good default and setting it to 0 will let it choose automatically.
    :param preprocess:          Any amount of preprocessors to run before passing it to the encoder.
    :param use_binary:          Whether to use the fdkaac encoder binary or ffmpeg.
                                If you don't have ffmpeg compiled with libfdk it will try to fall back to the binary.
    :param append:              Any other args one might pass to the encoder
    :param output:              Custom output. Can be a dir or a file.
                                Do not specify an extension unless you know what you're doing.
    """

    bitrate_mode: int = 5
    bitrate: int = 256
    cutoff: int = 20000
    preprocess: Preprocessor | Sequence[Preprocessor] | None = None
    use_binary: bool = False
    append: str = ""
    output: PathLike | None = None

To Reproduce
Install the package with the dynamic-dataclasses branch.
pip install git+https://github.com/Jaded-Encoding-Thaumaturgy/muxtools.git@dynamic-dataclasses
And then either use the docs repo itself like
git clone https://github.com/Vodes/muxtools-doc.git
cd muxtools-doc
pip install mkdocs-material mkdocstrings[python]
pip install --no-deps git+https://github.com/Jaded-Encoding-Thaumaturgy/vs-muxtools.git
pip install --no-deps git+https://github.com/Vodes/vodesfunc.git
mkdocs serve

http://localhost:8000/muxtools/audio/encoders/ will then show the issue.
or just use a blanket docs setup that just embeds the encoders file like this
Full traceback
Full traceback
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: Parameter 'bitrate_mode' does not appear in the function signature
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: No matching parameter for 'bitrate_mode'
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: Parameter 'bitrate' does not appear in the function signature
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: No matching parameter for 'bitrate'
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: Parameter 'cutoff' does not appear in the function signature
WARNING -  griffe: C:\Users\Alex\AppData\Roaming\Python\Python312\site-packages\muxtools\audio\encoders.py:274: No matching parameter for 'cutoff'
...

Expected behavior
Properly parse types in the signature.
Using a vanilla python dataclass results in the wanted behavior.

Environment information
- __System__: Windows-11-10.0.22631-SP0
- __Python__: cpython 3.12.3 (Z:\Program Files\Python312\python.exe)
- __Environment variables__:
- __Installed packages__:
  - `griffe` v0.47.0

Hi @Vodes, thanks for the report.
For future reference and ease of reading, could you add a snippet showing your Pydantic dataclass declaration?

Yeah no problem. The class that is also used in the screenshot is defined right here.
The config being used is in this seperate file to not clutter up everything else.

Thanks, let me update the issue body with these.

I suppose we will have to somehow duplicate the code of our built-in dataclasses extension into the sponsors-only pydantic extension, with additional logic since Pydantic's dataclasses allow a few more things.

So I understand, this is out of scope for griffe without the extension? I'm not really interested in pydantic stuff outside of the dataclass and I only really care about the actual attributes being presented properly.

Yep, what we incorporate in Griffe is support for the standard lib and the Python language itself. Dataclasses, even though standard, are a bit special (and quite hard to handle statically) so they are supported through a built-in extension.
Pydantic models and dataclasses are third-party, so they are handled through an external extension.
If you don't want to become a sponsor 😜 and rely on the Pydantic extension, you could try to force dynamic analysis on such dataclasses (which could help for the issue here). I'll add an example on how to do that in the docs 🙂

Hey so I just noticed that there were some docs related commits lately but would you mind pointing me in the right direction of what I should enable to make this work?

I didn't want to bump this but I assume now that the extension is public this isn't really a concern anymore. Feel free to close if so.

Sorry, missed your previous reply. By the way, feel free to ping me if I don't answer in the future (that's what my GitHub status say :smile:!).
The griffe-pydantic extension just became public indeed (thanks to my awesome sponsors :rocket:), but it doesn't have any kind of support for Pydantic's dataclasses yet, so I believe we can keep this open.


SSPullToRefresh does not work correctly on ios11 if it's compiled with xCode9

@avshiyanov, could you provide more details, please?

@enzosterro I think this problems appears only after making a new build project in new xCode 9, this problem is related to content inset of UITableView and pull to refresh looks wired - for some cases it's under navigation bar and don't disappears after making "pull to refresh"

@avshiyanov, it's interesting. I've got no problems that you've described.

@enzosterro It happen after building project on xCode9

@enzosterro I think problem inside of SSPullToRefresh, I tried another pulls to refresh and it works but with not similar UI . I think you need test this control under XCode 9 with different simulators and you will see that it's broken, please look on screenshot

I also have the same issue. Haven't had time to dig into the code to see why.

@ScottRobbins Yes it's contentInset issue, I was able to fix on client, but think best place to fix it in the library @enzosterro . Not sure if best solution is hardcode top inset for iPhoneX, but it works for me for all iOS and deviceTypes
UIEdgeInsets inset = self.tableView.contentInset;
if (@available(iOS 11.0, *)) {
    inset = self.tableView.safeAreaInsets;
} else {
    inset = self.tableView.contentInset;
}
inset.top = isDevicePhoneX ? 24 : 0;

self.pullToRefreshView.defaultContentInset = inset;

if (@available(iOS 11.0, *)) {
    self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
    self.automaticallyAdjustsScrollViewInsets = NO;
}

@avshiyanov, sorry, but it's not mine library. And yes, after I've built project in xCode 9, I've stuck with same problems.

@enzosterro I see

@ScottRobbins Do you have solution for fix?

I do have kind of the same issue, but on Xcode8/iOS 10.
After a pull to refresh top of my tableview is hidden. Seems like contentInset is miscalculated.
My hierarchy: NavigationController -> Tabbarcontroller -> UIViewController -> UIView -> UITableView

@pjechris Hi, I fixed it at https://github.com/avshiyanov/SSPullToRefresh


Auto-deploy to pursuit on tagged release

I can't tell for sure if this will work, so if it doesn't I may end up making changes and creating/deleting a tag a few times to test. Once we figure it out on here it can be applied everywhere at least!
I've setup the $PURSUIT_TOKEN variable in travis already.

I couldn't get it to do even run psc-publish so I'll try and figure that out on a temp repo somewhere then come back to this.

I reverted also reverted all the commits I made while trying to get it to work.


ResizeNearestNeighbor support bfloat16

Fix #32801

@fsx950223 Could you please check reviewer comments and keep us posted. Thanks!

Yes, I'm still looking for the commit which implemented bfloat16 alone.

I may reopen it when I find the solution


feat: add paypal as supported oauth provider

For testing if needed, follow these steps:

Login in sandbox mode https://developer.paypal.com/dashboard/applications/sandbox
Go to "REST API apps" section, select or create an app, and copy the credentials needed for the .env file
Click on your app name, scroll down to the "Features" section, and enable "Log in with PayPal"
Click on the "Advanced Settings" text and place a "Return URL"
Paypal gives an error if you try adding http://localhost:3000/auth/paypal so I manually added the --host flag on the dev script to add my network IP address as a Return URL
Scroll down, select the scope email or the ones that you would like to test, and click on save
Test the Paypal auth

I also added the sandbox config which allows using the sandbox or production environment from Paypal, used import.meta.dev as the default value to automatically set it true in dev and false in production when not defined
https://github.com/Atinux/nuxt-auth-utils/blob/1ad2a93e4a06d127f9aa22a436f393883a4ea927/src/runtime/server/lib/oauth/paypal.ts#L63-L68

Sorry for the late review @Yizack
I am getting this error even though I followed your steps.

Thanks for helping btw <3

Will merge and feel free to continue on this conversation or add another PR to fix later on.

Hey! @Atinux

I am getting this error even though I followed your steps.

This error happens to me only when using the default business sandbox account. I am not sure why but try creating another sandbox account here https://developer.paypal.com/dashboard/accounts
Also for testing I realized is better to use http://<IP_ADDRESS>:3000/auth/paypal as redirect URL than your --host ip


path-style suggests strings for arrays with non-constant values

The following code produces a warning with the default lodash configuration:
function foo(x, y) {
  return _.get(x, ['bar', y, 'baz']); // Use a string for paths [lodash/path-style]
}

I don't think the warning should fire in this case. I could write _.get(x, 'bar.' + y + '.baz') (or use string interpolation in ES6) but I can't use a simple string literal in this case.

@Wilfred agree. This also has other semantics when y contains dots.


Module:list and module:install not detecting locally developed packages

Hello.
Small disclaimer: this is my first Issue report on GitHub so please don't be too offended if it is a bit clumsy. I feel like this is a bit of a Stack Overflow question format, but since I believe there is an issue with the package, I am posting it here.
To start off: great package you have there, thank you for maintaining it.
I would like to use your package in our system (I like the folder setup and publish, migrate, ... module commands), but I am facing issues when trying to share the modules between two locally developed applications.
I am fully aware that this might be an issue on my part (bad composer.json settings, wrong setup, some human factor on my part, ... ) but I believe that I am correctly following your instructions and not getting the results I should be, so I have decided to bring this to your attention.
Introduction and my setup:
So, to describe the problem: I develop two Laravel applications set up as web services that work together in a bigger system, let's call it The System and the applications are CLM (Central module) and a demo app called Post Demo (I am currently testing technologies, libraries and setup for larger system of applications currently in development). The System is working fine so far but as of now the shared code is copy-pasted from one module where it is developed (the Post Demo) to the other.
The code shared so far consists of two modules - the ModuleBase and SUD (System Users Database). For the sake of this issue simply two bits of shared code consisting of few dosen classes.
I use Git  and upload both applications to our company's Gitlab, but I would like to share the code locally between the applications without separating the modules into their own Git repos having to commit every change to the server first (and setting up the connection to Gitlab in composer, etc.).
I use the following setup in my composer.json in the CLM (where the modules are installed/copied by composer):
"repositories": [
    {
      "type": "path",
      "url": "../PostDemo/library-modules/*",
      "options": {
        "symlink": false
      }
    }
  ]

This works perfectly fine - when I require the modules in composer.json and perform composer update, then the two modules are copied from the PostDemo to the vendor folder.
In my modules.php I have this setup to scan modules from my vendor folder:
    'scan' => [
        'enabled' => true,
        'paths' => [
            base_path('vendor/*/*'),
        ],
    ],

Results of artisan commands
But when I run artisan module:list, I do not see any of the modules (even though I do see them in the PostDemo project).
And when I run λ php artisan module:install "my-company-name/modulebase" I get this:
./composer.json has been updated

> php artisan clear-compiled

The compiled class file has been removed.

Loading composer repositories with package information

Updating dependencies (including require-dev)

  - Installing my-company-name/modulebase (dev-master)

    Mirrored from ../PostDemo/library-modules/ModuleBase

  - Installing my-company-name/sud (0.1.1)

    Mirrored from ../PostDemo/library-modules/Sud

Writing lock file

Generating autoload files

> Illuminate\Foundation\ComposerScripts::postUpdate

> php artisan optimize

Generating optimized class loader

The compiled class file has been removed.

  [Nwidart\Modules\Exceptions\ModuleNotFoundException]
  Module [Modulebase] does not exist!

And the same result for php artisan module:install "my-company-name/sud"
(I even tried to remove the dependencies from require before running this command - they do get correctly detected and installed by composer, but the modules package does not detect them saying that the module does not exist, as is visible above ↑.)
Note: the "my-company-name" is just a placeholder, our company's name is actually one short word that I do not want to publish. So there should be no issues with that string.
The module classes get autoloaded correctly, everything works fine, but the Modules are not detected by your package, so I cannot use the module:migrate etc. commands. And the modules' ServiceProvides do not get registered into Laravel application (as they do in PostDemo), so my services, commands, etc. are not registered.
Conclusion
I know that I can manually add the providers to my config/app.php, but the issue is - why does the module:list and module:install command not detect my modules as installed?
Is there an issue on my part or could this be an issue in the modules package? And how can I fix this on my part or help you resolve this?
Module composer.json
For sake of completeness, there is my composer.json from my module (I have tweaked it a lot to get all the local repository "magic" working and then when I attempted to get the modules working. This is not the final version I plan to use):
As noted above: the "my-company-name" is just a placeholder.
{
    "name": "my-company-name/modulebase",
    "version": "dev-master",
    "type": "library",
    "description": "The base of modules.",
    "keywords": [],
    "homepage": "http://www.my-company-name.com",
    "license": "proprietary",
    "authors": [
        {
            "name": "my-company-name",
            "email"<EMAIL_ADDRESS>        }
    ],
    "autoload": {
        "psr-4": {
            "MyCompanyName\\LibraryModules\\ModuleBase\\": ""
        }
    },
}

Hello,
Sorry for the delayed answer. However it looks like you can use composer to handle these dependencies. A module can be submitted to packagist/satis/etc. for instance

Hello.
Thank you for your response. I know that there are workarounds as you mention, but I wanted to know why there is an issue with the "local repository" defined in Composer.
Because I thought that it should be "equal" to using a remotely hosted module (I thought that the local repo is the same as any other repo, for example the packagist or satis repo that you mention. )
The main reason why I want to use the local repo is that (as far as I know) for Satis or any other remote repo to work, I have to commit my code and push it, but that's the exact opposite of what I want to do during development.
Because I actually want to try out the "Work in progress" version of the module locally in my other projects before commiting and pushing it.
But when using Satis I would have to commit potentially dirty code so that I can actually test if it contains bugs when used in the other projects. That is feasible but quite impractical.
I do want to push the code and reuse it, when developing other packages (I actually already do that), but when I develop the module itself, I would prefer to use the local repo.
So - do you have any idea what is the difference between the "local repo" and "remotely stored repo" that causes the modules not to be detected, as I have mentioned in my original post?
I really like your package and I would like to use it for development, so I am trying to find a way to make this work...

Update: problem workaround/fix found!
I am not sure where the issue is, but if we use local packages without symlinks (  "repositories": [ ... { "config": { "symlink": false   } } ] in composer.json) then the modules seem to work.
I have rebuilt the projects of all my modules and changed a lot of config, so I dont know for sure what the original issue in my setup was, but the current state is already good enough for me to keep on using your Modules package in production.
It might have been something as stupid as me forgetting to "php artisan config:cache " things after setting the 'scan.enabled' config to true in modules.php, but I was trying out a lot of stuff before I originally posted this issue.
Anyway: it seems to work now. Thank you for your previous reply, I think that this issue can now be closed as resolved.

You are confusing modules with packages.


Fix proposals decoding issue

Changes in this pull request
Issue fixed:
1st: Proposals are not being presented because the /proposals response has changed
Explanation.
Earlier, the /proposals endpoint returned an array of proposals, but now it returns a dictionary with additional details alongside the proposals.

2nd: Proposals are not being presented because the State.rawValue from the /proposals response probably has changed
Explanation.
The /proposals endpoint contains a status field within the state field of type String.
"status": {
   "state": "implemented"
}

I assume that the state response changed, so the app couldn't decode it and returned a ServiceError.invalidResponse  error.

Checklist

[x] Project builds and runs as expected.
[x] No new linting violations have been introduced.
[x] No new bugs have been introduced.
[x] I have reviewed the contributing guide
[x] I'm attaching to this PR some screenshots (if applicable)

@unnamedd
Hi, the app doesn't seem to be displaying the proposals list.
Here's a fix, please take a look🙂

Hi @AlexSiarheyeu, I will download your branch and give a check and merge it as soon as possible!
Thanks a lot for the time spent in this old project and the fix!

@unnamedd Thanks!
Also, when I go to the proposal details screen, I encounter a 500 Server Error.
Could someone please look into this issue?

Yeah @AlexSiarheyeu, I noticed that too, the reason is because in the past, the proposal used to have the full url for the proposal markdown, I am fixing that in the backend and after that, it should work in the EVO again. Fortunately, these changes are cheaper to fix in the backend than in the app (which demands a new review process at Apple).
Tonight I should fix it and I will ping you here to give a check on your side. Sound good?

@unnamedd Do you plan to release a new version of the app sometime?
The current version in the app store doesn't appear to be working🥲

@AlexSiarheyeu yes, probably next week. Meanwhile, I will try to make a change in the backend to help in the fix with that dropped dot in the status. Fixing that, the current version in the store will get back to work.


[1.19.4] java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1092 failed

crash-2023-08-08_08.26.41-client.txt
It only crashes on 1.19.4, but works just fine on 1.19.0 through 1.19.3.

if linkie is to be believed, it probably still crashes on 1.19.3 too


Python debugger error

An uncaught error in Atom ide had pop out,it is saying:
This socket has been ended by other party
event.js.183

I have the same error, when I click on Run it shows:
Uncaught Error: This socket has been ended by the other party
events.js:183
Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (net.js:351:12)
at PythonDebuggerView.module.exports.PythonDebuggerView.stopApp
at PythonDebuggerView.module.exports.PythonDebuggerView.runApp
at HTMLButtonElement.
at HTMLButtonElement.dispatch
at HTMLButtonElement.elemData.handle
Any ideas how to solve this error?


Mexico Timezone out of date

Hello all! 👋🏾
Mexico stopped observing daylight savings and now the Zulip desktop app is 1 hour ahead of what it should be.
(It's 8am here and the desktop app says 9am). The browser version of the app shows the correct time.
https://en.wikipedia.org/wiki/Daylight_saving_time_in_Mexico
Thanks! Huge fan of Zulip.

@miguelraz just to check, are you using Zulip Cloud or a self-hosted Zulip server? This is the kind of issue that should be managed by the third-party libraries we include, so one possibility is you're using an out-of-date self-hosted server.
(Do you happen to know the precise timezone code for where you are?)

@miguelraz are you able to check if this is still broken for you?

Yes, it's working now! Thanks!


Added Unlocker specs & examples

@digitalextremist fixed the code issues as you mentioned yesterday

@dilumnavanjana at first glance: mind your tab spacing. Will look further soon.

And can you rebase base all those redundant merges?

There may be some problems with my Sublime settings. I'll fix it & also will rebase all merges


abnf.js", which threw an exception: TypeError: Cannot read property 'decode' of undefined

Trying to use ParsedMessage from '@spruceid/siwe-parser'; on our React Native app to parse the payload string received from WalletConnect. The error can be reproduced by implementing the snippet below and trying https://login.xyz/.
export function parseSiweMessageRequest(message: string) {
  try {
    const parsedMessage = new ParsedMessage(message);

    return parsedMessage;
  } catch (error) {
    console.log({ parsedMessage: error });
    return null;
  }
}

Hello, glad to have your feedback. siwe libraries require some node polyfills, I'm afraid you might be missing them. You might want to use [SSX](https://docs.ssx.id) which already includes those and also give you a lot more on top. In the same repo there are a lot of React examples not sure if they can help you out.

Thank you for your quick reply. I am afraid that doesn't solve the problem. In the scenario, I'm the wallet not the dApp itself. So ssx is used by the dApp to establish with the respective backend all the SIWE flow, but as a wallet using the WalletConnect lib (https://walletconnect.com/) to connect into dApps. From that perspective I just need to parse a request and be able to identify if it's a SIWE or not and produce an object out of the string payload received. I can do it via custom implementation but seems that @spruceid/siwe-parser implements that. What am I missing to make this work with React NATIVE?

Team work!

Same with me

I've just published apg-js version 4.2.0 specifically modified to address the fix that @Jonathansoufer pointed out and more. Give 4.2.0 a try and if it fixes this problem then I would assume this issue could be closed.


Model attribute: The property columnType isn't a recognized property.

example.zip

Waterline version: 0.13.1-9
Node version:8.9.3
NPM version: 5.6.0
Operating system: debian 9

Reading here https://libupdate.com/libs/5b73bab9-7c91-4ab6-8cea-ebeb3aacd925 i understand it as model attributes should in this waterline version have the property columnType to indicate how the value should be stored in the datanase (e.g INTEGER or DATETIME in sql db). However i receive the following error when defining a simple model
let model = Waterline.Collection.extend({
        identity: 'arraymodel',
        datastore: 'edgetests',
        attributes: {
            id: { type: 'number', autoMigrations: { autoIncrement: true }},
            date: {type: 'string', columnType:'DATETIME'}
        },
        primaryKey: 'id'
 });

{ userError: The attribute date on the arraymodel model contains invalid properties. The property columnType isn't a recognized property.
at parseProperties (/home/mikael/git/waterline-test/node_modules/waterline-schema/lib/waterline-schema/schema.js:239:48)
at /home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3228:15
at baseForOwn (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:2199:14)
at /home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3198:18
at Function. (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3501:13)
at parseAttributes (/home/mikael/git/waterline-test/node_modules/waterline-schema/lib/waterline-schema/schema.js:237:9)
at /home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3228:15
at baseForOwn (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:2199:14)
at /home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3198:18
at Function. (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3501:13)
at normalizeCollection (/home/mikael/git/waterline-test/node_modules/waterline-schema/lib/waterline-schema/schema.js:158:7)
at arrayEach (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:1439:13)
at Function. (/home/mikael/git/waterline-test/node_modules/@sailshq/lodash/lib/index.js:3500:13)
at schemaBuilder (/home/mikael/git/waterline-test/node_modules/waterline-schema/lib/waterline-schema/schema.js:34:5)
at new WaterlineSchema (/home/mikael/git/waterline-test/node_modules/waterline-schema/lib/waterline-schema.js:36:12)
at Object.initialize (/home/mikael/git/waterline-test/node_modules/waterline/lib/waterline.js:581:26) name: 'userError' }
Looking into waterline-schema (1.0.0-25 ) I can not find columType in accesable/valid-attribute-properties.
Thus this seems to be a bug.
To reproduce
download an unzip
run: npm install && node.index.js

Documentation is still not up to date apparently, documenting unique, isIn, and columnType as root level fields


Externalize RTSPtoWebRTC server

the alexxit webrtc solution is superior to the recently added rtsptowebrtc ha core integration. the current ha core rtsptowebrtc integration is slow, provides no support for audio tracks, no ptz, no shortcuts, and no native browser controls such as fullscreen or picture-in-picture, and it cannot run in the background to stream audio on a phone with screen off.
why use the rtsptowebrtc ha core integration over the alexxit webrtc hacs custom component? perhaps the blackmagic download and hosting of the rtsptowebrtc binary server, or hundreds of ports opened inside the home assistant container which create port mapping hell
this pr normalizes the alexxit/webrtc integration as a simple client that consumes an external server, moving code into the direction of broader acceptance and reuse. Running the rtsptowebrtc server externally allows for less coupling, better network controls, and improved server configuration with less splintering from upstream forks.
after merging this pull request, an external rtsptowebrtc server is required. the server will presumably run as a haos add-on, or separate docker container.

I have my own fork https://github.com/AlexxIT/RTSPtoWebRTC with some additional API.
This component using binaries from that fork.
For now I'm developing totally new binary. With tons of new features. And plan to use it in new big release.

Well. Now I have another backend for this integration. It will be used in the future:
https://github.com/AlexxIT/go2rtc


Implement timedelta for CLI

This will add a new feature to this which can be used like
worldtimebuddy --timezone UTC --delta +2hr
The above command should return +2hrs in UTC timezone. Be careful this should only work if timezone flag is available.
Sample combinations
worldtimebuddy --timezone UTC --delta -2hr
worldtimebuddy --timezone UTC --delta -2min
worldtimebuddy --timezone UTC --delta +2min
worldtimebuddy --timezone UTC --delta -1day

Hey! I would like to work on this, please assign the issue to me ^^


Tiny fix, NullPointerException in FeatureComputationPanel/Model

I get a NullPointerExcpetion when I execute Mastodon.main(...) from IntelliJ.
The exception is thrown at this line: https://github.com/mastodon-sc/mastodon/blob/2f1572c2d9715371b6e59974546c32bd86dd13d5/src/main/java/org/mastodon/feature/ui/FeatureComputationPanel.java#L193
The reason is FeatureComputationModel.getFeatureSpec(...). It returns null if no feature is installed. It's probably better for this method to return a empty list rather the the null value, if there are no features found.
@tinevez You probably didn't came across this problem, because you the features installed in your project.

That was fast :+1: :heart:


Specs need environment variables to be set to run green

Currently the specs require that the OPENAI_ACCESS_TOKEN and SERPAPI_API_KEY environment variables to be set for the specs to run green.  It doesn't matter what they're set to (provided that you're running specs against VCR).  This is the pattern used in ruby-openai.
It has a lot of downsides, most notably that you can't actually write tests for your key checking logic or write tests that have meaningful and different settings for the corresponding configuration values.  I used a different approach - adding a global default configuration and the ability to override - in the asimov gem.  I would suggest a similar change be considered in the future.
That said, if we'd like to get specs to green on GitHub Actions without making that kind of change I think there are two ways of doing so:

Use the GitHub Actions environment variables - https://docs.github.com/en/actions/learn-github-actions/variables - and set dummy variables for these values in the context run by GitHub.  This has downsides for forks, which will need to set their own variables.
In the spec/spec_helper.rb check for existing values for these environment variables.  If they don't exist, set the dummy variable in the environment.

I can do the second if that's the desired approach.  Doing the first requires admin access to the repository.  Thoughts @francis ?

I was thinking the first approach Peter. Hmm, but the second one is pretty easy too.

@petergoldstein - I put dummy ones right in the action. This make 3 out of 5 work.
Java runtime has an issue with the debug gem. Probably should take this off of the dependencies.
For some reason, the sqlite3 gem does not support the latest ruby:
sqlite3-1.6.0-x86_64-linux requires ruby version < 3.3.dev, >= 2.7, which is
34
incompatible with the current version, 3.3.0.dev
35
Error: The process '/home/runner/.rubies/ruby-head/bin/bundle' failed with exit code 5

Nevermind. You fixed this in your latest pr. It is all Green now.


Update slf4j-api to 2.0.1

Updates org.slf4j:slf4j-api from 1.7.36 to 2.0.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.slf4j", artifactId = "slf4j-api" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.slf4j", artifactId = "slf4j-api" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

not sure if this is a safe upgrade, or might be considered disruptive?
an example where it was considered disruptive: https://github.com/slick/slick/pull/2524

Superseded by #372.


Implement connection.getMetaData().getURL()

This is quite useful for diagnostics and should be trivial to implement

Fixed by @mgaev in d47c09f0d6841ad441337ba2ec3fda77fd72b945


Filter table select is empty

Expected Behavior
Filter table select should allow to filter table cells when data is provided in that cell

Current Behavior
Hello, at the moment when i get data from API sometimes some cells can be empty and than problem appears in filter select table because you get empty select values if no data is provided. How this issue can be solved because there will be cases when data will not be provided and in that case i don't want to filter that cell. Is there any walk around?

Right now, the only way you can do this is by creating your own filter field with filterOptions: { display: Component }. You provide your own Select or whatever component for that column and eliminate empty data as an option. If using a TextField, you can use filterOptions: { logic: Function } to filter out empty results.


PixelSearch Parameters

V1:
PixelSearch, , , CenterX, 1, CenterX, 1, 0xF3F3F3, 0, Fast
if (Errorlevel == 1)
	{
	ScreenHeightTop := ScreenHeightTop+23
	Height := Height-23
	}

V2 (Converted):
ErrorLevel := !PixelSearch(, , CenterX, 1, CenterX, 1, 0xF3F3F3) ; V1toV2: Converted colour to RGB format
if (Errorlevel == 1)
	{
	ScreenHeightTop := ScreenHeightTop+23
	Height := Height-23
	}

V2 (Expected):

in V1, you could leave the first 2 parameters empty

Error: "Missing a required parameter"

Maybe this? couldn't find a way to skip setting a var
ErrorLevel := !PixelSearch(&AHKv1v2_TEMP, &AHKv1v2_TEMP, CenterX, 1, CenterX, 1, 0xF3F3F3) ; V1toV2: Converted colour to RGB format
if (Errorlevel == 1)
	{
	ScreenHeightTop := ScreenHeightTop+23
	Height := Height-23
	}

this is also probably an issue with every var to varref conversion
changing V2VR param convert is probably best

But then again, not all out vars are forced
I think when I get feel like it ill begin the tedious task of checking each V2VR and seeing if its mandatory in v2, then do above


Key Difference in Optimization Between Implementation and Paper

While reviewing the implementation in this repository, I noticed a critical discrepancy between the optimization method described in the paper and the code regarding the role of the LBFGS optimizer. Specifically, in the on_after_backward function located in ldm/models/diffusion/ddpm.py, the gradient descent on textual_inv_embedding is carried out based on the gradients of projected_textual_inv_embedding. It is important to highlight that the on_after_backward function is invoked prior to the optimizer.step().
Additionally, the optimizer's learnable parameters are set as projected_textual_inv_embedding. However, in the fast_projection method within ldm/modules/encoders/localclip_transformer.py, the value of projected_textual_inv_embedding is reset to the nearest neighbor embedding of textual_inv_embedding from the vocabulary at every forward call. This means that, throughout the optimization process, the optimization of projected_textual_inv_embedding does not seem to have any practical effect on textual_inv_embedding.
Considering these observations, could we infer that simple gradient descent combined with the Straight-Through Estimator (STE) technique is sufficient to achieve desired outcomes in hard prompt optimization?
Looking forward to your insights on this matter.

Hello, thanks for the curious question!
The code is in-line with that shown in the paper. The on_after_backward() gives us the gradient of the projected_textual_inv_embedding which we utilize to update the textual_inv_embedding. The optimizer.step() that is invoked after would update the projected_textual_inv_embedding  with projected_textual_inv_embedding.grad and we use the same gradient to update textual_inv_embedding. Therefore, the gradients of projected_textual_inv_embedding impact the textual_inv_embedding updates at every step.  And therefore, it is not a simple descent with STE.
Hope this helps with the clarification,
Best,

Hello, thanks for the curious question! The code is in-line with that shown in the paper. The on_after_backward() gives us the gradient of the projected_textual_inv_embedding which we utilize to update the textual_inv_embedding. The optimizer.step() that is invoked after would update the projected_textual_inv_embedding with projected_textual_inv_embedding.grad and we use the same gradient to update textual_inv_embedding. Therefore, the gradients of projected_textual_inv_embedding impact the textual_inv_embedding updates at every step. And therefore, it is not a simple descent with STE.
Hope this helps with the clarification, Best,

Thank you for your detailed response and for your commendable work! I may still have some misunderstandings about the entire training process, particularly regarding the updates to textual_inv_embedding. I'd appreciate further clarification. Here's my current understanding of the training procedure:

Forward: The value of projected_textual_inv_embedding is set to the nearest neighbor embedding of textual_inv_embedding from the vocabulary, after which projected_textual_inv_embedding is fed into the subsequent text encoder's processing pipeline (ignoring the start of text token and the end of text token).

Backward: projected_textual_inv_embedding receives its gradient.

on_after_backward: Based on the gradient of projected_textual_inv_embedding, gradient descent is performed on textual_inv_embedding. Therefore, within this function, textual_inv_embedding has already been updated via gradient descent, rather than by LBFGS.

optimizer.step(): The LBFGS optimizer updates projected_textual_inv_embedding. However, since textual_inv_embedding is not on the list of parameters optimized by LBFGS, this process does not update textual_inv_embedding.

optimizer.zero_grad(): Clears the gradients of all variables.

Taking into account that: (1) step 3 employs gradient descent to update textual_inv_embedding; (2) step 4 does not update textual_inv_embedding; and (3) after step 5 concludes, step 1 of the next training cycle will reset the value of projected_textual_inv_embedding, causing updates made by LBFGS to projected_textual_inv_embedding to be unused—ultimately, it seems that textual_inv_embedding is being updated by gradient descent.
Have I overlooked any part of the code that could have led to a misunderstanding of the training process? If there are errors in my understanding of steps 1-5, I would greatly appreciate it if you could correct me.

Hi,  regarding the training procedure:
Point 3 above: on_after_backward uses LBFGS is used to compute the gradient step. In the code this happens when you configure the optimizer. So yes, LBFGS is being used there. So the updates made using LBFGS are used to update first the textual_inv_embedding (using the LBFGS grad of projected_textual_inv_embedding). Following this, the projected_textual_inv_embedding is updated using the projection of textual_inv_embedding. Then we again compute the (LBFGS) grad wrt to projected_textual_inv_embedding and update the textual_inv_embedding.
Hope this helps,

Got it, many thanks

Hi, regarding the training procedure: Point 3 above: on_after_backward uses LBFGS is used to compute the gradient step. In the code this happens when you configure the optimizer. So yes, LBFGS is being used there. So the updates made using LBFGS are used to update first the textual_inv_embedding (using the LBFGS grad of projected_textual_inv_embedding). Following this, the projected_textual_inv_embedding is updated using the projection of textual_inv_embedding. Then we again compute the (LBFGS) grad wrt to projected_textual_inv_embedding and update the textual_inv_embedding.
Hope this helps,


proxy und https, wss

I have expanded your code. socket-tunnel can use over proxy and with https now.
Should I make a pull request? Or should I send you here the lines of codes?
I haven´t use github so often. :-)

'use strict';
const IDLE_SOCKET_TIMEOUT_MILLISECONDS = 1000 * 30;
module.exports = (options) => {
return new Promise((resolve, reject) => {
// require the things we need
const perf = require('execution-time')();
const net = require('net');
const Debug = require('debug');
const debug = Debug('client:debug');
const info = Debug('client:info');
const ss = require('socket.io-stream');
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
const HttpProxyAgent = require("https-proxy-agent");
const agent = new HttpProxyAgent('http://<IP_ADDRESS>:3128');
let socket = require('socket.io-client')(options['server'], {secure: true, reconnection: true, rejectUnauthorized: false, upgrade: false});
......

@penguine
According to the code you posted you initiate an agent, then don't use it. Doesn't seem to be using the proxy at all.
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;

Why would you try to set an environment variable?
If you want to actually use a proxy agent you need to pass it to the socket.io-client
const ss = require('socket.io-stream');
const HttpProxyAgent = require("https-proxy-agent");
const agent = new HttpProxyAgent('http://<IP_ADDRESS>:3128');
let socket = require('socket.io-client')(options['server'], {agent: agent, secure: true, reconnection: true, rejectUnauthorized: false, upgrade: false});

like so, but this has nothing at all to do with socket.io-stream
I'm also not quite sure why you would ever do that as in order for it to work as you've shown the server has to be public facing so you are just insecurely proxying to an untrusted server just to redirect to your encrypted server.
socket.io-stream work directly with https with no modifications and no need for a proxy.
Please close the issue

the stream is secure. In some cases you have to go over a proxy. Then you need this config.

Based on the config you sent it would be exposing the stream in an insecure manner unless you were just including this insecure proxy as an example 'http://<IP_ADDRESS>:3128', either way the code you provided doesn't actually use the agent so therefore doesn't use the proxy at all and would remain secure as long as the socket-tunnel server was encrpyted.
I'm still not quite sure why you would ever use a proxy. The entire idea of this project is to not need to do that. The server needs to be public facing, thats it.
If you had a valid use case for a proxy, it would be better to set it up in your project code so it doesn't break anything with socket-tunnel and is truly optional.
module.exports = (options) => {
  return new Promise((resolve, reject) => {
    // require the things we need
    const net = require('net');
    const ss = require('socket.io-stream');
    const additionalOptions = options.socketOptions  || null;
    let socket = require('socket.io-client')(options['server'], additionalOptions);

This way you can pass in any of the options that sockt.io-client support including the agent.
Very curious tho where and when you could need a proxy agent


Expose constructor for HostShards

renamed NewHostShards to NewEmptyHostShards
renamed newHostShards to NewHostShards

Coverage remained the same at 86.924% when pulling e7b4549c9dba0d0f3bce5587fbc29d813067ea94 on chao-new-hostshards into 990340fade2fda1682efab7d34aa1b2dcac493f3 on master.

@xichen2020


PDF export displays "Rendering plantuml diagram..."

When i export my Joplin notebook, containing PlantUML diagrams, to PDF, the exported PDF shows "Rendering plantuml diagram...". The Notebook displays the UML diagram correctly in its view. I used the following graph for testing the export, i don't tried other UML types.
```plantuml
@startuml
graph foo {
    A, B, C, D, E [shape=circle]
    rankdir=LR
  E -- {B D}
  A -- {D E}
  B -- D
  C -- {B E}
}
@enduml
```

Environment
Joplin version: 2.4.12
Platform: Windows
OS specifics: Windows 10 Enterprise, Version 21H1, Build 19043.1237
Steps to reproduce

Install the PlantUML-Plugin v1.4.1 (Tools>>Options>>Plugins>>Search for PlantUML>>Install>>Restart now)
Create a note and insert the abovementioned code
Export the Note to a PDF-file (File>>Export All>>PDF>>Save)

What i've expected
The diagram should be exported to the PDF-file.
edit1: declared plugin version

That is a limitation of the current design.
It is not possible to read the settings from a markdown-it plugin, so I have to render the diagram using a javascript call to joplin to get the settings.
With this design you are able to set in the settings the format and rendering server.
On the other hand, the WYSIWYG and the pdf are not working.
I will try to cache the diagram URL in the markdown-it so that it works with the PDF export... even if I don't really know how to do it now.
... I will try to find a soution.
Thanks for your feedback

Please, try to update the plugin to v1.5.0 and let me know if you are now able to export in PDF with the diagrams pictures.

All good here with version 1.5.1. Diagrams show fine in exported PDF. 👍
Joplin 2.5.8 (prod, linux) appimage.

yep, works like expected 👍  Thanks!
works in Joplin v2.4.12(prod, win32) and v2.5.8(prod, win23)

Thanks for your feedbacks

Unfortunately it doesn't work for me on
MacOs BigSur 11.6 (20G165)
Joplin 2.5.10 (prod, darwin)
PlantUML2 v1.5.1
Exported PDF looks like this

Thanks for letting me know,
unfortunatelly this fix uses some operating system dependent function and I was not able to test it on a mac.
I will try to find a mac to che why it is not working, otherwise I may need your help to debug this issue.

I tested on Mac the plugin and it works.

Since is not possible to execute the plugin Javascript while exporting the PDF, the plugin stores on disk a cache of the diagram that will be then used while creating the PDF.
The cache is deleted every time Joplin starts.
The cache is created when you open the note for the first time.
The cache is located in $TMPDIR/joplin-plantUml2-plugin
Try to follow those steps:

Open Joplin
Open the note that contains the PlantUML diagram
Make sure the diagram is correctly cached in $TMPDIR/joplin-plantUml2-plugin
Export in PDF the note

Let me know if you manage to find what is not working.


Setting JEP native library path for java >10

I am opening a specific issue for this, although it was mentioned #603.
The JEP instance will load itself the native JEP library, but for this to happen we need to add the path to this native library in the java.library.path. So far it was done dynamically, via the user usr_paths field where we appended the JEP native path, and only if some Deep Learning model was required by the config. Unfortunately usr_paths could not be accessed any more as Field via the ClassLoader from Java 11 for security reason.
A possible solution is to use MethodHandler as explained here but it seems not working then for java <9 and stops working again for java 15 because usr_paths cannot be accessed via the ClassLoader any more at all (Caused by: java.lang.NoSuchFieldError: usr_paths).
So adding new paths for native libraries at runtime in Java seems a dead end.
The alternative would be to add the JEP native path when launching the JDK via Gradle, with something like this:
    systemProperty "java.library.path", file("grobid-home/lib/**os-arch***/").absolutePath

If JEP is not used, the library won't be loaded and this path won't be used anyway, so it's not a problem to add the path every time at launch.
For this, we need to identify the right OS info from Gradle (see maybe here for an example), but also normally the version of the JDK and the version of python installed locally...
Note: It does not affect the docker image which will always work fine. In the case of the Docker image, the right JEP is in the system library path because it is fully installed at system-level on the image, and we are not using the embedded native JEP library at all.

Limiting the settings to linux 64, so far I didn't manage to get anything working here via Gradle.
It's possible to add the system property to tasks like this:
task(jatsEval, dependsOn: 'classes', type: JavaExec, group: 'modelevaluation') {
        main = 'org.grobid.trainer.evaluation.EndToEndEvaluation'
        classpath = sourceSets.main.runtimeClasspath
        args 'nlm', getArg('p2t', '.'), getArg('run', '0'), getArg('fileRatio', '1.0')
        jvmArgs '-Xmx3072m'
        systemProperty "java.library.path", file("../grobid-home/lib/lin-64/jep").absolutePath
    }

But it overrides the normal java.library.path and fails then to make JEP working as the other library paths are discarded. I didn't find how to extend the path.
The following also fails for the same reason:
jvmArgs = ['-Xmx3072m', '-Djava.library.path=:./grobid-home/lib/lin-64/jep']

For the linux 64 settings did you modify anything in the code? Is there a branch perhaps?
About the gradle stuff, I could not test it on my macOs, but how about something like this?
systemProperty "java.library.path","${System.getProperty('java.library.path')}:${file("../grobid-home/lib/lin-64/jep").absolutePath}"

The change would be in gradle to pass an extended java.library.path at launch - instead of modifying it dynamically, so to replace the System.loadLibrary(DELFT_NATIVE_LIB_NAME); in LibraryLoader.java. I am pretty sure the case is exactly the same for linux and MacOs (same security constraint), so the solution via Gradle would be the same.

I will test it thanks !

OK, I'm not sure how helpful this is, but I managed to get it work with JDK 14 on macOs using the command line stuff (not gradle).
After several attempts in settings the java.library.path, setting via -D seems a fake news.
I think the only way seems via the env variables (which name depends on the OS 😭):
   On Windows: Add the path to the library to the PATH environment variable.
   On Linux: Add the path to the library to the LD_LIBRARY_PATH environment variable.
   On Mac: Add the path to the library to the DYLD_LIBRARY_PATH environment variable.

I'm using a conda environment called jep and the variable looks like something like:
DYLD_LIBRARY_PATH=.:./grobid-home/lib/mac-64/lib:/Users/lfoppiano/opt/anaconda3/envs/jep/lib/python3.8/site-packages/jep:/Users/lfoppiano/opt/anaconda3/envs/jep/lib

Said that, I have no idea how to make it usable

Today I stumbled upon this, which seems an updated solution for JDK > 12. I haven't tried
https://stackoverflow.com/questions/5419039/is-djava-library-path-equivalent-to-system-setpropertyjava-library-path

Did you try the https://github.com/kermitt2/grobid/issues/688#issuecomment-1140774115 that should extend the list of paths? it does not work?

Sorry, I've tried and it works ! I just had to include also the path to grobid-home/lib/lin-64 for other libraries.
systemProperty "java.library.path","${System.getProperty('java.library.path')}:${file("../grobid-home/lib/lin-64/jep").absolutePath}:${file("../grobid-home/lib/lin-64").absolutePath}"

🙌 ✨.
This is great, now we normally only need to make it OS specific.

I started a PR for this https://github.com/kermitt2/grobid/pull/921