Loop is NOT working in the background

Looping the audio is working in the foreground — but NOT in the background.
Full Description
I added this in my Info.plist
<key>UIBackgroundModes</key>
	<array>
		<string>audio</string>
	</array>

Code to Reproduce
audio_player_handler.dart:
import 'package:ambee2/models/animations/light_animation.dart';
import 'package:audio_service/audio_service.dart';
import 'package:flutter/material.dart';
// import 'package:just_audio/just_audio.dart';
import 'package:audioplayers/audioplayers.dart';

class AudioPlayerHandler extends BaseAudioHandler {
  final _player = AudioPlayer();

  AudioPlayerHandler() {
    //set the audio to repeat itself once it's done
    _player.setReleaseMode(ReleaseMode.LOOP);
  }

  Future<void> setUrl(String url) async => await _player.setUrl(url);

  Future<void> playUrl(String url, double volumeValue) => _player.play(url, volume: volumeValue);

  Future<void> resume() => _player.resume();

  @override
  Future<void> pause() => _player.pause();

  @override
  Future<void> stop() => _player.stop();

  Future<void> setVolume(double newValue) => _player.setVolume(newValue);
}

I also have objects called: LightAnimation that has a property audioHandler defined like this:
class LightAnimation {
  String id;
  String audioUrl;
  AudioPlayerHandler audioHandler = AudioPlayerHandler();

  LightAnimation({
    this.id,
    this.audioUrl,
  });
}

Then I just access from a different part of my codebase
await lightAnimation.audioHandler.playUrl(lightAnimation.audioUrl, volumeSetValue);

Log Errors
no errors
Screenshots
Platforms

OS:  ios
OS: iOS 15.0
Device: physical device
flutter version: what exact flutter version you used. If you think it might be a configuration/setup issue, feel free to add a link to a gist with the output of flutter doctor -v (this is optional).
audioplayers version: 0.20.1
release or not release: release
does the error occur and does it have any peculiarities: The issue does NOT happen in the simulator, only on the real device.

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-arm, locale en-US)
    • Flutter version 2.5.3 at /Users/tomasbaran/code/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/tomasbaran/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.62.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • iPhone (mobile)    • 00008020-000415840E50003A            • ios            • iOS 15.1 19B74
    • iPhone 13 (mobile) • 2E82BA27-306B-4011-B9A3-265D4732604D • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 96.0.4664.55

• No issues found!

probably related: https://github.com/bluefireteam/audioplayers/issues/118

I also posted this issue here: https://stackoverflow.com/questions/70225224/audio-not-looping-in-the-background?noredirect=1#comment124531255_70225224 to gather all information in one spot.

probably related: https://github.com/bluefireteam/audioplayers/issues/864

Hi @tomasbaran actually I am here because trying to find a solution for my case. I am using audioplayers and trying to run in the background. I have searched some articles and find a way to do that in this article https://denis-korovitskii.medium.com/flutter-demo-audioplayers-on-background-via-audio-service-c95d65c90ae1. But that's little bit confusing me because that article is involving bloc and get_it as state management. After I read your part of the code, I would like to try it in my project and find an error in  Future<void> playUrl(String url, double volumeValue) => _player.play(url, volume: volumeValue); It is stated on the property of play() =Too many positional arguments: 0 expected. It means that, it should be  Future<void> playUrl(String url, double volumeValue) => _player.play(); but may I ask you how you assign (url, volume: volumeValue) without any error ?

Try to change _player.setReleaseMode(ReleaseMode.LOOP); into player.setLoopMode(LoopMode.one);

@wahyu-handayani Thanks for your tip. Unfortunately, this doesn't help since setLoopMode is not an AudioPlayer() method:

@luanpotter Can you please comment on this issue since issues about this problem have been unresolved here for years. Shall I just move on a different package? For me it is crucial that the audio looping works in the background. Thanks.

Hi @tomasbaran right now I am trying to build an apps that can play a music on the background using audioplayers package, and when I read this article https://denis-korovitskii.medium.com/flutter-demo-audioplayers-on-background-via-audio-service-c95d65c90ae1 , I am confused enough, so I read your code and trying to implement it. It is understandable when I read your code. But I would like to ask you, if you don't mind, I would like to ask, how you initialized lightAnimation ? I try to call it by defining late LightAnimation lightAnimation; first and then call await lightAnimation.audioHandler.playUrl(lightAnimation.audioUrl, volumeSetValue); in a onPressed button, but it says that Unhandled Exception: LateInitializationError: Field 'lightAnimation' has not been initialized.

Let me see if I can be helpful. First off, I've never heard of late term, so I'm not sure what it is supposed to do.
In my case, the app loads the library of LightAnimations that are on Firebase. So, I have in my app defined:
 List<LightAnimation> localLibraryAnimations = [];

And once a user taps let's say on red light animations category then the app starts to load all the light animations from Firebase and assigning them to localLibraryAnimations like this:
_currentAnimation = LightAnimation(
        // animationCardImageBuilder: is for better loading experience but not essential in your case I guess
        // animationCardImageBuilder: FutureBuilder(
        //   future: getImageFile(),
        //   builder: (context, snapshot) {
        //     if (snapshot.hasData)
        //       return Image.file(
        //         snapshot.data,
        //         fit: BoxFit.cover,
        //         width: double.infinity,
        //         height: double.infinity,
        //       );
        //     else if (snapshot.hasError) {
        //       return Text('Error#7: ${snapshot.error}', style: TextStyle(color: sColorPrimary56), textAlign: TextAlign.center);
        //     } else {
        //       return Center(
        //         child: Image.asset('assets/images/logo.png', width: 40),
        //       );
        //     }
        //   },
        // ),
        id: animation['animation_id'],
        audioUrl: animation['audio_file_url'] ?? silentAudioFileUrl,
      );

localLibraryAnimations.add(_currentAnimation);

So, to sum it up.

User taps a category (e.g. red ones)
App will load data from Firebase
App will assign data from Firebase to localLibraryAnimations by adding LightAnimation one by one
upon localLibraryAnimations.add(LightAnimation), LightAnimation will automatically initialize audioHandler like this:

AudioPlayerHandler audioHandler = AudioPlayerHandler();

@tomasbaran I have read your explanation, thank you very much for your detail. There is a part that I am confused after I read your explanation..That's about await lightAnimation.audioHandler.playUrl(lightAnimation.audioUrl, volumeSetValue); How do you connect localLibraryAnimations and await lightAnimation.audioHandler.playUrl(lightAnimation.audioUrl, volumeSetValue);

@tomasbaran Thank you very much for your detail explanation, I have read your comment and tried it on my own and finally.. got the good result. But there is something else that I would like to ask.. It was success to run on the background, but there is no something like notification on the background to pause or play or something that indicates we are playing a music. Is there a way to show it on the background ?
By the way, I am so sorry for disturbing you

No problem @wahyu-handayani . I'm sure there is a way to show it but I don't know how since I didn't need this feature. Good luck!
Have you tried looping the audio in the background by any chance? If so, were you able to loop the audio in the background, please?

@tomasbaran I am able to do looping, here is the code and I call this inside onPressed method:
playerA = await audioCacheA.loop("Rain/${widget.musicAsset}.mp3");

where AudioPlayer playerA = AudioPlayer(); and AudioCache audioCacheA = AudioCache();. It will loop in the background, but I don't know how to broadcast and show it in phone notification

Thanks @wahyu-handayani. Interesting, so looping in the background works for local assets (audioCache, your case) but not network assets like in my case.
No, I don't show or inform users in form of notification bar.

@tomasbaran you're welcome, glad to get your help

Unfortunately, I have bad news for your @wahyu-handayani. I have tried to loop in the background local asset just like you did via AudioCache() but the looping stops in the background once you lock the screen. You can try it out yourself.
If you want the author to fix these issues, please upvote with thumb up these issues:

[ ] https://github.com/bluefireteam/audioplayers/issues/1038
[ ] https://github.com/bluefireteam/audioplayers/issues/118
[ ] https://github.com/bluefireteam/audioplayers/issues/864

This should speed up the process of fixing the loop in the background issue. Thanks.

We would be happy to have an iOS developer, who can contribute to this library and submit a PR to this topic.

This issue is valid on iOS devices for audioplayers 3.0.1.

Problem still exists for audioplayers 5.2.1.
Though from my test I have some extra info:
In my app I have the option to run more than one players. This bug only happens though when only one of the players is working. As a result, my best guess is that ios kills the background before the player can loop. When a 2nd player is running though, it seems to keep the background alive so the loop goes through.
This opens at least the option for some pretty ugly workarounds.

Has anyone found it possible to achieve a seamless loop for network/url audio sources?
await _player.setReleaseMode(ReleaseMode.loop); leaves a small gap at the start of each loop, even with seamlessly loop-able audio files.


Add Apache License 2.0

Fixes issue: https://github.com/googlefonts/RobotoMono/issues/26
Note that there is no license file in this repo and many people have complained about that in https://github.com/googlefonts/RobotoMono/issues/26.
License is Apache 2.0 on Google Fonts: https://fonts.google.com/specimen/Roboto+Mono/about?query=roboto+mono

Let's take this opportunity to move it to OFL

Let's take this opportunity to move it to OFL

Since that hasn't happened, I'm merging :)


Remove Travis?

Should the travis.yml file be removed now that we use GitHub actions? #122 #121 #117

Features testing is not performed in Github Actions yet.
Once we enabled supported features in Github actions, we could delete Travis safely.

I'll do this today.


.git folder bloat

Discussed in https://github.com/zero01101/openOutpaint/discussions/38

Originally posted by Kalekki November 23, 2022
So i noticed while doing git clone that it now downloads +148mb(!!!) which is odd since the massive gifs were removed.

How do we get rid of this bloat?

as mentioned in the discussion thread, git filter-branch and force push seems to have bupkis

ok i think i finally have this fixed now, new clone is ~40mb :)


Initiate rolling migration, phase 2

Background
We would like to migrate user roles, org membership, and facility membership to be stored within the SimpleReport app, as opposed to managing it in Okta. This will increase stability of the app and improve code readability and extensibility, among other benefits. The goal of this ticket is to continue moving authorization data we access in Okta to our tables and also compare the data we've collected with our source of truth (Okta) to check for discrepancies.
Change requested
Change the code that accesses user role and facility/org membership from Okta to instead get this data from our tables if the feature flag is on.
If the feature flag is off, we continue to retrieve from Okta but we also update our data. Create entries in the ApiUserFacility and ApiUserRole tables or update existing entries.
When retrieving the data from Okta, compare to what we have in our tables and alert if they are not in sync.
Acceptance criteria

When the feature flag is off:

the behavior of the app re: authorization and showing role/facility info should reflect what's stored in Okta
any time the app performs an action that retrieves role or facility or org membership from Okta, the tables should also reflect this information

When the feature flag is on:

the behavior of the app re: authorization and showing role/facility info should reflect what's stored in our tables
any time the app performs an action that retrieves role or facility or org membership, we do not update our tables

(???) When the feature flag is off OR always until cleaned up

any time the app performs an action that retrieves role or facility or org membership, we compare what we get from Okta to what's stored in our tables. if the data doesn't match (inc is absent?), trigger an alert

Dependencies

#7596
#7597

Open questions
Do we want an alert if the data was absent or just if it was already in our table and doesn't match?
Question from earlier discussion: Do we want to do the comparison and alert when the flag is on?
Question from earlier discussion: For testing, any prod-specific corner cases we want to talk about that require special testing outside of testing in lowers?
Notes
Test auth in lowers with non-superadmin (since superadmin still managed within Okta)
Additional context
Main design doc
Design doc - backend
Design doc - data migration plan
Okta migration tickets plan
Okta tech talk
Okta tech talk part 2

Remaining work:

[ ] update [userIsInSameOrg](https://github.com/CDCgov/prime-simplereport/blob/453dc84ec77778fd969bdbf17f0cf2dc6b5a8052/backend/src/main/java/gov/cdc/usds/simplereport/config/authorization/UserAuthorizationVerifier.java#L100) to use DB when feature flag is enabled
[ ] update where we call GroupApi
[ ] log when roles are different from Okta and DB

Update from eng sync: continue to update roles + groups in Okta even when the feature flag is enabled


ctrl+f opens find dialog on mac

Expected outcome
What should happen?
hitting ctrl-f on mac is the keyboard shortcut for moving the cursor forward one character. command+f is the shortcut for opening a find dialog. it should move the cursor forward
Actual outcome
What happened?
the default behavior is stolen and it  opens a find dialog
Versions
App: <IP_ADDRESS>-stable
Chrome: 52.0.2743.116
Platform: Mac OS X (10_11_5)
Steps to reproduce

Hi,
Thank you for issue report.
Both commands are enabled all the time in all platforms. I guess it could be more platform specific to not confuse anyone.


Data Science With Python : Conflict-based Search for Multi-agent Path Finding

Description
DescriptionWelcome to the 'DSWP' Team, good to see you here
With this issue, readers will get introduced to core information to Conflict-based Search for Multi-agent Path Finding along with sample code completely in an effective way.
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and the choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly, if you had used datasets, include them in "DS Datasets".
Domain: Machine Learning
Mentors Assigned: Dhruv Bajaj / Aishani Singh
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include the issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of the 'DSWP' domain.
All the best. Enjoy your open source journey ahead. 😎
Domain
Datascience with Python
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[ ] I follow Contributing Guidelines & Code of conduct of this project.

I would like to contribute to this issue.
Name: Jeffy Johnson
Serial number: 713
Type: Documentation
Approach: What it is and How it works

@prathimacode-hub  I would like to contribute to this issue.
Name: Jeffy Johnson
Serial number: 501
Type: Documentation,Audio
Approach: What it is and How it works

I would like to contribute to this issue.
Name: Nayanika Mishra
Batch: 9
Type: Audio
Approach: Overview, examples

Issue assigned to @Sera001 for documentation and @Nay907 for audio contribution


Proposal: drop support for Let's Encrypt, and focus/tighten-up ACM support in certify

There are a bunch of issues related to Let's Encrypt, and some undesired behaviors in zappa certify related to Custom Domain Names.
When Zappa started, there was a need for Let's Encrypt (LE). Amazon Certificate Manager (ACM) was either young or didn't have good support in API Gateway, and there may or may not have been support for wildcard certs in ACM back then.
But today, given that we're in AWS land, is there anything that Let's Encrypt still offers us that ACM does not?
The only thing I can think of is a scenario where the developer might have or need access to the certificate's private key, but I think that's still manageable by importing it into ACM and supplying the certificate ARN in zappa_settings. Please correct me if I'm wrong.
I propose that we drop LE support and focus on ACM. This code needs some attention, and avoiding the branched logic will help keep it clean.
(I don't know the actual plan for branching Zappa out to non-AWS environments, if one exists, but that could maybe be a good case for keeping LE support.)
Discuss? (-:

Yeah, I'm okay with this.. I think.
The auto-renewing of LE has always been flaky at best, the python-LE script it all relies on is hacky as heck.. and now ACM JustWorks and is also free. The only thing is that it requires using Route53, which doesn't support all the new TLDs as I recently discovered.

Couple things here:

You don't necessarily need R53 to facilitate DNS for APIGW Custom Domain Names, but I agree that you should use it. For the purposes of zappa certify this would certainly streamline things. It's also necessary to use R53 for apex/naked domains if you need an ALIAS record.
Authorizing ACM certificates via DNS records is much easier if we can also control the Hosted Zone in R53, yep. It's also possible to authenticate ACM certs via email—especially for domains/zones that aren't in R53.
I don't know of a zone TLD limitation in R53 itself. Isn't this only that R53 doesn't have support for purchasing all of the new TLDs? Once the WHOIS points at the correct NS/SOA for a given domain, R53 is capable of taking it from there, right?

Yeah. R53 doesn't care what you call your hosted zone:

+1  When I tried to implement supporting Multiple Domains, refactoring the code was made more complicated with the LE, and I was really wanting to just remove it all together. I think if we can remove LE, I can make my changes in for branch cleaner.


www/caddy: Add Load Balancing options to Reverse Proxy and Layer4 Proxy

Fixes: https://github.com/opnsense/plugins/issues/4378
Adds most of this: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#load-balancing
reverse_proxy (HTTP Handler) can do lb_policy, lb_retries,lb_try_duration,lb_try_interval
proxy (Layer4) can only do lb_policy
Load balancing options that need further configuration have not been added.
Additionally all passive health check options have been added as well since they go habd in hand with the load balancing.
This hopefully exposed most options required for load balancing.
Since none of the options require a master/detail they all live in the existing forms.

one sec adding the last changelogs to here


Added Uno game with computer

PR Description 📜
Please include summary related to the issue you have fixed and describe your PR in brief over here by specifying the issue number on which you were working below
Fixes #4657

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

https://github.com/kunjgit/GameZone/assets/117537653/7e864d16-f4ff-43c9-a9b0-1e2be8d363de

Thank you soo much for contributing to our repository 💗

Thank you @debangi29 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey @debangi29, you can't open another pull request before completing the previous one 😀
You already have the following 1 open pull request(s):
#4661

Thank you  @debangi29 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Write unit tests [2pt]

Add RSpec as a gem to your project.
Create a Request spec file for all your controllers.
Make sure that for each action you check:

[ ] If response status was correct.
[ ] If a correct template was rendered.
[ ] If the response body includes correct placeholder text.


ports error on converting

Hi.
I am trying to convert this docker-compose file:
https://raw.githubusercontent.com/wazuh/wazuh-docker/master/docker-compose.yml
With this output:
ERRO Could not parse config for project kompose : Service 'wazuh' configuration key 0 value Does not match format 'ports'
Service 'wazuh' configuration key 2 value Does not match format 'ports'
FATA composeObject.Parse() failed, Failed to load compose file: Service 'wazuh' configuration key 0 value Does not match format 'ports'
Service 'wazuh' configuration key 2 value Does not match format 'ports'

Docker-compose file is valid, what is wrong?
Thanks!

@changux
Try:
      - "514:514/udp"

instead of
      - "514/udp:514/udp"

and see what happens.

hmm, interesting. It looks like "514/udp:514/udp" is supported by docker-compose tool, but not by libcompose.
It's strange as I don't see why it would ever make sense to set different protocol for container and host port.

Thanks. After follow your suggestions, convert process finished successfully.
Regards!


modify the requirements & environments: pyepr-quantum <IP_ADDRESS> -> 0.9.0

What are the issues this pull addresses (issue numbers / links)?
The issues occur due to AttributeError: module numpy has no attribute float.
np.float was a deprecated alias for the builtin float.
Did you add tests to cover your changes (yes/no)?
Did you update the documentation accordingly (yes/no)?
Did you read the CONTRIBUTING document (yes/no)?
Summary
Details and comments
This error happens due the pyepr-quantum package when running run_epr()
Thanks to this PR this problem is solved since pyepr-quantum==0.9.0

Did you test to see that you can install and use without issues after the upgrade here?

Yes. I tested installing of pyEPR-quantum version of 0.9.0 with this change and AtrributeError is solved through this upgrade.

Thank you


fix feature extractor size type

Backporting a fix from Paperspace testing on SDK 3.2.
feature_extractor.size is now of type dict, so can't be passed directly into the transforms. The fix was taken from the examples script.
Testing:
Ran the notebook with this fix to completion on Paperspace on SDK 3.2 .

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Fixes #440 : Add Status to the available subscription field filters

Summary
:construction:  WIP :construction:
This PR adds the ability to filter out jira issue by status fields.
Ticket Link
Fixes https://github.com/mattermost/mattermost-plugin-jira/issues/440

Thanks for another PR, @M-ZubairAhmed!
@mickmister, I noticed in the GH Issue for this PR you mentioned collecting the status values from the get-create-issue-metadata.  Looking at the available data, I don't think the available status values are included. Unless they are available, it seems the route that @M-ZubairAhmed created (server-side) will be needed.  What do you think?

I don't think the available status values are included. Unless they are available, it seems the route that @M-ZubairAhmed created (server-side) will be needed.

@jfrerich This is correct. I discussed with @M-ZubairAhmed offline about this, and the StatusCategories that are being fetched in this PR are not sufficient, and we will need to fetch the Statuses instead. The Jira client we are using does not have a method for fetching Statuses, so we will need to use client.Jira.Do to make the request.

Thank you all for clarification, i will get on this PR soon after hackathon.

If we update the go-jira dependency, a GetAllStatuses method is available. Let's go with that https://github.com/andygrunwald/go-jira/releases/tag/v1.11.0

@mickmister ok got it

Let's upgrade to the latest version while we're updating https://github.com/andygrunwald/go-jira/releases
Thank you @M-ZubairAhmed, this is a great feature!

@mickmister bumped the go-jira version :arrow_up:

Codecov Report

Merging #470 into master will decrease coverage by 0.22%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #470      +/-   ##
==========================================
- Coverage    33.8%   33.57%   -0.23%
==========================================
  Files          37       37
  Lines        4476     4506      +30
==========================================
  Hits         1513     1513
- Misses       2817     2847      +30
  Partials      146      146

Impacted Files
Coverage Δ

server/client.go
8.59% <0%> (-0.2%)
:arrow_down:

server/issue.go
12.39% <0%> (-0.51%)
:arrow_down:

server/http.go
12.5% <0%> (-0.16%)
:arrow_down:

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 3254af6...484d278. Read the comment docs.

@mickmister, @M-ZubairAhmed, can we convert this from draft to a formal PR review?

hi @jfrerich i still have to do one thing which @mickmister proposed

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @hanzei

Hey @M-ZubairAhmed  - I know it has been a while. Are you interested continuing to work on this pull request? Looks like it's close. cc @jfrerich

Will continue after the Hackathon

Any update on when this might be available?

Will continue work when i have the bandwidth :)


How to change default video/audio player

WebTorrent version:
Node.js version:
Browser name/version (if using WebTorrent in the browser):

Like a title, i want change webtorrent default player. What do i do??
Thanks

Webtorrent doesn't have any default player.
Are you using webtorrent-cli, webtorrent-desktop, instant.io,... ?

I setup on my client so it is possible

My client in hostinger.co.uk

If you want to use a custom player like video.js or jwplayer, then you need to use the renderTo() method and pass it the video html element.
See: https://github.com/feross/webtorrent/blob/master/docs/api.md#filerendertoelem-function-callback-err-elem--browser-only
Read the documentation for the video player you're using to make sure that it supports MediaSource -- which is what WebTorrent is using under the hood.

A test with jwplayer would be awesome.


Make TransformEvaluatorFactory reuse Explicit

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Transform Evaluator Factories must be reused for the entire execution of
a Pipeline and must not be reused across pipelines.
Remove EvaluatorKey, and key explicitly by the transform application.

R: @kennknowles
Documentation update (this is the current behavior in the DirectRunner) + a couple of key simplifications.


Fixes formatting of table in README.md

The table in README.md was not properly displayed.
This PR fixes that.

Thank you! Sorry for the delay. I don't know why Github didn't notify me about this PR until just now.


Version of BOSSA tool on Raspberry Pi

Hi,
The version of the BOSSA tool that comes with PlatformIO is 1.2, which doesn't seem to support
the Arduino framework. I had to download and compile the BOSSA fork that is targeted at Arduino
SAM platforms to be able to upload my sketch to the board https://github.com/femtoio/BOSSA.
Regards,
Elias

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24308374-version-of-bossa-tool-on-raspberry-pi?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github).

@valeros Please update all BOSSA packages to the latest 1.5 version. Thanks.

Done.

Done.


Remove use of named returns

While use of named returns is not directly wrong, it is a matter of taste whether to use them or not. From experience it has a tendency to cause confusion both when understanding code and immediately seeing what data is actually returned. There are a few cases where named returns are needed but we should be explicit when using them in these cases.
Checking for named returns can be done with the linter using nonamedreturns.
https://golangci-lint.run/usage/linters/#nonamedreturns

Need to run another PR on stuff outside of pkg before we can mark this done!


Issue #155

#155
The second commit should say #155, not #151.

Looks good, assuring that the random block is within the given range is a good idea


Update test for WebAssembly.Exception.prototype.stack

I believe this activates the .stack property.
Docs: https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Exception/stack

Hey @Elchi3, thanks for your PR!
The ctor_args property is only for generating constructor tests, and doesn't really apply here unfortunately.  What we should probably do in this case is add a custom test in custom-tests.yaml, like so:
javascript:
  builtins:
    WebAssembly:
      Exception:
        stack: |-
          var instance = new WebAssembly.Exception(new WebAssembly.Tag({parameters:[]}),[], {traceStack:true});
          return !!instance && 'stack' in instance;

I just pushed a commit to add this test update in using the custom tests system!


Fix typo

PR created using https://github.com/tbroadley/github-spellcheck-cli.

Thanks!

No problem!


add initial tox config for certification and partner testing

[marking as draft until final decisions are made and signed off on]
This PR contains the initial pass of linters/testing to be included in the certification pipeline for relevant python content for EDA specifically.
A version of this file will live inside galaxy importer that will need be updated if this file ever is.
Feedback around what to use, why something was selected is welcomed.
For local use and testing, place the tox.ini file in the top level of the collection and then call simply call tox from the CLI in that directory.
There is a known bug currently with pylint around one or more of the directories not existing, we are looking at ways to get around that inside of the tox file. Help wanted if folks have ideas.

I will squash all of these or if merger wants to, go for it once it is approved


failure(Alamofire.AFError.sessionDeinitialized)

When I try the recommended code
let apiKey: String // required
let client = Client(apiKey: apiKey)

let prompt = "Describe the Swift programming language in a few sentences."

client.completions(engine: "davinci-instruct-beta",
                   prompt: prompt,
                   sampling: .temperature(0.0),
                   numberOfTokens: ...100,
                   numberOfCompletions: 1,
                   stop: ["\n\n"],
                   presencePenalty: 0.0,
                   frequencyPenalty: 0.0,
                   bestOf: 1) { result in
    guard case .success(let completions) = result else { fatalError("\(result)") }

    for choice in completions.flatMap(\.choices) {
        print("\(choice.text)")
    }
}

I get the following error:
TestWithOpenAI/ViewController.swift:31: Fatal error: failure(Alamofire.AFError.sessionDeinitialized)
2022-05-08 20:08:33.976354-0700 TestWithOpenAI[15129:4948609] TestWithOpenAI/ViewController.swift:31: Fatal error: failure(Alamofire.AFError.sessionDeinitialized)

Hi @scott-lydon. The client requires a strong reference to prevent the underlying session from being deinitialized. It looks like you're calling this from a view controller, so you should store client as a property and assign it during the view controller's initialization.


APP-6580: Adding fragment + org cost structure

Our current GetCurrentMonthUsage response is built only for Org related costs. We now want to show fragment charges + credits via this API as well as org level costs (which we do because we use it in APP) then we need to update how we return this information.
This change allows us to group by orgs and fragments and show how the discounts are applied to each of these separate charge types.
As as drive by here I removed the types Invoice and BillableResourceEvent as they are not used anywhere and is confusing to people.

meta comment-- there are probably other billing APIs that we'd need to fix too to align with the concept that an org can have multiple tiers + have different credits. i feel ok punting that to https://viam.atlassian.net/browse/APP-5943 where we are going to be thinking about this architecture more but wanted to call out that there are other APIs with this issue

I am not actually sure whether we will need to change anything else, the other message definitions that seem relevant were not used so I am removing

meta comment-- there are probably other billing APIs that we'd need to fix too to align with the concept that an org can have multiple tiers + have different credits. i feel ok punting that to https://viam.atlassian.net/browse/APP-5943 where we are going to be thinking about this architecture more but wanted to call out that there are other APIs with this issue

I am not actually sure whether we will need to change anything else, the other message definitions that seem relevant were not used so I am removing

oh gotcha. i think the other places im thinking of are internal APIs which should be straight forward then


Black screen after exit fullscreen

Version
Media3 1.2.1
More version details
No response
Devices that reproduce the issue
Probably any device or emulator with Android 13.
Devices that do not reproduce the issue
Any device or emulator except Android 13.
Reproducible in the demo app?
No
Reproduction steps
We've built our SDK around Exo/Media3 and we support two mechanisms for fullscreen.
The first method doesn't necessitate any code alterations in the client's application. When a request to enter fullscreen mode occurs, the ViewGroup containing the player's SurfaceView and other elements is removed from a Fragment and added to a new fullscreen Activity. When a user wants to exit fullscreen mode, the Activity is finished and the ViewGroup is returned to its original Fragment. This approach functioned correctly in Media3 version 1.1.1, but it's dysfunctional in version 1.2.1. Upon exiting fullscreen mode, only a black screen appears, accompanied by some GL errors in Logcat.
2024-04-17 23:21:13.532 EGL_emulation            D  eglCreateContext: 0x78042b23aad0: maj 3 min 0 rcv 3
2024-04-17 23:21:13.596 EGL_emulation            D  eglMakeCurrent: 0x78042b23aad0: ver 3 0 (tinfo 0x78063e52d300) (first time)
2024-04-17 23:21:13.606 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteProgram:2003 GL error 0x501 condition [!isShaderOrProgramObject]
2024-04-17 23:21:13.606 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteShader:2117 GL error 0x501 condition [!isShaderOrProgramObject && !isShader]
2024-04-17 23:21:13.606 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteShader:2117 GL error 0x501 condition [!isShaderOrProgramObject && !isShader]
2024-04-17 23:21:13.617 EGL_emulation            E  eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
2024-04-17 23:21:13.618 EGL_emulation            E  tid 6979: eglQueryContext(2122): error 0x3004 (EGL_BAD_ATTRIBUTE)
2024-04-17 23:21:13.618 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteProgram:2003 GL error 0x501 condition [!isShaderOrProgramObject]
2024-04-17 23:21:13.618 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteShader:2117 GL error 0x501 condition [!isShaderOrProgramObject && !isShader]
2024-04-17 23:21:13.618 emuglGLESv2_enc          E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glDeleteShader:2117 GL error 0x501 condition [!isShaderOrProgramObject && !isShader]
2024-04-17 23:21:13.644 SurfaceSyncer            E  Failed to find sync for id=0
2024-04-17 23:21:13.660 SurfaceUtils             D  connecting to surface 0x78051b23ef90, reason connectToSurface
2024-04-17 23:21:13.660 MediaCodec               I  [c2.goldfish.h264.decoder] setting surface generation to 1856519
2024-04-17 23:21:13.660 SurfaceUtils             D  disconnecting from surface 0x78051b23ef90, reason connectToSurface(reconnect)
2024-04-17 23:21:13.660 SurfaceUtils             D  connecting to surface 0x78051b23ef90, reason connectToSurface(reconnect)
2024-04-17 23:21:13.662 Codec2-Out...ufferQueue  D  remote graphic buffer migration 13/13
2024-04-17 23:21:13.674 Codec2Client             D  setOutputSurface -- failed to set consumer usage (6/BAD_INDEX)
2024-04-17 23:21:13.674 Codec2Client             D  setOutputSurface -- generation=1856519 consumer usage=0x900
2024-04-17 23:21:13.681 Codec2Client             D  Surface configure completed
2024-04-17 23:21:13.684 SurfaceUtils             D  disconnecting from surface 0x78051b261090, reason disconnectFromSurface
2024-04-17 23:21:13.701 ttplayer.sample          W  [SurfaceTexture-1-1813-7] bindTextureImage: clearing GL error: 0x501

Expected result
Video content is visible
Actual result
Black screen with audio only
Media
Any content
Bug Report

[ ] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Do you have a reproduction project or steps we can follow to see this issue ourselves?
Could you also clarify whether this is using Media3's PlayerView or custom view?
There was a surface related change in 1.2.0 in PlayerView, but that should only affect devices running on API 34+ (= Android 14 and above)

We are using a custom View and our structure is Fragment > FrameLayout > AspectRatioFrameLayout > SurfaceView. ExoPlayer.setVideoSurfaceView is called in embedded mode only. When transitioning into fullscreen mode, root FrameLayout is removed from the Fragment and inserted into new Fragment.

I am calling ExoPlayer.setVideoSurfaceView. Just to remind, everything is working fine in Exo from v2.10.6 to v2.19.1 and also in Media3 v1.1.1, but it is broken in Media3 v1.2.1.

everything is working fine in Exo from v2.10.6 to v2.19.1 and also in Media3 v1.1.1, but it is broken in Media3 v1.2.1.

Thanks for the reminder, I missed this part. Could you let us know how to reproduce the issue then and we can take a look?

I found the issue. When we updated Media3, we also had to update targetSdk. The issue arises from Activity.overridePendingTransition. The method with enterAnim and exitAnim parameters is deprecated in API level 33, and the replacement is a variant with three parameters, where the last one is backgroundColor. It seems that this method causes the issue only on Android 13, but it was fixed in Android 14. The fix is simply to use the deprecated variant of the method on Android 13.


Fix to support data directory on runtest script

I got an error message
Traceback (most recent call last):
  File "scripts/runtests.py", line 790, in <module>
    main()
  File "scripts/runtests.py", line 771, in main
    runner.run(num_jobs)
  File "scripts/runtests.py", line 654, in run
    log_file = open(test_case.log_filename, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'out/resnet50/out.txt'

I don't know this fix is the best.

Thanks!


Update backup-azure-backup-server-vmware.md

Customer misunderstood this description to mean that "VMware server" referred to the individual guest servers. Since this is not possible (you must specify host servers), can we edit to something like what I have proposed to clarify?

@dcbrown16 : Thanks for your contribution! The author, @markgalioto, has been notified to review your proposed change.

Hi @AdiGanMsft - would you review the proposed changes and also update the author metadata value to show the correct current author for this article?

@kasinh : Can you please have a look.

#sign-off

@kasinh: I'm sorry - only the author of this article, @markgalioto, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

@JYOTHIRMAISURI: I'm sorry - only the author of this article, @markgalioto, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

this has been taken care in other pull request . https://github.com/MicrosoftDocs/azure-docs-pr/pull/59691. Hence closing this.

@dcbrown16
I have addressed this update in PR 59691. The updates are merged, should be live in sometime. You may please close this PR once they are live. Thank you.

Thanks all.


Titan project is dead?

Last repository update is 7 months ago, so reasonable question - project is dead?

Developing is happening on titan11 branch not master:
https://github.com/thinkaurelius/titan/tree/titan11
and there is some effort to get titan working on TinkerPop 3.2.0:
https://github.com/thinkaurelius/titan/pull/1312
development has slowed, but not "dead". Please use the mailing list for these kinds of question in the future:
https://groups.google.com/forum/#!forum/aureliusgraphs

Got it, thanks! and sorry...

How about making titan11 the default branch in GitHub instead of titan10?

yeah - i don't see why we couldn't do that. i'll double check about that

@xdev-developer
TitanDB is retired, there is is a new project called JanusGraph which is now part of the Linux foundation. It starts with the foundations of TitanDB and has more interest and backing then before.
http://janusgraph.org/
https://opensource.googleblog.com/2017/01/janusgraph-connects-past-and-future-of-titan.html


WIP do not review / merge - testing k8s test log gathering

tests/k8s: copy contents of /var/lib/cilium, /var/run/cilium, as well as logs from kube-apiserver, kube-controller-manager, kubelet into tar.gz that is archived after each build.
tests: shut down VMs even if gathering of logs / archiving of artifacts fails.

Signed-off by: Ian Vernon<EMAIL_ADDRESS>Fixes: #1047
Fixes: #1040
Fixes: #1004

Example of successful build with gathering of logs: https://jenkins.cilium.io/job/cilium/job/cilium/job/PR-1045/26/
Example of failure in archiving logs but VMs still getting destroyed: https://jenkins.cilium.io/job/cilium/job/cilium/job/PR-1045/24/console

Looks good. There is some overlap with #1078.


#2003 Add behaviors to enable/disable edit/closebrackets.js addon.

Add enable/disable behaviors codemirror edit/closebrackets.js addon, that fix pairs autocomplete for international keyboards.
For more information see #2003

Thanks for the pull. Solving pairing for international keybindings would be great. I noticed that the addon closes single quotes (') which is not desired as a default as explained here. Should be easy enough to change by passing a pairs option to the addon. However the bigger issue with this pull is that we need to think through these questions to verify closebrackets.js works for more international keyboards and how we will introduce it:

Does closebrackets.js work for other international keyboards? We should confirm that this works at least for these keyboards.

@rundis Could you see if this works for a Norwegian keyboard? Unless I'm mistaken the current behavior doesn't work for you by default

Currently it's easy for a user to autoclose a new character by adding to the keymap. See the old keymaps that were used before. How would a user do this with the closebrackets behaviors?
:lt.objs.settings/pair-keymap-diffs uses the close-pair, open-pair and repeat-pair commands from auto_parens.cljs. Those commands are aware of editor.keys.normal context while the new behavior won't be. Will the new behavior cause any issues for emacs or vim plugins?
How confusing will it be to have two competing behaviors that autoclose/pair characters?
If we replace the current behavior, should we remove most of the pair functionality in auto_complete.cljs?

Once we've answered these questions, we can decide if the closebrackets behavior should be made a temporary alternative, a permanent alternative or a replacement to :lt.objs.settings/pair-keymap-diffs. If the closebrackets behavior works for the above international keyboards, we can also consider enabling it by default as LightTable used to before #1713
Currently I'm busy with 0.9.0 issues and won't be able to get to this for some time. If you'd like to move this pull further, I'd recommend looking into and answering what you can of the first 3 questions. @kenny-evitt @rundis Feel free to help with the 3 first three if you're interested

@TeachMeFly I think the first priority for this should be to confirm that it works for the other keyboards we know someone has used in the past.
@cldwalker Is there no way to reliably test this without actually having a (physical) international keyboard?

@kenny-evitt Surely you can just change keyboard layout in your os (do that from time to time to get english layout). I'll try out the close brackets thing hopefully tommorow and report back.

@rundis I'm so provincial I've never used a non-US (or even non-QWERTY) keyboard that wasn't a phone keypad (or similar) so I had no idea.

@cldwalker Now it possible to pass option to enable-brackets-autoclose, anyway comdemirror modes know about this addon and with default options repeating single quites will be prevented in clojure and behaviors editors.

Now I can only say that it work fine with russian and with french layouts but I think it will be work everywhere where codemirror can.

User can add option to enable behavior, for example [:editor.html :lt.objs.editor/enable-brackets-autoclose "[]<>"] cause autoclose square and angle brackets in html editors.

I try it with vim plugin, and I have bug, when you open new editor, you can type '[' (and it will be autoclose) until you change mode to insetr first time, after when you back in normal mode it work fine.I didn't test it whith emacs yet but shure it have same problem. I trying to find solution, but it may be better to add some changes to plugin.

It possible to enable autoclose-behaviors per editor with tags, but auto_parens.cljs can be enabled only globally, so it not possible to have own autoclose behavior per editor. Anyway if both of them will be enabled in config it will be work fine unless you still have current autocompleate pairs issue, and new behavior add new issue with vim plugin.

No, it just replace auto_parens.cljs functionality. I think it you must leave auto_parens.cljs too, for compatability.

So I think new autoclose behaviors would be good alternative for users, who need keyboard different from US, and good replacement in future. Enabling it by default or removing auto_parens.cljs can cause issues with plugins or breake some user configs.
@kenny-evitt yes, you right.
@rundis I think good way to test all of them inside virtualbox machine, or other, to keep your os clear.

I just tested autoclose-behaviors with:

German
Iceland
Hungary
Norway
Italy
Portuguese

layouts on linux, everything ok!

layouts on linux, everything ok!

Great! By everything ok, did you try all these brackets?

User can add option to enable behavior, for example [:editor.html :lt.objs.editor/enable-brackets-autoclose "[]<>"] cause autoclose square and angle brackets in html editors.

Great!

It possible to enable autoclose-behaviors per editor with tags, but auto_parens.cljs can be enabled only globally, so it not possible to have own autoclose behavior per editor.

Good point and definitely a good reason to consider closebrackets.js

I try it with vim plugin, and I have bug, when you open new editor, you can type '[' (and it will be autoclose) until you change mode to insetr first time, after when you back in normal mode it work fine.I didn't test it whith emacs yet but shure it have same problem. I trying to find solution, but it may be better to add some changes to plugin.

I don't have time to look into this yet but we will need to make sure closebrackets.js works with vim + emacs before we can recommend this solution to other users. Once we resolve this, I would like to make closebrackets.js the autoclose/pairing solution we recommend to users

@TeachMeFly Thanks for checking!

I've tried all the pairing characters on 1/2 the international keyboards and I'm satisfied. While auto_parens is easy to understand cljs, it's a buggy international support is a deal breaker. closebrackets.js is the way forward for us and I'll be looking to make it the default for this week's release. Hopefully by 0.9.0 we can have it enabled by default. @TeachMeFly thanks for nudging us on this!
I'll throw up a PR tomorow that uses this one and adds a few things - backspace removal, deprecation, etc. As for vim + emacs, I only had issue with Emacs because it's backspace conflicted with closebrackets. I'll cut a release that removes that keybinding from it. @TeachMeFly I wasn't able to reproduce the Vim issue. If you're concerned about it please give me exact steps to reproduce an issue e.g. 1. Press [ 2. Press cw 3. etc

@cldwalker, I've been very busy last week.
You can reproduce issue with vim plugin whith that steps:
1. Run lighttable;
2. Open some file;
3. Put cursor anywhere (but not it start position);
4. Press [, and you get insterted bracket (and closing bracket) in this position.
I already fix this issue and create this PR to vim plugin.


Incorrect project references in GIT

The GIT repo branch "sasTokens" references the preview versions of .net core 2.0. This should rather be the released versions.
See also: https://github.com/Azure-Samples/storage-blob-upload-from-webapp/issues/23

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

ID: be6225e2-f996-0240-ec57-bb601e0e490d
Version Independent ID: 02e61a77-e74d-a9ef-cccc-d59e8e26f8b9
Content: Secure access to an application's data in the cloud with Azure Storage
Content Source: articles/storage/blobs/storage-secure-access-application.md
Service: storage
GitHub Login: @tamram
Microsoft Alias: tamram

@MikeBarker-MS  Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@MikeBarker-MS - Thanks for pointing this out. I've fixed the references in the sasTokens branch.
#please-close


Playback doesn't actually start

My sole source is Spotify Premium atm. I can browse my favs and playlist just fine but no playback to any of my devices (Volumio, Sonos, Kodi, Samsung TV and various Echo Dot devices) actually starts. I can play and pause playback that's been added from a different source (such as Spotify app on my PC) but that's it (and the UI doesn't reflect that - it stays on what I picked to play from Music Assistant and the Play button stays on Play no matter when paused or playing).
I don't see anything relevant in log despite being set to "debug".

For me playback works as expected. I still have the official Spotify integration and spotcast installed. Tomorrow I will deinstall them and see what happens. Will report back on that

Did you try to start playback from the Music Assistant panel or the HA default Media panel ?
Playback should work with all devices that support playback by url but I did not actually test it all.
Important to know is that the streamport (default tcp 8095) needs to be accessible from your players, do  you have a non default HA setup perhaps ?

I did try. I have no issue starting playback from the built-in Media Browser but with Music Assistant, I can't play to any of my devices.
I use fairly typical HAOS setup on Rpi4.

Hmmm, are you running 32 bits or 64 bits OS on your pi ?
I did test with 64 bits HAOS on pi4 but not with 32 bits...
Nothing in the logs ?
Playback should work out of the box, that's where this project is for in the first place ;-)

Nothing in the log except info about scraping and adding stuff to the database such as:
2022-05-08 00:05:01 DEBUG (MainThread) [music_assistant.mass.fanarttv] Fetching metadata for Artist Olivier Deriviere on Fanart.tv
No errors. I'm on 32bit HAOS install as this setup is so old, 64bit was barely in beta :) I may try to switch to 64bit tomorrow.

OK, I assumed everybody is running 64bits OS nowadays so I did not care about being 32 bits compatible.
I wouldn't be surprised if that's causing the issues.
I'll have a look what I can do to proof make the library 32 bits compatible.

Had a quick look and so far I could not spot any 32 bits incompitabilities. I'l try to fire up a pi4 with 32 bits OS tomorrow.

Thank you. Another thing I've noticed - sorting doesn't stick. I prefer albums to be sorted by date descending (so, new on the top), whenever I re-enter the albums view, it's back to alphabetical ascending.

Aaand also the music index is lost after every HA restart. Something is obviously wrong with this install.

Sorting should be remembered as is the list/panel preference so probably a small bug in there, I will have a look and provide a fix.
What do you mean about "music index" is lost ?

The library is empty and slowly fills up (with the spinner indicating there are background processes).

The library is empty and slowly fills up (with the spinner indicating there are background processes).

Ah yes, I fixed that yesterday. Are you on version 1.0.9 ?

Ah, updating right now

Update: playback does actually start on a single one of my devices: a Rpi4 running Kodi but even that is so slow it's not really usable (took roughly 30 seconds to start). It does not start on a Sonos (Ikea Symfonisk), Samsung TV, Volumio and Echo Dot 3rd gen.
I'm seeing these in the log but there really seem to be no errors when attempting playback.
2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter BrokenPipeError 2022-05-08 09:09:28 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/process.py", line 103, in write     await self._proc.stdin.drain()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain     await self._protocol._drain_helper()   File "/usr/local/lib/python3.9/asyncio/streams.py", line 197, in _drain_helper     await waiter
What does MA actually do? Does it transcode the actual music media? The Rpi4 is probaby just too slow to do that (which seems weird to me but it's what it is).
Thanks!

Stooovie

Hi,  I previously ran into similar cast problems of local media files in the standard media browser. I noticed the text "default media Receiver" in my Chromecast players when using Music Assistant. The same happens when I cast local media files. So it can be related to your issue!
The solution was simple. I learned it was an SSL issue. In the network settings, I had the internal and external URLs configured as "https" without having SLL certificates configured. Most of the HA usage was working, except for casting!
Just by only changing my URL's to "http" and reboot the PI fixed casting.

I'm not sure what's going on your setup. Playback should work on almost every device that allows playback from an URL as long as it can reach the HA machine on the local network.
MA does transcode when needed but a pi4 is fast enough to handle that. It even runs on a pi0 but a bit slower.
Is your machine perhaps running out of memory/cpu ?
All those BrokenPipeErrors you notice are probably a result of failing streams.
Are you trying to stream Spotify or other provider ? For simplicity perhaps start with TuneIn radio station ?
I'm working on the code to fix another bug atm. I will add some more logging at several places.

Stooovie

Hi, I previously ran into similar cast problems of local media files in the standard media browser. I noticed the text "default media Receiver" in my Chromecast players when using Music Assistant. The same happens when I cast local media files. So it can be related to your issue! The solution was simple. I learned it was an SSL issue. In the network settings, I had the internal and external URLs configured as "https" without having SLL certificates configured. Most of the HA usage was working, except for casting! Just by only changing my URL's to "http" and reboot the PI fixed casting.

Thank you, I'm no network expert but HA seems to be configured to use plain HTTP internally and HA Cloud externally, and inside my home, I'm usually accessing it via plain HTTP in Edge or the HA app on iPhone. Even connecting with plain HTTP via Edge on my iPhone doesn't fix the issue.

The streaming of Music Assistant is independent of HA network setup and uses a dedicated (internal only) port, defaults to 8095. The only thing important is that any audio players are able to reach the HA server directly on the same network so unless you're running some complex VLAN network that should work out of the box.
I'm currently installing a pi4 32 bits to test if I can reproduce the issues.

I changed the config to disable Spotify and only enable TuneIn. I restarted HA. After restart, I still see all my Spotify stuff and no trace of TuneIn. The integration basically doesn't work at all on my system, for whatever reason.

HA seems to be configured to use plain HTTP internally and HA Cloud externally

I guess if you have HA Cloud, SSL is configured. I'm not an expert either but understood the URL's and SSL have to be consistent for casting. Give it another try and configure your internal URL as HTTPS instead of HTTP then. Don't forget to reboot. I really hope this resolves your issue

@Stooovie I've just installed a pi4 (2gb ram) with 32 bits OS and everything is working smooth. Playback works as expected and everything is responsive/fast. I will now have a look at trying a few other media players because you mentioned a few I did never test before.

Hmm, I think I found what's going on.  Strange that some players did actually work.

That sounds good... I really don't want to mess with my system (32bit to 64bit) as it's working great unless absolutely necessary.

Chiming in to report that 1.0.11 fixes playback on Sonos but that's it. Echo devices complain about not being able to call the service ("Sorry, text to speech can be only called by the notify service"), Volumio doesn't do anything at all and radio stations (automatically imported by MA from the HA Sonos integration) don't play anywhere, not even the Sonos unit itself.

Damn... Turns out that every media player integration handles playback differently (it's a bit of mess). I do not own all devices to test myself but I'll take a look at the source code of each to work out the differences.
So, you will be able to test:

Sonos
Volumio

I am going to implement device specific "quirks" in the Music Assistant code for each media player.
I guess I have been way too optimistic in believing the play media by url works with each integration.
Besides that created an architecture discussion for HA core to clean up the mess some day:
https://github.com/home-assistant/architecture/discussions/766
I will let you know once I have implemented the quirks for Amazon Echo and Volumio

Very cool, thanks! Too bad I'm not a dev, I'd help out in a heartbeat.

Thank you! That's a shame about Echos but completely understandable.

closing this one as it's getting a bit hard to follow. May any issues still exist, please open a new issue report for each issue or feature request. Thanks!
@vk2him there are various issues with atv integration regarding playback, most are generic so not specific to HA.
I've added an issue to my TODO list to have a look if we can workaround the current limitations by sending the audio stream directly... See #124


SOLR-15496 LTRRescorer unnecessarily (re)creates Comparator

…objects
https://issues.apache.org/jira/browse/SOLR-15496

Description
A static instance of the comparator(s) could be created and reused.
Solution
I just created two static comparators instead of creating both each call

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[ ] I have created a Jira issue and added the issue ID to my pull request title.
[ ] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[ ] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Thanks @marcosfpr for the updates! I've just added a draft solr/CHANGES.txt entry, but before merging the pull request here would like to check about your preferred name for the entry e.g. "Marcos Pontes" (github full name) or "marcosfpr" (github handle) or "Marcos Felipe Pontes Rezende" (JIRA full name) or something else?

Thank you @cpoerschke for the quick responses and kind consideration of help me. Honestly, my preferred name for the entry is the github handle "marcosfpr".


Refactor

Codecov Report

Merging #27 (7dd301c) into master (d4f857f) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   77.12%   77.07%   -0.06%
==========================================
  Files          12       11       -1
  Lines        1740     1736       -4
==========================================
- Hits         1342     1338       -4
  Misses        398      398

Flag
Coverage Δ

unittests
77.07% <100.00%> (-0.06%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

lib/connection.lua
73.77% <100.00%> (+1.84%)
:arrow_up:

lib/pool.lua
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


top style output

This is pretty sweet, many thanks for putting this out.
Is it possible to capture the output of top today or accepting a new feature request for this? Would be pretty awesome, imho.

To be clear, while it's possible to run top -n 1 and capture it, I meant more along the lines of capturing any such output (varnishtop in particular for my use-case).

If I'd design an app like this I'd go for intermediate script (in python or perl) that parses output of external commands and gives json as output (with possible caching in shared filestore or memory). Then you can write your javascript part that connects to websocket and waits for those json messages that your server part provides.

@asergeyev Seems like an over-engineered solution and very output-specific so it wouldn't scale across multiple commands.
Far simpler would be to run the curses-based command inside screen and capture the output using hardcopy and relay that.
However, having this as a feature in websocketsd would kick things up a couple notches. Running curses-style commands like top in the browser has a high wow factor and good utility.

I don't know a terminal emulator for web apps. If one exists you can put websocket into binary mode and pass data from server ncurses app to frontend

We are using the websocketd because it is best and nice, doing its one and only task brilliantly. It is praising the design philosophy of Unix (& Linux) - which is Kiss. This way you do have minimal hassle, bugs and need for support. You shoud add (or create) a preprocessor from top to websocketd. Anyhow after top you shall need connection for watch, sar, etc. We did our own preprocessor for a propriatary SW. It reads heartbeat from the SW and sends JSON to websocketd. Idea is simple and you may pipe or whatever to connect top and wsd.


Fix GetMatch includeTimeline flag

The includeTimeline flag in the GetMatch api call needs to be "true". Any other value such as "1" results in the timeline not being included. Try it out with this url.
https://na.api.pvp.net/api/lol/na/v2.2/match/2209946544?includeTimeline=true&api_key=

Thanks for catching this.
I could be wrong, but I think a better solution might be to change the ternary operator on line 42 of https://github.com/rithms/riot-api-java/blob/master/src/main/java/net/rithms/riot/api/UrlParameter.java
to:
this(key, value ? "true" : "false");

as it is likely this bug is present in other methods that utilize boolean query parameters.
Otherwise we would have to patch every method individually, instead of fixing the root of the problem.
Let me know what you think, and I'll merge the changes.

I agree. Tested the riot api with the following methods and they all accept "true", not "1".
https://na.api.pvp.net/api/lol/na/v1.2/champion?freeToPlay=true&api_key=
https://global.api.pvp.net/api/lol/static-data/na/v1.2/champion?dataById=true&api_key=
https://global.api.pvp.net/api/lol/static-data/na/v1.2/summoner-spell?dataById=true&api_key=
Thanks!

Much appreciated!


Can this feature be used in a viewmodel?

[EDIT by guardrex to escape the "<" in the first sentence to get it to show up in the comment.]
To be clear, I'm referring to OwningComponentBase and OwningComponentBase<T>.
Can this feature be used in a ViewModel or only used in the @code or code-behind file?  If only in @code or code-behind, this would limit the ability to use ViewModels.
Thanks for your thoughts,
Karl

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

ID: ce9457c7-13d4-1520-790c-a18187532ff4
Version Independent ID: 43f87dbb-2f36-c91e-084c-c28d93da923f
Content: ASP.NET Core Blazor dependency injection
Content Source: aspnetcore/blazor/dependency-injection.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

Thanks for contacting us.
You can register the ViewModel in the DI as a scoped service. Then resolve it from the provided service provider on the OwningComponentBase.


Flatten the file hierarchy

Pretty simple now:

Closes #2

Merging this in because we had already talked about it during standup today, it just needed a rebase.


新增对halo数据库的支持

halo数据库在使用druid中出现没有找到halo驱动错误,因此增加代码适配进行合并

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhoulanqing seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

git提交时的user.name和user.email需要和github账户保持一致，否则签不了CLAassistant，关了重新提交吧。
git push前确认一下git配置
$ git config --global -l


Lost all procedural experiments

Upgraded to 1.2.7 via CKAN and all of the experiments configured for my procedural avionics disappeared.  It only happened once a craft became active.
Running RO and RP-1 latest installs via CKAN.
Reverted to 1.2.5 (I had never used 1.2.6 so I went back further) and it was fine, however, any craft I used during the time I was using 1.2.7 still had the experiments gone.

You don't have the latest RP-1 then.
Sent by my thumbs, slowly.
On Wed, Aug 17, 2022, 11:36 AM Bill Rouady @.***> wrote:

Upgraded to 1.2.7 via CKAN and all of the experiments configured for my
procedural avionics disappeared. It only happened once a craft became
active.
Running RO and RP-1 latest installs via CKAN.
Reverted to 1.2.5 (I had never used 1.2.6 so I went back further) and it
was fine, however, any craft I used during the time I was using 1.2.7 still
had the experiments gone.
—
Reply to this email directly, view it on GitHub
https://github.com/KSP-RO/ROKerbalism/issues/131, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHH4IVXRLCHCYH3TJXYWZTVZUWK3ANCNFSM562RADZQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Sorry, CKAN was not identifying a new RP-1 version but I see now there was one on 8/15.  I am upgrading both and expect it will work.


MatButton not styled if in Dialog exported by Angular Library

I've created an Angular libray by ng g library xxx with my commons components like a ConfirmDialog using MatDialogModule
In main app  <button mat-flat-button color="primary">DIALOG</button> is correctly styled:

Opening Dialog, buttons are not styled:

Reproduction
I cannot use StackBlitz to reproduce because it not supports angular libraries so I created a repo:
https://github.com/fabriziodebortoli/library-material-dialog-styles.git
Steps to reproduce:

git clone https://github.com/fabriziodebortoli/library-material-dialog-styles.git
cd library-material-dialog-styles
npm install
npm start

Expected Behavior
Buttons inside Dialogs must be styled
Actual Behavior
What behavior did you actually see?
Environment

Angular: ~9.0.3
CDK/Material: ~9.1.0
Browser(s): Latest Chrome

I confirm this bug is happening to me too.

I can also confirm.

Looks like your library module does not import MatButtonModule. The compiler is not able to automatically infer what the mat-button attribute in the dialog component resolves to.

Not solved.
I imported MatButtonModule in LibraryModule but buttons are still without styles

@fabriziodebortoli In your app module you don't seem to import the library module though. I tried these changes locally (now a second time) and was able to fix it that way. No reason to downvote.

I imported LibraryModule in AppModule using import { LibraryModule } from '@azz/library';
but I still have the problem...
Trying
import { LibraryModule } from 'projects/azz/library/src/public-api';
it's ok but I think is not the correct way to do it

@fabriziodebortoli Okay so there are a couple of things:

Add MatButtonModule to the library module
Actually add the library module to the AppModule.
Import the Confirm dialog component from the library @azz/library import and not directly through the source files. That causes the library module to be ignored.

I hope that helps.

These things have already been done.
Importing from @azz/library does not work.
Only importing directly.

Okay. I definitely confirmed multiple times now that this is working as expected. There is not more we can do. Sorry.

Your proposed changes are already been done and it does not work as you can see from my repo.
So I think I don't understand what you mean.
Thanks anyway.

@fabriziodebortoli I don't know what you tried or not, but what I can see is that your repository does not have the direct import removed in the app component. Surely you might have tried that before, but I can only assume you did not. Fixing that import, along with bullet points (1), (2) and (3), makes it work for me.
https://github.com/fabriziodebortoli/library-material-dialog-styles/blob/master/src/app/app.component.ts#L3

I assume you did not replace the import in app component as this file hasn't been touched since the initial reproduction, while you applied all other suggestions (from my posts) to the repository.

Now I understand and it works.
Thank you for your time.


How can i use beta of v1 when react version is 15.x ?

My react version is 15.6
How can i use beta of material v1+ ?  (core + icons)
And what docs should i use ?

How can i use beta of v1 when react version is 15.x

Use<EMAIL_ADDRESS>release note.

what docs should i use

There is no live documentation. You can build it from the source.

@oliviertassinari   And how can i import icons when i use the beta version.  @material-ui/icons works ?

@DaviGao With material-ui-icons.

@oliviertassinari    Thank you so much for your reply.  It works.


--features='S'

When I change the param '--features=' ,from 'M' to 'S',follow error return:
RuntimeError: Given groups=1, weight of size [512, 7, 3], expected input[32, 1, 98] to have 7 channels, but got 1 channels instead

you have to be more specific. what's the full command you are running?

The other params are same in the file run.py.

Args in experiment:
Namespace(L=3, activation='gelu', base='legendre', batch_size=32, c_out=7, checkpoints='./checkpoints/', cross_activation='tanh', d_ff=2048, d_layers=1, d_model=512, data='ETTh1', data_path='ETTh1.csv', dec_in=7, des='test', devices='0,1', distil=True, do_predict=False, dropout=0.05, e_layers=2, embed='timeF', enc_in=7, factor=1, features='S', freq='h', gpu=0, is_training=1, itr=3, label_len=48, learning_rate=0.0001, loss='mse', lradj='type1', mode_select='random', model='FEDformer', modes=64, moving_avg=[24], n_heads=8, num_workers=0, output_attention=False, patience=3, pred_len=96, root_path='./dataset/ETT/', seq_len=96, target='OT', task_id='test', train_epochs=10, use_amp=False, use_gpu=False, use_multi_gpu=False, version='Fourier')
Use CPU

you can't just change the features from M to S to run the univariate experiments. Run the scripts:run_S.sh. There are other changed parameters.


Can't install HAXM on macOS, as "Intel Corporation Apps" developer certificate has expired

Describe the Bug
Both silent and non-silent installs of HAXM fail on macOS.
Silent install:
$ ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
# Fails, telling me to inspect the logs
$ cat /private/tmp/haxm_silent_run.log
/dev/disk3          	GUID_partition_scheme
/dev/disk3s1        	Apple_HFS                      	/Volumes/com_intel_kext_haxm_disc
mpkg_file=/Volumes/com_intel_kext_haxm_disc//IntelHAXM_7.3.2.mpkg
ecx 7ffafbff
edx 2c100800
edx 2c100800
No emulator instance exist!
sed: /Library/Extensions/intelhaxm.kext/Contents/Resources/support.txt: No such file or directory
Intel HAXM: This is a new installation
installer: Package name is Intel(R) Hardware Accelerated Execution Manager
installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override.
"disk3" ejected.
Error: The installation-check script run failed !
*************** Silent installation failed ! ****************

Non-silent install, by running the .pkg installer provided by mounting ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_7.3.2.dmg:

So Intel needs to renew the certificate, as it expired a couple of weeks ago.
Host Environment

HAXM version: 7.3.2
Host OS version: macOS 10.14.5
Host OS architecture: x86_64
Host CPU model: 2.3 GHz Intel Core i5
Host RAM size: 16 GB

Guest Environment
N/A
To Reproduce
Reproduction steps given above. Basically just try to install HAXM on macOS.
Expected Behavior
Expectation: Certificates should be in-date and thus installation should succeed.
Reproducibility
100%, for now!
Diagnostic Information
See above.
Additional Information
I am aware that I could install it by trusting the expired certificate or appending -allowUntrusted, but I refuse, as it's a security risk.

lol

@shirakaba , thanks for reporting this issue. There was indeed a certificate compatibility issue with new Mac OS version, and we resolved with the latest HAXM release. Could you try the latest HAXM verison v7.5.1, which could be downloaded from the release page. https://github.com/intel/haxm/releases ?

Hi @wayne-ma, I successfully installed it this time; the certificates were fine. I'll have to restart my computer before I can assess whether the installed package works, but I can at least confirm that the certificates issue is resolved. Thanks for sorting it out!

→ cat /private/tmp/haxm_silent_run.log
/dev/disk6          	GUID_partition_scheme
/dev/disk6s1        	Apple_HFS                      	/Volumes/com_intel_kext_haxm_disc
mpkg_file=/Volumes/com_intel_kext_haxm_disc//IntelHAXM_7.3.2.mpkg
ecx 7ffafbff
edx 2c100800
edx 2c100800
No emulator instance exist!
haxm-isDowngrade: installed version of Intel HAXM found = 7.3.2; current version = 7.3.2
current version is the same or newer than existing one
Intel HAXM: This is a re-installation (chnage of memory limit)
installer: Warning - Intel Hardware Accelerated Execution Manager is already installed on this computer. If you continue installation, the Intel HAXM will be re-installed.
installer: Package name is Intel(R) Hardware Accelerated Execution Manager
installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override.
"disk6" ejected.
Error: The installation-check script run failed !
*************** Silent installation failed ! ****************


Vickel: Watch dice[\W_]+dreams[\W_]+generator

Vickel requests the watch of the watch_keyword dice[\W_]*+dreams[\W_]*+generator. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

dice[\W_]*+dreams[\W_]*+generator has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Jesse in Charcoal HQ


fix(web): fix type issue in theme switch

Access of undefined theme causing crash in theme switch if no theme setting was already saved.

bors r+


Remove un-necessary changelog entry

Description
Removes entry that have been put into 2.17
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

[ ] Functionality includes testing.
[ ] API changes companion pull request created, if applicable.
[ ] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@reta sorry for this confusion, I forgot that this should have been removed in that backport PR

@reta sorry for this confusion, I forgot that this should have been removed in that backport PR

Np, thanks for fixing it @harshavamsi !


[IMPAC-668] threshold timeperiod

@cesar-tonnoir this is a WIP, it's working to a nearly finished state, I just need to review it tomorrow, would be good to have your overnight feedback.

@cesar-tonnoir looks like this was never merged yet it was approved? Do you remember? Just doing some branch house keeping

Replace by https://github.com/maestrano/impac-angular/pull/517


[Industry Core KIT 24.08] Updated Software Development View

Description
Added new guidelines into the Digital Twin section of the Software Development View. For more details have a look at the updated changelog.

Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:

[x] DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
[x] Copyright and license header are present on all affected files

@mhellmeier i can't assigne you therefore i'll try it this way. Please review my PR.

Please fix the DEPENDENCIES file to make the pipeline pass.


retire conn IDs with sequence numbers smaller than the currently active

Fixes #2547.

Codecov Report

Merging #2563 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2563      +/-   ##
==========================================
- Coverage   86.17%   86.15%   -0.02%
==========================================
  Files         122      122
  Lines        9550     9550
==========================================
- Hits         8229     8227       -2
- Misses        983      984       +1
- Partials      338      339       +1

Impacted Files
Coverage Δ

conn_id_manager.go
92.23% <100.00%> (-1.94%)
:arrow_down:

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 fa69438...b0c1aed. Read the comment docs.


decode arguments into enums

I have a KDL document like:
pad {
    left "Left"
    right "Right"
    up "Up"
    down "Down"
}

And I want to decode it into the following structure.
#[derive(knuffel::Decode)]
pub struct Config {
    #[knuffel(child)]
    pub pad: Pad,
}

#[derive(knuffel::Decode)]
pub struct Pad {
    #[knuffel(child, str, unwrap(argument))]
    pub left: KeyMap,
    #[knuffel(child, str, unwrap(argument))]
    pub right: KeyMap,
    #[knuffel(child, str, unwrap(argument))]
    pub up: KeyMap,
    #[knuffel(child, str, unwrap(argument))]
    pub down: KeyMap,
}

#[derive(enum_utils::FromStr)]
pub enum KeyMap {
    Left,
    Right,
    Up,
    Down
}

This is a very common pattern when working with serde but it seems knuffel doesnt support enums as arguments/properties very well?
I tried the knuffel derive attributes that I included in this example as well as a few others but all of them either failed to compile or failed to parse the kdl.

TL;DR: Jump to 3.
Before anything else, I would have to tell you that your design is wrong. And this is being more or less caused by knuffel’s own misconception about children #18 and modelling methodologies that push you to resort to the unwrap behaviour. To explain one by one, in KDL,

First of all, you don’t have to include arguments or properties. If only those existences have meaning, your nodes can be without them:

pad {
    left
    right
    up
    down
}

Second, and this is where knuffel doesn’t correctly conceive the idea, child nodes are basically for enumeration; in your case, you would want either

2.1. to allow duplicate Keys (now better to be called this way instead of KeyMaps) in Pad:
pad {
  left
  left
  up
}

#[derive(Decode)]
struct Pad {
    #[knuffel(children)]
    keys: Vec<Key>
}

#[derive(Decode)]
enum Key {
    ..
}

2.2. or to wind up Key to the level of Config:
left

#[derive(Decode)]
struct Config {
    #[knuffel(child)]
    key: Key
}

But currently this doesn’t work due to knuffel’s wrong implementation by the misconception.

Lastly, and this is most likely what you initially wanted, you can turn enum variants into string values by implementing DecodeScalar:

key "left"

#[derive(Decode)]
struct Pad {
    #[knuffel(argument)]
    key: Key
}

#[derive(DecodeScalar)]
enum Key {
    ..
}

Hi @rukai.
Sorry for the long delay, it works you just have to use str in unwrap:
    #[knuffel(child, str, unwrap(argument))]
    pub left: KeyMap,

This is because str works on the argument that is going to be unwrapped. I.e. we first parse thing like #[knuffel(argument, str)] and then do unwrap.
The alternative is also use knuffel's derive
#[derive(knuffel::DecodeScalar)]
pub enum KeyMap {
    Left,

This gets better error reporting in my opinion, but we don't have rename option for that yet.
I'll take a look why child, str doesn't fail. But other than that there is nothing to do here. Feel free to open PR for documentation or another feature request on improving DecodeScalar.

Error message improved in #25:


Spark_Install Allows Installation Of Unsupported Versions of Spark Without Warning

I understand some potential utility of allowing installation of yet-unsupported versions, but it should warn the user up-front with the option to not continue or a recommendation for the latest supported version.
Code:

spark_install(version = "2.3.0")
Installing Spark 2.3.0 for Hadoop 2.7 or later.
Downloading from:

'https://www-us.apache.org/dist/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz'
Installing to:
'C:\A_PATH_TO\Local/spark/spark-2.3.0-bin-hadoop2.7'
trying URL 'https://www-us.apache.org/dist/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz'
Content type 'application/x-gzip' length 226128401 bytes (215.7 MB)
downloaded 215.7 MB

Installation complete.
sc <- spark_connect(master = "local")

Using Spark: 2.3.0
Error in start_shell(master = master, spark_home = spark_home, spark_version = version,  :
sparklyr does not support Spark version: 2.3.0

Could you share the output of sessionInfo()?

Oh I see what you're saying, yes we can do a better job with this.

Sorry, I've since reconfigured Java and Spark and reinstalled sparklyr. I don't think the output of sessioninfo() would give you any good info.
Sent from BlueMail
On Apr 30, 2018, 3:41 PM, at 3:41 PM, Kevin Kuo<EMAIL_ADDRESS>wrote:

Oh I see what you're saying, yes we can do a better job with this.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/rstudio/sparklyr/issues/1454#issuecomment-385506614


There is no workflow under the "Action" node of environment

OS: Win10
Build Version: 20200906.1
Repro Step:

Create a Static Web App.
Create an Environment by the following commands:

git checkout -b new
git add .
git commit -m 'api'
git push origin head

Go to GitHub -> Compare changes between the "master" and "new" branch -> Create a pull request.
Check the "Actions" node.

Expect:
Display the workflows under the "Actions" node.
Actual:
There is no workflow under the "Actions" node.

How long did you wait?  Did you refresh the Actions node?

Verified on the latest build 20200908.1, this issue also reproduces after refreshing or waiting about 5 minutes.

Verified on the latest build 20201103.2. it doesn't reproduce. So close it.


Lightweight Auditable Upgrade path

Here's a plan for upgrading to new MRENCLAVES without taking all the complexity of proactively checking DCAP attestations. We are already aiming for a "post hoc auditable" threat model, where instead of relying on proactive validation we are relying on Certificate Transparency to produce an audit log.
Continuing in this line, the simplest recipe for an upgrade-capable key manager could be the following two endpoints:
Existing node:

If env['TRAINYOURREPLACEMENT']:
send the key to https://${TEE_URL}/receiveTheKey

New node:

/receiveTheKey/<key>:
take the key and go

What is this reasonable? Basically we are using the validation in the https request to substitute for what otherwise would be a verification of the quote and a contract query that the MRENCLAVE is authorized.
Further extensions:

Require some kind of OCSP or otherwise freshness check before sending? If we revoke a certificate ideally sending becomes impossible but simple get request won't check it.

/dev/attestation/keys/<key_name> file contains the encryption key with a given name (the default key name is default). Typically, it is opened before the actual application runs and filled with a 128-bit key obtained from a remote secret provisioning service. The format of the file is a 16-byte raw binary value.

According to gramine docs, we can still use the "sealed files" subsystem even if we set the keys ourselves, by opening /dev/attestation/keys/masterkey for example and writing 16-byte value to it.


Fix for facet cardinality when it is present

Make sure facet type uses options filter(s) (if any) for cardinality query

reference https://github.com/smartprocure/spark/issues/11127
With options filter

Without options filter

Warnings

:warning:
The README has not been updated. Please update the README.

Messages

:book:
Could not find any browser results.

  Generated by :no_entry_sign: dangerJS against cedfda52f9999d1d7dc173e356502c5c0ba8d1dc


How to use  ADO.NET  in asp.net core 1.0?

Please guide me to use ado.net in asp.net core 1.0

You should include SqlClient to your project.json.
 "frameworks": {
    "netstandard1.3": {
      "dependencies": {
        "System.Data.SqlClient": "4.1.0-*"
      }
    }
  }

Then you will be able to use old fashion sql connection:
   using (SqlConnection connection = new SqlConnection(connectionString))
   {
           connection.Open();
           using (SqlCommand command = new SqlCommand("SELECT * FROM dbo.Test", con))
           {
                  var reader = command.ExecuteReader();
                  // map your reader
           }
    }

Another scenario:
Imports Oracle.DataAccess Imports Oracle.DataAccess.Client


Documentation: checkbox copy under wrong heading

It looks like the "small checkboxes" information from this line on should actually be under "Generating a single checkbox" https://github.com/DFE-Digital/govuk_design_system_formbuilder/blob/6bd77bbfb7a1b9e469ecb786f5f35d56a1e42a78/guide/content/form-elements/checkboxes.slim#L56

Thank you for reporting this @ethanmills, I've moved the quote and attempted to make the phrasing in that section clearer.

Thanks for picking this up so quickly! I've added a comment on the PR