Issue with tf.fill() and  tf.zeros()not returning enough values for shape

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): YES
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
OSX 10.15.4
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
NA
TensorFlow installed from (source or binary):
Source
TensorFlow version (use command below): 2.2.0-rc3
Python version: 3.7
Bazel version (if compiling from source): bazel 2.0.0

- GCC/Compiler version (if compiling from source):

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin19.4.0
Thread model: posix

- CUDA/cuDNN version: None
- GPU model and memory: NA
- tensorflow-java : Version HEAD

Describe the current behavior
When calling tf.zeros() or tf.fill(), the returned data does not match the Shape passed in.
If I have a shape of (2,2), I would expect 4 values to be returned, but I only get 2.
However, when I pass new long[(int)shape.size()] as the shape argument, it works as expected and 4 values are returned. It seems that the fill op is using the size of the input array rather than the values contained within in the array.
Also, I noticed that the ZerosTest.java, does not check for the length of the returned array, it merely just checks that each element returned is zero.
Describe the expected behavior
The python version works as expected:
import tensorflow as tf;
print(tf.__version__)

op = tf.fill([2,2], 1.0)
print(op.numpy())

op = tf.zeros([2,2])
print(op.numpy())

With output:
2.2.0-rc3
[[1. 1.]
 [1. 1.]]
[[0. 0.]
 [0. 0.]]

Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
The following java code exhibits the issue:
        float[] actualF = { 1.f, 1.f, 1.f, 1.f };
        try (EagerSession session = EagerSession.create()) {
           Ops tf = Ops.create(session);
            Shape shape = Shape.of(2,2);
             // this only returns 2 of the 4 zeros
            Operand<TFloat32> zeroOp = tf.zeros(
                    tf.shape(tf.dtypes.cast(tf.constant(shape.asArray() ), TFloat32.DTYPE)),
                    TFloat32.DTYPE);
            zeroOp.asTensor().data().read(DataBuffers.of(actualF));
            System.out.print("tf.zeros: ");
            zeroOp.asTensor().data().scalars().forEach(s -> System.out.print(s.getFloat() + ", "));
            System.out.println();
            System.out.println("actual Array: " + Arrays.toString(actualF));

            // this only returns 2 of the 4 zeros
            Arrays.fill(actualF, 0.F);
            Operand<TFloat32> fillOp = tf.fill(
                    tf.shape(tf.dtypes.cast(tf.constant(shape.asArray() ), TFloat32.DTYPE)),
                    tf.dtypes.cast(tf.constant(1.0), TFloat32.DTYPE));
            fillOp.asTensor().data().read(DataBuffers.of(actualF));
            System.out.print("tf.fill: ");
            fillOp.asTensor().data().scalars().forEach(s -> System.out.print(s.getFloat() + ", "));
            System.out.println();
            System.out.println("actual Array: " + Arrays.toString(actualF));

            // this works as expected:
            Arrays.fill(actualF, 0.F);
            Operand<TFloat32> fillOp1 = tf.fill(
                    tf.shape(tf.dtypes.cast(tf.constant(new long[(int)shape.size()] ), TFloat32.DTYPE)),
                    tf.dtypes.cast(tf.constant(1.0), TFloat32.DTYPE));
            fillOp1.asTensor().data().read(DataBuffers.of(actualF));
            System.out.print("tf.fill: ");
            fillOp1.asTensor().data().scalars().forEach(s -> System.out.print(s.getFloat() + ", "));
            System.out.println();
            System.out.println("actual Array: " + Arrays.toString(actualF));
        }

With output:
tf.zeros: 0.0, 0.0,
expected Array:  [0.0, 0.0, 0.0, 0.0]
actual Array: [0.0, 0.0, 1.0, 1.0]

tf.fill: 1.0, 1.0,
expected Array:  [1.0, 1.0, 1.0, 1.0]
actual Array: [1.0, 1.0, 0.0, 0.0]

tf.fill: 1.0, 1.0, 1.0, 1.0,
expected Array:  [1.0, 1.0, 1.0, 1.0]
actual Array: [1.0, 1.0, 1.0, 1.0]

Other info / logs
NA

I figured it out. I was casting the shape array to Shape array to TFloat32.DTYPE,
it should have been left at TInt64.DTYPE;


Add doc on model memory usage

Doc write up on the model memory usage tool as a usage guide, which should help with overall visibility of the tool 🤗

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

@BenjaminBossan good with these changes? 😄


Add "Sort cards by type"

It would be really helpful sometimes to be able to sort cards by their main type (creature, land, instant etc.)

Addressed by 4b1b444c2bf61a76b5e1075f80896775e2de3046
Will be live shortly


Compared with the earlier version, the chunk-xxx.js file is added after the "builder": "@angular-devkit/build-angular:browser-esbuild" configuration is used. Why? Can chunk files not be generated, or can chunk file names be specified?

Command
build
Description
After the Angular is upgraded to version 16, the builder @angular-devkit/build-angular:browser-esbuild is used, Compared with the earlier version, the chunk-xxx.js file is added after the "builder": "@angular-devkit/build-angular:browser-esbuild" configuration is used. Why? Can chunk files not be generated, or can chunk file names be specified?
Describe the solution you'd like
In some scenarios, compilation files need to be dynamically obtained. Currently, a chunk is added and its name is not fixed. Therefore, static files cannot be matched. So I hope chunk-xxx.js  is not generated or the file name can be customized.
Describe alternatives you've considered
No response

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.


Fix language changing on venue page

Previously language changing would not work in the venue page.
After this change data should update when language is changed.

Codecov Report

Merging #37 (a3a4726) into main (52b8dff) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
- Coverage   70.16%   70.13%   -0.03%
==========================================
  Files          64       64
  Lines         734      730       -4
  Branches      185      185
==========================================
- Hits          515      512       -3
+ Misses        219      218       -1

Impacted Files
Coverage Δ

src/client/cmsApolloClient.ts
0.00% <0.00%> (ø)

src/client/initializeApolloClient.ts
0.00% <0.00%> (ø)

src/client/nextApiApolloClient.ts
0.00% <0.00%> (ø)

src/client/utils.ts
30.00% <0.00%> (-10.00%)
:arrow_down:

src/pages/index.tsx
64.70% <0.00%> (-2.95%)
:arrow_down:

Continue to review full report at Codecov.

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


Build only changed files?

Is there any way to rebuild only the changed files? I have an average size project. if I do a small change in any JS/CSS and do run/build, WebPack rebuilds all files again.
It might not be related to this package, but if you know any workaround please share :)
Thanks!

You said it - it's all about 👉webpack 👈. Just run it in a dev mode, and incremental builds would save a day.


Enables UpgradeForce option

It seems like the idea for adding UpgradeForce has been in the code since the beginning, but we had a case where we needed to use it (orphaned tiller releases).
This PR makes UpdateForce configurable from an environment variable, "TILLER_UPDATE_FORCE".

This is also related to https://github.com/bitnami-labs/helm-crd/issues/33


Not possible to use arrow keys when renaming file

VSCode Version: Code - Insiders 1.19.0-insider (3c470706ded48fc75c05f86bc4f9c7b0f4d6c708, 2017-11-27T06:07:45.718Z)
OS Version: Darwin x64 16.7.0
Extensions:

Extension
Author (truncated)
Version

tslint
eg2
1.0.24

prettier-vscode
esb
0.26.0

Steps to Reproduce:

Go to a file you want to rename
Hit ENTER to switch into the rename view
use left/right arrow keys to attempt to move cursor between letters
cursor does not move, instead the folder tree is opened/closed

Reproduces without extensions: Yes

Couldn't type o character also (although I didn't tested every key).

i think it assumes that we're passing in a keyboard shortcut command (pressing a stops the new folder creation dialog and starts a new file creation dialog)

@joaomoreno this sounds like a regression from your list service changes

It broke again.
Version 1.19.0-insider (1.19.0-insider)
d8989c95964ce06c64ffebc2fb400a0327bd447d
2017-12-08T10:04:48.458Z

Repro is not the same as OP, though: Arrow keys seem to work, but pressing letters (e.g. a perform actions instead of entering the letter 'a').

@SEAPUNK what action did you configure for a? Do you have any VIM extension installed?

I can confirm that it broke again. In addition to a, h, j, k, l, and backspace don't work while naming a file or folder.

VSCode Version: Code - Insiders 1.19.0-insider (d8989c95964ce06c64ffebc2fb400a0327bd447d, 2017-12-08T10:09:06.896Z)
OS Version: Darwin x64 17.3.0
Extensions:

Extension
Author (truncated)
Version

beautify
Hoo
1.1.1

output-colorizer
IBM
0.1.2

vscode-docker
Pet
0.0.22

code-settings-sync
Sha
2.8.6

html-snippets
abu
0.1.0

calculate
aca
1.1.1

project-manager
ale
0.23.0

django-html
bib
1.2.0

django-snippets
bib
1.1.0

color-info
bie
0.5.0

path-intellisense
chr
1.4.2

regex
chr
0.1.0

gitignore
cod
0.5.0

vscode-svgviewer
css
1.4.3

vscode-eslint
dba
1.4.3

githistory
don
0.2.3

jupyter
don
1.1.4

python-extension-pack
don
1.0.1

octobercms-template-language
dqs
0.2.1

gitlens
eam
6.3.0

vscode-html-css
ecm
0.1.8

php-debug
fel
1.12.1

auto-close-tag
for
0.5.5

auto-rename-tag
for
0.0.15

MagicPython
mag
1.0.12

vscode-apache
mrm
1.1.1

mssql
ms-
1.2.1

python
ms-
0.8.0

atom-keybindings
ms-
3.0.2

azure-account
ms-
0.2.2

cpptools
ms-
0.14.3

debugger-for-chrome
msj
3.5.0

color-highlight
nau
2.3.0

vetur
oct
0.11.3

vscode-icons
rob
7.18.1

vscode-nginx
sha
0.4.1

code-spell-checker
str
1.5.1

language-stylus
sys
1.8.0

vscode-todo-highlight
way
0.5.11

jinja
who
0.0.8

change-case
wma
1.0.0

markdown-all-in-one
yzh
0.11.2

(1 theme extensions excluded)

I've submitted https://github.com/VSCodeVim/Vim/pull/2213 which will fix it for the VIM users.
The correct when clause to use now is: listFocus && !inputFocus.

@bpasero I'm using atom keybindings.

Oh, it seems @auchenberg already fixed this in https://github.com/Microsoft/vscode-atom-keybindings/issues/44, for the Atom keybindings. Thanks @auchenberg!


Feature/auto refresh whitelist

Add feature to auto-refresh whitelist.
Clean xcode project for fresh guy.

We already user openssl library as a dependancy. Why did you decide to include whole library to the project?

Thank you for your great efforts. I will update win-version.

So,  xdag network is running based on whitelist nodes, not a p2p network, right? And, What's the future xdag network is? How to handle 1w nodes?


LOGS - sok_digest is non-string

sok_digest will frequently emit in to the logs with non-string representations
eg
"sok_digest":"Lh<8C>u\u0002l@\u0013\b<9F>V\u0010L6W\u001b<8D>|@@+%Dq"
This breaks log parsers which expect ascii/utf8/text.
Please review the yojson representation of sok_digest and either remove this field or find a way to encode it as a true string.

We can also remove this from logs.

@jkrauska and @ghost-not-in-the-shell to team up and find and remove this


[dev-1.25] Update feature gate docs for probe-level termination grace period

Signed-off-by: Paul S. Schweigert<EMAIL_ADDRESS>In v1.25, the ProbeTerminationGracePeriod feature gate will be on by default. This PR updates the feature gate docs with this information.
xref https://github.com/kubernetes/enhancements/issues/2238

Either:

the changes from https://github.com/kubernetes/website/pull/34651 should be in this PR
move the changes from this PR to https://github.com/kubernetes/website/pull/34651, close this PR, and update #34651 to target dev-1.25

Went with option 1 (bring changes from #34651 into this PR. Also closed #34651 )

/milestone 1.25
/cc @kcmartin

Code changes that this docs update is for landed in https://github.com/kubernetes/kubernetes/pull/108541

/assign @sethmccombs

/lgtm

There's a second lgtm in this comment
/approve


Failed to load the native TensorFlow runtime.

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.17
Custom code
Yes
OS platform and distribution
No response
Mobile device
No response
Python version
3.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
My custom classifier isn't running.
Expectation:
Wanted to run a custom classifier
Standalone code to reproduce the issue
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\user\fer-project\src\train.py", line 3, in
from model import create_cnn_model
File "C:\Users\user\fer-project\src\model.py", line 3, in
import tensorflow as tf
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow_init_.py", line 38, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.

Relevant log output
No response

Hi @philipakomolafe ,
There are at least 3 possible scenarios:
You need to install the MSVC 2019 redistributable
Your CPU does not support AVX2 instructions
Your CPU/Python is on 32 bits
There is a library that is in a different location/not installed on your system that cannot be loaded.
https://github.com/tensorflow/tensorflow/issues/61887
Thank you!


can you do a new release + pypi

we've been getting some requests to incorporate newer features into allennlp that are only on master (e.g. never_split).
thanks!

Ok @joelgrus, the new release is out: https://github.com/huggingface/pytorch-pretrained-BERT/releases/tag/v0.5.0


Implement ExcludeReplyUserIds for publishing a Tweet reply

See #487
Twitter has launched the prefix portion of their new extended tweets.
Tweetinvi had stubbed, but not implemented ExcludeReplyUserIds for that & this PR just implements it.
ExcludeReplyUserIds is required to manage the auto-population of the prefix, otherwise Twitter will always "reply-all" the Tweet you're replying to. It could also be needed to manage the mentions for very lengthy chains of replies, as the prefix is limited to containing 50 mentions.
Example usage:
Tweet.PublishTweet("testing 123 this tweet is over 140 chars, but that's fine because the initial mention is no longer counted! yay yay yay yay yay yay yay!2",
                new PublishTweetOptionalParameters()
{
    InReplyToTweetId =<PHONE_NUMBER>01224449,
    AutoPopulateReplyMetadata = true,
    ExcludeReplyUserIds = new long[] {<PHONE_NUMBER> }
 });

publishes https://twitter.com/VISAVJoe/status/860119905504546816
And without ExcludeReplyUserIds publishes https://twitter.com/VISAVJoe/status/860111956707028993

Related to https://github.com/linvi/tweetinvi/issues/417

Thank you josh. This has now been added to 1.3!


Persistence in SwiftUI

Is your feature request related to a problem? Please describe.
In UIKit flowPersistence is a deliberately supported feature. in SwiftUI right now removedAfterProceeding is supported (partially by accident) and persistWhenSkipped really isn't. I'd like to see support for those, if possible.
Describe the solution you'd like
For default presentation:
removedAfterProceeding means the @State variable holding onto the view is cleared, this is mostly useful for animations.
persistWhenSkipped I do not believe has any real meaning here, if it's skipped with our default presentation mode then there's really nothing to persist.
For navigation links:
removedAfterProceeding in a perfect world this (somehow) animates in the next view then retroactively changes the back-stack to remove the item you just proceeded from. However I think that's impossible because of how animations for Navigation Views and back stack management work in SwiftUI. So I'm fine with the new view merely replacing the one that gets removed after proceeding.
persistWhenSkipped means that a skipped item is in the backstack. You can navigate backward to it, but when you navigate forward from the previous item it's not animated in. (Again, realizing that animations may be very hard to control here)
For modals:
removedAfterProceeding in a perfect world this (somehow) animates in the next view then retroactively changes the back-stack to remove the item you just proceeded from. However I think that's impossible because of back stack management work in SwiftUI. So I'm fine with the new view merely replacing the one that gets removed after proceeding.
persistWhenSkipped means that a skipped item is in the backstack. You can dismiss backward to it, but when you navigate forward from the previous item it's not animated in. (Again, realizing that animations may be very hard to control here)
Describe alternatives you've considered
Expressly have an error (ideally compile time) that stops users from being able to apply persistences that do not work.

Began Working on persistWhenSkipped in navigation links. Findings below:

I started at first by changing launch() and proceed() in WorkflowViewModel:

From this:
extension WorkflowViewModel: OrchestrationResponder {
    func launch(to destination: AnyWorkflow.Element) {
        body = destination
    }

    func proceed(to destination: AnyWorkflow.Element, from source: AnyWorkflow.Element) {
        body = destination
    }
}

To this:
extension WorkflowViewModel: OrchestrationResponder {
    func launch(to destination: AnyWorkflow.Element) {
        if destination.value.metadata.persistence == .persistWhenSkipped, let next = destination.next {
            body = next
        } else {
            body = destination
        }
    }

    func proceed(to destination: AnyWorkflow.Element, from source: AnyWorkflow.Element) {
        if destination.value.metadata.persistence == .persistWhenSkipped, let next = destination.next {
            body = next
        } else {
            body = destination
        }
    }
}

I reverted this change after realizing that Workflow handles this already via a double proceed() call in setupProceedInWorkflowStorage()

Lines 190 & 210

In addition, the Workflow class has easy access to shouldLoad, which keyed me into the fact that the under-the hood  proceed logic is already taken care of, and my focus needs to be more "View specific".

This realization made me go look at proceedInWorkflow() in WorkflowItem:
private func proceedInWorkflow(element: AnyWorkflow.Element?) {
    if let body = element?.extractErasedView() as? Content, elementRef === element || elementRef == nil {
        elementRef = element
        content = body
        persistence = element?.value.metadata.persistence ?? .default
    } else if persistence == .removedAfterProceeding {
        content = nil
        elementRef = nil
    }
}

After some debugging of this example scenario...:
var body: some View {
    WorkflowLauncher(isLaunched: .constant(true)) {
        thenProceed(with: FlowRep1.self) {
            thenProceed(with: SkippedFlowRep.self) {
                thenProceed(with: FlowRep2.self).presentationType(.navigationLink)
            }
            .persistence(.persistWhenSkipped)
            .presentationType(.navigationLink)
        }
        .presentationType(.navigationLink)

    }.embedInNavigationView()
}

struct FlowRep1: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        Button("FlowRep1 proceed") { proceedInWorkflow() }
    }
}

struct SkippedFlowRep: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        VStack {
            Button("SkippedFlowRep proceed") { proceedInWorkflow() }
            Button("SkippedFlowRep backup") { try? backUpInWorkflow() }
        }
    }
    func shouldLoad() -> Bool { false }
}

struct FlowRep2: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        Button("FlowRep2 backup") { try? backUpInWorkflow() }
    }
}

...I realized that the proceedInWorkflow() function in WorkflowItem was not handling the scenario for a persistence of .persistWhenSkipped.
I updated the function as such:
private func proceedInWorkflow(element: AnyWorkflow.Element?) {
    persistence = element?.value.metadata.persistence ?? .default // Setting outside of if-statement

    print("Element is: \(element?.value.instance?.underlyingInstance ?? "Nil")")
    print("elementRef is: \(_elementRef.wrappedValue?.value.instance?.underlyingInstance ?? "Nil")")

    if let body = element?.extractErasedView() as? Content, elementRef === element || elementRef == nil {
        elementRef = element
        content = body
    } else if persistence == .removedAfterProceeding {
        content = nil
        elementRef = nil
    } else if persistence == .persistWhenSkipped {
        elementRef = element?.next
        content = element?.extractErasedView() as? Content
    }
}

This got me to a scenario where I was seeing:
FlowRep1 -> SKIP -> FlowRep2 --- Successfully skipping the SkippedFlowRep view when proceeding from FlowRep1.
AND
SkippedFlowRep <- FlowRep2 --- Successfully backing up from FlowRep2 to SkippedFlowRep using button and NavView Back button.

Unfortunately, neither proceeding nor backing up from SkippedFlowRep is working - it just stays there.

For that, I had a suspicion that something along the lines of this block will be needed in the proceedInWorkflow() function but not sure where:
if content == nil {
    _ = element?.traverse(direction: .backward) {
        if $0.value.metadata.persistence == .persistWhenSkipped,
           let body = $0.extractErasedView() as? Content {
            elementRef = $0
            content = body
            isActive = true
            persistence = .persistWhenSkipped
        }
        return true
    }
}

Adding this block into the proceedInWorkflow() function gave SkippedFlowRep the ability to proceed to FlowRep2 after FlowRep2 backed up to SkippedFlowRep:
private func proceedInWorkflow(element: AnyWorkflow.Element?) {
    persistence = element?.value.metadata.persistence ?? .default

    if let body = element?.extractErasedView() as? Content, elementRef === element || elementRef == nil {
        elementRef = element
        content = body
    } else if persistence == .removedAfterProceeding {
        content = nil
        elementRef = nil
    } else if persistence == .persistWhenSkipped {
        elementRef = element?.next
        content = element?.extractErasedView() as? Content
    }

    if content == nil {
        _ = element?.traverse(direction: .backward) {
            if $0.value.metadata.persistence == .persistWhenSkipped,
               let body = $0.extractErasedView() as? Content {
                elementRef = $0
                content = body
                isActive = true
                persistence = .persistWhenSkipped
            }
            return true
        }
    }
}

This AM I verified this behavior in Xcode 13 & 12.5.1

Moved to testing out this example app configuration:
WorkflowLauncher(isLaunched: .constant(true)) {
  thenProceed(with: FlowRep1.self) {
      thenProceed(with: SkippedFlowRep.self) {
          thenProceed(with: FlowRep2.self) {
              thenProceed(with: SkippedFlowRep.self) {
                  thenProceed(with: FlowRep1.self).presentationType(.navigationLink)
              }
              .persistence(.persistWhenSkipped)
              .presentationType(.navigationLink)
          }
          .presentationType(.navigationLink)
      }
      .persistence(.persistWhenSkipped)
      .presentationType(.navigationLink)
  }
  .presentationType(.navigationLink)
}.embedInNavigationView()

struct FlowRep1: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        VStack {
            Button("FlowRep1 proceed") { proceedInWorkflow() }
            Button("FlowRep1 backup") { try? backUpInWorkflow() }
        }
    }
}

struct SkippedFlowRep: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        VStack {
            Button("SkippedFlowRep proceed") { proceedInWorkflow() }
            Button("SkippedFlowRep backup") { try? backUpInWorkflow() }
        }
    }
    func shouldLoad() -> Bool { false }
}

struct FlowRep2: View, FlowRepresentable {
    var _workflowPointer: AnyFlowRepresentable?
    var body: some View {
        VStack {
            Button("FlowRep2 proceed") { proceedInWorkflow() }
            Button("FlowRep2 backup") { try? backUpInWorkflow() }
        }
    }
}

Scenario:
FlowRep1 -> SKIP (SkippedFlowRep) -> FlowRep2 -> SKIP (SkippedFlowRep) -> FlowRep1
Proceeding through this scenario works, however backing up from the second SkippedFlowRep incorrectly takes you to a FlowRep1.

This

Proceeding through this scenario works, however backing up from the second SkippedFlowRep incorrectly takes you to a FlowRep1.

Is making me think that second SkippedFlowRep, that I'm trying to backup from is actually the instance of the first SkippedFlowRep because if we look at the scenario:
FlowRep1 -> SKIP (SkippedFlowRep1) -> FlowRep2 -> SKIP (SkippedFlowRep2) -> FlowRep1

SkippedFlowRep1 should be:
SkippedFlowRep1.next = FlowRep2
SkippedFlowRep1.previous = FlowRep1

SkippedFlowRep2 should be:
SkippedFlowRep2.next = FlowRep1
SkippedFlowRep2.previous = FlowRep2

So if going back from SkippedFlowRep2 takes me to FlowRep1, then that makes me think I need to do some more checks in my proceedInWorkflow() function to make sure I'm setting the correct instance of SkippedFlowRep.

After learning that Content has an underlying type, all of the checks on if let body = element?.extractErasedView() as? Content make much more sense.
After some debugging, I have come to the point that this if-check from proceedInWorkflow() wasn't actually doing what I thought:
else if persistence == .persistWhenSkipped {
    elementRef = element?.next
    content = nextView as? Content
}

So I've updated the function to look like this:
private func proceedInWorkflow(element: AnyWorkflow.Element?) {
    persistence = element?.value.metadata.persistence ?? .default

    if let body = element?.extractErasedView() as? Content, elementRef === element || elementRef == nil {
        elementRef = element
        content = body
    } else if persistence == .removedAfterProceeding {
        content = nil
        elementRef = nil
    }

    if content == nil {
        _ = element?.traverse(direction: .backward) {
            if $0.value.metadata.persistence == .persistWhenSkipped,
               let body = $0.extractErasedView() as? Content {
                elementRef = $0
                content = body
                isActive = true
                persistence = .persistWhenSkipped
            }
            return true
        }
    }
}

Because I believe the if content == nil check is actually doing what I thought the previous one was.
With this change, I'm seeing the navigation stack function the way we expect, but not the transitions. On a proceed from FlowRep1, I'm seeing this happen:
FlowRep1 -> SkippedFlowRep -> FlowRep2 -> BACK (SkippedFlowRep)

After some debugging and chipping away at the changes made prior, we got back to the state of proceedInWorkflow() as it is on main:
private func proceedInWorkflow(element: AnyWorkflow.Element?) {
    if let body = element?.extractErasedView() as? Content, elementRef === element || elementRef == nil {
        elementRef = element
        content = body
        persistence = element?.value.metadata.persistence ?? .default
    } else if persistence == .removedAfterProceeding {
        content = nil
        elementRef = nil
    }
}

This, with the addition of a dispatch for proceed calls to give them more time to finish:
func proceed(to destination: AnyWorkflow.Element, from source: AnyWorkflow.Element) {
    DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .seconds(1))) {
        self.body = destination
    }
}

Got us to a place where we're seeing the navigation stack function correctly AND the flow proceed forward correctly.
The big thing to note here is that updating model.body in rapid succession does not allow both updates to fully percolate through the system. The second update ends up replacing the first. The dispatch adds time between updates for the changes to percolate out to all.

We continued to investigate and CurrentValueSubject behaves similarly to what we are seeing with model.body being updated, AND PassthroughSubject is not going out to all views.

I created another spike branch called kafka-like that does some more things around bunching events.
My thought is that because PassthroughSubject does not go out to all subscribers, and CurrentValueSubject does not send out all events, that I could leverage model.body changing and simply track all my events myself.  That is currently in place and works, SORT OF.  The behavior when persisting a skipped screen in the middle of a flow is broken.  For example, FR1 -> FR2 (skipped) -> FR3 ends up rendering as FR1 on screen, then briefly FR2, then FR3 briefly, then FR2 again.  BUT SUCCESS when you have FR1 as skipped, then the app will properly launch with FR2 in place and FR1 in the stack.
So if FR1 works as skipped I then tested out FR2 as well, so the example being: FR1(skip) -> FR2(skip) -> FR3.  And when I launched the app, everything was correct and I was looking at FR3 and could navigate backward all the way to FR1.  But then 💥 Because if you slow animations in the simulator, you'll see FR1 sliding off the screen, FR2 sliding in, then it behaves the same as if FR2 is skipped in the middle (see above).
This leads me to believe that things are only working correctly because everything is set up correctly before the first view is rendered.  Once a view has rendered, we seem to be hitting race time issues with navigation links being flipped and views being re-rendered and everything going down the toilet.
As part of this avoidance of re-rendering, I've tried to capture the state that changes in a StateObject to allow the state to persist WITHOUT also causing another rendering pass, but that hasn't work so far.
And so the investigation continues.

I created a ReplaySubject @morganzellers You were right to use ReplaySubject not PassthroughSubject when we were working together. @Richard-Gist says my branch is better than his, I agree with him.
So the short version:

If you skip the first screen it works great
If you skip the first n+ screens it does work...but when you back up and go forward it does things that are difficult to predict
If you skip the middle screen it just doesn't work, it goes to the right screen, but then like automatically backs up
If you skip at the end it works

The ReplaySubject is heavily inspired by what we read on Medium but changed to suit our specific use-cases. It doesn't have a buffer it just replays all values.

I think the way forward here is to figure out why do we wiggle back and forth in the animation.  To do this, I'm starting to venture into recreating SwiftCurrent piece by piece with dumb logic to figure out what causes the behavior.  So far all our investigations have led to a better understanding of SwiftUI and @State and @StateObject and when views are calling body and such, but no further information on why any of this is happening.
Ultimately we have to figure out why our navigation links isActive state is flipped to false even though it should be true.

Spent some time clicking around this

```
//
//  ContentView.swift
//  Flowy
//
//  Created by Morgan Zellers on 9/16/21.
//
// Create a stupid SwiftCurrent
// Has a model that swaps out the view used in navigation links
// has function things that will do that swapping and can be accessed by views
// the model is shared with all FRs
import SwiftUI
struct ContentView: View {
@StateObject var foo = Foo()
var body: some View {
    NavigationView {
        FR1()
            .environmentObject(foo)
    }.navigationViewStyle(.stack)
}

}
struct FR1: View {
@State var isActive = false
@EnvironmentObject var foo: Foo
@State var bool = false
var body: some View {
    VStack {
        Text("This is \(String(describing: Self.self))")
        NavigationLink("Link to FR2", isActive: $isActive) {
            foo.fr2View.environmentObject(foo)
        }
        Button("will show FR2: \(foo.returnFR2.description)") {
            foo.returnFR2.toggle()
        }
    }
}

func shouldLoad() -> Bool { true }

}
struct FR2: View {
@State var isActive = false
@EnvironmentObject var foo: Foo
var body: some View {
    VStack {
        Text("This is \(String(describing: Self.self))")
        NavigationLink("Link to FR3", isActive: $isActive) {
            foo.fr3View.environmentObject(foo)
        }
        Button("will show FR3: \(foo.returnFR3.description)") { foo.returnFR3.toggle() }
    }
}

func shouldLoad() -> Bool { true }

}
struct FR2Beta: View {
@State var isActive = false
@EnvironmentObject var foo: Foo
var body: some View {
    VStack {
        Text("This is \(String(describing: Self.self))")
        NavigationLink("Link to FR3", isActive: $isActive) {
            foo.fr3View.environmentObject(foo)
        }
        Button("will show FR3: \(foo.returnFR3.description)") { foo.returnFR3.toggle() }
    }
}

func shouldLoad() -> Bool { true }

}
struct FR3: View {
@EnvironmentObject var foo: Foo
var body: some View {
    VStack {
        Text("This is \(String(describing: Self.self))")
        Button("Navigate forward") { foo.returnFR2.toggle() }
    }
}

func shouldLoad() -> Bool { true }

}
class Foo: ObservableObject {
@Published var bool = false
var returnFR2 = false {
didSet {
updateFR2View()
}
}
@Published var fr2View: AnyView = AnyView(EmptyView())
func updateFR2View() {
    if returnFR2 {
        fr2View = AnyView(FR2())

    } else {
        let foo = FR2Beta()

        fr2View = AnyView(foo)
        foo.isActive = true
    }
}

var returnFR3 = false {
    didSet {
        updateFR3View()
    }
}

@Published var fr3View: AnyView = AnyView(EmptyView())
func updateFR3View() {
    if returnFR3 { fr3View = AnyView(FR3()) } else { fr3View = AnyView(FR1()) }
}

}
</details>

Just capturing some thoughts on:

Ultimately we have to figure out why our navigation links isActive state is flipped to false even though it should be true.

Does the back button reset isActive if you entered via the navigation link?
Does re-rendering affect @State variables' values?
Does view swapping the destination of a navigation link break the link until the source view is rendered again?

Does this put isActive back to default state?

👋 Have a good weekend!

This issue is being removed from our board at this time.  We tried to resolve it but the efforts you see above led to incorrect behavior in NavigationLinks and Modals.  We have not found a suitable solution that works for iOS 15.
The community is welcome to implement this feature, and if we have not documented enough, let us know and we will get you caught up.
The main gotchas occur when you have 4 FlowRepresentables and you skip the first 3 with .persistWhenSkipped when all views are in a NavigationLink or all views are in a Modal presentationType.
We have also decided that if we can get this to work with iOS15, that will be enough.  We do not need .persistWhenSkipped to support anything less than the latest release.


[BUG] Target Depth

No matter how I configure target depth (-1,0,1,12) output is always the same.

This is not true. Usage is poor however, will change to new issue thread.


Correct logging

Short Description:
Fixes:

#2698

We don't accept pull requests to master. If you could point this to dev I'd be happy to merge it.


Step 12

Per Eric:
"queries for test results using DM7 shown above in test 4, and missing test support messages actually belong here"
Move the requested data processing to the correct Step (from step 04 to step 12).

This work is complete


Add more trigonometry functions and Pi constant

Inverse versions of sin/cos/tan involves some calculus, so languages usually use some lookup tables for them. Atan2 needs 6 different if statements depending on what numbers you get, so it's quite complicated to do in trickster for no reason at all. Also Pi is quite essential for radians...

Removed Pi since enjarai wants pi to be a challenge


assertion failure at line 61

im trying to use a shader with SimpleShader and I get this error
Assertion Failed!
Program:
\bin\ShaderTest\Debug\ShaderTest.exe
File:
\ShaderM...eGL.cpp
Line: 61
hope this gets fixed soon.
also, after I press ignore, theres that exact same thing at line 113 on ProgramGL.cpp

I. AM. SO. STUPID. I finally fixed the issue after like a year. it was my fault.


[CS] Test errors

I'm not able to reproduce the CI errors locally ... and it seems to me when the option PR was merged it worked.
If someone here can help me figure out what's happening and how to fix it ?
🙏

Hm, probably a random fail? I will restart the failed jobs to see if it helps

Thanks, that was probably a glitch! https://github.com/SymfonyCasts/sass-bundle/actions/runs/7389012804


fix(rent): remove https prefix

Screenshots

Descriptions

Removed https prefix

Codecov Report

Merging #51 (03ed925) into master (136f99f) will increase coverage by 1.24%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   91.66%   92.90%   +1.24%
==========================================
  Files           1        1
  Lines         120      141      +21
==========================================
+ Hits          110      131      +21
  Misses          5        5
  Partials        5        5

Impacted Files
Coverage Δ

rent.go
92.90% <100.00%> (+1.24%)
: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 136f99f...03ed925. Read the comment docs.


TeX-error in QAOA-tutorial

Where is the problem?
[Please paste a link to the page.]
(https://learn.qiskit.org/course/ch-applications/solving-combinatorial-optimization-problems-using-qaoa)
Describe the problem
A clear and concise description of what is wrong and why.
There's a Tex-error on this page:
$x_3 = 0$
(search for '$')
Expected behavior
(Optional) Explain what you expect to see instead.
There are TeX-errors on many pages of the tutorial, I'll start reporting them as I go through the tutorial. This one is simple, but there are other sophisticated TeX-errors.
Screenshots
(Optional) If applicable, add screenshots to help explain your problem.
Additional context / references
If needed, I could directly correct those TeX-errors. However, I don't have the necessary rights.

@uarmbruester Thanks for reporting. It seems this error may be  due to webstack qiskit.org

Additional context / references
If needed, I could directly correct those TeX-errors. However, I don't have the necessary rights.

You don't need any right for it. Just fork the repo & submit a PR for the issue. For more check Contribution guide

This renders fine in GitHub's notebook viewer, so I'm closing the issue as that will soon be the only way of viewing the pages online.


[#61] Update to molecule 3.x

Update to molecule 3.x

It would be nice to rename this role to tomcat_role:
https://galaxy.ansible.com/docs/contributing/creating_role.html#role-names


RHIDP-2279: Document customizing sidebar logo width

Versions:
1.2+
Jira link:

https://issues.redhat.com/browse/RHIDP-2279

Preview link:
https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-260/getting-started-rhdh/#ref-additional-rhdh-customizations_rhdh-getting-started
Reviews:

[ ] SME: @invincibleJai
[ ] QE: TBA
[ ] Peer review: TBA

cc @yashoswalyo @jerolimov

/cherrypick 1.2.x


CloudQuery Source Plugin?

Hi Team, hopefully this is right place to ask, if not, I'd appreciate if you can direct me.
I'm the founder of cloudquery.io, a high performance open source ELT framework.
Our users are interested in a Lago plugin, but as we cannot maintain all the plugins ourselves, I was curious if this would be an interesting collaboration, where we would help implement an initial source plugin, and you will help maintain it.
This will give your users the ability to sync Lago data to any of their datalakes/data-warehouses/databases easily using any of the growing list of CQ destination plugins.
Best,
Yevgeny

Hello @yevgenypats
Thanks for the issue!
Is it possible to generate a source plugin using our OpenApi spec?


Fix SQLite VACUUM INTO bug on macOS

SQLite is raising an error when calling VACUUM INTO on empty files when running on the default GitHub-hosted macOS runner using CPython and PyPy versions 3.9 and 3.10.
SQLite behavior
The SQLite docs are clear that this should work (see VACUUM with an INTO clause):

The file named by the INTO clause must not previously exist, or else it must be an empty file, or the VACUUM INTO command will fail with an error.

And it does work, save for the cases mentioned here.
Tox results on macOS
py37: OK ✔ in 1 minute 12.36 seconds
py38: OK ✔ in 1 minute 12.45 seconds
py39: FAIL ✖ in 1 minute 46.46 seconds
pypy39: FAIL ✖ in 1 minute 46.29 seconds
py310: FAIL ✖ in 1 minute 45.97 seconds
pypy310: FAIL ✖ in 1 minute 45.55 seconds
py311: OK ✔ in 1 minute 12.42 seconds
py312: OK ✔ in 1 minute 13.37 seconds
py313: OK ✔ in 1 minute 11.48 seconds

The tests are all failing with the following error:
======================================================================
ERROR: test_to_file (tests.data_access.test_data_connector.TestDataConnector)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/toron/toron/tests/data_access/test_data_connector.py", line 185, in test_to_file
    connector.to_file(file_path, fsync=True)
  File "/Users/runner/work/toron/toron/.tox/.../site-packages/toron/_data_access/data_connector.py", line 298, in to_file
    cur.execute('VACUUM main INTO ?', (tmp_path,))
  File "/Users/runner/hostedtoolcache/.../_sqlite3.py", line 834, in wrapper
    return func(self, *args, **kwargs)
  File "/Users/runner/hostedtoolcache/.../_sqlite3.py", line 995, in execute
    return self.__execute(False, sql, [params])
  File "/Users/runner/hostedtoolcache/.../_sqlite3.py", line 985, in __execute
    raise self.__connection._get_exception(ret)
_sqlite3.OperationalError: output file already exists

The error sqlite3.OperationalError: output file already exists should only be raised when the file is not empty. And I have verified that the file in question is, in fact, empty (contains 0 bytes) before and after the error is raised.
GitHub-hosted runner software versions
Here are the versions of Python and SQLite that are currently used for testing:

Runner
Tox Environment
Python Version
SQLite Version
Result

macos-latest
py37
3.7.17
3.45.1
OK

macos-latest
py38
3.8.18
3.45.1
OK

macos-latest
py39
3.9.18
3.37.0
FAIL

macos-latest
pypy39
3.9.18
3.37.0
FAIL

macos-latest
py310
3.10.13
3.37.0
FAIL

macos-latest
pypy310
3.10.13
3.37.0
FAIL

macos-latest
py311
3.11.8
3.45.1
OK

macos-latest
py312
3.12.2
3.45.1
OK

macos-latest
py313
3.13.0
3.44.2
OK

ubuntu-latest
py37
3.7.17
3.37.2
OK

ubuntu-latest
py38
3.8.18
3.37.2
OK

ubuntu-latest
py39
3.9.18
3.40.0
OK

ubuntu-latest
pypy39
3.9.18
3.40.0
OK

ubuntu-latest
py310
3.10.13
3.40.0
OK

ubuntu-latest
pypy310
3.10.13
3.40.0
OK

ubuntu-latest
py311
3.11.8
3.37.2
OK

ubuntu-latest
py312
3.12.2
3.37.2
OK

ubuntu-latest
py313
3.13.0
3.37.2
OK

windows-latest
py37
3.7.9
3.31.1
OK

windows-latest
py38
3.8.10
3.35.5
OK

windows-latest
py39
3.9.13
3.37.2
OK

windows-latest
pypy39
3.9.13
3.37.2
OK

windows-latest
py310
3.10.13
3.40.1
OK

windows-latest
pypy310
3.10.13
3.40.1
OK

windows-latest
py311
3.11.8
3.43.1
OK

windows-latest
py312
3.12.2
3.43.1
OK

windows-latest
py313
3.13.0
3.44.2
OK

This is resolved by commits 46d5696 and 561bfcd.


zetacored : Explore using StrErr for logging isntead of StdOut when starting a new app

When starting zetacored we get the context , here
https://github.com/zeta-chain/zeta-node/blob/5c682e95e577886eca56b5a271f6f3b67d1d4584/server/start.go#L114-L115
Which internally calls
func NewDefaultContext() *Context {
	return NewContext(
		viper.New(),
		tmcfg.DefaultConfig(),
		tmlog.NewTMLogger(tmlog.NewSyncWriter(os.Stdout)),
	)
}

Using Stdout causes the CLI commands that output content, such as zetacored export, to print logs into its output. We should explore using os. Stderr instead.

to fix your trouble check this solution click
maybe this will solve your problem.


Get forums up and running.

This is less a Git issue and more a server issue, but we need to figure out why doing anything on http://nphvz.com/forum/ returns a Internal Server 500 error. Once this is fixed, we will need to change the site header so "Forums" links here, and add another link for the Facebook Group.

As our very own readme.md file says, the answers to this could lie somewhere in the Vanilla Forums documentation: http://docs.vanillaforums.com/developers/installation/


CI broken, we need release

Hello @nunomaduro this issue is fixed on https://github.com/pestphp/pest-plugin-type-coverage/commit/147f8b6d5dc180a756aa694d34f606050b823c71, can you please tag it our CI is failing because of this.

Hello every body i have the same problem with
"pestphp/pest": "^2.25", (2.34.9)
"pestphp/pest-plugin-type-coverage": "^2.8", (2.8.4)
"phpstan/phpstan": "1.11.8", (1.11.8)
Did I miss something ?

Also getting this issue @nunomaduro all out ci pipelines are broken, is there a fix

Hello every body i have the same problem with
"pestphp/pest": "^2.25", (2.34.9) "pestphp/pest-plugin-type-coverage": "^2.8", (2.8.4) "phpstan/phpstan": "1.11.8", (1.11.8)
Did I miss something ?

You need to set phpstan/phpstan to maximum v1.11.7
"phpstan/phpstan": "1.11.7"

Seems that the new phpstan release has fixed this issue, so please close @nunomaduro


Add "More from this collection" at the bottom of nft buying page

Is your feature request related to a problem?
Based on some survey report we got from our recent survey, it would be good to raise buying traction by showing more nfts from actual viewed collection. Definitely  it would be way more interesting than the History function, which could go below this feature.
Describe the solution you would like
Let's say i'm viewing a random nft which belongs to some collection. By adding this feature i'll have possibility to maybe look for better nft from the same collection, or have a peak on some price differences.
Talked about this with @XyloDrone and it would definitely be nice addition to the buying process
- Add something in similiar fashion like we have "Latest sales" on landing page.
Simply if there would be no nfts in the collection, this wouldn't even show up.
Describe alternatives you have considered
/
Screeenshots
/

👀

#782

adding to #2622

Maybe we can close?


sequence on a Result behaves inconsistently

When sequencing a Result, Ok behaves differently than Err, namely, that Err requires it's contents to be put inside an array, to be properly concatenated, while Ok does not.
const crocks = require('crocks')
crocks.sequence(Result.of, [Ok(5), Ok(6)]) // Ok [5, 6]
crocks.sequence(Result.of, [Err(5), Err(6)]) // Err 5
crocks.sequence(Result.of, [Err([5]), Err([6])]) // Err [5, 6]

I feel this to be very unintuitive, and might lead to code that has an inconsistent  (more than necessary)  interface for it's return values (either returning an Ok a or an Err [b]), or code that may need to be flattened if one wants to be more "consistent" and return Ok [a].

ohhhh. looks like there may be a bug there!
GREAT find, will def look into it!

Oh I am sorry, I misunderstood.
This is the correct behavior, but I can understand why it is unintuitive at first glance. And it just so happens that there are all kinds of neat things in your provided example that may be adding to the confusion.
It starts with how sequence and traverse work with Sum Types, and more to the point it is how ap is implemented on Sum Types. That is the reason traverse can only work on a Traversable of Applicatives (or Applys in crocks if you pass an Apply returning function to the first argument).
So just to show the siggy of sequence may shed some light on your results, then I will show you how ap gets involved in all this mess. First lets start with Either Number String, with a Type of Number on the Left and String on the Right:
// sequence ::  t -> m (f a) -> f (m a)

// `t` is the TypeRep of our Applicative (so the Either constructor)

// `m` is our `Traversable`, so we will use `Array` making it.
// [ f a ] -> f [ a ]

So it flips the types around, takes an Array of (f a)s and gives us an f of [ a ]
Now here is the first bit that makes it unintuitive. When dealing with Sum Types that a in the signature is referring to the far right instance, so with Either that would be Right.
// Replace `f` with `Either Number String` we get:
// [ Either Number String ] -> Either Number [ String ]

The thing to notice there is we only traverse on Right, the Left stays a Number.
So when we encounter a Left at anytime, we need to keep the Either siggy 🌽sistant, and return a single Left of Number, for example:
// [ Either Number String ] -> Either Number [ String ]
sequence(Either, [ Right('one'), Right('two'), Right('three') ])
//=> Right [ 'one', 'two', 'three' ]

sequence(Either, [ Right('one'), Left(2), Right('three') ])
//=> Left 2

Notice how both results match the signature.
There is also another thing going on because of the behavior of Result. The only difference between Either and Result, is that when the left side Err is a semigroup, it will accumulate Err values over the Semigroup when used as either an Applicative or an Alt. Under the hood, traverse uses ap or the Apply portion of the Applicative.
So if we looks the the signatures for the provided examples we see that it returning the accumulated value of the left side, which also happens to be the Traversable Array.
sequence(Result.of, [Ok(5), Ok(6)])
//=> Ok [ 5, 6 ]
// Result e Number

sequence(Result, [ Err(5), Err(6) ])
//=> Err 5
// Result Number a

sequence(Result, [ Err([ 5 ]), Err([ 6 ]) ])
//=> Err [5, 6]
// Result [ Number ] a

See how the types still line up. It may be easier to see what is going on if we change our Semigroup to say a String or a Sum Monoid:
// Result String [ Number ]
///////////////////////////
sequence(Result, [ Err('*'), Err('--'), Err('*'), Ok(42) ])
//=> Err "*--*"

sequence(Result, [ Ok(23), Ok(94), Ok(42) ])
//=> Ok [ 23, 94, 42 ]

// Result Sum [ String ]
////////////////////////

sequence(Result, [ Ok('Hello'), Ok('Bob') ])
//=> Ok [ "Hello", "Bob" ]

sequence(Result, [ Err(Sum(1)), Ok('Hello'), Err(Sum(1)) ])
//=> Err Sum 2

Notice how the types still line up just like with Either. The only difference is on the Err we accumulate Semigroups.  But like your second case shows, when Err is not a Semigroup it will behave like Either and return the first Err is encounters.
So you may be wondering what the heck you could use that for, so here is a quick example that is less contrived than above and a little closer to Real World Usage, although I am using traverse just know that it does the same thing as sequence, but will lift a value in the Traversable into an instance of the target Applicative. So if you already have an Array of Applicatives you can still use traverse by providing identity as the required function const seqResult = traverse(Result, identity).
const {
  Result, bimap, compose, identity,
  traverse, tryCatch
} = require('crocks')

// tryParse :: a -> Result [ Error ] b
const tryParse = compose(
  bimap(x => [ x ], identity),
  tryCatch(JSON.parse)
)

// parseList :: [ a ] -> Result [ Error ] [ * ]
const parseList =
  traverse(Result, tryParse)

const good = [
  '{"a":true}',
  '[ 6, 7, 8 ]',
  true // silly JS
]

const bad = [
  '{a:false}',
  'true',
  [ 6, 7, 8 ]
]

parseList(good)
//=> 'Ok [ { a: true }, [ 6, 7, 8 ], true ]'

parseList(bad)
//=> 'Err [ SyntaxError, SyntaxError ]

Although more real world would capture what the value was (using fanout and joining it back in on Err using merge and making an object { value: '{a:false}', err: SyntaxError } that is wrapped in an Array. If you want to play around with fanout, merge, Pair and parallel execution with Product  Types this would be a fun exercise  for the reader.
I hope this helps clear up some of the unintuitive feel of Traversables with Sum Type Applicatives.

Wow, thanks @evilsoft for the amazing explanation!

It helps a lot. The importance of Applicative is very clear.
The only thing I am not getting is why does a Monad needs to be also an Applicative to be a Monad.
About the Endofunctor thing. A Monad needs to be an Endofunctor because chain allows the Monad to map over a function of type (a -> mb)  and return mb (instead of m m b), thus being able to map back to itself (the meaning of "endo"), right?

Sorry about that I misspoke, Monad does not need to be Applicative (they are in fact two separate "paths"). BUT if I have chain I can always derive ap is what I should have said.
It has to be an Endofunctor otherwise we could not form the T ∘ T. Because it is a Functor if I left the Category, I would have to get back to the original category with a different Functor (call it F) and it would be T ∘ F ∘ T which cannot be joined.

Closing.


Get Server Date/Time instead of Client

I have situations where the webserver is in one time zone and the client machine is in another. When I click the "Now" button, I would prefer to get the server date/time rather than the client date/time. Is this something that is possible/configurable? I looked at where the datepicker Today function is being overridden, but I only see the time being set there and not the date. I would need to change both.

+1


readonly doesn't work with reactive elements

Version
@vueup/vue-quill version 1.0.1
Describe the bug
readonly is not working properly with v-bind values.
To Reproduce
Steps to reproduce the behavior:

Starting with a Vue data property named isDisabled set to true
data property is bound to the QuillEditor via :readOnly="isDisabled"
Clicking on a button sets isDisabled to false (@click="isDisabled = false")
Not able to edit the text in the Editor

Expected behavior
Editing the text should work with a bound data property as it does with a non reactive value.
Reproduction link
<template>
  <button v-if="isDisabled" @click="isDisabled = false" />

  <QuillEditor
    :toolbar="['bold', 'italic', 'underline']"
    theme="snow"
    v-model:content="content"
    :readOnly="isDisabled"
    contentType="html"
  >
  </QuillEditor>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { QuillEditor } from '@vueup/vue-quill';
import<EMAIL_ADDRESS>
export default defineComponent({
  props: {
    modelValue: { type: String, required: true },
  },
  emits: ['update:modelValue'],
  components: { QuillEditor },
  data() {
    return {
      isDisabled: true,
    };
  },
  computed: {
    content: {
      get() {
        return this.modelValue;
      },
      set(newValue: String) {
        this.$emit('update:modelValue', newValue);
      },
    },
  },
});
</script>

Browser (please complete the following information):

Browser Chrome
Version 109.0.5414.119

Additional context
I also tried to set is as a :options object. Doesn't work either.

How is this stale?  It doesn;t work


Selection dropdown returns wrong value

http://jsfiddle.net/vFPq2/4/
When some item's data value is setted to 0, the selection dropdown just returns the text in lower case.

i'm using  Selection dropdown and returns  all the text in lower case.
any help please ?

Unless you specify a value, from the  or as data-value or will use the lowercase text as the value

Thanks @jlukic , it's working perfectly.

can somebody add this to the documentation

@minafarid Just opened https://github.com/Semantic-Org/Semantic-UI-Docs/issues/145 to document this.


Increase size of AppBar leading property

New Feature for increasing size of app bar leading property.
I'm trying to add my custom text button into AppBar leading property. However when the text gets too long then it end up in multi lines.
Scaffold(
      appBar: AppBar(
        centerTitle: true,
        leading: Text('Go back to'),
      ),
    )

We can make workaround to omit leading and add row into a title property but that makes centering title a nightmare.
Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Row(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: <Widget>[Text('go back to'), Text('My center title')],
        ),
      ),
    )

apparently leading width size is predefined to 56px. Can you make that size adjustable? I would add an image here but apparently that isn't possible here but the request should be obvious enough without images

@shihaohong wouldn't be adding the property to change the width of the leading break the Material specs for the AppBar? In my recent PR to customize AppBar height, I didn't change this
https://github.com/flutter/flutter/blob/401690a64f7780ca55c763ebf2e0b449b1180c2e/packages/flutter/lib/src/material/app_bar.dart#L524
to be the custom height of the toolbar, cause I thought it would break the specs. If it's allowed, I would like to send a PR to add leadingWidth property.

I think our goal with Flutter Material now is to basically adhere to the Material specs by default, but allow developers the option to customize in ways that do not keep with the spec if they so choose. However, I do believe that with adding API surfaces, we should be careful to not introduce confusing parameters.
If we were to allow leadingWidth to be customizable and that causes disturbances to the positions of other widgets in the AppBar in ways that are hard to control, then exposing leadingWidth might not be worth it. On the other hand, if it's easy for developers to play around with the width values and organize everything within the AppBar, then go for it!

I think it makes sense to add leadingWidth and allow users to modify it according to their needs. I'll submit a PR soon.

@shihaohong should I add the leadingWidth for SliverAppBar too?

@AyushBherwani1998 It could be part of a second PR!


Adding the option for users to trigger a reboot at the end of the script

Very small QoL improvement to prompt users at the end of the script if they would like to reboot or not, using shutdown to make it as graceful as possible. It'll accept "yes", "no", "y" or "n" regardless of case.
Snuck in one extra commit to maybe satisfy some people in the reddit comments complaining about sudo, just a single line that will appear prior to the sudo password prompt explaining why we're asking for it.
Tested on 22.04, and 23.04 VM's.

Hey i already implemented prompts and a menu, check it out and tell me what you think :)


Specify PHP version to run tests on

I'd like to be able to specify the PHP version to use for testing, specifically being able to run tests on PHP 7.4 or PHP 8.0

Released with 1.1.0.
slic php-version set 8.0

Supported versions: 7.3, 7.4, 8.0, and 8.1.


Add shuffle_along_axis/batch to BatchedArray

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (731e594) 100.00% compared to head (4af3011) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #541   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           24        24
  Lines         1900      1907    +7
  Branches       263       263
=========================================
+ Hits          1900      1907    +7

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


Fix - adding noFocus option for form-label

Fixes #18210
Hey @oliviertassinari!
The very first attempt to solve the issue. I just added a noFocus option that can be passed as a prop to Form Label Component. But it is still not a default for checkboxes, radios or switches.
Is this the correct way to go about this?
Thanks!

@rbrishabh Could we look for a solution that doesn't involve a new API?

Okay sure. I will look into it!

Thanks

The label was meant to trigger this potential concern :). I thought the comment was not directly related to this pull request as the behavior can be reproduced in codesandbox. What do you recommend here?

I thought #18210 (comment) was not directly related to this pull request as the behavior can be reproduced in codesandbox.

I couldn't find a codesandbox. I guess you mean the demo in a codesandbox.
This issue is fundamental to anything that moves focus on mouseup. This approach is not correct (obvious from the test that needs to be removed).
I don't think we should change something in the SwitchBase. The focus styling on the FormControl is there to, well, signal focus-within. If I mousedown then focus is removed which means the FormControl should no longer display that it has focus-within.
If we actually want to prevent blur on mousedown then the platform has a built-in solution with preventDefault. This might be better idea (which assumes users rarely "interrupt" a label click by moving away from the label after mousedown).
https://codesandbox.io/s/formlabel-preventdefault-6rbwl

Yes, you are exact. I meant that we can open the docs demo in codesandbox and reproduce the issue.

The focus styling on the FormControl is there to, well, signal focus-within.

I think that we should challenge the existence of this signal in the first place. I have been keen, for a long time, to explore if we shouldn't remove it, this is a good opportunity to explore it. I don't think that the form label should signal focus-within because it's not a common pattern. It feels like a distraction.

I have been keen, for a long time, to explore if we shouldn't remove it, this is a good opportunity to explore it.

We can schedule this for v5, sure. It's not a good oppurtinity to explore this now. And then it would require, as you said, exploring this first: Is a :focus-within polyfill needed in core? What do the guidelines say about form groups etc.

I couldn't benchmark a single design system that handle the focus (no matter the modality). For instance:

https://blueprintjs.com/docs/#core/components/radio
https://evergreen.segment.com/components/radio/
https://ant.design/components/form/
https://www.carbondesignsystem.com/components/radio-button/code
https://element.eleme.io/#/en-US/component/form#form
https://react-bootstrap.github.io/components/forms/
https://sancho-ui.com/components/form/#forms
https://atlaskit.atlassian.com/packages/core/radio
https://rsuitejs.com/en/components/radio

We can observe the same on Google products, e.g. Calendar:

or Gmail

I could find a design system that handles the focus state:

https://elastic.github.io/eui/#/utilities/focus-trap
Ok, let's move this to v5

@rbrishabh Thanks for raising

@oliviertassinari @eps1lon  Thanks!


Diagnose unavailable closures without types

In complex situations, a type would not be assigned to an abstract
closure that was the declaration context of the declaration being
checked. This used to cause crashes because you couldn't query a closure
on whether it was an async context if it didn't have a type assigned.
This behaviour has been updated to lazily compute the function decl ext
info if the type hasn't already been assigned. This means that calling
AbstractClosureExpr::isAsyncContext is now safe, even when a type has
not yet been assigned. This was cleaned up by https://github.com/apple/swift/pull/40544.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - e80a83701ed8679a1bc68af83f9462121ea697c4

Linux test failure in   Swift(linux-x86_64) :: Sanitizers/tsan/racy_async_let_fibonacci.swift. It looks unrelated, but investigating.

@swift-ci please test Linux

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - e80a83701ed8679a1bc68af83f9462121ea697c4

@swift-ci please test


Detecting operating system

There is a property that I'd like to give an initial value based on the operating system I'm currently running on: windows, OSX, Linux, etc ... What I'd essentially like to write is the following:
<RoslynRuntimeIdentifier Condition="'$(RoslynRuntimeIdentifier)' == '' AND '$(OS)' == 'Windows_NT'">win7-x64</RoslynRuntimeIdentifier>
<RoslynRuntimeIdentifier Condition="'$(RoslynRuntimeIdentifier)' == '' AND '$(OS)' == 'OSX'"> osx.10.12-x64</RoslynRuntimeIdentifier>
<RoslynRuntimeIdentifier Condition="'$(RoslynRuntimeIdentifier)' == ''>linux-rid</RoslynRuntimeIdentifier>

The $(OS) flag works for windows by producing Windows_NT. I can't find any documentation for this property though and hence can't determine what the values would be for other operating systems. Is this property the write way to approach this and if so what are the values for other operating systems.

If you can commit to 15.3+, you're looking for the property function $([MSBuild]::IsOsPlatform()).
$(OS) is either Windows_NT or Unix, so you have to use trickery to distinguish between macOS and Linux if you go that route.

$(OS) is either Windows_NT or Unix, so you have to use trickery to distinguish between macOS and Linux if you go that route.

What kind of trickery? I'm not afraid of using it but don't know what it is ;)

One hack I've used in the past is this:
Condition=" '$(OS)' == 'Unix' and $([System.IO.File]::Exists('/usr/lib/libc.dylib')) ">...</Condition>

Thank you for posting this "workaround" @akoeplinger

@bgavrilMS I'd recommend using $([MSBuild]::IsOsPlatform()) instead, since it's now been available for many releases and you're unlikely to encounter a 15.0-15.2 MSBuild anywhere.
Docs:

Function signature
Description

bool IsOsPlatform(string platformString)
Specify whether the current OS platform is platformString. platformString must be a member of OSPlatform.

https://stackoverflow.com/questions/43412140/csproj-copy-files-depending-on-operating-system

@rainersigwald
Your solution works for me in macOS with dotnet core 2.1.505
Thanks👍


Need Some Advice

Hy, I like your work here. I just have a small query. I am trying to build a jellyfin myself as a personal project and I want to know how do you send streamable link to flutter_vlc_player with auth header since flutter_vlc_player does not support headers and without header I am getting unauthorised error from the server.

I want to know How are you using flutter_vlc_library in your application to stream links. I am not able to achieve this because JF requires auth header for authentication and flutter_vlc_player does not support auth header. Is there any other way to authenticate in JF that you are using for streaming links?


MINIFI-30 added changes to the config transformer to support multiple…

… processors and exfiling using a processor

starting review

Overall looks like a good start to accomplish what is needed for this effort.  Some additional validation is needed to enforce the required properties such that we can catch them before attempting to begin the flow anew after a transformation.

@apiri just pushed out a new commit refactoring the validation to a separate classes. There are merge conflicts with master in ConfigTransformer that I will address tomorrow.

@apiri rebased and pushed

Thinking a bit more, I don't see a reason to not allow multiple RPGs either. Will make the adjustment

@apiri added support for multiple RPGs and multiple Input Ports within those RPGs

This looks good overall.  I would avoid the sheer ClassCast exception handling and prefer to do instanceof checks instead.  Reads a bit cleaner.
Also, for the majority of cases, we have a pattern that is roughly:
  value getKeyAsType(valueMap, key, target, wrapperName, reason, optional, defaultValue) {
        value = valueMap.get(key);
        if (value == null) {
            if (optional && defaultValue != null) {
                return defaultValue;
            }
        } else {
            targetClass = target.getClass()
            if (targetClass.isInstance(value)) {
                return value;
            } else {
                addValidationIssue(key, wrapperName, reason + targetClass);
            }
        }
        return null;
    }

This with a few overloaded signatures would allow cutting down on a significant number of lines and centralize logic throughout.  I saw a few special cases, which should likely be left to their own, but it looks like we can standardize the bulk of the validation.

@apiri just pushed out a new commit centralizing the logic for getting the various values

Hey @JPercivall, changes look great and overall much cleaner.  Just had the question regarding naming/function of instantiateList, but otherwise looks good to merge in.

@apiri added change to the method name and squashed the commits, if that still looks good I can merge it or you

@JPercivall rock and roll 🎸  with that change.  Although I think something went awry with your imports. Travis had an issue as well, looks like the same locally.

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/apiri/Development/code/apache/nifi-minifi/minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/util/schema/RemoteProcessingGroupSchema.java:[57,12] error: cannot find symbol
[ERROR]   symbol:   method instantiateList(List,String,Class,String)
location: class RemoteProcessingGroupSchema
/Users/apiri/Development/code/apache/nifi-minifi/minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/util/schema/ConfigSchema.java:[71,12] error: cannot find symbol
[ERROR]   symbol:   method instantiateList(List,String,Class,String)
location: class ConfigSchema
/Users/apiri/Development/code/apache/nifi-minifi/minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/util/schema/ConfigSchema.java:[76,12] error: cannot find symbol
[ERROR]   symbol:   method instantiateList(List,String,Class,String)
location: class ConfigSchema
/Users/apiri/Development/code/apache/nifi-minifi/minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/util/schema/ConfigSchema.java:[81,12] error: cannot find symbol

@JPercivall was waiting for Travis to do the build asynchronously but had a moment to pull down and build.  Looks good now.  Super minor, but there is a trailing quote on your commit message.  May want to scrap that before merging.
Thanks for tackling this!


Increase the image rootfs zise.

Per Alexandru's request.
Changelog-entry: Increase image rootfs size, per Alexandru's request
Change-type: patch

Can one of the admins verify this patch?

@perezmeyer thanks for submitting this. Let's drop the Change-type and remove the merge commit so versioning checks can pass. Alternatively, you can add this commit to the existing PR https://github.com/balena-os/balena-beaglebone/pull/613

Merged into https://github.com/balena-os/balena-beaglebone/pull/613 so closing.


Installing socialite and setting the library up for usage

What's this PR do?

Adds the Socialite package at version 2.0.20 so it works with our Laravel setup.
Configures provider / alias. It didn't feel like this was a third party service or a framework service so I started a new comment section in the config, but feel free to suggest a better idea!
Updated the env for the values required for Socialite

How should this be reviewed?
For now just to make sure the app still turns on & nothing breaks!

Decided to just merge with the third-party list!


Annoying warning about broken Objective-C bridge

Umbrella header for module 'Kingfisher' does not include header 'Kingfisher.h'
This only occurs if using code from master branch. Version in CocoaPods doesn't have that warning.

May I know how did you build the framework? What do you mean by using code from master branch? Did you try to install it by specifying the master in CocoaPods or anything else? If so, would please tell me the CocoaPods version you are using?
It could be great help if you could describe it more detail, including a reproducing step would be better.
Thank you. :)

And I found something might be related to it. It seems no solution there although. Just link it here for future refer. https://github.com/CocoaPods/CocoaPods/issues/3200

Warning occurs while using this pod
pod 'Kingfisher', git: 'https://github.com/onevcat/Kingfisher.git'
Everything's okay (gif does not work ;()
pod 'Kingfisher'

I looked at CocoaPods/CocoaPods#3200 it doesn't solved anything. The most interesting fact is that I use 3 different pods from GitHub and the warning only occurs on Kingfisher

Also look at this:
Umbrella for the APNGKit:

Umbrella for the Kingfisher:

Fixed it. CocoaPods wants a Objective-C bridging header even if you don't use Objective-C in your project. Making a pull request...


[Material] Create theme for Dividers to enable customization of thickness

Description
Created a DividerTheme to allow for cusotmization of Dividers. This also allows customization of the thickness of the divider.
The default remains 0.0 for backwards compatibility. However, in order to follow the material spec you can specify a thickness of 1.0 for your app's DividerTheme.
Related Issues
Fixes #31585
Fixes #17355
Fixes #36031
Tests
I added the following tests:

Tests for the new DividerTheme
Tests that check the thickness is being used correctly.

Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

As is, this is a breaking change, since Divider.createBorderSide now requires a context when a width is not passed in. The ListTile.divideTiles method which delegates to this does not require a context and creates a BorderSide without a specified width:
https://github.com/flutter/flutter/blame/2e01eef5aa70b1d6db7f019dbf9af0ebaaadb68f/packages/flutter/lib/src/material/list_tile.dart#L740
This could be fixed by specifying a default width of 0.0 in ListTile.divideTiles, or allowing the theme to be null in the lookup and falling back to 0.0
see https://github.com/flutter/flutter/issues/39533


Fix spatial queries' return type

These definitions should be on WorldRoot instead of Workspace
https://create.roblox.com/docs/reference/engine/classes/WorldRoot

Thanks, good catch. Fix this in ad6c3a3


Update address range and/or options after creation

This PR adds two functions to be able to update the address range or the editor options after it has been created.

Fixes #5

Thanks for your contribution!


v0.5 release notes

Features in This Release
BLAS
LAPACK
RNG
DFT
Sparse BLAS
Documentation update
Known Issues and Limitations

I don't think there are any LAPACK features to include in this list. Thanks!

Hi @toxicscum, for RNG we had bug fixes only - no new features

BLAS:

New portBLAS backend support
Improved support for ROCm backend

@toxicscum Do you have a date or a commit hash for the previous release so we can check which timeframe/commits might have new features to report?

Documentation

Added security.md file which includes guidance on reporting security incidences.
Updated documentation and README with UXL Foundation details.

@toxicscum Do you have a date or a commit hash for the previous release so we can check which timeframe/commits might have new features to report?

The v0.4 tag was created on April 12, and uses the latest commit(028d8bac8cbac674877d6302f2d87cfc87d7ac03) from April 10 on develop. I checked all commits from April 12 to August 05. Filtering by authors was useful.

Documentation

Rewrite build documentation https://github.com/oneapi-src/oneMKL/pull/510

DFT

Improve specification for compute function overloads, and implement in oneMKL interfaces. https://github.com/oneapi-src/oneMKL/pull/503
Add FWD/BWD STRIDES API: https://github.com/oneapi-src/oneMKL/pull/514

New portBLAS backend support

@andrewtbarker @toxicscum Support for portBLAS was already mentioned in the 0.3 release notes. I think it can be removed from 0.5.

@Rbiessy you're right, of course, good catch.


Update license

Type: Incomplete
Summary:
Update license
Details:
Verify license from source
https://github.com/RicoSuter/Namotion.Reflection/issues/10#event-2435518806
Resolution:
set license to MIT
Affected definitions:

Microsoft.Windows.Compatibility 2.1.1

Ping

This component is included on https://github.com/clearlydefined/curated-data/pull/2186.


user profile header alignment

What is the current behavior?

What changes are you suggesting?
The user image and user name in header should be aligned center  according to the header size.
align it to center the header would look great

Additional information

The Dark mode is giving a great look to profile!

Thanks so much for opening an issue @Mehul2410! This repo is only for the docs site, docs.github.com 💛 I can pass this feedback on to the right team, though.


Handeling 403 error exceptions

Checklist

[X] I'm asking a question and not reporting a bug/feature request
[X] I've looked through the README
[X] I've read the guidelines for opening an issue
[X] I've searched the bugtracker for similar questions including closed ones

Question
I seem to get a couple of 403 errors, but they happen after a file has been downloading for a while. If I restart the download it will usually complete successfully.
I am using 'retries': 20, but it does not seem like yt-dlp is actually retrying the download.
ydl_opts = {
	'ignore-config': True,
	'overwrites': False,
	'trim_file_name': 200,
	'verbose': True,
	'retries': 20,
}
with YoutubeDL(ydl_opts) as ydl:
	ydl.download([link])

Is there any option to restart the download if it fails from a 403 error?
Verbose log
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.01.21 [f20d607b0]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.10.0 (CPython 64bit) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-100606-gf797009778 (fdk), ffprobe N-100606-gf797009778, rtmpdump 2.3
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://example.com/video.mp4
[generic] video: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] video: Downloading 1 format(s): mp4
[debug] Invoking downloader on "https://example.com/video.mp4"
[download] Destination: test\video.mp4
[download]  93.6% of 2.31GiB at 528.10KiB/s ETA 04:52[download] Got server HTTP error: Downloaded<PHONE_NUMBER> bytes, expected<PHONE_NUMBER> bytes. Retrying (attempt 1 of 20) ...
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3054, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2769, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\http.py", line 371, in real_download
    establish_connection()
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\http.py", line 119, in establish_connection
    raise err
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\http.py", line 113, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3526, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

retries only retries the actual download process (do not re-extract). There is no point in retrying for a 403

Got server HTTP error: Downloaded<PHONE_NUMBER> bytes, expected<PHONE_NUMBER> bytes.

From your logs, first you got this error and yt-dlp did retry. But then it got a 403 and aborted

@pukkandan if i am using a rotating proxy, how do I get the extractor to retry? any inbuilt options in yt-dlp?


Added boundingSphere to TileBoundingVolume

Fixes #3138
Based off of comments in #3952
Adds boundingSphere getters to TileBoundingVolume and to Cesium3DTile and Cesium3DTileset. Modified 3D Tiles demo accordingly.

Updated

Looks good!

Just those additional comments.  Otherwise, looks great!


Add AllowKeywordBlockArguments option to UnderscorePrefixedVariableName

This adds an AllowKeywordBlockArguments to the Lint/UnderscorePrefixedVariableName cop. When enabled, it permits use of underscore-prefixed keyword arguments in blocks.
It is inspired by the AllowUnusedKeywordArguments option in the Lint/Unused{Block,Method}Argument cops.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

When enabled, it permits use of underscore-prefixed keyword arguments in blocks.

Indeed, but why would someone want this behavior?

@mikegee Thanks for your interest. I'm working with a MongoDB ODM which passes fields as kwargs, and every MondgoDB document has an _id field. (And in MongoDB, more generally, the semantics of leading underscores do not correspond to those of Ruby.)

@dduugg thanks for the justification. This PR seems legit to me. 👍

I'm fine with the change, but the cop documentation should be expand to account for it (rationale, some examples, etc).

@bbatsov done!
I've consolidated under a single @example tag for each config, as i find the resulting docs more readable this way (e.g. https://rubocop.readthedocs.io/en/latest/cops_style/#styleaccessmodifierdeclarations ). Happy to revert if you prefer the former style, however.

Thanks!


How can I use an inscription inside another inscription?

Hi!! is there any documentation about adding inscriptions inside other inscriptions? It is mention it in the doc:

The inscription content model is that of the web. An inscription consists of a content type, also known as a MIME type, and the content itself, which is a byte string. This allows inscription content to be returned from a web server, and for creating HTML inscriptions that use and remix the content of other inscriptions.

For example, I inscribe some PNG images that are resources for a videogame, and then I inscribe an HTML game that uses this inscriptions as resources
But how I can do it? How embed inscriptions inside another inscription? is there any example or documentation?
Regards.

On roadmap: https://github.com/casey/ord/issues/1082

As @octal-crypto points out, this is a future planned feature. Feel free to start a discussion about how you would like to use this future feature. Also feel free to contribute any implementation ideas on #1082


Add an example of GCH for molecular materials

This is a simple but complete example of calculations of the GCH for a dataset of organic crystal polymorphs

ase is not a dependency for the examples. Can you add ase to examples/requirements.txt?

Can you run the notebook so we can see the outputs?

Looks like the doc builder does not honor requirements.txt

Yes, unfortunately you have to also add this to docs/requirements.txt for now. This, issue will be fixed in #170.

Also, is everyone happy with having try - except import clauses to show how one could compute features using rascaline?

I would not against using a rascaline in an howto. What about in an extra howto guide? Personally, I don't like putting these try except blocks in examples. If people want to run the full example they can install these dependencies.

@ceriottm in general this looks great! Do we know if it will render the chemiscopes correctly? The preview is showing javascript errors, but it could also be my browser.

@ceriottm in general this looks great! Do we know if it will render the chemiscopes correctly? The preview is showing javascript errors, but it could also be my browser.

OK, solved I think - hid the cells in nbsphinx, I don't think we can get an embedded chemiscope even though it'd be amazing. In all events, not needed for this PR

Only problem remaining: I noticed that the torch API documentation gets generated locally, but not on readthedocs. @Luthaf can you help? Then I'd merge so we can move to CUDA and start engaging external devs.

OK to merge?

OK to merge?

Two lingering things then should be good


Task :react-native-community_netinfo:generateReleaseRFile FAILED

Environment

System:
OS: Windows 10 10.0.19045
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 19.63 GB / 31.85 GB
Binaries:
Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
Visual Studio: Not Found
Languages:
Java: <IP_ADDRESS>
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Platforms
 Android
Versions

Android: "react-native run-android",
iOS: "react-native run-ios",
react-native-netinfo: "^9.3.6",
react-native: "0.68.2",
react: "17.0.2",

Description

When i build aab, apk file. it show:

Task :react-native-community_netinfo:generateReleaseRFile FAILED

Reproducible Demo

Isn't the presence of react-native 0.71.0 a giveaway something is fundamentally very strange?
If you search for the error message you'll find the answers you need to get your project moving
https://github.com/facebook/react-native/issues/35210


String#ord has a minor bug.

String#ord has a minor bug.
p "\x00".ord

CRuby
0

mruby/c
Exception(vm_id=1): empty string (ArgumentError)

fixed.

How I can run this code?


Move global_menu_* methods to a separate NativeMenu class.

Move global menu related methods to the separate NativeMenu class and change API to use RIDs instead of string identifiers.
Add methods to get native menu size and get/set custom min. width.
Add method to popup native menu at arbitrary location (useful for https://github.com/godotengine/godot/pull/80211).

Implements https://github.com/godotengine/godot-proposals/issues/8685

Since we change the API we should mark it as breaking compat, even if we have compatibility methods. But it's a very much welcome change!

The existing methods in DisplayServer should be marked as deprecated, shouldn't they? I don't see this being done in the current PR.

Thanks!


UnityPlayer crashes when using Japanese paths(User Name) when recording starts on Windows.

About

the UnityPlayer crashes when using Japanese paths(User Name) on Windows.
Similar problems have been reported on the forum and I have the same fix to avoid the Japanese pass, but UnityPlayer crashes when I try to use the recording feature.
a possible cause is that NatCorder.Dll does not support multibyte characters.

How to reproduce the Crush
Create two local users (one is the Japanese name and the other is the English name)
Users with Japanese names will crash when recording starts
Users with English names are normal when recording starts
Crush when the following code is executed
Recorder = new MP4Recorder(256, 144, Framerate, _SampleRate, _ChannelCount, audioBitRate: 96_000);

System Information
CPU : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.20 GHz
RAM : 32GB
OS : Windows 11 Pro(22621.1992)
UnityVersion : 2020.3.48f1
NatCoderVersion : 1.8.8(I tried v1.9.4 and it still crushed.)
Other
.\ai.natml.natcorder@1.8.8\Runtime\RecorderExtensions.cs:57 was rewritten with the following code,  new MP4Recorder(...) worked, but it crushed at the start of recording.
        [RuntimeInitializeOnLoadMethod]
        private static void OnInitialize () {
            var editor = Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.WindowsEditor;

            const string workingDirectoryPath = @"c:\tmp\";
            Directory.CreateDirectory(workingDirectoryPath);
            foreach (var filePath in Directory.GetFiles(workingDirectoryPath)) { File.Delete(filePath);}

            directory = editor ? Directory.GetCurrentDirectory() : workingDirectoryPath; //Application.persistentDataPath;
        }

Hey @narihara-hakase , thanks for reporting this. We will be working on this in VideoKit, so I've moved the issue over.


Insert empty VisualLines

Hello,
we want to use the editor to compare documents side-by-side like it is done in diff tools.
I have to realize empty but editable VisualLines without underlying DocumentLines (ghost lines). The underlying DocumentLines should be generated if the user presses Enter or inserts a character into the ghost lines.

What is the best approach to achieve this?
One way could be to create an intermediate document with empty lines for ghost lines and colorize the background. But the line numbering would be wrong. I really would prefer a solution directly in the view.
Thx

Hi, did you managed to do this?

You could take a look at https://github.com/Dirkster99/Aehnlich/ which uses AvalonEdit to implement a Diff-Control.

Hi, i know it's old and closed but I don't want to open another issue regarding the same concern.
I checked the tool Aehnlich. Their approach is to insert empty lines and disable the in-built line numbering and display their own custom line numbering but this is not the perfect solution.
Is it already possible to realize this behavior in some other way? Or is it expected that this feature will be built in? That'd be great! ;)