[RFC] Add scriptable transforms

TL;DR
I propose that we have a separate set of functional transforms that takes a tensors as input, and returns tensors, and it should be torchscript-able.
Background
TorchVision currently relies on PIL for most of its transforms.
While reasonably fast and widely adopted, the use of an external library it makes our transforms impossible to be traceable / scriptable.
One of the biggest drawbacks of that is that pre-processing is generally a crucial part of reproducing a models' results, and different preprocessing (due to, e.g., OpenCV / PIL differences) can have an impact in the final model result.
By the time torchvision was initially developed, there were way fewer operations implemented on PyTorch that could be used to perform image transformations, such as resizing, rotations and affine warps.
It also creates a kind of weird situation where certain operations expect PIL Images, and others expect Torch Tensors (normalize is a notable case).
Since then, we have improved the support for image resizing in PyTorch (thanks to the upsample function), which supports a number of cases, as well as grid_sample, which enables us to do rotations, affine warpings and more in an efficient manner.
Pros of using PyTorch ops

GPU support
Batching supported
Enables tracing the transforms
autodiff support

Cons of using PyTorch ops

Not bit-wise equivalent to PIL
Some (but not many) cases are not yet supported

It should be noted that using PyTorch ops should not be a hard-constraints. This lets the users still implement their own functionalities by leveraging PIL or OpenCV. But only the transforms based on PyTorch will be able to be exported to torchscript.
This means that the lingua-franca of passing objects around in torchvision transforms would be a torch.Tensor, and not a PIL Image anymore.
How to implement it
Most of the transforms in torchvision can already be expressed with PyTorch native operators, like torch.nn.functional.interpolate or torch.nn.functional.grid_sample, so we should not need to write specialized ops for them in torchvision.
An initial PR adding support for video has been sent in https://github.com/pytorch/vision/pull/1353 , and I think we should improve on top of it to make it cover more ops, and also support images.
Gotchas
Using torch operators has a drawback. It currently only supports batched tensors in NCHW format and floating point values, which is different than the format supported by our current set of transforms (HWC and uint8 for most cases).
For now let's assume that the tensors are float32 and in the NCHW format.  We might consider explicitly keeping a memory_format=torch.channels_last layout for compatibility (TBD)
Long-term, we should add support for uint8 (and other integer types) to interpolate and make it more generic over which dimensions to interpolate https://github.com/pytorch/pytorch/issues/10482, but that's a larger task.
List of transforms that could be readily available with PyTorch ops

[x] normalize
[x] resize (only nearest, bilinear and bicubic, for floating types)
[x] pad (except symmetric pad)
[x] crop
[x] center_crop
[x] resized_crop
[x] hflip
[x] vflip
[x] five_crop
[x] ten_crop
[x] adjust_brightness
[x] adjust_contrast
[x] adjust_saturation
[x] adjust_hue
[x] adjust_gamma
[x] rotate (only for nearest and bilinear, for floating types)
[x] affine (only for nearest and bilinear, for floating types)
[x] grayscale

@fmassa  for a project of mine, I've implemented some transformations. From your list this includes:

resize
affine
rotate
grayscale

Take a look at it, ff you have time. Maybe we can adopt my implementation here.

@pmeier that looks like a great starting point, yes, we can use yours as a starting point!
cc @xiuyanni for awareness

@fmassa , I would like to pick a few of the mentioned ones and see if I can work out those since I haven't contributed before to pytorch/vision. Maybe, this can be a good starting point.
Thank you

@PyExtreme sure, go for it!
Note that there are already two open PRs adding functionality for crop and adjust_hue, so I'd recommend checking them before sending your PR

@fmassa, what do you think,  right now should we do it like transforms.Tensor<Transform>  for existing PIL transforms or entirely replace the previous.
I think by the time we don't have all as pytorch ops, we could this way. Let me know what you think.

@surgan12 I think it would be better to have a separate file, functional_tensor.py, with the implementations for the functional transforms using tensors, with the same name as in functional.py. Let's not worry about the class-based transforms for now.

@fmassa , I would be starting with center crop, resized crop and five crop

@fmassa , could you please provide me a good starting point?
Would be of great help to me.
Thank you

@fmassa  ,
Are there any guidelines for setting up the environment at local? For eg, In PyTorch, we have to install in develop mode.
Also, what are the commands for testing the changes?
Would be of great help to me.
Thank you

@fmassa

BTW, we will need to decide what to do about colorspaces, @pmeier do you have an idea?

I thought about that while I've implemented it for my project. I came up with three options.

We implement a custom tensor class for images and subclass it for different color spaces. Each subclass could for example have methods to extract the different channels. This might be a little over-the-top for RGB images, but I think something like torchvision.YUVImage.luminance() or torchvision.RGBAImage.opacity() could come in handy.
We implement a custom tensor class for images and give it an attribute colorspace as you suggested. With that we could also check if the transform is applicable (imagine passing an image with image.colorspace == "RGB" to transforms.YUVToRGB()).
We could leave it to the user and do not perform any checks. Since the the transforms can usually be applied if the number of channels is correct, no errors would be raised, but the resulting values would be nonsensical.

I would prefer option 1, but I acknowledge that it will be the greatest effort of the three. I personally (mostly for time reasons) went with option 3. I haven't seen a scenario where the user could lose his overview if he marks the tensors for example with postfixing _{color_space} on the variable names. One usually does not have more than two or three color spaces involved.

@PyExtreme grayscale would be the easiest way to start. You can probably start from the implementation from @pmeier from https://github.com/pmeier/pystiche/blob/master/pystiche/image/transforms/functional/color.py
BTW, we will need to decide what to do about colorspaces, @pmeier do you have an idea? One possibility would be to add a mode attribute to the specific tensors we are using, but I'm not sure if we should do it

Thanks @fmassa , I am starting to work on it.

@fmassa,
I'd be happy to work on adjust_brightness, adjust_contrast and adjust_saturation!

@pedrofreire go for it!

Hi @fmassa , I would love to work on center_crop, five_crop and ten_crop.
Please feel free to let me know anything I may need and might be important for it.
Thank you

@PyExtreme sure, go for it.
One thing to keep in mind is that the implementation of those functions rely on the implementation of crop, so the functions will be very similar to the equivalent implementation for PIL Images.

hi! just to make a point here. All those listed operators (and more) are already supported by kornia.augmentation (without knowing the existence of this work in progress).
In kornia we have been working on the same direction to fully support transforms assuming torch tensors as inputs and PyTorch operators. Would be great to find a balance to not overlap efforts and integrate stuff.

@vfdev-5 I believe we can close this?

OK for me to close it

Congrats on hitting a huge milestone! 🎉


add initial content for red hat relationship page

Might be worth to mention when and how this new component would come to BZ
Like short section which say smth like: "After all procedures for onboarding you thing was performed, you thingy should appear in RH BugZilla if it is appropriate. If not, please chime around"

update to address feedback

LGTM

/lgtm


Do you modified nnlib as well?

By checking src code, it looks like there are several API call made which are not support by native nnlib.
like:
hexagon_nn_append_const_node_list
hexagon_nn_append_node_list
hexagon_nn_set_graph_mode
Do you have plan to open the modified nnlib?
Thanks,

Yes, there are small modifications over nnlib. We're going through the internal process to try to make this open.

@chanchanzhang The modified version is available here: https://github.com/XiaoMi/nnlib


Fix NSInternalInconsistencyException in - [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]

Version: 0.7.4 (4) | com.microsoft.embeddedsocial-df
Reason
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForSupplementaryElementOfKind: UICollectionElementKindSectionFooter at path <NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}'
Link to HockeyApp

https://rink.hockeyapp.net/manage/apps/632649/crash_reasons/192097023

@JaroslawRomanovich seems like an old crash on feed when the layout was changed from grid to list. Think we've located and fixed it.

Unable to reproduce on build from commit number 9b800d22b82f4aa70239a721cf3dd5dc7d5c7bdb


pip install not working on windows

Command python -m pip install just_playback throws error on Windows using Python 3.6:
ValueError: path '/home/[absolute path]/ma_playback.c' cannot be absolute
Attempting to install package using the local version (python -m pip install -e "...\just_playback-main" -t "[source_dir]") produces a different error:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help

    error: option --home not recognized

Likely some cross-platform issue, pip version also appears to be out of date?

I've added some changes to the setup.py file. Update your package with pip install -U just_playback. Does it fix the problem ??

hey - sorry for the late response, but it installs fine now! Thanks so much for the response and fix :)
Checking now for if the package functions fine.

Works perfectly. Excellent library by the way - just what I needed and seems to be the only one that works. Thank you so much.


Magazine footer is always shown in english

lgtm!

@fernandolucchesi you could also add the noDrafts condition on the magazine tags too .

@fernandolucchesi - the footer is (and was) visible in English, but still isn't visible in Norwegian magazine articles

@fernandolucchesi - the footer is (and was) visible in English, but still isn't visible in Norwegian magazine articles

Hi @meols, I forgot to paste the link, this has to be tested in the dev environment: https://web-global-development-equinor-web-sites-dev.c2.radix.equinor.com/no/magasin/test-english-16-aug

@fernandolucchesi - I tested several pages on DEV and didn't see it, but now it's there and all is good :smile:

@fernandolucchesi - I tested several pages on DEV and didn't see it, but now it's there and all is good 😄

Oh I see! It is because we were lacking the Misc > MagazineIndex in Norwegian page... so it was not showing anything... I created it after you did the first round of testing


Delete DynamoDB table when user is deleted

Note: If your question is regarding the AWS Amplify Console service, please log it in the
AWS Amplify Console repository

Which Category is your question related to?
API Service
Amplify CLI Version
9.2.1
What AWS Services are you utilizing?
Auth, DynamoDB and Lambda Functions
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
Recently Amplify introduced an option to be able to delete the user, how can I setup a lambda function so when the current logged in user hits the button delete account, the lambda function deletes the table that reference that user? I have a User table with the same id as the auth user.
Is there any trigger for this? I see we have a post verification signup trigger (which is what I'm using to create the dynamodb table):
Do you want to configure Lambda Triggers for Cognito? Yes
Which triggers do you want to enable for Cognito?  Post Confirmation

Do we have anything like this for deletion? If not how can I implement it?

Hey @afern247 :wave: using the Admin Queries API as a template, you can build a custom deleteUser flow that executes the Cognito action and your custom action, where in this case you are looking to delete a corresponding DynamoDB table

I was able to delete the user data using Amplify.DataStore.delete(User.self, withId: user.id) { result in however it seems this approach requires that I delete each model manually, so:
User model
Analytics model
UserPortfolio model
...
How can I delete the User model and trigger an automatic delete for the rest of the models whos owner is that User?

Hey @afern247 apologies for the delay here!!! Although it's delayed I wanted to follow up. In addition to the earlier recommendation to use the Admin API template, you will need to fetch each model (including the nested models) and delete each one manually as we do not currently support a sort of "cascading" delete. In short you will want to:

send a request to some API that performs the delete
fetch associated models (User, Wallet, Portfolio)
delete the user from cognito
delete the associated models individually:mutation DELETE_USER_DATA {
	deleteUser(id: $userId) { id }
	deleteWallet(id: $walletId) { id }
	deletePortfolio(id: $portfolioId) { id }
}

I don't think an admin query is the way to go. Since the user owns the data, I can delete it before loging out the user (theoretically right?). Here's the sample schema:
# The "owner" of a User is allowed to create, read, update, and delete their own user data
type User @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  email: String
  createdAt: String
  owner: String @auth(rules: [{ allow: owner, operations: [read, delete] }]) # To prevent an owner from reassigning their record to another user
}

and here's what I'm trying to do:
func deleteUser() async -> (didSucceed: Bool, errorMessage: String) {
        var errorMessage = ""

        // Retrieve your User using Amplify.API.query
        if let user = await getUser().user {
            do {
                let result = try await Amplify.API.mutate(request: .delete(user))
                switch result {
                case .success:
                    print("✅ Successfully deleted user")
                    return (true, errorMessage)

                case .failure(let error):
                    ...
                }
            } catch let error as APIError {
                ...
            } catch(let error) {
                ...
            }
        } else {
            ...
        }

        return (false, errorMessage)
    }

I have the authorization rule to be Cognito, but when I try to delete that User schema which the same user created I get:
Got failed result with GraphQL service returned a successful response containing errors: [Amplify.GraphQLError(message: "Conflict resolver rejects mutation.", locations: Optional([Amplify.GraphQLError.Location(line: 2, column: 3)]), path: Optional([Amplify.JSONValue.string("deleteUser")]), extensions: Optional(["errorType": Amplify.JSONValue.string("ConflictUnhandled"), "data": Amplify.JSONValue.object(["email": Amplify.JSONValue.string("example@example.com"), "id": Amplify.JSONValue.string("1f322307-4193-4e32-b0f6-934302a23625"), "owner": Amplify.JSONValue.null, "__typename": Amplify.JSONValue.string("User"), "updatedAt": Amplify.JSONValue.string("2023-04-15T19:53:57.498Z"), "age": Amplify.JSONValue.null, "name": Amplify.JSONValue.null, "createdAt": Amplify.JSONValue.string("2023-04-15T19:53:57.498Z")]), "errorInfo": Amplify.JSONValue.null]))]

Updated:
Based on this docs, it seems that GraphQL doesn't support conflict resolution:

So if I delete for example the User data with GraphQL I get that conflict error. If I delete it with DataStore it deletes it from Amplify Studio data but not from the DynamoDB area that GraphQL uses...
If I remove conflict resolution I'm risking old/outdated data + I can't see the data on Amplify Studio...
Can you please advice @josefaidt

Hey @afern247 apologies for missing the DataStore callout earlier in the thread. While it is not typically suggested to mix DataStore and API.graphql/POST calls to AppSync, you will need to pass the current _version manually.
With the setup noted above you will want to include the current _version in order to update, and if this model is "deleted" (i.e. _deleted === true) it will still show up in DynamoDB. If you would like to remove this record altogether you can enable TTL https://docs.amplify.aws/cli/storage/override/#customize-amplify-generated-s3-resources

Alright, I'll try it out if not create a lambda for it. Thanks jose


docs: remove erroneous equal sign to fix mount

This fails silently otherwise.
Note that https://github.com/coreos/coreos-kubernetes/pull/681 was correct, but this location wasn't touched in that change.

@robszumski mind doing a rebase?

Done in https://github.com/coreos/coreos-kubernetes/pull/762


layout doesn't render quasar components

this works
layout([
  span("hi")
], model; title="layout")

but not this
layout([
  btn("hi")
], model; title="layout")

What are you expecting or what does not work?

btn() is a quasar component that is only rendered in the context of a quasar page. There is also button() that displays an unstyled button without further layout properties.

so we are not able to use quasar components on layout right?


Seleniarm Webdriver doesn't work

Describe the bug
I can't get the webdriver to work on my Raspberry Pi.

However I am still getting the following error:
Content fetcher 'html_webdriver' did not respond.
Be sure that the selenium/webdriver runner is running and accessible via network from this container/host.
Did you follow the instructions in the wiki?

WebDriver Host: http://localhost:4444
[Go here for more information](https://github.com/dgtlmoon/changedetection.io/wiki/Fetching-pages-with-WebDriver)
Content fetcher did not respond properly, unable to use it. HTTPConnectionPool(host='localhost', port=4444): Max retries exceeded with url: /session (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] ECONNREFUSED'))

As you can see I have already changed the URL for the webdriver to http://localhost:4444 as mentioned here on stackoverflow due to changes in Selenium 4, but there's still no change.
Expected behavior
I expect changedetection.io to work with the Selenium 4 webserver.
Desktop (please complete the following information):

Raspbian 64 bit lite.

Thanks for any help I can get in advance!

@shokwaav in the configuration, replace WebDriver Host: http://localhost:4444 with WebDriver Host: http://selenium:4444
did that help? if not, paste the errors again


Allow promises to be cancelled

see:
https://github.com/facebook/react/issues/5465#issuecomment-157888325
https://github.com/tc39/proposal-cancelable-promises
use case: I want to use promises for animating state transitions of a UI element. I want to animate and then perform an action in a Then() when the transition completes, but if the user triggers a different state before this transition completes, switch to a new animation and reject the first promise.

Thanks for the link to the proposed standard, it's going to be interesting to see if they actually include this in the JS standard.
Generally though promises are just not designed to be cancelled. We had the same problem with them... we ended up throwing an exception to terminate a promise chain, but it felt inelegant and clunky.
These days we tend to use state machines or behaviour trees for operations that are cancellable or that can change dynamically and I'd encourage you to do the same.
Of course we still use promises extensively, typically we just use them for non-cancellable asynchronous operations.

Thank you guys for RSG library

thanks @ashleydavis I'll give these a whirl!


Upgrade Babylon.js packages to v6 along with deps

Resolves #155 and #157.
Also bumps the maximumFileSizeToCacheInBytes of the ServiceWorker to 18MB to allow the full production package to be precached

Only note on the upgrade was the need to manually run npm install webpack-cli -d to re-install the new major version of webpack CLI as a dev dependency


Wait for icons to be loaded before firing rendercomplete event

The rendercomplete event should wait for icons to load before it is being fired.
As there is already similar behavior for the webgl renderers with the ready property, this uses the same property.
This also fixes an error when an icon is loaded after the renderer has been disposed.

Yes, I believe the VectorTileLayer's ready is currently set to the last tile's state, I think I fixed it in my local branch, but I'd like to write a test to confirm it.

Excellent, thanks!


use StableDiffusionXLPipeline_HPU

use StableDiffusionXLPipeline_HPU for SDXL

hi @Jianhong-Zhang
what's the status of this PR? Could you rebase/sync this with main OH, and share some comments/description on what does this PR do with some results?
Thanks.

@Jianhong-Zhang
Any update on this PR please? could you address my comments here? Thanks.

This PR needs some work:
* I made some changes that are needed. Pls. Apply the patch via `git am <0001*`
  [0001-fea-fixes.patch](https://github.com/user-attachments/files/16984799/0001-fea-fixes.patch)

* The `StableDiffusionXLPipeline_HPU` crashes with below error. Pls address.
  This PR can't be merged right now.

python text_to_image_generation.py     --model_name_or_path stabilityai/stable-diffusion-xl-base-1.0     --prompts "Sailing ship painting by Van Gogh"     --num_images_per_prompt 28     --batch_size 7     --image_save_dir /tmp/stable_diffusion_xl_images     --scheduler euler_discrete     --use_habana     --use_hpu_graphs     --gaudi_config Habana/stable-diffusion     --bf16 --sdxl_mlperf

Traceback (most recent call last):
  File "/devops/sgohari/tests/codes/pr-reviews/1300/optimum-habana/examples/stable-diffusion/text_to_image_generation.py", line 549, in <module>
    main()
  File "/devops/sgohari/tests/codes/pr-reviews/1300/optimum-habana/examples/stable-diffusion/text_to_image_generation.py", line 518, in main
    outputs = pipeline(prompt=args.prompts, **kwargs_call)
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/optimum/habana/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_mlperf.py", line 599, in __call__
    if self.quantized:
  File "/usr/local/lib/python3.10/dist-packages/diffusers/configuration_utils.py", line 143, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'StableDiffusionXLPipeline_HPU' object has no attribute 'quantized'


KeyError on search and library scan

After installing Mopidy-Radionet and listening to some streams yesterday, today it stopped working without any obvious change:
Nov 15 11:26:46 kobel mopidy[50371]: Traceback (most recent call last):
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._handle_receive(envelope.message)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 307, in _handle_receive
Nov 15 11:26:46 kobel mopidy[50371]:     return self.on_receive(message)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/network.py", line 443, in on_receive
Nov 15 11:26:46 kobel mopidy[50371]:     self.on_line_received(line)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/session.py", line 32, in on_line_received
Nov 15 11:26:46 kobel mopidy[50371]:     response = self.dispatcher.handle_request(line)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 46, in handle_request
Nov 15 11:26:46 kobel mopidy[50371]:     return self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 77, in _catch_mpd_ack_errors_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 87, in _authenticate_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 106, in _command_list_filter
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 139, in _idle_filter
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 152, in _add_ok_filter
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._call_next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 69, in _call_next_filter
Nov 15 11:26:46 kobel mopidy[50371]:     return next_filter(request, response, filter_chain)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 164, in _call_handler_filter
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._format_response(self._call_handler(request))
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/dispatcher.py", line 178, in _call_handler
Nov 15 11:26:46 kobel mopidy[50371]:     return protocol.commands.call(tokens, context=self.context)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/protocol/__init__.py", line 212, in call
Nov 15 11:26:46 kobel mopidy[50371]:     return self.handlers[tokens[0]](context, *tokens[1:])
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/protocol/__init__.py", line 170, in validate
Nov 15 11:26:46 kobel mopidy[50371]:     return func(*args, **kwargs)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/lib/python3/dist-packages/mopidy_mpd/protocol/music_db.py", line 145, in find
Nov 15 11:26:46 kobel mopidy[50371]:     results = context.core.library.search(query=query, exact=True).get()
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_threading.py", line 45, in get
Nov 15 11:26:46 kobel mopidy[50371]:     _compat.reraise(*self._data['exc_info'])
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Nov 15 11:26:46 kobel mopidy[50371]:     raise value
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._handle_receive(envelope.message)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Nov 15 11:26:46 kobel mopidy[50371]:     return callee(*message.args, **message.kwargs)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/mopidy/core/library.py", line 316, in search
Nov 15 11:26:46 kobel mopidy[50371]:     result = future.get()
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_threading.py", line 45, in get
Nov 15 11:26:46 kobel mopidy[50371]:     _compat.reraise(*self._data['exc_info'])
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Nov 15 11:26:46 kobel mopidy[50371]:     raise value
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Nov 15 11:26:46 kobel mopidy[50371]:     response = self._handle_receive(envelope.message)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Nov 15 11:26:46 kobel mopidy[50371]:     return callee(*message.args, **message.kwargs)
Nov 15 11:26:46 kobel mopidy[50371]:   File "/usr/local/lib/python3.8/dist-packages/mopidy_radionet/library.py", line 83, in search
Nov 15 11:26:46 kobel mopidy[50371]:     self.backend.radionet.do_search(' '.join(query['any']))
Nov 15 11:26:46 kobel mopidy[50371]: KeyError: 'any'

This happens when I search or browse my library.

Radio.net API seems changed.
The module uses a JS variable from the homepage source that has an invalid value:
apiPrefix: 'https://undefined/info/v2',
This must be the reason why the module cannot connect.
Any idea on how to fix this?

I got the same error while trying to set up a new mopidy session today. Seems like the new api is here to stay :/

I patched the /usr/local/lib/python3.7/dist-packages/mopidy_radionet/radionet.py file to hardcode the apiPrefix as "https://api.radio.net/info/v2" and then it works again. Maybe a hardcoded prefix is as robust as trying retrieve it from the main radio.net page (base url).
Inserted line 79:
apiprefix_search = re.search('apiPrefix ?: ?'(.*)',?', tmp_str.content.decode())
self.api_prefix = apiprefix_search.group(1)
self.api_prefix = "https://api.radio.net/info/v2"

Thanks for the quick fix. Confirmed, it works again.

Merged, can I close this issue or the problem still exists?

Problem is gone for me. Its working.


Error on running example: ./libcimgui.so: undefined symbol: _ZN15ImGuiTextBuffer11EmptyStringE

I get this error on running the example on a ubuntu 24. V is installed from git.
/home/user/.vmodules/nsauzede/vig/examples/mainig/mainig: symbol lookup error: ./libcimgui.so: undefined symbol: _ZN15ImGuiTextBuffer11EmptyStringE

I can confirm the same error with the same setup.
I tried several tricks to try and fix it, but failed for now.
This vig repo has always been fragile anyway..
For instance, I could easily revive a very similar repo, yet lighter/simpler : vnk
Maybe that can be used in your case, instead ?

I will need to rewrite my little app if I were to switch to vnk. For now I dug up an old .vmodules and found a version of vig that worked.
From the version that works, the git log shows cimgui tag is 1.90.6dock and imgui tag is v1.90.6-docking


Spelling error  in div no.5

As you can see the spelling of  div no. 5 must be "interactive" not --> "intractive".
please assign me this task under gssoc extd24 , and hactoberfest !
@beRajeevKumar

Hey there! Can you assign the issue to me?

Please don’t take my issue I should be getting it as I have raised it
please don’t interfere .
On Sat, 12 Oct 2024 at 2:27 PM, Kshitij Sawant @.***>
wrote:

Hey there! Can you assign the issue to me?
—
Reply to this email directly, view it on GitHub
https://github.com/beRajeevKumar/Frontend_Mentor/issues/290#issuecomment-2408465140,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYRCFRJBN7CLTJXCWM2OPW3Z3DP7JAVCNFSM6AAAAABP2GJ4U2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGQ3DKMJUGA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Not working on STM32F103

Tried to use this lib with blue pill, values resets after every reboot.

Finally found working solution:
https://ioprog.com/2018/05/23/using-flash-memory-on-the-stm32f103/
https://github.com/fduignan/stm32f103c8t6/tree/42ee0b39429b55f1d57458927a1d01ca1eb979ec
Works with writeSector / readSector
Please check why their solution works and your library doesn't work.

Hardware is fine, I used another library and it worked without any issues. It's a software bug.
There is and official STM32F103 flash access code:
int  writeSector(uint32_t Address,void * values, uint16_t size)
{
    uint16_t *AddressPtr;
    uint16_t *valuePtr;
    AddressPtr = (uint16_t *)Address;
    valuePtr=(uint16_t *)values;
    size = size / 2;  // incoming value is expressed in bytes, not 16 bit words
    while(size) {
        // unlock the flash
        // Key 1 : 0x45670123
        // Key 2 : 0xCDEF89AB
        FLASH->KEYR = 0x45670123;
        FLASH->KEYR = 0xCDEF89AB;
        FLASH->CR &= ~BIT1; // ensure PER is low
        FLASH->CR |= BIT0;  // set the PG bit
        *(AddressPtr) = *(valuePtr);
        while(FLASH->SR & BIT0); // wait while busy
        if (FLASH->SR & BIT2)
            return -1; // flash not erased to begin with
        if (FLASH->SR & BIT4)
            return -2; // write protect error
        AddressPtr++;
        valuePtr++;
        size--;
    }
    return 0;
}

Which works absolutely fine on my board.
There is STM32F1 with 64K and STM32F1 with 128K (both official), does your library handle both?
My board has 64K memory, so I use one of last memory page to access it:
writeSector(0x8000000 + 1024 * 60, &content, sizeof(content));

Hello i have the same issue, but i believe i have the original chip, it has STM markings and was bought from reputable vendor, so is there a way to check if its an original?

Here is an example that worked for me:
https://gist.github.com/bakwc/e5e8c255e03eb78ea4321c2c6179bdbf
(raw read / write, no external library required, see example function at the end of gist)

Hi @bakwc and @LuaksCz
Thanks for all of your valuable inputs which help me to rethink about spending future time to investigate the issue.
Just want to be sure that you select the correct board (C6/C8/CB, etc) (flash size 32K, 64K or 128K) from the IDE / PIO.
It'll certainly take some time to order / receive as I don't have every kind of boards in the world to test now.

i have 64k stm32F103C with HID bootloader 2.2, the proposed solution by @bakwc is working, so thanks.

Just tested on 64KB BluePill STM32F103C8, and without any issue of data retaining as mentioned.
So, I think there is some issue with your code / usage of library. As always, it's better to start with the simplest example to understand what the library is providing, and use it accordingly.
The library is designed for certain purpose and must be used correctly according to its design.
I'm closing the issue now and only reopen if you can prove your issue is caused by a library bug.
Good Luck,

EmulatedEEPROM on BLUEPILL_F103C8
Start EmulatedEEPROM on BLUEPILL_F103C8
FlashStorage_STM32 v1.1.0
EEPROM length: 1024
EEPROM is empty, writing WRITTEN_SIGNATURE and some example data:
-> 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
Done writing to emulated EEPROM. You can reset now to test

Power OFF then ON
Start EmulatedEEPROM on BLUEPILL_F103C8
FlashStorage_STM32 v1.1.0
EEPROM length: 1024
EEPROM has been written.Signature = 0xBEEFDEED
Here is the content of the next 16 bytes:
-> 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
Clearing WRITTEN_SIGNATURE for next try
Done clearing signature in emulated EEPROM. You can reset now

StoreNameAndSurname on BLUEPILL_F103C8
Start StoreNameAndSurname on BLUEPILL_F103C8
FlashStorage_STM32 v1.1.0
EEPROM length: 1024
EEPROM is empty, writing WRITTEN_SIGNATURE and some example data:
Insert your name : Your_Name

Insert your surname : Your_Surname

<< Your name: Your_Name
. Your surname: Your_Surname
 >> have been saved. Thank you!

Power OFF then ON
Start StoreNameAndSurname on BLUEPILL_F103C8
FlashStorage_STM32 v1.1.0
EEPROM length: 1024
Hi Your_Name
 Your_Surname
, nice to see you again :-)
Clearing WRITTEN_SIGNATURE for next try
Done clearing signature in emulated EEPROM. You can reset now

Hi all,
I've just written and published the new FlashStorage_STM32F1 library to take care of the special genuine / non-genuine STM32F103, CH32F103, CS32F103 boards, with 32/64/128KB flash.
The flash size will be recognized automatically according to the registered flash size. Please try and report any issue  in FlashStorage_STM32F1 Issues)
Thanks for your research, reports and encouragement,
Best Regards,

Changelog
Releases v1.0.1

Fix mistake in initial releases

Initial Releases v1.0.0

Initial release to support STM32F1/F3 boards with / without integrated EEPROM
Tested using genuine STM32F103, or CH32F103/CS32F103 boards with 32KB, 64KB or 128KB Flash Size
Configurable Flash Sector to use
FlashStorage size is 1024 bytes (including 1-byte valid and 4-byte signature)


Added shell test for cfbs remove

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik<EMAIL_ADDRESS>

@craigcomstock I didn't mean the set's, I just meant that all.sh has the list of all tests to run, these new tests need to be included :)

@craigcomstock I didn't mean the set's, I just meant that all.sh has the list of all tests to run, these new tests need to be included :)

Sure. Makes sense. :+1:


Failed to initialize robot account: 500 Internal Server Error

How to fix this error? Happens every time execute this command.
ubuntu@pi:~$ /opt/gcp_cups_connector/gcp-cups-connector-util init
"Local printing" means that clients print directly to the connector via local subnet,
and that an Internet connection is neither necessary nor used.
Enable local printing?
y

"Cloud printing" means that clients can print from anywhere on the Internet,
and that printers must be explicitly shared with users.
Enable cloud printing?
y

Retain the user OAuth token to enable automatic sharing?
y

User or group email address to share with:
<EMAIL_ADDRESS>
Proxy name for this GCP CUPS Connector:
FUJI_XEROX_DocuPrint_340A-AP

Visit https://www.google.com/device, and enter this code. I'll wait for you.
HNQS-KLVC
Failed to initialize robot account: 500 Internal Server Error

+1 - Im having same issue

Ah - seems to be known issue. If you retry a few times it works.

See #206 and sorry for the problem.


Bonk command does not work

>bonk @member will work on local test but does not function correctly on live server.
No warning sent or exception caught.

Fixed in aedf4ab


Database Setup

Description
Connect to MongoDB with a Python API and test CRUD operations for a single document with a text field.
Objectives

Study the fundamentals of a Python API for MongoDB. PyMongo is recommended.
Successfully connect to a live session.
Insert, read, update, and delete a single document with a text field to test functionality of database.

I did it but I'm not sure if crud fuctions should return something if  opperation is succesfull or only return error if something gone wrong


Allow --detach and --quiet flags when using --rollback

Cherry-picked from: docker/cli#144
Commit 78c204ef798c7380e11ba26e5cd231e04fc6efe4 added
(f9bd8ec8b268581f93095c5a80679f0a8ff498bf in the moby repo)
a validation to prevent --rollback from being used
in combination with other flags that update the
service spec.
This validation was not taking into account that
some flags only affect the CLI behavior, and
are okay to be used when rolling back.
This patch updates the validation, and adds
--quiet and --detach to the list of allowed
flags.
Signed-off-by: Sebastiaan van Stijn<EMAIL_ADDRESS>(cherry picked from commit f10f29df8d7ffede3faa29120a06c199e52a1d0c)
Signed-off-by: Eli Uriegas<EMAIL_ADDRESS>

LGTM


Uncaught Error: [$injector:modulerr] Failed to instantiate module siteApplication due to: Error: [$injector:nomod] Module 'siteApplication' is not available! You either misspelled the module name or forgot to load it.

How i solve the above problem.Please help guys.

This sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
Thx!


propagate request arg in all the doc strings

this change was introduced in 238e14fee97403ba509022e12950a87fe9b8e8d2
but only in the code and tests, documentation was left behind

@kvbik good catch, thanks!

thx for the merge ;)


Amber: Support AmberImproperTorsionHandler

https://github.com/openforcefield/amber-ff-porting/blob/cbe0eda246d89265bd7dccd1e0d8f93ebb6b7d51/amberimpropertorsionhandler.py

I think this is no longer strictly needed as v0.0.2 of our ff14SB port bypasses this: https://github.com/openforcefield/openff-amber-ff-ports/releases/tag/v0.0.2
Note that precise parity with Amber is not achieved with this approach because of differences in how impropers are computed. Energies should be close enough for most use cases.


CURLOPT_SSL_VERIFYPEER => false

The response is empty on XAMPP, setting this option fixes it

Please see #14.

Hi, yes but its still not merged in master https://github.com/J7mbo/twitter-api-php/blob/master/TwitterAPIExchange.php#L192

That's because I don't want to open up the code to man in the middle attacks. The reason it's not working in windows is because you haven't got cURL certificates set up properly. Check this thread for more info that I think you may find useful.

hehe :) if i have man in the middle attack i would have much bigger problems than reading from my twitter feed, which you can read anyway

Imagine if you have your twitter api client set to read AND write. It's just dangerous to enable that option. If you set up your certs right, that might help you.


ignore gpt neo for better transformer only for transformers>=4.45

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Integrate Let's Encrypt with Gitea

It would be useful and encourage more people to use SSL if there is built in support for let's Encrypt.

I think most people are using Gitea anyway behind a revers proxy. But with golang.org/x/crypto/acme/autocert it's pretty easy to implement it.

 The autocert lib makes it damn easy to integrate. But I would avoid this dependency within the gin core

@plessbd how is that easier than a single flag in gitea config saying "use letsencrypt"?

Beside the let's encrypt integration itself we should also add an automated redirect to https like mentioned at https://github.com/drone/drone/pull/1921#issuecomment-292056587

@tboerger I try the solution from https://github.com/drone/drone/pull/1921#issuecomment-292056587 it can't work for me.
see the source: https://github.com/go-training/training/blob/master/example10-simple-http-server/server/server07.go
package main

import (
	"log"
	"net/http"

	"github.com/gin-gonic/gin"
	"golang.org/x/crypto/acme/autocert"
	"golang.org/x/sync/errgroup"
)

func main() {
	r := gin.Default()

	// Ping handler
	r.GET("/ping", func(c *gin.Context) {
		c.String(200, "pong")
	})

	var g errgroup.Group

	g.Go(func() error {
		return http.ListenAndServe(":http", http.RedirectHandler("https://example.com", 303))
	})
	g.Go(func() error {
		return http.Serve(autocert.NewListener("example.com"), r)
	})

	if err := g.Wait(); err != nil {
		log.Fatal(err)
	}
}

@ptman Guess it depends on setup.
Personally I think a lets encrypt library is just adding dependencies to something that doesn't need it.
Isolation of responsibilities and all.
All lets encrypt does is give you a certificate, all gitea should do in my opinion is let you specify an ssl cert and use it.

We did have cert build-tag a while ago, might consider adding it again but with lets encrypt support :)

@bkcsoft great idea and we could use a new command name, for example le?

No need for a new command IMO. There should be a background worker to check the cert every X interval and update is necessary

+1 for this being built in; I'd rather not have to set up nginx if the only service my cheap VPS is running is gitea. Would much rather gitea be the only service running.

@bkcsoft no background worker required, the autocert lib handles everything automatically. This is also used within drone and some of my projects.

Yeah, the hardest part of setting up Lets Encrypt with a single service like this is setting up the way for LE to verify the domain is yours.

The mentioned autocert lib handles that, it just doesn't support the DNS retrieval.

This should be a 5 LOC change to read a new config option and use the autocert library if requested: https://godoc.org/golang.org/x/crypto/acme/autocert#ex-NewListener.


[Access Request] page 5005271 "Delivery Reminder Sub." -  InsertExtendedText

🕮 Describe the request
Could you please remove the scope OnPrem from the procedure InsertExtendedText on page 5005271 "Delivery Reminder Sub." that this function can be used from pageextensions.
//+Change
//[Scope('OnPrem')]
//-Change
procedure InsertExtendedText(Unconditionally: Boolean)
begin
    OnBeforeInsertExtendedText(Rec);
    if TransferExtendedDelivRemText.ReminderCheckIfAnyExtText(Rec, Unconditionally) then begin
        CurrPage.SaveRecord();
        TransferExtendedDelivRemText.DelivReminInsertExtendedText(Rec);
    end;
    if TransferExtendedDelivRemText.MakeUpdate() then
        CurrPage.Update();
end;

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


Can't play music

I've followed the instructions and the window with GM comes up nicely, but I can't play any songs.
I tried allowing all plugins, no difference. It works fine in a Chrome window.
The only hint I have is that it can't find require on line 1...

What's the failed require message say? Also does Google Music have any prompt about requiring Flash to be enabled?

By looking at the terminal I noticed that the require error only happens when I open up the console, so it may not be related. This is the start log, notice the time stamps, the last line only shows when opening the console:
> nw .

[82989:0505/112345:INFO:CONSOLE(10)] "", source: file:///Users/wmertens/Documents/AeroFS/Projects/google-music-webkit/lib/index.js (10)
[82989:0505/112346:INFO:CONSOLE(38)] ""No cast extension found"", source: https://www.gstatic.com/cv/js/sender/v1/cast_sender.js (38)
[82989:0505/112421:INFO:CONSOLE(1)] "Uncaught ReferenceError: require is not defined", source:  (1)

There are no errors displayed on the play page, except that it's skipping song after song (Couldn't play <song name>. Skipped ahead.) followed by a Can't reach Google Play which weird since the page loads just fine.

Do you have any of the Labs settings enabled for your account?

I turned all the lab settings off, no change.
I should probably specify I'm on a Mac, using nw 0.12.
On Tue, May 5, 2015 at 7:07 PM Todd Wolfson<EMAIL_ADDRESS>wrote:

Do you have any of the Labs settings enabled for your account?
—
Reply to this email directly or view it on GitHub
https://github.com/twolfson/google-music-webkit/issues/5#issuecomment-99143114
.

Hmmm, very strange. Can you navigate to youtube.com and see if videos will playback?

Google released a new UI today that is breaking the current application and seems to be causing issues with nw.js. It's possible that when we fix it, this problem might be fixed but I have no idea.

We had another release since this issue was opened. More importantly though, this project has been deprecated and we now prefer using electron:
https://github.com/twolfson/google-music-electron


check module account is exist

Closes: #622
Context and purpose of the change

Brief Changelog

Author's Checklist
I have...

[ ] Run and PASSED locally all GAIA integration tests
[ ] If the change is contentful, I either:

[ ] Added a new unit test OR
[ ] Added test cases to existing unit tests

[ ] OR this change is a trivial rework / code cleanup without any test coverage

If skipped any of the tests above, explain.

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] manually tested (if applicable)
[ ] confirmed the author wrote unit tests for new logic
[ ] reviewed documentation exists and is accurate

Documentation and Release Note

[ ] Does this pull request introduce a new feature or user-facing behavior changes?
[ ] Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md?
[ ] This pull request updates existing proto field values (and require a backend and frontend migration)?
[ ] Does this pull request change existing proto field names (and require a frontend migration)?
How is the feature or change documented?

[ ] not applicable
[ ] jira ticket XXX
[ ] specification (x/<module>/spec/)
[ ] README.md
[ ] not documented

Can you give some more details on the error that you saw in the simulation tests? From briefly eyeballing it, it looks like this is only called when the chain is started up for the first time, and I think the address' are also deterministic so setting an account that already exists would just override it?
Curious to get @riley-stride's opinion as he's most familiar with this code

Yeah, when I code for simulation test in the case of TestAppImportExport, it will always fail because you have to start a new app, and I see that, the error is because we had checked the existing module account. Code for simulation test is below:
https://github.com/notional-labs/stride/blob/716a2d449374f56c7544174e923b75a5c390a836/app/sim_test.go#L83

when I code for simulation test in the case of TestAppImportExport, it will always fail because you have to start a new app, and I see that, the error is because we don't have a check the existing module account so that it fails for the test after. This test simulates an upgrade chain work with export genesis from the old app and import to the new app. The code for simulation test with update checking is below: https://github.com/notional-labs/stride/blob/716a2d449374f56c7544174e923b75a5c390a836/app/sim_test.go#L83

Can you point us to the line that breaks in the sim tests? When do we create a module account twice?

Hi @riley-stride, full code for this fail test is in this function https://github.com/notional-labs/stride/blob/cd4d171f8492d42956a933c2e679eaa1bea1e195/app/sim_test.go#L84
Steps to run:

make test-sim-import-export and will show the fail like image below

Run the line below failed notification in the image, in this case is: go test ./app -run TestAppImportExport -Enabled=true -NumBlocks=10 -Genesis= -Verbose=true -Commit=true -Seed=7 -Period=2 -ExportParamsPath /var/folders/5y/7n2nyf8x5799th2r_zmw58x00000gn/T/sim-logs-1372263546/sim_params-7.json -ExportStatePath /var/folders/5y/7n2nyf8x5799th2r_zmw58x00000gn/T/sim-logs-1372263546/sim_state-7.json -v -timeout 24h  and it's will show the error like image below

Insight:

The image above show that their are some key/value pairs different with app and  newapp,
I debuged and record all the moduleAccount address in https://github.com/notional-labs/stride/blob/nhan%2Ffail_simualtion_test/app/test.json for the app and https://github.com/notional-labs/stride/blob/nhan%2Ffail_simualtion_test/app/test2.json for the newapp, and see that three accounts seted up by https://github.com/notional-labs/stride/blob/cd4d171f8492d42956a933c2e679eaa1bea1e195/x/mint/genesis.go#L11 will be make a fail.
In the file test.json, we can check that there are total 925 accounts were created with the max id is 924 and the id for three accounts above are 922,923,924, after that I also check for file test2.json and see that, there are also total 925 accounts were created but with max id is 927 and the id for three accounts above is 925,926,927 and don't have id 922,923,924, and you know what, the address of accounts 925,926,927 in test2.json are the same with accounts 922,923,924 in test.json, in this case, I think it mean when we run new app with genesis exported from old app, the information of three accounts above will be added more, not update like another accounts because we don't have a check exist for them. So I added it and run ok now, if you have any questions, feel free to ask, thank!


draft for mgmt README

Fix https://github.com/Azure/azure-libraries-for-java/issues/1131
First draft for README
Let me know if there is more worth putting to key concepts and examples.

is it necessary to have a list of java mgmt sdks, then reference to it from here for users' easy search?


Feature/buffer head

Pull request
Choose Correct

[ ] bug
[x] feature

Describe the pull request

Thanks to this PR framed transport should be able to store header data in message buffer and all data can be send to other side at once. So far not tested.
!!!!! Please review and merge this PR: https://github.com/EmbeddedRPC/erpc/pull/373
To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

OS:
eRPC Version:

Steps you didn't forgot to do

[X] I checked if other PR isn't solving this issue.
[X] I read Contribution details and did appropriate actions.
[ ] PR code is tested.
[X] PR code is formatted.
[ ] Allow edits from maintainers pull request option is set (recommended).

Additional context

@amgross  @MichalPrincNXP First non tested version for serializing and deserializing header data in MessageBuffer. What do you think? I will try to think if we can simplify things, but there is many scenario we need count with

Hmm tests are not passing, need to see where i have an issue.

@MichalPrincNXP Could you start with reviewing? As tests are passing most transport should work. What could be an issue are RPMSG related transports. I will try rpmsg tty implemenattion, but it would be great if you can some other rpmsg implementation on your side.

@MichalPrincNXP I provided simple fix for rpmsg tty. Tested on board. What i cannot test is MU and other RPMSG transports. Could you try at least some of them (e.g. MU). It would be great if we can confirm at least compilation for all of them and running test for at least one of them (e.g. MU)

Hi @MichalPrincNXP , as promissed PR rebased to the top...


Example commands are not tight

Minor issue:
Example commands refer to 'frame_interpolation' with an underscore but the GitHub repo is with a hyphen, namely 'frame-interpolation'

The repo is clone into the directory with the underscore, see README

See the installation instructions.


refactored pruning

part of https://github.com/Comcast/codex-fenrir/issues/16

Codecov Report

Merging #81 into master will decrease coverage by 0.16%.
The diff coverage is 87.5%.

@@            Coverage Diff            @@
##           master     #81      +/-   ##
=========================================
- Coverage   66.97%   66.8%   -0.17%
=========================================
  Files          20      20
  Lines        1181    1175       -6
=========================================
- Hits          791     785       -6
  Misses        351     351
  Partials       39      39

Impacted Files
Coverage Δ

db/postgresql/executer.go
0% <0%> (ø)
:arrow_up:

db/batchDeleter/batchDeleter.go
86.84% <100%> (-0.97%)
:arrow_down:

db/postgresql/db.go
37.36% <100%> (ø)
:arrow_up:

db/retry/retry.go
97.59% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


The Malware Won't Open

Running On VMware

i have somewhat the same

Similar issue as well

Hey! I am really sorry for my recent absence. I will look forward to fix the issues in the following week.

Do you guys have more information for me? What version of python did you use to compile, did you have any errors while compiling, if so then a screenshot of the cmd with the errors would be nice :)

Python 3.11.3

No Errors While Compiling On My Actual PC, CMD is fine.

you should show me the entire error, or the bottom of it (the bottom of the error is often the cause)

Error Is:
Traceback (most recent call last):
File "source_prepared.py", line 18, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\io_init_.py", line 98, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\io\matlab_init_.py", line 45, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\io\matlab_mio.py", line 9, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\io\matlab_mio4.py", line 8, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse_init_.py", line 283, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse\csgraph_init_.py", line 185, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse\csgraph_laplacian.py", line 7, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse\linalg_init_.py", line 120, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse\linalg_isolve_init_.py", line 4, in
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "scipy\sparse\linalg_isolve\iterative.py", line 9, in
ImportError: DLL load failed while importing _iterative: The specified module could not be found.

had the same just edited the registery and that sort and try again then it worked

Weird

Can you send your source_prepared.py here?

closing this due to inactivity..


Update release notes rst to make docs deploy possible from main

Summary
There are constant docs updates that need to be deployed. This will make it possible to deploy the docs from the main branch instead of just the latest stable branch
Details and comments
Fixes #

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3377

Relevant Lines:
5266

💛  - Coveralls


ds000201 -- missing , after a name in dataset_description.json

thought it was again utf8 stricking back but it is just a banal missing comma (after Peter's name).  since @vsoch liked my screen shots so much, here it is:

+1! :hamburger:
Yes, simple validation of the files should take care of this - we do something similar for experiment factory, the validation function first tries loading the json file, and returns invalid if it doesn't work. It's surprised me how often and easy it is to forget commas, quotes, and the like.

I think this one is fixed but caused #9 ;)


update functionality for Admin profile

Issue that this pull request solves
Closes: #896
Proposed changes
[Frontend] Introduce Update Admin Functionality
Brief description of what is fixed or changed
Introduce Update Admin Functionality and also backend api updated
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] My changes does not break the current system and it passes all the current test cases.

Screenshots
Please attach the screenshots of the changes made in case of change in user interface
https://github.com/HITK-TECH-Community/Community-Website/assets/122097724/7b260dd2-71cb-4d47-ac23-f09d0f19de72
Other information
Any other information that is important to this pull request

@SwayamRana808 let me know when u are done fixing the requested changes as i can see the current state of this pr is not good, a lot of un-necessary changes are there and functionality is still not intact

i have changed response json but still it showing in network tab

it should have shown something like this --

@Kajol-Kumari  can you please have look on this

 The phone number field keeps on giving error, can u check this?

number should start with 9-6 it was validity check if number is from India its was already defined in backend


[WIP] Add Redis Sink

Wait for #8 to be merged

Do you want some help here? I can assume it and make the necessary changes. What do you think?

yeap, if you feel like it. I'm swamped with work lately 😓

Yep, I wanna work on this. Thank you!


rustc,cargo: 1.74.1 -> 1.75.0

Description of changes

[x] fd.x86_64-linux
[x] fd.aarch64-linux
[ ] fd.x86_64-darwin
[ ] firefox.x86_64-linux
[ ] thunderbird.x86_64-linux

Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

cc @flokli well, once again, the CI error is related to a flakey Nix tests failure:
error: 1 dependencies of derivation '/nix/store/scrz02fzrcqm4qrqkl7h3mr82hgz3nl8-nixpkgs-lib-tests-nix-2.3.17.drv' failed to build

So unrelated. :/
@ofborg build

@ofborg eval
I meant.

@OfBorg build fd

Built fd.x86_64-darwin.
@alyssais If you'd like access to darwin for testing changes nix-community has a darwin build box: https://nix-community.org/community-builder

#278701


Test LefseAnalysis process with newer docker image

My old verison of the LefseAnalysis docker image (py2_env) used the package lefse=1.0.0_dev_9adc3a62460e but this is now depricated.
They have constructed a docker image "biobakery/lefse:1.0.0_dev_9adc3a62460e" and  I have updated the py2_env to py2_env:1.0.
I want to replace the py2_env:2.0 with py2_env:1.0 and see if the code runs well.
One other mod will be not trying to activate the python2 env in the bash script

commit: ca0ac6969ea6dc20178e20469769fd44e42c0fce
nf run: happy_celsius
slurm job: 14147469
LGTM!


Peer dependency issue with enzyme-adapter-react-15.4

I am facing the peer dependency issue with enzyme-adapter-react-15.4. I use JEST along with ENZYME to unit test my React application. I use below config:
"react": "^15.1.0",
"enzyme": "^3.2.0",
"react-addons-test-utils": "^15.3.1",
"enzyme-adapter-react-15.4": "^1.0.5",
"react-dom": "^15.1.0",

And I get below errors even when I have all modules in place:
! peer dep missing<EMAIL_ADDRESS>- 15.4.x, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>- 15.4.x, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>- 15.4.x, required by<EMAIL_ADDRESS>
I see in the node_modules/react/package.json that the version installed is 15.6.2 whereas I specifically installed 15.1 as prod dependency.
My config files:
// enzyme-setup.js
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15.4';

configure({ adapter: new Adapter() });

JEST:
{
    "testEnvironment": "jsdom",
    "setupTestFrameworkScriptFile": "./enzyme.setup.js",
    "testResultsProcessor": "jest-teamcity-reporter",
    "coverageReporters": [
        "teamcity", "lcov"
   ],
    "rootDir": "",
    "roots": [
      "__tests__/unit/"
    ],
    "moduleNameMapper": {
        "@PathToMappers(.*)$": "<rootDir>/src/data/mappers/$1",
        "@PathToModels(.*)$": "<rootDir>/src/data/models/$1",
        "@PathToMocks(.*)$": "<rootDir>/__tests__/mocks/data/$1",
        "@PathToXHRClient(.*)$": "<rootDir>/src/service/xhr-client/$1",
        "@PathToComponents(.*)$": "<rootDir>/src/component/$1"
    }
}

Version

library
version

Enzyme
3.2.0

React
15.1.0

Adapter

[x] enzyme-adapter-react-15.4

This breaks the dependency report generation step at CI (Teamcity) and hence fails to deploy. Any help shall be highly appreciated.
CC @brucewpaul, @ljharb, @bdwain.

^15.1.0 does not indicate version 15.1. It says pull in the latest version with a major version of 15, which is 15.6 like you see in your node modules.
You either need to switch your react and react-dom semvers to keep them below 15.5 (~15.1.0 would keep you at 15.1.x) or change your enzyme adapter to enzyme-adapter-react-15, since that is for 15.5 up to 16.

@VishalGulati additionally, react-addons-test-utils must precisely match your react and react-dom versions. You should use ~ for react, react-dom, and react-addons-test-utils (whether you upgrade the adapter to the 15.5+ or not).

Thanks @ljharb @bdwain I updated to adapter v15 and had to install React-test-renderer and it worked fine. Thanks again!

someone got this working with react 15.4?

It should be working fine, as long as npm ls exits successfully.

uff... npm ls shows this...
I think, i have another problem somewhere else.
npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>

I now have a clean npm ls.
Whatever I try, i can not get rid of this error:
Cannot find module 'react-dom/test-utils' from 'ReactFifteenAdapter.js'

and react and react-dom are both the same minor version?

yes...
I am using this preset:
npm install<EMAIL_ADDRESS>@voitanos/jest-preset-spfx-react15 --save-dev --save-exact
after that, the package.json looks like this:
"dependencies": {
"@microsoft/sp-core-library": "~1.1.0",
"@microsoft/sp-lodash-subset": "~1.1.0",
"@microsoft/sp-office-ui-fabric-core": "~1.4.0-0",
"@microsoft/sp-webpart-base": "~1.1.0",
"@types/es6-promise": "0.0.33",
"@types/react": "0.14.46",
"@types/react-addons-shallow-compare": "0.14.17",
"@types/react-addons-test-utils": "0.14.15",
"@types/react-addons-update": "0.14.14",
"@types/react-dom": "0.14.18",
"@types/webpack-env": "1.13.1",
"libraries.ressources": "file:packages/libraries.ressources.1.0.0",
"react": "15.4.2",
"react-dom": "15.4.2"
},
"resolutions": {
"@types/react": "0.14.46"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.1.0",
"@microsoft/sp-module-interfaces": "~1.1.0",
"@microsoft/sp-webpart-workbench": "~1.1.0",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"@voitanos/jest-preset-spfx-react15": "1.3.2",
"ajv": "~5.2.2",
"gulp": "~3.9.1",
"jest": "23.6.0"
}
and in package.lock.json theese are referenced:
"@voitanos/jest-preset-spfx-react15": {
  "version": "1.3.2",
  "resolved"<EMAIL_ADDRESS>  "integrity": "sha512-RG5EiTgUe6mK263IDaPYh904VPpZ0oesUjwXBfNULhmzinDSiIQTxP/DQxOQVuOv6ki748/p3dWwfIp+ay0w4A==",
  "dev": true,
  "requires": {
    "@types/enzyme": "3.1.8",
    "@types/enzyme-adapter-react-15": "1.0.3",
    "@types/enzyme-to-json": "1.5.2",
    "@types/jest": "23.3.10",
    "@types/react-test-renderer": "15.5.7",
    "enzyme": "3.4.1",
    "enzyme-adapter-react-15": "1.0.6",
    "enzyme-to-json": "3.3.4",
    "identity-obj-proxy": "3.0.0",
    "raf": "3.4.0",
    "react-test-renderer": "15.6.2",
    "ts-jest": "23.1.4"
  },
  "dependencies": {
    "@types/enzyme": {
      "version": "3.1.8",
      "resolved"<EMAIL_ADDRESS>      "integrity": "sha512-HNOmXnm6RvyzVJRue3Ebrb1f609BQ0Lf5eNRCENPD95r6JKTTOwfDDpPE5tVp/fhJiBtvZ3To8a8E1Hq8eExNg==",
      "dev": true,
      "requires": {
        "@types/cheerio": "0.22.14",
        "@types/react": "0.14.46"
      }
    }
  }
},

well... i guess now the problem got clear...
what i did was npm i without optional
npm dedupe
npm up
npm prune.
I am depending on react 15.4, so I reference enymeadapter 15.
npm ls now tells me:
npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>I have react 15.4 and i can not upgrade it. So what can I do now?

You’re using the 15 adapter. Use the 15.4 adapter instead. (also your react types are for 0.14 but that’s an unrelated problem)

which version of react types should I use? ... I will try 15.4 adapter again, but i remember, i was running into the issue described in this  topic headline...

The types for X should always be the same minor version of X that you have.

hmm....
well... now i have following:
I did not understand, which version of types-react i should take. I checked the Versions and I dont see a version react/types 15.4.2... I guess i did not understand where the x should map.
Anyway, the react-types dont do any troubles.
I now have following:
I installed:
jest, enzyme with adapter 15.4 and react-addons-test-utils.
I added types/jest to types
when i build my project, it throws serveral errors like this::
Error - typescript - node_modules@types\jest\index.d.ts(58,25): error TS1005: ')' expected.
Error - typescript - node_modules@types\jest\index.d.ts(58,53): error TS1005: ',' expected.....
Thats why i started looking for the preset for sharepoint 2016 on prem... but theese dependencies also do not fit.
current package.json:
"dependencies": {
"@microsoft/sp-core-library": "~1.1.0",
"@microsoft/sp-lodash-subset": "~1.1.0",
"@microsoft/sp-office-ui-fabric-core": "~1.4.0-0",
"@microsoft/sp-webpart-base": "~1.1.0",
"@types/es6-promise": "0.0.33",
"@types/jest": "^24.0.23",
"@types/react": "0.14.46",
"@types/react-addons-shallow-compare": "0.14.17",
"@types/react-addons-test-utils": "0.14.15",
"@types/react-addons-update": "0.14.14",
"@types/react-dom": "0.14.18",
"@types/webpack-env": "1.13.1",
"jest": "^24.9.0",
"libraries.ressources": "file:packages/libraries.ressources.1.0.0",
"react": "15.4.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "15.4.2"
},
"resolutions": {
"@types/react": "0.14.46"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.1.0",
"@microsoft/sp-module-interfaces": "~1.1.0",
"@microsoft/sp-webpart-workbench": "~1.1.0",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2",
"enzyme": "^3.10.0",
"enzyme-adapter-react-15.4": "^1.4.1",
"gulp": "~3.9.1"
}
}

Those look right to me; does npm ls exit successfully there?
As for those TS errors, that looks unrelated to enzyme (and you're using jest types for 24.0, but you have jest 24.9, so you probably need to make those match too).

hmm....
I cant reference a version for<EMAIL_ADDRESS>Jest types got installed automatically by npm install jest. When I explicitly give that version number to types, it says following:
npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ls is clean.

possible, that this is an issue with npm version 5.6?
Also I am using tsc --version: 3.7.2

OMG... I solved it.
I forgot that I have a dependency to ts 2.2.4. TypeScript 2.2.4 needs jest types in version ^21.1.2.
Now I can compile.
I just saw theese dependencies on the jest/types documentation page on git.
Thanks for the support!


docs(org): default to v2 homepage

Summary
This PR changes the default homepage of InstantSearch.js to V2.
While the V2 docs/* will still be behind
https://community.algolia.com/instantsearch.js/v2/.
Depends on the same PR for v1 to be merged and cloudflare being updated.
Fixes #2236

Result

We may want to add a link to V1 docs so that:

people still on V1 can access the docs easily
people looking for V1 docs content when using v2 can do it (we had this feedback recently, let's dig it)

OK so we are good to go here, once this is merged I can do a deploy test and if it fails, EASY we just git revert inside the gh-pages, boom no one notices :)

I will then just activate the cloudflare rules that will redirect old v1 pages to /v1/*

If this links works: https://community.algolia.com/instantsearch.js/v1/
You can merge this

yes but @vvo we need https://community.algolia.com/instantsearch.js/ to go on V2 as well

also this link to V2 leads to 404

@shipow as we discussed homepage of is.js will be V2 by default rather than a 301

/ is v2
/v2/* are docs
/v2/ redirects to / (which is v2)
/v1/
Old pages redirects to /v1/*

Can you send the link leading to a 404?

(resolved conflicts)

Good job!
This link is still dead on V1

Fixed (should be live soon)


(PUP-9499) Add FileSystem.replace_file

Add a FileSystem.replace_file method to supersede Puppet::Util.replace_file, as the latter only applies the specified mode if it needs to create the file, but not overwrite it.

CLA signed by all contributors.

Is not supporting "create the file with specific permissions, but don't modify them, if the file already exists" intentional? That Puppet::Util.replace_file didn't support "this file should always have these permissions" was definitely annoying, but it seems like both scenarios are desirable.

It's more a case of let's add that if/when we need it. For ssl files, we always know what the desired mode should be, so it's better to set the mode always, so that it's not out of sync between the time we overwrite the content, and when the agent next applies a settings catalog.

Is not supporting "create the file with specific permissions, but don't modify them, if the file already exists" intentional? That Puppet::Util.replace_file didn't support "this file should always have these permissions" was definitely annoying, but it seems like both scenarios are desirable.

Is this comment out of date?  It looks like it will replace existing permissions.  Whichever sense it is, we should have a test showing that it works (does or does not replace existing permissions).

We apply permissions to the temporary file before it is renamed over the existing file. This way the resulting file has the permissions we expect.
There are tests for creation and updating that show the 3 cases: 1) A mode is specified and is applied to the resulting file. 2) A mode wasn't specified and the file already exists, and we preserve it's mode, and 3) A mode wasn't specified, but the file doesn't exist, so we apply a default mode.


Bump telegraf

High-level description
What features does this change enable? What bugs does this change fix?
Corresponding DC/OS tickets (required)

D2IQ-68139 Add mesos soft limits to Grafana dashboards.

Related tickets (optional)

D2IQ-ID JIRA title / short description.

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot changelog-not-required Bumped telegraf


multilingual support with i18n

This PR added the i18n module for multilingual support, with a demonstration for Chinese.

Great! Note that some are not translated yet, including the "post" and "work" labels on the home page, the "Cards" and "Posts" titles on the sitemap page, and the "Contents" title on the TOC of each post. I just cannot find them in layouts/.

Great! Note that some are not translated yet, including the "post" and "work" labels on the home page, the "Cards" and "Posts" titles on the sitemap page, and the "Contents" title on the TOC of each post. I just cannot find them in layouts/.

It seems that Hugo uses the folder names to create the titles: "Posts" is generated from the folder name "post". You can see that by using Chinese for a folder name.
I guess this can be configures by modifying the template of Hugo-Prose.

It seems that Hugo uses the folder names to create the titles: "Posts" is generated from the folder name "post". You can see that by using Chinese for a folder name.

Thanks for the info. I tried this but got something unexpected. I renamed the folder content/post as content/文章, but the "post" label on the home page was still "post". Moreover, on the sitemap page, the list of posts was still there with a title "Posts", and I got one more list there with the title "文章s". Yes, the Chinese noun got a plural form.

It seems that Hugo uses the folder names to create the titles: "Posts" is generated from the folder name "post". You can see that by using Chinese for a folder name.

Thanks for the info. I tried this but got something unexpected. I renamed the folder content/post as content/文章, but the "post" label on the home page was still "post". Moreover, on the sitemap page, the list of posts was still there with a title "Posts", and I got one more list there with the title "文章s". Yes, the Chinese noun got a plural form.

One way I can think of is to hack the templates list.html and sitemap.html. I forked your repository and made changes in the forked version. I can make a pull request if that's okay with you.

I can make a pull request if that's okay with you.

Yes, please! It is wonderful!


Calling Sentry.init() with empty dsn doesn't throw error

[x] Review the documentation: https://docs.sentry.io/platforms/javascript/electron/
[x] Search for existing issues: https://github.com/getsentry/sentry-electron/issues
[x] Use the latest release: https://github.com/getsentry/sentry-electron/releases

Versions + Platform

[x] SDK version -<EMAIL_ADDRESS>[x] Electron version -<EMAIL_ADDRESS>[x] Platform - macOS`

Description
If I call Sentry.init({ dsn: "" }) then no error is thrown but instead the follow log line is logged to console.error: SentryError: Attempted to enable Electron native crash reporter but no DSN was supplied.
This is because of the forget call at https://github.com/getsentry/sentry-electron/blob/edd2775048d4658f88fd23a989574da913e6762a/src/main/backend.ts#L101
That function really shouldn't be async at all since it includes 0 await's and two forget's itself.

I haven't had a chance to check what the other Sentry SDKs do but I had assumed this was intensional.
It's recommended that you call init as early as possible so if it throws it would stop the app from starting. I would always prefer an app start without telemetry than not start at all.

I completely agree but this doesn't throw. That is the problem.

Why is that a problem?

Because I want to react to it not starting correctly.

This is intended behavior sorry.
Our SDK should never throw something or break the user's app, there are also use cases where not setting a DSN is part of the user's expectations.

If you set it to a invalid sdn then I believe it does throw. Would you be willing to expose a validation function then?

You can validate a DSN something like this:
import { DSN } from '@sentry/utils';

const dsnString =<EMAIL_ADDRESS>try {
  const dsn = new DSN(dsnString);
} catch (_) {
  // DSN was invalid
}


Add LOCAL INFILE support

Motivation:
Add LOCAL INFILE support.
See also #206 .
Modification:

[x] Improve envelope codec for SubsequenceClientMessage
[x] Add LocalInfileRequest/LocalInfileResponse for text protocol
[ ] Add an option to enable/disable LOCAL INFILE support, and it should be a string to specify "safety path"
[ ] Add an option to specify file buffer size
[ ] Write docs

Result:
Query LOCAL INFILE support.

Hi, @jchrys @JohnNiang
In JDBC-MySQL, allowLoadLocalInfileInPath will work only if allowLoadLocalInfile=false. The allowLoadLocalInfile option means "allow LOAD DATA LOCAL INFILE and allow it to load file data from any path". It seems to be for historical reasons.
For example:

allowLoadLocalInfile=true for allowed and unrestricted LOCAL INFILE
allowLoadLocalInfileInPath=/opt for allowed and restricted LOCAL INFILE

In my opinion, r2dbc-mysql should make allowLoadLocalInfile just mean "allow LOAD DATA LOCAL INFILE", and that can be restricted by loadLocalInfileInPath. Which means, loadLocalInfileInPath will work only if allowLoadLocalInfile=true, and all LOCAL INFILE can only read files in the path.
For example:

allowLoadLocalInfile=true for allowed and unrestricted LOCAL INFILE
allowLoadLocalInfile=true&loadLocalInfileInPath=/opt for allowed and restricted LOCAL INFILE

Or we can make it the same as JDBC.
Any ideas?

I agree with your idea but would like to suggest a slightly different approach.
What if we consider not supporting the allowLoadLocalInfile property at all?
I believe that the property allowLoadLocalInfileInPath={path} could effectively convey the user's intentions. For instance, if the property isn't set, user will highly likely want to set (newVersionof) allowLoadLocalInfile=true and vice versa.


UI update

Feedback:

[ ] Page with banner looks off:

You can preview it by setting the following in conf.py:
html_theme_options = {
(...)
"hide_banner": "false",

[ ] Some pages in Mac 13" screen introduce now an horizontal scrollbar (e.g. Getting started > Quickstart):

[ ] Left & right sidebar blinks when reaching the end of the page: https://www.awesomescreenshot.com/video/34852760?key=2e3e25b17ace471894f832094e1aea91

LGTM!
I added some edits:

Changed anchor icon & updated icons lib
Anchor icon is copied on hover + click
Add configurable brand variables in conf.py

@annastuchlik ready for review


LINKED LISTS, SEARCHING, SORTING AND OTHER ALGORITHMS

DESCRIPTION
I want to propose new commits which include files containing a number of important algorithms in  C or C++ .
STEPS TO REPRODUCE
New commits can be added with the required algorithms.
EXPECTED OUTCOME
A rich  repository with a number of useful algorithms for student purpose like linked lists, stacks,queues,circular queues ,searching and sorting techniques etc.
What did you expect to happen
ACTUAL OUTCOME
The proposed outcome
Proposed Solution [optional]
If you know how to solve the above, please provide details here.

Most of them are already implemented in this repo


Multiple Allowable Values for Lists does not show options in UI

When an ApiModelProperty is on a List type, the allowableValues entry is not shown in the UI.
When the code looks like this:
@ApiModelProperty(value="a list of values", allowableValues="foo,bar,baz", required=false)
public void setValues(List<String> values) {
    this.values = values;
}

The generated JSON looks like this:
"values": {
    "type": "array",
    "description":  "a list of values",
    "items": {
        "type": "string",
        "enum": [
            "foo",
            "bar",
            "baz"
        ]
    }
}

But it should look like this:
"values": {
    "type": "array",
    "description": "a list of values",
    "items": {
        "type": "string"
    },
    "enum": [
        "foo",
        "bar",
        "baz"
    ]
}

This occurs in version 2.4.0.

@smwurster that looks right to me. The what it should look like is an artifact of a bug in swagger-ui/swagger-editor.
To me it is difference between Values is an array of enums ✅ vs Values is an array of string and an enum ❌
May be we can get clarification from OAS?

Hmmm.  The Schema definition also contains "enum", which is probably why for a single value with allowable values we get something like this:
"someValue": {
    "type": "string",
    "description": "asdf",
    "enum": [
        "foo",
        "bar"
    ]
}

So which is correct?
If there's a bug in the UI portion, could you fix it in your version, or do you just pull that directly from an external source?

It is a bug in the ui. However I don't maintain the ui libraries, just a mirror with slight modifications.

Ah, looks like they fixed it in the spec, but Swagger Core hasn't caught up.
I wonder if I could work around this with a local fork...


Add files via upload

Your checklist for this pull request
About your game
What is your game about?

Example: Pushing boxes to the goal. (from Sokoban Plus)

How to play your game?

Example  : Press WASD to move, J to restart and K to toggle trails, Get A boxes (cyan) to A goals (green), Get B boxes (magenta) to B goals (red), Get normal boxes (gray) to either goal. (from Sokoban plus)

Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[ ] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[ ] The name of the file/game contains only alphanumeric characters, -s, or _s.
[ ] The game name is not the same as the others from gallery

Image (If an image is used)

[ ] The image is in the /games/img directory.
[ ] The name of the image matches the name of your file. Example: sokoban_plus.js -> sokoban_plus.png.

Thanks for PR!

the sprites are the same as in getting started, make your own! be creative, you can do it :)

I'm going to close this PR for now. Feel free to reopen if you want to continue working on your game.


Tailwind 2.0 support

Are there any plans to upgrade Tailwindcss? I was looking to use the Tailwind UI components, but some of them require Tailwind 2.0

+1

@ricardohs35  @regisaih
If you'll find this helpful, I've updated my pingcrm-react repo to use Tailwind 2 and even Laravel Mix 6.

@ricardohs35  @regisaih
If you'll find this helpful, I've updated my pingcrm-react repo to use Tailwind 2 and even Laravel Mix 6.

This has been added to upcoming update: #99


xSQLServerAlwaysOnAvailabilityGroup/Replica: Utilize the help function Get-PrimaryReplicaServerObject

Details of the scenario you tried and the problem that is occurring:
Update the resources to use the shared function Get-PrimaryReplicaServerObject.
The DSC configuration that is using the resource (as detailed as possible):
xSQLServerAlwaysOnAvailabilityGroup/Replica
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
N/A
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
N/A
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
dev

Working this one next.


Add a link to Vulkan Samples

Not sure which chapter would be most relevant, maybe we could add it in the README?
Thank you!

I would argue the main README should remain a pure table of content page
I would add a section/blurb in the development_tools.md chapter

Done in https://github.com/KhronosGroup/Vulkan-Guide/pull/7

Fixed in #7


First draft of "Anatomy of an HTTP Request"

This is #21 realized.
I wasn't sure if this would be better as a guide or a topic, but left it in guides for now.
I linked to the io.js API docs instead of node.js API docs, since I wanted to link to the new Errors doc.

Looks pretty good! I vote for "guide" :)

Great, thanks @drewfish for reviewing!
I think I've addressed all of your comments now. Please have another go at it.

@drewfish OK, addressed your last comments (except 400 v.s. 500 which you went back on). How's it looking now?
Also, can we get another @nodejs/documentation reviewer?

+1, all my feedback was fed.

This is awesome work!

@chrisdickinson I think I've addressed all your comments. Wanna give it another go?

@chrisdickinson Cool. Addressed that round of comments and ready for another.

Looks good, other than a dead HTTP link at the end. Also, do we want links pointing at iojs.org or nodejs.org?

@Qard Good catch, thanks! Fixed that.
Re iojs.org v.s. nodejs.org: I wanted the new Error docs, but I also wanted to be consistent. I figured we can run a quick script later on that auto-replaces all of them once the latest API docs are published on nodejs.org.

LGTM

This is excellent work. LGTM! Merge at will.


Add eventing-rabbitmq integration back

Add this repo back so we restart some automation
Part of https://github.com/knative/eventing/issues/7670
/assign @knative-extensions/eventing-rabbitmq-approvers

/lgtm

/approve


Metric odds ratio fix

Submission type

[ ] This submission fixes a bug (link to related issue: https://github.com/openproblems-bio/openproblems/issues/684)

Inverts rank_aggregate - ascending, hence relevant when we aggregate via max/sum

Thanks @dbdimitrov !


Feature request: allow to set a default view period

scanario:
i create a chronos timeline with many events(for a year period). But i want to set a default view period(specified the start and the end), instead of the whole year period.
https://github.com/user-attachments/assets/759a05f5-1393-4677-ae81-3e37576e710e

added in v 1.1.2


[WIP] Support expand parameterin model_info and list_models

Solve https://github.com/huggingface/huggingface_hub/issues/2325.
First draft of what we discussed in https://github.com/huggingface/huggingface_hub/issues/2325#issuecomment-2162407468 cc @osanseviero @julien-c . In the end I went for "put everything in ModelInfo and have all attributes optional". For now I only implemented expand for models helpers but it can be easily extended to datasets/spaces.
In order to better document the available parameters, I used a Literal type annotations listing all valid keys. Since it's "just" a type annotation, passing any string will still be backward compatible in the future as long as the server handles it. The cons is that the list has to be manually maintained to stay up to date with server changes (not happening very often). I have added a test for that. At least an update is pushed server-side, we will notice it in our CI runs.
@osanseviero @julien-c let me know if you are opinionated on something, otherwise I'll continue with it :)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Thanks for the reviews! :hugs:


Update JS SDK Version

We already shipped the needed change as part of 58, and the change that needs to happen is https://github.com/preludeorg/platform/pull/879/files


###1488800_?Update issue templates<PHONE_NUMBER>0000450201983436

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

575


(PYL-R1710) Inconsistent return statements

Description
According to PEP8, if any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable).

Done


Works from terminal, but no image from cron job

I can run it from terminal with the following output:
ian@ian-MS-7C84:~$ /home/ian/.local/bin/himawaripy --auto-offset
himawaripy 2.2.0
Updating...
Latest version: 2021/11/17 22:20:00 GMT.
Detected offset: UTC-08:00
Offset version: 2021/11/17 04:20:00 GMT.
Downloading tiles...
Downloading tiles: 1/16 completed...
Downloading tiles: 2/16 completed...
Downloading tiles: 3/16 completed...
Downloading tiles: 4/16 completed...
Downloading tiles: 5/16 completed...
Downloading tiles: 6/16 completed...
Downloading tiles: 7/16 completed...
Downloading tiles: 8/16 completed...
Downloading tiles: 9/16 completed...
Downloading tiles: 10/16 completed...
Downloading tiles: 11/16 completed...
Downloading tiles: 12/16 completed...
Downloading tiles: 13/16 completed...
Downloading tiles: 14/16 completed...
Downloading tiles: 15/16 completed...
Downloading tiles: completed.
Saving to '/home/ian/.cache/himawaripy/himawari-20211117T042000.png'...
No such key “draw-background”
No such key “draw-background”
Exception in thread himawaripy-main-thread:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/home/ian/.local/lib/python3.9/site-packages/himawaripy/main.py", line 214, in thread_main
r = set_background(output_file)
File "/home/ian/.local/lib/python3.9/site-packages/himawaripy/utils.py", line 36, in set_background
assert os.system('bash -c "gsettings set org.gnome.desktop.background draw-background true"') == 0
AssertionError
This produces an image as expected.
This is my crontab line:
5 * * * * /home/ian/.local/bin/himawaripy --auto-offset >> /home/ian/log/cron.log 2>&1
This is the output of my cron.log:
himawaripy 2.2.0
Updating...
Latest version: 2021/11/17 21:40:00 GMT.
Detected offset: UTC-08:00
Offset version: 2021/11/17 03:40:00 GMT.
Downloading tiles...
Downloading tiles: 1/16 completed...
Downloading tiles: 2/16 completed...
Downloading tiles: 3/16 completed...
Downloading tiles: 4/16 completed...
Downloading tiles: 5/16 completed...
Downloading tiles: 6/16 completed...
Downloading tiles: 7/16 completed...
Downloading tiles: 8/16 completed...
Downloading tiles: 9/16 completed...
Downloading tiles: 10/16 completed...
Downloading tiles: 11/16 completed...
Downloading tiles: 12/16 completed...
Downloading tiles: 13/16 completed...
Downloading tiles: 14/16 completed...
Downloading tiles: 15/16 completed...
Downloading tiles: completed.
Saving to '/home/ian/.cache/himawaripy/himawari-20211117T034000.png'...
Could NOT retrieve env. var. DESKTOP_SESSION
Could NOT retrieve env. var. KDE_FULL_SESSION
Could NOT retrieve env. var. GNOME_DESKTOP_SESSION_ID
Could NOT retrieve env. var. XDG_CURRENT_DESKTOP
Fetched env. var. DBUS_SESSION_BUS_ADDRESS as unix:path=/run/user/1000/bus
Could NOT retrieve env. var. DISPLAY
Could NOT retrieve env. var. DESKTOP_SESSION
Could NOT retrieve env. var. KDE_FULL_SESSION
Could NOT retrieve env. var. GNOME_DESKTOP_SESSION_ID
Could NOT retrieve env. var. XDG_CURRENT_DESKTOP
And the background is black.
I am running Ubuntu 21.10 with gnome-shell version 40.5

Hello,
I'm having the same issue with the same ubuntu version and gnome shell.

小严同学已收到您的邮件，

`#!/bin/bash
#--auto-offset 自动时区
#--dont-change 只下载不修改壁纸
${HOME}/.local/bin/himawaripy --auto-offset --dont-change
sleep 15
Wallpaper's directory.
dir="${HOME}/.cache/himawaripy/"
#Environment variable
PID=$(pgrep gnome-session|head -n1)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
Random wallpaper.
wallpaper=find "${dir}" -type f | shuf -n1
Change wallpaper.
/usr/bin/gsettings set org.gnome.desktop.background picture-options "scaled"
/usr/bin/gsettings set org.gnome.desktop.background picture-uri "file://${wallpaper}"
#Ubuntu22.04##################################################################
#pip install
#sudo apt install python3-pip
#cron
*/10 * * * * /home/xxx/himawaripy.sh
#Ubuntu22.04##################################################################
`