chore: bump react-native-flag-secure-android (and use npm package)

A new maintainer forked the original project 1 and published the fork 2 to npm.

Oops, forgot the new patch file.


File & class name restructure

Closes #46

No functionality has been changed, just file & class names
This will not trigger a new release (the Release Github Action has been temporarily disabled until #47 and #48 are completed)
The primary Notebook will be modified to reflect these changes (along with the changes of #45) at another time via a separate PR

Will we potentially break other notebooks?

Will we potentially break other notebooks?

No since all previous notebooks have a "locked" adbnx_adapter version, so any changes made here will not affect them.
In fact "main" notebook will soon be updated to reflect the changes made here.
We will be making a new release (3.0.0) as soon as I address #47 and #48


Use OAuth2 token_type equal "Bearer" by default everywhere

There is a line
private String tokenType = BEARER_TYPE.toLowerCase();
in DefaultOAuth2AccessToken class. Isn't it inconsistent with RFC stating that the type name should be "Bearer" (https://tools.ietf.org/html/rfc6750#section-6.1.1)?

Historical reasons (that's the way we inherited this project). The RFC used to say it was case insensitive, but I can't find that bit now, so it must have changed. I suspect this might be a breaking change for some apps, so we probably ought to wait till 2.1 to change it. The client always sends back the token type it gets from the server though, so in practice it probably often doesn't matter much.

This causes a problem on https://github.com/spring-cloud/spring-cloud-security/blob/master/src/main/java/org/springframework/cloud/security/oauth2/resource/UserInfoTokenServices.java#L102-L103 that creates a token without setting the type.
This means that the userInfoUri request (and tokenInfoUri) are made with Authentication: "bearer xxx" which fails for Google+.
Changing to "Bearer" fixes this issue. This issue may also be causing https://github.com/spring-cloud/spring-cloud-security/issues/59

Yeah I know, but it's not something that will get fixed here in 2.0.* (as already explained). The spring cloud big you mentioned is unrelated, but if you are using spring cloud there are workarounds available (look through github issues for mentions of toke type). The best one is to only send tokens from a rest template that was used to obtain the token (because the token type usually comes with the response from the /token endpoint). If you can't do that then you need to customize the rest template, adding your own "authenticator" (it's a standard extension point in spring oauth).

Thanks, I am overriding loadAuthentication in my own UserInfoTokenServices so I can set the tokenType on the token in my version of getMap for now.

Hey guys, just want to point out that the token type field that is returned with an access token IS case insensitive: https://tools.ietf.org/html/rfc6749#section-4.2.2
When USING bearer tokens you need to pass the string "Bearer" (as linked in the RFC by @karwer) but it's improper to ever take the string returned as token_type and pass it along in an Authorization header without some logic involved with the token type.
IMHO not returning the token type with access tokens as lower case implies associations that are not officially there in the specs. We've dealt with many clients trying to use our OAuth server with bad clients that do bad non-spec behavior, and the behavior right now on spring security (in this regard) seems perfect and on-spec to me.

OK, I missed the statement that it is case insensitive. So perhaps there is no point in changing this indeed.

Case-insensitivity applies for the token type field. However there is no ambiguity on the casing in the request headers it should be 'Bearer'. This should be addressed as multiple APIs respect this strictly.

Spring Cloud now has "Bearer" by default for the user info endpoint (which is the only place anyone ever complained about this), and a configuration setting for changing it if you need to. See https://github.com/spring-cloud/spring-cloud-security/issues/63.

We ran into this issue with someone using and old version of WSO2 API Manager (<1.8.0):
https://wso2.org/jira/browse/APIMANAGER-2921
The "bug" was fixed in that software, but we had no control over the service side and could not upgrade.  Our hacky solution was to copy DefaultOAuth2AccessToken into our project and make the following changes:
private String tokenType = BEARER_TYPE; // Removed toLowerCase()

and
	public void setTokenType(String tokenType) {
		if(BEARER_TYPE.equalsIgnoreCase(tokenType)) {
			// Force "Bearer" for any case variation
			this.tokenType = BEARER_TYPE;
		} else {
			// Otherwise use as-is
			this.tokenType = tokenType;
		}
	}

Not a great solution, but it worked for us.

Just hitting the same problem, with a scala based resource server (that only checks for Bearer).
Regarding comment of @kelsin, rfc6749 describes the data returned by the auth server, https://tools.ietf.org/html/rfc6750#section-2.1 describes Bearer token handling in Request header. Here it does not say anything about case insensitive and uses "Bearer"

You'll run into this when integrating with WSO2 Identity Server 5.0
With spring-security-oauth2 2.0.8.RELEASE I just included this class.

public class WSO2OAuth2RequestAuthenticator extends DefaultOAuth2RequestAuthenticator {

  @Override
  public void authenticate(OAuth2ProtectedResourceDetails resource,
      OAuth2ClientContext clientContext, ClientHttpRequest request) {
    OAuth2AccessToken accessToken = clientContext.getAccessToken();
    String tokenType = OAuth2AccessToken.BEARER_TYPE;
    request.getHeaders().set("Authorization",
        String.format("%s %s", tokenType, accessToken.getValue()));
  }

}

@nicodewet do we need this class to be annotated with @Configuration ? or just add this to the application. I can't get it working.

@hrandika no, there's a setter for it in OAuth2RestTemplate. Create an instance and inject it yourself when you create the template, or if someone else created it for you autowire that one and call its setter.

I have used the WSO2OAuth2RequestAuthenticator class as follows, which is in line with @dsyer's advice. No need for @Configuration on WSO2OAuth2RequestAuthenticator nor LoggingRequestInterceptorOAuth2RestTemplateCustomizer.
public class LoggingRequestInterceptorOAuth2RestTemplateCustomizer
    implements UserInfoRestTemplateCustomizer {

  @Override
  public void customize(OAuth2RestTemplate template) {
    ClientHttpRequestInterceptor interceptor = new ClientHttpRequestInterceptor() {

      private final Logger log = LoggerFactory.getLogger(getClass());

      @Override
      public ClientHttpResponse intercept(HttpRequest request, byte[] body,
          ClientHttpRequestExecution execution) throws IOException {

        ClientHttpResponse response = execution.execute(request, body);

        log(request, body, response);

       return response;
      }

      private void log(HttpRequest request, byte[] body, ClientHttpResponse response)
          throws IOException {
        log.info("HttpRequest METHOD: {}", request.getMethod().toString());
        log.info("HttpRequest HEADERS: {}", request.getHeaders().toString());
        log.info("HttpRequest BODY: {}", body.toString());
        log.info("ClientHttpResponse STATUS CODE: {}", response.getStatusCode().toString());
        log.info("ClientHttpResponse HEADERS: {}", response.getHeaders().toString());
      }
    };
    List<ClientHttpRequestInterceptor> ris = new ArrayList<ClientHttpRequestInterceptor>();
    ris.add(interceptor);
    template.setInterceptors(ris);

    template.setAuthenticator(new WSO2OAuth2RequestAuthenticator());
  }

}

FYI, I have discovered this issue is preventing use of the BitBucket APIs where this section states an expectation of "Bearer". When changing "B" to "b" via manual curl testing I was able to confirm that was the exact point of failure.
Regarding the RFC 6750 references above, I don't think 4.2.2 is the right one to consider. In the scenario I encountered it is 2.1 that is relevant. It doesn't explicitly state case insensitivity or not, but "Bearer" is stated five times with an uppercase "B".
For posterity, my work around seems to be quite similar to ones above, declaring the following and passing an instance of that to the OAuth2RestTemplate constructor.
import org.springframework.security.oauth2.client.DefaultOAuth2ClientContext;
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

class BearerFixOAuth2ClientContext extends DefaultOAuth2ClientContext {
    @Override
    public void setAccessToken(OAuth2AccessToken accessToken) {
        if ("bearer".equals(accessToken.getTokenType())) {
            final DefaultOAuth2AccessToken fixedToken = new DefaultOAuth2AccessToken(accessToken);
            fixedToken.setTokenType("Bearer");
            super.setAccessToken(fixedToken);
        } else {
            super.setAccessToken(accessToken);
        }
    }
}

Understandably there's going to be OAuth2 servers that fall on either side of the "Bearer" | "bearer" fence, so I would like to at least see an option in DefaultOAuth2AccessToken to normalize to lowercase or not.

I just run into this issue when integrating with IBM API Connect. In this case, the authorization server returns a "bearer" token_type. When the spec explicitly states that we have to use "Authorization: Bearer XXXX" I don't see the point, in DefaultOAuth2RequestAuthenticator, of using the token_type returned but the authorization server instead of using always "Bearer".

Among the other issues listed, this creates an issue with FOS's PHP OAuth2 library (https://github.com/FriendsOfSymfony/oauth2-php/issues/98).
The fact that "token_type" is used as the prefix for the string is quite odd to me -- what is the use case that this enables? "token_type" is effectively a JSON enum (yes, I know those don't actually exist), so there's no reason to pass it through. As @codependent said, it should always simply be set to "Bearer".

We had a similar situation where the token_type must be Bearer not bearer for backward compatibility reasons. So we created TokenEnchancer and added the following block of code,
if (OAuth2AccessToken.BEARER_TYPE.equalsIgnoreCase(accessToken.getTokenType())) {	 		((DefaultOAuth2AccessToken) accessToken).setTokenType(OAuth2AccessToken.BEARER_TYPE); }

According to the OAuth 2.0 Bearer Token Usage spec section 2.1 Authorization Request Header field, the format of the credentials field is:
credentials = "Bearer" 1*SP b64token
Note that in the spec, "Bearer" is upper-case.

I experienced side effects using BearerFixOAuth2ClientContext as @itzg suggested when optaining new access tokens as no OAuth2ClientContextFilter gets added by the @EnableOAuth2Client annotation when not using the injected client context. I finally extended the JdbcClientTokenServices I am using overriding saveAccessToken and getAccessToken methods. I added the following method for setting correct token type:
private void setRFC675CompliantBearerType(final OAuth2AccessToken accessToken) {         if (accessToken != null && accessToken instanceof DefaultOAuth2AccessToken) {             ((DefaultOAuth2AccessToken)accessToken).setTokenType("Bearer");         }     }
May be this helps as well...

This will be resolved via #1346

Closing in favour of #1346


Mono unit test

Use Mono on Travis-CI to run base unit tests for the application.
See https://github.com/nbarbettini/csharp-travis-example and http://xunit.github.io/docs/getting-started-desktop for example.

As the project is using static classes and Gmail API, its hard to unit test it. Closing the issue for now.


Add ability to exclude specific connection from broadcast

If you use a connection to perform an action that causes a broadcast you will always have to exclude yourself from reperforming the action client side. This feels like a pretty core use case, and feels like something that should be a first class citizen within ActionCable.
For reference this is how Pusher does this: https://pusher.com/docs/server_api_guide/server_excluding_recipients
The idea would be something like this:
class ChatChannel < ApplicationCable::Channel
    def subscribed
        @id = some_unique_connection_id
        stream_from "chat"
    end

    def send_message(data)
        ActionCable.server.broadcast("chat", data, exclude: @id)
    end
end

Where exclude would allow you to tell ActionCable to broadcast the message out to everyone except the connection given.
Ideally @id would actually be set by ActionCable::Channel and you could simply use it as something like current_connection

That use case makes sense. I think we can make it smarter, though. Basically, tag broadcast messages with an internal identifier for the connection, and then have something like stream_from "chat", exclude_own_messages: true.
If you want to work on that, please open a PR!


all files changed to linux line endings

edited all text files and changed them to have linux line endings.
recently i ran into a problem with pr rejected because of windows vs linux line endings, updating all files to comply with linux line endings
also adding ci  and pre-commit to verify for this

https://github.com/sonic-net/DASH/pull/380 adds the CI and pre-commit hooks that will verify all files comply with linux line endings

Agreed to merge per community WG meeting today.


Add windows e2e coverage in circle ci

Description of changes

This PR adds windows e2e tests to our circle ci configs alongside our existing linux tests.
There are several tests which do not pass on windows currently. These are due to issues with the test harness, such as java and gradle not being available on the windows host or test that send extraneous line endings that cause failures on windows.
Those failing tests are excluded from the circle ci workflow via list of failures in scripts/split-e2e-tests.ts. Each of the tests in that list should be individually examined in windows/circleci environment, and fixed as follow up tasks.
This PR at least gives us a baseline of windows e2e coverage, which we never had before.
Description of how you validated changes

test job available here since this PR is configured to run the full suite against the win-e2e branch
test job run against my personal fork with the included tests passing on windows hosts.

Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #7956 (58d661e) into master (0489c7f) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #7956   +/-   ##
=======================================
  Coverage   53.69%   53.69%
=======================================
  Files         563      563
  Lines       28555    28555
  Branches     5541     5541
=======================================
  Hits        15334    15334
  Misses      12224    12224
  Partials      997      997

Impacted Files
Coverage Δ

...function-runtime-provider/src/utils/legacyBuild.ts
53.19% <0.00%> (ø)

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 0489c7f...58d661e. Read the comment docs.


When tagging a new version of inexor-core mention current flex-version

When tagging a new version of inexor-core mention current flex-version in tag description.
This should help to reproduce builds of Inexor 1:1.

We have the same problem with the media repository.

https://stackoverflow.com/a/37805651/3135319

idk fohlen. the idea is to post it in the release description, so its easier applicable for users.
the ci would basically do:

clone flex/media (with depth 1)
checkout master
get sha of head
use that information when creating the tag description (is appveyor or travis doing it, i dont remember)

Cloning isn't necessary, there is https://git-scm.com/docs/git-ls-remote

The best way of doing this is with submodules

add a folder named refs or something
add submodules for flex, essential, additional
increase the submodule commit(s) on tagging
add this to the release commit

=> voila. 100 percent reproducable. no need to spam the commit log.

=> voila. 100 percent reproducable. no need to spam the commit log.

Actually it's your solution which would spam the commit log (by creating new commits).
My idea was simple mentioning the commit hashes in the tag description.


Already promisified functions must not be re-promisified

i.e., promisify(promisify(fn)) promisifies only once.

Hey -- I'm not sure why you would need this. What's the use case? Thanks :)


Dynamic alerts spike 1

Related PRs: https://github.com/alphagov/notifications-credentials/pull/220 and https://github.com/alphagov/notifications-broadcasts-infra/pull/273

Superseded by https://github.com/alphagov/notifications-govuk-alerts/pull/151


Run file analysis asynchronously

Another important change is that now the analysis of all other files is stopped once any file fails, contrary to the current behavior.

@microsoft-github-policy-service agree

I have issues with PCH's.
Seems like multiple processes can't [for some reason] use it simultaneously. [As a permission denied error is raised].
Any ideas?


Enhancement requests for "quick Fix" prompt

Validations

[ ] I believe this is a way to improve. I'll try to join the Continue Discord for questions
[ ] I'm not able to find an open issue that requests the same enhancement

Problem
I want to customize the content of the quickfix prompt.

Solution

Make the prompt content configurable as an option.

Make the number of referenced code lines configurable as an option.
(ex 3 -> 10)

@iblea What is the number of lines and prompt that you would want? My thought is that we should just change the default to something better instead of making it an option. We could also try to auto-detect the relevant lines based on AST

@sestinj
Hmm.. I am currently using the extension with the line count set to 10 through modification.
I think three lines are a bit too short to understand the context of an error.
As for prompts, it seems users can set them in various ways, such as 'Please answer in Korean' or 'Please include the references used in your answer.'
Although you can modify the 'systemMessage' and 'promptTemplates' sections in 'continue - config.json', these parts affect the entire conversation, so we requested additional features for more detailed settings.


Move most annotation rendering logic to src/display/annotation_layer.js

Helps with #6689 (we might want to consider moving the link logic in a follow-up too to completely fix it) and overall code structure.
I have tested this PR with a set of 20 PDF files with various kinds of annotations (Link, Text, Widget, et cetera) and found no changes in rendering, behavior or printing.

/botio-linux preview

/botio test

/botio-linux test

/botio-linux preview

/botio test

Looks good after comments are addressed.

/botio-linux preview

/botio test

Merging with r=yurydelendik and r=me.


⚠ Bofrost.de has degraded performance

In da23475, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1746 ms

Resolved: Bofrost.de performance has improved in a7b1880 after 6 minutes.


[Feature] Replace pointers with ref, out... (For a cleaner code)

Before submitting a new issue, please verify and check:

[x] The issue is specific to Raylib-cs and not raylib
[x] I checked there is no similar issue already reported
[x] My code has no errors or misuse of Raylib-cs

Issue description
Hello!
I would suggest to change the methods that use pointers to the features that C# use like: out, ref...
Why i suggest this?
Because sadly pointers in c# are very messy... :/
Example
    public static extern unsafe void QuaternionToAxisAngle(Quaternion q, Vector3* outAxis, float* outAngle);

TO:
    public static extern unsafe void QuaternionToAxisAngle(Quaternion q, out Vector3 axis, out float angle);

If you accept this feature request i could do a pr for it :)

I see it is not that easy.


Issue with Reddit .RSS feeds

According to this: https://www.reddit.com/wiki/rss Reddit offers support for .rss, however when I try to use Nadeko to add the feed an error comes up and it fails to add the feed.

Post al RSS stuff here: https://github.com/Kwoth/NadekoBot/issues/1628


Set granular token permissions for GitHub Actions

Following best practise, grant the GITHUB_TOKEN only the required permissions. The create release tag needs to be able to:

create the tag for the version (POST /repos/{owner}/{repo}/git/refs)
update the latest-release tag (PATCH /repos/{owner}/{repo}/git/refs/{ref})

According to GitHub's documentation, write access on 'contents' is what is required to be able to do these two actions.
Using this approach also allows us to change the default permissions for workflows to 'Read repository contents' only.

I can't think of a good way to test this – but I'm reasonably confident in the change based on GitHub's docs and the way this has worked in other repos.
I guess we'd need to remember to keep an eye on the next release to ensure it goes out correctly?


DevOps Extension including v1.5.0 of datafactory tools

Hello,
I wonder if you have any timeframe for the release of an updated version of the Azure DevOps extension which will include the latest 1.5.0 version of azure.datafactory.tools dependency?
https://github.com/Azure-Player/azure.datafactory.tools/releases/tag/v1.5
Thanks,
Stephen

Yes, it should be next week.

That sounds great. Thanks for the update.


kaufkauflist: 2.2.0 → 3.0.0

Description of changes
Updated kaufkauflist
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Not sure if this is major enough for the release notes…

If you removed packages or made some major NixOS changes, write about it in the release notes for the next stable release in nixos/doc/manual/release-notes.
--CONTRIBUTING.md

sounds different from

(Package updates) Added a release notes entry if the change is major or breaking
--the issue template

Release: https://codeberg.org/annaaurora/kaufkauflist/releases/tag/v3.0.0
Diff: https://codeberg.org/annaaurora/kaufkauflist/compare/v2.2.0...v3.0.0

Remove buildPackages and replace buildPackages.buildGoModule / buildPackages.esbuild with the ones already in the attribute set

It's needed for crosscompilation, see https://github.com/NixOS/nixpkgs/pull/208964#discussion_r1068801499.

Though I removed esbuild and buildGoModule because they weren't used.


Fixes order dependencies in unit tests

Some tests were changing global configuration settings
without restoring them afterwards. Fixes #362

Excellent, thank you sir!


support pagination for get_issue_list

Currently using a Pagure service the get_issue_list method returns only the last 20 issues of a project. This is because Pagure paginate the results, I have not looked at GitHub and GitLab but I guess it works the same.
Ideally get_issue_list should return a list of all the issues for a project and the pagination should be transparent to the user.

@cverna Thanks for the info!
It's related to this issue: #325
For now, we need to:

[ ] get all the issues in the get_issue_list
[ ] add tests with the project having more than 20 issues
[ ] check the other implementation and fix+test if needed


Running two stores on the same computer

For testing it's useful to have two OpenBazaar nodes running on the same computer. What is the easiest way to achieve that?

When you run the server, add the --datadir= flag to it, and specify a different data directory.
That will run a second (or third, or forth...) instance of the server using that directory.
You will need to init the server in that directory first, and edit the config file that is created. Change the values in the Addresses object to use different ports, so no two nodes use the same ones.
For example, change the values below to 4102, 4101, etc.
"Addresses": {
    "API": "",
    "Gateway": "/ip4/<IP_ADDRESS>/tcp/4002",
    "Swarm": [
      "/ip4/<IP_ADDRESS>/tcp/4001",
      "/ip6/::/tcp/4001",
      "/ip4/<IP_ADDRESS>/tcp/9005/ws",
      "/ip6/::/tcp/9005/ws"
    ]
  },

Correct


Creating subtitles using whisper.cpp does not work using long videos

Creating subtitles using whisper.cpp does not work in our setup using long videos.
I have tested the Opencast Transcription Service SpeechtoText for whisper with whisper.cpp and corresponding workflows for German and English using videos with a length of 90 min.
The result cannot be saved at the end of the transcription job.
This is the logs:
2024-04-11T09:57:50,514 | INFO  | (ComposerServiceImpl:572) - Starting parallel encode with profile audio-whispercpp with job load 1
2024-04-11T09:58:09,274 | INFO  | (EncoderEngine:216) - Executing encoding command: [ffmpeg, -nostdin, -nostats, -i, /srv/opencast/workspace/https_domain.com/assets/assets/402ce3a8-13dc-41a7-82a9-867f34d3cc24/0d817546-f3ee-4ff8-a1b4-05f668be5239/9/HU_LCP_007_20221025_131000_S2R1.m4v, -vn, -ar, 16000, -ac, 1, -c:a, pcm_s16le, /srv/opencast/workspace/https_domain.com/assets/assets/402ce3a8-13dc-41a7-82a9-867f34d3cc24/0d817546-f3ee-4ff8-a1b4-05f668be5239/9/HU_LCP_007_20221025_131000_S2R1_c5cd9e95-303e-40b8-a9bd-46b8290745b8-stt.wav]
2024-04-11T09:58:09,358 | INFO  | (EncoderEngine:491) - Chapters:
2024-04-11T09:58:09,358 | INFO  | (EncoderEngine:491) - Chapter #0:0: start 0.000000, end 5999.477000
2024-04-11T09:58:09,358 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:58:09,358 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:58:09,363 | INFO  | (EncoderEngine:460) - Identified output file /srv/opencast/workspace/https_domain.com/assets/assets/402ce3a8-13dc-41a7-82a9-867f34d3cc24/0d817546-f3ee-4ff8-a1b4-05f668be5239/9/HU_LCP_007_20221025_131000_S2R1_c5cd9e95-303e-40b8-a9bd-46b8290745b8-stt.wav
2024-04-11T09:58:09,363 | INFO  | (EncoderEngine:491) - ISFT            : Lavf60.21.100
2024-04-11T09:58:09,363 | INFO  | (EncoderEngine:491) - Chapters:
2024-04-11T09:58:09,363 | INFO  | (EncoderEngine:491) - Chapter #0:0: start 0.000000, end 5999.477000
2024-04-11T09:58:09,363 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:58:18,380 | INFO  | (EncoderEngine:491) - [out#0/wav @ 0x6f8e640] video:0KiB audio:187481KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000041%
2024-04-11T09:58:18,384 | INFO  | (EncoderEngine:240) - Tracks {video=/srv/opencast/workspace/https_domain.com/assets/assets/402ce3a8-13dc-41a7-82a9-867f34d3cc24/0d817546-f3ee-4ff8-a1b4-05f668be5239/9/HU_LCP_007_20221025_131000_S2R1.m4v} successfully encoded using profile 'audio-whispercpp'
2024-04-11T09:58:19,427 | INFO  | (ComposerServiceImpl:533) - Copied the encoded file to the workspace at https://domain.com/files/collection/composer/12146261_0.wav
2024-04-11T09:58:24,587 | INFO  | (ComposerServiceImpl:553) - Deleted the local copy of the encoded file at /srv/opencast/workspace/https_domain.com/assets/assets/402ce3a8-13dc-41a7-82a9-867f34d3cc24/0d817546-f3ee-4ff8-a1b4-05f668be5239/9/HU_LCP_007_20221025_131000_S2R1_c5cd9e95-303e-40b8-a9bd-46b8290745b8-stt.wav
2024-04-11T09:58:28,212 | INFO  | (ComposerServiceImpl:572) - Starting parallel encode with profile audio-whispercpp with job load 1
2024-04-11T09:58:51,005 | INFO  | (EncoderEngine:216) - Executing encoding command: [ffmpeg, -nostdin, -nostats, -i, /srv/opencast/workspace/https_domain.com/assets/assets/a225fa83-3181-4b78-b169-e2a5a904607b/07d8a5af-2cf0-4d0f-b6e0-41c9b58e3860/9/HU_LCP_007_20221021_091000_S2R1.m4v, -vn, -ar, 16000, -ac, 1, -c:a, pcm_s16le, /srv/opencast/workspace/https_domain.com/assets/assets/a225fa83-3181-4b78-b169-e2a5a904607b/07d8a5af-2cf0-4d0f-b6e0-41c9b58e3860/9/HU_LCP_007_20221021_091000_S2R1_b3ead866-1b16-4f30-8d1d-022bb0de36dd-stt.wav]
2024-04-11T09:58:51,087 | INFO  | (EncoderEngine:491) - Chapters:
2024-04-11T09:58:51,087 | INFO  | (EncoderEngine:491) - Chapter #0:0: start 0.000000, end 6033.600000
2024-04-11T09:58:51,087 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:58:51,087 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:58:51,092 | INFO  | (EncoderEngine:460) - Identified output file /srv/opencast/workspace/https_domain.com/assets/assets/a225fa83-3181-4b78-b169-e2a5a904607b/07d8a5af-2cf0-4d0f-b6e0-41c9b58e3860/9/HU_LCP_007_20221021_091000_S2R1_b3ead866-1b16-4f30-8d1d-022bb0de36dd-stt.wav
2024-04-11T09:58:51,092 | INFO  | (EncoderEngine:491) - ISFT            : Lavf60.21.100
2024-04-11T09:58:51,092 | INFO  | (EncoderEngine:491) - Chapters:
2024-04-11T09:58:51,092 | INFO  | (EncoderEngine:491) - Chapter #0:0: start 0.000000, end 6033.600000
2024-04-11T09:58:51,092 | INFO  | (EncoderEngine:491) - vendor_id       : [0][0][0][0]
2024-04-11T09:59:00,284 | INFO  | (EncoderEngine:491) - [out#0/wav @ 0x881ba40] video:0KiB audio:188549KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000040%
2024-04-11T09:59:00,289 | INFO  | (EncoderEngine:240) - Tracks {video=/srv/opencast/workspace/https_domain.com/assets/assets/a225fa83-3181-4b78-b169-e2a5a904607b/07d8a5af-2cf0-4d0f-b6e0-41c9b58e3860/9/HU_LCP_007_20221021_091000_S2R1.m4v} successfully encoded using profile 'audio-whispercpp'
2024-04-11T09:59:01,243 | INFO  | (ComposerServiceImpl:533) - Copied the encoded file to the workspace at https://domain.com/files/collection/composer/12146263_0.wav
2024-04-11T09:59:06,378 | INFO  | (ComposerServiceImpl:553) - Deleted the local copy of the encoded file at /srv/opencast/workspace/https_domain.com/assets/assets/a225fa83-3181-4b78-b169-e2a5a904607b/07d8a5af-2cf0-4d0f-b6e0-41c9b58e3860/9/HU_LCP_007_20221021_091000_S2R1_b3ead866-1b16-4f30-8d1d-022bb0de36dd-stt.wav
2024-04-11T09:59:14,091 | INFO  | (WhisperCppEngine:328) - Using language de from workflows
2024-04-11T09:59:14,091 | INFO  | (WhisperCppEngine:346) - Executing WhisperC++'s transcription command: [/usr/bin/whisper.cpp, /srv/opencast/workspace/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav, --model, /usr/share/whisper.cpp/medium.bin/ggml-medium.bin, -ovtt, -oj, --output-file, /srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1, -t, 8, --language, de]
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_init_from_file_with_params_no_state: loading model from '/usr/share/whisper.cpp/medium.bin/ggml-medium.bin'
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: loading model
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_vocab       = 51865
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_audio_ctx   = 1500
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_audio_state = 1024
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_audio_head  = 16
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_audio_layer = 24
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_text_ctx    = 448
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_text_state  = 1024
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_text_head   = 16
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_text_layer  = 24
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_mels        = 80
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: ftype         = 1
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: qntvr         = 0
2024-04-11T09:59:14,095 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: type          = 4 (medium)
2024-04-11T09:59:14,125 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: adding 1608 extra tokens
2024-04-11T09:59:14,126 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: n_langs       = 99
2024-04-11T09:59:14,129 | DEBUG | (WhisperCppEngine:362) - whisper_model_load:      CPU buffer size =  1533.52 MB
2024-04-11T09:59:14,696 | DEBUG | (WhisperCppEngine:362) - whisper_model_load: model size    = 1533.14 MB
2024-04-11T09:59:14,696 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: kv self size  =  132.12 MB
2024-04-11T09:59:14,696 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: kv cross size =  147.46 MB
2024-04-11T09:59:14,696 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: compute buffer (conv)   =   25.61 MB
2024-04-11T09:59:14,697 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: compute buffer (encode) =  170.28 MB
2024-04-11T09:59:14,698 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: compute buffer (cross)  =    7.85 MB
2024-04-11T09:59:14,699 | DEBUG | (WhisperCppEngine:362) - whisper_init_state: compute buffer (decode) =   98.32 MB
2024-04-11T09:59:16,022 | DEBUG | (WhisperCppEngine:362) -
2024-04-11T09:59:16,023 | DEBUG | (WhisperCppEngine:362) - system_info: n_threads = 8 / 24 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | METAL = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | CUDA = 0 | COREML = 0 | OPENVINO = 0 |
2024-04-11T09:59:16,023 | DEBUG | (WhisperCppEngine:362) -
2024-04-11T09:59:16,023 | DEBUG | (WhisperCppEngine:362) - main: processing '/srv/opencast/workspace/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav' (96536917 samples, 6033.6 sec), 8 threads, 1 processors, 5 beams + best of 5, lang = de, task = transcribe, timestamps = 1 ...
2024-04-11T09:59:16,023 | DEBUG | (WhisperCppEngine:362) -
2024-04-11T09:59:32,096 | DEBUG | (WhisperCppEngine:362) -
...
2024-04-11T11:19:22,512 | DEBUG | (WhisperCppEngine:362) - output_vtt: failed to open '/srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1.vtt' for writing
2024-04-11T11:19:22,512 | DEBUG | (WhisperCppEngine:362) - output_json: failed to open '/srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1.json' for writing
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) -
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:     load time =   600.54 ms
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:     fallbacks =   4 p /  34 h
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:      mel time =  3702.11 ms
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:   sample time = 74343.51 ms / 114438 runs (    0.65 ms per run)
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:   encode time = 2781819.75 ms /   250 runs (11127.28 ms per run)
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:   decode time = 43027.06 ms /  1515 runs (   28.40 ms per run)
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:   batchd time = 1414845.75 ms / 111659 runs (   12.67 ms per run)
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:   prompt time = 488239.47 ms / 56527 runs (    8.64 ms per run)
2024-04-11T11:19:22,537 | DEBUG | (WhisperCppEngine:362) - whisper_print_timings:    total time = 4808441.50 ms
2024-04-11T11:19:22,706 | DEBUG | (WhisperCppEngine:362) -
2024-04-11T11:19:22,708 | INFO  | (WhisperCppEngine:368) - WhisperC++ process finished with exit code 0
2024-04-11T11:19:22,709 | INFO  | (WhisperCppEngine:385) - Transcription failed closing WhisperC++ transcription process for: /srv/opencast/workspace/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav
2024-04-11T11:19:22,799 | INFO  | (ServiceRegistryJpaImpl:2268) - State set to WARNING for current service org.opencastproject.speechtotext on host https://opencast3.cms.hu-berlin.de
2024-04-11T11:19:23,348 | ERROR | (AbstractJobProducer$JobRunner:343) - Error handling operation 'speechtotext':
org.opencastproject.speechtotext.api.SpeechToTextServiceException: Error while generating subtitle from https://domain.com/files/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav
	at org.opencastproject.speechtotext.impl.SpeechToTextServiceImpl.process(SpeechToTextServiceImpl.java:165) ~[?:?]
	at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:313) [!/:?]
	at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:272) [!/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: org.opencastproject.speechtotext.api.SpeechToTextEngineException: org.opencastproject.speechtotext.api.SpeechToTextEngineException: WhisperC++ produced no output
	at org.opencastproject.speechtotext.impl.engine.WhisperCppEngine.generateSubtitlesFile(WhisperCppEngine.java:386) ~[?:?]
	at org.opencastproject.speechtotext.impl.SpeechToTextServiceImpl.process(SpeechToTextServiceImpl.java:154) ~[?:?]
	... 6 more
Caused by: org.opencastproject.speechtotext.api.SpeechToTextEngineException: WhisperC++ produced no output
	at org.opencastproject.speechtotext.impl.engine.WhisperCppEngine.generateSubtitlesFile(WhisperCppEngine.java:381) ~[?:?]
	at org.opencastproject.speechtotext.impl.SpeechToTextServiceImpl.process(SpeechToTextServiceImpl.java:154) ~[?:?]
	... 6 more

Server environment:
OS: Debian 12.x
Distribution: 1x adminpresentation + 4x worker
whisper-version:  [v1.5.4](https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.4)
OC Version: 15.3
Java Version: 17
Installation method for OC & whisper.cpp: dpkg packages

What happens between those two lines?
2024-04-11T09:59:32,096 | DEBUG | (WhisperCppEngine:362) -
...
2024-04-11T11:19:22,512 | DEBUG | (WhisperCppEngine:362) - output_vtt: failed to open '/srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1.vtt' for writing

Can you run just this whisper.cpp command on this box?
whisper.cpp --model /usr/share/whisper.cpp/medium.bin/ggml-medium.bin -ovtt -oj --output-file /srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1 -t 8 --language de /srv/opencast/workspace/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav

Please post the output and if it's inconclusive you might want to add --debug-mode to it.

What happens between those two lines?
2024-04-11T09:59:32,096 | DEBUG | (WhisperCppEngine:362) -
...
2024-04-11T11:19:22,512 | DEBUG | (WhisperCppEngine:362) - output_vtt: failed to open '/srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1.vtt' for writing

There you can find the transcriptions, line by line for one hour, because of the DEBUG mode. ;-)

Heh, I feel like that ought to be slightly more than a debug log entry...
Any idea what's causing it? The mount is probably up since whisper is reading the file, right? Or does it fail part way through, causing whisper to fail, and the write to fail? Although in that case I would expect the whisper error code to be non-zero which ought to trigger different logging.

Can you run just this whisper.cpp command on this box?
whisper.cpp --model /usr/share/whisper.cpp/medium.bin/ggml-medium.bin -ovtt -oj --output-file /srv/opencast/workspace/collection/subtitles/job-12146265/HU_LCP_007_20221021_091000_S2R1 -t 8 --language de /srv/opencast/workspace/mediapackage/a225fa83-3181-4b78-b169-e2a5a904607b/d323609e-6f30-4e4b-aa4a-e1f2aeebf64c/HU_LCP_007_20221021_091000_S2R1.wav

Please post the output and if it's inconclusive you might want to add --debug-mode to it.

No, these are only temporary files and folders. These are deleted at the end.

Heh, I feel like that ought to be slightly more than a debug log entry...
Any idea what's causing it? The mount is probably up since whisper is reading the file, right? Or does it fail part way through, causing whisper to fail, and the write to fail? Although in that case I would expect the whisper error code to be non-zero which ought to trigger different logging.
The transcription runs cleanly to the end. As you can see from the logs. I just hadn't copied it. The mount point is also retained until the end. This is specified on the server side and can also be written by the user opencast. If I understand the log entry correctly, however, the result of the transcription cannot be saved to the file provided for this purpose at the end. Up to this point, the transcription is probably kept in RAM or written to some temporary file.

Hrm... That long of a processing time...  What else ran between whisper start, and the error?  Could the directory be getting cleaned up by the workspace cleaner?


traefik will change apiVersion in v3

Hello,
Thanks for this helm chart. As I am a kubernetes beginner, authelia is by now the most demanding service to deploy. But this chart really helps, even in its current beta state.
I just saw by chance that the current helm chart deploys ingressroutes and middlewares for traefik by
apiVersion: traefik.containo.us/v1alpha1
Traefik additionally supports:
apiVersion: traefik.io/v1alpha1
As most of my current deployment uses the latter, that does not seem to cause any trouble. However, traefik's helm chart repo mentions, that support for traefik.containo.us/v1alpha1 will be removed with traefik v3: https://doc.traefik.io/traefik/v3.0/migration/v2-to-v3/
As both apiVersions are supported with the current v2, it seems reasonable to change to the new apiVersion.
Kind regards

Our plan is to wait until v3 is released and perform proper testing before migrating. Our lack of support for this is a fairly clear communication that we do not intend to support it yet. That being said we'd welcome a PR which enables this migration for users with an opt-in flag.

I can't contribute a PR as I am still learning things and therefore not being able to do much more than deploy helm charts with argocd. If I've found things out later (and this is still a valid issue) I'll come back.
k3s ships with traefik. The oldest mentioned release 1.24.1+k3s1 ships with v2.6.2 and therefore below 2.9. Since 1.24.7+k3s1 it is upgraded to v2.9.1. 1.25.1+k3s1 and 1.25.2+k3s1 also came with v2.6.2 of traefik. Any other k3s release is on a 2.9-version of traefik.
https://docs.k3s.io/release-notes/v1.24.X

I try to address this in #213 , please have a look.

I did a take on this but I missed the opt-in. I will make a new PR

Here is the PR: #214

@mnorrsken thanks for the PR's, I'm still thinking about how to adequately handle this, as the original PR had a decent idea too. The only issues I had with it are:

A user may have both CRD's installed but may not be using the later one.
Some GitOps engines don't pass full capabilities to helm, and they are not available in all scenarios.

I'm trying to make a decent long term decision which will support the most configurations.

As a workaround while this is not a feature in the chart, I'm using a sed command as a helm post-render script:
#!/usr/bin/env bash
sed 's/traefik\.containo\.us/traefik.io/g'

Save this as a script, for example sed-traefik-api.sh and make it executable with chmod +x sed-traefik-api.sh. Then you can invoke it as a post-renderer when calling helm:
helm upgrade -n authelia authelia -f authelia.yaml authelia/authelia --post-renderer ./sed-traefik-api.sh

This will modify the resultant manifest after it is rendered, but before it is applied to your cluster.

Completely resolved by the above PR.


Delegation rejection message back to requester - Browser response

User Story
Let them down easy...

Epic Title
Delegation

T-shirt size:

User Story
"As an Approver in NeXt, I want to be able to explain why I am declining to accept a delegation request."

Description
Message back to the delegation requester upon rejection.

Message edit control should appear next to the Reject button on the Delegation summary page
content of this message appears in the requester's delegation summary on delegations marked as Rejected.

Acceptance Criteria/Tests

message shall be limited to 250 chars
no markup allowed on messages
submission of rejection message shall trigger the Bell icon alert (story #1318) for the delegation originator
message appears in the requester UI within 1 minute of being sent  (near real time)

migrated to new tmobile/sawtooth-next-directory repo


Infra Password and SQL Password

Type of PR
- Code changes
1 - Deploy deploy_infrastructure

Simplify the logic - If the character is Hypen
replace by R. Instead of a retry logic

2 - Init_enviromnent:

Added more complex string concatenated to
SQL password

Purpose

1 - Deploy deploy_infrastructure

Simplify the logic - If the character is Hypen
replace by R. Instead of a retry logic

2 - Init_enviromnent:

Added more complex string concatenated to
SQL password

Does this introduce a breaking change? If yes, details on what can break
Author pre-publish checklist

[ X] Added test to prove my fix is effective or new feature works
[ X] No PII in logs
[ ] Made corresponding changes to the documentation

Validation steps
Testes log result example:

sp_stor_pass='Validating...-fm8....
Invalid password. The first character cannot be a hyphen. Replacing...
Rfm8....
Password Validated
echo 'ADLS - Valid password obtained'

Issues Closed or Referenced

Closes #issue_number

References #issue_number

Removed the complexity of the deploy_infra to validate the password in case there is a Hyphen
re-tested
Added a complex string on top of the makepasswrd for SQL Server so it will be a always complex when generated.

Removed the complexity of the deploy_infra to validate the password in case there is an Hyphen
re-tested
Added a complex string on top of the makepasswrd for SQL Server so it will be a always complex when generated.


Unable to access Vue instance properties in asyncData

Using the instance properties approach in a plugin, and after registering that plugin in nuxt.config.js, I'm unable to access those properties in asyncData:
export default {
  async asyncData({ app }) {
    console.log(app.$myVar); // === undefined
    return {};
  }
}

Probably related, I can't access any $variables on app. Here is what app consists of:
// console.log(Object.keys(app));
[ 'router',
  'store',
  '_nuxt',
  'head',
  'data',
  'beforeCreate',
  'created',
  'mounted',
  'watch',
  'methods',
  'components',
  'render',
  'staticRenderFns',
  '_ssrRegister',
  '__file' ]

But of course, the context docs say I should be able to.

The root vue instance that includes all your plugins. For example, when using axios, you can get access to $axios through context.app.$axios

How did you init the app.$myVar before ?

I can not try this right now and only follow the documentation, so bear with me:
// plugins/my-var.js
import Vue from 'vue'

// maybe this
Vue.prototype.$myVar = 'test'

// or this, or both?
export default ({app}) {
  app.$myVar = 'test'
}

// nuxt.config.js
module.exports {
  plugins: [
    { src: '~/plugins/my-var.js' }
  ]
}

// pages/index.vue
export default {
  asyncData({app}) {
    console.log(app.$myVar) // should print test in the console
  }
}

Here is my plugins/network-interface.js:
import io from 'socket.io-client';
import Vue from 'vue'; // eslint-disable-line

class NetworkInterface {
  constructor() {
    this.socket = io('http://localhost:9000/socket.io/');
    this.socket.on('connect', () => {
      console.warn(`connected id: ${this.socket.id}`);
    });
    this.socket.on('disconnect', () => {
      console.warn('disconnected');
    });
    this.install = this.install.bind(this);
  }

  install(Vue) { // eslint-disable-line
    Vue.prototype.$networkInteface = this;
    Vue.prototype.$socket = this.socket;
  }
}

const ni = new NetworkInterface();
Vue.use(ni);

or even a much simpler variant:
import io from 'socket.io-client';
import Vue from 'vue'; // eslint-disable-line
Vue.prototype.$socket = io('http://localhost:9000/socket.io/');

Nice! If your issue is resolved please close it.

@vuchl no, nothing is solved. I've reproduced a very basic application here. The only files that have been changed from vue init nuxt-community/starter-template client are:

plugins/network-interface.js
pages/index.vue
package.json

Hmm. Ok, I've gotten it to work with an export function. I've even found (some of) the relevant documentation on the plugin guide.
However, I'm unclear on when it's necessary to use an export function, and why other plugins don't require this usage.

HI @dfee
We are working on the docs to improve the plugins page and all the possibilities you have with it.
Nuxt.js knows when your plugin export a method, and if so, it will call it with the context as first argument, it also have a 2nd argument which is an inject method (from rc8) to add any object into vue instances context, app and store so you can use it into your store actions/mutations!
So you can do this for plugins/network-interface.js:
export default function (ctx, inject) {
  inject('hello2', 'world')
}

This will add app.$hello2 and this.$hello2 into store actions/mutations + Vue instances (see more https://github.com/nuxt/nuxt.js/blob/dev/lib/app/index.js#L117)
Also, here a pretty nice example of injecting a Vue instance into all vue instances: https://github.com/nuxt/nuxt.js/blob/dev/examples/with-cookies/plugins/cookies.js

I look forward to seeing the updated docs :)

This worked for me when adding the strapi SDK to the prototype, client and serverside:
import Vue from 'vue'
import Strapi from 'strapi-sdk-javascript/build/main'
import { API } from '../constants'

let strapi = new Strapi(API)

Vue.prototype.$strapi = strapi
Vue.prototype.$axios = strapi.axios

export default ({app}) => {
    app.$strapi = strapi
}


Update min Swift version to 5.6 and make platform versions consistent

Assuming CI doesn't need updating and we're using the central CI then 👍

Yep, it's already up to date in this repo.


Local Modal Scope

How do you access the local modal within an editable-form?  For instance, I have 2 inputs of type number that act like a range.  On the lower end's ngChange I'd like to check if the high end's value.  I haven't been able to figure out how to get to the local, edited model.  Of course I can get to the original $scope but I need the values that have been changed before they are submitted.

Can this be closed?

@eugef This question appears answered, please close.


Can we re-consent to the permissions after having deleted consent?

Hi,
I’ve read the article below and have a question. Can we consent to the permissions after having deleted consent? I don’t see a specific mention of re-consenting in the article. It is very important for me to know, please replay.
https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-admin-consent-workflow

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

ID: f6e93be2-bad4-bae7-91bc-d4122dad86fd
Version Independent ID: caf48884-743b-8f83-58a0-a92c3940fbba
Content: Configure the admin consent workflow - Azure Active Directory
Content Source: articles/active-directory/manage-apps/configure-admin-consent-workflow.md
Service: active-directory
Sub-service: app-mgmt
GitHub Login: @iantheninja
Microsoft Alias: iangithinji

@Ivann888 Thank you for your query. We will investigate and update the thread.

@Ivann888  If consent is deleted, and at subsequent authentication, you use a scope that requires consent (e.g. directory.readwrite.all), you will be prompted for consent again. Consent can be forced by using prompt=consent Oauth parameter.


Cannot run deploy staging with current zipped shopware 5.5.4

On kellerkinder:vendors task breaks with:

Warning: Ambiguous class resolution, "Doctrine\ORM\Persisters\Entity\BasicEntityPersister" was found in both "$baseDir . '/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php" and "/www/casamia.local/releases/2/sr
c/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php", the first will be used.
Warning: Ambiguous class resolution, "Doctrine\Common\Proxy\AbstractProxyFactory" was found in both "$baseDir . '/engine/Library/Doctrine/Common/Proxy/AbstractProxyFactory.php" and "/www/casamia.local/releases/2/src/vendor/doctrine/
common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php", the first will be used.
Skipped installation of bin bin/doctrine-dbal for package doctrine/dbal: file not found in package
Skipped installation of bin bin/doctrine for package doctrine/orm: file not found in package
Skipped installation of bin bin/doctrine.php for package doctrine/orm: file not found in package
./build/composer-post-update-cmd.sh
sh: 1: ./build/composer-post-update-cmd.sh: not found
Script ./build/composer-post-update-cmd.sh handling the post-update-cmd event returned with error code 127

i think there is a problem mixing shopware download package and composer actions in showare root path.

@Forestsoft-de Can you confirm that the issue is fixed after applying #4?

Closed due to lack of response. If your issue remains feel free to open another issue :-)


Improve APIView Error Page

The value show as RequestID in APIView error page is actually a combination of various values in Application Insights
00-[TraceId]-[SpanId]-00, we should update this page to match what user will find in the Application Insights log.

Also add link to the teams channel rather than email.


[passion week] Interaction tests with storybook's play function

Describe your changes here.
As proposed in the passion week idea discussion, storybook play function is setup for Autocomplete component story.
Local workflow -

Add play function to a particular story
Run storybook normally, debug and inspect using "Interactions" panel.
Can run npm run test:storybook for a CI run.

On CI, every pull request will run a github workflow for these same tests.
Special note - This PR also upgrades Storybook to latest stable version. I did not see any obvious regression due to this. I used npx sb upgrade which did all the work for me.
Screenshots
https://user-images.githubusercontent.com/417268/179751547-f743e46f-9216-4423-b363-0a0a2eb43207.mov
Merge checklist

[x] Added/updated tests
[x] Added/updated documentation
[x] Tested in Chrome
[x] Tested in Firefox
[x] Tested in Safari
[ ] Tested in Edge

Reference links
https://storybook.js.org/docs/react/writing-stories/play-function
https://storybook.js.org/addons/@storybook/addon-interactions
https://medium.com/storybookjs/test-component-interactions-with-storybook-32570b74ac3
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

(not blocking) The only question I have here is the location of interactions, should we put them along with our stories (tempting) or should we create a Autocomplete/interactions.stories.tsx (similar to examples or fixtures) which we treat as a replacement for tests 🤔

I could maybe create an ADR advocating for more tests and deciding the location(any other questions) around these kind of tests?
Happy to change location as per decision.


Histogram icon is poor -- same as table icon

suggestion: instead use area chart icon: http://fontawesome.io/icon/area-chart/

fixed in table-renderer work


Migrate to null safety

This package is not migrated to null safety.

This package is not migrated to null safety.

I can work on this, by April 2nd.
Cc: @yungzhu


how to saved file with locked?

i cant find that now in menu share ?

There is no lock. That functionality was removed. It's the same as hitting file -> save.

Dang it!! Me either


Linker error 2038 msvc 2015 debug build

Hello everyone,
I'm going to use shogun on windows. I'm having a problem installing it with vcpkg. But I have already opened an issue for that.
In the meanwhile, I'm trying to use CMAKE to generate the MSVC 2015 Win64 solution and generate the debug and release build.
The release build works fine. I have tried it with the minimal usage examples here reported.
Unfortunately, I'm getting LNK2038 error when using the debug build of the library in debug mode.
Here I report the CMAKE log:
The C compiler identification is MSVC 19.0.24215.1
The CXX compiler identification is MSVC 19.0.24215.1
Check for working C compiler: E:/Software/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
Check for working C compiler: E:/Software/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: E:/Software/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
Check for working CXX compiler: E:/Software/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Could NOT find CCache (missing: CCACHE CCACHE_VERSION)
Using system's malloc
Could NOT find GDB (missing: GDB_COMMAND GDB_VERSION)
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) (Required is at least version "1.8.6")
dir='C:/Users/myUser/Downloads/shogun-shogun_6.1.3/shogun-shogun_6.1.3/src'
dir='C:/Users/myUser/Downloads/shogun-shogun_6.1.3/shogun-shogun_6.1.3/build/src'
Could NOT find CxaDemangle (missing: HAVE_CXA_DEMANGLE)
Could NOT find CxaDemangle (missing: HAVE_CXA_DEMANGLE)
Could NOT find Eigen3 (missing: EIGEN_INCLUDE_DIR) (Required is at least version "3.1.2")
Could NOT find OPENCL (missing: OPENCL_LIBRARY OPENCL_INCLUDE_DIR)
Could NOT find ViennaCL (missing: VIENNACL_INCLUDE_DIR VIENNACL_ENCODED_VERSION OpenCL_INCLUDE_DIRS OpenCL_LIBRARIES) (Required is at least version "1.5.0")
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Could NOT find TFLogger (missing: TFLogger_DIR)
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
Could NOT find GLPK (missing: GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_PROPER_VERSION_FOUND)
Could NOT find CPLEX (missing: CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
Could NOT find MOSEK (missing: MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY MOSEK_LIBRARIES)
Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
Could NOT find JSON (missing: JSON_INCLUDE_DIR JSON_LIBRARY) (Required is at least version "0.11")
Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
Lzo includes and libraries NOT found.
Could NOT find NLOPT (missing: NLOPT_LIBRARY NLOPT_INCLUDE_DIR)
Could NOT find LPSOLVE (missing: LPSOLVE_LIBRARIES LPSOLVE_INCLUDE_DIR)
Could NOT find ColPack (missing: COLPACK_LIBRARIES COLPACK_LIBRARY_DIR COLPACK_INCLUDE_DIR)
Could NOT find ARPREC (missing: ARPREC_LIBRARIES ARPREC_INCLUDE_DIR)
Linker: Default system linker
Ctags flavour: Exuberant
Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)
Failed to locate pandoc executable (missing: PANDOC_EXECUTABLE)
===================================================================================================================
Summary of Configuration Variables
The following OPTIONAL packages have been found:

 * OpenMP
 * Threads
 * SNAPPY
 * Ctags

-- The following REQUIRED packages have been found:

 * PythonInterp

-- The following OPTIONAL packages have not been found:

 * CCache
 * GDB
 * Doxygen (required version >= 1.8.6)
 * CxaDemangle
 * Eigen3 (required version >= 3.1.2)
 * ViennaCL (required version >= 1.5.0)
 * rxcpp
 * TFLogger (required version >= 0.1.0)
 * BLAS
 * GLPK
 * CPLEX
 * ARPACK
 * Mosek
 * Protobuf
 * JSON (required version >= 0.11)
 * LibXml2
 * CURL
 * ZLIB
 * BZip2
 * LibLZMA
 * LZO
 * NLopt
 * LpSolve
 * ColPack
 * ARPREC
 * Sphinx
 * Pandoc

===================================================================================================================
Integrations
  OpenCV Integration is OFF 	 enable with -DOpenCV=ON
===================================================================================================================
Interfaces
  Python is OFF 		 enable with -DINTERFACE_PYTHON=ON
  Octave is OFF 		 enable with -DINTERFACE_OCTAVE=ON
  Java is OFF 		 enable with -DINTERFACE_JAVA=ON
  Perl is OFF 		 enable with -DINTERFACE_PERL=ON
  Ruby is OFF 		 enable with -DINTERFACE_RUBY=ON
  C# is OFF 			 enable with -DINTERFACE_CSHARP=ON
  R is OFF 			 enable with -DINTERFACE_R=ON
  Lua is OFF 		 enable with -DINTERFACE_LUA=ON
  Scala is OFF 		 enable with -DINTERFACE_SCALA=ON
===================================================================================================================
To compile shogun type
  make

To install shogun to C:/Users/myUser/Desktop/shogun type
  make install

or to install to a custom directory
  make install DESTDIR=/my/special/path
  (or rerun cmake with -DCMAKE_INSTALL_PREFIX=/my/special/path) to just change the prefix
===================================================================================================================
Configuring done
Generating done

The generated errors are:

C:\Users\myUser\Desktop\shoguntest\libs\shogun\include\shogun/lib/any.h(391): note: see reference to function template instantiation 'bool shogun::Any::same_type<shogun::Any::Empty>(void) const' being compiled
	link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='<IP_ADDRESS>' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\build_debug\shoguntest.exe @C:\Users\myUser\AppData\Local\Temp\shoguntest.exe.128816.1437.jom
shogun.lib(memory.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(memory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(SGIO.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(SGIO.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(SGObject.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(SGObject.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(SGMatrix.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(SGMatrix.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(GaussianKernel.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(GaussianKernel.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(DenseLabels.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(DenseLabels.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(BinaryLabels.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(BinaryLabels.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(LibSVM.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(LibSVM.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(init.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(init.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(DenseFeatures.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(DenseFeatures.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(ShogunException.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(ShogunException.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
shogun.lib(SGReferencedData.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
shogun.lib(SGReferencedData.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value
etc...
etc...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
..\build_debug\shoguntest.exe : fatal error LNK1319: 1114 mismatches detected
jom: C:\Users\myUser\Desktop\shoguntest\src\Makefile.Debug [..\build_debug\shoguntest.exe] Error 1319
jom: C:\Users\myUser\Desktop\shoguntest\src\Makefile [debug] Error 2
18:56:36: The process "E:\Software\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project shoguntest (kit: Desktop Qt 5.9.3 MSVC2015 64bit)
When executing step "Make"
18:56:36: Elapsed time: 00:03.

I have also tried building the library in "RelWithDebInfo" but the final ouput is equal when used.
What is wrong with my debug build of the library?

Nobody can help me solving this issue with the debug version of the library obtained with CMAKE and MSVC 2015?

@fyoda i'm not so sure how do you end up here.... could you maaaybe reproduce the commands of appveyor or what's in the manual for windows, namely:
msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Release /p:Platform=x64```

The cmake command you reported cannot work as is. When, executed from command line you get the error about the GPL and SVM flag. Only the following command works for me:
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON -DLICENSE_GPL_SHOGUN=OFF -DUSE_SVMLIGHT=OFF ..

@fyoda what? :) i mean if you do not want GPL sure thing that you can disable it... but that work as it works on appveyor. you are missing the submodules:
git submodule update --init

I'm sorry, I forgot the submodules. Now your CMAKE command works fine.
I built the solution with MSVC in Debug configuration.
msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Debug /p:Platform=x64
However I'm getting errors LNK2038 when I'm using the .dll generated on the with the sample code posted here

@fyoda i'm not so sure that DLL should be linkable as is to a simple example - like the minimal code. for that you should compile with the static lib... if you want to use the dll you need to load it into memory with LoadLibrary; but correct me if i'm wrong. it's not the same as in case of *NIX systems shared libraries....

@fyoda modifying direct.h? you mean dirent.h? none the less you have to actually use the right include flags for shogun (check exported target) before you wanna compile against the lib.... otherwise of course you are going have troubles compiling your code.
on the other hand i'd actually link with the static lib, which i dont get why wouldn't has any of those symbols in case of a Debug mode.... that's only adds debug information to the obj not removing functions. are you sure that you are having the right linker flags to find the debug mode library?

@vigsterkr I meant dirent.h, sorry for the typo.
I don't understand. What do you mean with proper flag? I would try to link shogun statically to the example, but at the end of the build process I don't see any shogun.a file.

there's no such thing as shogun.a in windows... it's shogun.lib

@vigsterkr I'm sorry, I got confused. Even if I use static linking against the example I get the same LNK2019 errors reported above, both in release and debug mode:

@fyoda but the libshogun (c++ examples) compiles fine?

@vigsterkr  If compiles fine, but I get an error in the unit test configuration of Eigen library 3.3.4 and it is not able to find BLAS:
  -- Could NOT find BLAS (missing: BLAS_SEQ_LIBRARIES BLAS_LIBRARY_DIRS)
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_36e9f"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_deb92"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_bf5a6"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_72b43"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_9d63b"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_596b4"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_fb51e"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_aaeda"
  -- Could NOT find MPI_C (missing: MPI_C_WORKS)
  -- Could NOT find MPI_CXX (missing: MPI_CXX_COMPILER)
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_d81d4"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_3c064"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_4a82d"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_33bb4"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_cb92d"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_803de"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_87edd"
CUSTOMBUILD : CMake error : Generator: execution of make failed. Make command was: "devenv.com" "CMAKE_TRY_COMPILE.sln" "/build" "Debug" "/project" "cmTC_58dca"
  -- Could NOT find MPI_Fortran (missing: MPI_Fortran_COMPILE)

can you run the tests? meaning ctest? because those errors are just warning you taht no BLAS/LAPACK is found, but that should still work - eigen does not require to have lapack/blas, it's optional..

@vigsterkr In which solution can I find ctest?

mmm it's not a solution.. .it's part of cmake.... as you have ran cmake with -DENABLE_TESTING=ON that will enable tests including unit tests and some other c++ examples.

please read this before further questions:
https://github.com/shogun-toolbox/shogun/blob/develop/doc/readme/DEVELOPING.md

@fyoda if unit tests are passing that it definitely managed to link with shogun.lib.
BUILD_EXAMPLES cmake flag is by default turned on that means all the libshogun examples ought to be compiled&linked as well, i.e. if you run ctest -R libshogun you should have some test that pass.

@vigsterkr Ok the test runs correctly. I have tried linking statically the library to the example and it works only with Release library.
In the debug I get the same error. I think there is some problem with the generation of the MSVC solution in debug mode.

@vigsterkr  in my opinion, the problem is that, when in MSVC the user switches from Debug to Release configuration the Runtime Library is not updated properly. It should be:
For shared library in Release: Multi-threaded DLL should be set automatically
For shared library in Debug: Multi-threaded Debug DLL should be set
Instead, in the shogun solution... Even if I select the Debug configuration, the Multi-threaded DLL are set in all submodules.

@vigsterkr I just changed manually the Runtime Lib in all submodules and worked out. So, there is a problem with the generation of the MSVC solution using CMAKE. It works with dynamic and static linking.

@fyoda submodules? i'm not so sure if i follow... moreover, if the libshogun examples are successfully compiles and linked then it means that your custom linking/compilation is broken...
meaning if you compile it with:
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON ..

msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Debug /p:Platform=x64

or
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON ..

msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Release /p:Platform=x64

if you are referring to the fact that when you run once in the cmake say with -DCMAKE_BUILD_TYPE=Release and then switch in your MSVC application the type to Debug (or vice versa) then i think this is not fully supported by cmake generated solution, but i might be wrong. anyhow this is strictly cmake related issue, nothing to do with shogun. in case the above mentioned commands separately work fine (meaning that you run cmake in a clean build directory)

@vigsterkr I meant subprojects within the generated MSVC solution.
Summarizing, the shogun library as is, works only in release mode. Because if you try to run:
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON ..

msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Debug /p:Platform=x64

And you link the generated library against an example in debug configuration you experience the Runtime library errors I posted above.
This is fully supported by CMAKE to switch between debug and release build within MSVC.
As an example, if you try to generate the solution of the labstreaminglayer project, you will see that you can switch back and forth the MSVC configuration without problem.
In addition to that, to get you C++ working it is mandatory to add:
#pragma comment(lib, "winmm")  // added to avoid error LNK2019 posted here (https://stackoverflow.com/questions/49613254/linker-error-2019-using-shogun-dll-on-windows?noredirect=1#comment86344894_49613254)
and change the include file include\shogun/io/SGIO.h from dirent.h to io.h, because dirent.h cannot be found.

mmmm i have to check with dirent.h but io.h won't work... it needs maaaybe some fixing.... lemme make an issue about that.
i'm not so sure if i understand why would this happen - Debug not working in case of MSVC & shogun. i'm using cmake to generate the solution files, so i dont understand what's missing or how. ideas?

@fyoda have you maybe checked whether adding
#pragma comment(lib, "winmm")

to https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/lib/Time.cpp#L92

@vigsterkr I didn't try. I just added
#pragma comment(lib, "winmm")
to my main.cpp example to solve the issue. I can try to add it to Time.cpp and I'll let you know.

if you could add & test that'd be really great thnx!

@vigsterkr Adding
#pragma comment(lib, "winmm")
in Time.cpp solved the issue when building the c++ example.

@vigsterkr still relevant? Should be addressed in the windows fixes?

this should be autoclosed once #4719 is merged. i've marked there this issue


Does not match across newlines

> require('matcher').isMatch('test\nhaha', 'test*')
false

I think the wildcard should match newline characters as well.

I'll fix, but do you think there should be an option to disable this so it doesn't search over newlines? Maybe singleLine option or something. Or multiLine?

I don't think whether the string is multi-line or not is relevant for the stated purpose of this library:

Useful when you want to accept loose string input and regexes/globs are too convoluted.

Whether you want to treat this as a breaking change I don't know. If so, maybe make multiLine opt-in for now?

Done: https://github.com/sindresorhus/matcher/releases/tag/v3.0.0


Issue with Push Notifications in Delphi XE12.1: Token Changes and Notifications Not Displaying

Hello, I have a problem that I don't know how to solve. In an app developed for iOS a while ago, I use Push Notifications in the "old-fashioned way," similar to the EMBTFCM demo, with DW.PushNotification and Firebase 8.7. It has always worked well, and I would really prefer not to update it to the new Firebase version.
The issue is that after updating the app from Delphi XE12 to Delphi XE12.1, it doesn't work properly anymore.
Let me explain the problem: In the OnTokenReceived process, I have set it up to log the returned device token, and I see that when it runs for the first time, it returns a device token, instantly changes to another one, and later, when I close and reopen the app, it changes the token again.
The problem is that if I send a push notification immediately after installing to the last returned token, the app receives it without issues. However, if I close and reopen the app, and send the push to the newly generated token, Firebase reports that the push has been sent successfully, but no notification is displayed on the device.
Does anyone know what could be causing this?
I hope I explained myself well.
Thank you.

Can you provide a reproducible example? It's otherwise very difficult to know what the problem is

I’m going to try creating a basic example to see if I can reproduce the issue there.
Thank you.

Sorry, but it will take me a few days to send the example. Please don’t close the thread; something unexpected came up, and it will take me a bit longer.


Added inline delegate-configuration settings

Style Owin and .NET core.
I hope it'll compile, unsure these operators are supported by the .NET and C# version of the repo.

Doesn't belong here. Should make my change in the AspNetCore extensions file.


Steel definition fails in dependency loading

The following Steel definition is accepted in normal and in lax mode but not when loaded as a dependency:
module A
open Steel.Effect

noeq
type fsteel (pre : pre_t) (post : post_t unit) : Type =
  | FSteel : (f : (unit -> SteelT unit pre post)) -> fsteel pre post

let foo (f : unit -> SteelT unit emp (fun () -> emp))
  : fsteel emp (fun () -> emp)
  = FSteel (fun () -> f ()) (*Error here*)

module B
open A

When checking B.fst in the ide without a .checked file for A.fst, the following error is reported:
(Error 228) Error while computing or loading dependencies:
user tactic failed: ‘Could not make progress, no solvable goal found‘

The error is raised by Steel.Effect.Common.fsti(2220,2221) https://github.com/FStarLang/FStar/blob/808657bb7b9657b37be1aa14efd770da7f2cb065/ulib/experimental/Steel.Effect.Common.fsti#L2220
The workaround is to generate A.fst.checked

Trying to debug this further, it seems that lax-checking A.fst from Emacs does indeed succeed, but running fstar.exe --lax A.fst from the command-line leads to the same error as when trying to load A.
I'm not sure yet what the exact issue is, I'll keep poking at it


Cant run test

Dear digikar,
I am trying to use numericals but I am facing with a lot of issues.
I can't even run the benchmark since sbcl-numerical package doesn't exist neither d+ d- etc or d2+.
I've planning to play with simd avx2 and sse2 and numericals seemed to be a good option but I am struggling with it.
Do you plan to work on it and make it stable for at least what is implemented.
I wish I contribute but I am not that familiar with simd.
Regards,
Bela

All of this probably requires SBCL-2.0.4.
sbcl-numericals
PS: This system has been deprecated. The new system is named numericals.
Apologies for the broken code. The README is in accordance with this commit. So, after you clone -
git clone https://github.com/digikar99/sbcl-numericals.git
git cd sbcl-numericals
git checkout 142c47

Then in SLIME:
(asdf:clear-configuration)
;;; You might probably need to add "iterate" to the :depends-on in sbcl-numericals.asd
(ql:quickload :sbcl-numericals.test)
;;; Optionally, check the location with (ql:where-is-system :sbcl-numericals.test)
(5am:run :sbcl-numericals)

You could play from there.
numericals
After cloning git clone https://github.com/digikar99/sbcl-numericals.git
(ql:quickload :numericals) ; no tests have been set up
(numericals:+ '(1 2 3) 2)
;=> #(3.0 4.0 5.0)

I had been on a break from this project; and have been currently working on "map-outer" that led me to "concatenate", I hope to commit these two today.

Thank you Shubhamkar!
On Sun, 24 May 2020 at 13:47, Shubhamkar Ayare<EMAIL_ADDRESS>wrote:

All of this probably requires SBCL-2.0.4.
sbcl-numericals
PS: This system has been deprecated. The new system is named numericals.
Apologies for the broken code. The README is in accordance with this
commit
https://github.com/digikar99/sbcl-numericals/tree/142c47f54512fd1b2a57aa52cd30b52e8181a4e5.
So, after you clone -
git clone https://github.com/digikar99/sbcl-numericals.git
git cd sbcl-numericals
git checkout 142c47
Then in SLIME:
(asdf:clear-configuration);;; You might probably need to add "iterate" to the :depends-on in sbcl-numericals.asd
(ql:quickload :sbcl-numericals.test);;; Optionally, check the location with (ql:where-is-system :sbcl-numericals.test)
(5am:run :sbcl-numericals)
You could play from there.
numericals
After cloning git clone https://github.com/digikar99/sbcl-numericals.git
(ql:quickload :numericals) ; no tests have been set up
(numericals:+ '(1 2 3) 2);=> #(3.0 4.0 5.0)
I had been on a break from this project; and have been currently working
on "map-outer" that led me to "concatenate", I hope to commit these two
today.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/digikar99/sbcl-numericals/issues/1#issuecomment-633219054,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMDETMZOLCUBEBJR7CSS27DRTECOBANCNFSM4NI3EXFQ
.

I have also setup the test-setup branch. And added a section on Contributing in README. In case you want to contribute, there are non-simd based tasks as well. In fact, once a small amount of SIMD code is added to numericals.sbcl, much of the work lies optimizing the code in numericals.internals that uses this simd code.

I assume the contribution part, too, has been taken care of. I'm closing this issue; feel free to reopen if required.
For anyone who stumbles upon the discussion, be aware that the project was in (is?) an unstable condition: test-setup branch has served its purpose and integrated into the master. numericals.sbcl was renamed to numericals/sbcl. Further changes may have occured since I wrote this comment.


Bloodstone Soul Ring Merge idea

Ring of whatever (name tbd)
X HP
X MANA
X STRENGTH
X HP REGEN
Passive: Bloodpact
Begins with 14 charges, and gains a charge each time an enemy hero dies within 1600 range.
Each charge grants 0.35 mana regeneration per second, and reduces respawn time by 3 seconds.
If the bearer dies, the Bloodstone loses a third of its charges.
Passive: (name tbd)
Converts all of your HP regen to Mana regen

We are not doing item merges. Closed,


Following basic startup guide leads to VM Exception: revert

I am just following the Counter example in the zos docs.
$ npm install -g zos
$ mkdir zostest && cd zostest
$ npm init -y
$ zos init

Then I create Counter.sol in the contracts directory.
pragma solidity ^0.5.0;

contract Counter {
  uint256 public value;

  function increase() public {
    value++;
  }
}

Then:
$ zos create
✓ Compiled contracts with solc 0.5.10 (commit.5a6ea5b1)
? Pick a contract to instantiate Counter
? Pick a network development
✓ Added contract Counter
✓ Contract Counter deployed
All contracts have been deployed
? Do you want to call a function on the instance after creating it? No
✓ Setting everything up to create contract instances
✓ Instance created at 0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66
0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66

This then leads to:
$ zos send-tx
? Pick a network development
? Pick an instance Counter at 0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66
? Select which function increase()
✖ Calling: 'increase' with no arguments
Error while trying to send transaction to 0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66. Error: Returned error: VM Exception while processing transaction: revert

I have:
$ node -v
v10.15.3
$ zos --version
2.4.1
$ solcjs --version
0.5.10+commit.5a6ea5b1.Emscripten.clang
$ ganache-cli --version
Ganache CLI v6.3.0 (ganache-core: 2.4.0)

Any advice?

Issue seems to have been the Ganache version.


artisan route:list command without sorting option throws undefined index error

Laravel Version: 8.50.0
PHP Version: 7.3.11
Database Driver & Version: MySQL 5.7

Description:
When executing route:list command without sort option, method "sortRoutes" is called with null sort value and this results an undefined index error exception, this change was made https://github.com/laravel/framework/commit/32f21da8e0b231e55603ea4a2b1258409a2d1c3a#diff-5b8c5f56d305d5031a6925c7776edfa7d09d22dd178bdb1ae5c8276f87786765 , when " !== 'precedence'" added, and sort option is null if statement result true (null !== 'precedence')
Steps To Reproduce:
execute php artisan route:list command without sort option


x/image/webp: unable to decode image

What version of Go are you using (go version)?

go version go1.20.4 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jmooring/.cache/go-build"
GOENV="/home/jmooring/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/jmooring/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/jmooring/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/current"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/current/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build960738136=/tmp/go-build -gno-record-gcc-switches"

What did you do?

main.go
package main

import (
	"fmt"
	"image"
	"log"
	"os"

	_ "golang.org/x/image/webp"
)

func main() {
	reader, err := os.Open(os.Args[1])
	if err != nil {
		log.Fatal(err)
	}

	m, _, err := image.Decode(reader)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("Successfully decoded %s. Image bounds: %s\n", os.Args[1], m.Bounds())
}

go run . test.webp

What did you expect to see?
Successfully decoded test.webp. Image bounds: (0,0)-(210,210)

What did you see instead?
2023/05/25 11:56:07 webp: invalid format
exit status 1

Notes
This is not an animated WebP image.
This image is not corrupt:

It displays as expected in Chrome and Firefox
It displays as expected in Microsoft Visual Studio Code
It can be converted with cwebp
It can be processed with ImageMagick
It can be processed with exiftool

Test image
test.webp

I've been investigating a bit on this issue, and I want to provide some extra info here:
It looks like related to the Alpha Channel. The webpinfo command gives me the following output:
File: test.webp
RIFF HEADER:
  File size:  58606
Chunk VP8X at offset     12, length     18
  ICCP: 1
  Alpha: 1
  EXIF: 0
  XMP: 0
  Animation: 0
  Canvas size 210 x 210
Chunk ICCP at offset     30, length    680
Chunk VP8L at offset    710, length  57896
  Width: 210
  Height: 210
  Alpha: 1
  Animation: 0
  Format: Lossless (2)
No error detected.

This is saying that there are three chunks. The first one is the VP8X, which works fine. The second one, the ICCP (The Color Profile), is not implemented in the decoder, and the third one is a VP8L chunk, and because we already declared that we need Alpha, we will check if the Alpha channel is defined. Because we ignore the ICCP, there is no alpha channel defined.
If you use image magick to convert from that file to png and back to webp, the webpinfo command gives the following info:
File: test2.webp
RIFF HEADER:
  File size:  14520
Chunk VP8X at offset     12, length     18
  ICCP: 1
  Alpha: 1
  EXIF: 0
  XMP: 0
  Animation: 0
  Canvas size 210 x 210
Chunk ICCP at offset     30, length    680
Chunk ALPH at offset    710, length   3308
Chunk VP8  at offset   4018, length  10502
  Width: 210
  Height: 210
  Alpha: 0
  Animation: 0
  Format: Lossy (1)
No error detected.

The main difference is the ALPH chunk is there, so it works perfectly now.
From the code perspective, what happens is that the alpha variable is not initialized before the VP8L chunk is processed.

I'm looking into it more. Reading the specification, the VP8L frame already contains the alpha information. You can read that here: https://developers.google.com/speed/webp/docs/riff_container?hl=es-419#alpha (almost at the end of that section).
So I guess adding support to read the alpha information from the VP8L chunk, should fix this.


Among Us Imposter Formula

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement: Create a function that calculates the chance of being an imposter. The formula for the chances of being an imposter is 100 × (i / p) where i is the imposter count and p is the player count. Make sure to round the value to the nearest integer and return the value as a percentage.
Problem Link: https://edabit.com/challenge/b36bBpsnzyDbd4mzF

Before submitting a PR please Check some details.Check Edabit for problem task

[x] fileName formet should be in camelcase
example- returnTheNextNumber.py
[x]  Add label for Problem
[x]  In file there should be problem statement and link to probelm
example -

'''
    Probem Task : This program will add two numbers
    Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
'''
*/
def main():
    return a + b

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

I would like to solve this problem, please assign it to me

The "imposter (1, 8)" example of the link provided is returning 13%, wouldn't it be 12%? Or is rounding up intentional?

It's weird why python is doing this, but here is something I found
https://stackoverflow.com/questions/51463918/different-results-for-round12-5-on-different-python-versions

that's weird kkkk but good luck :DD

It's weird and exciting at the same time. Please assign it to me.I will be more than happy to do this project.

Hey @kakarot2019, to contribute to this repository you have to pick one problem from edabit site and then create an issue for solving that problem and ask to be assigned for that, after assigned you can work on your problem and submit the PR.

we are creating and assigning issue to avoid duplicate and spam PR. Thanks for your contributions.


set Content-Type correctly

all headers need to be set before w.WriteHeader(status code) is called
fixes https://github.com/owncloud/ocis/issues/1779

Thanks for approving , I want to tweak it a bit so that reva responses the same as oC10

@labkode I've added some more changes, please review again