Try to use different file superclass

because HTTPfile requires aiohttp

@rabernat ,  @annieleal with the latest push, you are able to open the zip file

@MarineChap , to transfer ownership to fsspec, you can do this in the settings portion of the repo, or you can instead give me admin rights, and I can move it. You would remain admin of this repo regardless.

I don't have the right to create public repo in fsspec orga when I try to transfer the ownership.
I added you as a collaborator but as I don't have an organization account, I don't think there is more I can do. Do you have enough access to do the transfer ?

Ok it is officially done. :)
Also, should we merge this or you are waiting for other feedbacks ?

I am waiting on @rabernat and others to ensure this actually works.

Here is my completely copy-pasteable reproducible example
import dropbox
import dropboxdrivefs as dbx
import fsspec
from fsspec.implementations.zip import ZipFileSystem

token = 'u19t2wI3eH4AAAAAAAAAAdplJXSWJIRd1Rp8sAl1MIcxTxz4fkJ8xP_y8dqS7sdv'
path = '/RN-20211117121141_CF2D9BA9D51D3B7CE0538486ABC0F5FD/idp2021/GEOTRACES_IDP2021_v1_seawater_netcdf.zip'

dfs = dbx.DropboxDriveFileSystem(token=token)
dbox_file = dfs.open(path)
zfs = ZipFileSystem(dbox_file)

When I try with this branch, I get the following error (also reported in https://github.com/fsspec/filesystem_spec/issues/844#issuecomment-987014719)
---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
/tmp/ipykernel_426/254540335.py in <module>
      8
      9 dfs = dbx.DropboxDriveFileSystem(token=token)
---> 10 dbox_file = dfs.open(path)
     11 zfs = ZipFileSystem(dbox_file)

~/.local/lib/python3.8/site-packages/fsspec/spec.py in open(self, path, mode, block_size, cache_options, **kwargs)
    960         else:
    961             ac = kwargs.pop("autocommit", not self._intrans)
--> 962             f = self._open(
    963                 path,
    964                 mode=mode,

/srv/conda/envs/notebook/lib/python3.8/site-packages/dropboxdrivefs/core.py in _open(self, path, mode, block_size, autocommit, cache_options, **kwargs)
    110         if mode == "rb":
    111             url = self.dbx.files_get_temporary_link(path).link
--> 112             return webhdfs.WebHDFile(
    113                 self,
    114                 url,

~/.local/lib/python3.8/site-packages/fsspec/implementations/webhdfs.py in __init__(self, fs, path, **kwargs)
    348
    349     def __init__(self, fs, path, **kwargs):
--> 350         super().__init__(fs, path, **kwargs)
    351         kwargs = kwargs.copy()
    352         if kwargs.get("permissions", None) is None:

~/.local/lib/python3.8/site-packages/fsspec/spec.py in __init__(self, fs, path, mode, block_size, autocommit, cache_type, cache_options, **kwargs)
   1288         if mode == "rb":
   1289             if not hasattr(self, "details"):
-> 1290                 self.details = fs.info(path)
   1291             self.size = self.details["size"]
   1292             self.cache = caches[cache_type](

/srv/conda/envs/notebook/lib/python3.8/site-packages/dropboxdrivefs/core.py in info(self, url, **kwargs)
     94         """Get info of URL
     95         """
---> 96         metadata = self.dbx.files_get_metadata(url)
     97         return self._refactor_metadata(metadata)
     98

/srv/conda/envs/notebook/lib/python3.8/site-packages/dropbox/base.py in files_get_metadata(self, path, include_media_info, include_deleted, include_has_explicit_shared_members, include_property_groups)
   1501             :class:`dropbox.files.GetMetadataError`
   1502         """
-> 1503         arg = files.GetMetadataArg(path,
   1504                                    include_media_info,
   1505                                    include_deleted,

/srv/conda/envs/notebook/lib/python3.8/site-packages/dropbox/files.py in __init__(self, path, include_media_info, include_deleted, include_has_explicit_shared_members, include_property_groups)
    168         self._include_property_groups_value = bb.NOT_SET
    169         if path is not None:
--> 170             self.path = path
    171         if include_media_info is not None:
    172             self.include_media_info = include_media_info

/srv/conda/envs/notebook/lib/python3.8/site-packages/stone/backends/python_rsrc/stone_base.py in __set__(self, instance, value)
     79             self.validator.validate_type_only(value)
     80         else:
---> 81             value = self.validator.validate(value)
     82         setattr(instance, self.name, value)
     83

/srv/conda/envs/notebook/lib/python3.8/site-packages/stone/backends/python_rsrc/stone_validators.py in validate(self, val)
    343
    344         if self.pattern and not self.pattern_re.match(val):
--> 345             raise ValidationError("'%s' did not match pattern '%s'"
    346                                   % (val, self.pattern))
    347         return val

ValidationError: 'https://ucd838635c7e3e5c25fa00682efd.dl.dropboxusercontent.com/cd/0/get/BbaUQjUdBVA31tj28XeMFHm7gA-jnRliMUJdU1eb3oQHZeOytS8fBtn0qIvetBfIwLxgrnzJVij6Vjp1WyCFXhh5eNe54bdpo8nUhMxPfk2_75STq4Ub6bdj5AXENLcz-YSqbjjkRE3Q-i0TvDzmfLDE/file' did not match pattern '(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'

Martin, does it work for you?

Yes, the snippet works for me at a581055 and fsspec master

( ping @rabernat - yes, it worked)


Added real part and imaginary part methods

I've just added this two methods 'cause i require them in my projects.

The fields are public -- why do you want method accessors?

Because when I try to do in my projects to return the real or imaginary part (i.e.: the gamma function), I definitely need a real part method for both num-traits or num-complex crates and to follow standards (like the Python default library has got also these methods).

Still -- you can already access any value.re or value.im, so why should these be methods?
If we were to design methods, then it should be like fn real(&self) -> &T, borrowing the value instead of only implementing this for T: Float (and thus Copy). Then we'd also probably want real_mut for mutable access. But such methods are strictly less powerful than direct field access.
I can somewhat see a benefit of trait methods for this, which I'll comment about on your num-traits PR. However, the methods you're adding here will be completely independent of that. These are inherent methods, which are independent of the implementation of any trait methods. The only way to override a trait method is in the actual impl Trait for Foo block.
(Perhaps you are used to Go? That has a structural type system, where an interface is implemented just by having the matching methods. Rust uses a nominal type system, which is more explicit.)

Recently I've been making changes (attrocities and chaos :smiling_imp: ) to my forks of num-complex and num-traits for an implementation of a "CommonFloat" trait (as for gaussian integers, it will be another day) and then I will sub-sequentially merge these pull requests in favour to a "CommonFloat", as for know all I can do is show you the crazy prototypes i needed to do for my horse-shoe project (a calculus library).

Closing in favour of #40.


Fixes #30

Model views are not updated in response to mapping actions, for example:

Map a field - notice that an asterisk has not been added to the source and target fields in the model viewers that are part of the mapping.   If you are filtering for mapped fields, the field is not removed from the view.
Remove a mapping - asterisk is not removed from source/target fields in the viewers.  If filtering for mapped fields, the field is not visible even though it should be.

Brian fixed this issue last week - might be worth a pass through the refactored code and the commit history to make sure we didn't drop any other fixes as part of this refactoring.

Also noticed that in the New Fuse Transformation wizard that if you enter and then change your source or target model the "Type" field is not reset.  So let's say I enter a path to an XML doc as the source model, but then change that to the path to an XSD - the Type field stays at XML.

I'm gonna file both of these as separate issues just so we can get this in.   Testing the entire thing every time is a bit of a time suck.   This is close enough and the refactoring overall is a good thing - so we can clean up the remaining small bits as follow-ups.

pushed


Quantized support for stable-lm2.

Hi, I am playing with this model and I have noticed that the configuration for stablelm-2-zephyr-1_6b uses different parameters when compared with stablelm_3b_4e1t:
In [1]: from transformers import AutoConfig
   ...:
   ...: config =  AutoConfig.from_pretrained('stabilityai/stablelm-2-zephyr-1_6b', trust_remote_code=True)
   ...: keys = [
   ...:     "vocab_size",
   ...:     "intermediate_size",
   ...:     "hidden_size",
   ...:     "num_hidden_layers",
   ...:     "num_attention_heads",
   ...:     "num_key_value_heads",
   ...:     "hidden_act",
   ...:     "rope_pct",
   ...:     "rope_theta",
   ...:     "max_position_embeddings",
   ...:     "norm_eps",
   ...:     "use_qkv_bias",
   ...:     "use_cache"
   ...: ]
   ...: for k in keys:
   ...:     print(f'{k} = {config.__dict__[k]}')
   ...:
vocab_size = 100352
intermediate_size = 5632
hidden_size = 2048
num_hidden_layers = 24
num_attention_heads = 32
num_key_value_heads = 32
hidden_act = silu
rope_pct = 0.25
rope_theta = 10000
max_position_embeddings = 4096
norm_eps = 1e-05
use_qkv_bias = True
use_cache = True

Do we need to add a new method to Config ?:
    pub fn stablelm_2_zephyr_1_6b(use_flash_attn: bool) -> Self {
        // https://huggingface.co/stabilityai/stablelm-2-zephyr-1_6b/blob/main/config.json
        Self {
            vocab_size: 100352,
            intermediate_size: 5632,
            hidden_size: 2048,
            num_hidden_layers: 24,
            num_attention_heads: 32,
            num_key_value_heads: 32,
            hidden_act: Activation::Silu,
            rope_pct: 0.25,
            rope_theta: 10_000.,
            max_position_embeddings: 4096,
            norm_eps: 1e-5,
            use_qkv_bias: true,
            use_cache: true,
            use_flash_attn
        }
    }

No need to add a method there, the config is now parsed from the json files hosted on huggingface.

But I am using rust to create the model similar to the this example.


Choose different roles according to needs

Hello,
The following is the implementation section of ’planner_examples yaml‘. Can we implement different modules/roles that planners can choose to enter based on user descriptions？

message: Successfully obtain user response. If the user reply A, then go to the A-M module. If the user reply B, then go to the B-M module.
send_from: User
send_to: Planner
attachment_list:
message: xxxxxxxxxx
send_from: Planner
send_to: A-M
attachment_list:
message: xxxxxxxxx
send_from: Planner
send_to: B-M
attachment_list:

Yes, there is an example here https://github.com/microsoft/TaskWeaver/blob/main/project/planner_examples/example-planner-echo.yaml

Yes, there is an example here https://github.com/microsoft/TaskWeaver/blob/main/project/planner_examples/example-planner-echo.yaml

I don't think your example is consistent with the scenario I mentioned.
My scene requires selecting/skipping some roles.
first, User -> planner
then, planner sent to A-M or B-M base on user input.
If the user reply A, then go to the A-M module, and skip B-M module
If the user reply B, then go to the B-M module, and skip A-M module

I was not saying the example can solve your problem. I mean that you could refer to that to write your own example.


Added support for setting up storage used by docker + OpenShift

@etsauer Please review changes for setting up the storage LVM used by Docker and OpenShift. If change looks OK, please merge and delete branch.

@etsauer Your additions for consuming the function into the install looks good to me


Can't use caches in distributed D4PG agent because lp.CacherNode is unavailable in open-sourced Launchpad

The distributed D4PG agent won't work if num_caches is not zero in this line:
https://github.com/deepmind/acme/blob/master/acme/agents/tf/d4pg/agent_distributed.py#L43
This is because the CacherNode node type is unavailable in the open-sourced version of Launchpad.
https://github.com/deepmind/acme/blob/master/acme/agents/tf/d4pg/agent_distributed.py#L239

Indeed, Launchpad does not expose Cacher node externally at this point. We were hoping that the scale of external experiments wouldn't beyond the scale when cachers are needed.


DocsArchive-<IP_ADDRESS>Auto archive content

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

Docs Build status updates of commit 216aebf:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

archvieSourceFolder/TOC.yml
:white_check_mark:Succeeded

archvieSourceFolder/content/someContent.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


SerialPortReader: when is OnDone called?

SerialPortReader: when is OnDone called?
When I am done with reading in OnData, I tried to call reader.close(); but it crash the app.
When is OnDone called?

The onDone is called when you call the serialPort close() method

Could you provide more information to reproduce the crash?


[BUG] - Autocomplete modal open action makes the input to loose focus

NextUI Version
2.3.5
Describe the bug
Since release 2.3.0 I'm having issues to work with Autocomplete inputs as they loose focus when its modal (options list) opens.
This happens by click or using Tab... Even if I click again in the input area to get focus, as soon as I type something that makes my lookup return [ ] as a result of options, the modal closes, and when I delete part of the string so the options returned include my search, when the modal re-opens, the input looses focus once more.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Click in NextUI Autocomplete input
The input will not have focus
Click again to get focus and type something (let's use animals as example: bird)
It returns 1 option
Type another 'd' to make it return [ ] from its lookup
The modal closes
Delete the last 'd'
The options returned will be ['bird'], This makes the modal to re-open and the input looses focus

Expected behavior
The user should be able to click and type in Autocomplete while maintaining focus on the input.
Screenshots or Videos
No response
Operating System Version
Ubuntu 22.04.4 LTS
Browser
Firefox

I have the same bug and it is very annoying ...I will need to rollback in 2.2.10 ....

I installed v2.4.0 but I still have the same problem... If you click on the input it doesn't get focus, or takes quite sometime (it happened 2 or 3 times... strange...) and if you follow the same steps as I described in this issue, it will loose focus every time that the modal opens

I'm also having this same issue. After typing in 1 character, the popup steals focus from the text box, making the user have to click back into the input box to continue typing.
It's a really bad user experience, so until this is fixed I'm rolling back to the last working version where this doesn't happen<EMAIL_ADDRESS>

I'm also having this same issue. After typing in 1 character, the popup steals focus from the text box, making the user have to click back into the input box to continue typing.
It's a really bad user experience, so until this is fixed I'm rolling back to the last working version where this doesn't happen<EMAIL_ADDRESS>
Thank you, fixed my issue

How come this is closed? I came across this problem yesterday in 2.4.2 and having looked at this and related issues (e.g. https://github.com/nextui-org/nextui/issues/2962) I'm not the only one struggling with losing focus on this component.
I've tried various workarounds people have posted which have produced very minimal improvements, but really the only way I've gotten it working perfectly is downgrading as suggested by @jsonMartin.
I may have a go at fixing this myself if no one else is doing it.

@chrisdueck you may check out if canary version solves your problem. Some users reported that they can still the issue if they turn on react strict mode (which only affects development mode only). I've made a PR and it will be included in the next bug fix release v2.4.3 which is coming soon. If it still fails, please create a new issue with a minimal reproducible example. Thanks.

Having a ref on Autocomplete and this callback solved the issue for me
        onOpenChange={(isOpen) => {
          if (isOpen) {
            setTimeout(() => ref.current.focus(), 50);
          }
        }}


Build machines should purge .servo and .cargo directories occasionally

Right now, we cache all rust/cargo binaries and cargo packages for all time. This will eventually be a bad thing :-)

@larsbergstrom AIUI, https://github.com/servo/servo/issues/16487 addresses this issue. Could you update to reflect any further work you had in mind beyond that cleanout?

That PR (./mach clean-nightlies) only cleans the .servo directory; servo/servo#16593 (./mach clean-cargo-cache) cleans the .cargo directory. ./mach clean-nightlies is currently run on Travis and BuildBot, but ./mach clean-cargo-cache is currently only run on Travis.
The remaining action item here is to run ./mach clean-cargo-cache on Buildbot as well.

I can pick this up

Please do!


Set correct since for named_struct

SQL API docs show incorrect since field as 1.5.0: https://spark.apache.org/docs/latest/api/sql/#named_struct
While the named structs were actually added since 3.5.0: https://issues.apache.org/jira/browse/SPARK-43926
https://github.com/apache/spark/commit/de8ec74f2826db3815275b4fccef186f22c85833
What changes were proposed in this pull request?
The correct since field is set on the named_struct method to be reflected in documentation.
Why are the changes needed?
Documentation should reflect the actual feature availability.
Does this PR introduce any user-facing change?
It is a documentation fix.
How was this patch tested?
No tests are needed.
Was this patch authored or co-authored using generative AI tooling?
No

@maropu could you take a look?

The ticket(https://issues.apache.org/jira/browse/SPARK-43926) that you mentioned is used to support named_struct  to  be used in APIs such as Scala or Python, but in SQL, it was actually implemented a long time ago, refer to PR #6874, so I think this is not a problem.

Yeah it was already there before.

Aha, makes sense, then I was confused by the docs structure expecting all SQL functions to be available in their Scala dataframe equivalent


External storage options missing

General troubleshooting tips
Before logging an issue please check that:

[x] You have the latest version installed (There may be a beta version that fixes your issue), see here for the latest releases and bug fixes: https://github.com/JohnCoates/Aerial/releases
[x] Your issue isn't already mentioned in our issues. You may find a workaround there or a similar request already made.
[x] Your problem isn't mentioned in the troubleshooting page.

If none of this fixes your issue, tell us about the problem you are experiencing or the feature you'd like to request.
Required information
In order to help us sort your issue, we ask that you provide the following information:

[x] Mac model: iMac Pro
[x] macOS version: 10.14.6
[x] Monitor setup: Internal 5K

If appropriate, please enable Debug mode and Log to disk in Advanced tab and replicate your bug, then attach the AerialLog.txt file (You can access this file through the Advanced tab).
Description of issue / Feature request
I used to be able to download and store all the videos on an external storage device i.e. my NAS and point Aerial to that folder. In the latest version this doesn't;t seem available anymore. I'd like to have the option back. Being that my machine only has 1Tb of internal storage offloading anything I can from it is an advantage.

@custa1200 please try version 2.0.3, I think I got it correct, I should have resurected that option. But since I can't test it I'm not 100% sure so please report if it doesn't work :

You'll have to check that box and then click the pick folder button that will appear.


Implement WebRTC streaming

Is your feature request related to a problem? Please describe.
The h264 streaming only works on some models. See: https://github.com/RosettaDrone/rosettadrone/issues/131
Describe the solution you'd like
Implement webRTC streaming.
See: https://github.com/Andreas1331/android-webrtc-dji/issues/1#issuecomment-1635249369
Describe alternatives you've considered
No response
Additional context
No response

Can you give us an update on this? I would very much like to get the video stream going with the Mini 2.

No one is working on this. Feel free to implement and share a pull request.
Shouldn't be that difficult.
Current video streaming code should be deprecated after implementing this issue.

Any idea how to start? I'm new in Android development.

Test the code from https://github.com/Andreas1331/android-webrtc-dji (test receiving in the browser).
Adapt the code to work inside RD, ideally using the plugin interface to keep things clean.

For testing, I would suggest to receive the stream in the same way they do in https://github.com/Andreas1331/android-webrtc-dji.
I'm afraid the current video streaming code should be kept in parallel until we confirm the webrtc implemenation supports all the same drone models.

The README on this repo seems to explains how to setup the servers and clients.

Yes @kripper, indeed, my question was more based on the RD code in terms of classes. I don't exactly understand the plugin hierarchy.

Ok. That's quite easy:

PluginManager.java class: distributes some specific calls to all enabled plugins, ie. the main code invokes the methods of the manager, and the manager invokes the methods on all enabled plugins.
Plugin.java class: must be extended by plugins.
RawVideoStreamer.java class: an example of a plugin used to "stream" raw video frames (in an inefficient and non-standard format). Only usefull as a plugin implementation example, not as a video streaming implementation.

To keep code clean, you should:

create a WebRTCStreaming.java plugin with all your video streaming code.
move all the current buggy video streaming implementation from the main code to a LegacyVideoStreaming.java plugin.

I think for developing and testing, it's ok to start changing the code directly on the main code (without moving the code into plugins), but at the end, before doing a pull request, it would be better to move the new and old video streaming code into plugins to avoid cluttering the base code.

All my changes are on the main branch.

Hi,
I did some test with a simple WebRTC server-client examples and I'm trying to hook up RD into the networking.
I implemented a really simple structure here just to check how a plugin should works. So far, so good.
Nevertheless, when I add  'io.getstream:stream-webrtc-android:1.1.3' to the gradle, I gets:
2024-08-07 19:05:00.126 15016-15016 libc                    sq.rogue.rosettadrone                A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15016 (ue.rosettadrone), pid 15016 (ue.rosettadrone)

and I don't know why.
If I comment that line, the code works again.
The idea now is to implement the SocketConnection class to work with the underlying code of DJIStreamer.
What do you think @kripper?

The error is thrown during the grade build process or during execution?
Maybe it requires other dependencies.

Sorry my bad, I was adding a wrong library, here is a updated first draft.
I need to test yet, but at least is able to connect to my local signaling server.


Evaluate Alternative Scalers for Data Preprocessing in TADA.ipynb

Hello,
In the AutoEncoder section of TADA.ipynb, data is scaled using MinMaxScaler. Considering different characteristics of datasets, exploring alternative scalers like StandardScaler or RobustScaler might improve model performance, especially if outliers are present or if data distributions vary. Could we look into testing these alternatives to compare their impacts on the AutoEncoder's effectiveness?
Thanks for considering this suggestion.

Thank you for the good question.
As  your mentioned, we can try using AutoEncoder's data not only with MinMaxScaler but also with other scalers.
In fact, when we scaled the data using StandardScaler and MinMaxScaler and used AutoEncoder, the best performance was obtained when MinMaxScaler was used for all column values (parameters, tps, latency).
When we thought about the reason, first of all, the distribution of our data was not concentrated on one value. Because the distribution was even, it seemed to have better performance when scaled to a value between 0 and 1.
Performance when using other scalers will be added later.
Thank you again for your interest in the code.


There is no difference between minArrayLike and maxArrayLike

The following two fragments generate the same pact file:
@Pact(consumer = "idm-client")
    public PactFragment getUsersFragment(PactDslWithProvider builder) {
        return builder
                .given("a user with an id named 'user' exists")
                .uponReceiving("get all users")
                .path("/idm/user")
                .method("GET")
                .willRespondWith()
                .status(200)
                .body(new PactDslJsonArray()
                        .maxArrayLike(5)
                        .uuid("id")
                        .stringType("userName")
                        .stringType("email")
                        .closeObject())
                .toFragment();
    }

emphasis  .maxArrayLike(5)
@Pact(consumer = "idm-client")
    public PactFragment getUsersFragment(PactDslWithProvider builder) {
        return builder
                .given("a user with an id named 'user' exists")
                .uponReceiving("get all users")
                .path("/idm/user")
                .method("GET")
                .willRespondWith()
                .status(200)
                .body(new PactDslJsonArray()
                        .minArrayLike(5)
                        .uuid("id")
                        .stringType("userName")
                        .stringType("email")
                        .closeObject())
                .toFragment();
    }

emphasis  .minArrayLike(5)
LOH001P67QYG3QD:pacts andrew.fitzgerald$ diff minArrayLike5 maxArrayLike5
24,26c24,26
<                         "email": "nrUfIlvNMdmjSZwsNPHv",
<                         "id": "cae2db77-487a-4b6b-8e6f-9cb7411ab2b1",
<                         "userName": "rzFvcALwDaqNBDghdalp"
---
>                         "email": "DNoDFLraARDfMgKAygIA",
>                         "id": "e0f1456b-3257-490a-aff3-757b016a8d9d",
>                         "userName": "gMjLmufHxdJctMzroWRv"

I would expect them to generate some sort of matcher to enforce a maximum or minimum number of array entries.
    "metadata": {
        "pact-specification": {
            "version": "2.0.0"
        },
        "pact-jvm": {
            "version": "3.2.7"
        }
    }

Related Google Groups discussion: https://groups.google.com/forum/#!topic/pact-support/qCrz5Wn7NoQ

Tried setting the pact-specification version to 3, still no  difference or min/max matchers
    "interactions": [
        {
            "providerState": "a user with an id named 'user' exists",
            "description": "get all users",
            "request": {
                "method": "GET",
                "path": "/idm/user",
                "body": null
            },
            "response": {
                "status": 200,
                "headers": {
                    "Content-Type": "application/json; charset=UTF-8"
                },
                "body": [
                    {
                        "email": "DFqaDyzwrCTwsAbsyzEA",
                        "id": "9c30f0c3-2241-4642-ab04-88be0598e28d",
                        "userName": "uidlTRzPquPUhVAeELyK"
                    }
                ],
                "matchingRules": {
                    "$.body[*].userName": {
                        "match": "type"
                    },
                    "$.body[*].email": {
                        "match": "type"
                    },
                    "$.body[*].id": {
                        "regex": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                    }
                }
            }
        }
    ],
    "metadata": {
        "pact-specification": {
            "version": "3.0.0"
        },
        "pact-jvm": {
            "version": "3.2.7"
        }
    }

Confirmed that the minimum and maximum checks have been dropped for root arrays. I'll fix that.

Thanks for the quick fix!
I'm still a little bit confused by the static vs instance method differences for PactDslJsonArray
Shouldn't these two fragments produce different JSON?
        DslPart body = PactDslJsonArray
                .arrayMinLike(5)
                .uuid("id")

                .closeObject();
        System.out.println("body.toString() = " + body.toString());
         body = new PactDslJsonArray()
                .minArrayLike(5)
                .uuid("id")
                .closeObject();
        System.out.println("body.toString() = " + body.toString());

body.toString() = [{"id":"3873d094-0f7a-441d-baa0-3468a349600c"}]
body.toString() = [{"id":"b200dae2-ae2b-4ef3-ba3f-eea689acfe6a"}]

You're missing the final .closeArray() on the instance example, if you call that you get different values:
groovy:000> staticPart = PactDslJsonArray.arrayMinLike(5).uuid("id").closeObject()
===> [{"id":"99288281-633c-4dd9-95a7-17a8344cc090"}]
groovy:000> instancePart = new PactDslJsonArray().minArrayLike(5).uuid("id").closeObject().closeArray()
===> [[{"id":"a59df1b4-fc4b-4bd9-b508-ff5b2bdbb6d2"}]]

This is because  new PactDslJsonArray() creates a new array, then minArrayLike(5) creates a new array, so you have 2 levels of arrays. Hence the need for the .closeArray(), otherwise you're working with the inner array which is the same as the static one.
As part of the fix I created a close() method which will close off the object graph correctly, so if you use that instead you get the correct results:
groovy:000> staticPart = PactDslJsonArray.arrayMinLike(5).uuid("id").close()
===> [{"id":"8eae5947-aefa-4676-a927-13ee969d182e"}]
groovy:000> instancePart = new PactDslJsonArray().minArrayLike(5).uuid("id").close()
===> [[{"id":"9add5af1-82e8-4e4e-82fb-a8205fb4ed0f"}]]

The static method is just a convenience method to setup the matcher correctly on the outer array. But I admit that the naming is really confusing. I'll try think of a better name for the static methods.

Cool, makes sense. Thanks for the explanation!

Fix has been released with 3.2.9

looks good, thanks!


Using TensortLLM/TensorRT to compile custom model based on Mistral LLM and ViT image encoder

I have a model that combines two components:

Image Encoder: Based on the ViT-G/14 vision transformer model.
Language Model: A Mistral-based large language model (LLM).

At a higher level, the output from the Image Encoder is processed, concatenated with other tokens, and then fed into the Mistral LLM model.
In my current implementation, I have a single class that initializes these models and performs a forward pass on them.
For running inference on this model, I'm exploring TensorRT and TensorRT-LLM. It seems like these components can be individually compiled—Mistral is supported in TensorRT-LLM, and ViT-G can be compiled using TensorRT.
My question is: How can I leverage both TensorRT and TensorRT-LLM to run inference on this custom vision-language architecture? Specifically:
Is it possible to compile and optimize the two components (ViT-G and Mistral) separately using their respective tools (TensorRT and TensorRT-LLM)?
If so, how can I combine the optimized components during inference to run the entire vision-language model pipeline efficiently?
Any guidance or examples on this would be greatly appreciated. Thank you!

You can refer the examples of multimodal here.


[ Question ] [In-game] Getting champions played by players

Is your question related to a problem? Please describe.
I would like to use character images which are stored in /serve/module-league-static/img/champion/tiles/${champion}_0.jpg. The problem is I don't know if I can get champion played by summoners from gameState
Describe alternatives you've considered
The alternative would be to make another request to LoL Live Game API to receive a champion for every player
Additional context
I am implementing Total Gold Graph and I need champion images for it (it is almost finished excluding that)

The information should be present in GameState if the active game has been loaded. The runes module loads champs and images for reference: https://github.com/rcv-prod-toolkit/module-league-runes/blob/c23ac5a34e13824cc82f9881f320aa5e0f916d13/frontend/gfx-script.js


Extension causes high cpu load

I got that notification so i post it. I hope it will be enough to reproduce it.
jan-dolejsi.pddl-unresponsive.cpuprofile.txt
jan-dolejsi.pddl-unresponsive.cpuprofile.zip
jan-dolejsi.pddl-unresponsive.cpuprofile.zip

Issue Type: Performance
Extension Name: pddl
Extension Version: 2.8.1
OS Version: Linux x64 4.15.0-20-generic
VSCode version: 1.31.0

:warning: Make sure to attach this file from your home-directory: /home/m/jan-dolejsi.pddl-unresponsive.cpuprofile.txt :warning:
jan-dolejsi.pddl-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

Thanks. Investigating!

@senpl, unfortunately the dumps do not include the name of the extension or anything I would recognize. Did you observe a performance problem?

In general yes. Was it because this extension I am not sure. I think my main issue is that extension work even when I do not want it to (no file present, not activated or anything).
That way it contribute to general cpu load. So I guess not starting until user wants would be good improvement. Anyway I uninstall it and not wish to investigate it any longer.

Ok, I understand and sorry to hear that.
In any case, this is how the extension gets activated:
"activationEvents": [
"onLanguage:pddl",
"onLanguage:plan",
"onLanguage:happenings",
"workspaceContains:/*.pddl",
"workspaceContains:/*ptest.json",
"onCommand:pddl.configureParser",
"onCommand:pddl.configurePlanner",
"onCommand:pddl.showOverview",
"onView:pddl.planning.domains"
],
If you had any .pddl files in the open workspace, it would load. Was that
the case? I could wait till one of those files gets open,  by removing this
one:
"workspaceContains:**/*.pddl"
On Mon, Feb 18, 2019, 14:20 Michał Urbanek<EMAIL_ADDRESS>wrote:

In general yes. Was it because this extension I am not sure. I think my
main issue is that extension work even when I do not want it to (no file
present, not activated or anything).
That way it contribute to general cpu load. So I guess not starting until
user wants would be good improvement. Anyway I uninstall it and not wish to
investigate it any longer.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jan-dolejsi/vscode-pddl/issues/20#issuecomment-464729058,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXScHdIwnU7boajaUO9VK-IJB14RDmQ7ks5vOqisgaJpZM4anKBE
.

To me it looks like pddl was autogenerated, because their were always added as git new files, anyway anything that will not eat users cpu when not active is good to have.

Let's close this as the activation on *.pddl files anywhere in the workspace was disabled.


Disable batch signature check for unchecked state blocks

Because all of these blocks should be verified  before insertion into unchecked table
Improving write block_processor performance with state blocks chains at bootstrap

I think a better approach to this one might be to add a bool signature_verified member to the various block types, which can be serialized to the unchecked table

After talking to @SergiySW we will look back into this after #1483 (part of #1478) is merged in

Replaced by #1492, closing this one


On edit access list, the auto-complete text should be "[Name] - [Email]"

Right now it lists only the Email, but since some emails are abbreviations of the name, sometimes is not very clear.

Are you going to be able to fix this for 1.4 release.  Looking at what is in 1.4 rc0 the functionality is awkward.   I suggest the following

user real names and emails for display.  Never display a username
dont collapse manage access on update so a user can see what is going on
use a different approach for removing access.  The having to select all and update is confusing
make it clear that the button "update access list" is a button.  I first thought it was a text box and clicked it hoping to enter text and was surprised when the display got reset back.

Also see earlier comments at https://github.com/hydroshare/hydroshare2/issues/59
If properly fixing this pushes it back to release 1.5, that is OK.  @horsburgh thoughts?

I would rather just fix the whole thing once with the new styling we discussed for the whole "manage access" panel.  I suspect that will push it to 1.5.

I think that the same text should be used in the listing of users as in the add user element.  This should include organization.  The basis for this is that the same disambiguation may need to be applied when seeing a name on a list as when picking from an auto-complete element.  See below.

I can't access any of the resources on sandbox right now. I get an error screen. Is somebody else experiencing the same problem?

Same for me. It may have broken while I was trying to create a referenced time series resource earlier.

@mauriel133, @horsburgh - access to resources should be good again. The error that I saw was a reference to being unable to retrieve files size from iRODS. Not sure why the connection to iRODS was failing as the server is running as expected and was available using the sandbox credentials via command line. I restarted the hydroshare instance on sandbox and all appears to be working as expected again.

Thanks for taking care of that, Michael.
Maurier Ramírez
Cel:<PHONE_NUMBER>
On Sat, May 9, 2015 at 5:00 PM, Michael J. Stealey<EMAIL_ADDRESS>
wrote:

@mauriel133 https://github.com/mauriel133, @horsburgh
https://github.com/horsburgh - access to resources should be good
again. The error that I saw was a reference to being unable to retrieve
files size from iRODS. Not sure why the connection to iRODS was failing as
the server is running as expected and was available using the sandbox
credentials via command line. I restarted the hydroshare instance on
sandbox and all appears to be working as expected again.
—
Reply to this email directly or view it on GitHub
https://github.com/hydroshare/hydroshare/issues/201#issuecomment-100558603
.

@mauriel133 as deployed on dev.hydroshare.org right now Organization does not appear in the manage access section as suggested above.

Yes, this is still on my todo list. Will get it done as soon as I can.

I need help identifying where in the code this list is populated. Perhaps @pkdash or @mjstealey can help me.

This issue has been taken care of by the new access control interface being developed [#447] and can be closed.

Based on @mauriel133 's comment about this being addressed by the new access control panel, I'm going to close this issue.  We can revisit if needed after the new access control panel is implemented.


Width data read wrong data

Sizer don’t read accurate percentage

Thank you for your response please explain your issue for improving our package


Fail 'make test'

What I do:
git clone ...
git checkout v1.3.7
go mod download
make
make test
What I got:
=== RUN   TestHandler_Empty_User_Agent
--- FAIL: TestHandler_Empty_User_Agent (0.04s)
    handler_test.go:205:
        	Error Trace:	handler_test.go:205
        	Error:      	Received unexpected error:
        	            	Get http://localhost:8088?hello=world: read tcp <IP_ADDRESS>:55254-><IP_ADDRESS>:8088: read: connection reset by peer
        	Test:       	TestHandler_Empty_User_Agent
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa7d014]

goroutine 7 [running]:
testing.tRunner.func1(0xc000106100)
	/usr/local/go/src/testing/testing.go:830 +0x69d
panic(0xb2bc20, 0x108b1d0)
	/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/spiral/roadrunner/service/http.TestHandler_Empty_User_Agent(0xc000106100)
	/home/asamat/Projects/labs/roadrunner/service/http/handler_test.go:206 +0x9a4
testing.tRunner(0xc000106100, 0xbd5ae0)
	/usr/local/go/src/testing/testing.go:865 +0x164
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:916 +0x65b
FAIL	github.com/spiral/roadrunner/service/http	0.158s
Makefile:12: recipe for target 'test' failed
make: *** [test] Error 1

Ubuntu 18.04
go1.12.1
php 7.3.4

Hmmm,
it works well locally and in travis. Is it possible that test port 8888 is used by another application in your environment?

Thanks @wolfy-j I didn't look port. It was influxdb.


[0.5pt] Add footer - group task

Create footer according to the wireframe:

The footer section worked on


Add italian lang

Thank you! Since this PR is based on the master branch instead of the dev branch I can't merge it directly, so instead I've cherry picked your commits manually: https://github.com/NamelessMC/Nameless-Link/commit/3e473dca1197d56a8fd38d125628b60456ec48cc https://github.com/NamelessMC/Nameless-Link/commit/7ea7c69ab8c6a5760e12a1f88c9e3452d023bbc0


Investigate Improving QT library performance by removing unnecessary components

When the QT library is built, it seems to build a lot of components that are not used by GEE. Since it takes a very long time (5-10 minutes, depending on the resources), we should only be building the parts of the library that will actually be used by GEE. One place that is almost certain that is not needed by GEE is the "Example" *.pro files. Investigate if this can be turned off using the project configuration or altering the Makefile through a patch as a last resort.
Examples:

for /shared_dev/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/qt/qt-x11-free-3.3.8b/tools/designer/examples/addressbook/addressbook.pro
for /shared_dev/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/qt/qt-x11-free-3.3.8b/examples/progress/progress.pro

Closed via PR #1245


Slow

Hey,
is it normal that when i launch my tableview with folding-cell it's takin' 3 seconds maybe 4 for launch? :/
Sad :(
Thanks

I have the same issue

Has any of you tried the #50 approach of changing everything to use system fonts?

Yea issue is fixed by using system fonts.


Chore: Fix mixed line endings

Overview
Some files in this repo use an unepected mix of LF and CRLF line endings, probably due to unusual git settings on windows machines. This is noticable in other PRs, where there appears to be a large superfluous diff.
This PR renormalises all files to be the normal default, as specified in .gitattributes. As per the usual convention, files will be checked-out in a system-dependent way, but commited in a system-agnosic manner.
Created with the command git add --renormalize .

LGTM.


fix(github): rename org

This PR fixes the namespace to the new github.com/yearn org
also fixes some minor markup and spelling mistakes on the README

🌈


Add a job for custom drain scripts

Hi everyone,
I am aware of the discussion within #64, but I still want to bring up adding a custom drain script job to os-conf release. Our current use case is that we have environments where we are asked to install e.g. certain security agents, which we normally install via the pre-start or post-deploy hook.
Nevertheless, some of those agents we install tend to hold the disk hostage after everything has been already stopped and therefore cause issues, e.g. if we try to scale disks.
Therefore we would really like to add a job to configure a custom drain hook to ensure that the agents are actually stopped and do not prevent any further actions on the VM/ disk.

@rkoster @nouseforaname maybe some opinions from your side.. I am also open for different approaches for our use case

Why not create a skeleton release for the various agents based on os-conf? This release then has all the lifecycle hooks available and can be applied as an addon?  I think this is a cleaner solution (with minimal adittional effort) as hijacking os-conf for this.

Closing due to inactivity, feel free to reopen when needed.


Show file contents in case of git add/add conflict

VSCode Version: 1.11.2
OS Version: Windows 10 x64

Requesting to show file contents in case of a git add/add conflict - for both versions of the file. Right now nothing happens after clicking on the file in git sidebar and there's no option to show any of the versions of the file.

@joaomoreno Same story with modify/delete conflicts: can't do anything with any of the versions.

I see the problem and possibly a solution for it.  I'll develop a fix and submit a pull request.

Fixed by #27882


Question regarding API "to" and "from"

First off, thanks for the awesome website and software :) has saved me a few times when I needed some chat logs.
A question though, I understand that there is a 24 hour per file limit, and that it seems the API limits it to a max of 1 file read? For example, I wanted to download the whole chat log of a VOD that is 7 hours long that just happens to cross into the next day so I don't get the full chat log.
https://logs.ivr.fi/channel/moonmoon/2021/2/22?from=1613517896&to=1613545345
It's easy enough to just change my from timestamp to<PHONE_NUMBER> to get the rest of the logs, I was just wondering if this was intended or was a bug.

This is intended. There is no file limit to read, although that might be a good idea, hasn't been a problem so far though.
The limit is only determined by time.


Add ESLint

This PR adds ESLint
If there are any rules you want changed let me know
I've also added a script to run the linter
Once you're happy I can open another PR which runs the linter

If possible, can you please also add an option to format the files?

Thank you for taking a look! 🥳
The --fix option in the lint script will reformat the files for you, if that's what you mean?

Lets make it two commands, one that formats the code and one that lints the code only.

Sure thing, good idea! I'm away from my computer this evening, but will get this updated for you either later today or tomorrow 👌

@PradyumnaKrishna Updated 👌


Deferred first tick may cause priority inversion.

Related mbostock/d3#1576.
Consider the looped transition from bl.ocks.org/7df5eb012ff76589419d:
selection.transition()
    .duration(2500)
    .delay(function(d) { return d * 40; })
    .each("start", slideRight);

function slideRight() {
  d3.activeTransition(this)
      .attr("cx", width)
    .transition()
      .each("start", slideLeft);
}

function slideLeft() {
  d3.activeTransition(this)
      .attr("cx", 0)
    .transition()
      .each("start", slideRight);
}

Say the page is moved to a background tab during a slide-right transition, which we will call transition A. If the page is returned to the foreground after five or more seconds (any delay greater than twice the transition duration), then transition A immediately ends, setting all the circles to the far right in its last tick. During the same frame, since it was previously scheduled at the start of transition A, a slide-left transition B then starts. A new slide-right transition C is also scheduled to follow B.
The problem is that when the slide-left transition B starts, its first (and only) tick—when it would set the circles to the left—is deferred to the end of the current frame due to the optimization in mbostock/d3#1576. Thus, the slide-right transition C which was intended to run after B instead starts and initializes its tweens before transition B gets its only tick. And thus the slide-right transition C may be a no-op:

Note that if we change the code ever-so-slightly to use end events rather than start events, the inversion does not occur:
select.transition()
    .duration(2500)
    .delay(function(d) { return d * 40; })
    .attr("cx", width)
    .each("end", slideLeft);

function slideLeft() {
  d3.activeTransition(this).transition()
      .attr("cx", 0)
      .each("end", slideRight);
}

function slideRight() {
  d3.activeTransition(this).transition()
      .attr("cx", width)
      .each("end", slideLeft);
}

In this case, when the page is paused and resumed, the slide-right transition A immediately ends, setting all the circles to the far right. Then the slide-left transition B is scheduled and starts at the end of the current frame. When the slide-left transition B starts, it initializes its tweens and schedules its first tick again at the end of the current frame. The tick is then invoked, setting the circles to the far left, and transition B dispatches an end event. Then, a new slide-right transition C is scheduled and starts, again at the end of the current frame. Thus, the relative ordering is correctly preserved.

Fixed in 3.5.9.

Somewhat amazingly, we can fix this simply by scheduling the deferred first tick invocation before dispatching the start event. This causes the deferred first tick to be invoked before any new transition that is scheduled during the start event, maintaining priority order.


Buildkite support

@woodruffw @di I've run this on a BuildKite and can verify that it works against the staging instance.


Added --checks arg

Added --checks arg
Description
--checks can be used to select check methods to use for cdn detection
💭 Motivation and context
Certain checks can slow the detection process down unnecessarily (depending on the pipeline of course). This way, those can be disabled.
🧪 Testing
Just use the --checks argument to select the check methods needed:
--checks=            Select detection types; possible values:
cname (c), HTTP headers (h), nameservers (n),
whois data (w). Default: "chnw"
✅ Checklist

[X] This PR has an informative and human-readable title.
[X] Changes are limited to a single goal - eschew scope creep!
[ ] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[ ] All relevant repo and/or project documentation has been updated
to reflect the changes in this PR.
[ ] Tests have been added and/or modified to cover the changes in this PR.
[ ] All new and existing tests pass.

I'm not sure what the type-of-change labels mean in the checklist, could you point me to an explanation?
Should I wait for this instead of messing with this pull request?


[stable/plugin-site] Switch to newer plugin-site-api that uses github apps for api requests

What this PR does / why we need it:
Uses github app credentails for all api requests
Which issue this PR fixes

fixes # INFRA-2691

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

[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

YOLO!


WSS Client: Extension unknown: DER encoded OCTET string

Hello,
Describe what you would like to know or do
I am trying to connect to a wss server.
The wss server is developed by a company and it is working
(I connected and communicated with it in Chrome using the online client from https://www.wss-websocket.net/).
When I'm trying to connect to that wss server using TooTallNate, my GET is denied.
I get no exception, but in log, at "*** Certificate chain" , I see: "Extension unknown: DER encoded OCTET string".
Describe the solution you'd considered
I took and modified this example wss client:
`import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.net.URI;
import java.nio.file.Paths;
import java.security.KeyStore;
import java.util.HashMap;
import java.util.Map;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManagerFactory;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
class WebSocketChatClient extends WebSocketClient {
public WebSocketChatClient (URI serverUri) {
	super(serverUri);
}

public WebSocketChatClient (URI serverUri, Map<String, String> _headers) {
	super(serverUri, _headers);
}

@Override
public void onOpen(ServerHandshake handshakedata) {
	System.out.println("Connected");

}

@Override
public void onMessage(String message) {
	System.out.println("got: " + message);

}

@Override
public void onClose(int code, String reason, boolean remote) {
	System.out.println(System.currentTimeMillis() + "Disconnected");

}

@Override
public void onError(Exception ex) {
	ex.printStackTrace();

}

}
public class WSSClient {
/*
 * Keystore with certificate created like so (in JKS format):
 *
 *keytool -genkey -keyalg RSA -validity 3650 -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -dname "CN=<IP_ADDRESS>, OU=MyOrgUnit, O=MyOrg, L=MyCity, S=MyRegion, C=MyCountry"
 */
public static void main(String[] args) throws Exception {

	Map<String, String> _headers = new HashMap<String, String>();
	_headers.put("Authorization","Basic <my base64 string>");

	WebSocketChatClient chatclient = new WebSocketChatClient(new URI("wss://lek3co.public.ocpp-broker.com/ocpp/cp/socket/16/RO*LEK*E000100"), _headers);

	// load up the key store
	String STORETYPE = "JKS";
	String KEYSTORE = Paths.get("src", "test", "java", "org", "java_websocket", "keystore.jks").toString();
	String STOREPASSWORD = "storepassword";
	String KEYPASSWORD = "keypassword";

	KeyStore ks = KeyStore.getInstance(STORETYPE);
	File kf = new File(KEYSTORE);
	ks.load(new FileInputStream(kf), STOREPASSWORD.toCharArray());

	KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
	kmf.init(ks, KEYPASSWORD.toCharArray());
	TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
	tmf.init(ks);

	SSLContext sslContext = null;
	sslContext = SSLContext.getInstance("TLSv1.2");
	//sslContext = SSLContext.getInstance("TLS");
	sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
	//sslContext.init( null, null, null ); // will use java's default key and trust store which is sufficient unless you deal with self-signed certificates

	SSLSocketFactory factory = sslContext
			.getSocketFactory();// (SSLSocketFactory) SSLSocketFactory.getDefault();

	chatclient.setSocketFactory(factory);
            System.out.println(System.currentTimeMillis() + "connecting");
	chatclient.connectBlocking();

	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	while (true) {
		String line = reader.readLine();
		if (line.equals("close")) {
			chatclient.closeBlocking();
		} else if (line.equals("open")) {
			chatclient.reconnect();
		} else {
			chatclient.send(line);
		}
	}
}

}`
From https://lek3co.public.ocpp-broker.com opened in Chrome I downloaded the certificate.
Then I used this command:
keytool -import -trustcacerts -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -file myRoot.cer
Then I verified the keystore:

keytool -list -keystore keystore.jks
Enter keystore password:
Keystore type: jks
Keystore provider: SUN
Your keystore contains 1 entry
default, 16-Mar-2021, trustedCertEntry,
Certificate fingerprint (SHA1): A8:98:5D:3A:65:E5:E5:C4:B2:D7:D6:6D:40:C6:DD:2F:B1:9C:54:36

I set:  -Djavax.net.debug=all
Then I run the program.
In the log I receive DENY at the GET step and I see "Extension unknown: DER encoded OCTET string".
This is the log file:
log.log
The GET looks the same as the one made by the online wss client from https://www.wss-websocket.net/:

I tried with root certificate, with intermediate certificate and with leaf certificate and I had no success.
Do you have any idea about what am I doing wrong?
Thank you very much for your help.
Best Regards,
M.T.

Hello @mtarjoianu,
if your certificate is trusted by a CA, you do not need to import the certificate into a keystore.
You can simple connect via your address.
I was not able to reproduce the issue without the keystore. Have you tried that?
Best regards,
Marcel

Hello marci4,
Thank you very much for your response.
I modified the WSSClient, the log is indeed different, but I still get DENY at the GET step.
I use  Java-WebSocket-1.5.1.jar.
This is my new WSSClient:
`import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
class WebSocketChatClient extends WebSocketClient {
public WebSocketChatClient (URI serverUri) {
	super(serverUri);
}

public WebSocketChatClient (URI serverUri, Map<String, String> _headers) {
	super(serverUri, _headers);
}

@Override
public void onOpen(ServerHandshake handshakedata) {
	System.out.println("Connected");

}

@Override
public void onMessage(String message) {
	System.out.println("got: " + message);

}

@Override
public void onClose(int code, String reason, boolean remote) {
	System.out.println(System.currentTimeMillis() + "Disconnected");

}

@Override
public void onError(Exception ex) {
	ex.printStackTrace();

}

}
public class WSSClient {
public static void main(String[] args) throws Exception {

	Map<String, String> _headers = new HashMap<String, String>();
	_headers.put("Authorization","Basic <my base64 string>");

	WebSocketChatClient chatclient = new WebSocketChatClient(new URI("wss://lek3co.public.ocpp-broker.com/ocpp/cp/socket/16/RO*LEK*E000100"), _headers);

	SSLContext sslContext = null;
	sslContext = SSLContext.getInstance("TLSv1.2");
	sslContext.init( null, null, null ); // will use java's default key and trust store which is sufficient unless you deal with self-signed certificates

	SSLSocketFactory factory = sslContext
			.getSocketFactory();// (SSLSocketFactory) SSLSocketFactory.getDefault();

	chatclient.setSocketFactory(factory);
	System.out.println(System.currentTimeMillis() + "connecting");
	chatclient.connectBlocking();

	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	while (true) {
		String line = reader.readLine();
		if (line.equals("close")) {
			chatclient.closeBlocking();
		} else if (line.equals("open")) {
			chatclient.reconnect();
		} else {
			chatclient.send(line);
		}
	}
}

}
`
And this is the new log file:
new log.txt
Thank you very much for you help.
Best Regards,
M.T.

Hey
You don't have to use the socket factory.
Only
WebSocketChatClient chatclient = new WebSocketChatClient(new URI("wss://lek3co.public.ocpp-broker.com/ocpp/cp/socket/16/ROLEKE000100"), _headers);
chatclient.connectBlocking()
Best regards
Marcel

Hello Marcel,
Thank you for your response.
I made the modification. I still receive DENY at the GET step.
I checked the string used for Basic Authentication in GET. It is correct, it is the same as the one in the log of the online wss client from https://www.wss-websocket.net/.
My current WSSClient:
WSSClient.txt
The obtained log:
log3.txt
Thank you very much for your help.
Best Regards,
M.T.

Hello @mtarjoianu,
right now I do not think it is an issue with the certificate.
I tried it with different other certificates and get the same reported message.
Nevertheless, I do NOT get any Disconnect message there.
Could you maybe provide a full log including trace information for Java-WebSocket?
Whats onClose called with?
Whats onError called with?
Thx
Best regards,
Marcel

Hello,
I set   org.slf4j.simpleLogger.defaultLogLevel=trace  in  simplelogger.properties.
After DENY, there appeared:

1177 [WebSocketConnectReadThread-11] TRACE org.java_websocket.WebSocketImpl - process(396): (HTTP/1.1 101 Switching Protocols
Server: nginx
Date: Sun, 21 Mar 2021 16:22:41 GMT
Connection: upgrade
Sec-WebSocket-Accept: jr5qun/R/aJBMntQqyHi/p6+7rQ=
Upgrade: WebSocket
Sec-WebSocket-Protocol: ocpp1.6
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
)
1185 [WebSocketConnectReadThread-11] TRACE org.java_websocket.drafts.Draft_6455 - acceptHandshakeAsClient - Matching extension found: DefaultExtension
1185 [WebSocketConnectReadThread-11] TRACE org.java_websocket.drafts.Draft_6455 - acceptHandshakeAsClient - No matching extension or protocol found.
1186 [WebSocketConnectReadThread-11] TRACE org.java_websocket.WebSocketImpl - Closing due to protocol error: draft Draft_6455 extension: DefaultExtension max frame size:<PHONE_NUMBER> refuses handshake

This is now the obtained log:
log4.txt
Thank you for your help.
Best Regards,
M.T.

Hey,
check out https://github.com/TooTallNate/Java-WebSocket/wiki/Specifing-a-Sec-WebSocket-Protocol on how to specify the required Sec-WebSocket-Protocol.
Best regards,
Marcel

Hello marci4,
It works!!!  I could connect and change messages.
Thank you very much for your help !
Best Regards,
M.T.


MINIFI-40 - Defaulting to empty string for keystore, truststore, sslP…

…rotocol

+1
Fixes the issue, and tested by doing secure S2S transmission back to a core NiFi instance. Thanks for addressing this issue @brosander! I will merge it in.


new freecam exe

https://discord.com/channels/555224628251852811/555224758837444632/1184352049580736544
"automatic H3 ansel patcher"
File to edit: https://github.com/solderq35/hitman-tech-tips/blob/main/misc/hitman3ansel.md

closed by pr above


Add CFR 0.139

It's a JAR executable; not sure how those are supposed to work for this repo. The tool is command line only though.

Closing this and re-opening; apparently I deleted my fork


mocha-stats progress stays at 0%

Hi. I recently upgraded to use the debug reporter and noticed the percentage indicator in the upper right corner stays at 0%.
Is there some configuration I'm missing to correct this?
Currently, I have these settings...
  frameworks: ['mocha', 'sinon-chai'],
  client: {
      mocha: {
        reporter: 'html', // change Karma's debug.html to the mocha web reporter
        ui: 'bdd'
      }
   }

Is there a trick to getting it to display Mocha's HTML reporter at all? I tried using reporter: "html" and still only got the usual Karma window.

@ScottFreeCode Any conf file or list of what you are using for setup?

@angeleah I have checked on karma-mocha and all work as expected

@ScottFreeCode mocha's html reporter works only on /debug.html[1] page
[1] - http://localhost:9876/debug.html

Aha -- I guess I should have tried hitting the "DEBUG" button one of these days! Thanks, that does work. (Also, the percentage seems to be doing fine for me as well.)


Draft - Git sub modules handle

I guess this is way to go, however git sub modules still get checkout in wrong (?) location ? https://ci.sparrowhub.io/report/3043
Feel free to disregard it , as this is just an idea …

@rawleyfowler  I mean Git submodules are checked out -
03:30:26 :: Submodule path 'cc/lib/simdjson': checked out '22cc523fd4e2fd6d4a941cd41662e251f241b2dc'
however they probably are checkout in a location where zef test does not expect them?
03:30:31 :: ===> Testing: JSON-Simd:ver<0.0.1>:auth<zef:rawleyfowler>
03:30:33 :: [JSON-Simd] ===SORRY!=== Error while compiling /var/.sparrowdo/env/test/.sparrowdo/source/t/00-use.rakutest
03:30:33 :: [JSON-Simd] Cannot locate native library '/var/.sparrowdo/env/test/.sparrowdo/source/resources/libraries/libsimd-json.so': /var/.sparrowdo/env/test/.sparrowdo/source/resources/libraries/libsimd-json.so: cannot open shared object file: No such file or directory
03:30:33 :: [JSON-Simd] at /var/.sparrowdo/env/test/.sparrowdo/source/t/00-use.rakutest:7
03:30:33 :: [JSON-Simd] t/00-use.rakutest ..
03:30:33 :: [JSON-Simd] Dubious, test returned 1 (wstat 256, 0x100)
03:30:33 :: [JSON-Simd] No subtests run
03:30:33 :: [JSON-Simd] Test Summary Report

I am expecting the files to be in cc/lib/simdjson simdjson is the submodule.

the latest commit in this PR fixes the issue - https://ci.sparrowhub.io/report/3045 ))) we forgot to do zef build . ))

Hmm, I am trying to use CMake to handle this on install but not sure if it is working on sparrow. It works on github CI if you want to see

so, if cmake takes care about checking out of submodule, I wonder if need this step explicitly done in sparrowci pipeline?  🤔
https://github.com/melezhik/JSON-Simd/blob/8fd116763e588e0a6bd573642867971e1b974897/sparrow.yaml#L11-L12

@melezhik Yeah we don't need those lines anymore. Can you test without it?

@melezhik Yeah we don't need those lines anymore. Can you test without it?

It works without those lines - https://ci.sparrowhub.io/report/3046


robust harvest 1984

About the PR
ods at 30u for 6 damage/s so you cant just permanently have 300u of robust in you to be invincible
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl:

tweak: Implemented a new robust harvest overdose threshold for Diona, preventing them from achieving immortality.

diona nerfs before diona buffs
huh.

not a diona nerf just a nerf to diona invincibility supersolider bullshit

fell im unsure how foam works but does it really manage to give you 800u of robust as a foam? if thats the case foam should get nerfed as well

well im unsure how foam works but does it really manage to give you 800u of robust as a foam? if thats the case foam should get nerfed as well

foam inject the maximum amount of chemical a body can hold, yup touching foam for 0.1 second will do that

well im unsure how foam works but does it really manage to give you 800u of robust as a foam? if thats the case foam should get nerfed as well

foam inject the maximum amount of chemical a body can hold, yup touching foam for 0.1 second will do that

so what you are saying for example: foam bicar will max out at 15u when in contact with foam
BUT anything that does not have an overdose limit will give you 800u+?
Thats a lot of chems that can be abused like this, max for foam should be like 30u

well im unsure how foam works but does it really manage to give you 800u of robust as a foam? if thats the case foam should get nerfed as well

foam inject the maximum amount of chemical a body can hold, yup touching foam for 0.1 second will do that

so what you are saying for example: foam bicar will max out at 15u when in contact with foam BUT anything that does not have an overdose limit will give you 800u+? Thats a lot of chems that can be abused like this, max for foam should be like 30u

no what i'm saying is everything will be set at 800+u inside any living body that make 0.1s contact with foam, but it chems with overdose value of not

The CL should specify the PR is nerfing diona's usage of robust harvest and not botany's usage of robust harvest so the botanists don't riot
(ex: tweak: Implemented a new robust harvest overdose threshold for Diona, preventing them from achieving immortality.)

cl shamelessly stolen


Need markers.

What issue are you having that you need harpoon to solve?

Can I get a mark like this on the gutter for a line that is marked with harpoon?

No highlight of the line that was marked in the telescope previewer... When I look at the previewer there is so much lines of code I don't know which line I marked...

Why doesn't the current config help?
What proposed api changes are you suggesting?

For the first request, I can replicate that with some autocmds and nvim apis
local api = vim.api
local harpoon_ns = function()
    return api.nvim_create_namespace('harpoon_sign')
end
api.nvim_set_hl(0, "HarpoonSign", { fg = "#8aadf4", bold = true })

local harpoon_sign = function(row)
    api.nvim_buf_set_extmark(0, harpoon_ns(), row - 1, -1,
        {
            id = row,
            sign_text = " ",  -- check your `signcolumn` option
            sign_hl_group = "HarpoonSign",
        })
end

vim.api.nvim_create_autocmd("BufReadPost", {
    pattern = "*",
    callback = function()
        local filename = vim.fn.expand("%:p:.")
        local harpoon_marks = harpoon:list().items
        for _, mark in ipairs(harpoon_marks) do
            if mark.value == filename then
                harpoon_sign(mark.context.row)
                return
            end
        end
    end,

})

local function harpoon_add()
    api.nvim_buf_clear_namespace(0, harpoon_ns(), 0, -1)
    harpoon_sign(vim.fn.line("."))
    harpoon:list():append()
end

vim.keymap.set("n", "<leader>a", harpoon_add, { desc = "Harpoon: Add", })

Neat idea. These are good situations where the existing nvim and harpoon api are already able to meet your specific use case.
For the Telescope request, you could build your own picker by copying the logic in this file but customizing the previewer.


ValueError: invalid literal for int() with base 10: 'cms/img/pagetree/icon-yes.gif'

I get the following in Djanco CMS (3.1.2). I saw some similar issues on github. I tried enabling APPEND_SLASH and made sure i have 'admin/' in my urls.py. But I'm still getting the error.
My url pattern btw is:
...
url(r'^admin/', include(admin.site.urls)),
....
Internal Server Error: /admin/cms/page/cms/img/pagetree/icon-yes.gif/change/
Traceback (most recent call last):
  File "/dir/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/dir/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/dir/site-packages/django/contrib/admin/options.py", line 541, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/dir/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/dir/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/dir/site-packages/django/contrib/admin/sites.py", line 244, in inner
    return view(request, *args, **kwargs)
  File "/dir/site-packages/cms/admin/pageadmin.py", line 429, in change_view
    obj = self.model.objects.get(pk=object_id)
  File "/dir/site-packages/django/db/models/manager.py", line 122, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/dir/site-packages/django/db/models/query.py", line 378, in get
    clone = self.filter(*args, **kwargs)
  File "/dir/site-packages/django/db/models/query.py", line 790, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "/dir/site-packages/django/db/models/query.py", line 808, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "/dir/site-packages/django/db/models/sql/query.py", line 1243, in add_q
    clause, _ = self._add_q(q_object, self.used_aliases)
  File "/dir/site-packages/django/db/models/sql/query.py", line 1269, in _add_q
    allow_joins=allow_joins, split_subq=split_subq,
  File "/dir/site-packages/django/db/models/sql/query.py", line 1203, in build_filter
    condition = self.build_lookup(lookups, col, value)
  File "/dir/site-packages/django/db/models/sql/query.py", line 1099, in build_lookup
    return final_lookup(lhs, rhs)
  File "/dir/site-packages/django/db/models/lookups.py", line 19, in __init__
    self.rhs = self.get_prep_lookup()
  File "/dir/site-packages/django/db/models/lookups.py", line 57, in get_prep_lookup
    return self.lhs.output_field.get_prep_lookup(self.lookup_name, self.rhs)
  File "/dir/site-packages/django/db/models/fields/__init__.py", line 744, in get_prep_lookup
    return self.get_prep_value(value)
  File "/dir/site-packages/django/db/models/fields/__init__.py", line 976, in get_prep_value
    return int(value)
ValueError: invalid literal for int() with base 10: 'cms/img/pagetree/icon-yes.gif'

I am getting this error also.
Environment:

Request Method: GET
Request URL: http://<IP_ADDRESS>/admin/cms/page/cms/img/pagetree/icon-yes.gif/change/

Django Version: 1.9.2
Python Version: 3.4.3
Installed Applications:
('cms',
 'treebeard',
 'menus',
 'sekizai',
 'djangocms_admin_style',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'rest_framework',
 'djangocms_googlemap',
 'djangocms_inherit',
 'djangocms_picture',
 'djangocms_teaser',
 'djangocms_snippet',
 'djangocms_text_ckeditor')
Installed Middleware:
('cms.middleware.utils.ApphookReloadMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'cms.middleware.user.CurrentUserMiddleware',
 'cms.middleware.page.CurrentPageMiddleware',
 'cms.middleware.toolbar.ToolbarMiddleware',
 'cms.middleware.language.LanguageCookieMiddleware')

Traceback:

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/options.py" in wrapper
  541.                 return self.admin_site.admin_view(view)(*args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/sites.py" in inner
  244.             return view(request, *args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/cms/admin/pageadmin.py" in change_view
  429.             obj = self.model.objects.get(pk=object_id)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py" in manager_method
  122.                 return getattr(self.get_queryset(), name)(*args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in get
  378.         clone = self.filter(*args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in filter
  790.         return self._filter_or_exclude(False, *args, **kwargs)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in _filter_or_exclude
  808.             clone.query.add_q(Q(*args, **kwargs))

File "/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py" in add_q
  1243.         clause, _ = self._add_q(q_object, self.used_aliases)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py" in _add_q
  1269.                     allow_joins=allow_joins, split_subq=split_subq,

File "/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py" in build_filter
  1203.             condition = self.build_lookup(lookups, col, value)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py" in build_lookup
  1099.                 return final_lookup(lhs, rhs)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/lookups.py" in __init__
  19.         self.rhs = self.get_prep_lookup()

File "/usr/local/lib/python3.4/dist-packages/django/db/models/lookups.py" in get_prep_lookup
  57.         return self.lhs.output_field.get_prep_lookup(self.lookup_name, self.rhs)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/fields/__init__.py" in get_prep_lookup
  744.             return self.get_prep_value(value)

File "/usr/local/lib/python3.4/dist-packages/django/db/models/fields/__init__.py" in get_prep_value
  976.         return int(value)

Exception Type: ValueError at /admin/cms/page/cms/img/pagetree/icon-yes.gif/change/
Exception Value: invalid literal for int() with base 10: 'cms/img/pagetree/icon-yes.gif'

Hello @bxm,
I'm assuming this is fixed in a newer version, especially as the icons are now svg icons.
Thank you very much for your contribution to the django CMS project. The django CMS project has recently joined forces under the banner of the newly founded django CMS Association to revive the development of django CMS. For this reason we have analyzed all pull requests and issues in detail and decided which ones fit the product vision we want to go with django CMS.
Due to the age of this issue we are unable to safely accept the contribution. If you feel this issue is still required please inform a member of our technical committee<EMAIL_ADDRESS>Nevertheless we thank you for your participation and would like to emphasize that we do not want to discourage you in your contribution to the django CMS project. On the contrary, we encourage everyone who is interested in the success of django CMS to join us!
If you want to learn more about the work of the technical committee, our product vision and how you can become a member of the dCA, you can find all information here:

The Technical Committee of the django CMS Association
Technical Roadmap and Product Vision for django CMS
How to become a member of the django CMS Association

We are looking forward to every companion who would like to shape the future of django CMS together with us!
If you have any questions, feel free to reach out to Nicolai, our Community Manager<EMAIL_ADDRESS>Sign up for the Association now!


Add Garaga test

Add a test for Garaba contracts
https://github.com/keep-starknet-strange/garaga/tree/main/src/src/tests

Can this be considered too hard? I have contributed before to the project but just on good first issues.

Hi @Gerson2102 !
I think it is an easy one!
You also have the alexandria tests in the repo to take as a guide
If you want i can assign you

Yeah, lets see what I can do.

Hey @Gerson2102 ! Just wanted to make sure you are aware we are not (at the moment) participating in OnlyDust hackathons

I tried this, looks like there is a compilation error, specialy with the circuit related libfunc
Steps to reproduce:
# on cairo native
cd cairo_native
cargo b --release --all-features --bin scarb-native-test
cd ..
git clone git@github.com:keep-starknet-strange/garaga.git
cd garaga/src
/abs-path-to/cairo_native/target/release/scarb-native-test

❯ /data2/edgar/work/cairo_native/target/release/scarb-native-test
   Compiling test(garaga_unittest) garaga v0.1.0 (/data2/edgar/work/garaga/src/Scarb.toml)
    Finished `dev` profile target(s) in 22 seconds
testing garaga ...
loc("circuit_add_input(stmt_idx=27295)"("program.sierra":93874:0)): error: 'llvm.extractvalue' op folder produced a value of incorrect type: 'i96', expected: 'i8'
scarb-native-test: /home/edgar/data/llvm-project/mlir/lib/IR/Operation.cpp:624: void checkFoldResultTypes(Operation *, SmallVectorImpl<OpFoldResult> &): Assertion `false && "incorrect fold result type"' failed.
Aborted


Fix BlobListOption.recursive, add tests and documentation

This fixes the BlobListOption.recursive bug discussed in #692

Looks good. Just one comment regarding the javadoc.
Also, do you plan to take care of the other item in the associated issue, #692 regarding the prefixes?

@aozarov The discussion in #692 is still in progress, I suggest we keep this on hold until we reach an agreement there.

This can be closed, replaced by #726


Map out Github Data to Collections in Strapi

Something to consider: https://market.strapi.io/plugins/@artcoded-strapi-plugin-github-projects


Weather Rain Error?

必須項目 (Required items)

ServerOS: Ubuntu18.04 LTS

PHP version: PHP 7.2 64-bit

Minecraft version: Win10Ed. v1.6.1

Texter version: 3.0.4

issue(s):

Thanks for your reports! I will fix it as soon as possible.

I checked, fixing...


Breaking Feature: Dynamic Embed Creation

Planning this for v4.0.0, instead of requiring all of the embeds to be created and passed in up front, a function can be provided to create the embed based on the index, these will be added to a cache within the paginator so that the function won't need to be called multiple times for the same page.

Update the existing pageResolver option to a pageIndexResolver.
Add a pageEmbedResolveroption, this should be a deterministic function that returns a {Promise<MessageEmbed> | MessageEmbed} based on the existing changeArgs
Add a pageCache to the BasePaginator - when a page is generated for a provided index, we will map the embed to the index in the cache.
Move the existing pages parameter into the options, these can be added into the cache (and mapped to their array index) on instantiation.
In the collect event, use pageIndexResolver to get a new index value, then if shouldChangePage returns true:

Check the pageCache for the new index and return an embed if there is one; otherwise
await the pageEmbedResolver, map the newly retrieved page to the new index in the cache, then send the update

The BasePaginator#send will need to be updated to check this on the initial send.
Update getCurrentPage to return pageCache.get(currentPageIndex).
Add helper method currentPageNumber to return currentPageIndex + 1
Clear cache after removeAllListeners call in end handler.
Update the existing examples to demonstrate the update.

Potentially add an actual dynamic example that fetches data from an API to display.

This will make the footerResolver redundant.
Update: This potentially means that currentPageIndex and previousPageIndex may need to be update to currentPageIdentifier and previousPageIdentifier as the return value from pageResolver may no longer be an integer, it could effectively be anything that you wish to use to be able to resolve a specific page using the pageEmbedResolver
THis also means adding a numberOfPages option.

I've started working on this.
This potentially means that currentPageIndex and previousPageIndex may need to be updated to currentPageIdentifier and previousPageIdentifier as the return value from pageResolver may no longer be an integer, it could effectively be anything that you wish to use to be able to resolve a specific page using the pageEmbedResolver
This also means adding a numberOfPages option or removing the getter all together, if the pages aren't provided in full upon construction there won't be any way to infer the value from an indeterminate amount of pages.


Download Question

Hello all,
I'm not sure if this is the right place to ask this question but I couldn't find any other means of asking this question to someone who possibly can help.
I was wondering if Google can see what I'm downloading and if I can get in trouble for using youtube-dl to download videos?

Obviously it does see in both cases as there is technically no difference between downloading and viewing in a browser.


Create stableswap

Now that gamm generalization is mostly merged, we should aim to make a stableswap be the next new pool type.  I propose using the Curve v1 model as inspiration (as described in the whitepaper:  https://curve.fi/files/stableswap-paper.pdf)

The actual pool interface doesn't specify necessary / sufficient methods for use in the keeper. We need to add scaffolding for different types still.

We have better indexes of steps here


[v4] the cmake target lost sol2:: prefix

A user of existing sol 3.2.3 uses the library like this:
find_package(sol2 CONFIG REQUIRED)
target_link_libraries(foo PRIVATE sol2::sol2)

But it doesn't work anymore in v4 because the sol2:: prefix got lost in the installed target.
Looks like this was removed from CMakeLists.txt
set_target_properties(sol2
	PROPERTIES
	EXPORT_NAME sol2::sol2)

Though the recommended way to achieve the same is
install(EXPORT sol2 NAMESPACE sol2::)

(currently https://github.com/ThePhD/sol2/blob/50b62c9346750b7c2c406c9e4c546f96b0bf021d/CMakeLists.txt#L118-L120 is callled without NAMESPACE either)

ping: this issue already went into the 3.3.0 release

This should be completed. Thanks for the PR.


Bug in python 3.12 layer

Describe the bug
I've seen the layer arn:aws:lambda:eu-west-1:336392948345:layer:AWSSDKPandas-Python312:1 in https://github.com/aws/aws-sdk-pandas/pull/2602 PR, and I have a bug importing awswrangler
[ERROR] OSError: Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'].
Traceback (most recent call last):
File "/var/lang/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
....  in <module>
    import awswrangler as wr
  File "/opt/python/awswrangler/__init__.py", line 10, in <module>
    from awswrangler import (
  File "/opt/python/awswrangler/athena/__init__.py", line 15, in <module>
    from awswrangler.athena._read import (
  File "/opt/python/awswrangler/athena/_read.py", line 35, in <module>
    shapely_wkt = _utils.import_optional_dependency("shapely.wkt")
  File "/opt/python/awswrangler/_utils.py", line 147, in import_optional_dependency
    module = importlib.import_module(name)
  File "/var/lang/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/tmp/sls-py-req/shapely/wkt.py", line 6, in <module>
    from shapely import geos
  File "/tmp/sls-py-req/shapely/geos.py", line 100, in <module>
    _lgeos = load_dll('geos_c', fallbacks=alt_paths)
  File "/tmp/sls-py-req/shapely/geos.py", line 54, in load_dll
    raise OSError(

How to Reproduce
Bug in AWS lambda with python 3.12, I use arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:59 layer too
Expected behavior
No response
Your project
No response
Screenshots
No response
OS
Amazon Linux 2023
Python version
3.12
AWS SDK for pandas version
lastest
Additional context
No response

Looking closely at the error, it looks like the runtime you are using is missing ['libgeos_c.so.1', 'libgeos_c.so']. Are there any other layers that may be vending geopandas/shapely but not the required c libs?
iIt doesn't look like it's powertools either, because the error still does not reproduce with both layers in place.

Yes, sorry... was shapely


Renovate Bot Updates

Original report on BitBucket by Matthew Morris (GitHub: matthew-morris-cessda).

Tracking bug for all Renovate Bot dependency updates.

Renovate bot is no longer being used


"419 Page Expired" when saving any settings

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
I have recently performed a reinstall of the Bookstack container to help with some performance issues I was having. I have pulled down the latest docker container and it starts successfully. All pages and images appear to be loading correctly except for the app icon and favicon. When trying to reset those in the settings I encounter a "419 Page Expired" error any time that I try to save anything on a settings page. I have tried clearing cookies, and in an incogneto window with no success.
[EDIT] It looks like I get a 419 Page Expired whenever i try to create new pages or edit pages as well.
Exact BookStack Version
v24.05.2
Log Content
There don't appear to be anything in the lavarel log or php logs.
Hosting Environment
docker container running on Ubuntu 22.04 VM

I am running into a similar issue. Especially on the login page, I am getting a 419. Usually, if I then go to a different page, I am still logged in.

This would usually occur if either:

There's a mismatch in used and configured URL

Make sure the APP_URL setting is set properly, including ensuring the protocol (https:// or http:// part) matches  what's used in the browser.

There's a file permissions issue and the system can't properly manage session data.

Usually it's the first of the above.

My issue seems to have mysteriously resolved itself after a few container restarts. I'm not sure what the issue was, because my APP_URL was correct.


ci: remove golangci-lint from travis checks

golangci-lint is also run as part of a GitHub-Actions.
Fixes gonum/gonum#1393.
Please take a look.

done


Upgrade gatsby

Just to keep it all up to date

Closing in favor of #2717, since that one is more recent and bumps to gatsby 5 instead of 4.


Rspec fixtures

Currently, the only test fails because of rspec-puppet having no fixtures.
This branch adds the fixtures and gets the test failing for the correct reasons :+1:

Thanks for the PR Brian, much appreciated.


Update Xamarin.Forms to v3.3

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

VERSIONS.txt
:white_check_mark:Succeeded

nuget/SkiaSharp.Views.Forms.nuspec
:white_check_mark:Succeeded

samples/Basic/Tizen/SkiaSharpSample/SkiaSharpSample.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample.Android/SkiaSharpSample.Android.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample.Tizen/SkiaSharpSample.Tizen.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample.UWP/SkiaSharpSample.UWP.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample.iOS/SkiaSharpSample.iOS.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample.macOS/SkiaSharpSample.macOS.csproj
:white_check_mark:Succeeded

samples/Basic/Xamarin.Forms/SkiaSharpSample/SkiaSharpSample.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/Android/Android.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/Core/Core.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/Mac/Mac.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/Tizen/TizenOS.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/UWP/UWP.csproj
:white_check_mark:Succeeded

samples/Gallery/Xamarin.Forms/iOS/iOS.csproj
:white_check_mark:Succeeded

scripts/install-tizen.sh
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Android/SkiaSharp.Views.Forms.Android.csproj
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Mac/SkiaSharp.Views.Forms.Mac.csproj
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Tizen/SkiaSharp.Views.Forms.Tizen.csproj
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.UWP/SkiaSharp.Views.Forms.UWP.csproj
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.iOS/SkiaSharp.Views.Forms.iOS.csproj
:white_check_mark:Succeeded

source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.csproj
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.