Fix issues with prompt length & wrapping

See https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly and https://superuser.com/questions/223132/how-do-i-fix-my-colour-bash-prompt-wrapping for reference.

Left a Disqus comment on https://joshtronic.com/2018/01/28/minimalist-git-prompt/ to the same effect. Thanks for sharing!

Whoops! I never noticed those... haven't tested the script with nested bracket enclosures just yet. I guess the only thing my change might help with is any extra characters counted as a result of git_prompt or vim_prompt beyond the color variables. Have you tested this?

Just gave it a shot, got a bit wonky with the nested brackets :P All good to, just patched it up :)


Clarity Icons do not show up when a production build is made.

Select one ...  (check one with "x")
[ x] bug
[ ] feature request
[ ] enhancement

Expected behavior
When a development build is made, with ng build -dev, all icons show up ok. This should be
also the case for the production build.
Actual behavior
When ng -prod is used, the clarity icons fail to load. In the developer tools console the following error shows up:
scripts.24c7f1769bde070aab98.bundle.js:2 Uncaught TypeError: Cannot read property 'require' of undefined
at scripts.24c7f1769bde070aab98.bundle.js:2
at scripts.24c7f1769bde070aab98.bundle.js:2
at scripts.24c7f1769bde070aab98.bundle.js:18
at scripts.24c7f1769bde070aab98.bundle.js:2
at scripts.24c7f1769bde070aab98.bundle.js:18
(anonymous) @ scripts.24c7f1769bde070aab98.bundle.js:2
(anonymous) @ scripts.24c7f1769bde070aab98.bundle.js:2
(anonymous) @ scripts.24c7f1769bde070aab98.bundle.js:18
(anonymous) @ scripts.24c7f1769bde070aab98.bundle.js:2
(anonymous) @ scripts.24c7f1769bde070aab98.bundle.js:18
It should be noted that with a development build, everything is ok and all icons show up correctly.

Reproduction of behavior

Include a link to the reproduction scenario you created by forking one of the Clarity Plunker Templates:

Environment details

Angular version: 2.0.X
@angular/cli: 1.4.4 node: 8.6.0 os: win32 x64 @angular/animations: 4.0.2 @angular/common: 4.0.2 @angular/compiler: 4.0.2 @angular/compiler-cli: 4.0.2 @angular/core: 4.0.2 @angular/forms: 4.0.2 @angular/http: 4.0.2 @angular/material: 2.0.0-beta.3 @angular/platform-browser: 4.0.2 @angular/platform-browser-dynamic: 4.0.2 @angular/platform-server: 4.0.2 @angular/router: 4.0.2 @angular/cli: 1.4.4 typescript: 2.2.0

Clarity version:
  "clarity-angular": "0.10.0-alpha.4",   "clarity-icons": "0.10.0-alpha.4",   "clarity-ui": "0.10.0-alpha.4",

OS and version:
Windows 7 Professional

Browser: [all ]

@MrfksIv: I don't believe we have the sufficient information to replicate this issue. How are you loading the Icons? If you are using angular-cli, can you provide the respective config files to show how you load the icons?
You could also take a look at our website branch (we use angular-cli for our website and the icons work fine in prod mode) here: https://github.com/vmware/clarity/tree/new-website
cc: @Shijir

I just switched to another clarity version and everything now works fine. The problem appeared right after I updated angular-cli to 1.4.4 for some reason. Anyway, I am closing this as it is no longer an issue.


Change: Playlist::setItem()

Overview
The way Playlist::setItem() works is kinda of counter-intuitive.
If the second parameter $position is not informed, the item will be moved to the very end of the file, even if the item exists already.
It would be more intuitive to let the item in the same position.
Proposed solution
If (item already exists) {
    if ($positon == null) {
        leave where it is
    } else if ($position >= 0) {
        move it
    } else if ($position == -1) {
        move it to the end of the file.
    }
}
else {
    if ($positon == null || $position == -1) {
        add it to the end of the file
    } else {
        add it to the specified position
    }
}

This would of course require a major release.
Remember to update the documentation.

Changes implemented as of version 3.0.0


.NET Standard Compatibility?

I'm sorry if this is the wrong place to ask about future work, but are there any plans to migrate this project to .NET Standard so that those of us using .NET Core can use this project?
Thank you!

Its not currently planned to make an ASP.NET Core version but if there is significant interest we can definitely look into it. I recommend anybody who would want this feature to chime in to help prioritize this feature request.

We would be interested in this as well. A decent starter of an implementation is currently floating on StackOverflow: https://stackoverflow.com/a/52752984/1313143

I would definitely be interested.

We are working on a DynamoDB ASP.NET Core IDistributedCache provider. For ASP.NET Core the distributed cache framework is the backend store for session state. Here is the repository for that work. We are finishing up internal review work and then we will release the library to NuGet. https://github.com/awslabs/aws-dotnet-distributed-cache-provider

We've finished all of the internal launch preparation, and just pushed the initial preview version of an IDistributedCache provider as https://www.nuget.org/packages/AWS.AspNetCore.DistributedCacheProvider/. As @normj linked above, given the evolution from SessionStateStoreProviderBase in .NET Framework to IDistributedCache in .NET Core, we've created a separate repository and package.
Here's the launch blog post with some more examples: https://aws.amazon.com/blogs/developer/introducing-the-aws-net-distributed-cache-provider-for-dynamodb-preview/
Let us know what you think via issues and/or pull requests over on the new repo!


i cannot run at ios

Steps to Reproduce

...
...
...

Logs

flutter_04.log

[31m✗[39m libimobiledevice and ideviceinstaller are not installed. To install
      with Brew, run:
        brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    [32m• ios-deploy 1.9.2
    [31m✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy

is this problem cause it ?

I think you should be able to fix this by following the steps given by flutter_doctor pasted above by @ffey.  I'll close this for now, but if you can't fix it and think there might be a bug in Flutter, feel free to reopen.


Implement RFC0030: Buildpackless Builders

RFC
Summary
Paketo should publish buildpackless versions of its three builders.

[ ] All three builders (Full, Base, and Tiny) have buildpackless versions published on Dockerhub and GCR that automatically receive updates and cut versions when new lifecycle and stack images are available.

This has been implemented for the full builder with one repo and 2 orphaned mainline branches: https://github.com/paketo-buildpacks/full-builder. (See main and buildpackless.
However, in the process of implementing with this approach, it's evident that publishing two builders in one repository adds complexity that might not be worth the benefits of keeping them together.
Complexity includes:

automatically cutting releases that target 2 different branches
PR-ing into two different branches when builder.toml files need to be updated
a more complicated dependabot.yml to keep two different mainline branches' dependencies up to date
syncing workflows from a centralized github-config repo is more complicated if two mainline branches need to be updated with slightly different sets of files

For these reasons, it might be worth revisiting the one-repo approach to this RFC's implementation. Checking in the buildpackless builders in their own repos can significantly reduce the automation complexity.


How to format #[macro_use]

A question came up on the intellij-rust issue tracker about whether the default format for a #[macro_use] should be:
#[macro_use(foo, bar)]
extern crate baz;

#[macro_use]
mod baa;

Or
#[macro_use(foo, bar)] extern crate baz;

#[macro_use] mod baa;

The examples I saw in the book seemed to indicate the first. Was wondering if this had been discussed or decided.

This already has an issue: https://github.com/rust-lang-nursery/fmt-rfcs/issues/36

Yes, this is a duplicate of that issue. Thanks!

Thanks for the reference @regexident!


Difficulty completing Reverse(Twople) exercise

Working through the examples one by one, I found I couldn't complete the Twople exercise.  I came across 2 problems:

I had to peek at the answer of how to reverse a two tuple.  I did not know how to raise an error at this point in TLA+, so maybe you should consider introducing this earlier on?

The supplied solution didn't work for me when I pasted it into the toolbox (I may be doing something wrong here).

Spec
---------------------------- MODULE LearnTlaPlus ----------------------------
EXTENDS Integers, Sequences

Reverse(Twople) == IF Len(Twople) = 2 THEN <<Twople[2], Twople[1]>> ELSE ASSERT FALSE

=============================================================================

Error (truncated for brevity as it's impossible to copy/paste the parse errors on OSX)
***Parse Error***
Was expecting  "==== or more Module body"
Encountered FALSE at ...

Did I write ASSERT FALSE? Because that's not a real thing.
Headdesk
Sorry about that. I'll change the exercise to "if there's two, reverse,
otherwise return original sequence", which should cover both issues.
On Sun, Oct 22, 2017, 11:31 AM Raoul Millais<EMAIL_ADDRESS>wrote:

Working through the examples one by one, I found I couldn't complete the
Twople exercise. I came across 2 problems:

I had to peek at the answer reverse a two tuple without peeking at the
answer. I did not know how to raise an error at this point in TLA+, so
maybe you should consider introducing this earlier on.
2.
The supplied solution didn't work for me when I pasted it into the
toolbox (I may be doing something wrong here).
Spec
---------------------------- MODULE LearnTlaPlus ----------------------------
EXTENDS Integers, Sequences
Reverse(Twople) == IF Len(Twople) = 2 THEN <<Twople[2], Twople[1]>> ELSE ASSERT FALSE
=============================================================================
Error (truncated for brevity as it's impossible to copy/paste the parse
errors on OSX)
Parse Error
Was expecting  "==== or more Module body"
Encountered FALSE at ...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hwayne/learntla/issues/38, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACiXdOmPzf6XH04HReYSnNoxnwBxGBUKks5su238gaJpZM4QCAvu
.

Fixed in https://github.com/hwayne/learntla/commit/31b6232925e28054d1dbd9607fd5614a112a1d65.

All working for me now when I run it. Thank you very much for your work making this, it's really helpful having plenty of sources to learn from :)


Buttons and zoom do not work when using from local machine (file://) in Internet Explorer

IE does not allow file:// using the native window.XMLHttpRequest. Using window.ActiveXObject("Microsoft.XMLHTTP") works ok.
The problem is in l10n.js xhrLoadText() method.
The "bug" causes buttons and zoom-bar to be unresponsive, however the PDF is loaded correctly,
jQuery has workaround code for exactly this situation.

As described in the README, this is a limitation of some browsers. Please use a web server instead.
Closing as won't fix.


fix : Fixed canva.css

Title of the Pull Request
Fixed Canva.css to make the text visible
Related Issue
Closes: #1200
Description
i have changed the color to black , by accessing the required elements . check the font style and font size
Screenshots 📷

[x] My code follows the code style of this project.
-->
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Code style update (formatting, local variables)

I can't see any changes in this PR.

I can't see any changes in this PR.

@vishanurag i have done changes , and they are visible in my local system , but i cannot view them in github ? i have also rechecked all the steps .


firefox-devedition-bin-unwrapped: 101.0b2 -> 101.0b3

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for firefox-devedition-bin-unwrapped is: "Mozilla Firefox, free web browser (binary package)"
meta.homepage for firefox-devedition-bin-unwrapped is: "http://www.mozilla.org/firefox/"
meta.changelog for firefox-devedition-bin-unwrapped is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 101.0b3 with grep in /nix/store/nphp39ki2wkr7db4184cfib7jpi0fikj-firefox-devedition-bin-unwrapped-101.0b3
found 101.0b3 in filename of file in /nix/store/nphp39ki2wkr7db4184cfib7jpi0fikj-firefox-devedition-bin-unwrapped-101.0b3

Rebuild report (if merged into master) (click to expand)

Outpath calculations were skipped for this package; total number of rebuilds unknown.

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/nphp39ki2wkr7db4184cfib7jpi0fikj-firefox-devedition-bin-unwrapped-101.0b3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A firefox-devedition-bin-unwrapped https://github.com/r-ryantm/nixpkgs/archive/475ea31fba4ade06e47c6a8a21e925e7cb1a2560.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/nphp39ki2wkr7db4184cfib7jpi0fikj-firefox-devedition-bin-unwrapped-101.0b3
ls -la /nix/store/nphp39ki2wkr7db4184cfib7jpi0fikj-firefox-devedition-bin-unwrapped-101.0b3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

firefox-devedition-bin
firefox-devedition-bin-unwrapped

Maintainer pings
cc @taku0 @lovesegfault for testing.

This can be closed; it was superseded by #173071.


Documenet the configuration given VK step

Adds information of the
Given the user's {config} is {value}

Hey, just a few minor edits, if you're happy with them we can merge :slightly_smiling_face:
Thanks for writing this up too!

Only good edits. Merging
(You know I'll do anything for my Hacktober t-shirt!)

lol well you'll be pleased to know that I've tagged all our repo's as we apparently have to opt-in this year...
Something tells me you won't have any trouble reaching the PR quota


502 Bad Gateway when hitting cloud.internalpositioning.com

502 Bad Gateway when hitting cloud.internalpositioning.com

comes back now.


6.5-3

Compared to CLRS2e, uses different procedure names, consistent with the procedures of a max-heap.


Error launching binder

Hello,
Another one whilst working through the JOSE review (https://github.com/openjournals/jose-reviews/issues/192).
I'm unable to launch binder via the link given on the README (only tested for parts 1 and 2). The error is here.

Ah yes, I may have broken this trying to fix NGLview, still trying to get this to work..fixing this is definitely on the to do list.

I couldn't get Binder to work in a fast way (I saw you can do prebuilds of docker containers with github actions, but it seemed like faff to figure out how to do that). Also NglView was a pain, so I migrated to Colab. This should be all up and running now.

Fab! I've just opened in my browser and ran through the first few tutorials - they are working well.


yew 0.21.0 can't build using cargo build

Problem
mmm@MacBook-Pro yew % git status
HEAD detached at 4c3bcdc6
Untracked files:
(use "git add ..." to include in what will be committed)
.DS_Store
nothing added to commit but untracked files present (use "git add" to track)
mmm@Konstantins-MacBook-Pro yew % cargo build
Compiling gloo-worker v0.4.0
error[E0046]: not all trait items implemented, missing: Reach, handle_input
--> /Users/mmm/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0/src/oneshot/worker.rs:22:1
|
22 | impl Worker for OneshotWorker
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Reach, handle_input in implementation
|
::: /Users/kostya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0/src/actor/traits.rs:64:5
|
64 |     type Reach;
|     ---------- Reach from trait
65 |     fn handle_input(&mut self, msg: Self::Input, _: HandlerId);
|     ----------------------------------------------------------- handle_input from trait
error[E0046]: not all trait items implemented, missing: Reach, handle_input
--> /Users/mmm/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0/src/reactor/worker.rs:27:1
|
27 | impl Worker for ReactorWorker
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Reach, handle_input in implementation
|
::: /Users/mmm/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0/src/actor/traits.rs:64:5
|
64 |     type Reach;
|     ---------- Reach from trait
65 |     fn handle_input(&mut self, msg: Self::Input, _: HandlerId);
|     ----------------------------------------------------------- handle_input from trait
For more information about this error, try rustc --explain E0046.
error: could not compile gloo-worker (lib) due to 2 previous errors
Steps To Reproduce
Steps to reproduce the behavior:

checkout release git checkout -b yew-v0.21.0
cargo build
See error

As per my previous report, you can ignore it, but your CI doesn't test builds on MacOS, seems to me. It is not constructive to close my tickets, I am reporting a real issue with gloo dependency.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment:

Yew version: [e.g. v0.21.0, released]

Rust version: [e.g. 1.73.0, stable]

Build tool, if relevant: cargo

OS, Mac OS: Sonoma v.14 M2 Pro

Seems like some internal class in gloo that depends on another class in that same gloo does not want to compile. Doubt it would pass any tests then, so i'd imagine its broken on the issuer's machine only. Try clearing up all target folders and what-not and see if the issue persists.

I've done cargo clean and cargo build cycles many times

Try manually deleting folders/cached projects in those folders mentioned in the error

success!!!! How to clean cached folders via command?

after the manual delete $USER_HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0 error is gone

success!!!! How to clean cached folders via command?

consider https://github.com/matthiaskrgr/cargo-cache


ack-iam-controller: Role not created when watchNamespace leaved empty since 1.3.3

Describe the bug
Since 1.3.3 of the iam controller helm chart the following condition prevents the creation of the RBAC Role if installScope is namespace and watchNamespace ist empty.
This leads to permissions error of the ack controller cause the pod is not allowed to list crd ressource:
{"level":"error","ts":"2024-01-30T11:52:55.477Z","msg":"pkg/mod/k8s.io/client-go@v0.28.3/tools/cache/reflector.go:229: Failed to watch *v1alpha1.OpenIDConnectProvider: failed to list *v1alpha1.OpenIDConnectProvider: openidconnectproviders.iam.services.k8s.aws is forbidden: User "system:serviceaccount:system-ack-iam:ack-iam-controller" cannot list resource "openidconnectproviders" in API group "iam.services.k8s.aws" in the namespace "system-ack-iam"\n","stacktrace":"k8s.io/client-go/tools/cache.DefaultWatchErrorHandler\n\t/go/pkg/mod/k8s.io/client-go@v0.28.3/tools/cache/reflector.go:147\nk8s.io/client-go/tools/cache.(*Reflector).Run.func1\n\t/go/pkg/mod/k8s.io/client-go@v0.28.3/tools/cache/reflector.go:292\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.28.3/pkg/util/wait/backoff.go:226\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.28.3/pkg/util/wait/backoff.go:227\nk8s.io/client-go/tools/cache.(*Reflector).Run\n\t/go/pkg/mod/k8s.io/client-go@v0.28.3/tools/cache/reflector.go:290\nk8s.io/client-go/tools/cache.(*controller).Run.(*Group).StartWithChannel.func2\n\t/go/pkg/mod/k8s.io/apimachinery@v0.28.3/pkg/util/wait/wait.go:55\nk8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.28.3/pkg/util/wait/wait.go:72"}
Steps to reproduce
Install ack-iam-controller 1.3.3 with watchNamespace leaving at "" and installScope: namespace
Expected outcome
Role is created always for the releaseNamespace as the description states.
Environment

Kubernetes version 1.24
Using EKS (yes/no), if so version? yes 1.24
AWS service targeted (S3, RDS, etc.) IAM

This is caused by this condition which leads to false with the default value watchNamespace: "" https://github.com/aws-controllers-k8s/iam-controller/blob/v1.3.3/helm/templates/cluster-role-controller.yaml#L13
Additonally, i found that there are two new roles iam-reader and iam-writer but no RoleBidning to bind them to the iam controller.

@derbauer97 The release namespace and the watchname space are two different things. Are you asking that we default to the release namespace is watchNamespace is not provided? that sounds reasonable to me.

Also note that before making this release we also discovered an unintended behaviour described here https://github.com/aws-controllers-k8s/community/issues/1996

Hey @a-hilaly,
thanks for the quick response. I would expect that the controller works with the default values and if i trust the description above watchNamespace it should work withput specifying watchNamespaces:
# This value is only used when the `installScope` is set to "namespace". If left empty, the default value is the release namespace for the chart.

https://github.com/aws-controllers-k8s/iam-controller/blob/main/helm/values.yaml#L109C1

So like you mentioned it would be great to always include the releaseNamespace if watchNamespace is emtpy

@derbauer97 Nice catch, i completely missed that part of the documentation .. i will expedite a release for all controllers very soon!

@derbauer97 iam-controller have been patched!
/close


Autosave persist via Sisyphus.js or Garlic.js

Trumbowyg rendered textarea does not persist with either Garlic or Sisyphus
Description

macOS
Firefox 78.0.1
form generated with Web2py

How to reproduce?

<script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.20.0/trumbowyg.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sisyphus.js/1.1.3/sisyphus.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/garlic.js/1.4.2/garlic.min.js"></script>
<script>
  $( function() {
    $( '#formNew' ).sisyphus()
  } );
</script>
<script>
    $.trumbowyg.svgPath = '/static/images/icons.svg';
    $('#t_log_f_note').trumbowyg({removeformatPasted: true, semantic: false});
</script>

will not work either with
data-persist="garlic"
Thanks!

Can't help you since I did not know those libs. Sorry for the lag ^^'
Try with a simple textarea and check if it works :)
I hope you fixed your issue since you've posted it.

Thanks for you reply. Both of those libraries works with the other textareas in the same form, except the one populated by trumbowyg.
Thanks all the same.


SAK-29988 Usability improvements for Syllabus

https://jira.sakaiproject.org/browse/SAK-29988
This PR introduces the following usability improvements:

add/change buttons on Add Item and Bulk Add Item to be explicit regarding published status (Instead of one button obeying the sakai.property, there are now three buttons for each UI; Add and Publish, Add, and Cancel)

will still fall back to sakai.property if the 'published' parameter is not included in the REST call

change occurances of the word 'Post' to 'Publish' for consistency across interfaces
add the prefix 'DRAFT - ' to the non-editable portion of a draft item's title, to visually reinforce the idea that the item is not published (this is how other tools handle this as well, such as Assignments, Announcements and Forums)

While I was in the project/files, I fixed up some minor JavaScript issues and switched some syntax to Java 7 style.

LGTM


[question] How to redirect in an action (with FlowRouter.go)?

Is it possible to redirect in an action? I know I can use FlowRouter.go, but by default it doesn't remove the previous location from the history, like a "redirect" does. Is there an option to pass to the go function to treat it like a redirect so it erases the previous history item?

The reason I'm redirecting in the action is because I'm using async/await in there, and I might need to redirect a few ticks later.

By the way, the action function itself is not async, it just calls async functions inside, so the router itself is never blocked.

You could use this I think: https://github.com/kadirahq/flow-router#flowrouterwithreplacestatefn

:+1:


Add HTTPS_ONLY env option to force secure-only connections

setting HTTPS_ONLY=enabled in the env vars will enable:

HSTS connections
Secure cookie storage
Auto-redirection to HTTPS urls

Users should note that because of HSTS, going back to allowing insecure connections will be impossible until the timeout expires (which is I think 1 year)

Verified working nicely on https://try.manyfold.app/ now!


Use massively parallel sundials solvers for running many solves with different input parameters

Description
Implement GPU-enabled solvers within Idaklu for massively parallel runs. Designed to provide support for input parameter sweeps, etc.
Pull request is currently work in progress:

[X] Refactor Idaklu code to support subclasses specifying separate solvers. Current solvers follow a consistent architecture, so all inherit from an OpenMP class. This permits flexibility and a cleaner extension for, e.g. GPU solvers.
[X] Implement a GPU solver (CUDA) within the framework.
[ ] Debug GPU solver (!).
[ ] Provide a pybamm/python interface to access new functionality.
[ ] Ensure that GPU functionality is optional on build (i.e. Idaklu builds with or without CUDA support, as needed).

Fixes #2644
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

[X] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist:

[ ] No style issues: $ pre-commit run (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[ ] All tests pass: $ python run-tests.py --all
[ ] The documentation builds: $ python run-tests.py --doctest

You can run unit and doctests together at once, using $ python run-tests.py --quick.
Further checks:

[ ] Code is commented, particularly in hard-to-understand areas
[ ] Tests added that prove fix is effective or that feature works

@awadell1 @pghege this might be of interest (GPU solvers for battery models)

Development enabling GPU support for the IDAKLU solver stalled since parallelisation required (gpu) device-kernels to be compiled from PyBaMM models. This would require compilation of casadi libraries onto the device for execution, or implementation / translation of an alternative expression tree model (with interface) to the solver. At this time the PR is being closed in favour of the approach adopted in #3121.


[BUG] Possibly unexpected behaviour, when using additional callback in search

Describe the bug
Search breaks when you use callback.
Example: when you I use like this:
$result = Product::search(
            'iphone',
        )->get();

Everything is ok. But when you use search with additional callback, like so:
$result = Product::search(
            null,
            function (
                Client $client,
            ) use ($search) {
                return $client->search(['index' => $this->index->value, 'body' => $search->toArray()]);
            }
        )->get();

I get the following error:
Matchish\ScoutElasticSearch\ElasticSearch\EloquentHitsIteratorAggregate::__construct(): Argument #1 ($results) must be of type array, Elastic\Elasticsearch\Response\Elasticsearch given
To Reproduce
I think bug description is clear enough about how to reproduce
Expected behavior
In both cases it should return a collection with appropriate models
Additional context
Is it possible that I am trying to do this the wrong way?
Version
Versions of Laravel, Scout, and the package.
"matchish/laravel-scout-elasticsearch": "^6.0.2",
Laravel Framework 10.2.0

Ok I think I have found the issue. It seems to stem from here:
https://github.com/matchish/laravel-scout-elasticsearch/blob/master/src/Engines/ElasticSearchEngine.php#L196
When call back is passed, asArray is not called if no callback then asArray is called.
@matchish is there a reason why it is done this way, or is this a bug? If the latter, im happy to make a pull request

Hey) feel free to open the pr. But it breaking changes so probably I'll wait until will be merged to master. For now could be solved by calling toArray in callback I think

@matchish yes, calling asArray in the callback does indeed  seem to work as well. But I reckon that it's better that the underlying function returns same thing, regardless of if callback argument was used or not :)

Any updates on this?

Hey) feel free to open the pr. But it breaking changes so probably I'll wait until will be merged to master. For now could be solved by calling toArray in callback I think

Where exactly do you use this callback toArray?


Http-remoting rebranding

@dansanduleac, this is pr is too big to continue to iterate on it. Let's merge this into the feature branch and iterate on the top of it. It is still structurally confusing what each package has and what each sub project contains. e.g. conjure-scala-jaxrs-client project has both com.palantir.conjure.java.client.jaxrs and com.palantir.conjure.java.serialization package while conjure-java-jackson-serialization project also contains classes belong to com.palantir.conjure.java.serialization


changes made to the code and footer component added

As for issue #23, I have made the necessary changes adding the footer component with the necessary UI and adding a back-to-top button.

@UjjwalSharma01 review the changes
Earlier

After

As for issue #23, I have made the necessary changes adding the footer component with the necessary UI and adding a back-to-top button.

@UjjwalSharma01 review the changes
Earlier

After

Vercel is facing some issues, can't see the preview,so we have to wait for a while

Or the other thing we can do, jisss tumhari PR bhi affect na ho, just check and lemme know,  ki tumhare code ki vajah se koi aur functionality affect toh nahi hui h + responsiveness

In place of newsletter, add join our community

Or the other thing we can do, jisss tumhari PR bhi affect na ho, just check and lemme know, ki tumhare code ki vajah se koi aur functionality affect toh nahi hui h + responsiveness

okay i can check that

Not responsive

And where the email addresses are being stored?

And where the email addresses are being stored?

I could take care of the responsive design feature. But for storing data, that might not work as expected as i could implement a database but the admin will be me as my credentials will be used. And same goes for using nodemailer too. If you want, i can remove this and might add something else.

this is the change, if you like it let me know otherwise, i can revert this back to a subscription form

fair enough, just resolve the merge, conflict and you are good to go

fair enough, just resolve the merge, conflict and you are good to go

i feel like these conflicts resolve are happening because some pull requests got accepted but the fork didn't sync due to which i have older version of repo. So, if you don't mind i will close this PR and create a new pr with required changes


FFMPEG not working !

I am trying to use the transcode function but sadly it looks like FFMPEG isn't installed.
Should it be installed manually or am i doing something wrong?

I founded FFMpeg there in docker BUT it still doesn't work
[2020-04-21 22:59:02.392][Trace][23][681] <- CPB time=50001325, okbps=0,1,0, ikbps=2426,2340,0, mr=0/350, p1stpt=20000, pnt=5000
[2020-04-21 22:59:03.850][Warn][23][688][104] client disconnect peer. ret=1008

To be honest I have been working on it for 4 hours and still can't find anything working...

https://github.com/ossrs/srs/issues/1523#issuecomment-567436519

Well, I tried to compile FFMpeg manually and put it in the folder and I still get the issues... I am not able to make use of it.

And how can I compile it in a docker container directly?

And how can I compile it in a docker container directly?

https://github.com/ossrs/srs-docker/blob/dev/Dockerfile#L23-L46

Well by my side I cannot use it if I run as in the readme FFMpeg still isn't there.
I am on ubuntu too. And I use the provided commands to build it and run it in the container directly.

So I tried in multiple ways now i tried via install ffmpeg via apt install ffmpeg (like they wrote on the ffmpeg website).
Config :
listen              1935;
vhost __defaultVhost__ {
    # apply on vhost, for all streams.
    transcode {
        enabled     on;
        ffmpeg    /usr/bin/ffmpeg;
        engine ff {
            # whether the engine is enabled
            # default: off.
            enabled         on;
            # ffmpeg filters, follows the main input.
            vfilter {
            }
            # video encoder name. can be:
            # libx264: use h.264(libx264) video encoder.
            # copy: donot encoder the video stream, copy it.
            # vn: disable video output.
            vcodec          libx264;
            # video bitrate, in kbps
            vbitrate        1500;
            # video framerate.
            vfps            25;
            # video width, must be even numbers.
            vwidth          768;
            # video height, must be even numbers.
            vheight         320;
            # the max threads for ffmpeg to used.
            vthreads        12;
            # x264 profile, @see x264 -help, can be:
            # high,main,baseline
            vprofile        main;
            # x264 preset, @see x264 -help, can be:
            # ultrafast,superfast,veryfast,faster,fast
            # medium,slow,slower,veryslow,placebo
            vpreset         medium;
            # other x264 or ffmpeg video params
            vparams {
            }
            # audio encoder name. can be:
            # libaacplus: use aac(libaacplus) audio encoder.
            # copy: donot encoder the audio stream, copy it.
            # an: disable audio output.
            acodec          libaacplus;
            # audio bitrate, in kbps. [16, 72] for libaacplus.
            abitrate        70;
            # audio sample rate. for flv/rtmp, it must be:
            # 44100,22050,11025,5512
            asample_rate    44100;
            # audio channel, 1 for mono, 2 for stereo.
            achannels       2;
            # other ffmpeg audio params
            aparams {
            }
            # output stream. variables:
            # [vhost] the input stream vhost.
            # [port] the intput stream port.
            # [app] the input stream app.
            # [stream] the input stream name.
            # [engine] the tanscode engine name.
            output          rtmp://<IP_ADDRESS>:[port]/[app]?vhost=[vhost]/[stream]_[engine];
        }
    }
}

Also yes i treid to use FFMpeg and it's working via the command i putted and the path.
Log :
[2020-04-22 03:58:36.239][Trace][4678][792] fored process, pid=4820, bin=/usr/bin/ffmpeg, stdout=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, stderr=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, argv=/usr/bin/ffmpeg -f flv -i rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream -vcodec libx264 -b:v 1500000 -r 25.00 -s 768x320 -aspect 768:320 -threads 12 -profile:v main -preset medium -acodec libaacplus -b:a 70000 -ar 44100 -ac 2 -f flv -y rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream_ff
[2020-04-22 03:58:36.265][Trace][4678][796] RTMP client ip=<IP_ADDRESS>, fd=11
[2020-04-22 03:58:36.271][Trace][4678][796] complex handshake success
[2020-04-22 03:58:36.313][Trace][4678][796] connect app, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2020-04-22 03:58:36.313][Trace][4678][796] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2020-04-22 03:58:36.401][Trace][4678][796] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:36.445][Trace][4678][796] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:36.445][Trace][4678][796] client identified, type=Play, vhost=__defaultVhost__, app=live, stream=livestream, param=, duration=-1ms
[2020-04-22 03:58:36.445][Trace][4678][796] connected stream, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
[2020-04-22 03:58:36.445][Trace][4678][796] source url=/live/livestream, ip=<IP_ADDRESS>, cache=1, is_edge=0, source_id=792[792]
[2020-04-22 03:58:36.445][Trace][4678][796] dispatch cached gop success. count=253, duration=3459
[2020-04-22 03:58:36.445][Trace][4678][796] create consumer, active=1, queue_size=0.00, jitter=30000000
[2020-04-22 03:58:36.445][Trace][4678][796] set fd=11, SO_SNDBUF=2626560=>175000, buffer=350ms
[2020-04-22 03:58:36.445][Trace][4678][796] start play smi=0ms, mw_sleep=350, mw_enabled=1, realtime=0, tcp_nodelay=0
[2020-04-22 03:58:36.788][Warn][4678][796][4] client disconnect peer. ret=1009
[2020-04-22 03:58:39.239][Trace][4678][792] process pid=4820 terminate, please restart it.
[2020-04-22 03:58:42.249][Trace][4678][792] fored process, pid=4857, bin=/usr/bin/ffmpeg, stdout=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, stderr=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, argv=/usr/bin/ffmpeg -f flv -i rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream -vcodec libx264 -b:v 1500000 -r 25.00 -s 768x320 -aspect 768:320 -threads 12 -profile:v main -preset medium -acodec libaacplus -b:a 70000 -ar 44100 -ac 2 -f flv -y rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream_ff
[2020-04-22 03:58:42.274][Trace][4678][797] RTMP client ip=<IP_ADDRESS>, fd=11
[2020-04-22 03:58:42.281][Trace][4678][797] complex handshake success
[2020-04-22 03:58:42.321][Trace][4678][797] connect app, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2020-04-22 03:58:42.321][Trace][4678][797] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2020-04-22 03:58:42.409][Trace][4678][797] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:42.453][Trace][4678][797] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:42.453][Trace][4678][797] client identified, type=Play, vhost=__defaultVhost__, app=live, stream=livestream, param=, duration=-1ms
[2020-04-22 03:58:42.453][Trace][4678][797] connected stream, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
[2020-04-22 03:58:42.453][Trace][4678][797] source url=/live/livestream, ip=<IP_ADDRESS>, cache=1, is_edge=0, source_id=792[792]
[2020-04-22 03:58:42.453][Trace][4678][797] dispatch cached gop success. count=83, duration=1140
[2020-04-22 03:58:42.453][Trace][4678][797] create consumer, active=1, queue_size=0.00, jitter=30000000
[2020-04-22 03:58:42.453][Trace][4678][797] set fd=11, SO_SNDBUF=2626560=>175000, buffer=350ms
[2020-04-22 03:58:42.453][Trace][4678][797] start play smi=0ms, mw_sleep=350, mw_enabled=1, realtime=0, tcp_nodelay=0
[2020-04-22 03:58:43.153][Warn][4678][797][4] drop the received 1 messages
[2020-04-22 03:58:43.153][Warn][4678][797][4] client disconnect peer. ret=1009
[2020-04-22 03:58:45.249][Trace][4678][792] process pid=4857 terminate, please restart it.
[2020-04-22 03:58:45.249][Trace][4678][792] -> ENC time=21000015, encoders=1, input=__defaultVhost__/live/livestream
[2020-04-22 03:58:48.259][Trace][4678][792] fored process, pid=4894, bin=/usr/bin/ffmpeg, stdout=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, stderr=./objs/ffmpeg-encoder-__defaultVhost__-live-livestream-ff.log, argv=/usr/bin/ffmpeg -f flv -i rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream -vcodec libx264 -b:v 1500000 -r 25.00 -s 768x320 -aspect 768:320 -threads 12 -profile:v main -preset medium -acodec libaacplus -b:a 70000 -ar 44100 -ac 2 -f flv -y rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__/livestream_ff
[2020-04-22 03:58:48.286][Trace][4678][798] RTMP client ip=<IP_ADDRESS>, fd=11
[2020-04-22 03:58:48.293][Trace][4678][798] complex handshake success
[2020-04-22 03:58:48.333][Trace][4678][798] connect app, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2020-04-22 03:58:48.333][Trace][4678][798] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2020-04-22 03:58:48.421][Trace][4678][798] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:48.465][Trace][4678][798] ignore AMF0/AMF3 command message.
[2020-04-22 03:58:48.465][Trace][4678][798] client identified, type=Play, vhost=__defaultVhost__, app=live, stream=livestream, param=, duration=-1ms
[2020-04-22 03:58:48.465][Trace][4678][798] connected stream, tcUrl=rtmp://<IP_ADDRESS>:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
[2020-04-22 03:58:48.465][Trace][4678][798] source url=/live/livestream, ip=<IP_ADDRESS>, cache=1, is_edge=0, source_id=792[792]
[2020-04-22 03:58:48.465][Trace][4678][798] dispatch cached gop success. count=521, duration=7131
[2020-04-22 03:58:48.465][Trace][4678][798] create consumer, active=1, queue_size=0.00, jitter=30000000
[2020-04-22 03:58:48.465][Trace][4678][798] set fd=11, SO_SNDBUF=2626560=>175000, buffer=350ms
[2020-04-22 03:58:48.465][Trace][4678][798] start play smi=0ms, mw_sleep=350, mw_enabled=1, realtime=0, tcp_nodelay=0
[2020-04-22 03:58:48.504][Warn][4678][798][4] client disconnect peer. ret=1009
[2020-04-22 03:58:49.208][Trace][4678][792] <- CPB time=20000009, okbps=1,0,0, ikbps=9738,0,0, mr=0/350, p1stpt=20000, pnt=5000
[2020-04-22 03:58:51.259][Trace][4678][792] process pid=4894 terminate, please restart it.

So i made it work by compiling everything manually choosing the correct audio codec ( i debugged using the command in the console of FFMpeg) and then i specified my path manually.
Here is the script to compile it i founded and fixed a few dead links https://github.com/IIPoliII/ffmpeg-build-script

See https://github.com/ossrs/srs/issues/1523


Archived repository cleanup job

@gchomatas This command cleans up any active branches that are no longer in organizations blazar manages or on git hosts it no longer manages.

This now depends on #245

@gchomatas I have made changes here but I'm going to re-open this against hs-master which should also resolve the merge conflict
.


Test filesystem errors

Adds tests with errors in the git repositories.

Add new type of repo initializedRepo that holds a git.Repository
Creates a pool with three repos:

Repo with error reading packfile
Repo with missing index file and ghost packfile
Correct repo

Two fixes dealing with errors

I don't really like the new initializedRepo type so I'm working on storing an interface in the pool instead of a struct with types and implementing gitRepo, sivaRepo and initializedRepo with the specific code. This will be done in another PR.

can you rebase with master please?

Rebased


dir_info metadata field does not exist for conda installs

Closes #193

@jarrodmillman This change warrants a point release.


Saving a vd mesh to a file.

Hi!
This is a very general question... if i have a vedo mesh object, how can i save it into a file or what's the most recommended way to- (and then how to load it again)?
Thanks in advance!
PS: As i always say Marco, this is the best python library ever.

@ManuGraiph thanks!
To write to disk a mesh simply do:
mymesh.write("filename.vtk")

# then load it back with
mymesh = Mesh("filename.vtk")

the extension will automatically specify the format.
There are so many different formats: STL, PLY, VTK, OBJ .....
It all depends on your work environment and if you need to share files with other people and/or use other applications.
Format VTK for example allows to save data associated to vertices and faces which is a super convenient feature, but it's not always recognised by other applications.
Format STL or PLY are very widely used formats, but don't allow for that.
Keep in mind that you can always convert format from CLI, eg:
vedo --convert mymesh.vtk --to ply

Thanks a lot!
I just have some meshes that i'm regularly processing with some stuff and then i need to just store them for later use, so i was wondering how to do it better. Nothing fancy, just to save it as a file.

If it's just for you go for VTK.
Keep in mind that you can also save to files entire 3D scenes with export("myscene.npz").
(or press E in window)

Ohh, nice to know too!! Not on the scope of this problem, but it's also useful!

About the writing/reading meshes, i'm getting the following error:
File "/home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vispy/geometry/meshdata.py", line 260, in get_bounds     bounds = [(v[:, ax].min(), v[:, ax].max()) for ax in range(v.shape[1])]                                                                ^^^^^^^ AttributeError: 'str' object has no attribute 'shape'
When trying to read a mesh i previously saved with the mesh.write() method described above.

dxf mesh

not directly supported in vedo, so Mesh([vertices, faces] is the only way.

AttributeError: 'str' object has no attribute 'shape'

what format are you using ? this seems related to vispy though...

I literally saved a mesh (made as vedo.Mesh([verts,faces]), with both arrays) as a vtk file with mesh.write() and then try to load it with vedo.Mesh(file) and get that error.

Can you reproduce this?

import vedo

verts = [(50,50,50), (70,40,50), (50,40,80), (80,70,50)]
cells = [(0,1,2), (2,1,3), (1,0,3)]

mesh = vedo.Mesh([verts, cells])
mesh.write("mymesh.vtk")

mesh2 = vedo.Mesh("mymesh.vtk")
print(mesh2)

output:
vedo.mesh.Mesh at (0x7fe63497c670)
name          : Mesh
file name     : mymesh.vtk
elements      : vertices=4 polygons=3 lines=0
position      : (0, 0, 0)
scaling       : (1.00000, 1.00000, 1.00000)
size          : average=21.0954, diagonal=51.9615
center of mass: (62.5000, 50.0000, 57.5000)
bounds        : x=(50.0, 80.0), y=(40.0, 70.0), z=(50.0, 80.0)

In your terminal type
vedo

to dump your current setup.

Yep, all good, that one works. Could it maybe be that i need to make an explicit cast to int/float the vert points?
Output:
vedo version      : 2023.5.0  (https://vedo.embl.es)
vtk version       : 9.2.6
numpy version     : 1.26.4
python version    : 3.12.1 | packaged by conda-forge | (main, Dec 23 2023, 08:03:24) [GCC 12.3.0]
python interpreter: /home/ghost/micromamba/envs/dev/bin/python
installation point: /home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vedo
system            : Linux 6.7.4-arch1-1 posix x86_64

I'm guessing there is some issue with either the verts or faces format/type.
This is the real case:
>>> mesh.vertices
array([[3.2694200e+05, 8.1075310e+06, 3.6156333e+03],
       [3.2694106e+05, 8.1075290e+06, 3.6170845e+03],
       [3.2694200e+05, 8.1075265e+06, 3.6182031e+03],
       ...,
       [3.2748200e+05, 8.1071260e+06, 3.7487109e+03],
       [3.2748200e+05, 8.1071310e+06, 3.7478096e+03],
       [3.2748200e+05, 8.1071310e+06, 3.7478096e+03]], dtype=float32)
>>> mesh.cells[0:10]
[[0, 1, 2], [1, 2, 3], [4, 5, 6], [5, 6, 7], [8, 9, 10], [9, 10, 11], [12, 13, 14], [13, 14, 15], [16, 17, 18], [17, 18, 19]]
>>> mesh.write("test.vtk")
<vedo.mesh.Mesh object at 0x732e064eb380>
>>> mesh = Mesh("test.vtk")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vispy/scene/visuals.py", line 134, in __init__
    subclass.__init__(self, *args, **kwargs)
  File "/home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vispy/visuals/mesh.py", line 126, in __init__
    MeshVisual.set_data(
  File "/home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vispy/visuals/mesh.py", line 184, in set_data
    self._bounds = self._meshdata.get_bounds()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ghost/micromamba/envs/dev/lib/python3.12/site-packages/vispy/geometry/meshdata.py", line 260, in get_bounds
    bounds = [(v[:, ax].min(), v[:, ax].max()) for ax in range(v.shape[1])]
                                                               ^^^^^^^
AttributeError: 'str' object has no attribute 'shape'

well you can try to do the cast... but it shouldn't matter.. I dont get how the message can be related to vispy..
I think you are messing up the Mesh from vispy with the Mesh from vedo.

Ohh, you are right, i'm importing Mesh from vispy too, didn't notice that!
Just doing vedo.Mesh(filename) instead, worked, sorry!
Thanks a lot!!

If it's just for you go for VTK. Keep in mind that you can also save to files entire 3D scenes with export("myscene.npz"). (or press E in window)

About this... how can i export them? The export command is not recognized in vispy.scene and E doesn't do anything in my canvas window.

This has nothing to do with vispy!

Ahh, ok ok, i thought it was some way to save the scene into a file and then loading it without having to render it all again. Thanks!

Hi all!
I have multiple separate meshes. How can I combine and then export them? I tried it using an assembly, but i am getting an error :(

Have you tried with merge
allinone = vedo.merge(my_meshes, flag=1)
allinone.write("myfile.vtk")
print(allinone)

Thanks a lot. Works like a charm! 😁


Study Intervention, 'codes' Attribute

Check UML to see if the "codes" attribute in StudyIntervention should be 1:0..* or 1:1..*. Then align in API (currently 1:1). Align in "green blob" diagram
See JIRA 481

API updated to align with UML 1:0..*
Green blob updated to 0..*

@BSnoeijerCD just need to consider if we should have at least one code or not

@dih-cdisc from experience, in case of a new drugs being tested, there are no or not many codes known and/or added in the design phase.
Also, for future use, interventions could also be non-drug interventions which might not have a code at all.
So I would leave it to 0..* for now.

@dih-cdisc from experience, in case of a new drugs being tested, there are no or not many codes known and/or added in the design phase. Also, for future use, interventions could also be non-drug interventions which might not have a code at all. So I would leave it to 0..* for now.

Good by me. API has been updated to align with UML, no other changes needed. Can be closed

Checked: included in 7.1 API.
Closed ticket.


cmake: apple: Removed linker flag "-undefined dynamic_lookup"

This is a tiny PR for improving the build on OSX.
I recently ran into a linker issue when compiling opengm.  (I was going to submit a PR for that, but it was recently fixed in your master branch, so there's no need.)  The cause of the linker problem was tough to track down because it didn't show itself until run time.  Furthermore, the error message given by the os loader is nearly indecipherable.
Ideally, such linker errors should be apparent at build time (specifically, link time), but a flag in the opengm build scripts (-undefined dynamic_lookup) deferred the error until run time.  Is that flag necessary?  If it can be removed, linker error messages on OSX are much easier to decipher.

At some point this  "-undefined dynamic_lookup" was a  needed thing for someone on the mac.
Once at a hackathon we implemented this...
But I am not a mac expert..

At some point this "-undefined dynamic_lookup" was a needed thing for someone on the mac.

If I understand correctly, this flag has the following effect:
If there is a problem with the build that would normally cause a linker error, this flag will simply skip the error and build the rest of the .dylib.  That will allow users to use a "broken" build, as long as they avoid the particular functions that were broken.  But the more robust solution is to just make sure you don't have any linker errors in the first place.
I might be wrong about something here.  Do you remember who suggested the -undefined dynamic_lookup flag to you?

Not sure, but it feels like doing a wrong think


Flight analytics not showing after specific month

Hey @tsolakoua, I am using the Amadeus API to create a flights data dashboard. I was using the most booked flights and most travelled flights functions, but they are not returning data after 2018-03. Can you please look into it and tell me what is the problem here?

I realised this is not the right place to open this issue, I think this should be done in this repo.

In the test environment, the APIs return a subset of the production data. For more information check the test data collection.

Cool, thanks for helping out 👍


Wrong default branch name

The default branch should be named main.

It doesn't let me switch to the main and then make it default :skull:

I've renamed it for you, I just created the issues as a checklist for myself via a script yesterday.


Update Documentation on Manage app permission policies

Please update the following MS article:
https://learn.microsoft.com/en-us/microsoftteams/teams-app-permission-policies
It was recently confirmed by MS technical support team that needing to visit the App store on Teams client for the first time when any app is been added so that changes (added application/enabled applications) gets sync. As confirmed, this was by-design. Please add this as a note in the article to set the right expectations and guidance.

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

ID: b51eda6c-168c-7d99-7cc1-992b3d8feef2
Version Independent ID: 118a1b8f-f4b7-a778-70b1-d3161fc548ab
Content: Manage app permission policies in Microsoft Teams - Microsoft Teams
Content Source: Teams/teams-app-permission-policies.md
Service: msteams
Sub-service: teams-apps
GitHub Login: @ashishguptaiitb
Microsoft Alias: guptaashish

Thanks @polaran for sharing this enhancement. It'd help if you can explain the scenario a bit more.
Where is the app added - by user in their client or by a dev to the app store?
Also, what information is synchronized?

A gentle reminder @polaran to help us understand the required clarification.
Hi @tseward , could you decipher what the ask is?

@polaran Can you please share more details? Thank you

Hi @polaran , I'm closing this issue for lack of inputs/clarity. Please do re-open when you share more details. Thanks.
CC @scanum , @get-itips


Transaction not possible

Why can't Nami wallet make transactions, it says "Transaction not possible"

Having the same issue, did you find a resolution?


Failed to create nuclio project

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Hi everybody!
I'm trying to use serverless service for automatic annotation. But i get an error when i try to create nuclio project.
Expected Behaviour
Current Behaviour

Possible Solution
I'm not sure, but it may be point in version of kubernetes or nuclio. In my case i work at our work cluster so it is not applicable here to change kubernetes version - check here.
And I installed nuclio accordingly with CVAT documentation - the same version as mentioned in this file on my machine.
Steps to Reproduce (for bugs)

Get and start CVAT service.

git clone https://github.com/opencv/cvat
chmod -R 776 cvat/
cd cvat && docker-compose up -d

Getting serverless ready (accordingly with docs)

docker-compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
wget https://github.com/nuclio/nuclio/releases/download/1.8.14/nuctl-1.8.14-linux-amd64
sudo chmod +x nuctl-1.8.14-linux-amd64
sudo ln -sf $(pwd)/nuctl-1.8.14-linux-amd64 /usr/local/bin/nuctl

Trying to create nuclio project:

nuctl create project cvat

This step gives an error.
Context
I am trying to use models for auto annotation for data in CVAT.
Your Environment

CentOS Linux release 8.5.2111
Docker Engine 20.10.12
Kubernetes Client 1.19.0
Kubernetes Server 1.21.1
Python 3.6.8 (just in case)

Hello, If the kubernetes config file (~/.kube/config) is present in your system nuctl will attempt to use your cluster instead of local installation
nuctl -h | grep platform
      --platform string     Platform identifier - "kube", "local", or "auto" (default "auto")

Try specifying the --platform local option for all nuctl commands

Now it works fine and output is as following:

Thanks to @azhavoro ! :)


Missing commits in 7.3.0 release

I'm getting an issue in production that was fixed here:
https://github.com/sendgrid/sendgrid-php/commit/b0a3721d9e42121140b3ac4ecb5263827740a3ec
However, that commit, even though it was done in Oct 2018 is not part of 7.3.0
If I look at the file history in master:

And then look at the file history for 7.3.0:

This concerns me a lot since it basically means that 7.3.0, released on April 13th 2019 is missing arbitrary commits.
@thinkingserious You tagged the release, can you explain / look into what happened?

Hello @SamMousa,
I'm not sure what happened there, but it does appear that those fixes are included in the current release. Are you able to upgrade?
With best regards,
Elmer


VM Networks API

Contains SDK updates for V3, testcases and docs.

Please also add a common schema class for validating all the parameters as per the discussion and suggested approach.


Fix durable-js in Azure Functions V3

An orchestration trigger binding doesn't have a corresponding, explicit output, but does expect to be returned. This change returns that information in JSON form.

/azp run


Link to Video Dataset is not working

Hi mdyao,
The link to the video dataset is not working. Could you re-share it?

Many thanks.
Best Regards.

Hi, the link is still accessible on my PC. You might check your proxy settings or try using a VPN to access it.
Please refer to https://drive.google.com/drive/folders/144QYC403NrFXunlsr4k8MXUCxrlauVYH.


ESM + CommonJS. Hybrid library!

ESM + CommonJS + Types.

@YUUKIToriyama
This is a brand new version that supports both modern ES modules and classic CommonJS.
Everything should be backwards compatible, but I would still like someone else to verify that the library works in a real environment.
Could you confirm that version v1.0.0-next.6 works in your case too.
Thanks!

@bartholomej
It’s great to see you again.
It looks like a very nice work!
I'll do it later as soon as possible!

I am sorry for making you wait for a long time.
It seems good for my case! Completely compatible!


Adding a via by drag and drop should not zoom or pan the window

In the current implementation, adding a via point by drag and dropping the route causes the view to zoom and pan to show the entire route.
This makes making minor changes to routes extremely annoying for no real benefit (zooming and panning to the entire track can easily be done manually, if the user chooses to).

Hey @BobLemon23
There is an option that controls this called Always fit bounds when route changes in app settings https://maps.openrouteservice.org/#/settings -> Map view and extra information


Refactoring GitHub actions

Codecov Report

Merging #24 (3cd7e4c) into main (55c6a54) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines           79        79
=========================================
  Hits            79        79

Continue to review full report at Codecov.

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


added autocomplete parameters to RadzenDropDown.

Autocomplete="off" was set in some circumstances of this control, but not all. Added configurability for both the typing input as well as the filter input.

Removed.


UI doesn't resolve durations properly

Hi!
For some reason a request repeated to the same endpoint twice for the same trace, makes the UI render the durations improperly.
Check out this section (2 completely different requests, having same traceid, shot to the same endpoint):
{
    "traceId": "caa9948bef618715",
    "name": "http:/present/order",
    "id": "c7d6f8f1f0be2d7f",
    "parentId": "c47bbb8a2ea2334a",
    "timestamp":<PHONE_NUMBER>361000,
    "duration": 28000,
    "annotations": [],
    "binaryAnnotations": [
      {
        "key": "http.status_code",
        "value": "500",
        "endpoint": {
          "serviceName": "presenting",
          "ipv4": "<IP_ADDRESS>",
          "port": 9991
        }
      },
      {
        "key": "lc",
        "value": "unknown",
        "endpoint": {
          "serviceName": "presenting",
          "ipv4": "<IP_ADDRESS>",
          "port": 9991
        }
      }
    ]
  },
  {
    "traceId": "caa9948bef618715",
    "name": "http:/present/order",
    "id": "23ca77c6a15733bd",
    "parentId": "1c57dfdea6d8f7e8",
    "timestamp":<PHONE_NUMBER>507000,
    "duration": 23000,
    "annotations": [],
    "binaryAnnotations": [
      {
        "key": "http.status_code",
        "value": "500",
        "endpoint": {
          "serviceName": "presenting",
          "ipv4": "<IP_ADDRESS>",
          "port": 9991
        }
      },
      {
        "key": "lc",
        "value": "unknown",
        "endpoint": {
          "serviceName": "presenting",
          "ipv4": "<IP_ADDRESS>",
          "port": 9991
        }
      }
    ]
  }

JSON:
bad_duration.txt
SCREEN:

I'm not quite sure I get what the error is... what would the expected output look like?

Twice the graph. As you can see the last couple of spans don't have a
duration set. For some spans the duration of negative whereas in the json
it's not.

So it should look more or less like this:

In the initial picture you can see 16 spans. Actually those are 2 x 8 spans. However the second 8 spans have their durations completely ignored.

And when I click at one of the spans (I've clicked it on another computer so it won't have much to do with the attached JSON) I get such entries:

It seems that the issue was with the initial sent span. Let's close it for now


lumi.gateway.v3 and sub-device become unavailable

For testing, have a fresh installation on vmware workststion and add core integrated Xiaomi Aqara Gateway (lumi.gateway.v3_1.4.1_176.0220) with the token, sub-devices are identified and work OK, BUT after a while, all entities of the gateway and its sub-device turn to "unavailable". reload integration can solve this issue temporarily but happens again after a while.
LOG:
Home Assistant Core
Got error element in data {"error":"Invalid key"}
June 26, 2023 at 2:47:43 PM – (ERROR) components/xiaomi_aqara/light.py
Got error element in data {"error":"Invalid key"}
June 26, 2023 at 2:23:59 PM – (ERROR) components/xiaomi_aqara/config_flow.py - message first occurred at June 26, 2023 at 2:23:59 PM and shows up 2 times
OS information:
Home Assistant 2023.6.3
Supervisor 2023.06.2
Operating System 10.3
Frontend 20230608.0 - latest
Noticed that in readme.md, the supported version for Home Assistant is from 2022.8.x to 2023.5.x.
The gateway works well before 2023.6 update, please help to look into this issue, appreciate :)

This is another integration


feature: integration with an FTP server

Prerequisites checklist

[x] I have read the contributing guidelines.

What is the purpose of this pull request? (put an "x" next to an item)

[ ] Documentation update
[ ] Bug fix
[x] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)
I've created a new section on the admin panel to:

send images to an FTP server
use the FTP server as online galley (under certain circumstances)
delete the photos from the FTP server
use online links for QR-codes

Is there anything you'd like reviewers to focus on?

Also please add yourself to the contributors inside the README while on it


added password test

Added password test

can you fix this PR?

Please fix this and re-open when the tests pass.


WIP: CPP update

Done (all this changes are compatible with c++17):

2 external libraries updated (flat containers and zlib)
removed deprecated std::uncaught_exception() (should affect anything, since we are using c++17, which has std::uncaught_exceptions() already)
type cast empty string "" to CSString for consistency and error C2445 on c++20

Missing

initialization error C2440 during compilation on CServerConfig.cpp which should be caused by CAssocReg and CElementDef constructors, but I'm not skilled enough to fix it (got it working by removing contructors).

The proposal is to switch to cpp17 or 20? Is that revision compatible with latest gcc on latest stable debian version?

Sphereserver should already be building on cpp17 (according to Linux-GNU_common.inc.cmake and Windows-MSVC.cmake).
These changes provide partial support to cpp20 (see Missing, in PR) while keeping backwards compatibility with cpp17. This PR is compatible and tested with cpp17 on Windows 11 and Debian 11 both x64.
If somebody could check 'missing' part of this PR, then it would be buildable both on cpp17 and 20.

I mean, which is the most recent gcc version available on the latest debian version? Does it support more of less all of the cpp20 features?
Just to know, in any case it wouldn't be a problem if compatibility is preserved for cpp17. It's important though to know if there is a wide support of cpp20 before thinking about officially switching to cpp20, in the future. In that scenario we would allow new features and break compatibility with previous cpp revisions
Il giorno 3 mar 2023, 14:15, alle ore 14:15, mtwango @.***> ha scritto:

Sphereserver should already be building on cpp17 (according to
Linux-GNU_common.inc.cmake
and
Windows-MSVC.cmake).
These changes provide partial support to cpp20 (see Missing, in PR)
while keeping backwards compatibility with cpp17. This PR is compatible
and tested with cpp17 on Windows 11 and Debian 11 both x64.
If somebody could check 'missing' part of this PR, then it would be
buildable both on cpp17 and 20.
--
Reply to this email directly or view it on GitHub:
https://github.com/Sphereserver/Source-X/pull/1048#issuecomment-1453518032
You are receiving this because you commented.
Message ID: @.***>

Default version of gcc in Debian 11 (current) is 10 (gcc11 can be installed, but for the matter of simplicity I would assume gcc10 is default).
Gcc10 (and even gcc11) doesn't support all features of C++20 (see C++20 Support in GCC) so I would think that backwards compatibility with c++17 is required.

Sorry for the delay. Could you update the files with the current folder structure?
I see you have modified the flat containers library, did you test the changes? If yes, i'd gladly merge this PR.

Done with last commit.


Bot is not working inside docker container

Hello and first of all thank you for your great work!
This package is really pleasant to use even with no prior expirience in building Telegram bots.
Recently i was trying to package my bot inside docker container and faced some strange behaviour.
What expected: compiled binary of the bot could be run inside docker container.
What got: container builds and runs with no errors but the bot is not responding to updates.
Steps to reproduce with code from examples/basic/main.go:

build binary on the host as usual:
go build -v -o test
test if our bot works when running on host:
export TELEGRAM_TOKEN=realTelegramTokenHere && ./test
In my tests this works and the bot replies to messages.

If the bot works correctly on the host, we can proceed to the next step.

write simple Dockerfile in the same directory as binary:

FROM ubuntu
WORKDIR /bot
COPY ./test ./test
CMD ["/bot/test"]

I'm using Ubuntu as my OS so the same binary could be run on the host and in container. If host OS is not GNU/Linux we need to use two stage Dockerfile to build inside temporary container:
FROM golang AS buildstage
WORKDIR /src
COPY *.go go.mod ./
RUN go mod tidy && go build -v -o /out/test .
FROM ubuntu
WORKDIR /bot
COPY --from=buildstage /out/test ./test
CMD ["/bot/test"]

and build the container:
docker build --no-cache -t testbot .
4. now we can test if the bot works from container:
docker run --name=testbot --rm -it -e TELEGRAM_TOKEN=realTelegramTokenHere testbot
When running inside the container bot does not replies to messages even if we use the binary that works on the host machine.
Tried different hosts, changing docker network settings to --network=host but no luck.
Since we are using ubuntu container it is possible to exec bash in it, install curl and try to make direct requests to Telegram api.
In my tests getMe and getUpdates requests work perfectly so this should be not network related issue.

Nevermind the problem was in ca-certificates package inside the container, not related to the tbot package


Support migration from legacy secret volume mount to SDS

Describe the feature request
In Istio security, we need to support the gradual migration from the legacy secret volume mount to SDS.
Describe alternatives you've considered
No.
Additional context
The design doc will be shared out.

This is done in 1.6


Availability on WordPress.com VIP

We are keen to use Timber on WordPress.com VIP. When I inquired in August they said:

We're actually not supporting Timber/Twig at this time. There are a few fundamental issues with how the framework works that wouldn't make it a good fit (relies on compiled classes, for example).

Has any additional exploratory work been done to add VIP support for Timber? I know it will at least require quite a bit of review from VIP and also changes to the Timber, forcing certain configurations when WPCOM_IS_VIP_ENV.

Is this still relevant @jarednova ?

Naw, thanks for closing @connorjburton. I'll leave it to @westonruter on the WordPress VIP front. They have some very strict and specific requirements that my shop isn't really versed in; I think @westonruter's project is in a better place to (potentially) win their seal of approval


can not run ./examples/ICASSP2023_MUG_track4/end2end.sh under modelscope==1.1.2, 1.1.1 or 1.0.4

Checklist before your report.

[X] I have verified that the issue exists against the master branch of AdaSeq.
[X] I have read the relevant section in the contribution guide on reporting bugs.
[X] I have checked the issues list for similar or identical bug reports.
[X] I have checked the pull requests list for existing proposed fixes.
[X] I have checked the commit log to find out if the bug was already fixed in the master branch.

What happened?
AttributeError: 'ConfigDict' object has no attribute 'safe_get'
Python traceback
start training....
2023-01-05 16:53:32,579 - modelscope - INFO - PyTorch version 1.12.1 Found.
2023-01-05 16:53:32,581 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2023-01-05 16:53:32,953 - modelscope - INFO - Loading done! Current index file version is 1.1.0, with md5 7c254489cd639574f9416078442cc193
Traceback (most recent call last):
File "scripts/train.py", line 51, in
main(args)
File "scripts/train.py", line 25, in main
checkpoint_path=args.checkpoint_path,
File "/mnt/workspace/workgroup/yuhai/kpe/adaseq/adaseq/commands/train.py", line 106, in train_model
config.safe_get('experiment.exp_dir', 'experiments/'),
File "/mnt/workspace/workgroup/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/utils/config.py", line 296, in getattr
return getattr(self._cfg_dict, name)
File "/mnt/workspace/workgroup/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/utils/config.py", line 55, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'safe_get'
Operating system
Ubuntu 18.04.5 LTS
Python version
3.8.15
Output of pip freeze

show/hide

How to reproduce
bash ./examples/ICASSP2023_MUG_track4/end2end.sh ${sdk_token}
Code of Conduct

[X] I agree to follow this project's Code of Conduct

safe_get is added in modelscope 1.1.2, commit bb5512.
Maybe modelscope is not updated successfully?

应该只是简单的版本问题，可以加钉钉群一起看一下：4170025534

I installed modelscope by pip install "modelscope[nlp]==1.1.2" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html, the same error still exists.

Sorry to bother you guys, I run the script by different environment whose modescope is not 1.1.2.


Public DMPs PDF should open in new tab

Clicking to download a PDF from the Public DMPs list should download/open the file in a new tab. Current behavior opens it in the same tab.

working as expected now. closing.


[Build] How to integrate ota-provider-app into openwrt?

Build issue(s)
I want to integrate ota-provider-app into openwrt, but I don't know how to do. How can I integrate it to openwrt? Adding package(maybe the best way but I don't know how to do including editing makefile)? or any other methods?
Platform
No response
Anything else?
No response

I saw one at here,I think this is a direction worth learning and trying


Improve test structure

At the moment, all tests are placed under lua/refactoring/test. The naming convention of files makes it difficult to write new tests (e.g. for the same refactor strategy) and is not scalable in the long run. This PR adds substructure to the test directory to separate the tests by refactor strategy, language and test (the latter is necessary to write multiple tests for the same refactor strategy).
The new directory structure looks like this:
[~/repos/myrepos/refactoring.nvim/lua/refactoring/tests]$ tree
├── minimal.vim
├── query_spec.lua
├── query.ts
├── refactor
│   ├── 106
│   │   └── ts
│   │       └── example
│   │           ├── extract_var.example.expected.ts
│   │           ├── extract_var.example.inputs
│   │           ├── extract_var.example.start.ts
│   │           └── extract_var.example.ts.commands
│   └── 119
│       ├── go
│       │   └── simple-function
│       │       ├── extract.simple-function.expected.go
│       │       ├── extract.simple-function.go.commands
│       │       ├── extract.simple-function.inputs
│       │       └── extract.simple-function.start.go
│       ├── lua
│       │   └── simple-function
│       │       ├── extract.simple-function.expected.lua
│       │       ├── extract.simple-function.inputs
│       │       ├── extract.simple-function.lua.commands
│       │       └── extract.simple-function.start.lua
│       ├── py
│       │   └── simple-function
│       │       ├── extract.simple-function.expected.py
│       │       ├── extract.simple-function.inputs
│       │       ├── extract.simple-function.py.commands
│       │       └── extract.simple-function.start.py
│       └── ts
│           └── simple-function
│               ├── extract.simple-function.expected.ts
│               ├── extract.simple-function.inputs
│               ├── extract.simple-function.start.ts
│               └── extract.simple-function.ts.commands
├── refactor_spec.lua
├── region_spec.lua

I had to make only a single change to refactor_spec.lua for this to work: add a method to get the refactor strategy name from the path. I am not sure if you want to keep the 'refactor numbers/ids' forever but if not, this should be an easy change in the future.
With these changes, it should be much easier to add tests, which is what I actually wanted to do ^^

While we are at it, wanna drop the name of the test from the file name since its in the directory name?

Also huge thanks @alvarotroya for all the recent help.  Love the clean up going on here

I have renamed the files and introduced some variables for readability. We should definitely revisit this, there is a lot of duplicate logic for the empty test files. With the new test structure we should be able to move them into their own test case but we then need an assert callback to test the error messages. Will try to take a look into this later on

We could also think about the general structure of tests, maybe we should extract an interface for the test data and create a singleton object to run them


VS Code: Syntax highlighting for resource blocks with underscores

Fix incomplete regex expression for matching the resource name with "_" or "-" characters. Previously, any resource with these characters would not be highlighted.
PR checklist:

[ ] Added changelog entry.

I have read the CLA Document and I hereby sign the CLA

recheck

Hey @SeanLossef, thanks for this! I'll test it out and get it merged in ASAP.

Thank you @gj!

Thank you @gj for your quick response!

Released version 0.25.2 of the extension: https://marketplace.visualstudio.com/items?itemName=osohq.oso


[LayoutLM] How to use the test_predictions.txt

With the FUNDS fine-tuning model.
With the image:

82250337_0338.png (click to expand)

in testing_data FUNDS dataset

the result for --do_predict is: (click to expand)
TO: S-QUESTION
FROM: S-QUESTION
DATE: S-QUESTION
MANUFACTURER: S-QUESTION
BRAND: S-QUESTION
Oct. S-QUESTION
Dec. S-QUESTION
Jan. S-QUESTION
Nov. S-QUESTION
X S-ANSWER
B&W S-QUESTION
82250337 O
COMPETITIVE B-HEADER
PRODUCT I-HEADER
INTRODUCTION I-HEADER
PROGRESS I-HEADER
REPORT E-HEADER
Sam B-ANSWER
Zolot E-ANSWER
Kool B-ANSWER
Waterfall E-ANSWER
All I-ANSWER
Packings E-ANSWER
TYPE B-QUESTION
OF I-QUESTION
PACKINGS: E-QUESTION
D. B-ANSWER
J. I-ANSWER
Landro E-ANSWER
2- B-ANSWER
Dec- I-ANSWER
97 E-ANSWER
REPORTING B-QUESTION
PERIODS: E-QUESTION
TEST B-QUESTION
MARKET I-QUESTION
GEOGRAPHY: E-QUESTION
Divisions B-ANSWER
621 I-ANSWER
and I-ANSWER
627 I-ANSWER
wisconsin E-ANSWER
PRICE B-QUESTION
POINT: E-QUESTION
FULLS I-QUESTION
$ I-QUESTION
P/ I-QUESTION
V I-QUESTION
$ E-QUESTION
(Indicate I-QUESTION
Distributor's I-QUESTION
Cost I-QUESTION
Per I-QUESTION
Carton) E-QUESTION
SALES B-HEADER
FORCE I-QUESTION
INVOLVEMENT: E-HEADER
They B-ANSWER
have I-ANSWER
crew- I-ANSWER
worked I-ANSWER
distribution, I-ANSWER
and I-ANSWER
it I-ANSWER
is I-ANSWER
reported I-ANSWER
that I-ANSWER
they I-ANSWER
may I-ANSWER
crew- I-ANSWER
work I-ANSWER
it I-ANSWER
again I-ANSWER
Sales I-ANSWER
force I-ANSWER
has I-ANSWER
been I-ANSWER
busy E-ANSWER
promoting I-ANSWER
old I-ANSWER
style I-ANSWER
backs I-ANSWER
to I-ANSWER
clean E-ANSWER

How to know the relationship between the output labels or link the answers with his questions?
For example:
TO: S-QUESTION
has the relation:
Sam B-ANSWER
Zolot E-ANSWER
A formated output could be:
{ "TO":  ["Sam", "Zolot"] }
Or can be more complex:
Oct. S-QUESTION
Dec. S-QUESTION
Jan. S-QUESTION
Nov. S-QUESTION
X S-ANSWER
when X S-ANSWER only belongs to Nov. S-QUESTION
and the others does not have a result (blank in form, reffer to the image).
Can somebody help me please? :)

@AHardReset You may follow the FUNSD paper, which introduces an approach to link the key-value pair by another binary classifier.

Hi,
How to use the pretrained layoutlm model directly to our task such as receipt understanding.
Is the pretrained model able to predict the receipt information.?
Thank you

＠walfshow  so text_pridictioons.txt isn't a linked output .need use another classifier to link it?

@wolfshow  i am wondering how binary classifier is used for linking the question-answer. can you explain a bit.


HeatJam Online Programming Contest on CodeChef

We have decided to conduct a new programming contest HeatJam on CodeChef in association with ACM Club and Programming Society. Currently, following people are assigned with the task:
Problem Setters: @PrateekPattnaik, @ankitjha97 , @Shubhamastoo, @SamHenry97
Problem Tester/Admin: @bkhanale
Now, there are no prizes decided yet. I need to know if there is any need on including prizes provided the problems will be original and a very limited time will be provided comparing to the difficulty of the problems.
Also who will be funding the prizes (if decided) and also I would like to know the person preparing the posters and other stuff.
The date is not very fixed but we are expecting the contest to be in May itself.

For posters @IamRaviTejaG
We need a few more designers and illustrators we can't dump all the work on Ravi.
@nayonika1999 @debck @sibasish14 @nebula001 you know anyone in the first year that is interested or has some experience with illustrator or photoshop

Yes I know someone but have to ask him whether he will do or not.

Ask him and inform us on this thread

Okay, will inform you soon.

@bkhanale I think , lets not keep any prize for this contest for the time being. We can have prizes for later competitions.

@bkhanale Can you ask codechef for ladoos for winner? if possible

@legion3 can make the poster @palash25

@shivank01 The laddus depend upon the problems. If the problems are original and their editorials are well prepared and posted, they can issue laddus. Also, participation plays an important role. If there are not many participants they simply cannot issue laddus.
This time we are preparing editorials along with the problems. But, the participation is something which we cannot control. I'll still request people at CodeChef to distribute few laddus among the winners.

Participation depends on the domain of the competition, is the competition only for our college students??

@arijeetsat I'll be inviting some really good programmers for competition if the problems are good enough. I'm eagerly looking for my brother @abhishalya, he will give a good competition. He's in 9th grade and is doing far better in competitive programming.  He had participated in Google Code-in 2018. @palash25 maybe you can guide him a little.

@palash25 maybe you can guide him a little.

@bkhanale sure I love to help people out with open source development but seeing that your brother has already participated in GCI I think he would already be familiar with it. Also, it is great to see a 9th grader get involved in competitive programming and OSS development. When I was his age all I knew was how to write a program to find out palindromes :laughing:
If he needs any help you can tell him to ping me up on gitter or linkedin my username is the same as that of github.

Hi guys. My phone charger is not working and since there is an election today in Karnataka,I couldn't buy one, and so I will be coordinating through this page only.
If there is any task for ACM or for me, then directly reply to this message.
@bkhanale, you can drop any message here.
@arijeetsat  , ask the ACM team for funding the competition.

@palash25 Sure, I will tell him about it. Also, you knew how to write a palindrome program when you were in 9th! At that age I wasn't having any idea on "programs" and palindrome would have been a totally strange word :P

At that age I wasn't having any idea on "programs" and palindrome would have been a totally strange word :P

See how far you've come now. We can all learn from you.

@ankitjha97 I have your credentials. Give me your mail so that I can mail you those.

<EMAIL_ADDRESS>

The contest page is created here. Once the problems are ready we have to add them to the test page for testing purposes and for that we have to mail CodeChef. So, its better if we prepare the problems a bit before the expected time. Also, we need the editorial prepared along with the problem (The problem won't be added unless its editorial is prepared along with it). The problem setters can either comment here or can message me.

The prizes are confirmed by CodeChef:

Top 2 Participants: 250 laddus
Top 1 School Participant: 250 laddus
There are no cash prizes declared.

One problem has been added to the test page by @Samhenry97. I would like to know the status of problems from others as well.

Its good to have ladoos as the prize, great lead, have they demanded for any minimum number of participants?
And who else are the problem setters?

Oh Yeah cool, so, we have to share about the competition in some other colleges as well.
Which all colleges are you inviting people from?

I have few friends who might join us. But, majority participation is expected from our college itself. I don't have many contacts, so maybe you can help inviting people.

Okay, we should start inviting people from other colleges, @palash25  @shivank01  please do share with all your contacts.

Done shared :+1:

@bkhanale  I think we should share this on the college mail id

Yup , go ahead ,send it to everyone. Also , I have shared in everywhere possible, still you do it. 👍

The contest is over. Unfortunately we did not get any good participation. We found that going for a closed contest isn't good enough. Hence, next time onward there would only be open contests. Also, we are again negotiating with CodeChef for revised status on the prizes. The winners will be mailed separately for the status on their prizes. Closing this issue now, no need of any further discussion.


[FIX] Filtering traffic on port 8444 so chia nodes are not accepted

Incentive
Chia nodes are connecting to chaingreen because of peers with incorrect configurations. This PR is adding a filter for everything on port 8444 so that doesn't happen.
Solution
Skipping the connection to and from port 8444 on any IP address. That way there is a small chance for Chia nodes to connect to chaingreen nodes. This fix is not breaking the current protocol and is compatible with previous versions.

Fix seems to be working ok for now. Merging the PR.

Fix seems to be working ok for now. Merging the PR.

NO you didn't fix problem until the release at chaingreen version
1.2.2.dev1


add code examples using flink-scala-api

What changed?

Added code examples using flink-scala-api. These examples were forked from flink sandbox.
Added a section in README.md introducing a wide range of code examples to the users;

What next?

Add just not code examples but also tutorials explaining them in dept;

@novakov-alexey what do you think about this? Any suggestion?
Thank you in advance!

Thanks @geazi-anc. I have restructured main and example code quite a bit. Also updated scripts.

Thank you so much, @novakov-alexey!
The PR was already merged? Do I need to add something more?


Date range filters don't work (custom or league)

If I select any specific league or use custom time range to select any random time frame, it always shows no tracked results.
On the other hand, any relative time period works fine. Last 24 hours, 30 days etc all shows the expected content.
I know in the past there were timestamp problems but think they were supposed to be fixed.
Version 1.1.6
Build:<PHONE_NUMBER>

Heyho!
Will check that out, I changed few things for the league filters the last versions, maybe I bricked the Calendar conversion somewhere.
Thanks for reporting!

Hey, sorry dit not forget you. Just nearly no time the last weeks. I will provide you a pre-release testversion the next few days (per discord, we should already be in contact there).

No worries! It's not a major issue, thanks for following up!

No worries! It's not a major issue, thanks for following up!

Hey - were you be able to check again with 1.1.13? Fixed some date calculation issues there. If issue still persists, let me know. I will send you a debug version then...

I still saw some problems but with a bit more testing I think custom time works correctly as long as I understand that the year I'm setting is in Japanese calendar format and not western.
However, for league times, they're always wrong since the years are stored as western dates (2022-2023 etc) but it looks like the app is treating them as Japanese years. (Reiwa 4 - Reiwa 5).
I wonder if when we make the leage info objects there is a way to denote that the arguments are in western format (around here https://github.com/dermow/TraXile/blob/bf6fb5e8341c9c705798e985dc58ce851d2367f3/TraXile/UI/Main.cs#L1382 ?)
Except that that calendar is forced to Gregorian here (https://github.com/dermow/TraXile/blob/bf6fb5e8341c9c705798e985dc58ce851d2367f3/TraXile/UI/Main.cs#L839) so it should be read correctly.
The date selector widget is definitely in Japanese calendar format so maybe the problem in writing and reading from the form?
I'm not sure how dateTimePicker1/2 is made but maybe at some point the raw gregorian values are being copied but no the calendar...

Heyho! Coming back to that older issue: Are you still using the Tool? If you still interested in a solution, could you please provide me with the following:

Your Client.txt file
Your data.db (Appdata/Roaming/TraXile)
Your TraXile.log (Appdata/Roaming/TraXile)
Your current installed TraXile version

Will try to reproduce the output of the Calendar widget. Thanks!


Multiple file upload via UI

Is there a way to send multiple files in one request using:
app.UseSwaggerUi(typeof(Startup).GetTypeInfo().Assembly, settings =>{
			   settings.UseJsonEditor = true;
			});

first of all it allows selection of only 1 file.
And after that in file: NSwag.AspNet.Owin/SwaggerUi/swagger-ui.js it just doesn`t add files:
      if (o.type === 'file') {
        map[o.name] = o.files[0];
      }

Seems to be a problem with swagger ui and not nswag. Did you try SwaggerUi3? Is the generated swagger spec correct? Where did you find the last code snippet?

Where did you find the last code snippet?
link
version 2.2.10

Is the generated swagger spec correct?
Yes, spec is correct.

Did you try SwaggerUi3?
Hm, I`ll look on it today, thanks.

Same thing with 3rd version. HTTP side doesnt use "multiple" atribute and if you add it will still send only first file. The generated side looks good: {
"type": "file",
"name": "files",
"in": "formData",
"collectionFormat": "multi",
"x-nullable": true,
"items": {
"type": "file"
}`

Yes there is, the following shows a file upload for me, in both Swagger UI 2 and 3 :
public async Task<List<X>> X([FromForm] IFormFile file1, [FromForm] IFormFile file2)
{
            var nomintString = string.Empty;
            file1 = this.HttpContext.Request.Form.Files[0];
            file2 = this.HttpContext.Request.Form.Files[1];

For some reason the files are not bound correctly by ASP.NET Core, so that's why I get it manually from the request's context.
Which brings me to the following problem: The above approach only works for app.UserSwaggerUi(3), if I'm using the  new ApiExplorer approach, the file upload is not recognized, as can be seen in the following screencap:

Hi,
I try to transfer an array of IFile from Angular to .Net Core.
It seems that I have the same issue. my variable [FromForm] has all properties to null.
Did you find a way to bind it automatically?

I have the same problem as @barmyard. With ApiExplorer my Upload Actions are not detected correctly. Any updates?

I have the same problem. Any updates???

So the generated spec is correct and we have to wait for a swagger ui update?

I think so, yes...

Any update for this issue? At this moment the swagger issue just fixed a few days ago.
I just updated NSwag to 13.6.0. Now the generated swagger.json looks like:
"requestBody": {
    "content": {
        "multipart/form-data": {
            "schema": {
                "type": "object",
                "properties": {
                    "audioFileList": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "binary"
                        }
                    }
                }
            }
        }
    }
}

This schema is the same as latest swagger client. However when I use the swagger ui to send request to sever, I found that the request is like:
Host: localhost:8446
Connection: keep-alive
Content-Length: 157
accept: application/json
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37
Ocp-Apim-Subscription-Key: 5b9e48e85daf4c32aab4d403d0eea5cd
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryplFirfy6HmAbgpAl
Origin: https://localhost:8446
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://localhost:8446/UI/index.html?urls.primaryName=OpenApi%203.0
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: ai_user=I8/5h|2020-04-18T00:44:53.179Z; grafana_session=348d3dc50bd60b4c0045046d35440dc9

------WebKitFormBoundaryplFirfy6HmAbgpAl
Content-Disposition: form-data; name="audioFileList"

[object File]
------WebKitFormBoundaryplFirfy6HmAbgpAl--

The request only sent string '[object file]" instead of the form data that I selected (also, content length is only 157).
Hence, any thoughts about it? Thanks!

I confirm that:

Swagger UI 3 send files array as [object File]

curl -X POST "http://localhost:5000/api/attachments" -H "accept: application/json" -H "Authorization: Bearer eyJ...trimmed..."
-H "Content-Type: multipart/form-data" -F "StructureId=14" -F "Description=dsgf" -F "Files=[object File]"

Open API schema looks good and generates correct TypeScript code (the only thing I had to adjust was mapping form files to to objects of FileParameter - code snippet is below as well) which works fine.

"/api/attachments": {
      "post": {
        "tags": [           "Attachments"         ],
        "operationId": "Attachments_AttachStructureFile",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "StructureId": {                     "type": "integer",                    "format": "int32"                  },
                  "Description": {                    "type": "string",                    "nullable": true                  },
                  "Files": {
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {                  "$ref": "#/components/schemas/SipAttachStructureFileResponse"                }
              }
            }
          }
        },
        "security": [          {            "JWT": []          }        ]
      }
    }

What I use:

NSwag.AspNetCore v 13.7.0 (package in API project which is used to generate OpenAPI spec for Swagger UI 3)
NSwagStudio (x64) <IP_ADDRESS> (this what I use to generate TS client)

So it's fine except using Swagger UI 3 for uploading files. Any workarounds how to make Swagger UI sending correct data?

Do we need to update Swagger UI 3 in NSwag.AspNetCore?
Didnt do that for some months so maybe there are already improvements.

Hi,
Any news about this point?
I try with Swashbuckle and UI manage multi files

Different from Swashbuckle, NSwag still can't handle multiple files, this is the issue opened in swashbuckle https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1029, this has to be fixed asap.

Do we need to update Swagger UI 3 in NSwag.AspNetCore? Didnt do that for some months so maybe there are already improvements.

Looks like it has been fixed here: https://github.com/swagger-api/swagger-ui/releases/tag/v3.26.0

I also have still the same problem.
public async Task<IResult> MyPostCall(HttpRequest request, ISender sender, [FromForm] List<IFormFile> files)
I have to use [FromForm] List<IFormFile> to get the Choose File Button. Otherwise it does not appear but files remains empty while the request.Form.Files contains the uploaded files.
I also tried IFormFileCollection but this also does not work.
My only solution to get the Choose File button is to implement the not filled List and handling the request.Form.Files


[Release-1.26] - GO 1.20.6 breaks cri-dockerd

Backport fix for GO 1.20.6 breaks cri-dockerd

#8089

Validated on release-1.26 branch with commit 52e2c08a
Environment Details

Infrastructure

[x] Cloud
[ ] Hosted

Node(s) CPU architecture, OS, and Version:

PRETTY_NAME="Ubuntu 22.04.2 LTS"

Cluster Configuration:

1 server

Config.yaml:

write-kubeconfig-mode: 644
cluster-init: true
docker: true

Additional files

nginx-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80

Testing Steps

Copy config.yaml

$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s

Install k3s
Ensure k3s is up and running
Deploy nginx-deployment.yaml
Check cri-dockerd version
Check deployments

$ kubectl get pods -A | grep nginx
default       nginx-deployment-85996f8dbd-nwf9r         1/1     Running     0          11s
default       nginx-deployment-85996f8dbd-pjssq         1/1     Running     0          11s

Replication Results:

k3s version used for replication:

k3s version v1.26.7+k3s1 (e47cfc09)
go version go1.20.6

cri-dockerd version from logs

cri-dockerd version v0.3.2-0.20230123224936-bcd78c2d21d8 (HEAD)

Execute command in Pod's container via kubectl exec, observed the error http: invalid Host header

$ kubectl exec -it -n default nginx-deployment-85996f8dbd-nwf9r -- bash
error: Internal error occurred: error executing command in container: http: invalid Host header

Validation Results:

k3s version used for validation:

k3s version v1.26.7+k3s-52e2c08a (52e2c08a)
go version go1.20.6

cri-dockerd version from logs

cri-dockerd version v0.3.4-k3s1 (HEAD)

Execute command in Pod's container via kubectl exec, observed no error

$ kubectl exec -it -n default nginx-deployment-85996f8dbd-nwf9r -- bash
root@nginx-deployment-85996f8dbd-nwf9r:/#

Additional context / logs:

Tested on new install and upgrades