Modification of the ListView component. Performance improvements, adding new properties and methods.

I'm working on a ListView component. I want to improve its performance and add new properties and methods. Perhaps I should adapt this component for integration with Kodular. Below is a list of tasks to be completed, in my opinion, some of them have been completed, but there is still some work left. I would also like to hear opinions on whether I am going in the right direction so as not to do unnecessary work.

[x] improved performance when filtering the list - I changed the way filtered elements are displayed, I removed several variable arrays which, in my opinion, were a problem.
[x] improved performance when loading data - I separated data loading from creating a new adapter instance, which also eliminated the side effect of ListView resetting when loading data. I removed any modification of user-entered data by removing any data processing loops. Now the data is stored in one list of objects. This allowed us to significantly speed up data loading.
[x] fixed a bug caused when setting index to 0 when ListView contains dictionary data
[x] adding new methods AddItem and AddItemAtIndex
[x] adding DividerColor and DividerThickness properties - two properties that make it easier and adjust the divider between elements, visible = thickness > 0, only works when element margins = 0.
[x] adding new properties ElementColor, ElementCornerRadius, ElementMarginsWidth - three properties that adjust the appearance of a single element, I separated the background color of the ListView from the background color of a single element.
[x] adding the SearchHintText property
[x] adding the MultiSelect property - I added this property, it was previously hidden, it works, but requires consideration whether we need to adjust the method of returning indexes.
[x] make ListViewLayout and Orientation properties visible in blocks
[x] removal of the Refresh method - I don't know if it should remain, but with the @Depracated annotation.
[x] adding new methods AddItems and AddItemsAtIndex
[ ] adding new methods ClearList and UpdateItemAtIndex
[ ] adding the ElementHeight property
[ ] adding Html properties for texts
[x] adding the BounceEdgeEffect property - to allow you to override the standard edge animation.
[ ] adding a new GridLayout layout
[ ] adding the Reverse property - this will allow you to reverse the list, the first element will be at the very bottom or on the right side
[ ] added ImageSide property - can add another layout or provide this as a separate property, maybe improve it to allow you to customize the image side for each element separately.

Can one of the admins verify this patch?

I added a new amendment, but I was surprised that it included files that I had not modified. What did I do wrong?

If you're working on Windows, the system might have changed the line breaks from CRLF to LF, which I think App Inventor Sources use. To confirm this, you can run git diff <file>, and if ^M is added behind lines, the system changed CRLF to LF.

Small issue that turned up in testing -- When the search filter does not match any of the list elements, the production listview displays no elements. This listview displays all elements in this case. It should probably behave like production.

the production listview displays no elements

No, the original built-in ListView behaves identically to my version. When the search term does not match any item in the list, the entire list with all items is displayed. should this be changed/fixed?

One thing to think about here is that any behavioral changes (new properties, blocks, etc.) will need to be made in the iOS version of this component.

I think we can do away with the Edge Bounce Effect. This is only a minor visual addition, but there may be problems with implementing it in iOS. I don't know what the standard edge animation looks like there. I think that margins or dividers are not difficult to introduce in iOS, I think that views there also have something like margins. Maybe instead of the UITableView class, should use UICollectionView, along with the following classes:
Adapter - UICollectionViewDataSource
ViewHolder - UICollectionViewCell
LayoutManager - UICollectionViewLayout

Another idea is to divide this PR into behavior and appearance parts. Some of the behavior can be introduced unchanged in the iOS version, while some of the appearance can wait for a programmer who will be able to make changes for iOS. Unfortunately, I do not have any experience with iOS or equipment on which I could test the modified code. Maybe a programmer who would be able to introduce the above visual modifications for the iOS version could contact us here.

the production listview displays no elements

No, the original built-in ListView behaves identically to my version. When the search term does not match any item in the list, the entire list with all items is displayed. should this be changed/fixed?

One thing to think about here is that any behavioral changes (new properties, blocks, etc.) will need to be made in the iOS version of this component.

I think we can do away with the Edge Bounce Effect. This is only a minor visual addition, but there may be problems with implementing it in iOS. I don't know what the standard edge animation looks like there. I think that margins or dividers are not difficult to introduce in iOS, I think that views there also have something like margins. Maybe instead of the UITableView class, should use UICollectionView, along with the following classes: Adapter - UICollectionViewDataSource ViewHolder - UICollectionViewCell LayoutManager - UICollectionViewLayout

Edge Bounce looks nice, and it doesn't affect the core functionality of the component. I think it's fine to include this was Android without adding it to iOS. Other changes, such as the new property for the hint text, need to be ported to iOS.
I'm not as familiar with the iOS implementation. I'll take a look. I don't want iOS to be a blocker on this PR.

Now I'm thinking... shouldn't the adapter also include methods for adding and removing elements... now I remove and add elements only in the main ListView class, then the entire modified list, which may have thousands of elements, is sent to the adapter.  If the adapter had the same methods as ListView, it would be faster.  Or maybe we shouldn't store and modify the list in the ListView class at all, only the adapter should take care of it?

OK, I've written a minimalist implementation of what I deem the most important new properties and blocks:
SearchHintText (ignored because the iOS listview does not have hint text)
BounceEdgeEffect (ignored because it is not supported on iOS at this time, but it's a nice aesthetic feature that seems fine for Android only)
AddItem
AddItemAtIndex
I can push these if you want them. Alternately, you could implement the new features in iOS yourself.
If the App Inventor team needs to provide iOS port of this PR, I request that the other nice-to-have features be moved to a separate PR so that we can get to the iOS work when we have resources.
Those include:
AddItems and AddItemsAtIndex
DividerColor
Divider Thickness
ElementCornerRadius
ElementMarginWidth
I'm not sure if we want to support the last two at all. They give the user a lot of power over how the ListView looks, but they're very Android-specific. Manipulating the iOS layout at that detail has proved very challenging.

Now I'm thinking... shouldn't the adapter also include methods for adding and removing elements... now I remove and add elements only in the main ListView class, then the entire modified list, which may have thousands of elements, is sent to the adapter. If the adapter had the same methods as ListView, it would be faster. Or maybe we shouldn't store and modify the list in the ListView class at all, only the adapter should take care of it? I think this would give us the ability to load large lists in stages using a clock, without any UI stopping.

These are great suggestions. I'm happy to continue to work with you on more ListView improvements if you're interested in doing more work with it.

OK, I've written a minimalist implementation of what I deem the most important new properties and blocks: SearchHintText (ignored because the iOS listview does not have hint text) BounceEdgeEffect (ignored because it is not supported on iOS at this time, but it's a nice aesthetic feature that seems fine for Android only) AddItem AddItemAtIndex
I can push these if you want them. Alternately, you could implement the new features in iOS yourself.
If the App Inventor team needs to provide iOS port of this PR, I request that the other nice-to-have features be moved to a separate PR so that we can get to the iOS work when we have resources.
Those include:
AddItems and AddItemsAtIndex DividerColor Divider Thickness MultiSelect ElementCornerRadius ElementMarginWidth
I'm not sure if we want to support the last two at all. They give the user a lot of power over how the ListView looks, but they're very Android-specific. Manipulating the iOS layout at that detail has proved very challenging.

Ok, we have PR for HintText on iOS. Should I create a new PR for Android and add fewer changes to it? For example, changes in performance, search, HintText and maybe one of the new blocks, e.g. AddElement and AddElementAtIndex? The rest of the modifications would be left for the future.


It breaks if initiated with null value

Error in getter for watcher "content": "TypeError: Cannot read property 'length' of null"
If I have a nullable css column in database and user does not input any css with first save, upon reloading the editor breaks because it tries to read the length of null. Can you fix this? I have a css field that user may or may not add some css to, the column is nullable, I can't force the user to enter css, and if they do not, your component breaks when they reload the page and data is read from the database.
found in
--->  at Editor.vue

Hi,
Thank you for the report.
You could just set the code to an empty string if the value is null.
like this:
if(userCSSResponse === null){
  this.code = "";
}else{
  this.code = userCSSResponse;
}

that should do it

I wanted to avoid doing that, since it would make my code cleaner, but that is what I did to make it work :)

This is my app by the way:
https://www.youtube.com/watch?v=pCjZpwH88Z0
you are now going to be contributor indirectly to my project by me using this plugin :)

I just watched the video your app looks really cool! 👍
Alright, tomorrow i'll look into it and i'll let you know :)

Great thanks for the consideration! :)

Hey!
 Thank you for this quick job! I'll pull it in soon to verify it works and I can give it null :) Thank you again!

Hey you are in Turkey, right? What city? I'm in Alanya right now working on my CMS above. But I'm not Turkish :) Would you be interested in doing freelance for me in the future? If so let me know what you would cost per hour. You would get to work with me on the CMS you saw! :)

If interested to find more about the project, visit this: https://www.reddit.com/r/laraone
Once I launch I'll work to make that community bigger, currently circa 120 follow the project and it's not even released! :)

Yep that's right I live in Ankara :) I'd like to chat if you could give me your telegram or whatsapp etc. shoot me an email<EMAIL_ADDRESS>

I've been to Ankara 10 years ago, cool I will send you the email now :)

Just published a new version that should fix the issue :)

Hi @koca , I think this issue should be closed, isn't it?

@jefrydco yep. Thanks for the fix! :)


Fix "raise_if_test" behaviour

Add missed call of "is_test_session"
Remove "raise_if_test" keyword argument, since it causes an exception in logging

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (a46412c) 71.96% compared to head (0f0d2e7) 71.96%.

Files
Patch %
Lines

golem/core/log.py
80.00%
2 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #241   +/-   ##
=======================================
  Coverage   71.96%   71.96%
=======================================
  Files         136      136
  Lines        8130     8130
=======================================
  Hits         5851     5851
  Misses       2279     2279

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


GuildMessageReceivedEvent fires for private messages

General Troubleshooting

[x] I have checked for similar issues.
[x] I have updated to the latest JDA version.
[x] I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Bug Report

The GuildMessageReceivedEvent is fired when the bot receives a private message.
Expected Behavior
This event should not be fired when the message is received in a private message channel.

Code Example or Reproduction Steps

Create a jda instance
Make a new class extending ListenerAdapter
add the method:

    public void onGuildMessageReceived(@Nonnull GuildMessageReceivedEvent event) {
        System.out.println(event.getMessage().getContentDisplay());

to the class
4. add the listener to the jda instance.

Code for JDABuilder or DefaultShardManagerBuilder Used
client = JDABuilder.createDefault(config.getString("token"), intents).build();

(intents is a list of intents that the bot will need)

Exception or Error
N/A

I can't reproduce this. And the code internals suggest that this is impossible.


When should clamp! be expected?

Hi @findmyway, I noticed you added clamp! to the readme. If I am implementing an agent, when should I expect clamp! to be implemented in addition to clamp. For instance, obviously I cannot expect clamp!(3, 1..1) to work, but I would expect clamp!(::Vector, ::Box) to work. In my code, how can I check and be confident that it will work?

My initial thought is, as long as the first positional argument of clamp! is mutable.

Ok, I guess that is the obvious answer :) I guess any space of AbstractArrays should have both clamp and clamp!` implemented for it.
Someone will need to go through the current code and implement clamp!


fix: fix build error due to config change

Hey!
Some recent changes in zola breaks the build:
https://github.com/getzola/zola/pull/2477

closed because source branch is main


Test

@hsnrathore Was it your intent only to add a few blank lines to the README?

Closing this as it seems to be an error.


Project / User dir Config file

Much like rubocop, eslint, editorconfig, etc., we need a config file that will let folks set the rules files to use, specify skips.
We'll probably add more config options over time, but to start this would suffice.
Let's use YAML as its OpenAPI.
lint:
    rules:
        - strict
        - ./config/foo-rules.json
    skip:
        - info-contact

#102 is going into review.


Doc Suggestion + Feature Suggestion

Hello!
Thanks for working on a project like this! This is not an issue per say but a suggestion and question about the docs.

the ReadMe references this line "Fire up the Ghosler front-end by going to https://your-domain.com. Default PORT is 2369." but there seem to be no instructions on how to start the dev or webserver and no "scripts" functions in the package.json to give a clue. So right now, not sure how to run the app.

Secondly, and unrelated to #1, I'm wondering if a feature could be added to the config file to help with the sending of newsletters for people who are using Ghost in a headless fashion. Namely, adding another variable like "headlessUrl" where you state your front-end site URL which also would get injected similar to the "URL" value into the email templates. This way when users click in the email it will get routed to the correct place. Something that is majorly missing from Ghost's email settings or even config.

Hey @KyTechInc 👋,

I think the Running Ghosler section on README shows installing instructions via ghosler-ci, so you only need to manage the CLI. If you intend to manually run the app, its as simple as node app.js or pm2 start app.js --name ghosler-app, or whatever process manager you are using. The entry-point is app.js.

Could you provide more details on this?
I am a bit aware of Ghost's capabilities to be used as a headless CMS but not really sure what you mean here - Namely, adding another variable like "headlessUrl" where you state your front-end site URL which also would get injected similar to the "URL" value into the email templates.

A clear description with an example would help.
Thanks.

Hey @ItzNotABug, thanks for the reply.

maybe I'm not understanding how Ghostler is working. I installed and ran the CLI locally, all that worked and I'm left with a set of folders matching the GitHub repo structure. I can see the files I need to config to my hosted Ghost API, URL, etc. But wasn't sure how to run the front end as described in order to see the web console. running node app.js just returns an error. Again, maybe I'm missing something here.

Sure! So running Ghost in "CMS mode" is really just turning on the private mode setting in the ghost admin, which hides the frontend or public blog site and only allows login to the admin portal "/ghost", as well, it exposes the Content API and Admin API endpoints. For me, I use this to grab all the blog post data and render it in something like a NextJS site. All of this works, however, when you try to publish a post and send via the built-in newsletter function the email template has a pre-coded variable for any of the links in that email which it uses the public URL of the ghost site, "blog.domain.com". In a headless setup you don't want any links to reference the actual ghost front-end as either one its turned off in private mode and 2 you want it to hit your separate front-end site: domain.com/blog/$slug.

I have tried to edit the ghost email template however it sits within the core code package or node modules of the Ghost code base which means it gets overwritten with each update. I've also tried using the redirects function which kind of works but gets very messy quick. Since Ghostler is handling the sending of the newsletter outside of the ghost codebase I saw it as a way to create a workflow that is more targeted to handling a Headless setup.
Hopefully, this is more clear?

I understand your point 2 better now. While it is a good feature, unfortunately it is out of the scope for Ghosler.
Adding something like headlessUrl will break a lot of things if the frontend does not manage certain things like: subscription page, unsubscribe page, feedback sheets & popups, comment links, etc.
That said, you can maintain a fork if you wish to. You'll have to replace calls to (await ProjectConfigs.ghost()).url to your headless url after you add it in the config.production/debug.json.

Coming to your installation,
Where & how exactly did you install Ghosler-CLI & Ghosler?
I am assuming you have a working server with an IP address. You should have a domain mapped to that IP & all requests for Port 2369 must be proxied through.

I think your right about my purpose version needing to be a fork to truly get the benefit and also not break the current core functions. I'll think about making a fork, although I've never maintained a fork before so i would need to doing some reading on how to do that and not break things lol
As for the installation, I'm starting to piece together that maybe Ghostler is meant to be installed on the same VM, node etc as your running Ghost instance and then your just routing to either base on a 1 port number difference (2368:2369).
I was trying to run this from my laptop thinking I would just run it locally and point it at my running instance of Ghost's public domain? Let me know if im off here? I also don't think i can install this alongside my ghost or on the same VM as I am using Railway.app and I don't have the same controls to the host OS as you would with something like a DigitalOcean droplet or other.
Apprentice you taking the time to review all this btw

I'll think about making a fork, although I've never maintained a fork before so i would need to doing some reading on how to do that.

I understand, it can be a bit tedious to look up at the latest changes from master repo and then make changes to your fork.
Let me know if you stumble anywhere.

I was trying to run this from my laptop thinking I would just run it locally and point it at my running instance of Ghost's public domain?

No, this wouldn't work because the public internet doesn't have access to your localhost.
You could however try using tunneling via something like NGROK which helps you in exposing your localhost to internet. That way you'd have to still keep the tunnel active when publishing a post so the localhost can receive the content via webhook. But honestly this is just a rough idea, haven't tried tunneling before.
Cheers!


nixos/utils: introduce genJqStructuredSecretsReplacementSnippet, deprecate genJqSecretsReplacementSnippet

Description of changes
genJqReplacementSnippet quotes the content of the secret file in the
output json file, which prevents structured secret, such as a list or
an object, from being used.
This patch is a breaking change for genJqSecretsReplacementSnippet'.
Since the function is somewhat internal, it should be fine.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[X] 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.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[X] (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.

@ofborg test gitlab sing-box lemmy engelsystem artalk discourse
filebeat does not have a NixOS test.
netbird's NixOS test does not use secrets.

We usually add a new function in this case and guide users to use this function in the documentation. Changing the current behavior seems less ideal.

We usually add a new function in this case and guide users to use this function in the documentation

Could you provide some precedents?

Changing the current behavior seems less ideal.

Providing two slightly different functions is also not good.
To be clear, there is no implicit behavior change.  Out-of-tree usage of genJqSecretsReplacementSnippet will fail to eval without damaging running systems. With a post in https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574 , I consider the situation good enough.
The current somewhat mysterious error message "error: cannot coerce a function to a string" can be improved at the cost of worse interface of genJqSecretsReplacementSnippet:  we decrease the number of parameters by move some parameters into the newly added attribute set like this
genJqSecretsReplacementSnippet' = attr: { set, output, quote ? false }:

Then the error message becomes more clear
error: function 'genJqSecretsReplacementSnippet'' called without required argument 'set'

       at /path/to/nixpkgs/nixos/lib/utils.nix:215:43:

          214|   # attr which identifies the secret to be changed.
          215|   genJqSecretsReplacementSnippet' = attr: { set, output, quote ? false }:
             |                                           ^
          216|     let

Could you provide some precedents?

Maybe https://github.com/NixOS/nixpkgs/pull/287364

Switched to a non-breaking approach.  Please re-review.

I think this is not an ideal solution since end users can not choose between string or JSON secrets.
A better user interface should allow users to choose whether the secret is JSON or string for every single secret. For example,
genJqSecretsReplacementSnippet {
  example = [
    {
      irrelevant = "not interesting";
    }
    {
      ignored = "ignored attr";
      relevant = {
        secretString1 = {
          _secret = "/path/to/secret";
        };
        secretString2 = {
          _secret = "/path/to/secret";
          quote = true; # or some other attribute name
        };
        secretJson = {
          _secret = "/path/to/secret";
          quote = false; # or some other attribute name
        };
      };
    }
  ];
} "/path/to/output.json"

And, another advantage of this user interface is that it keeps backward compatibility.

Perhaps we could use a shorter name for your new function, and keep the initially compatible behavior?

A better user interface should allow users to choose whether the secret is JSON or string for every single secret.

A demo: https://github.com/NixOS/nixpkgs/compare/master...linyinfeng:nixpkgs:json-secrets.
# demo.nix
let
  demoNixpkgs = fetchTarball "https://github.com/linyinfeng/nixpkgs/archive/refs/heads/json-secrets.zip";
  pkgs = import demoNixpkgs {};
  inherit (pkgs) lib;
  utils = import "${demoNixpkgs}/nixos/lib/utils.nix" {
    inherit lib pkgs;
    config = null;
  };
in
utils.genJqSecretsReplacementSnippet {
  example = [
    {
      irrelevant = "not interesting";
    }
    {
      ignored = "ignored attr";
      relevant = {
        secretString1 = {
          _secret = "/path/to/secret-quote-1";
        };
        secretString2 = {
          _secret = "/path/to/secret-quote-2";
          quote = true; # or some other attribute name
        };
        secretJson = {
          _secret = "/path/to/secret-json";
          quote = false; # or some other attribute name
        };
      };
    }
  ];
} "/path/to/output.json"

$ nix eval --file ./demo.nix --impure --raw
if [[ -h '/path/to/output.json' ]]; then
  rm '/path/to/output.json'
fi

inherit_errexit_enabled=0
shopt -pq inherit_errexit && inherit_errexit_enabled=1
shopt -s inherit_errexit
secret1=$(<'/path/to/secret-json')
export secret1

secret2=$(<'/path/to/secret-quote-1')
export secret2

secret3=$(<'/path/to/secret-quote-2')
export secret3

/nix/store/axpqa3f5l63mc38h11x1gc5cykw8bn5i-jq-1.7.1-bin/bin/jq >'/path/to/output.json' '."example"[1]."relevant"."secretJson" = ($ENV.secret1 | fromjson) | ."example"[1]."relevant"."secretString1" = ($ENV.secret2) | ."example"[1]."relevant"."secretString2" = ($ENV.secret3)' <<'EOF'
{"example":[{"irrelevant":"not interesting"},{"ignored":"ignored attr","relevant":{"secretJson":{"_secret":"/path/to/secret-json","quote":false},"secretString1":{"_secret":"/path/to/secret-quote-1"},"secretString2":{"_secret":"/path/to/secret-quote-2","quote":true}}}]}
EOF
(( ! $inherit_errexit_enabled )) && shopt -u inherit_errexit

I think this is not an ideal solution since end users can not choose between string or JSON secrets.

Even though I do not like the idea that users are able to choose between string and JSON secrets, especially with string as the default, I think it is the only backward compatible way.
I also realize that my current implementation is actually a breaking change due to lack of a notification mechanism to tell users genJqSecretsReplacementSnippet is replaced with genJqStructuredSecretsReplacementSnippet and they should quote their secrets.

@linyinfeng Would you like to create a PR?

Even though I do not like the idea that users are able to choose between string and JSON secrets, especially with string as the default, I think it is the only backward compatible way.

I believe that string should be a reasonable default.

Most of the time, a secret is a string. The old genJqSecretsReplacementSnippet already meets the needs of most users.

Converting some secrets to JSON string literals is hard since some strong secrets can contain special characters like " or \.

Since typical secrets are string, using plain text files makes the secret files format-orthogonal.

@linyinfeng Would you like to create a PR?

I created https://github.com/NixOS/nixpkgs/pull/325217.

Closing in favor of https://github.com/NixOS/nixpkgs/pull/325217


Date's time is always 00:00 unless it previously had a value

When I press the calendar icon to show the datetimepicker and the input was currently an empty value the time is always 00:00...Looking through the code I believe it is because the private method getMoment always returns the date without the time when the argument value is null or undefined.
To see the issue the command used in the method is:
moment().startOf('d')
This moment will always returns the start of the day which is the date with the time as 00:00. This also breaks the currDate granularity functionality because the time will always be 00:00 regardless if you choose hour or minute as the granularity option.

have the same issue as @alyons9 but solve it using this coffee code
  dt_picker_start.datetimepicker
    format : 'DD/MM/YYYY HH:mm'
    defaultDate: moment().utc()


fix: hide Firefox's text size buttons

This is how the playground looks in Firefox:

The little piece of CSS taken from here fixes it to:

Can you have a look into the Prettier error before we merge please?

I just ran prettier on the modified file and pushed my changes. Sorry about that

Thank you!


"Add Service" modal stuck in  "Service Already Present" state

OS: Windows 10
Version of IPFS Desktop: 2.12.3

Describe the bug
By mistake, I removed the Pinning Service Pinata. I was playing around with another pinning service. However, I decided I wanted to redownload Pinata. I got a message in IPFS : "Service Already Present." but I was not able to add Pinata in the list over pinning services. The only pinning service I can see is Local node.
.
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings | IPFS'
Click on 'Add Service'
Enter Pinata API endpoint and password
The message "Service Already Present" is shown and Pinata isn't added to IPFS

Expected behavior
I expected to be able to add Pinata in IPFS again, although I had deleted it by mistake
Screenshots
Please see attachment.
Additional context
N/A.

Thank you @Jan877 – It is a bug in GUI.
You can work around this by closing modal via "Cancel" and then trying to "Add Service" again, using a unique name, before pressing "Save" for the first time.
Notes for person fixing this:
How to Reproduce
I was able to reproduce. There seems to be a bug where it is impossible to submit the form after name change.

Add Pinata
Try to add it again under same name, there will be "Service Already Present: error:

and expected error logged in console:

In the same modal, change nickname to something unique and try to submit again. Nothing happens, the old error is still displayed, there is no new error in console:

Hello lidel,
I followed your instructions for the work around. I used a unique name. Saved the name and then entered the "API endpoint" and "Secret Access Token".
However, the new unique name was still not added to the list over Pinning Services. The only pinning service that is shown is "Local Pinning".

@Jan877 did you try refreshing the page (F5) or Quiting ans starting ipfs-dsktop again?


Check 'client auth' key usage on mtls identity

Make the mTLS identity verification method to check for 'Client authentication' extended key usage, instead of default 'Server authentication' (ref).

Code looks good, but following the mtls-authentication guide gives me an error with certificate specifies an incompatible key usage 🤔

@KevFan, with which version of Authorino did you run the guide? The guide was written (including with the changes in this PR) assuming that it will work after we merge the PR. This is because in the PR we're also changing the code that make the guide work of course.
To try the guide before merging the PR, you should start with make local-setup FF=1, and then go straight to step ❹ of the guide.
Please let me know if this works for you.


.htaccess causing internal server error

Hi all,
I hope you can help me. This has been bugging me for days. I have been trying to install cockpit CMS onto my website using the extraction into web root solution but it doesn't seem to be working. I get a server error when I try to install the CMS going though /cockpit/install and then when I disable the .htaccess file, it lets me install it and it gives me the option to login to cockpit using the new admin / admin credentials but it then redirects me to a 404 not found page.
I read that it's because the .htaccess file is disabled but when it is enabled, I get an internal server error

Please investigate http + php log files to get more details. otherwise it is hard to point to the right direction

I'm having the same issue, when I remove everything but
`# URL rewrites

Options -MultiViews

RewriteEngine On
# RewriteBase /

# Protect some contents
RewriteRule ^.*/?\.git+ - [F,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

`
It seems to be working fine. Can anyone shed some light on this?

solved here: https://discourse.getcockpit.com/t/re-htaccess-file-causes-internal-server-error/1437/3?u=raffaelj

The reason was, that mod_version wasn’t enabled on a shared GoDaddy host.

If you have the same problem, either activate mod_version for your apache or if you can’t enable it, you can delete or comment out all the = 2.4> lines in .htaccess to match your setup.

can be closed now.

I got the same issue and commented all ifVersion tags, since mod_version is not existent on my system.
But after installing cockpit successfully, I get a 404 to http://dev-pi.local/cockpit/auth/login?to=/.
Any ideas?


feat: add possessed qualifications to history page

Add a new section to the "history" page for "possessed qualifications"
Add 3 qualifications to the list of possessed qualifications

[src/pages/posts/history.md]

Add a section for "possessed qualifications"
Add 3 qualifications to the list

commit 5558523a551040fd6f7dc94f30583bd830edcbb2 (HEAD -> add-licenses, origin/add-licenses)
Author: Futa HIRAKOBA<EMAIL_ADDRESS>Date:   Wed Jan 25 11:09:03 2023 +0900

    feat: add possessed qualifications to history page

    - Add a new section to the "history" page for "possessed qualifications"
    - Add 3 qualifications to the list of possessed qualifications

    [src/pages/posts/history.md]
    - Add a section for "possessed qualifications"
    - Add 3 qualifications to the list

gptcommit suggestion
Add qualifications to the history page

- Add a section for qualifications to the `history.md` page
- Include 6 qualifications in the section

[src/pages/posts/history.md]
- Add a section for qualifications
- Add 6 qualifications to the section


typos: 0.28.4 -> 0.29.0

Update to 0.29.0 (diff)
Use tag instead of rev = "..."
Use version check hook, remove testers.testVersion
Remove with lib;
Fix changelog url

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 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.

nixpkgs-review https://github.com/lucasew/nixcfg/actions/runs/12565627145


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

Docs Build status updates of commit cb260c4:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch c64ebf7a-cc52-4084-ae08-0d72577acefd has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


build: bump all components version from v20210521-0713522bd8 to v20210701-3efe91b8cd

/hold

/merge

/unhold


Delete xmon simulator

It has only given advantage for large qubit number, and only on certain machines.  Also it is tied to a gate set which is a bad coupling.

@Strilanc agree?

Agree

Long live multiprocessing.


Revert "Test from installation rather than local source (#229)"

This reverts commit f448dad72742a186f39537290e6ec0facf2b0628.

#229 broke the pytest CI and I've not worked out how to make #229 work properly (see #292 for failed attempt)


[ios]  Packages are not supported when using legacy build locations, but the current project has them enabled.

Command
flutter build ios

Logs
ProcessException: ProcessException: Process exited abnormally:
2020-02-28 17:11:39.825 xcodebuild[94234:480215]  DTDeviceKit: deviceType from 00008030-0001781C21E0802E was NULL
2020-02-28 17:11:39.961 xcodebuild[94234:480215]  DTDeviceKit: deviceType from 00008030-0001781C21E0802E was NULL
xcodebuild: error: Could not resolve package dependencies:
 Packages are not supported when using legacy build locations, but the current project has them enabled.
 Command: /usr/bin/xcodebuild -list

  #0      RunResult.throwException (package:flutter_tools/src/base/process.dart:141:5)
#1      _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:275:19)
<asynchronous suspension>
#2      XcodeProjectInterpreter.getInfo (package:flutter_tools/src/ios/xcodeproj.dart:342:49)
#3      buildXcodeProject (package:flutter_tools/src/ios/mac.dart:281:70)
#4      BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:79:43)
<asynchronous suspension>
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:626:18)
#6      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:75:64)
#7      _rootRunUnary (dart:async/zone.dart:1134:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#12     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#13     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#14     _rootRun (dart:async/zone.dart:1126:13)
#15     _CustomZone.run (dart:async/zone.dart:1023:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)

[✓] Flutter (Channel master, v1.13.6-pre.40, on Mac OS X 10.14.6 18G103, locale
  en-US)
  • Flutter version 1.13.6-pre.40 at /Users/Qofol/Qlib/flutter
  • Framework revision 20105bc7fd (9 weeks ago), 2019-12-29 15:19:41 +0300
  • Engine revision bdc9708d23
  • Dart version 2.8.0 (build 2.8.0-dev.0.0 c547f5d933)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
  • Android SDK at /Users/Qofol/Library/Android/sdk
  • Android NDK location not configured (optional; useful for native profiling
    support)
  • Platform android-29, build-tools 29.0.2
  • Java binary at:
    /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java
  • Java version Java(TM) SE Runtime Environment (build 12.0.2+10)
  ✗ Android license status unknown.
    Try re-installing or updating your Android SDK Manager.
    See https://developer.android.com/studio/#downloads or visit
    https://flutter.dev/setup/#android-setup for detailed instructions.

[!] Xcode - develop for iOS and macOS (Xcode 11.2.1)
  • Xcode at /Volumes/MINI64GB/Applications/Xcode.app/Contents/Developer
  • Xcode 11.2.1, Build version 11B500
  ✗ CocoaPods not installed.
      CocoaPods is used to retrieve the iOS and macOS platform side's plugin
      code that responds to your plugin usage on the Dart side.
      Without CocoaPods, plugins will not work on iOS or macOS.
      For more info, see https://flutter.dev/platform-plugins
    To install:
      sudo gem install cocoapods

[!] Android Studio (not installed)
  • Android Studio not found; download from
    https://developer.android.com/studio/index.html
    (or visit https://flutter.dev/setup/#android-setup for detailed
    instructions).

[✓] Connected device (1 available)
  • Qofol’s iPhone • 00008030-0001781C21E0802E • ios • iOS 13.3.1

! Doctor found issues in 3 categories.

Flutter Application Metadata
**Version**: 1.0.1+17
**Material**: true
**Android X**: false
**Module**: false
**Plugin**: false
**Android package**: null
**iOS bundle identifier**: null

Plugins
apple_sign_in
audioplayers
barcode_scan
blue_thermal_printer
cloud_firestore
connectivity
device_info
firebase_auth
firebase_core
firebase_database
firebase_messaging
firebase_storage
flutter_bluetooth_serial
flutter_facebook_login
flutter_local_notifications
flutter_secure_storage
google_maps_flutter
google_sign_in
image_cropper
image_picker
imei_plugin
local_auth
location
path_provider
permission_handler
printing
shared_preferences
sqflite
url_launcher
url_launcher_macos
url_launcher_web

Hi @QOFOL
your flutter version master  1.13.6 is obsolete,
the closest most recent version is beta v1.14.6
I'd recommend you to run
flutter channel beta
flutter upgrade
and fix the error in your doctor
following the info provided in the logs you provided
 ✗ CocoaPods not installed.
      CocoaPods is used to retrieve the iOS and macOS platform side's plugin
      code that responds to your plugin usage on the Dart side.
      Without CocoaPods, plugins will not work on iOS or macOS.
      For more info, see https://flutter.dev/platform-plugins
    To install:
      sudo gem install cocoapods

if the issue persists
please provide your flutter build ios --verbose
together with your updated flutter doctor -v
and your pubspec.yaml
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.


Feat/extensible appstate

Currently the app doesn't work properly when cargo tauri dev.
Backend compiles and most tests works, but my guess is the frontend cant read the appstate properly anymore due to severe changes to it.
Description of change
I have refactored the appstate to be catogerized in a clearer and more redux like manner. I have added a field for third parties to add extensions. Lastly, a FeatTrait has been introduced which all features of the appstate should implement
Links to any relevant issues
Fixes #100
How the change has been tested
I've used the existing tests to check if it works.
I haven't changed all json files in the fixtures, so not all tests will pass yet.
Definition of Done checklist
Add an x to the boxes that are relevant to your changes.

[x] I have followed the contribution guidelines for 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] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

You should add some people to review ;)

fixed in another PR refactor/revert_commit_identity_wallet_folder_restructure


devcon dp_enum command does not supply enough data to detect device

I need your help. For my device "devcon dp_enum" command prints the following:
oem4.inf
Provider: Intel
Class: Universal Serial Bus controllers
The supplied data does not allow detection the device unambiguously. There can be several different devices that share the same provider and class. What should I do to get the correct oem*.inf name?
By the way, "devcon dp_enum" does not print "Data" and "Version" fields as shown on the example above.
Thanks in advance.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0059a230-b9ed-8dae-c111-9849586d88cc
Version Independent ID: 289c1527-7af4-2c26-cf44-910ba72e589c
Content: Example 45 Add and Remove Driver Packages - Windows drivers
Content Source: windows-driver-docs-pr/devtest/example-45--add-and-remove-driver-packages.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @EliotSeattle
Microsoft Alias: eliotgra

Having the same question.  Can someone help to answer this question?

@bslava and @shivaprasadh - Thanks for the interest in the Windows Docs.  This particular channel is monitored by the men and women who write the driver documentation posted on docs.microsoft.com/drivers. Though we'd like to, we don’t have the resources to help with the unique challenges of hunting down a specific OEM Inf file.
A few tips that may help.
You can look in device manager and locate the Pnp ID. This can be helpful in tracking down more information. For example I can use the Pnp ID and the devcon driverfiles command, like this.
C:\Program Files (x86)\Windows Kits\10\Tools\x64>devcon driverfiles "usb\vid_045E&PID_0812*"
USB\VID_045E&PID_0812&MI_00\8&186D3932&1&0000
    Name: Microsoft« LifeCam Cinema(TM)
    Driver installed from C:\WINDOWS\INF\usbvideo.inf [USBVideo]. 2 file(s) used by driver:
        C:\WINDOWS\system32\DRIVERS\usbvideo.sys

Perhaps more directly, you can use the file explorer or various utilities to search the text of the OEM files in the INF directory for a string that may identify the OEM inf file. Then using the inf file shown in the driverfiles output, I can compare that to the candidate OEM Inf files identified in searching the text of the OEM INF files.
If it's still an issue, you may have success posting your question in the Q&A forums for Windows, where other driver developers can be found.
https://docs.microsoft.com/en-us/answers/products/windows
Again, thanks for reaching out. Best of luck with tracking down the OEM inf file.

@bslava and @shivaprasadh - Thanks for the interest in the Windows Docs.  This particular channel is monitored by the men and women who write the driver documentation posted on docs.microsoft.com/drivers. Though we'd like to, we don’t have the resources to help with the unique challenges of hunting down a specific OEM Inf file.
A few tips that may help.
You can look in device manager and locate the Pnp ID. This can be helpful in tracking down more information. For example I can use the Pnp ID and the devcon driverfiles command, like this.
C:\Program Files (x86)\Windows Kits\10\Tools\x64>devcon driverfiles "usb\vid_045E&PID_0812*"
USB\VID_045E&PID_0812&MI_00\8&186D3932&1&0000
    Name: Microsoft« LifeCam Cinema(TM)
    Driver installed from C:\WINDOWS\INF\usbvideo.inf [USBVideo]. 2 file(s) used by driver:
        C:\WINDOWS\system32\DRIVERS\usbvideo.sys

Perhaps more directly, you can use the file explorer or various utilities to search the text of the OEM files in the INF directory for a string that may identify the OEM inf file. Then using the inf file shown in the driverfiles output, I can compare that to the candidate OEM Inf files identified in searching the text of the OEM INF files.
If it's still an issue, you may have success posting your question in the Q&A forums for Windows, where other driver developers can be found.
https://docs.microsoft.com/en-us/answers/products/windows
Again, thanks for reaching out. Best of luck with tracking down the OEM inf file.


DBZ-6588 Skip tombstone record on HeaderToValue SMT

closes: https://issues.redhat.com/browse/DBZ-6588

@mfvitale Applied, thanks


Deprecate & remove brookjs#component

We should probably go ahead and just remove the old component implementation in 0.12.0, and introduce the React-based version over the course of the 0.11.* line. Once that version is stable enough, we'll deprecate brookjs#component and start the new Docusaurus documentation with info on the new API, including how to migrate from the old one to the new one.

Actually, we're going to move this out to a brookjs-component package, to allow for an easier transition path, then deprecate that package.


Add support for Key/Value backend version 2 (versioning enabled)

Spring Cloud Vault is not usable with Vault's versioned Key/Value backend introduced with 0.10.0. The versioned backend is enabled by default which adds another level of severity.
The versioned Key/Value backend entirely changed its API (nested responses, e.g. {data: { data: { here comes the actual payload }}, changed API paths e.g. secret/data/secret-name instead of secret/secret-name). It is possible to read from …/data/… paths but referencing secrets requires a ${data.…} prefix to unwrap nesting.
Using the Key/Value backend allows a uniform API even if versioning is disabled by setting an HTTP header (X-Vault-Kv-Client: v2) but the client has to be aware it's reading from a key-value backend.
Using a newer format (paths, unwrapping) breaks compatibility with older Vault versions and isn't really a good option.

Vault folks have removed request downgrading (by using the X-Vault-Kv-Client: v2 header, see https://github.com/hashicorp/vault-plugin-secrets-kv/pull/11) in Vault 0.10.1 so we can't come up with a uniform API as the client has no knowledge of the underlying backend for a particular path. We provide now a new backend/configuration type (spring.cloud.vault.kv) resembling generic secret backend configuration properties allowing reading from the versioned key-value backend along with element unwrapping.
However, clients have to be aware they are reading from the versioned key-value backend.

I just faced the same problem that the current spring-cloud-vault can only obtain data via vault's K/V version 1, but it seems the default K/V version is 2 from vault 0.10.0, and there're some config tasks to change the K/V version to 1. Thus, may I know to which version/milestone will the new feature of spring-cloud-vault be released? Thanks a lot.

Spring Cloud Vault support for the versioned backend will come with Spring Cloud Vault 2.0 GA (see https://github.com/spring-cloud/spring-cloud-release/milestones for dates).
A general notice: Vault versions are still 0.x so we should anticipate future (non-backward compatible) changes. The upcoming 0.10.1 release comes with breaking changes in terms of interop between versioned and non-versioned key-value backends.

Request downgrading has been removed. We introduced with the spring.cloud.vault.kv property namespace that default to Key-Value API version 2 usage. spring.cloud.vault.generic uses Key-Value API version 1.

I see that this is now supported in VaultTemplate, what about ReactiveVaultTemplate?

As I see, reactiveVaultTemplate is not supported. I think this issue should be reoppened

spring.cloud.vault.generic.enabled=true
spring.cloud.vault.generic.backend=v1


System Error when running Ganache 2.5.4 on darwin -- anybody has idea about this error??

PLATFORM: darwin
GANACHE VERSION: 2.5.4
EXCEPTION:
Error: ENOENT: no such file or directory, open '/Users/arudravamshikrishna/Library/Application Support/Ganache/workspaces/Quickstart/chaindata/ContractCache'
    at Object.openSync (fs.js:440:3)
    at Object.func (electron/js2c/asar.js:140:31)
    at Object.func [as openSync] (electron/js2c/asar.js:140:31)
    at Object.readFileSync (fs.js:342:35)
    at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
    at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
    at Proxy.getItem (/node_modules/node-localstorage/LocalStorage.js:237:19)
    at JsonStorage_JsonStorage.getFromStorage (/webpack:/src/main/types/json/JsonStorage.js:18:42)
    at JsonStorage_JsonStorage.getAll (/webpack:/src/main/types/json/JsonStorage.js:44:17)
    at ContractCache_ContractCache.getAll (/webpack:/src/integrations/ethereum/main/types/contracts/ContractCache.js:101:25)

Hi @VamshikKrishna - thanks for opening this issue!
We've recently released Ganache 2.7.0 which brings a lot of bug fixes (as well as an upgrade to the underlying Ganache ethereum simulator).
Can you please try downloading that version, and see if it resolves your issue?
https://github.com/trufflesuite/ganache-ui/releases/tag/v2.7.0
Thanks!


Update title of Basic BitModal section of Modal demo (#5673)

This closes #5673.

Thanks for the update, but you didn't change anything. could you plz double-check and push a new commit?


STORM-635. logviewer returns 404 if storm_home/logs is a symlinked dir.

The change to check the parent directory is the root dir was put in on purpose for security reasons.  if someone puts in a file called "../../../etc/passwd" there could be some serious security issues involved.
-1
I am fine with supporting symlinks but we need to have a way to restrict what can be accessed through the logviewer.

@revans2 my bad I missed security fix that went in before. Please check the latest patch . Thanks.

+1.

+1 looks good to me.


Add FragPipe

Re-creating #759
This PR adds a wrapper for the FragPipe tool suite.
A handful of default FragPipe workflows are provided for the user, while more may be added in the future. Most FragPipe parameters are duplicated in the Galaxy tool, many of which are optional to allow the workflow defaults to be used.
Some components have not yet been implemented due to license restrictions (DIA-NN & MSBooster). Other parameters need further work and testing before implementation, and will default to the workflow defaults. The workflow, along with the log file and some other FragPipe outputs are optionally selected as Galaxy outputs.
License keys are hard-coded into the tool, and a required select option and text warnings are in place to ensure a user understands the licenses, as has been discussed with the developers.

You can now see the planemo error reports at this page: https://github.com/galaxyproteomics/tools-galaxyp/actions/runs/9046215197?pr=761 scroll down.
Seems like the mv command has nothing to move. How do you run the tests locally?

Yes - it looks like libz is a dependency that might need to be added: libz.so.1: cannot open shared object file. It was already present on our system so I didn't catch it.
When I try to add it to the recipe with <requirement type="package" version="1.2.13">zlib</requirement>, the FragPipe package doesn't seem to be installed correctly (i.e. can't find fragpipe binary on path), so I haven't figured that out.
I'll add zlib to the bioconda recipe anyways, but I was hope to get it working here to verify that's all we need. I'm trying to run tests with planemo test --engine docker_galaxy --no_cache_galaxy, but I'm having separate issues there too. I am able to run this manually on our university Galaxy instance.

When I try to add it to the recipe with <requirement type="package" version="1.2.13">zlib</requirement>, the FragPipe package doesn't seem to be installed correctly (i.e. can't find fragpipe binary on path), so I haven't figured that out.

In those cases its probably the wrong, incompatible zlib version. Try on your commandline conda create -n foo --dry-run fragpipe=x.x.x zlib=y.y.y you will see that the solver will bail out maybe and then you can play around with the version until it works.
But you are correct, fixing the conda recipe is the correct thing to do.

I'll add zlib to the bioconda recipe anyways, but I was hope to get it working here to verify that's all we need. I'm trying to run tests with planemo test --engine docker_galaxy --no_cache_galaxy, but I'm having separate issues there too. I am able to run this manually on our university Galaxy instance.

Oh I see, this is wrong :)
Just do planemo test --biocontainers this will run your tests using a container (that is created if needed). And it is exactly what is running here on CI.

you can play around with the version until it works

This sort-of how I came to zlib=1.2.13. I built the fragpipe recipe with an unpinned zlib dependency and used the resulting zlib version. Creating a new environment with zlib and fragpipe as separate dependencies also resolved to 1.2.13. I'm wondering if there's a way to find logs of the mulled environment creation?

Oh I see, this is wrong :)

Okay, thanks for the advice! I'm just getting started with planemo test so I have a lot to learn.

@bgruening Is there a way to force builds to use a biocontainer with a more recent build of the fragpipe bioconda package? I fixed the zlib issue in the recipe, since I had trouble with it here, but I think it's still using the older version.

@bgruening Is there a way to force builds to use a biocontainer with a more recent build of the fragpipe bioconda package? I fixed the zlib issue in the recipe, since I had trouble with it here, but I think it's still using the older version.

Apologies - I didn't sufficiently fix the dependency. And it is using the most recent biocontainer.

Are you saying the _3 container here: https://quay.io/repository/biocontainers/fragpipe?tab=tags&tag=latest is not working?

Are you saying the _3 container here: https://quay.io/repository/biocontainers/fragpipe?tab=tags&tag=latest is not working?

It's not, but I made an obvious mistake with the dependencies so I'm working to fix that in the recipe now.

This is ready for review now.
There actually was an issue with the biocontainer - it seems like ldconfig is not appropriately setting the library path in the container. I worked around this by adding /usr/local/lib to LD_LIBRARY_PATH in the recipe.

@bernt-matthias Thanks for the review!

Awesome! Thanks @reid-wagner and @bernt-matthias

Thank you @bgruening and @bernt-matthias!


CDN/DNS Packet visualization

Description
Finish DNS visualization page

Fix a couple bugs with href links
Fix active nav-item class usage
Add DNS visualization page
Add DNS link to all pages
Add common JS file for commonly used functions
Fix a couple bugs with map viz I found
Add unknown IP location to map viz

Checklist:

[x] Code follows the style guidelines
[x] Code commented in relevant places
[x] Changes to necessary documentation made
[x] Has test cases for code.

Tests Performed:

[x] Upload data to Datastore
[x] Retreive data from Datastore
[x] Map Visualization
[x] Network Map Visualization
[x] List other manual test cases performed

Visualizations


[Week 3 / Unit 3 / Step 3 ] Getting erroneous metadata while Adding new OData V4 service from Service Manager

Dear Experts,
I am getting error Getting erroneous metadata  while Adding new OData V4 service from Service Manager
[Week 3 / Unit 3 / Step 3 ] (https://github.com/SAP-samples/fiori-elements-opensap/blob/main/week3/unit3.md#step-3-add-odata-v4-service-from-service-manager).

Service is added successfully.

2. But the metadata is erroneous .

Because of this, I am not able to proceed further .
Best wishes,
Ramjee

Hello Ramjee,
Although you are getting this error it should not stop you from proceeding further. Are you not able to proceed after this step? Can you elaborate a little more on what step you are facing issue and the issue? Screenshots would help.
Regards,
Rohit

Hi Rohit,
It worked now.
I tried couple of times earlier but did not work. After I press "Insert Snippet" , it was navigating to Metadata xml instead of annotation0.xml.
Best wishes,
Ramjee


Update example

Hi, my fellas,
Just updated this example with the newest AWS API's version: boto3.
I also removed the boilerplate and left it simple as straight.

Great!


OT.sinkhorn, error when an input array contain zeros

I'm getting the following error
Warning: numerical errors at iteration 0
when calling
d_sinkhorn = ot.sinkhorn2(v1, v2, cm, reg)
and v1 or v2 contain zeros.
How to handle this case?
Thanks

Hello @jpchev
It seems that the regularization value reg is too low and yields numerical errors. Try higher values.
While the zero values from v1 and v2 should not be a problem, you can try to remove them for efficiency purpose. See this comment on this topic :
https://github.com/rflamary/POT/issues/30#issuecomment-328535299


[voltLib] Support writing back ast as VOLT data

Adds __str__() method to ast classes that writes back VOLT data. Tries to replicate VOLT syntax idiosyncrasies as much as possible for better round-trip conversion.

LGTM.
Just wondering why you added spaces making double space.

Just wondering why you added spaces making double space.

To match VOLT spacing. I have a punch of VTP files and if I round them through this they show no changes (except for empty IN_CONTEXT but I left this out because it might break backward compatibility).


"ValueError: too many values to unpack" with TextChoices

django==3.0.5
pydantic==1.8.2
djantic=0.3.0

Attempting to create a djantic schema for a model that has a django.db.models.TextChoices subclass assigned to a field's choices will result in a ValueError
For example:
from django.db import models
from djantic import ModelSchema

class FoodChoices(models.TextChoices):
    BANANA = 'ba', 'A delicious yellow Banana'
    APPLE = 'ap', 'A delicious red Apple'

class A(models.Model):
    name = models.CharField(max_length=128)
    preferred_food = models.CharField(max_length=2, choices=FoodChoices.choices)

class ASchema(ModelSchema):
    class Config:
        model = A

the above results in:
...
/usr/local/lib/python3.8/site-packages/djantic/main.py in __new__(mcs, name, bases, namespace)
     95
     96                     else:
---> 97                         python_type, pydantic_field = ModelSchemaField(field)
     98
     99                     field_values[field_name] = (python_type, pydantic_field)

/usr/local/lib/python3.8/site-packages/djantic/fields.py in ModelSchemaField(field)
     85         if field.choices:
     86             enum_choices = {v: k for k, v in field.choices}
---> 87             python_type = Enum(  # type: ignore
     88                 f"{field.name.title().replace('_', '')}Enum",
     89                 enum_choices,

/usr/local/lib/python3.8/enum.py in __call__(cls, value, names, module, qualname, type, start)
    339             return cls.__new__(cls, value)
    340         # otherwise, functional API: we're creating a new Enum type
--> 341         return cls._create_(
    342                 value,
    343                 names,

/usr/local/lib/python3.8/enum.py in _create_(cls, class_name, names, module, qualname, type, start)
    461                 member_name, member_value = item, names[item]
    462             else:
--> 463                 member_name, member_value = item
    464             classdict[member_name] = member_value
    465         enum_class = metacls.__new__(metacls, class_name, bases, classdict)

ValueError: too many values to unpack (expected 2)

@ievans3024 I was unable to reproduce this issue using the sample you provided. I merged additional test coverage based on these values in https://github.com/jordaneremieff/djantic/pull/29, but the test suite is passing.
Can you re-confirm this issue using the main branch?

I try this, and it help me:
convert keys and values to str in  ModelSchemaField function
https://github.com/jordaneremieff/djantic/blob/63836c7b8a7e1b43ba5b58c9978105fb66bf4f18/djantic/fields.py#L88
enum_choices = {str(v): str(k) for k, v in field.choices}

Hi @kaletvintsev, could you confirm if the issue is still occurring in the latest 0.3.1 release?

Closing this, please reopen if the issues are not resolved in the latest release.

Hi, @jordaneremieff, I think that it can still occur, since it occurs when using gettext_lazy from django.utils.translation

@kaletvintsev can you post a minimal example of how I can recreate this issue?

Given:
Python 3.9.6

Django==3.2.6
djantic==0.3.4
pydantic==1.8.2

Running this using python manage.py shell in an empty django project:
from django.db import models
from django.utils.translation import ugettext_lazy as _
from djantic import ModelSchema

class FoodChoices(models.TextChoices):
    BANANA = 'ba', _('A delicious yellow Banana')
    APPLE = 'ap', _('A delicious red Apple')

class A(models.Model):
    class Meta:
        app_label = 'djanticbugtest'
    name = models.CharField(max_length=128)
    preferred_food = models.CharField(max_length=2, choices=FoodChoices.choices)

class ASchema(ModelSchema):
    class Config:
        model = A

raised the error I reported:
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/ian/PycharmProjects/djanticbugtest/venv/lib/python3.9/site-packages/djantic/main.py", line 100, in __new__
    python_type, pydantic_field = ModelSchemaField(field)
  File "/home/ian/PycharmProjects/djanticbugtest/venv/lib/python3.9/site-packages/djantic/fields.py", line 93, in ModelSchemaField
    python_type = Enum(  # type: ignore
  File "/usr/lib/python3.9/enum.py", line 386, in __call__
    return cls._create_(
  File "/usr/lib/python3.9/enum.py", line 508, in _create_
    member_name, member_value = item
ValueError: too many values to unpack (expected 2)

This is likely the missing component to my original report. I had experienced the issue in a project using translation in the choices and did not think to test non-translation scenarios.
Interestingly, django.utils.translation.gettext and django.utils.translation.ugettext work fine.

Released a fix in 0.3.5. Let me know if this does not resolve the issue @ievans3024.


⚠ SpeakUpConference.com has degraded performance

In ed31c67, SpeakUpConference.com (https://www.speakupconference.com) experienced degraded performance:

HTTP code: 200
Response time: 9783 ms

Resolved: SpeakUpConference.com performance has improved in b6d09bd after 33 minutes.


Android Build not working - CppHxTelemetry.cpp:219:31: error: incomplete type 'haxe::io::Bytes_obj'

Error: ./src/hxtelemetry/CppHxTelemetry.cpp: In static member function 'static Void hxtelemetry::CppHxTelemetry_obj::dump_telemetry_frame(int, haxe::io::Output, Dynamic)':
./src/hxtelemetry/CppHxTelemetry.cpp:219:31: error: incomplete type 'haxe::io::Bytes_obj' used in nested name specifier
 ::haxe::io::Bytes bytes = ::haxe::io::Bytes_obj::alloc((int)size*4);

Haxe 3.2.0
OpenFL 3.4.0
hxtelemetry 0.3.2
Android NDK r10e
Console Output: telemetry-compile-error.txt
The Android Build works fine without HxTelemetry, i.e. when not specifying -Dtelemetry with openfl

Hmm, the missing definition is related to #34. I'm not sure I've pushed this fix to haxelib -- are you testing from haxelib or git?
If from haxelib, perhaps try using git:
haxelib git hxtelemetry https://github.com/jcward/hxtelemetry

If you're already using git, I'll have some more digging to do. Thanks for the feedback!

Compiles with the version from trunk. Thanks!

Excellent, sorry for the hiccup. I've just submitted the latest to haxelib as 0.3.3.


Workaround parallel multistage synchronization issue

Description
Quick fix for lack of synchronization between parallel multistages in GridTools C++. This converts all parallel computations into forward for code generation in GT backends.
This is overly aggressive because it changes every parallel multistage to forward, so perhaps in the long term this should be changed to detect data dependencies between pairs of parallel computations and flip one of them.

This is no longer needed if we generate distinct computations for each multistage.

This is not quite the correct solution. The more concrete workaround is to actually generate separate computations.


Document tips for getting best performance from Tasks plugin

In working on #886 - and from discussions in #697 - I've learned some useful things that are worth sharing for users, for when Tasks' rendering of tasks is slowing down editing.
I would like to write them up before the next release, as a quick list.

Deferring this until after 1.9.0 release.

Bump - 1.9 was a couple of months ago now

Thanks but bumps don't really help add to my available hours in the day!
However, @bradmurray, if I were to give you a long, raw list of bullet points, would you be interested in writing it up as a first attempt at this documentation? It would be a tremendous help.

sure

Great - thank you. I'm just looking through the file now.

Hi @bradmurray, many thanks for agreeing to have a look at this.
The "data"
OK here is the document, heavily improved:
891 - Issue - document performance tips.md
The hardest thing to explain was the Live Preview issue, which I've now got a video repro for, which is in #1177.
Don't feel you need to include all of the content from that file. It was very developer-focused, and the more important thing is a user-focused version of it.
How the docs work
The CONTRIBUTING page has a section on maintaining the documentation, and it links to the docs/README.md which shows how to run the docs on your local machine.
Where to put the new file
I suggest putting it as a new page inside Advanced for now... I'll find a better location for it by the time it's published. (I'm thinking of a new 'Getting Help' section...)
Anything else...
Please don't hesitate to ask if anything doesn't make sense. And we could always have an audio or video call online if it would get you up to speed faster, or help in any way.
Thanks again!

Hi @bradmurray - no pressure at all, but how are you feeling about this?
No pressure either way, if you would either like to have a look at it, or not have a look at it. Either is fine.

We are not all guys.

Sorry @claremacrae :facepalm: :sweat_smile:
Comment updated. :p

Thank you. So the tips are in the document linked in comment https://github.com/obsidian-tasks-group/obsidian-tasks/issues/891#issuecomment-1257024257
the good news is that issue mentioned in #1177 has since been fixed in Obsidian.

After reading the performance tips document you might want to include a note of something to absolutely not do. Create multiple documents that just query tasks all over the place, include them all in a single Canvas document and pin the Canvas 😁

After reading the performance tips document you might want to include a note of something to absolutely not do. Create multiple documents that just query tasks all over the place, include them all in a single Canvas document and pin the Canvas 😁

😢 - sorry about that! Thank you very much indeed.

Discovered yesterday: using dataview to generate task queries means that brand new task queries are created on every dataview refresh interval, regardless of whether any data changed.
For this reason, I closed:

https://github.com/obsidian-tasks-group/obsidian-tasks/pull/2724

I've now set my dataview refresh interval to 5 minutes, because I don't really do other dataview searches on rapidly changing data.
A good alternative is js-engine - although I haven't found out how to put markdown blocks inside tables in this plugin yet.
See:

https://github.com/mProjectsCode/obsidian-js-engine-plugin/issues/17

Hi everyone, I don't know exactly where to post this, but I am experiencing slow perf with tasks plugin. i understood that I have to make a querry which is not returning a great number of tasks.
Here is the querry I use, and I would like to modify it to return only the "overdue" and "scheduled Today" tasks. Can you help ?
not done
path does not include courses
path does not include recycle
tags does not include Nathalie
tags does not include checklist
sort by priority
sort by due
sort by scheduled
sort by starts
group by function task.happens.moment? (task.due.moment?.isBefore(moment(), 'day') ? task.due.format("[%%0%%‼ Overdue]") : (task.due.moment?.isBetween(moment(), moment(), 'day', '[]') ? task.due.format("[%%1%%❗ Due Today]") : (task.happens.moment?.isBefore(moment().add(1, 'day'), 'day') ? task.happens.format("[%%2%%📆 Scheduled Today]") : (task.happens.moment?.isBefore(moment().add(7, 'days'), 'day') ? task.happens.format("[%%3%%⬆ Upcoming]") : task.happens.format("[%%4%%💤Beyond Seven Days]"))))) : "No Date"
group by function reverse task.scheduled.format("%%%%")

hide task count

Hi @Winours,

I don't know exactly where to post this

In Discussions > Q&A please.

(as a new topic)


Are there examples for EFG and Mossbauer spectroscopy?

I noticed that EFG and Mossbauer spectroscopy is included in the list of features on the website of pyscf [https://pyscf.org/features.html?highlight=mossbauer]. But I have no idea on how to carry out those calculations. Is there any available examples?

Many of the property features are separated to a stand alone pyscf/property external package, and EFG code can be found at https://github.com/pyscf/properties/tree/master/pyscf/prop/efg. I couldn't find any example in the example directory but the main function in each file also includes a working example. For Mossbauer spectra, I could not find it either.


Possible README mistake

Hi,
The command:
git clone https://github.com/everestial/VCF-SimplifyDev
does not work. I guess the right command is:
git clone https://github.com/everestial/VCF-Simplify

Thanks @jpuntomarcos . I just fixed the issue :)


I find a bug about r.Parse，It often makes mistakes when it receives json data！

https://goframe.org/pages/viewpage.action?pageId=1114325
package main

import (
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
	"github.com/gogf/gf/util/gvalid"
)

type RegisterReq struct {
	Name  string `p:"username"  v:"required|length:6,30#请输入账号|账号长度为:min到:max位"`
	Pass  string `p:"password1" v:"required|length:6,30#请输入密码|密码长度不够"`
	Pass2 string `p:"password2" v:"required|length:6,30|same:password1#请确认密码|密码长度不够|两次密码不一致"`
}

type RegisterRes struct {
	Code  int         `json:"code"`
	Error string      `json:"error"`
	Data  interface{} `json:"data"`
}

func main() {
	s := g.Server()
	s.BindHandler("/register", func(r *ghttp.Request) {
		var req *RegisterReq
		if err := r.Parse(&req); err != nil {
			// Validation error.
			if v, ok := err.(gvalid.Error); ok {
				r.Response.WriteJsonExit(RegisterRes{
					Code:  1,
					Error: v.FirstString(),
				})
			}
			// Other error.
			r.Response.WriteJsonExit(RegisterRes{
				Code:  1,
				Error: err.Error(),
			})
		}
		// ...
		r.Response.WriteJsonExit(RegisterRes{
			Data: req,
		})
	})
	s.SetPort(8199)
	s.Run()
}

now let us test it, input the command in shell five times：
curl -d '{"username":"johngcn","password1":"123456","password2":"1323456"}' "http://<IP_ADDRESS>:8199/register"

then I get the messages:
Internal Error: runtime error: slice bounds out of range [:65] with capacity 2%
Internal Error: runtime error: slice bounds out of range [:65] with capacity 0%
Internal Error: runtime error: slice bounds out of range [:65] with capacity 0%
{"code":0,"error":"","data":{"Name":"","Pass":"123456","Pass2":"1323456"}}%
{"code":0,"error":"","data":{"Name":"","Pass":"123456","Pass2":"1323456"}}%

please check it!!!
I also tested 3 other methods of get, put, and ajax. I found the results are correct.
curl "http://<IP_ADDRESS>:8199/register?name=john&password1=123&password2=456"
curl -d "name=john&password1=123&password2=456" -X POST "http://<IP_ADDRESS>:8199/register"
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"username":"johngcn","password1":"123","password2":"456"}' "http://<IP_ADDRESS>:8199/register"

Which version? can't be reproduced in v1.16.6

GOVERSION="go1.17"
GoFrame CLI Tool v1.17.0, https://goframe.org
GoFrame Version: cannot find go.mod
CLI Installed At: /home/windf/go/bin/gf
CLI Built Detail:
Go Version:  go1.16.3
GF Version:  v1.16.4
Git Commit:  971ed46f0b9d4dfebd1907cd3ed851cf9e1a5503
Build Time:  2021-08-10 10:22:59

Can you reproduce it 100 percent? I still can't reproduce it.
Or whether stack information is generated?

2021-09-10 11:28:08.054 500 "POST http <IP_ADDRESS>:8199 /register HTTP/1.1" 0.000, <IP_ADDRESS>, "", "curl/7.78.0"
Stack:

Internal Error: runtime error: slice bounds out of range [:65] with capacity 0
1).  main.main.func1
/home/windf/go/src/awesomeProject1/test.go:25
runtime error: slice bounds out of range [:65] with capacity 0

2021-09-10 11:28:09.970 500 "POST http <IP_ADDRESS>:8199 /register HTTP/1.1" 0.000, <IP_ADDRESS>, "", "curl/7.78.0"
Stack:

Internal Error: runtime error: slice bounds out of range [:65] with capacity 0
1).  main.main.func1
/home/windf/go/src/awesomeProject1/test.go:25
runtime error: slice bounds out of range [:65] with capacity 0

@windf17 This issue is caused by usage of gconv.Unsafe* functions, which converts the string/bytes each other reversely but looses its capacity.


Associate newly added records to record arrays

RecordArrays created for either queryURL or reference arrays
register themselves with internalModels so that they'll automatically
update when those models are unloaded.
Now, register with models that are added to these arrays so that they
also share this functionality.

looks good to me.


Migrate to MUIv5

Base Branch: issue-447/MUI5_migration
Example Component(s): LoadingIcon & LoadingSpinner
Migration Guides:

Blog Post: https://mui.com/blog/mui-core-v5/#v4-migration
General Upgrade Guide: https://mui.com/material-ui/migration/migration-v4/
Styles Guide: https://mui.com/material-ui/migration/v5-style-changes/
Components Guide: https://mui.com/material-ui/migration/v5-component-changes/
Date/Time Pickers Guide: https://mui.com/x/react-date-pickers/getting-started/

MUIv5 Migration

[x] #701
[x] Upgrade to v10 of SSC once its upgraded to MUIv5
[x] Loading Icon (Can we use one from SSC?)
[x] LoadingSpinner (Can we use one from SSC?)
[x] #704
[x] #705
[x] #723
[x] #706
[x] #716
[x] #719
[x] #721
[x] #745
[x] #749
[x] #748
[x] #751
[x] #717
[x] #725
[x] #729
[x] #730
[x] #732
[x] #733
[x] #724
[x] #735
[x] #737
[x] #738
[x] #739
[x] #713
[x] #754
[x] #756
[x] #708
[x] #710
[x] #742
[x] #761
[x] #764
[x] #766
[x] #768
[x] #769
[x] #770
[x] #773
[x] #772
[x] #776
[x] #777
[x] #779
[x] #784
[ ] Look into spacing issues on certain components (Ex: SQFormHelperText spacing on SQFormDialog Validation story)
[ ] #792
[ ] #790
[x] #788
[ ] Update README with breaking changes / upgrade guide

I'm guessing this should happen before the TS migration is merged since it seems like there are some improved types. And should scplus be upgraded to v5 before this as well since we have it as a dependency?

I'm guessing this should happen before the TS migration is merged since it seems like there are some improved types. And should scplus be upgraded to v5 before this as well since we have it as a dependency?

I need to perform discovery on the effects of migrating to v5.
Doing this prior to the TS Migration for better types would be the ideal path!

We should be able to follow the same work and approach we're performing on SSC

SOmeone added this  Look into spacing issues on certain components (Ex: SQFormHelperText spacing on SQFormDialog Validation story). Whoever did that, could you expand on it and let us know what exactly you're seeing?

SOmeone added this  Look into spacing issues on certain components (Ex: SQFormHelperText spacing on SQFormDialog Validation story). Whoever did that, could you expand on it and let us know what exactly you're seeing?

@20BBrown14 I added this.  Here is a loom outlining what I am seeing. https://www.loom.com/share/01cb73296a2a4a92993191514f1dc2a2


Fix mentions not show names, adjust README.md

Fix mentions sometimes don't show user names but long ID, simply add ! before user ID
Current functions should work properly but need more testing to see if the issue is actually fixed.
Minor README.md adjustment.
References:
https://stackoverflow.com/a/69759913
https://stackoverflow.com/questions/64214155/discord-py-mention-through-id-doesnt-show-name

I 've just found this :)
* User mentions with an exclamation mark are deprecated and should be handled like any other user mention.
https://discord.com/developers/docs/reference#message-formatting

So please revert the change !  but keep Readme update.

Closed due to deprecated method.


Migrated to Androidx

WORK IN PROGRESS.
See issue https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller/issues/145

As I have no time for this. I will close the pull request for now.


responses module has a name conflict with my django app

I have an existing code base with a django app called responses. I believe this is making it impossible for the responses.py file to be loaded in by models.py . Is there a workaround for when a django project has a naming conflict with one of these modules?
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-62748603b6e5> in <module>()
----> 1 import moto

/usr/local/lib/python3.6/site-packages/moto/__init__.py in <module>()
      6 __version__ = '1.3.3'
      7
----> 8 from .acm import mock_acm  # flake8: noqa
      9 from .apigateway import mock_apigateway, mock_apigateway_deprecated  # flake8: noqa
     10 from .autoscaling import mock_autoscaling, mock_autoscaling_deprecated  # flake8: noqa

/usr/local/lib/python3.6/site-packages/moto/acm/__init__.py in <module>()
      1 from __future__ import unicode_literals
----> 2 from .models import acm_backends
      3 from ..core.models import base_decorator
      4
      5 acm_backend = acm_backends['us-east-1']

/usr/local/lib/python3.6/site-packages/moto/acm/models.py in <module>()
      4 import json
      5 import datetime
----> 6 from moto.core import BaseBackend, BaseModel
      7 from moto.ec2 import ec2_backends
      8

/usr/local/lib/python3.6/site-packages/moto/core/__init__.py in <module>()
      1 from __future__ import unicode_literals
----> 2 from .models import BaseModel, BaseBackend, moto_api_backend  # flake8: noqa
      3
      4 moto_api_backends = {"global": moto_api_backend}

/usr/local/lib/python3.6/site-packages/moto/core/models.py in <module>()
    121
    122
--> 123 RESPONSES_METHODS = [responses.GET, responses.DELETE, responses.HEAD,
    124                      responses.OPTIONS, responses.PATCH, responses.POST, responses.PUT]
    125

AttributeError: module 'responses' has no attribute 'GET'

This is a third-party app you are installing or an app that you created locally?

It’s an app we created locally.

This should get solved with https://github.com/spulec/moto/pull/1847 so going to close this in favor of that.


Update RELEASE

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approve

/override golang-1-19-tooling-presubmit

/override golang-1-19-tooling-presubmit


Broken link in docs

Description
Link to root config broken here: https://puckeditor.com/docs/api-reference/data at "root config"
What happened
The browser goes to https://puckeditor.com/docs/api-reference/config#root and 404s
What I expected to happen
The browser to go to https://puckeditor.com/docs/api-reference/configuration/config#root

Closed by #698


db test fails on Bitbucket CI with cli release v1.200.3

Describe the bug
PR https://github.com/supabase/cli/pull/2683 added security-opt flag to the run of pg_prove container. security-opt is not allowed on Bitbucket Cloud CI (see https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Full-list-of-restricted-commands).
One idea to fix this issue: Special treatment for Bitbucket CI like here https://github.com/supabase/cli/blob/570158335c9dfdcaef5f455f5dc428ccd8fc779f/internal/utils/docker.go#L287
To Reproduce
Steps to reproduce the behavior:

Run pipeline with supabase db tests on Bitbucket Cloud

Expected behavior
Tests are executed.
Error Log
3.36: Pulling from supabase/pg_prove
...
failed to create docker container: Error response from daemon: authorization denied by plugin pipelines: --security-opt is not allowed

Additional context

Version of supabase-cli v1.200.3

Thank's for reporting, a fix in on it's way ! 👍

Thanks for the super fast fix. The preview release v1.201.1 is working as expected. 😃


Add make_ym_interval Spark function

make_ym_interval([years[, months]]) - Make year-month interval from years, months.
Fixes an overflow issue of std::numeric_limits<int32_t>::min() in IntervalYearMonthType::valueToString
Doc: https://spark.apache.org/docs/latest/api/sql/index.html#make_ym_interval
Spark's implementation: https://github.com/apache/spark/blob/bf8396eaef9f95de3dab712e8895e4bc63adef7c/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala#L448-L500

@mbasmanova Could you help to review? Thanks!

Fixes an overflow issue of std::numeric_limits<int32_t>::min() in IntervalYearMonthType::valueToString

Is this fix included in the PR? I didn't see it. If not, please, update the PR description.


Factsheets don't display the title of the scenario

When a user loads a scenario
And he navigates to results => visuals => Energy mix infographic => view the factsheet
Then the title of the loaded scenario is visible

Regression introduced by https://github.com/quintel/etmodel/pull/3057

seems to be in working order.
https://pro.energytransitionmodel.com/scenarios/425410/factsheet


Kernel dies and can't report errors because of failure to read stderr file

Description of your problem
Hi, I am a very inexperienced user, I launched spyder to learn write one of my first, very simple programs, but i repeatedly, once each several seconds, get message:
WARNING:traitlets:kernel died: 3.0
Traceback (most recent call last):
File "C:\Users\Wojtek\Anaconda2\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 357, in kernel_restarted_message
stderr = codecs.open(self.stderr_file, 'r', encoding='utf-8').read()
File "C:\Users\Wojtek\Anaconda2\lib\codecs.py", line 686, in read
return self.reader.read(size)
File "C:\Users\Wojtek\Anaconda2\lib\codecs.py", line 492, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 2136: invalid start byte
What steps will reproduce the problem?

It happens just after opening spyder
It keeps turning to internal console to show this message, so i'm in fact unable to use spyder

What is the expected output? What do you see instead?
Please provide any additional information below
Versions and main components

Spyder Version: 3.1.3
Python Version: 2.7
Qt Version: 5.6.2
PyQt Version: 5.6.0
Operating system: windows 7

Dependencies
Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:
jedi =0.9.0      :  0.9.0 (OK)
matplotlib >=1.0 :  2.0.0 (OK)
nbconvert >=4.0  :  4.2.0 (OK)
numpy >=1.7      :  1.11.3 (OK)
pandas >=0.13.1  :  0.19.2 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pyflakes >=0.5.0 :  1.5.0 (OK)
pygments >=2.0   :  2.1.3 (OK)
pylint >=0.25    :  1.6.4 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
rope >=0.9.4     :  0.9.4 (OK)
sphinx >=0.6.6   :  1.5.1 (OK)
sympy >=0.7.3    :  1.0 (OK)

It seems the kernel is failing with an error message that contains characters that are not Unicode symbols.
Unicode is the standard for international characters, but I don't know how's that handled on non-English versions of Windows.
I'm very sorry, but I really don't know how to help you for now.

Hi, thx very much for your response. My teacher managed to figure out how to overcome problem with encoding and make spyder show the actual error.
It was enough to subsitute "utf-8" with "cp437" in this line "stderr = codecs.open(self.stderr_file, 'r', encoding='utf-8').read()".
I'm using windows in polish.
Cheers!

I was also thinking that was the problem. Thanks for letting us know about it :-)

@dalthviz, this is the bug I talked you about.


error occurred while generating binding for opencv

hi,
I got the following error when trying to generate a binding for opencv:
lua: /home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:727: attempt to index a nil value (field 'ctype')
stack traceback:
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:727: in local 'func'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:635: in local 'func'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:489: in field 'children'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:607: in local 'func'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:489: in field 'children'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:470: in field 'header'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:406: in field 'parseAll'
	/home/sean/.luarocks/share/lua/5.3/dub/MemoryStorage.lua:61: in function 'dub.MemoryStorage.parse'
	/home/sean/.luarocks/share/lua/5.3/dub/Inspector.lua:68: in field 'parseXml'
	/home/sean/.luarocks/share/lua/5.3/dub/Inspector.lua:121: in field 'parse'
	/home/sean/.luarocks/share/lua/5.3/dub/Inspector.lua:32: in function 'dub.Inspector.new'
	(...tail calls...)
	opencv.lua:7: in main chunk
	[C]: in ?

Here is what I did.
I was using Arch linux and opencv 2.4.10-3.
First I copied the include file to the working directory:
[sean@ArchHp dubgenerators]$ cp /usr/include/opencv2/ include/ -r

then run the following script
opencv.lua:
package.path='/home/sean/.luarocks/share/lua/5.3/?.lua;/home/sean/.luarocks/share/lua/5.3/?/init.lua;/usr/share/lua/5.3/?.lua;/usr/share/lua/5.3/?/init.lua;/usr/lib/lua/5.3/?.lua;/usr/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua'
package.cpath='/home/sean/.luarocks/lib/lua/5.3/?.so;/usr/lib/lua/5.3/?.so;/usr/lib/lua/5.3/loadall.so;./?.so'

local lub = require 'lub'
local dub = require 'dub'

local inspector = dub.Inspector {
  INPUT    = {
    lub.path '|include/opencv2',
    lub.path '|include/opencv2/core',
  },
}

local binder = dub.LuaBinder()

binder:bind(inspector, {
  -- Mandatory library name. This is used as prefix for class types.
  lib_name = 'cv',

  output_directory = lub.path '|src/bind',

  -- Remove this part in included headers
  header_base = lub.path '|include',

  -- Open the library with require 'xml.core' (not 'xml') because
  -- we want to add some more Lua methods inside 'xml.lua'.
  luaopen    = 'cv_core',
})

./dub-tmp/xml had been generated with some xml files under it.
Then I got the error.
Is there anything wrong I did in this process?

OpenCV is a very complex C++ library with lots of legacy functions. Binding it all at once like this seems difficult and possibly error prone (memory management, etc).
For such a big library, what I would do is define what I need (classes, functions) and try to bind just these elements.
Dub should output a warning if the ctype is not found instead of crashing. I'll fix this in a new version...
In any case, there is this project which provides some bindings http://sourceforge.net/projects/luacv/.

Released 2.2.3 which should at least display an error with the file/line concerned by the failing ctype resolution.

OK.
Thank you for the suggestion.
Gaspard Bucher (bumagy<EMAIL_ADDRESS>下午4:58写道：

OpenCV is a very complex C++ library with lots of legacy functions.
Binding it all at once like this seems difficult and possibly error prone
(memory management, etc).
For such a big library, what I would do is define what I need (classes,
functions) and try to bind just these elements.
Dub should output a warning if the ctype is not found instead of crashing.
I'll fix this in a new version...
In any case, there is this project which provides some bindings
http://sourceforge.net/projects/luacv/.
—
Reply to this email directly or view it on GitHub
https://github.com/lubyk/dub/issues/9#issuecomment-115586000.


default_site_name isn't used anywhere

Should be used within default.rb instead of hardcoded names.

Thanks!


Container Reports: Add support for ContainerQuota and ContainerLimit

Add Reports support for ContainerQuota and ContainerLimit.
cc: @dkorn @moolitayer @simon3z

@dkorn @moolitayer please review.

@miq-bot add_label providers/containers, enhancement, reporting

@nimrodshn can you please change the title and provide a report that encludes the new entities?

@moolitayer can you please provide more description as to what type of report you would like me to make? what information are you expecting the report to show?

@nimrodshn any report that includes the new entities would be fine, even a list of all container quotas/limits by name. I want to make sure we have everything in place to do that

@moolitayer I created a report showing the project_ids and quota names defined on them. Its a silly example because its not informative at all but it shows you can report on quotas.


write/read vetiver model pin changes class 'bool' to 'Nonetype'

Describe the bug
Protoype class changes from 'bool' to 'Nonetype' when writing a vetiver model as pin and then retrieving it.
To Reproduce
Steps to reproduce the behavior:
This code (derived from do4ds.org lab2) reproduces the problem.
import pins
import vetiver
import logging
from palmerpenguins import penguins
from pandas import get_dummies
from sklearn.linear_model import LinearRegression

# logging.basicConfig(level=logging.DEBUG)

df = penguins.load_penguins().dropna()
X = get_dummies(df[['bill_length_mm', 'species', 'sex']], drop_first = True)
y = df['body_mass_g']
model = LinearRegression().fit(X, y)

v = vetiver.VetiverModel(model, model_name='penguin_model', prototype_data=X)

# running API here works
# app = vetiver.VetiverAPI(v, check_prototype = True)
# app.run(port = 8080)

model_board = pins.board_folder("data/model", allow_pickle_read = True)
vetiver.vetiver_pin_write(model_board, v)
v2 = vetiver.VetiverModel.from_pin(model_board, 'penguin_model')

# This does not work because the species_ class has been change from bool to NoneType
# app = vetiver.VetiverAPI(v2, check_prototype = True)
# app.run(port = 8080)

print(v.prototype.__annotations__)
print(v2.prototype.__annotations__)

Expected behavior
the prototypes for v and v2 should be identical, but are not. As a result the API /predict endpoint doesn't work for v2.
Screenshots
NA
Desktop (please complete the following information):

OS: Mac Ventura 13.0.1  also reproduced on Linux Ubuntu 19
Browser NA
Version NA

Smartphone (please complete the following information):
NA
Additional context
NA

Thank you for the report and example of this bug! I'm able to reproduce this locally, it looks like when the prototype is serialized, this line will choose None over False, which will make the prototype think that column is NoneType 😬


Channel support for Discord

Are there any plans to add support for Discord?  It is now a very popular messaging system and I think the botframework ecosystem would benefit from its support.

@SagefulAI - If of interest, I have been working on a custom Discord adapter that will allow users to communicate with a BotFramework-/BotBuilder-based bot. I had started it some time ago having put it aside as life got in the way. By chance, I only picked it back up, again, this week.
It's still a work in progress. I haven't published a version of this, yet, and the code is still private. But I do have it working. If this sounds interesting, send me an email in my profile and we can continue to chat from there.

Thank you for the offer @stevkan.  We don’t have an immediate need for it just thinking about the future.


Sync upstream develop to GSoc2021

Blaze-down is:

Running only cpp_double_fp_backend (no quad backend in  CI yet).
Most tests pass for double-float, double-double, double-long double and (if available) double-__float128.
Algebra, limits and all normal stuff all pass.
There are five (5) files failing on specfun.
Of these specfun failures, some fail simple tolerances. Other failures are due to limited exponent range. These don't bother me.
Some very few selected specfun failures are due to confusion between zero and NaN or similar. These are pretty much the last remaining true problems in double-whatever.

I need to merge this even with certain failures of specfun.

See also #131

Update branch protection (but do exclude the failing tests, which is not yet exactly fair).


fix: create new capsule project when not found

If the project was not created by the kuai init command. the kuai-cli will report an error when running the contract command, this pr will detect & initialize the capsule before running the contract command.
reslove: https://github.com/ckb-js/kuai/issues/486

Tests should be added

Any update of the tests to be added

added e2e-test

CI failed


SUPPORT: Parameter dynamic injection

Overview
operator shoud inject parameters when pod start time. It is about raft sync and broad cast (advertise addr and listen addr)
tasks

[ ] Optimize config generate method
[ ] Matrixone Cube configuration Intergration, link  matrixcube PR #547
[ ] Matrixone Operator configuration dynamic injection Scripts
[ ] Operator Intergration

Through the Entrypoint script of Docker


links open in new tab

fixes #317

no change in whole code, you have to change only in the issue branch, resolve conflicts

no change in whole code, you have to change only in the issue branch, resolve conflicts

the links were in 5 .html files so I changed in all the files and then formatted the files for better reading and easy debugging.