Youtube video downloads but will not play correctly.

Checklist

[x ] I'm reporting a broken site support
[x ] I've verified that I'm running youtube-dl version 2019.11.28
[x ] I've checked that all provided URLs are alive and playable in a browser
[x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x ] I've searched the bugtracker for similar issues including closed ones

Verbose log
$ time ~/bin/youtube-dl-191128 -v https://www.youtube.com/watch?v=LHA9Ikd9fEw
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=LHA9Ikd9fEw']
[debug] Encodings: locale ISO-8859-1, fs iso8859-1, out ISO-8859-1, pref ISO-8859-1
[debug] youtube-dl version 2019.11.28
[debug] Python version 3.7.5 (CPython) - Linux-5.3.15-300.fc31.x86_64-x86_64-with-fedora-31-Thirty_One
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1
[debug] Proxy map: {}
[youtube] LHA9Ikd9fEw: Downloading webpage
[youtube] LHA9Ikd9fEw: Downloading video info webpage
[youtube] LHA9Ikd9fEw: Downloading m3u8 information
[youtube] LHA9Ikd9fEw: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1576768947/ei/U0H7XfqiIuKij-8Pl7278AE/ip/<IP_ADDRESS>/id/LHA9Ikd9fEw.1/source/yt_live_broadcast/requiressl/yes/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/fexp/23842630/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cas%2Cforce_finished%2Citag%2Cplaylist_type/sig/ALgxI2wwRQIhAIqSjqJvvTGFsH-nuu5fSnVngmP2ZnF9nPWj4xWhxRW0AiBXAHa6k_tnS_Sw4eiJncKtDd2vtCGJJlSJPaCgFMsLTQ%3D%3D'
[dashsegments] Total fragments: 2881
[download] Destination: House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f136.mp4
[download] 100% of 1.93GiB in 19:57
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1576768947/ei/U0H7XfqiIuKij-8Pl7278AE/ip/<IP_ADDRESS>/id/LHA9Ikd9fEw.1/source/yt_live_broadcast/requiressl/yes/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/fexp/23842630/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cas%2Cforce_finished%2Citag%2Cplaylist_type/sig/ALgxI2wwRQIhAIqSjqJvvTGFsH-nuu5fSnVngmP2ZnF9nPWj4xWhxRW0AiBXAHa6k_tnS_Sw4eiJncKtDd2vtCGJJlSJPaCgFMsLTQ%3D%3D'
[dashsegments] Total fragments: 2881
[download] Destination: House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f140.m4a
[download] 100% of 222.96MiB in 14:11
[ffmpeg] Merging formats into "House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f136.mp4' -i 'file:House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.temp.mp4'
Deleting original file House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f136.mp4 (pass -k to keep)
Deleting original file House committee debates Trump impeachment vote guidelines-LHA9Ikd9fEw.f140.m4a (pass -k to keep)
real    36m24.331s
user    3m1.329s
sys     2m4.790s
Description
Youtube-dl appears to download the video file without any apparent problem, but the file seems to be smaller than it should be.  Playing the resulting file in VLC gives the first few seconds of the video with sound before the screen turns gray with no audio and continues with a lot of tearing.  Smplayer fairs a little better in that the video presents an image with audio, but the image speeds up and slows down without bothering to sync up with the audio before mplayer aborts.

This issue is specific to DASH videos (see also: #23793).
youtube-dl (or ffmpeg) can merge it fine, but the timecode is all messed up.
I figured a workaround just in case someone is interested:

remux the video into MKV using whatever tools you like
Use mkvextract to extract the raw video and audio tracks. In this process the (wrong) timecode will be discarded.
Merge them back to whatever format you like using either ffmpeg or mkvtoolnix.

This issue is specific to DASH videos (see also: #23793) and is still present today.
youtube-dl (or ffmpeg) can merge it fine, but the timecode is all messed up.
I figured a workaround just in case someone is interested:

remux the video into MKV using whatever tools you like
Use mkvextract to extract the raw video and audio tracks. In this process the (wrong) timecode will be discarded.

Note: theoretically you would just extract audio.aac and video.h264 (make sure to not use any container, otherwise ffmpeg will still keep the timestamps) from the mp4 file using ffmpeg, but I found it's very slow.

Merge them back to whatever format you like using either ffmpeg or mkvtoolnix.

Yes, can confirm this works. I've been dealing with similar issues for quite a while.
Should note that, if youtube-dl is downloading files using incompatible format combinations (in most cases, mp4 video and webm audio), which would be converted to mkv in such cases, the resulted mkv file will have correct timestamps and can be played properly, so I think the conversion process correctly stripped the invalid timestamp (which was the duration of an individual fragment).
Maybe one should always force the output file to mkv to see if that makes a difference.

This issue is specific to DASH videos (see also: #23793) and is still present today.
youtube-dl (or ffmpeg) can merge it fine, but the timecode is all messed up.
I figured a workaround just in case someone is interested:

remux the video into MKV using whatever tools you like
Use mkvextract to extract the raw video and audio tracks. In this process the (wrong) timecode will be discarded.

Note: theoretically you would just extract audio.aac and video.h264 (make sure to not use any container, otherwise ffmpeg will still keep the timestamps) from the mp4 file using ffmpeg, but I found it's very slow.

Merge them back to whatever format you like using either ffmpeg or mkvtoolnix.

Yes, can confirm this works. I've been dealing with similar issues for quite a while.
Should note that, if youtube-dl is downloading files using incompatible format combinations (in most cases, mp4 video and webm audio), which would be converted to mkv in such cases, the resulted mkv file will have correct timestamps and can be played properly, so I think the conversion process correctly stripped the invalid timestamp (which was the duration of an individual fragment).
Maybe one should always force the output file to mkv to see if that makes a difference.


Test with TBD stuff

This also should fix the flakiness in #319

Codecov Report

Merging #321 (ab3f0e1) into main (4d5dcb0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #321   +/-   ##
=======================================
  Coverage   18.73%   18.73%
=======================================
  Files          36       36
  Lines        4292     4292
=======================================
  Hits          804      804
  Misses       3368     3368
  Partials      120      120

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Replaced by https://github.com/TBD54566975/ssi-service/pull/323


Extension issue

Issue Type: Bug
Extension Name: python
Extension Version: 2020.12.422005962
OS Version: Windows_NT x64 10.0.14393
VSCode version: 1.52.0

:warning: We have written the needed data into your clipboard. Please paste! :warning:
{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 270,
		"activateCallTime": 28,
		"activateResolvedTime": 283,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "ms-toolsai.jupyter",
				"_lower": "ms-toolsai.jupyter"
			},
			"activationEvent": "api"
		}
	},
	"runtimeErrors": [
		{
			"name": "Error",
			"message": "request cancelled"
		},
		{
			"name": "Error",
			"message": "request cancelled"
		}
	]
}

Most likely something wrong with the latest release. Roll back your vscode to the one from 1 month ago and it should work. For me v2020.10.332292344 did the trick.


Wrong parse results?

This code
from lark import Lark

grammar = """
start: any zeros any
any: /./+
zeros: "0"+
"""

print(Lark(grammar, ambiguity="explicit").parse("a00b").pretty())

results in
_ambig
  start
    any a
    zeros
    any
      0
      b
  start
    any a
    zeros
    any
      a
      0
    zeros
    any b

The former of the ambiguity seems relevant, but the latter of it implies that the string "a00b" is parsed into any(a) zeros any(a0) zeros any(b), which seems wrong.
Here is the reproduction and the version is 0.8.5.
https://repl.it/@RyoYamamoto/Lark-test-3

Please look at old issues if they are the same: #455.

I think it's same.Thank you.


correct drawdown days calculation

correct drawdown days calculations, 'end' of drawdown now always the last date of the drawdown
fixes #233

P.S. it seems to me the whole code fails DeepSource checks rather than the particular commit tagged above..


Add Concurrency Sample

Description
This adds a new sample file to showcase using concurrency to improve performance.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-cosmos

I looked at this a bit more and I think we should also include a section in the README talking about this sample and referring to it with a link - this way it will be easier for our customers to find it rather than expecting them to just look at our samples without guidance.
This README bit should also have some comparisons/ percentage differences listed so that users can see how beneficial it might be for them to use it, as well as having the notice on how this will explode their RU consumption and how they should be aware of this if they choose to use it.


Sensitivity slider in Settings window

This is mentioned in #85.
It seems like the functionality of this sensitivity slider is very similar to what the user might achieve by widening the time window shown in the browser.
Is this the correct behavior?
Please, feel free to close this issue if in fact the sensitivity slider has the correct behavior.

@juangpc Thank you for your great work on the settings and toolbar-tests.
The sensitivity slider changes the amount scrolled (via mousewheel or keyboard) relative to the shown duration. So it is similar but not the same.
We once had a discussion if this is YAGNI. I thought it might be nice for example if you use a horizontal scroll wheel. But usually this is also adjustable in the settings of your mouse-driver. WDYT?

You're welcome.
I see. I don't see any problem having it. I'll close this.


PDI-18503 - Changed the type conversion process

:white_check_mark: Build finished in 1m 7s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message

@mbatchelor - I will fix the Checkstyle issues, but the objects have to be Long. The data directly goes to the Object[] that represents the row. Kettle Integer type fields have to be stored in Long, and Kettle Number type has to be stored in a Double.

:white_check_mark: Build finished in 1m 3s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 1m 26s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 1m 24s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 1m 20s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 6m 41s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 98, Failures: 0, Skipped: 0    Test Results

:information_source:  This is an automatic message


Bump origin-web-console (61c15735)

Manual vendor of console that includes https://github.com/openshift/origin-web-console/pull/3056
/cc @jwforres

/hold

Built the image manually and verified it looks correct

/hold cancel
Automated vendor only

/cherrypick release-3.10


[StyleCop] Set single, unified ruleset file for all project in the solution

Fixes #1422 and #1459
Description
In this pull request, we unified all the rules from the projects into a single ruleset file and we placed it at the solution level, we use the Directory.Build.props to set this ruleset file to all the projects in the solution
Changes made
Add BotBuilder-DotNet.ruleset file.
Remove the duplicated ruleset files from projects.

@JuanAr, @denscollo  Please submit this PR from a branch in this repo, rather than a fork/PR? That way the automated build will run, along with the tests, and I'll know that merging this doesn't break everything.
Given the number of projects touched by this, the build needs to pass before I can merge. Our DevOps CI process only does branch builds right now (until we cleanup the security variables), so we're stuck doing it that way.

@cleemullins we replaced this fork PR with another branch PR. However, it looks like the build is failing since 2 commits ago https://github.com/Microsoft/botbuilder-dotnet/commits/master.


Provider produced inconsistent result after apply in ionoscloud_share

Description
Using the following configuration:
locals {
  admins  = { for user in var.users : user.username => user if contains(user["roles"], "admin") }
  editors = { for user in var.users : user.username => user if contains(user["roles"], "user") }
  readers = { for user in var.users : user.username => user if contains(user["roles"], "reader") }
}

data "ionoscloud_user" "admins" {
  for_each = local.admins
  email    = each.value.username
}

data "ionoscloud_user" "editors" {
  for_each = local.editors
  email    = each.value.username
}

data "ionoscloud_user" "readers" {
  for_each = local.readers
  email    = each.value.username
}

resource "ionoscloud_datacenter" "this" {
  name                = "${var.workspace_id}-${var.project_id}"
  location            = var.dc_location
  description         = var.dc_description
  sec_auth_protection = false
}

resource "ionoscloud_share" "admin" {
  count           = length(local.admins) > 0 ? 1 : 0
  group_id        = ionoscloud_group.admin[0].id
  resource_id     = ionoscloud_datacenter.this.id
  edit_privilege  = true
  share_privilege = false
}

resource "ionoscloud_share" "editor" {
  count           = length(local.editors) > 0 ? 1 : 0
  group_id        = ionoscloud_group.editor[0].id
  resource_id     = ionoscloud_datacenter.this.id
  edit_privilege  = true
  share_privilege = false
}

resource "ionoscloud_share" "reader" {
  count           = length(local.readers) > 0 ? 1 : 0
  group_id        = ionoscloud_group.reader[0].id
  resource_id     = ionoscloud_datacenter.this.id
  edit_privilege  = true
  share_privilege = false
}

resource "ionoscloud_group" "admin" {
  count                          = length(local.admins) > 0 ? 1 : 0
  name                           = "${var.workspace_id}-${var.project_id}-admins"
  user_ids                       = [for d in data.ionoscloud_user.admins : d["id"]]
  create_datacenter              = true
  create_snapshot                = true
  reserve_ip                     = true
  create_pcc                     = true
  s3_privilege                   = true
  create_backup_unit             = true
  create_internet_access         = true
  create_k8s_cluster             = true
  create_flow_log                = true
  access_and_manage_monitoring   = true
  access_and_manage_certificates = true
  manage_dbaas                   = true
}

resource "ionoscloud_group" "editor" {
  count                          = length(local.editors) > 0 ? 1 : 0
  name                           = "${var.workspace_id}-${var.project_id}-editors"
  user_ids                       = [for d in data.ionoscloud_user.editors : d["id"]]
  reserve_ip                     = true
  s3_privilege                   = true
  access_and_manage_monitoring   = true
  access_and_manage_certificates = true
  manage_dbaas                   = true
}

resource "ionoscloud_group" "reader" {
  count    = length(local.readers) > 0 ? 1 : 0
  name     = "${var.workspace_id}-${var.project_id}-readers"
  user_ids = [for d in data.ionoscloud_user.readers : d["id"]]
}

produces the following error:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to ionoscloud_share.admin[0], provider "provider[\"registry.terraform.io/ionos-cloud/ionoscloud\"]" produced an unexpected new value: Root resource was present, but now
│ absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: an error occured while creating a share: 500 Internal Server Error {
│   "httpStatus" : 500,
│   "messages" : [ {
│     "errorCode" : "301",
│     "message" : "Oops! Something went very wrong. Please contact the administrator"
│   } ]
│ }
│
│
│   with ionoscloud_share.editor[0],
│   on main.tf line 37, in resource "ionoscloud_share" "editor":
│   37: resource "ionoscloud_share" "editor" {
│

Note that e.g. after re-applying, it works fine
Expected behavior
Shares are created on first apply
Environment
Terraform version:
1.5

Provider version:
terraform {
  required_providers {
    ionoscloud = {
      source = "ionos-cloud/ionoscloud"
      version = "= 6.4.10"
    }
  }
}

OS:
Darwin Kernel Version 23.0.0,  x86_64 Linux

Configuration Files
vars.tfvars:
dc_location    = "de/txl"
dc_description = "ionos-user-permissions"
workspace_id   = "mo-s-customer"
project_id     = "ionos-test-dev"
users = [
  {
    "identifier" : "<uuid>",
    "username"<EMAIL_ADDRESS>    "firstName" : "Example",
    "lastName" : "User",
    "email"<EMAIL_ADDRESS>    "euid"<EMAIL_ADDRESS>    "roles" : [
      "admin",
      "user",
      "reader"
    ]
  }
]

Thanks for raising this, we will investigate and see why it happened.

Does this happen consistently? Can you try again and see if it reproduces?

We have a limitation with shares where we get an error if multiple shares are created at the same time. You can either try to set parallelism=1 when running terraform, or you can set depends_on between them so creation is done sequentially.

Thanks for your help. Setting depends_on to run sequentially solved it for me.


Refactor: balloon, WAL and cache persistence

Closes #38 #37 #36 #11 #31 #19.

Codecov Report

Merging #39 into master will increase coverage by 5.7%.
The diff coverage is 77.97%.

@@            Coverage Diff            @@
##           master      #39     +/-   ##
=========================================
+ Coverage   68.94%   74.65%   +5.7%
=========================================
  Files          23       38     +15
  Lines        1143     1862    +719
=========================================
+ Hits          788     1390    +602
- Misses        313      382     +69
- Partials       42       90     +48

Impacted Files
Coverage Δ

balloon/common/collect.go
0% <0%> (ø)

balloon/common/print.go
0% <0%> (ø)

log/log.go
0% <0%> (ø)
:arrow_up:

client/client.go
58.82% <0%> (ø)
:arrow_up:

balloon/common/test_helper.go
0% <0%> (ø)

api/apihttp/protocol.go
71.42% <0%> (+6.21%)
:arrow_up:

balloon/common/caching.go
100% <100%> (ø)

balloon/hyper/navigator.go
100% <100%> (ø)

balloon/history/proof.go
100% <100%> (ø)

log/logger_debug.go
100% <100%> (ø)
:arrow_up:

... and 50 more

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 486ab8c...7aea40b. Read the comment docs.

LGTM


Persist account state in components

Hey there,
In this PR we persist the accounts from the wallets between components. The old behavior was that when going from, say, Home to Welcome with the wallet already connected, the button to connect it would be shown and the accounts would be an empty list.
Given that the NavBar is not extracted, it seems like the same props are being passed over and over, however, when this extraction happens, this will cease to happen.

 [COMPONENT] Implement loading component when connecting wallet


Creates a new sessionToken when updating password

When upgrading a user from anonymous to username/password the original implementation would force the client to call login in order to generate a session token.
This PR attempts to fix that problem by generating a new session token after clearing the sessions.
Fixes #2252

Can you add a test that verification email is sent when upgrading to non-anon and setting email? Also, postgres tests are failing, we may need to add another exclude.

Yup!

@flovilmart updated the pull request.

@flovilmart updated the pull request.


Segment buffer pre read failure

__
Question

What do you want to know?
Make a mistake every three seconds：
2018-05-23 10:44:37,174 - org.apache.skywalking.apm.collector.analysis.segment.parser.provider.buffer.SegmentBufferReader -60152610 [pool-4-thr
ead-1] ERROR [] - Segment buffer pre read failure.
org.apache.skywalking.apm.collector.core.UnexpectedException: This segment contains multiple entry span.

Cloud you describe you demo more detail? It is important to help us to locate this issue.

@peng-yongsheng could you consider to ignore and abandon traces can't be analysis? And just log it.

Single segment contains multiple entry span planning support in 5.0.0-beta2 version. So ignore this exception.

@dinggel I really think this is a bug or enhancement. I am reopening this issue for track.

Done


stack quality: Investigated not symbolized bottom frame

While running parca-demo I have noticed that the bottom frame is not symbolised properly. This has been happening for a while
Recently:

(from https://github.com/parca-dev/parca-agent/pull/532)
Some time ago:

(from https://github.com/parca-dev/parca-agent/pull/395)
I will take a look at this in the next few days!

Now that we don't have any blockers we should revive #395 :)

Sounds good! Let's do it after we land system-wide work if you don't mind.  There's going to be a couple of concurrent changes in the same files

Sounds good to me.

@javierhonduco Is this issue up-to-date?


Remove liberty-assembly packaging type

In preparation for a 3.0 release, remove the liberty-assembly packaging type.

The 3.0 release went out 4 years ago. This was not deemed important to include. Closing issue.


Raising PropertyChanged notification on entity key throws exception "The property 'EntityId' on entity type 'Entity' is part of a key and so cannot be modified or marked as modified."

Environment
UniversalWindowsApp running on Windows 10.
Visual Studio 2015
Entity Framework 7 beta 6
SQLite database
{
"dependencies": {
"EntityFramework.Commands": "7.0.0-beta6",
"EntityFramework.Sqlite": "7.0.0-beta6",
"Microsoft.ApplicationInsights": "1.0.0",
"Microsoft.ApplicationInsights.PersistenceChannel": "1.0.0",
"Microsoft.ApplicationInsights.WindowsApps": "1.0.0",
"Microsoft.CodeAnalysis.CSharp": "1.0.0",
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"Microsoft.NETNative.Analyzer": "1.0.0",
"Prism.Mvvm": "1.1.1"
},
"frameworks": {
"uap10.0": {}
},
Create an entity similar to this, and raise Property changed event for entities primary key as below
public class Entity : INotifyPropertyChanged
{
    private int entityId;
    public int EntityId
    {
        get { return entityId; }
        set
        {
            // For brevity sake checking if value has really changed, and if it really not on the UI thread removed.
                        var ignored = Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
                            Windows.UI.Core.CoreDispatcherPriority.Normal,
                            () =>
                            {
                                PropertyChanged(this, new PropertyChangedEventArgs(nameof(AccountId)));
                                // Exception raised here. Note: set is being called by EntityFramework and not by user code; though the above statement is occurring on the UI thread and not directly by Entity Framework.
                            });
        }
    }

}
Steps to reproduce

Create object context.
Create an instance of entity.
Save changes on object context.

Call stack of exception looks like
Exception thrown as "The property 'EntityId' on entity type 'Entity' is part of a key and so cannot be modified or marked as modified."
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntry.SetPropertyModified(IProperty property, Boolean isModified)
at Microsoft.Data.Entity.ChangeTracking.Internal.ChangeDetector.PropertyChanged(InternalEntityEntry entry, IPropertyBase propertyBase)
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntryNotifier.<>c__DisplayClass12_0.b__0(IPropertyListener l)
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntryNotifier.Dispatch(Action`1 action)
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntryNotifier.PropertyChanged(InternalEntityEntry entry, IPropertyBase property)
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntrySubscriber.<>c__DisplayClass2_0.b__2(Object s, PropertyChangedEventArgs e)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at MyNamespace.Entity.<set_EntityId>b__3_0()
Workaround
Do not raise property changed events just for primary key from user code. When we use code generators this becomes an issue to not raise events just for primary keys.

@sgmon Could you provide some information about the pattern you are using in your implementation of INotifyPropertyChanged? Did you need to do this to have the UI work correctly with notifications in UWAs? Is this a pattern you found somewhere? Where? How common is this type of implementation?
To give you some background: EF needs the notification to happen immediately and in the same thread as the change, otherwise it won't work. We cannot think of any way we can support notifications being dispatched in a different thread in the way your code does it, so at this point we are mulling whether we are going to need a flag somewhere in our API to force change detection to compare property values against snapshots even if the INotify* interfaces are implemented (in case they are implemented in an unsupported way).

Closing as this does not seem like a common scenario


core: fix: remove comments in json strings.

Description: This change removes single line // and multi-line /* / comments from JSON strings using a regex substitution. The purpose of this update is to ensure that JSON content can be parsed correctly without being affected by the presence of comments, which are not supported in standard JSON format. The regex substitution is performed using the re.sub method with the pattern r'//.?\n|/*.*?*/' and the flags=re.S to ensure proper handling of newline characters within the comments.

@hwchase17

thanks @lichengwu! could we add another test case for having // inside a string

thanks @lichengwu! could we add another test case for having // inside a string

When I was using the agent function, I noticed that some models generate context that includes JSON comments. Therefore, I expanded the testing scope based on the existing method. Are you suggesting that I should write a new pytest testing method?  @baskaryan

What else needs to be done to merge this request?

@baskaryan  @hwchase17  Can this code be merged？

@lichengwu seems to be failing tests


RP2 ARDUINO_NANO_RP2040_CONNECT

Hello Damiano,
i tried to compile your lib for RP2 ARDUINO_NANO_RP2040_CONNECT.
These are my commands:
$ git clone https://github.com/micropython/micropython.git
$ cd micropython
micropython$ git submodule update --init
micropython$ git clone https://github.com/dmazzella/ucryptoauthlib.git micropython-lib/ucryptoauthlib
micropython$ make -C mpy-cross && make -C ports/rp2 BOARD=ARDUINO_NANO_RP2040_CONNECT FROZEN_MANIFEST="$(pwd)/micropython-lib/ucryptoauthlib/manifest.py""

After flashing the rp2040 with the uf2 image, and the following command:
device = ATECCX08A()

i got this error
  File "<stdin>", line 1, in <module>
  File "cryptoauthlib/device.py", line 30, in __init__
NoDevicesFoundError: For protocols that support device discovery (kit protocol), no devices were
found

Do you have an idea how I can fix the device detection for the arduino rp2040 https://docs.arduino.cc/hardware/nano-rp2040-connect ?
Kind regards,
Matt

Hi Matthias,
device.py:24 use bus=machine.I2C(1, freq=133000) for scan of all i2c devices connected connected.
Have you tried to see what devices are listed on i2c bus?
Try bus=machine.I2C(1, freq=133000).scan()
At device.py:18 you can see the addresses to search {0x50: "ATECC508A", 0x60: "ATECC608A"}
Kind regards,
D.

Hello Damiano,
I guess that the micropython support for the arduino could be better:
Here are the results:
With the image above: machine could not be found => therefore the cmd fails.
With the official micropython image, the result with your command is empty [] but i checked the docs again ( https://docs.micropython.org/en/latest/library/machine.I2C.html and https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-python-api#i2c )
and I get a good result with I2C(0, scl=Pin(13), sda=Pin(12), freq=100_000).scan() =>
[96, 106]
So i have to find out, what is wrong with my custom image. I will come back to you as soon as i have results.
Thanks a lot.
Matt

Hi Matthias,
you can use I2C(0, scl=Pin(13), sda=Pin(12), freq=100_000) as bus kwargs of ATECCX08A()
like:
ATECCX08A(bus=I2C(0, scl=Pin(13), sda=Pin(12), freq=100_000))

D.

Hi Damiano,
thank you for support. I am able to init the device and can execute ~.info().


96x16 flip mode part of display is black

RMD 1.10
96x16 display
When display is flipped a part of the display is not used to show content.

fixed in v1.13


CLI: invoke panicks when no -- included

What version are you using?
❯ soroban version
soroban 20.0.0-rc3 (7cc2f46b4b83a94375e33f738d30f0bb824ea9a5)
soroban-env 20.0.0-rc2 (8c63bff68a15d79aca3a705ee6916a68db57b7e6)
soroban-env interface version<PHONE_NUMBER>7
stellar-xdr 20.0.0-rc1 (d5ce0c9e7aa83461773a6e81662067f35d39e4c1)
xdr curr (9ac02641139e6717924fdad716f6e958d0168491)

What did you do?
Ran the contract invoke sub command without any parameters other than the contract ID:
❯ SOROBAN_RPC_URL=... SOROBAN_NETWORK_PASSPHRASE=... soroban contract invoke --id C...

What did you expect to see?
I expected to see some default help output, as if I had run the command with -- --help:
❯ SOROBAN_RPC_URL=... SOROBAN_NETWORK_PASSPHRASE=... soroban contract invoke --id C... -- --help
Usage: C... [COMMAND]

Commands:
  counter
  count
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

What did you see instead?
A panick.
❯ SOROBAN_RPC_URL=... SOROBAN_NETWORK_PASSPHRASE=... soroban contract invoke --id C...
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/leighmcculloch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/soroban-cli-20.0.0-rc3/src/commands/contract/invoke.rs:188:66

I've also been considering making the generated cli interactive.

That would be very cool, although that wouldn't need to be mutually exclusive with the existing UI. The existing UI is advantageous as it's usable in scripts, so I think there's strong value in retaining it and adding an interactive API in addition? I imagine both can be powered by much of the same logic.

Yeah I've also had some issues in some shells, when using the clap interactive crate. Still seems like an easy addition that would be none breaking since the normal CLI is still available.

I looked more into this and the tools that I found for generating an interactive prompt all use derive and not a builder. So while I would still like to find a way to do it interactively it's not as easy as I had hoped.


Closes #409 updated scorres to scstresc

Summary:
This PR updates the checks check_sc_dm_eligcrit and check_sc_dm_seyeselc to replace all references of SCORRES with SCSTRESC as per the new requirements.
Changes:
Updated references of SCORRES to SCSTRESC in the following checks:

check_sc_dm_eligcrit
check_sc_dm_seyeselc

Testing:
Verified that the updated checks function correctly with SCSTRESC.

Hi @vbshuliar - we should also update the tests within https://github.com/pharmaverse/sdtmchecks/tree/devel/tests/testthat

Hi reviewers,
I updated the tests as well. I'm not sure if everything looks how you expected, so I am more than happy to make changes according to your recommendations.

Hi @vbshuliar - you may notice that there is a check failing for R CMD Check - this is identifying we've not updated a global variable for SCSTRESC. Please update R/globals.R for this

Hi @vbshuliar - you may notice that there is a check failing for R CMD Check - this is identifying we've not updated a global variable for SCSTRESC. Please update R/globals.R for this

Hi @barnett11 !
I've just done it.

Hi @barnett11
Please check it now. I am happy to update anything else if needed.

@harriscw - would you like to review before we merge to devel?


I'd like to change the license from GPL to something that isn't copyleft

BSD, MIT, or Apache are preferable.
Unless there is a specific reason for needing GPL features, i.e. forcing downstream users to use the same license, then we should remove that restriction and choose a more liberal license that only requires essentially "citation".

This is what I was asking about at the last meeting. Jason, do you think there's anyway to link the presentation materials I'm creating in powerpoint to the app in github? I'd like people to be able to use the ppt materials, but with a citation.

If you have some presentation materials that you'd like people to find via the app (i.e. a link inside the app) then I would host the materials online somewhere (probably not in this particular Github repo) like slideshare, figshare or on a website that your group has control over and we can add the link to the app. I would recommend using the Creative Commons Attribution 4.0 license for the slides. Also, I'd recommend saving as PDF or even .opd (libre/open office format) so that anyone can view it without having to buy software.

@lmpincus I'd like to change the license from the GNU Public License to the Berkeley Source Distribution license. The fundamental difference is that the GPL requires anyone that reuses this code to also make their code open source with the GPL where as the BSD license simply requires the user to include the previous license with any changes, basically a citation that travels with the code (very similar to the Creative Commons By license).
Do you have any objections to that?

No, objections to changing the license to the Berkeley Source Distribution.

Thanks. I'll update soon.


Generalize bounds to be specific for each stock

Hi,
I have a portfolio for which I want to keep certain stocks at a given level and optimize the rest, but that's not possible with the current implementation.
Can we have the bounds input be either a tuple or an array of tuples? The change is simple enough and I have something working already. I'd be happy to push it up

Hi,
That's a very fair point. The reason I have designed it this way is that the most common input is constant weight bounds. However, once you instantiate the EfficientFrontier object you can actually go ahead and modify it's bounds field directly:
ef = EfficientFrontier(mu, cov_matrix)
ef.bounds = [(0, 0.3), (0,0.1), (0, 0.3) ... (0,0.2)]   # len of this list must = num assets
ef.max_sharpe()

What do you think of this workaround?
That being said, I'd love to see your proposal – as long as users who want constant bounds only have to input one pair, I'm happy.
Best,
Robert

Oh! That's a good workaround, I'll do that on my code for the time-being.
I do think users will like the ability to specify bounds without having to access the class variables themselves. What I was thinking is changing BaseOptimizer._make_valid_bounds() to take in a single pair, or an array of pairs.
The function already returns an array of pairs, so if we add some validation, then it should be able to take in two types of inputs. Thoughts?

That sounds very reasonable. Do you want to have a go at implementing it
with some tests?
On Sun, 6 Oct 2019, 21:15 ahmmsn<EMAIL_ADDRESS>wrote:

Oh! That's a good workaround, I'll do that on my code for the time-being.
I do think users will like the ability to specify bounds without having to
access the class variables themselves. What I was thinking is changing
BaseOptimizer._make_valid_bounds() to take in a single pair, or an array
of pairs.
The function already returns an array of pairs, so if we add some
validation, then it should be able to take in two types of inputs. Thoughts?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/robertmartin8/PyPortfolioOpt/issues/49?email_source=notifications&email_token=ACZ7ECO2GUYIBFMDSDDNQL3QNJBP7A5CNFSM4I5Z6BXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOTAAA#issuecomment-538783744,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACZ7ECNNFGRHQOMEU5UK2GLQNJBP7ANCNFSM4I5Z6BXA
.

I'll take a stab at it :)
I'll create a new branch and push it shortly

@ahmmsn
You should make the changes in a branch then submit a pull request so I can have a look :)


Update functions-bindings-storage-blob.md

hyperlink was broken for "Blob receipts"

@watashiSHUN,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@watashiSHUN : Thanks for your contribution to the Azure documentation! The author, @christopheranderson, has been notified to review your proposed change.

#sign-off

we should also update the microsoft doc:


feature/SKOOP-142

The field UserPermissionRequest#allUsersAuthorized introduced to give permission to all users of the system.
com.tsmms.skoop.user.UserPermissionScope#READ_USER_PROFILE introduced to manage external access to user's profile.
API to manage external access to user's profile developed.
Tests.
@svetivanova could you please take a look?

Codecov Report

Merging #81 into master will increase coverage by 1.48%.
The diff coverage is 95.83%.

@@             Coverage Diff              @@
##             master      #81      +/-   ##
============================================
+ Coverage     78.54%   80.03%   +1.48%
- Complexity      563      571       +8
============================================
  Files           149      149
  Lines          2517     2529      +12
  Branches         83       86       +3
============================================
+ Hits           1977     2024      +47
+ Misses          484      448      -36
- Partials         56       57       +1

Impacted Files
Coverage Δ
Complexity Δ

...java/com/tsmms/skoop/user/UserPermissionScope.java
100% <100%> (ø)
1 <0> (ø)
:arrow_down:

.../user/command/UserPermissionCommandController.java
100% <100%> (ø)
3 <0> (ø)
:arrow_down:

...om/tsmms/skoop/user/query/UserQueryController.java
86.11% <100%> (-0.38%)
7 <1> (-1)

...oop/user/command/UserPermissionCommandService.java
89.74% <94.44%> (+75.45%)
9 <7> (+8)
:arrow_up:

...c/main/java/com/tsmms/skoop/user/UserResponse.java
100% <0%> (+100%)
1% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'

Is supersqlite enable loading sqlite extensions?
What can cause this error:

from supersqlite import sqlite3 as sqlite33
conn33=sqlite33.connect("mydbfile.db")
conn33.enable_load_extension(True)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'
thank you.

The enable_load_extension() method in the sqlite3 module is not available by default in all SQLite installations, including the standard sqlite3 module in Python. This method allows you to enable the loading of SQLite extensions, which can be potentially dangerous if not used with caution.
It seems like you are using the supersqlite library, which is a Python wrapper around SQLite that provides additional features and functionality beyond the standard sqlite3 module.
However, based on the error message you provided, it appears that the enable_load_extension() method is not available in the sqlite3.Connection object provided by the supersqlite library. This could be due to the supersqlite library not exposing or implementing this particular method.
To check whether the enable_load_extension() method is supported, you can inspect the sqlite3.Connection object in the supersqlite library to see if the method is present:
import supersqlite.sqlite3 as sqlite33

conn33 = sqlite33.connect("mydbfile.db")
print(hasattr(conn33, 'enable_load_extension'))

If the output is False, it means that the enable_load_extension() method is not available in the sqlite3.Connection object provided by supersqlite.


Need clarification about using "feature folders" in doc/style-guide

What docs page needs to be fixed?

Section: style-guide
Page: style-guide: best practices

Specifically, it's about this part: Structure Files as Feature Folders or Ducks
.
What is the problem?
I'm trying to follow the style-guide to put my react redux code into feature folders, but encountered a problem: if featureA/componentA and featureB/componentB both dispatch to sliceX, in which folder should I write the reducer for sliceX?
Note: there are 3 possible scenarios:

A and B dispatch the same actions, which means I can certainly write a duck, the question is where to put the duck.
A and B dispatch different actions actionA and actionB to the same slice, which means I could still write a duck, but it'd also make sense to define actionA inside featureA, define actionB in featureB. If so, the question becomes what folder to put the reducer.
Another slice SliceY also responds to actionA, which makes it impossible to use createSlice for sliceX to begin with. The question becomes where to put reducerX.

What should be changed to fix the problem?
Give a few words of advice / recommendations on these scenarios. I'm sure they happen in every project.
(The official answer may be "it's up to you", but please at least give some opinions on some practices that may occur: e.g. "write everything in A and import into B" or "write in a 3rd centralized location like src/redux)

Components of different features can certainly dispatch actions from other features. That's already implied by having the common folder in the example.
A feature folder doesn't have to have all of the elements in the example. You can have a feature that's just a slice, or you can have a feature that's just components. So for your 1st and 2nd examples, you would put the duck in its own feature folder, separately from A and B. The 3rd example wouldn't be a recommended way to structure your application, as you can't use a slice.
I don't think we need to document this. This should already be apparent from the document.

Hi @timdorr, regarding your comment about the 3rd example, I must be missing something obvious:  the style guide strongly recommends Allow Many Reducers to Respond to the Same Action.  It's also very common in real life, for instance dispatch((dataFetched(data)). Many reducers in different slices will respond to this one action, and you can't use createReducer to write them.
Several other places in the style guide are actually encouraging this pattern in one way or another:
Model Actions as Events, Not Setters
Put as Much Logic as Possible in Reducers
Avoid Dispatching Many Actions Sequentially

@ZYinMD The point is that:

Any given action is either primarily associated with a given slice (and thus defined inside of a createSlice call), or generic enough it should be defined somewhere else (possibly using createAction)
In order for slice A to respond to actions defined in slice B, it either explicitly imports an action creator from B (if using Redux Toolkit) or an action constant (if written by hand), or it copy-pastes the action type string manually

Where those files live is entirely up to you.

Hi @markerikson thanks! Yes I know it's up to me where to put my files, but I created this issue specifically about docs / style-guide / Structure Files as Feature Folders or Ducks, which talks about where to put my files.
The good news is, from yours and Tim's answer, I have gotten the conclusion that I'm happy with:

if featureA and featureB both dispatch to sliceX, create a featureX folder and put the duck there.
if sliceX and sliceY both respond to actionA, put both reducers in featureA folder. Note that it's impossible to use createSlice in this case.
if both sliceX and sliceY responds to both actionA and actionB, then I need 4 feature folders X Y A B.

This may be obvious to you, but it's surprisingly hard to see for someone who's used to put all reducers in a centralized place, where the directory and file tree is organized to mirror the redux store shape.

I'm not sure where you're getting the "impossible to use createSlice" bit.  It's fine to use createSlice in general. The only potential problem is if sliceX needs to import an action from sliceY, while sliceY also needs to import an action from sliceX, thus causing a cyclical dependency issue.
If that happens, then you need to break the cycle yourself somehow, likely by defining that specific action type using createAction in another file.
See https://redux-toolkit.js.org/usage/usage-guide#exporting-and-using-slices

Hi @markerikson, because actions created by createSlice have prefixes.
Suppose I want both sliceX and sliceY to respond to action foo. If I use creatSlice to create sliceX and action foo, then foo.type will be "X/foo". I can export it, but this action is tightly coupled with sliceX.
If I use foo.type to create sliceY by calling createSlice, then reducerY won't respond to foo, because it's only watching for action type Y/X/foo.
Instead, I can use createReducer to create reducerY, and pass in foo.type, it'll work, but semantically it's bad because reducerY is now responding to action type X/foo.
Therefore, the solution is to use createAction to define foo without any prefix, and use createReducer to define both reducerX and reducerY.
If you ask me, the prefix argument in createSlice should be optional (or at least "" should be allowed). Forcing a prefix doesn't make sense, it's essentially saying "all these actions belong to this prefix, which is coupled to this slice".

"all these actions belong to this prefix, which is coupled to this slice".

Yes, this is entirely intentional :)
As I said earlier, any action can be categorized as either primarily belonging to a given slice, in which case you define it inside of that createSlice, or "completely unrelated to any slice", in which case you use createAction() to generate it separately.
Also, you may be missing the fact that createSlice has an extraReducers field, which is how it can respond to actions that were defined outside of that slice:
https://redux-toolkit.js.org/api/createSlice#extrareducers
And it is also entirely intentional that any reducer may respond to any action that is dispatched, even if it "belongs" to another slice.  That's not "semantically bad" - that's how it's supposed to work.

Thanks very much for clarifying it's inentional.

you may be missing the fact that createSlice has an extraReducers field.

Yes I did miss it! I thought I read the doc quite carefully, but still missed it.
In case there are other users who're like me, I'd suggest adding an extra sentence to mention it more explicitly at the end of this paragraph. Maybe something like "In such cases, make sure to check the [extraReducers API] (link)."


fsharp bootstrap repo builds with bootstrapped Arcade instead of current Arcade

The fsharp repo has a bootstrapping process that gets executed in the outer build. Because this happens in the outer build, it makes use of the bootstrapped Arcade rather than the currently built Arcade. The work that happens in the bootstrapping is not trivial. The fact that it's using the bootstrapped Arcade is problematic because it prevents there from being any servicing fix made to Arcade to handle any issue in the fsharp bootstrapping.

[Triage]  This would likely be addressed if we were to eliminate the inner builds because this would be done as part of a single build which would then use the right arcade version.
cc @ViktorHofer


value for domain lovelace violates check constraint "lovelace_check"

On the mainnet, just after slot height 4830407, cardano-db-sync is stuck with following:
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Info:215] [2020-10-17 12:02:43.56 UTC] Starting chainSyncClient
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Info:215] [2020-10-17 12:02:43.64 UTC] Cardano.Db tip is at slot 11369248, block 4830407
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Info:220] [2020-10-17 12:02:43.64 UTC] Running DB thread
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Info:220] [2020-10-17 12:02:43.65 UTC] Rolling back to slot 11369248, hash c847d4ffc835132dcfc07c3ff1e10c8090cdaaf9c05bea5a0b9132470aec64ba
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Info:220] [2020-10-17 12:02:43.65 UTC] Deleting blocks numbered: []
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Error:220] [2020-10-17 12:02:43.68 UTC] Bad pledge amount:<PHONE_NUMBER>855000000 > maxLovelace. See https://github.com/input-output-hk/cardano-ledger-specs/issues/1551
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Error:220] [2020-10-17 12:02:43.68 UTC] runDBThread: DbInsertException "PoolUpdate" (SqlError {sqlState = "23514", sqlExecStatus = FatalError, sqlErrorMsg = "value for domain lovelace violates check constraint \"lovelace_check\"", sqlErrorDetail = "", sqlErrorHint = ""})
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node:Error:215] [2020-10-17 12:02:43.68 UTC] ChainSyncWithBlocksPtcl: DbInsertException "PoolUpdate" (SqlError {sqlState = "23514", sqlExecStatus = FatalError, sqlErrorMsg = "value for domain lovelace violates check constraint \"lovelace_check\"", sqlErrorDetail = "", sqlErrorHint = ""})
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node.Subscription:Error:211] [2020-10-17 12:02:43.68 UTC] [String "Application Exception: LocalAddress {getFilePath = \"/run/cardano-node/node.socket\"} DbInsertException \"PoolUpdate\" (SqlError {sqlState = \"23514\", sqlExecStatus = FatalError, sqlErrorMsg = \"value for domain lovelace violates check constraint \\\"lovelace_check\\\"\", sqlErrorDetail = \"\", sqlErrorHint = \"\"})",String "SubscriptionTrace"]
Oct 17 12:02:43  g71fl8m54rmr7f59qilbrv2r4b389d4n-cardano-db-sync[9243]: [db-sync-node.ErrorPolicy:Error:4] [2020-10-17 12:02:43.68 UTC] [String "ErrorPolicyUnhandledApplicationException (DbInsertException \"PoolUpdate\" (SqlError {sqlState = \"23514\", sqlExecStatus = FatalError, sqlErrorMsg = \"value for domain lovelace violates check constraint \\\"lovelace_check\\\"\", sqlErrorDetail = \"\", sqlErrorHint = \"\"}))",String "ErrorPolicyTrace",String "LocalAddress {getFilePath = \"/run/cardano-node/node.socket\"}"]

As a workaround, removing the constraint check seems to be a workaround, however, I'm sure it was in place for a good reason.
psql> ALTER DOMAIN lovelace DROP CONSTRAINT lovelace_check;

:cry: Yeah, this is disappointing. It looks like pool_update.fixedCost amount can be > maxLovelace. I thought the ledger would guard against this nonsensical error but sisnce it does not guard against pool_update.pledge being sane (https://github.com/input-output-hk/cardano-ledger-specs/issues/1551) perhaps this is not surprising.

Now we get a warning:
Bad fixed cost amount:<PHONE_NUMBER>855000000 > maxLovelace. See https://github.com/input-output-hk/cardano-db-sync/issues/351

and db-sync keeps on running (the bad value is warned about and inserted into the database).


errors in xt04_heat_TiAl2O3_3D.ipynb notebook

Execution of the first cell fails:

Seems like an incompatibility with the updated environment.

Maybe FEniCS needs to be reinstalled?

@robnagler  --  Dan is requesting that you have a look.

It no longer fails in the 1st cell, but now if fails in the 13th cell:

@dtabell please get this notebook working again.
Also -- do we need all of the notebooks in the xt04_heat_* series?  Please delete any that are not instructive.

The errors have been fixed.
Addressing a last few items before closing this issue.

@dtabell -- can this issue be closed?

Resolved.


Bug when training with accelerate on 8 A100

System Info
- `Accelerate` version: 0.22.0
- Platform: Linux-5.4.0-126-generic-x86_64-with-glibc2.17
- Python version: 3.8.18
- Numpy version: 1.24.4
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- PyTorch XPU available: False
- PyTorch NPU available: False
- System RAM: 2015.69 GB
- GPU type: NVIDIA A100-SXM4-80GB
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: MULTI_GPU
        - mixed_precision: no
        - use_cpu: False
        - debug: False
        - num_processes: 8
        - machine_rank: 0
        - num_machines: 1
        - gpu_ids: all
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - downcast_bf16: no
        - tpu_use_cluster: False
        - tpu_use_sudo: False
        - tpu_env: []

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
I am trying to train this version of audiolm on 8 NVIDIA A100s.
The training works on one GPU, but gives errors on two or more, which either looks like this:
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument 'find_unused_parameters=True' to 'torch.nn.parallel.DistributedDataParallel', and by making sure all 'forward' function outputs participate in calculating loss. If you already have done the above, then the distributed data parallel module wasn't able to locate the output tensors in the return value of your module's 'forward' function. Please include the loss function and the structure of the return value of 'forward' of your module when reporting this issue (e.g. list, dict, iterable). Parameter indices which did not receive grad for rank 3: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...
or this:
1: loss: 61.968055725097656 2: loss: 53.70269775390625 [E ProcessGroupNCCL.cpp:828] [Rank 3] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=6, OpType=ALLREDUCE, Timeout(ms)=1800000) ran for 1804689 milliseconds before timing out. [E ProcessGroupNCCL.cpp:455] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [E ProcessGroupNCCL.cpp:460] To avoid data inconsistency, we are taking the entire process down. [E ProcessGroupNCCL.cpp:828] [Rank 2] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=6, OpType=ALLREDUCE, Timeout(ms)=1800000) ran for 1804841 milliseconds before timing out. [E ProcessGroupNCCL.cpp:455] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [E ProcessGroupNCCL.cpp:460] To avoid data inconsistency, we are taking the entire process down. [E ProcessGroupNCCL.cpp:828] [Rank 0] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=8, OpType=ALLREDUCE, Timeout(ms)=1800000) ran for 1802681 milliseconds before timing out. [E ProcessGroupNCCL.cpp:828] [Rank 1] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=6, OpType=ALLREDUCE, Timeout(ms)=1800000) ran for 1805230 milliseconds before timing out. [E ProcessGroupNCCL.cpp:455] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [E ProcessGroupNCCL.cpp:460] To avoid data inconsistency, we are taking the entire process down. [E ProcessGroupNCCL.cpp:455] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [E ProcessGroupNCCL.cpp:460] To avoid data inconsistency, we are taking the entire process down.
depending on which module of audiolm I am training. I need to run everything inside a Docker container.
Steps to reproduce the behaviour:

Make a docker image with this repo  and its dependencies installed. I tried multiple base images (for example, nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04)
Download a split of  LibriTTS. It shouldn't matter which one
Run the script "download_hubert.py" and configure the accelerate environment
Launch any of the training scripts. I get the same errors both in interactive and non interactive modes.

Below are the scripts mentioned above:
download_hubert.py :
# imports
import math
import wave
import struct
import os
import urllib.request
import tarfile
from audiolm_pytorch import SoundStream, SoundStreamTrainer, HubertWithKmeans, SemanticTransformer, SemanticTransformerTrainer, HubertWithKmeans, CoarseTransformer, CoarseTransformerWrapper, CoarseTransformerTrainer, FineTransformer, FineTransformerWrapper, FineTransformerTrainer, AudioLM
from torch import nn
import torch
import torchaudio

def main():

    # define all dataset paths, checkpoints, etc
    dataset_folder = "./data/LibriTTS"
    hubert_ckpt = 'hubert/hubert_base_ls960.pt'
    hubert_quantizer = f'hubert/hubert_base_ls960_L9_km500.bin' # listed in row "HuBERT Base (~95M params)", column Quantizer

    if not os.path.isdir("hubert"):
        os.makedirs("hubert")
    if not os.path.isfile(hubert_ckpt):
        hubert_ckpt_download = f"https://dl.fbaipublicfiles.com/{hubert_ckpt}"
    urllib.request.urlretrieve(hubert_ckpt_download, f"./{hubert_ckpt}")
    if not os.path.isfile(hubert_quantizer):
        hubert_quantizer_download = f"https://dl.fbaipublicfiles.com/{hubert_quantizer}"
    urllib.request.urlretrieve(hubert_quantizer_download, f"./{hubert_quantizer}")

    wav2vec = HubertWithKmeans(
        checkpoint_path = f'./{hubert_ckpt}',
        kmeans_path = f'./{hubert_quantizer}'
    )

if __name__ == "__main__":
    main()

train_semantic.py :
# imports
import math
import wave
import struct
import os
import urllib.request
import tarfile
from audiolm_pytorch import (
    SoundStream,
    SoundStreamTrainer,
    HubertWithKmeans,
    SemanticTransformer,
    SemanticTransformerTrainer,
    HubertWithKmeans,
    CoarseTransformer,
    CoarseTransformerWrapper,
    CoarseTransformerTrainer,
    FineTransformer,
    FineTransformerWrapper,
    FineTransformerTrainer,
    AudioLM,
)
from torch import nn
import torch
import torchaudio

def main():
    # define all dataset paths, checkpoints, etc
    dataset_folder = "./data/LibriTTS"
    hubert_ckpt = "hubert/hubert_base_ls960.pt"
    hubert_quantizer = (
        f"hubert/hubert_base_ls960_L9_km500.bin"  # listed in row "HuBERT Base (~95M params)", column Quantizer
    )

    wav2vec = HubertWithKmeans(checkpoint_path=f"./{hubert_ckpt}", kmeans_path=f"./{hubert_quantizer}")

    semantic_transformer = SemanticTransformer(num_semantic_tokens=wav2vec.codebook_size, dim=1024, depth=6).cuda()

    trainer = SemanticTransformerTrainer(
        transformer=semantic_transformer,
        wav2vec=wav2vec,
        folder=dataset_folder,
        batch_size=256,
        data_max_length=50000,
        save_results_every=10000,
        save_model_every=10000,
        num_train_steps=50_001,
    )

    trainer.train()

if __name__ == "__main__":
    main()```

train_coarse.py :

```python
# imports
import math
import wave
import struct
import os
import urllib.request
import tarfile
from audiolm_pytorch import (
    SoundStream,
    SoundStreamTrainer,
    HubertWithKmeans,
    SemanticTransformer,
    SemanticTransformerTrainer,
    HubertWithKmeans,
    CoarseTransformer,
    CoarseTransformerWrapper,
    CoarseTransformerTrainer,
    FineTransformer,
    FineTransformerWrapper,
    FineTransformerTrainer,
    AudioLM,
)
from torch import nn
import torch
import torchaudio

def main():
    # define all dataset paths, checkpoints, etc
    dataset_folder = "./data/LibriTTS"
    hubert_ckpt = "hubert/hubert_base_ls960.pt"
    hubert_quantizer = (
        f"hubert/hubert_base_ls960_L9_km500.bin"  # listed in row "HuBERT Base (~95M params)", column Quantizer
    )

    wav2vec = HubertWithKmeans(checkpoint_path=f"./{hubert_ckpt}", kmeans_path=f"./{hubert_quantizer}")

    from audiolm_pytorch import EncodecWrapper

    encodec = EncodecWrapper()

    coarse_transformer = CoarseTransformer(
        num_semantic_tokens=wav2vec.codebook_size, codebook_size=1024, num_coarse_quantizers=3, dim=512, depth=6
    )

    trainer = CoarseTransformerTrainer(
        transformer=coarse_transformer,
        codec=encodec,
        wav2vec=wav2vec,
        folder=dataset_folder,
        batch_size=128,
        data_max_length=50000,
        save_results_every=10000,
        save_model_every=10000,
        num_train_steps=50_001,
    )

    trainer.train()

if __name__ == "__main__":
    main()```

train_fine.py :

```python
import math
import wave
import struct
import os
import urllib.request
import tarfile
from audiolm_pytorch import (
    SoundStream,
    SoundStreamTrainer,
    HubertWithKmeans,
    SemanticTransformer,
    SemanticTransformerTrainer,
    HubertWithKmeans,
    CoarseTransformer,
    CoarseTransformerWrapper,
    CoarseTransformerTrainer,
    FineTransformer,
    FineTransformerWrapper,
    FineTransformerTrainer,
    AudioLM,
)
from torch import nn
import torch
import torchaudio

def main():
    # define all dataset paths, checkpoints, etc
    dataset_folder = "./data/LibriTTS_medium"
    hubert_ckpt = "hubert/hubert_base_ls960.pt"
    hubert_quantizer = (
        f"hubert/hubert_base_ls960_L9_km500.bin"  # listed in row "HuBERT Base (~95M params)", column Quantizer
    )

    wav2vec = HubertWithKmeans(checkpoint_path=f"./{hubert_ckpt}", kmeans_path=f"./{hubert_quantizer}")

    from audiolm_pytorch import EncodecWrapper

    encodec = EncodecWrapper()

    fine_transformer = FineTransformer(
        num_coarse_quantizers=3, num_fine_quantizers=5, codebook_size=1024, dim=512, depth=6
    )

    trainer = FineTransformerTrainer(
        transformer=fine_transformer,
        codec=encodec,
        folder=dataset_folder,
        batch_size=64,
        data_max_length=50000,
        save_results_every=10000,
        save_model_every=10000,
        num_train_steps=50_001,
    )

    trainer.train()

if __name__ == "__main__":
    main()

Expected behavior
MultiGPU training should work with no issues. (My trainings stop within the first few steps)

The bug was not with accelerate. But with the audiolm implementation. It is fixed now.


True correlation between trace,logs and metrics

Describe the bug
True correlation between trace,logs and metrics
True correlation between trace,logs and metrics
Describe the bug
Unable to correlate with the same tarceid/span id between a trace,log and metrics
Expected behavior
Please give a working example or show me a link where i can get true correlation between 3 pillars of observability
in .NET this feature is unavailable, just want to know whether Java supports it

Logs, metrics, and traces should all emit shared trace and span IDs if they exist.
Closing this as part of issue cleanup. If there's anything that needs to be done, please create a new issue.


make contract version numbering match javascript packages

need a check to make sure contract versions are same as js. This should be a worklfow


add updated info about exports and cloud ide support

this pr adds add'l info that SL exports aren't supported in the cloud ide yet. this is per slack thread

you're the best @DevonFulcher ! thanks so much for spotting and reviewing this so quickly! ✨


Macedonian .NET Community and Macedonian IT Pro User Group pin is still not visible on the map

We would like to kindly ask if you can check why the pin of the Macedonian .NET Community is still not visible on the Global Azure map? The PR was successfully merged 2 weeks ago - https://github.com/globalazure/communities/pull/434.

Solved.


Is "create environment" the right action on a missing dependency

Testing #21289
It seems strange that adding a new dependency to the requirements.txt makes the "Create Environment" button if I already have an environment. If a new dependency comes in, I assume the most common action would to "Update [the] Environment" to include the new package. Maybe that opens a confirmation quickpick where they have an option to create a new environment instead.

I had a similar thought process as I have been digging into our package management story. Providing an option to sync the dependency file with the selected environment is a typical user scenario and one that would improve our story here. We could provide an option to sync/update the environment and then Create Environment as a secondary option or based on specific scenario filtering.

There are a few things to consider here. We should not be updating a global environment, that can pretty much break everything on a user's system.

We could show an Update environment button only if we can certainly identify the selected environment is a virtual environment that belongs to the current workspace.
If the user has selected an environment that is not part of the workspace, but there is one such environment is the workspace then we should show a button that selects the right environment.
If the user has selected an environment that is not part of the workspace, and there is no python that is part of the workspace then we should show create environment.


use utility function to compare the repr of floats

follow up of #43
r? @mattico

LGTM, though there's likely to be a merge conflict between this and #48. I can rebase that one if you want to merge this first.

I think we'll have to first sort out the soft float arm target test failure in #48 before it lands. Does merging this first sounds good to you?

Yes that makes sense.
On Sun, Aug 21, 2016, 11:47 AM Jorge Aparicio<EMAIL_ADDRESS>wrote:

I think we'll have to first sort out the soft float arm target test
failure in #48 https://github.com/japaric/rustc-builtins/pull/48 before
it lands. Does merging this first sounds good to you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/japaric/rustc-builtins/pull/50#issuecomment-241268144,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0Epl70DwSGHYEeVTnXUpLiPOP_bhV5ks5qiIEXgaJpZM4JpVLG
.


black screen problem in mmc1

i test a game rom with mmc1,but it show black.then, i use simple "hello world" that have two blank, is show normly.i find prg bank only use first bank and last bank,not use in other banks. This problem may be to related with it.

Thanks for reporting I will look into it. If it is possible for you to provide the ROM file I would appreciate it.

i debug some code,find some situation.first, emulator not exec in rend bg,then i alter code like this:
if((ppu->mask & SHOW_BG)
|| (ppu->mask & SHOW_BG_8)
old code is:
if((ppu->mask & SHOW_BG)
but now find problem is cpu set $2001 first and second, after is no set $2001 register.i debug fceux thatn find first and second set $2001 is ok,it's value is 0x0 and 0x6, after than, is 0x6 ,0x1e and so on.
hello_mmc1.zip

@jinjiacun123 I have fixed the issue. Turns out your code relied on CPU dummy writes which I had not implemented. Once I implemented the dummy writes the MMC1 serial writes started working correctly. Let me know if you find other issues.

ok

can you give me some about cpu dummy media or textbook?I interest about NES emulator develop,but,know about it is very poor.

@jinjiacun123 you can look at this document for details on how the various types of instructions in 6502 are executed. It will show you what each instruction does per cycle including dummy writes and reads.

thank you.i will read about it.


Manually specify device IP

I have 3 OAK-D PoE cameras on the same network and am unable to specify an IP address to ensure the correct device is being used.
I tried following the guide here but I ran into issues adding parameters to the initialization. It requires the pipeline but it isn't created yet and my python skills aren't up to the task.
Am I on the right track or is there a better way to accomplish this?

I don't have a PoE camera so I can't test.
Have you tried to replace https://github.com/geaxgx/depthai_hand_tracker/blob/87111c1c454bb9d3c936f19fe752605b0ca32c37/HandTracker.py#L130
with:
device_info = dai.DeviceInfo()
device_info.state = dai.XLinkDeviceState.X_LINK_BOOTLOADER
device_info.desc.protocol = dai.XLinkProtocol.X_LINK_TCP_IP
device_info.desc.name = "<IP_ADDRESS>"
self.device = dai.Device(devInfo=device_info)

Here I am modifying HandTracker.py. For the edge mode, I would similarly modify HandTrackerEdge.py.
If it does not work, I would suggest you contect Luxonis support. They will be able to help you.

Closing as stale. Please reopen if you'd like to work on this further.


fix border width

update with this too
https://github.com/sindresorhus/is-fullwidth-code-point/pull/1

You're are doing lots of unrelated changes here too. Look at the diff.

@bluelovers - Feel free to reopen with a PR that keeps the existing style, and a diff that only reflects the actual changes.


Warning from characteristic

Following error/warning appear once like every 10minutes. Sometimes the error is only shown once, sometimes like 6 times after each other.
[2/23/2021, 12:45:19 PM] [homebridge-xiaomi-roborock-vacuum] This plugin generated a warning from the characteristic 'Filter Life Level': characteristic was supplied illegal value: number -47.437962962962956 exceeded minimum of 0. See https://git.io/JtMGR for more info.
Cheers & thx!

Hmm, interesting! That's weird! I'll take a look!

It should be fixed in<EMAIL_ADDRESS>
It is still ongoing issue unfortunately. :(
https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/discussions/449
+
https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/issues/386

Hopefully https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/releases/tag/v0.25.1 should fix this.


Item not returned despite search text matching

Describe the bug
I'm using a platform called OutSystems, which uses this plugin for searchable comboboxes. I've got a list which contains an element named "WOMEN'S BUSINESS ENTERPRISE COUNCIL PACIFIC (WBEC PACIFIC) (dba) (ASTRA SOCIETY INTERNATIONAL)" but when searching with the text "astra" no relevant results are found.
To Reproduce
Steps to reproduce the behavior:

Create a list containing "WOMEN'S BUSINESS ENTERPRISE COUNCIL PACIFIC (WBEC PACIFIC) (dba) (ASTRA SOCIETY INTERNATIONAL)"
Search for "astra"
The record is not found

Expected behavior
The record "WOMEN'S BUSINESS ENTERPRISE COUNCIL PACIFIC (WBEC PACIFIC) (dba) (ASTRA SOCIETY INTERNATIONAL)" is returned.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Version 95.0.4638.69

Additional context
Add any other context about the problem here.

Choices uses the Fuse.js library to handle searching. By default, Fuse only checks the first 60 characters. I was able to get the match working by setting the distance option to 400 like so:
const choices = new Choices('#yourSelectElement', {
  choices: yourChoices,
  fuseOptions: {
    distance: 400
  }
});

What you probably want is to use Fuse's ignoreLocation option, but the current version of Fuse bundled with Choices does not support it.

You can monitor #881 for when ignoreLocation will be available.

Thanks very much, mtriff!


fix(): replace beta url

Short description of what this resolves:
Changes proposed in this pull request:

Ionic Version:
Fixes: #

Thanks!


Lodging a message on region's board does not works on Firefox Dev Edition

For the last week, I've been trying to lodge messages on my region's board, but each time I saw that my posts were not on the board.
I thought they got removed, but actually NS++ does not sends my posts. When I click on "Lodge", the page simply refreshes.

Did it work on previous versions of Firefox?

I did not try NS++ on older versions.
Firefox Dev Edition = Aurora


GEODE-6384: Create consistent API to retrieve instances of ClusterManagementService

The overall intent of this commit is to provide a consistent means for
retrieving a ClusterMangementService instance regardless of the
context you are developing in. Currently, the relevant contexts are:

a Java application that has no access (or need to access) core
Geode code. 2) a typical Geode client application and 3) server or
locator-side code.

Introduces a service provider interface
(ClusterManagementServiceProviderFactory) whose implementations are
context dependent.  The latter is
incomplete but will be fully supported in the near future.
The entry point to creating a ClusterManagementService is in
ClusterManagementServiceProvider - more documentation can be found
there.

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

@Petahhh @onichols-pivotal For your review...


Add path-based routing to the router.

I'd like to be able to use one subdomain and route my apps on the sub-folder level.
Like www.myapp.com/api
www.myapp.com/app
It'll be really helpful in cases where the end user doesn't want to deal with cors issues.

+1 don't want to deal with cors issues :)

This is a likely a duplicate of #2069

One workaround atm is to setup nginx as a reverse proxy in front of your cluster.
In theory you can even run a container with nginx that proxies to the other apps internally (via the discoverd DNS records).
(not sure how nginx does upstream dns resolving though, you might need the commercial license if you want runtime resolving of upstream servers).
Another is to build your own gateway app that just forwards requests.

HAProxy can do dynamic backend resolution of 1.6: http://blog.haproxy.com/2015/10/14/whats-new-in-haproxy-1-6/

@josephglanville cool, HAProxy is probably a fancier better load balancer/proxy than nginx, never used it though. For simple setups I think nginx is easier to configure though.

Just to note this here: If you put a reverse proxy upfront like, you have again a single point of failure unless you make the proxy redundant. Another piece of infrastructure to maintain where flynn would come to the rescue. :)


Got the Invariant Violation: Could not find the drag and drop manager in the context of Card

I receive this error:

Invariant Violation: Could not find the drag and drop manager in the context of Card

I've set the DragDropContext to my outermost Component. I'm not sure whether it's relevant but my Card Component is deeply nested.
The DOM looks like:
<DragDropContext(Container)>
    <Media>
        <Pin>
            <List>
                <DragSource(Card)></DragSource(Card)>
            </List>
        </Pin>
    </Media>
</DragDropContext(Container)>

I thoroughly followed the examples and can see only one difference and it's in the deep nesting of the DragSourced Component. Am I missing anything?
Edit: Another reason I can think of is that I'm using reflux.
Full Error message

Warning: Failed Context Types: Required context dragDropManager was not specified in DragSource(Card).
index.js:4692 Uncaught Error: Invariant Violation: Could not find the drag and drop manager in the context of Card. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context

May be it is due to the way you are using <DragDropContext(Container)></DragDropContext(Container)>
Try this :
var DDContainer = DragDropContext(Container);
var DSCard = DragSource(Card);
<DDContainer>
    <Media>
        <Pin>
            <List>
                <DSCard></DSCard>
            </List>
        </Pin>
    </Media>
</DDContainer>

Hi Vkbansal,
I tried your approach but the error message keeps popping in. I'll investigate further but I cant see what I am doing wrong. For info I'm using browserify, es6 and reflux, could those libs be the issue?

Have you looked the documentation?
http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context

There are several ways this error might have happened:

You wrapped some component with a DragSource, DropTarget, or DragLayer, but forgot to wrap your top-level component with the DragDropContext.
You have wrapped the top-level component with the DragDropContext but exported an unwrapped version by mistake.
You are using a component in an isolated environment like a unit test. See the second point for instructions to stub it.
The context is lost for some other reason. Please file an issue if you can reproduce it on a small project.

You may be getting the error due to the first point. It's a common mistake that I make.

I did wrap my top-level component with DragDropContext.

Any chance you have duplicate Reacts on the page?

I dont think so, I'm requiring React with browserify on all the pages that require React, but I dont think browserify is creating a duplicate.

Yeah that's the problem. DragDropContext needs to be placed on the owner of the hierarchy, not just the parent. That's why I call it top-level component in the docs. In other words, if it receives children, they won't get the context.
This is going to be fixed in React 0.14, but for now, you'll need to slap DragDropContext onto whoever creates those children.

It seems to work, thank you.
Awesome project btw.

thanks it was helpful, because I used 0.14.alpha version of React. Updated to 0.14.7 and problem with
Uncaught (in promise) Error: Invariant Violation: DragDropContext
solved


How do I contact you?

Hey Nova,
First off, thank you so much for building azaka, it's an incredible tool and I can't thank you more for open-sourcing it. I scheduled a call with you through the website (there was a link and then I scheduled for basically now, however it doesn't seem like you are available at the moment). Do let me know where and how we can chat!


Implement pre-defined reset types on the server side

We had client side implementation(https://github.com/uber/cadence/blob/master/tools/cli/commands.go#L1714 )
which is in-efficient and can cause issues for batch operation
Will remove the CLI implementation after we see everything working.

This looks good. Are you planning to write tests for ResetWorkflowExecution the case where the second call to GetWorkflowExecution fails?

Yes I think it's better to have unit tests before landing this.

Close it for now. I will do it with another plan(resetV2)


Incorrect assignability between type {} and object

Bug Report

🔎 Search Terms
{}, empty object type, subtype
🕗 Version & Regression Information

This is the behavior in every version I tried.

⏯ Playground Link

Playground link with relevant code
💻 Code

type t1 = object extends {} ? true : false;
//   ^? true, as expected
type t2 = {} extends object ? true : false;
//   ^? true, but should be false
type t3 = string extends {} ? true : false;
//   ^? true, as expected
type t4 = {} extends string ? true : false;
//   ^? false, as expected

function produceRuntimeError<T extends {}>(i: T) {
    const m = new WeakMap<object, number>;
    m.set(i, 0);
}

produceRuntimeError(0) // compiles, but will throw 'Invalid value used as weak map key'

🙁 Actual behavior
See above.
🙂 Expected behavior

{}, the empty object type literal, is a supertype of all types except null and undefined.

From https://github.com/microsoft/TypeScript/pull/49119 I'm aware that non-nullable primitive types like string, number, object are subtypes of {}. It is obviously incorrect to allow {} to be assignable to object.

Hmm, this is tricky.  A type like { toString(): string } is also assignable to object (as would be expected), but could likewise be a primitive.  I think this is just an unfortunate bit of fallout from structural typing and probably won't be fixed.

This is the intended behavior, at least for now. If records and tuples end up creating new kinds of things-with-properties-that-aren't-objects we'll probably reconsider.

I believe it's more of a "design limitation" rather than functioning as intended.
const someObj: object = 1;  // errors, good

const nonNull: {} = 1;
const obj: object = nonNull;    // no error, why?


Future Signal not setting error

I'm not sure if I misunderstand how it should work but this test fails:
test('should set error when future throws', () async {
      final signal = futureSignal<int>(() async => throw Exception('error'));
      expect(signal.peek().isLoading, true);
      await Future.delayed(Duration(milliseconds: 10));

      // fails here, still in loading state
      expect(signal.peek().hasError, true);
    });

The value needs to be read to set the error:
test('should set error when future throws', () async {
      final signal = futureSignal<int>(() async => throw Exception('error'));
      expect(signal.peek().isLoading, true);
-      await Future.delayed(Duration(milliseconds: 10));
+.    await signal.future;
      // fails here, still in loading state
      expect(signal.peek().hasError, true);
 });

All of the async signals are lazy by default and do not start calling the future/stream until a .value call

I tried the .future but an exception that's why I did a regular delay. I thought calling peek would be enough to kick it off:
type 'Null' is not a subtype of type 'int' in type cast
package:signals_core/src/async/state.dart 62:32   AsyncState.requireValue
package:signals_core/src/async/signal.dart 22:18  AsyncSignal.future
===== asynchronous gap ===========================
test/async/future_test.dart 165:7                 main.<fn>.<fn>

Would this be better?
test('should set error when future throws', () async {
      final signal = futureSignal<int>(() async => throw Exception('error'));
      expect(signal.peek().isLoading, true);
      await signal.future.catchError((_) => {});
      // fails here, still in loading state
      expect(signal.peek().hasError, true);
 });

The reason I am not catching it is that you can get the value of T from the future instead of AsyncState on the future result.
But open to suggestions!
Calling .value and waiting for the state to change would not throw an error though

The reason I am not catching it is that you can get the value of T

That's a fair trade-off imo.


Group together public and private parts of VisualCPPMangler

Just changing:
class
{
  private:
    ...
  public:
    ...
  private:
    ...
}

To:
class
{
  private:
    ...
  public:
    ...
}

Though the diff doesn't seem to understand how to represent the change correctly. ;-)

Why?

I was adding some other method and got confused.

Ok, but is it really worth the churn?  Maybe it would be better to just remove the private tags, it's not like protection is really used in dmd anyway.

Shrug maybe.  It would also be nice if common methods between the two shared the same names.  Instead what we have is mangle_function vs. mangleFunction.  Cause that helps me when I want to updates in two places... :)

I've always wanted to merge these, or at least give them a common base class.  I'd be more supportive of renaming the functions than moving them around.

I'll have to agree with @yebblies . This is 784 lines of churn, and actually is quite impossible to review to see if it really is just moving things around.

I'm going to close this. I'm very concerned with the length of and steadily growing size of the regression list. Large refactors will just make everything worse.

I'm with @yebblies et al...


Hindi Translations

resolves #2

hi @Uklizdev 👋🏼
I have done all the translations. COde is un-altered and i have just translated teh rest of the text. In case there are any changes, Ill do them😊.
Thanks again for assigning me this issue


an instance of the app crashed: app instance exited      exit status: 1, CRASHED

I am relatively new to Node-red but have an application which uses Cloudant, DashDB and Node-red and I get the error message above about every hour (along with another out of memory message occasionally) appearing on the dashboard under Activity Log.  I have tried looking at the logs (for the application) but they don't seem to be very helpful.  Please can somebody advise where I should be looking to get more explanation as to why the errors are occurring

Hi,
so I assume you are running in Bluemix rather than locally?
To provide any help we'd need to see the actual error messages you are seeing.
As this issue list is for tracking bugs with node-red rather than general support, please follow up on the mailing list - https://groups.google.com/forum/#!forum/node-red
Thanks,
Nick


hide footer

Hi !
this is really great !
Can we hide the footer ?

Thanks

Did you try to set the configuration options as follows?
in your config:
this.ckeConfig = {
            height: 400,
            language: "en",
            allowedContent: true,
            removePlugins: "elementspath",
            resize_enabled: false
        };

Similar question has been asked in CKEditor forum.

Thanks @kzimny !

Thanks


melos yarn run-build does nothing

I can see the following in the terminal output:
melos run yarn-build
  └> cd lib/js_service_encointeryarn install && yarn run build
     └> RUNNING

melos run yarn-build
  └> cd lib/js_service_encointeryarn install && yarn run build
     └> SUCCESS

However, the expected js_service_encointer/dist/main.js is not being produced. The process is also way faster than what the build usually needs, so I suppose it does nothing. I think when fixing this, we should also change the CI to use melos for the JS-build, so that we test the melos cmd.

This was a windows issue, will be closed by #1005.


Stack of tasks

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
After half a month or so of normal operation, there is always a time when there is a backlog of tasks and all the tasks cannot run properly
What you expected to happen
The task is running properly
How to reproduce
The task is running properly
Anything else
The task dependencies are consistently in a waiting state and will attempt many times, although no retry policy is configured
Version
2.0.x
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Could you please provide more details? can the system recovery?

If tasks are not executed, the cpu usage of mysql is quite high, which is always stable at 800%. Then the backlog of task instances is stopped, mysql is restored, and the task scheduling is restored
------------------ 原始邮件 ------------------
发件人:                                                                                "apache/dolphinscheduler"                                                                                @.>;
发送时间: 2022年12月5日(星期一) 下午4:42
@.>;
<EMAIL_ADDRESS>主题: Re: [apache/dolphinscheduler] Stack of tasks (Issue #13095)
Could you please provide more details? can the system recovery?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

How to reproduce the problem? there aren't have enough message to solve this issue


roidmi.vacuum.v60 is unavailable after firmware update (to version 1.1.0_2404)

Device model / 设备型号
roidmi.vacuum.v60
Component version / 插件版本
0.7.10
HA core version / HA版本
2023.7.2
Integrated mode / 集成方式
Cloud (云端模式)
The problem / 问题详情
After update of firmware roidmi.vacuum.v60 to version 1.1.0_2404 device and all entities are unavailable
Entity attributes / 实体属性
restored: true
fan_speed_list: Silent, Basic, Strong, Full Speed, Sweep
friendly_name: Samantha Robot Cleaner
supported_features: 12539
Home Assistant Logs / 系统日志
Logger: custom_components.xiaomi_miot
Source: custom_components/xiaomi_miot/init.py:235
Integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 9:13:27 AM (1 occurrences)
Last logged: 9:13:27 AM
None device in xiaomi cloud

I removed integration and add again


Keep getting status disconnected

I installed the software with the arduino editor on a ESP8266 (nodemcu v3) and connected the setup as showed in the docs with a rewirable FEMALE plug layout.
I tried the following but it all gave the same results:

I used the pin layout as described in the README with a rewirable female connector
I attached the wires directly attached to the subwoofer
Started with the http://nodemcu/power/on
Switched the RX and TX connection just to be sure.
Attached the 3 ground pins to all the 3 ground pins on the nodemcu (docs said it should not matter because ground is all connected as one.)

The nodemcu starts up and is reachable via HTTP with all tries and I keep getting: {"status": "disconnected"} on every HTTP GET call i try and i am running a bit out of idea's. I would hope you could point me in the right direction on how to debug this further.

I installed the software with the arduino editor on a ESP8266 (nodemcu v3) and connected the setup as showed in the docs with a rewirable FEMALE plug layout.
I tried the following but it all gave the same results:

I used the pin layout as described in the README with a rewirable female connector
I attached the wires directly attached to the subwoofer
Started with the http://nodemcu/power/on
Switched the RX and TX connection just to be sure.
Attached the 3 ground pins to all the 3 ground pins on the nodemcu (docs said it should not matter because ground is all connected as one.)

The nodemcu starts up and is reachable via HTTP with all tries and I keep getting: {"status": "disconnected"} on every HTTP GET call i try and i am running a bit out of idea's. I would hope you could point me in the right direction on how to debug this further.

Hello. I suppose You defined in the speciffic file the wifi connection credetials speciffic to Your router?

Hi @rosconap, sorry to hear you're experiencing problems with the setup. I did experience this issue once when setting mine up. It was down to the pins being connected incorrectly. Although the troubleshooting steps you took sound great.
You mentioned you're using a female plug. The pin-out diagram in the readme used a male plug.
Whilst I think it's the same for the female one, it would be worth double-checking.

DE-15 Pin
ESP8266 Pin

3
GND

6
GND

11
3V

12
RX

13
TX

15
GND

It sounds as if your 3V and Ground are fine, if you've got it powered up.
In terms of troubleshooting steps, if you're able to plug the original console back in to verify it is all working as it should that would be great.
Once it's in a powered-on state, you could try swapping the consoles (while it is on) to confirm you can make a connection.
It might be also worth double-checking that the Console Enable pin 15 is definitely grounded.

Problem solved. I attached the Dupont wires directly to the subwoofer without the DE-15 connector according to the provided layout and it worked. Must be a faulty connector somewhere.
Thank you so much for your feedback and this project.


Update docs for vector and terrain tiles

Promote general Mapzen API key documentation instead of dup that in service docs (merges PRs from Product team.

Verified both on precog.

Full diffs are:

https://github.com/tilezen/joerd/compare/v1.0.0...master
https://github.com/tilezen/vector-datasource/compare/v1.0.0-docs1...master

joerd's documentation needs edits on the 'Use-Service' page, with the same changes done to the API key information that was finished in vector-datasource

Also let's get rid of the use of the word 'performant' because it's often construed as jargon.

I'm tracking those additional changes with https://github.com/tilezen/joerd/issues/110, can we merge this set now please?

have the changes for joerd ready, this looks good to me