ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format

code
import speech_recognition as sr
r = sr.Recognizer()
with sr.AudioFile("test.wav") as source:
    audio = r.record(source)

try:
    s = r.recognize_google(audio)
    print("Text: "+s)
except Exception as e:
    print("Exception: "+str(e))

error
Traceback (most recent call last):
  File "/Users/robiulislam/anaconda3/lib/python3.6/site-packages/speech_recognition/__init__.py", line 203, in __enter__
    self.audio_reader = wave.open(self.filename_or_fileobject, "rb")
  File "/Users/robiulislam/anaconda3/lib/python3.6/wave.py", line 499, in open
    return Wave_read(f)
  File "/Users/robiulislam/anaconda3/lib/python3.6/wave.py", line 163, in __init__
    self.initfp(f)
  File "/Users/robiulislam/anaconda3/lib/python3.6/wave.py", line 143, in initfp
    self._read_fmt_chunk(chunk)
  File "/Users/robiulislam/anaconda3/lib/python3.6/wave.py", line 260, in _read_fmt_chunk
    raise Error('unknown format: %r' % (wFormatTag,))
wave.Error: unknown format: 65534

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/robiulislam/anaconda3/lib/python3.6/site-packages/speech_recognition/__init__.py", line 208, in __enter__
    self.audio_reader = aifc.open(self.filename_or_fileobject, "rb")
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 912, in open
    return Aifc_read(f)
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 351, in __init__
    self.initfp(file_object)
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 316, in initfp
    raise Error('file does not start with FORM id')
aifc.Error: file does not start with FORM id

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/robiulislam/anaconda3/lib/python3.6/site-packages/speech_recognition/__init__.py", line 234, in __enter__
    self.audio_reader = aifc.open(aiff_file, "rb")
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 912, in open
    return Aifc_read(f)
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 357, in __init__
    self.initfp(f)
  File "/Users/robiulislam/anaconda3/lib/python3.6/aifc.py", line 314, in initfp
    chunk = Chunk(file)
  File "/Users/robiulislam/anaconda3/lib/python3.6/chunk.py", line 63, in __init__
    raise EOFError
EOFError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 21, in <module>
    with sr.AudioFile("test.wav") as source:
  File "/Users/robiulislam/anaconda3/lib/python3.6/site-packages/speech_recognition/__init__.py", line 236, in __enter__
    raise ValueError("Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format")
ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format

operating system is Mac & python version 3

I had the same error when trying to open the "english.wav" file that was supplied in the examples. VLC didn't reproduce anything. Then I got a small part of a podcast with very clear english, and it worked. Did you try with other .wav files to see if the problem persists?

I download a clear sound video from YouTube and separated music from it.

I'm getting the same issue. I've tried converting a file type (both an aac and and m4a) file to a wav format and I see this error. My conversion attempt has been through both ffmpeg and via iTunes. Each result is the same.

I’m not sure this is an issue with the code as much as it is the file you are using.  The error states it’s looking for a PCM WAV (or other alternative).  PCM is one of many ways to encode a WAV file.  The files that aren’t working for you must likely need to be encoded differently.
Check out the section titled “Comparison of coding schemes” on this wiki entry for wav files for additional details:
https://en.m.wikipedia.org/wiki/WAV
Here’s a quick excerpt from that section:
“Audio in WAV files can be encoded in a variety of audio coding formats, such as GSM or MP3, to reduce the file size.
This is a reference to compare the monophonic (not stereophonic) audio quality and compression bitrates of audio coding formats available for WAV files including PCM, ADPCM, Microsoft GSM 06.10, CELP, SBC, Truespeech and MPEG Layer-3.”

I'm having the same issue with an aiff file and a pcm/wav version I transcoded as a test.

Hi, for info- for me the problem was that file had single channel (mono), changing audio to stereo fixed issue for me.

I'm getting the same issue. I've tried converting a file type (both an aac and and m4a) file to a wav format and I see this error. My conversion attempt has been through both ffmpeg and via iTunes. Each result is the same.
Also on Mac & python3

Hi! Can you convert the m4a file to wav file using the python codes. I tried to find a package that can convert the m4a file to a wav format . Without using the outer program such as iTunes or some Online Audio Converting Website

I'm having this issue on a python 3.6 alpine container., anyone figured it out?

 It was an MP3 file, just used pydub to convert.

As @BrendanCarlin  said, this seemed to be a problem with the files that are being used. Maybe they are somehow corrupted. Even if this is not the case, the stack trace shows that the error comes from the wave.py library so it is not really an issue with the speech_recognition's code. Closing the issue for now but feel free to post solution/suggestion/question if you can't get it to work.

I'm facing this issue, Which fix worked finally? Can someone help?

Did someone fixed it?

I fixed it
You got the same problem if youre using python 3.7 and above
if you use python 3.6 you can run the code

My python3.8.1 got the same problem

I fixed it
You got the same problem if youre using python 3.7 and above
if you use python 3.6 you can run the code

hello, please can you explain how to solve, I am using Python 3.6.... What r the steps taken by you to fix it???

Here's my solution:
def convert_audio(path: str = None,
                  convert: str = 'wav',
                  stream: BufferedReader = None) -> dict:
    '''
        Convert MP3, OGG, FLV, WMA, ACC and MP4 audio / video files to WAV
        audio file, by default, or any file type supported by FFmpeg

        :param str path: Path to a MP3, OGG, FLV, WMA, ACC or MP4 audio /
         video file

        :param str convert: Type to convert the input file to

        :param BufferedReader stream: Stream file

        :rtype: Dict

        :raises FileNotFoundError: Audio was not found
    '''
    error_message = None

    try:
        _audio = AudioSegment.from_file_using_temporary_files(stream) \
            if stream else AudioSegment.from_file(path)
    except FileNotFoundError as error:
        error_message = 'Audio file was not found (convert audio)'

        logging.exception(error_message)

        return dict(error=error_message)
    except Exception as error:
        error_message = 'Unexpected error when open audio file (convert audio)'

        logging.exception(error_message)

        return dict(error=error_message)

    audio_converted = _audio.export(format=convert)

    audio_converted.seek(0)

    return dict(
        audio=_audio,
        audio_converted=audio_converted,
        error=error_message
    )

def audio(path: str = None,
          stream: BufferedReader = None) -> dict:
    '''
        Extract text from MP3, OGG, FLV, WMA, ACC, MP4 and WAV audio /
        video files, through Sphinx API

        :param str path: Path to an audio / video file

        :param BufferedReader stream: Stream file

        :rtype: Dict

        :raises FileNotFoundError: Audio was not found
    '''
    # If an error is issued at the Pocket Sphinx installation, remove the
    # `apt remove swig`, install the `apt install swig3.0` and create
    # a symbolic link `ln -s /usr/bin/swig3.0 /usr/bin/swig` to the new
    # version
    recognizer = speech_recognition.Recognizer()

    error_message = None

    try:
        _ = convert_audio(
            stream=stream) if stream else convert_audio(path=path)

        if _.get('error'):
            error_message = _.get('error')

            logging.exception(error_message)

            return dict(error=error_message)

        _audio = _.get('audio_converted')

        with speech_recognition.AudioFile(_audio) as file:
            _audio = recognizer.record(file)
    except FileNotFoundError as error:
        error_message = 'Audio file was not found (audio)'

        logging.exception(error_message)

        return dict(error=error_message)
    except Exception as error:
        error_message = 'Unexpected error when open audio file (audio)'

        logging.exception(error_message)

        return dict(error=error_message)

    text_sphinx = recognizer.recognize_sphinx(_audio)

    return dict(
        text=text_sphinx,
        error=error_message
    )

Here's my solution:
def convert_audio(path: str = None,
                  convert: str = 'wav',
                  stream: BufferedReader = None) -> dict:
    '''
        Convert MP3, OGG, FLV, WMA, ACC and MP4 audio / video files to WAV
        audio file, by default, or any file type supported by FFmpeg

        :param str path: Path to a MP3, OGG, FLV, WMA, ACC or MP4 audio /
         video file

        :param str convert: Type to convert the input file to

        :param BufferedReader stream: Stream file

        :rtype: Dict

        :raises FileNotFoundError: Audio was not found
    '''
    error_message = None

    try:
        _audio = AudioSegment.from_file_using_temporary_files(stream) \
            if stream else AudioSegment.from_file(path)
    except FileNotFoundError as error:
        error_message = 'Audio file was not found (convert audio)'

        logging.exception(error_message)

        return dict(error=error_message)
    except Exception as error:
        error_message = 'Unexpected error when open audio file (convert audio)'

        logging.exception(error_message)

        return dict(error=error_message)

    audio_converted = _audio.export(format=convert)

    audio_converted.seek(0)

    return dict(
        audio=_audio,
        audio_converted=audio_converted,
        error=error_message
    )

def audio(path: str = None,
          stream: BufferedReader = None) -> dict:
    '''
        Extract text from MP3, OGG, FLV, WMA, ACC, MP4 and WAV audio /
        video files, through Sphinx API

        :param str path: Path to an audio / video file

        :param BufferedReader stream: Stream file

        :rtype: Dict

        :raises FileNotFoundError: Audio was not found
    '''
    # If an error is issued at the Pocket Sphinx installation, remove the
    # `apt remove swig`, install the `apt install swig3.0` and create
    # a symbolic link `ln -s /usr/bin/swig3.0 /usr/bin/swig` to the new
    # version
    recognizer = speech_recognition.Recognizer()

    error_message = None

    try:
        _ = convert_audio(
            stream=stream) if stream else convert_audio(path=path)

        if _.get('error'):
            error_message = _.get('error')

            logging.exception(error_message)

            return dict(error=error_message)

        _audio = _.get('audio_converted')

        with speech_recognition.AudioFile(_audio) as file:
            _audio = recognizer.record(file)
    except FileNotFoundError as error:
        error_message = 'Audio file was not found (audio)'

        logging.exception(error_message)

        return dict(error=error_message)
    except Exception as error:
        error_message = 'Unexpected error when open audio file (audio)'

        logging.exception(error_message)

        return dict(error=error_message)

    text_sphinx = recognizer.recognize_sphinx(_audio)

    return dict(
        text=text_sphinx,
        error=error_message
    )

when i run your code , i find some mistake about "stream: BufferedReader = None" .NameError: name 'BufferedReader' is not defined. so i want to ask what is "BufferedReader",i can not find some useful imformation on network,can you tell me why?
thanks.

from io import BufferedReader

from io import BufferedReader

thank your reply.
but i can not run this code.
`# -- coding: utf-8 --
"""
Spyder Editor
This is a temporary script file.
"""
from io import BufferedReader
import speech_recognition
import logging
from pydub import AudioSegment
def convert_audio(path: str = None,
convert: str = 'wav',
stream: BufferedReader = None) -> dict:
'''
Convert MP3, OGG, FLV, WMA, ACC and MP4 audio / video files to WAV
audio file, by default, or any file type supported by FFmpeg
    :param str path: Path to a MP3, OGG, FLV, WMA, ACC or MP4 audio /
     video file

    :param str convert: Type to convert the input file to

    :param BufferedReader stream: Stream file

    :rtype: Dict

    :raises FileNotFoundError: Audio was not found
'''
error_message = None

try:
    _audio = AudioSegment.from_file_using_temporary_files(stream) \
        if stream else AudioSegment.from_file(path)
except FileNotFoundError as error:
    error_message = 'Audio file was not found (convert audio)'

    logging.exception(error_message)

    return dict(error=error_message)
except Exception as error:
    error_message = 'Unexpected error when open audio file (convert audio)'

    logging.exception(error_message)

    return dict(error=error_message)

audio_converted = _audio.export(format=convert)

audio_converted.seek(0)

return dict(
    audio=_audio,
    audio_converted=audio_converted,
    error=error_message
)

def audio(path: str = None,
stream: BufferedReader = None) -> dict:
'''
Extract text from MP3, OGG, FLV, WMA, ACC, MP4 and WAV audio /
video files, through Sphinx API
    :param str path: Path to an audio / video file

    :param BufferedReader stream: Stream file

    :rtype: Dict

    :raises FileNotFoundError: Audio was not found
'''
# If an error is issued at the Pocket Sphinx installation, remove the
# `apt remove swig`, install the `apt install swig3.0` and create
# a symbolic link `ln -s /usr/bin/swig3.0 /usr/bin/swig` to the new
# version
recognizer = speech_recognition.Recognizer()

error_message = None

try:
    _ = convert_audio(
        stream=stream) if stream else convert_audio(path=path)

    if _.get('error'):
        error_message = _.get('error')

        logging.exception(error_message)

        return dict(error=error_message)

    _audio = _.get('audio_converted')

    with speech_recognition.AudioFile(_audio) as file:
        _audio = recognizer.record(file)
except FileNotFoundError as error:
    error_message = 'Audio file was not found (audio)'

    logging.exception(error_message)

    return dict(error=error_message)
except Exception as error:
    error_message = 'Unexpected error when open audio file (audio)'

    logging.exception(error_message)

    return dict(error=error_message)

text_sphinx = recognizer.recognize_sphinx(_audio)

return dict(
    text=text_sphinx,
    error=error_message
)

dct=audio("2-1.wav")
#print(dct['text'])`
this is my code, when i run this code ,i get following error
ERROR:root:Audio file was not found (convert audio) Traceback (most recent call last):   File "C:/Users/ydc/.spyder-py3/temp.py", line 33, in convert_audio     if stream else AudioSegment.from_file(path)   File "H:\anaconda\lib\site-packages\pydub\audio_segment.py", line 622, in from_file     file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)   File "H:\anaconda\lib\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile     fd = open(fd, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: '2-1.wav' ERROR:root:Audio file was not found (convert audio) NoneType: None
I'm sure this file（2-1.wav） is in the same directory as the Python file.
Can you share your complete code? Or give me some suggestions to solve this error.

These manipulations helped me to restore the .wav file and the script work!
import soundfile
data, samplerate = soundfile.read('old.wav')
soundfile.write('new.wav', data, samplerate, subtype='PCM_16')

example

import sounddevice as sd
from scipy.io.wavfile import write
import numpy as np

freq = 44100
duration=10
print("speak")
recording = sd.rec(int(duration * freq), samplerate=freq, channels=2)
sd.wait()
# before saving make all integers in array 32 bit
y = (np.iinfo(np.int32).max * (recording/np.abs(recording).max())).astype(np.int32)
write("recording0.wav", freq, y)

print("successfully recorded")

that worked for me

import sounddevice as sd
from scipy.io.wavfile import write
import numpy as np

freq = 44100
duration=10
print("speak")
recording = sd.rec(int(duration * freq), samplerate=freq, channels=2)
sd.wait()
# before saving make all integers in array 32 bit
y = (np.iinfo(np.int32).max * (recording/np.abs(recording).max())).astype(np.int32)
write("recording0.wav", freq, y)

print("successfully recorded")

Where do I put the old audio file if the output of the above code can solve the problem?


CoolProp with matlab for supercritical properties

Does anyone have experiences using coolprop or refprop to call supercritical properties in matlab? I need to do simulations using supercritical CO2 but it always gives me an error when I call the properties using supercritical temperature or pressure.

Is this the correct repository? You might want to go to https://github.com/CoolProp/CoolProp/issues


Direct Export to Slicers

Currently, there's no direct way to export models from the library to popular slicers like PrusaSlicer or BambuLab Slicer. This requires downloading the model and then manually importing it into the slicer software, which can be a cumbersome extra step.
I would like to see the addition of a functionality that allows users to directly export models from the 3D library to compatible slicers like PrusaSlicer and BambuLab Slicer. Ideally, this could be achieved through integration with their respective APIs or by offering dedicated export buttons that launch the desired slicer with the model pre-loaded.
The current alternative is to download the model and then import it manually into the slicer software. This is not a major issue but adds an unnecessary step to the workflow.
This feature would streamline the workflow for users who want to quickly move from browsing models to slicing them for printing. Direct export to popular slicers would improve user experience and make Manyfold a more attractive platform for 3D printing enthusiasts.

Yes, definitely. I'd love to work out how to do this. I suspect in general it's pretty hard unless the slicers register a special URL handler or something - otherwise it's up to the OS what happens to downloaded files by default. I did wonder if it would need to be a plugin for the slicers to be able to pull models from Manyfold, rather than the other way around. But all that aside, yes, I'd love to get that process smoother.

Not sure for bambu (makerworld.com has links that open straight in bambustudio) but at least prusaslicer asked me to associate the files so that calls could be made to the slicer on my machine. So it's client dependant I reckon. See printables screenshot below :

Interesting, I hadn't seen the "built-in downloader" thing. I'll take a closer look at what PrusaSlicer and Printables does - maybe there's a custom URL handler. But yeah, in general, it's up to the client browser and OS to decide what to do with a download.

Just noticed that orcaslicer has code in it that has pointed me the required URL structure:
orcaslicer://open?file= then the encoded URL to download.
bambustudio, prusaslicer, and cura are done the same way: https://github.com/SoftFever/OrcaSlicer/blob/ca35ba41070aa180bb19a0ba9c4bf74639b50845/src/libslic3r/Utils.hpp#L220
I wonder if the same is true for Lychee, Chitubox, etc etc

I love this Idea, i know it would just need a dir to export the files to and for the likes of OctoPrint it has a setting to auto scan a folder


Added laravel 5 compatible service provider

Created a new service provider to add support for Laravel 5.

Maybe some unit tests can be nice to have as well :)

Would be lovely if this could get merged or looked at. thanks

This service provider isn't even needed. The original one does just fine. See https://github.com/thephpleague/color-extractor/pull/30.

:+1:

Ping @MatTheCat regarding replacing this PR with #30.


[fix-11378] fix API-Server release response message typo

Purpose of the pull request
fix response message error
Brief change log
fix response message error
Verify this pull request
This pull request is already covered by existing tests
this close #11378

Codecov Report

Merging #11400 (c90011b) into dev (b81574e) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

:exclamation: Current head c90011b differs from pull request most recent head 3d7646f. Consider uploading reports for the commit 3d7646f to get more accurate results

@@             Coverage Diff              @@
##                dev   #11400      +/-   ##
============================================
- Coverage     39.93%   39.91%   -0.02%
+ Complexity     4601     4595       -6
============================================
  Files           967      967
  Lines         36643    36624      -19
  Branches       4090     4082       -8
============================================
- Hits          14633    14619      -14
+ Misses        20500    20494       -6
- Partials       1510     1511       +1

Impacted Files
Coverage Δ

...he/dolphinscheduler/common/enums/ReleaseState.java
0.00% <ø> (ø)

.../org/apache/dolphinscheduler/api/enums/Status.java
100.00% <100.00%> (ø)

...lphinscheduler/rpc/common/AbstractRpcCallBack.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...erver/master/processor/queue/TaskEventService.java
69.64% <0.00%> (-10.72%)
:arrow_down:

...e/dolphinscheduler/remote/NettyRemotingClient.java
50.00% <0.00%> (-2.78%)
:arrow_down:

...rver/master/runner/task/BlockingTaskProcessor.java
75.29% <0.00%> (-0.57%)
:arrow_down:

...eduler/api/service/impl/DataSourceServiceImpl.java
28.47% <0.00%> (ø)

...cheduler/server/master/utils/DependentExecute.java
0.00% <0.00%> (ø)

.../dolphinscheduler/plugin/task/datax/DataxTask.java
0.00% <0.00%> (ø)

...phinscheduler/plugin/task/chunjun/ChunJunTask.java
0.00% <0.00%> (ø)

... and 9 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@ruanwenjun I have some different opinions，In my project group.

if there is a spelling error in the comment, or the documentation is wrong, these errors for internal personnel belong to improvement
Anything shown to end users that is not what they want is a bug
That's why I tag the bug ,just my personal understanding

@ruanwenjun I have some different opinions，In my project group.

if there is a spelling error in the comment, or the documentation is wrong, these errors for internal personnel belong to improvement
Anything shown to end users that is not what they want is a bug
That's why I tag the bug ,just my personal understanding

If the error is writting online as offline, then it should be a bug...., I don't think on line should be a bug...
And I don't agree Anything shown to end users that is not what they want is a bug.


refactor: make code ident less and return fast

Signed-off-by: Allen Sun<EMAIL_ADDRESS>1.Describe what this PR did
make code ident less and return fast.
I think less ident will make code more readable and return fast could make codes structure much better.
2.Does this pull request fix one issue?
NONE
3.Describe how you did it
NONE
4.Describe how to verify it
NONE
5.Special notes for reviews
NONE

LGTM


remove duplicate NODE_NAME env

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/lgtm
/approve


Not able to open SolrNet project in Visual Studio 2012

We have try to open the latest “SolrNet” project in Visual Studio 2012 (4.5 framework) version, but in the entire solution all projects are not loaded. Please give us the solution to open and run the “SolrNet” project in the VS2012.

Please update to a newer version of Visual Studio or use an older version of SolrNet.


!IE conditional comments bug

Ref: https://github.com/zendframework/zf1/blob/master/library/Zend/View/Helper/HeadScript.php#L458
This works correctly in the case of downlevel-hidden conditional comments, but for downlevel-revealed conditional comments (which are needed for !IE), the rendered HTML is wrong.
Current rendered output:
<!--[if !IE]> <script>
...
</script><![endif]-->

Correctly rendered output:
<![if !IE]> <script>
...
</script><![endif]-->

If the '--' characters are not removed, every browser treats this as a comment.
More info: https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
/cc @tomasfejfar @mhujer

<![if !IE]> <![endif]-->
This is invalid code. Better:
<!--[if expression]><!-->
  HTML
<!--<![endif]-->

http://css-tricks.com/downlevel-hidden-downlevel-revealed/

I'm glad that you pointed that out :) Valid code is much, much, better.
So, we need to add <!--> after the expression, then we keep the code clean.
I updated a quick JSFiddle to demonstrate http://jsfiddle.net/jackplug/opsftwLf/2/ your suggestion (anyone want to test this in IE8, you should use the fullscreen url https://jsfiddle.net/jackplug/opsftwLf/2/embedded/result/)

@froschdesign :thumbsup:

:+1:


Update cloudflared image to 2024.3.0

Seeing the request from the logs
2024-04-10T01:43:55Z INF Starting tunnel tunnelID=<>
2024-04-10T01:43:55Z INF Version 2023.10.0
2024-04-10T01:43:55Z INF GOOS: linux, GOVersion: go1.20.6, GoArch: arm64
2024-04-10T01:43:55Z INF Settings: map[no-autoupdate:true token:*****]
2024-04-10T01:43:55Z INF Environmental variables map[CF_MANAGED_TUNNEL_TOKEN:*****]
2024-04-10T01:43:55Z INF Generated Connector ID: <>
2024-04-10T01:43:56Z INF Initial protocol quic
2024-04-10T01:43:56Z INF ICMP proxy will use <> as source for IPv4
2024-04-10T01:43:56Z INF ICMP proxy will use <> in zone eth0 as source for IPv6
2024-04-10T01:43:56Z INF Starting metrics server on <IP_ADDRESS>:41959/metrics
2024/04/10 01:43:56 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2024-04-10T01:43:56Z WRN Your version 2023.10.0 is outdated. We recommend upgrading it to 2024.3.0

Fixed in #14.


[Feature request]: optimization of the occupied space

Describe the change you'd like
there is a lot unused space at the borders. images eplains better
From this

To this

Additional context
No response


Move more alias to compiler pass

Subject

I am targeting this branch, because {reason}.

Closes #{put_issue_number_here}
Changelog

### Added
- Added some `Class::newMethod` to do great stuff

### Changed

### Deprecated

### Removed

### Fixed

### Security

@wbloszyk shouldn't this be done also to remove completely alias from corebundle xml?
Do we need to move all aliases to compiler pass? why can't we deprecate using those aliases?

You move service (class) to compilerpass. We shouldnt change it to alias becouse we lose override methods like getName.
I move alias to compilerpass becouse you can not set alias to other bundle in bundle config.
Aliases should be set only for form and twig directory.


n hotkey still works when lightbox is open

Make sure you have multiple topics unread.
Click on an image to open lightbox.
Press n and look at the link you are on. It will change as you press n.

Hotkeys q, w, and / all work when the lightbox is open.


Run "bash scripts/image_from_prebuilt.sh ZCU104

I follow the instructions but get a image file name"ZCU104-2.6.0.img". I am wondering that if it should be "ZCU102" in the command: "bash scripts/image_from_prebuilt.sh ZCU104 xilinx-zcu102-v2020.1-final.bsp aarch64 bionic.aarch<IP_ADDRESS>_2020_10_19.img" and I think the wrong file name will not be a problem.
Looking forward to your reply.

Hi, Sure,
That was a mistake, it's ZCU102, not ZCU104, it has been corrected now.
On Thursday, July 14, 2022 at 06:05:12 PM GMT+2, Zheng Tao @.***> wrote:
I follow the instructions but get a image file name"ZCU104-2.6.0.img". I am wondering that if it should be "ZCU102" in the command: "bash scripts/image_from_prebuilt.sh ZCU104 xilinx-zcu102-v2020.1-final.bsp aarch64 bionic.aarch<IP_ADDRESS>_2020_10_19.img"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


[backport] Simplify scalar handling in basic_math

Backport of #5439

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit 53f8912c45115ff6d0c83329e2417959f65bfacd, target branch v5) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

I and @toslunar discussed and concluded that it's better not to backport this.


the name

"hmmr" is too hidden markov model-ey, ultimately this should be folded into quadmesh anyway so that probably has to change as well
hmapmesher

meshr!

DANG
https://bioconductor.org/packages/release/bioc/html/meshr.html

mushr

meshroom


Added date validation check

resolve #265

I don't think my change request was introduced by this PR... But probably good to fix anyway.


optimize: remove the useless file

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
remove:the duplicate header
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

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

Comparison is base (81fc703) 49.00% compared to head (b2dcbad) 48.94%.

Additional details and impacted files

@@             Coverage Diff              @@
##                2.x    #6192      +/-   ##
============================================
- Coverage     49.00%   48.94%   -0.07%
+ Complexity     4783     4773      -10
============================================
  Files           915      915
  Lines         31890    31890
  Branches       3853     3853
============================================
- Hits          15627    15607      -20
- Misses        14700    14718      +18
- Partials       1563     1565       +2

see 4 files with indirect coverage changes

It looks like this file has been entirely commented out. I suggest we just delete it.

ok,i will delete it

我不理解为何要单独提pr删除该无用文件，而不是提交一份将相关测试用例完善的pr来去除这个无效文件？ I don't understand why I need to mention PR to delete this useless file separately, instead of submitting a PR that perfects the relevant test cases to remove this invalid file?

This pr has nothing to do with test cases ，it is intended to completely clean up the outdated license headers in the project, which is the point.


Bug: useMachine actor and InterpreterFrom don't match with typegen

Description
The following code generates a typescript error when it shouldn't. (Typescript playground link has full TS example).
  const Component = ({ actor }: { actor: InterpreterFrom<typeof machine>}) => null;

  const App = () => {
    const [state, send, service] = useMachine(() => machine.withConfig({ actions: {
      update: () => {}
    } }))
    return <Component actor={service} />
  }

Expected result
No errors shown
Actual result
Following typescript error was given;
Type 'Interpreter<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<...>; }>>' is not assignable to type 'Interpreter<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<...>; }>'.
  The types of 'machine.getStateNodes' are incompatible between these types.
    Type '(state: StateValue | State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<...>; indexedEvents: MergeWithInternalEvents<...>; }>>) => StateNode<...>[]' is not assignable to type '(state: StateValue | State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, Typegen0 & { indexedActions: IndexByType<...>; indexedEvents: MergeWithInternalEvents<...>; }>) => StateNode<...>[]'.
      Types of parameters 'state' and 'state' are incompatible.
        Type 'StateValue | State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, Typegen0 & { indexedActions: IndexByType<...>; indexedEvents: MergeWithInternalEvents<...>; }>' is not assignable to type 'StateValue | State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<...>; indexedEvents: MergeWithInternalEvents<...>; }>>'.
          Type 'State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<...>; }>' is not assignable to type 'StateValue | State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<...>; indexedEvents: MergeWithInternalEvents<...>; }>>'.
            Type 'State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<...>; }>' is not assignable to type 'State<{ expiry?: number | undefined; }, { type: "UPDATE"; }, any, { value: any; context: { expiry?: number | undefined; }; }, MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<...>; }>>'.
              Types of property 'machine' are incompatible.
                Type 'StateMachine<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, BaseActionObject, any, Typegen0 & { ...; }> | undefined' is not assignable to type 'StateMachine<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, BaseActionObject, any, MarkAllImplementationsAsProvided<Typegen0 & { ...; }>> | undefined'.
                  Type 'StateMachine<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, BaseActionObject, any, Typegen0 & { ...; }>' is not assignable to type 'StateMachine<{ expiry?: number | undefined; }, any, { type: "UPDATE"; }, { value: any; context: { expiry?: number | undefined; }; }, BaseActionObject, any, MarkAllImplementationsAsProvided<Typegen0 & { ...; }>>'.
                    Types of property '__TResolvedTypesMeta' are incompatible.
                      Type 'Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<IndexByType<{ type: "UPDATE"; }>, { 'xstate.init': { ...; }; }>; }' is not assignable to type 'MarkAllImplementationsAsProvided<Typegen0 & { indexedActions: IndexByType<BaseActionObject>; indexedEvents: MergeWithInternalEvents<IndexByType<{ type: "UPDATE"; }>, { 'xstate.init': { ...; }; }>; }>'.

Reproduction
TypescriptPlayground
Additional context
No response

Instead of using withConfig together with useMachine you can utilize the second argument of the useMachine hook, like here:
TS playground
However, this works somewhat accidentally - or because I didn't predict this combination of things.
It's because your machine initially is "incomple" as it doesn't yet have access to all the required implementations and you create InterpreterFrom based on such an incomplete machine, so the embedded typegen data in that type is the one that still expects some implementations to be provded.
When you are using withConfig you are actually returning the "complete" machine with everything provided and then when you try to assign a "complete" service to an "incomplete" one it isn't accepted as thos are incompatible.
The funny thing is that useMachine might return... "incomplete" service because it's creating its type based on the input machine using InterpretFrom and not based on the "complete" machine that is always implicitly~ created by useMachine (as useMachine makes sure that you provide all the implementations before you can use it).
I'll prepare a PR in a moment that should help with this a little bit and gonna ping you there.

The PR is up: https://github.com/statelyai/xstate/pull/3139


Excel Window can't be dropped into a FancyZone zone.

Excel and FancyZones not working.zip

Environment
Windows build number:[Version 10.0.18363.836]
PowerToys version: v0.18.2
PowerToy module for which you are reporting the bug (if applicable):FancyZones

Steps to reproduce
Grab Excel window, press shift key
Expected behavior
Zones do not appear thus the Excel window cannot be dropped into a zone
Actual behavior
No zones appear and the Excel window can't be placed in any zone. See attached video
Screenshots

You are using groupy, which creates a custom window which is not compatible with fancyzones. Disable groupy and it should work.

yup, https://github.com/microsoft/PowerToys/issues/1104#issuecomment-575279324 is reason why.  how groupy does their window stuff.


question: Edit is page button not working

Checklist:

[x] I've searched for similar issues and couldn't find anything matching
[x] I've included steps to reproduce the bug.
[ ] I've included the version of Kubernetes and k8sgpt.

Subject of the issue

On the docs/Overview page  Edit this page is giving a 404 error. Not pointing to the edit page on github.
I have circled with red color button.
Your environment

Additional context / screenshots

Thanks for the issue, can you please raise in the Docs repo? cc @AnaisUrlichs


Any plans for adding RecyclerView?

Hi! I am wondering  are there any plans to add RecyclerView to Fabulous?

Hi @vshapenko, do you mean the Android RecyclerView? If so, probably not anytime soon. Mainly due to Fabulous using Xamarin.Forms under the hood - and this would require that Fabulous would start wrapping Xamarin Android directly. Or did I misunderstand your question?

RecyclerView in Android is available as CollectionView in Xamarin Forms starting in 4.0. Fabulous includes this control since 0.36.0.

@Happypig375 Thank you very much

@vshapenko
A hint on this: CollectionView could be broken right now!
with the next release it will work without problems. There was a bug in 4.0 which is fixed in 4.1 so when we get the PR done, you can use it without problems.

With the release of Fabulous 0.41 CollectionView is usable now!


Hifi and ONT behave differently in 3D-DNA(same species)

We assembled the genome if the same species using Hifi and ONT data, respectively, and both using Hic data to assist assembly.
We find that there was some big rearrangement between the two genomes. For example, about 20M of the sequence in one chromosome is in a different location.

How do we choose? Which result is correct

Blue represents the genome of the HIFI data assembly and green represents the ONT data.

Use Juicebox assembly tools. You can find useful instructions on how to interpret contact maps in the Genome assembly cookbook hosted on dnazoo.org/methods. Best, -OlgaOn Jul 22, 2023, at 3:37 AM, anxuan-web @.***> wrote:
Blue represents the genome of the HIFI data assembly and green represents the ONT data.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


Error you have requested a non-existent service "fos_rest.serializer.jms"

Dear good morning
I have the following error
you have requested a non-existent service "fos_rest.serializer.jms" ??

Could you provide your PHP version?
Your composer version?
Your composer install detailed (-vvv) output?
Thanks


Add plugin configuration for MongooseIM

Hi @anryko I'm adding support for MongooseIM metrics.
MongooseIM metrics can be grabbed by CollectD thanks to this configuration snippet:
LoadPlugin curl_json
<Plugin "curl_json">
          <URL "http://<MONGOOSEIM_IP>:5280/api/metrics/all">
              Instance "mongooseim"
              <Key "metrics/sessionCount">
                  Type "absolute"
              </Key>
              <Key "metrics/*/count">
                  Type "absolute"
              </Key>
              <Key "metrics/*/one">
                  Type "absolute"
              </Key>
          </URL>
</Plugin>

The dashboard I added already works, but I would suggest a little change in your code. Check my comments 😉 .
Thank you for this great tool!

Thanks @oli-g
Could you add a collectd config example file too? To work around the issue with plugin name I would suggest to use collectd precache chain modifications and rename metric before passing it to influxdb. I encountered the same case with kafka plugin.
I will experiment with your suggestion for configurable series and see what I can do in the next couple of days.

Oh I missed that PreCacheChain stuff on Collectd! Thank you, it seems to be what I was looking for, so maybe the change I suggested is not that needed anymore!
I will update this PR soon with your suggestion.

Nice! Could you please update README and I'll merge it.

thank you.


Pillow 10.0.0 removed the ANTIALIAS alias

Simple fix to allow running with Pillow 10.0.0

Duplicates an already accepted one https://github.com/e1ven/Robohash/pull/53


Fix handling of nested collections for atomic strategies

Related to new functionality in #1096.

Executing the modified test, ODM inserts the following on the first flush:
{
    "000000001f8298960000000023533066": {
        "_id": {
            "$id": "555cea55e84df15b498b4569"
        },
        "name": "Maciej",
        "phonebooks": {
            "private": {
                "title": "Private",
                "phonenumbers": [
                    {
                        "phonenumber": "12345678"
                    }
                ]
            }
        }
    }
}

The second flush (after modification) results in the following update:
{
    "$set": {
        "phonebooks": {
            "private": {
                "title": "Private"
            },
            "public": {
                "title": "Public",
                "phonenumbers": [
                    {
                        "phonenumber": "10203040"
                    }
                ]
            }
        }
    }
}

@jmikola added test for deeply embedded embeds, nothing leaks to CollectionPersister after your embedOne changes :+1:

@malarzm: New test case LGTM!


release on pypi

Now released on PyPI: https://pypi.org/project/ndx-events/
Also referenced on the NDX Catalog: https://github.com/nwb-extensions/ndx-events-record


[EAK-345] Create an annotation for Granite Advanced Select

As a toolkit user
I want to have an ability to add Advanced Select component to my dialogs
https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/advancedselect/index.html

After the initial investigation from @gmusabaev  and a team discussion, it turned out that Advanced Select is just a wrapper for other components that can be used for selecting an option from the list. Implementing an annotation for Advanced Select does not seem to be reasonable.


Fix imap_reopen folder argument

imap_reopen as imap_open requires folder argument to start with the bracket, ie address

Hi @latypoff ,
thanks for this pull request!
Best regards,


Package Resolution Failed

When I try to add package of Instantiate via SPM, I get the following error:

because Instantiate >=2.1.0 contains incompatible tools version and root depends on Instantiate 4.0.0..<5.0.0, version solving failed.

environment: Xcode 12.2
So is there a workaround?
Thank you.

I found package resolve error on Package.swift, and fixed them in new release 4.0.1. Could you please try it again? 🙏

It works fine with 4.0.1!
Thank you for your cooperation.


Custom Report should include Judicial Experience sitting days details

What's included?
Add 'feePaidOrSalariedSittingDaysDetails' and 'declaredAppointmentInQuasiJudicialBody' to the custom report.
Closes #2067
Who should test?
✅ Product owner
✅ Developers
✅ UTG
How to test?
Ensure you can add/access these fields on the custom report.
Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work

PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

I can see both those fields in the custom reports dropdown on admin dev.


Can't run prometheus tests

What did you do?
go test cmd/prometheus/main_test.go
What did you expect to see?
run prometheus tests
What did you see instead? Under which circumstances?
promql/parser/ast.go:22:2: found packages storage (buffer.go) and main (hello.go) in /home/cas12/prometheus/storage
FAIL    command-line-arguments [setup failed]
What is the best way to run tests in vs code?
System information
Linux 6.8.0-45-generic x86_64
Prometheus version
prometheus, version 2.43.0 (branch: HEAD, revision: edfc3bcd025dd6fe296c167a14a216cab1e552ee)
  build user:       root@8a0ee342e522
  build date:       20230321-12:56:07
  go version:       go1.19.7
  platform:         linux/amd64
  tags:             netgo,builtinassets

Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response

You have to run go test ./cmd/prometheus.
BTW, this is not a bug in Prometheus, nor is it a feature request. GH is not a very good way to get help here.
To get support, I recommend to use the various community channels. This particular question doesn't even seem to be Prometheus specific. It's more about running tests in Go in general or how to run Go tests in VS Code in particular. Go and VS Code surely have community channels on their own.


DOC: Example of agent with redis memory is not working properly

Checklist

[X] I added a very descriptive title to this issue.
[X] I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:
https://python.langchain.com/docs/modules/memory/agent_with_memory_in_db/

As you can see here, Agent cannot extract the memory context correctly because it is not able to recognize which country's national anthem is being asked about, whereas you can clearly see in the Chat message history that Canada is the country in question. Is this a bug, and it actually works but is wrong in the docs? Or is there a new way to do this and docs haven't been updated?
Idea or request for content:
Agent with Memory in redis

Let me see.


Version 2.0 release

Details

merge v2 refactor with develop
rename library name to angular-drag-scroll
update README.md

Relates to #66

It would be great to have #70 and #71 as part of this as well - FYI

@joejordanbrown we need your input for this PR. 😃

@bfwg
Sorry for the late reply, been really busy lately.
I've had a look into that problem and the only thing I've found that may help to resolve this is https://coryrylan.com/blog/angular-tips-dynamic-module-imports-with-the-angular-cli
Not sure if this will work but I thought using that method and checking if it's running in a server environment if so then load that module like that. It would need testing, atm I haven't got enough time to test that. If you could see if that is feasible and I'll try and help with getting it integrated on the weekend.

@joejordanbrown No worries, I think maybe we are better off with splitting the changes in the PR into two PRs.

Upgrade the carousel library to use the new code that is written by @joejordanbrown . (i.e. drag-scroll-item).

Support SSR

By breaking them into two, we have the ability to upgrade the library to 2.0 without needing to resolve the ssr issue. @joejordanbrown @akkumar what do you guys think?

I am all for incremental changes @bfwg @joejordanbrown .
So - smaller nimbler changes are always better. Easy to review the PR that way

Closing the PR due to it is outdated to the current version.


Fix NSData compile error on linux

This fixes the following error when trying to build on ubuntu linux

error: cannot convert value of type 'NSData' to type 'Data' in  coercion
let data = dispatchData as Any as! NSData as Data

Great! Thanks!


Remove byebug history

Byebug history seems to be mistakenly committed. In general, this file is not versioned.
Delete file and add it to gitignore.

This is good to merge. Travis failure related to #694


update mailer config url's

update mailer configs for the different prod & staging envs.  e.g. here

@edpaget your redirect should take care of this. Do you think we should update these links anyway for text based emails?

Not really we'll probably still want to change them when we actually do that cut over anyway.

@edpaget did you mean to close this?


Remove compression option on doc values [LUCENE-9843]

Options on file formats add complexity and put a big tax on backward-compatibility testing. I'm the one who introduced it #10418 but I would now like to think about what we can do to remove this option.
For the record, compression was initially introduced because some binary fields have so much redundancy that it's wasteful not to compress them at all. But unfortunately, this slowed down some search workloads and we decided to introduce this option as a way to let users choose the trade-off they want.

Migrated from LUCENE-9843 by Adrien Grand (@jpountz), resolved May 06 2021
Attachments: LUCENE-9843.patch (versions: 4), mods.patch

I am running Lucene on our system which worked great with Lucene 3x for years and years.  When we tried to upgrade we can no longer keep up with searches.  Lucene is always getting stuck in the compression layers.  I can either make an additional manual RAM cache for documents or disable compression.  Why did this fix not a disable compression setting?  I don't think this request should have been closed as I've still regularly got 1000 threads in my app stuck decompressing documents and I supposedly am already using the default fast compression.  Please reconsider just adding a disable compression selection to make us happy.  Thanks!


Memory runaway with raster-only sources.

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

create a scene with a single raster source and show it in a layer
browse the map for a while

RESULT:

tangram demo uses excessive amounts of memory

EXPECTED RESULT:

tangram demo should only use a limited/bounded amount of memory

ENVIRONMENT:

seen on OSX with master (roughly at 0.8.0).

OTHER:
Hello everyone,
I experience unbounded memory usage/growth when using only raster tile sources. Issuing Map::onMemoryWarning() calls does not reduce memory usage.
To trigger this, you need a simple scene with just a single raster source (no geometry) and browse the map for a while. What happens is, that tangram-core will continue to allocate more and more memory, I’ve seen something like 1.6GB (where I stopped to browse the map and started investigating).
I think I found the reason for it: Tangram::TileCache. If I understand correctly, the TileCache is supposed to only use a limited amount of RAM and keeps track of RAM usage by adding up the result of all Tile::getMemoryUsage(). Now Tile::getMemoryUsage() only returns the amount of memory required for geometry - which is negligible for raster-only tiles. Accordingly basically all tiles (std::shared_ptr<Tangram::Tile>) are kept alive which also keeps alive the textures in the rasters via Tile::m_rasters. Now the textures themselves are only handles/references to GL textures - tangram does clean the pixel data after is has been copied over into GL (see Texture::update(…) ). So the Tangram::Texture object itself does not take up much memory, but it keeps the GL texture handle alive and GL has to store it somewhere where somewhere is either graphics card memory or main memory.

Hi @cleeus - thanks for investigating this issue. Yes,Tile::getMemoryUsage() was missing to count  texture memory usage. https://github.com/tangrams/tangram-es/pull/1632

Addressed by #1632.

Thanks for fixing this :)


Is there something I missed? Failed to run slam.

I was trying to run python run_slam_pipeline.py example_demo_session after i download example data. And an error occurred:

(umi) zhaozy@rykj-002:~/ZoeyChiu/universal_manipulation_interface$ python run_slam_pipeline.py example_demo_session

############## 00_process_videos #############
Traceback (most recent call last):
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/scripts_slam_pipeline/00_process_videos.py", line 122, in
main()
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/scripts_slam_pipeline/00_process_videos.py", line 31, in main
input_dir.mkdir()
File "/data/zhaozy/conda/envs/umi/lib/python3.9/pathlib.py", line 1323, in mkdir
self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/zhaozy/ZoeyChiu/example_demo_session/raw_videos'
Traceback (most recent call last):
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/run_slam_pipeline.py", line 120, in
main()
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/run_slam_pipeline.py", line 41, in main
assert result.returncode == 0
AssertionError
What should I do?

(umi) zhaozy@rykj-002:~/ZoeyChiu/universal_manipulation_interface/example_demo_session$ ls
GX010213.MP4  GX010214.MP4  GX010215.MP4  GX010232.MP4  GX010234.MP4  GX010236.MP4  GX010238.MP4

After I take the example_demo_sessions folder to the parent folder ( at the same level directory as the umi folder).The error is:
(umi) zhaozy@rykj-002:~/ZoeyChiu/universal_manipulation_interface$ python run_slam_pipeline.py example_demo_session
############## 00_process_videos #############
Traceback (most recent call last):
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/scripts_slam_pipeline/00_process_videos.py", line 122, in
main()
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/scripts_slam_pipeline/00_process_videos.py", line 47, in main
shutil.move(max_path, mapping_vid_path)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/shutil.py", line 825, in move
os.rename(src, real_dst)
TypeError: rename: src should be string, bytes or os.PathLike, not NoneType
Traceback (most recent call last):
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/run_slam_pipeline.py", line 120, in
main()
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/zhaozy/conda/envs/umi/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/zhaozy/ZoeyChiu/universal_manipulation_interface/run_slam_pipeline.py", line 41, in main
assert result.returncode == 0
AssertionError

I have solved it.
You need to put all the mp4 into example_demo_session/raw_videos and make sure example_demo_session folder is  at the same level directory as the umi folder.
This is not mentioned in the readme.md.You should update it.
btw, docker is needed. In 02, code will pull a docker image

however,in  python scripts_slam_pipeline/07_generate_replay_buffer.py -o example_demo_session/dataset.zarr.zip example_demo_session
example_demo_session is in the umi folder
.........

I have solved it. You need to put all the mp4 into example_demo_session/raw_videos and make sure example_demo_session folder is at the same level directory as the umi folder. This is not mentioned in the readme.md.You should update it.
btw, docker is needed. In 02, code will pull a docker image

I put all videos in the folder example_demon_session/raw_videos as you suggested, but it didn't work. Can you explain more how to solve it ?

I have solved it. You need to put all the mp4 into example_demo_session/raw_videos and make sure example_demo_session folder is at the same level directory as the umi folder. This is not mentioned in the readme.md.You should update it.
btw, docker is needed. In 02, code will pull a docker image

I put all videos in the folder example_demon_session/raw_videos as you suggested, but it didn't work. Can you explain more how to solve it ?

That's all I have done😂.
Command ls should look like this:

example...
-- raw_videos...
---.mp4
-universal....

maybe you can use debug mode to run the code and,use breakpoint to check whether the path is right.

I have solved it. You need to put all the mp4 into example_demo_session/raw_videos and make sure example_demo_session folder is at the same level directory as the umi folder. This is not mentioned in the readme.md.You should update it.
btw, docker is needed. In 02, code will pull a docker image

I put all videos in the folder example_demon_session/raw_videos as you suggested, but it didn't work. Can you explain more how to solve it ?

That's all I have done😂. Command ls should look like this:

example...
-- raw_videos...
---.mp4
-universal....

maybe you can use debug mode to run the code and,use breakpoint to check whether the path is right.

I’ve resolved the issue. I had mistakenly set the wrong path for the example_demo_session folder. Thank you for your suggestion.


Add logically bound images

This change adds logically bound images for use with bootc. This is implementing based on: https://containers.github.io/bootc/logically-bound-images.html
Jira: https://issues.redhat.com/browse/OSPRH-11609

Can this be moved to edpm-image-builder/bootc?

Can this be moved to edpm-image-builder/bootc?

It can indeed.

Replaced by:
https://github.com/openstack-k8s-operators/edpm-image-builder/pull/39


PORTALS-2660, EC-120: only show the Actions Required if the user is already logged in

And add the virtually free implementation of a beta banner that we get on the portals.  We can spend more time if needed (perhaps we need a special "aboveHomePageHeader" area for this kind of alert?)


Unable to find installation file

I can't find any installation file in this repository.
Please help

You need to install Python 3 first and follow the guide in README then.

Thanks a lot


specify log file

Logs are written to extension-less files, matching the --loglevel cli parameter.
(eg. you get a file named warn in the project root).
How can I specify the logfile's location?

Logs will always be written to the console. Can you show how you are running the stub server?


Get FullConfig error [Error : 0 : Timeout expired]

Hi! I'm writing a custom client in C, and using JSON to interact with the api.
I'm following the Getting started page, now at the User Authorization section.
After setting tdlib parameters correctly and sending a checkDatabaseEncryptionKey request with an empty encryption key, I need to send a setAuthenticationPhoneNumber request.
I do so, with correctly written phone_number and allow_fast_calls set to false, but after sending that request it creates query auth_sendCode and later there are some errors:
[!Recoverer][&config_recoverer]	Get FullConfig error [Error : 0 : Timeout expired]
[!Recoverer][&config_recoverer]	Failed to connect for 20.322479

and few lines below:
[!ConfigSession][&net_query]	Got error [Query:[id:262144][tl:0xc4f9186b][state:Query]] [Error : 202 : ]
[!ConfigSession][&net_query]	Resend[Query:[id:262144][tl:0xc4f9186b][state:Error][Error : 202 : ]]
[!ConfigSession][&net_query]	Got error [Query:[id:262144][tl:0xc4f9186b][state:Query]] [Error : 0 : DispatchTtlError]
[!ConfigSession][&net_query]	[Query:[id:262144][tl:0xc4f9186b][state:Error][Error : 0 : DispatchTtlError]] [state:sent to callback]

Full log is here: https://del.dog/tdlib-log.txt

It looks like there are problems witt Internet access.

It looks like there are problems witt Internet access.

I can ping Google correctly, what may be causing the issue?
Also, if you check at the log it correctly gets a file from dns.google

But it can't connect to Telegram servers. Probably, a firewall is blocking non-HTTP requests, or Telegram is blocked in your country.

Telegram isn't blocked here (Argentina), and there is no firewall in the network. Telegram X works just fine (if useful in any way).
Also, tried to ping the IPs that appear in the log and it pings right, tried doing telnet but it hangs.
Maybe I need to set up something (like the IPs that appear at my.telegram.org/apps)? What are those IPs and keys for?

No. You need to do nothing. Something blocks TCP connections to the specified IPs and you can't check this with ICMP ping. You need tcptraceroute/mtr for that.

No. You need to do nothing. Something blocks TCP connections to the specified IPs and you can't check this with ICMP ping. You need tcptraceroute/mtr for that.

Maybe it's the fact that I'm running this on an embedded system with only certain programs running? I'm only running wpa_supplicant (for wifi connection) and Busybox's udhcpc for getting an ip.

Those are ordinary TCP connections, so this shouldn't be related.

Confirmed, this is a device issue (tested on another platform and worked correctly)...


How to restart services in containers?

I'm not sure if my installation is broken from having a previous installation of OVOS on my dev laptop, but I'm not seeing a clear way to restart a service when using the containers setup. docker compose usually requires a compose file available, and if I kill a container via docker kill it doesn't come back up unless  I re-run the installer.
Hoping there's a doc page I've missed or just  a broken setup I can adjust. :)

Feel free to re-open.


The language of all upb generated code rules should be "c".

@nicolasnoble

@benjaminp Thanks for the PR but do you have a specific issue with having C++ language type for upb targets? I know C would be the right one but I want to know what's difference there.

The language affects whether -std=c99 is passed or not, which may be needed to make older compilers understand all the features the upb .c files use.

@benjaminp Do you have a concrete case (e.g. compiler version with some warnings or errors because of not having -std=c99) as a future reference?

For instance, GCC 4.x uses c89 as its default standards version.

Since we started using proper upb targets instead of generating them in advance, this isn't relevant any more.


chaos(engine): fix metastore selector in k8s

What problem does this PR solve?

Issue Number: ref #5640
What is changed and how it works?

We share the same app label between framework mysql pod and business etcd pod, which leads to an unexpected service router from metastore service

metastore svc --> mysql
            | --> etcd

Just separate them

metastore-framework svc --> mysql
metastore-business svc --> etcd

Check List
Tests

Integration test
verified in https://github.com/pingcap/tiflow/runs/7442423420?check_suite_focus=true

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

Codecov Report

Merging #6392 (e8d5d80) into master (82defd1) will increase coverage by 6.1001%.
The diff coverage is 63.1632%.

Flag
Coverage Δ

cdc
65.9970% <63.2443%> (-0.1718%)
:arrow_down:

dm
?

engine
63.4070% <50.0000%> (-0.1214%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #6392        +/-   ##
================================================
+ Coverage   59.2948%   65.3950%   +6.1001%
================================================
  Files           751        514       -237
  Lines         86284      47080     -39204
================================================
- Hits          51162      30788     -20374
+ Misses        30598      13849     -16749
+ Partials       4524       2443      -2081

/merge

/run-verify


[4.1][FIX] FetchOperation error with multiple search attributes - add fetch single

When we start building our query $model->where() or $model->orWhere() we no longer have a Model instance, we have a Builder, so our function getColumnType() to no longer works as it belongs to the model, and not to the builder.
Also added the complete array of text columns, please @tabacitu when merging #2632 discard the changes in FetchOperation.php, the changes in this PR must prevail.
This also adds support to fetching a single entry.
This fixes #2704
I will also send the PR to the docs to fix the documentation part.

Looks perfect now. Good job @pxpm !


Fix surface bit with RFX codec after color conversion fix

Fixes issue #3543

@realjiangms Isn't this what I've done with #3545?

@akallabeth Yes :). Let's keep it as reference and close it once #3545 is merged

All my changes have been included in #3545
Will close after it is merged

@realjiangms thanks.
Superseded by #3545


add CORS for ACA

Repoman Generation Results
Repoman pushed changes to remotes for the following projects:
Project: todo-csharp-cosmos-sql
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-csharp-cosmos-sql -b pr/1898

View Changes | Compare Changes

Project: todo-csharp-sql-swa-func
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-csharp-sql-swa-func -b pr/1898

View Changes | Compare Changes

Project: todo-csharp-sql
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-csharp-sql -b pr/1898

View Changes | Compare Changes

Project: todo-java-mongo-aca
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-java-mongo-aca -b pr/1898

View Changes | Compare Changes

Project: todo-java-mongo
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-java-mongo -b pr/1898

View Changes | Compare Changes

Project: todo-nodejs-mongo-aca
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-nodejs-mongo-aca -b pr/1898

View Changes | Compare Changes

Project: todo-nodejs-mongo-aks
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-nodejs-mongo-aks -b pr/1898

View Changes | Compare Changes

Project: todo-nodejs-mongo-swa-func
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-nodejs-mongo-swa-func -b pr/1898

View Changes | Compare Changes

Project: todo-nodejs-mongo
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-nodejs-mongo -b pr/1898

View Changes | Compare Changes

Project: todo-nodejs-mongo-terraform
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-nodejs-mongo-terraform -b pr/1898

View Changes | Compare Changes

Project: todo-python-mongo-aca
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-python-mongo-aca -b pr/1898

View Changes | Compare Changes

Project: todo-python-mongo-swa-func
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-python-mongo-swa-func -b pr/1898

View Changes | Compare Changes

Project: todo-python-mongo
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-python-mongo -b pr/1898

View Changes | Compare Changes

Project: todo-python-mongo-terraform
Remote: azure-samples-staging
Branch: pr/1898
You can initialize this project with:
azd init -t Azure-Samples/todo-python-mongo-terraform -b pr/1898

View Changes | Compare Changes


Add CI/CD to space-cloud and all of its client libraries

Right now, all of these tasks are manual:

Testing SC and their client libraries
Building and uploading archives of space-cloud binaries
Building docker image of space-cloud and pushing it to docker hub
Building Mission Control and uploading its archive

We should add CI/CD so that all of these tasks can be triggered and executed automatically whenever code is merged into master.

Space Cloud now has a working CI pipeline based on github actions


Create Hub Explore Route and View (Connected)

Overview
Create the connected view for the Explore route. This is accessed via the Explore tab in the navigation.

User Stories

As a connected user, I should be able to see a list of all of the DAOs I'm in with relevant information.

Details

This is the main view for the Explore
Populates the DAO Table information based on the user's DAOs

We'll need to figure out what this actually is.

We'll revisit this one after we handle Filtering/Searching/Sorting and we'll likely need to work with Pagination for this

Added to: https://github.com/HausDAO/daohaus-monorepo-deprecated/issues/985


Update of GNU makefile and support for MacOS

Overview
This pull request contains the update of GNU makefiles to follow up the recent modification. In addition, from this version, it became possible to build on MacOS (tested on Homebrew GCC 8.1.0).
How to build by GNU Makefile
Enter to the makefile directory:
$ cd SALMON/gnu_makefiles

and execute make command with the platform specified makefile:
$ make -f Makefile.PLATFORM

If the build is successfully finished, the binary is generated on SALMON/bin/ directory.
Supported Platform

fujitsu
gnu
gnu-without-mpi
intel
intel-avx
intel-avx2
intel-knc
intel-knl
intel-without-mpi

I'm trying with this gnumake on FX10, but the build fails. I may change the order of files later.

I finished my tasks. But I don't have any environment for MacOS. Can somebody else check this PR?

It seems that somebody else cannot immediately check whether build passes on Mac environment, so I merge this PR.


className support

Thank you for taking over the project 👏
I tried to move my project to rc-scrollbars, but it seems I cannot set className to <Scrollbars />, would it be possible to add it?

Hi, @martpie
I think you can try to add your components with classNames by special props. But don't forget to forward the props object from the handler to your component.
So example below:

class CustomScrollbars extends Component {
  render() {
    return (
      <Scrollbars
        renderTrackHorizontal={props => <div {...props} className="track-horizontal"/>}
        renderTrackVertical={props => <div {...props} className="track-vertical"/>}
        renderThumbHorizontal={props => <div {...props} className="thumb-horizontal"/>}
        renderThumbVertical={props => <div {...props} className="thumb-vertical"/>}
        renderView={props => <div {...props} className="view"/>}>
        {this.props.children}
      </Scrollbars>
    );
  }
}

I think there is an issue here:
https://github.com/sakhnyuk/rc-scrollbars/blob/19fe0faf970e2cf30982febf0c7614451ae23859/src/Scrollbars/index.tsx#L692
shouldn't it forwards props's className as well?

Actually, I wonder if it should not forward {...rest} from <Scrollbars>, attaching an onScroll on <Scrollbar> does not work either

@martpie do you want to apply the className to the Container (outer) or View (inner) element?
Because in the initial question you mention outer and now you refer to the inner...

I think there is an issue here:
https://github.com/sakhnyuk/rc-scrollbars/blob/19fe0faf970e2cf30982febf0c7614451ae23859/src/Scrollbars/index.tsx#L692
shouldn't it forwards props's className as well?

That's right. I will check how props passing from renderView. ClassNames should be merged I think

Maybe I should provide more context 😄
So here's my component:
import React, { useCallback } from 'react';
import Scrollbars from 'react-custom-scrollbars';

import styles from './CustomScrollbar.module.css';

interface Props {
  className: string;
  onScroll: React.UIEventHandler<any>;
}

const CustomScrollbar: React.FC<Props> = (props) => {
  const getRenderView = useCallback((props: any) => {
    console.log(props);
    return <div {...props} className={styles.renderView} />;
  }, []);

  const getTrackVertical = useCallback((props: any) => {
    return <div {...props} className={styles.verticalTrack} />;
  }, []);

  const getThumbVertical = useCallback((props: any) => {
    return <div {...props} className={styles.verticalThumb} />;
  }, []);

  return (
    <Scrollbars
      className={props.className}
      onScroll={props.onScroll}
      renderView={getRenderView}
      renderTrackVertical={getTrackVertical}
      renderThumbVertical={getThumbVertical}
      autoHide
      autoHideTimeout={1000}
    >
      {props.children}
    </Scrollbars>
  );
};

export default CustomScrollbar;

Nothing to fancy there, this was using react-custom-scrollbars. This is what the DOM looks like:

tracks-list-body__xxx is my component props.className.
Now after switcing to rc_scrollbars, the DOM looks like the following:

So indeed, the outer wrapper looks good, and the inner seems to not accept className.
Thank you for taking the time for looking into it, I really appreciate 🙌

Actually, I wonder if it should not forward everything ({...rest}?) from <Scrollbars>, attaching an onScroll on <Scrollbar> does not work either

ScrollBars has its own list of props. It is using right from component and you can check that.
Events tracking by native API (addEventListener and removeEvent...) and onScroll prop calling there.
Custom view and tracks are only about style.

@martpie alright!
Thank you for your example. 👍
I can fix that today.

@martpie Thanks for the example (they always work best :) ) .
Speaking of className - do you not get a TS error when you provide this prop to the Scrollbars component??

@Tomassito actually yes, I think I used a @ts-ignore here and it's still working. (It was valid in react-custom-scrollbars at least)

@martpie
I deployed v1.0.3 with deleted className prop.

I can confirm it works fine, thanks! 🙌


[BUG] RKE Template: 'Edit as Yaml' with agent_env_vars breaks the Template

Rancher Server Setup

Rancher version: 2.6.9
Installation option (Docker install/Helm Chart): Helm Chart

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1, Kubernetes v1.21.8

Proxy/Cert Details: No Proxy, Private PKI with self managed Certificate

Information about the Cluster

Kubernetes version:
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): vSphere Provider

User Information

What is the role of the user logged in? Admin

Describe the bug
I've a RKE Template with some agent environment variables configured:
That's the current template in yaml view. This template is working without problems.
agent_env_vars:
  - name: HTTP_PROXY
    value: 'http://webproxy.demo.lab:8888'
  - name: HTTPS_PROXY
    value: 'http://webproxy.demo.lab:8888'
  - name: NO_PROXY
    value: <IP_ADDRESS>/8,<IP_ADDRESS>/8,<IP_ADDRESS>/12,<IP_ADDRESS>/16,localhost

answers: {}
docker_root_dir: /var/lib/docker
enable_cluster_alerting: false
...

Today i had to add some options to the ingress controller that can only made via yaml. I clone the template and use the 'Edit as YAML' Option. No I've the following yaml:
agent_env_vars:
  - name: HTTP_PROXY
    value: 'http://webproxy.demo.lab:8888'
    value_from: {}
  - name: HTTPS_PROXY
    value: 'http://webproxy.demo.lab:8888'
    value_from: {}
  - name: NO_PROXY
    value: <IP_ADDRESS>/8,<IP_ADDRESS>/8,<IP_ADDRESS>/12,<IP_ADDRESS>/16,localhost
    value_from: {}

answers: {}
docker_root_dir: /var/lib/docker
enable_cluster_alerting: false
...

To Reproduce
Add some agent environment variables to an RKE template or a cluster configuration and press 'Edit as Yaml'
Result
This yaml format for the Agent_env_vars is incompatible with the format that Kubernetes needs for the cluster-cattle-agent. When I try to apply a template with the agent_env_vars above I get a large error text:
DaemonSet.apps "cattle-node-agent" is invalid: [spec.template.spec.containers[0].env[9].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`, spec.template.spec.containers[0].env[10].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`, spec.template.spec.containers[0].env[11].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`, spec.template.spec.containers[0].env[12].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`, spec.template.spec.containers[0].env[13].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`, spec.template.spec.containers[0].env[14].valueFrom: Invalid value: "": must specify one of: `fieldRef`, `resourceFieldRef`, `configMapKeyRef` or `secretKeyRef`]

Expected Result
The RKE Template will correctly applied to the cluster
Additional context/ Workaround
When you manually remove the value_from Attributes from the YAML Config before saving the template you get a working RKE Template.

This is reproducible on v2.7.0:

create an rke template with agent_env_vars added to the yaml
clone the rke template

observe that value_from: {} is added to each env var.

The workaround of removing the incorrectly added field(s) was also validated.
However, with such an easy workaround and a low-frequency use case, this might not be prioritized highly.


TypeError being thrown

TypeError: Cannot match against 'undefined' or 'null'.
    at getFileContents (/usr/src/app/src/utils.js:101:65)
    at storage.forEach (/usr/src/app/src/server.js:63:21)
    at Object.<anonymous> (/usr/src/app/node_modules/node-persist/src/local-storage.js:178:13)
    at Array.forEach (native)
    at Object.LocalStorage.forEach (/usr/src/app/node_modules/node-persist/src/local-storage.js:177:28)
    at Object.nodePersist.forEach (/usr/src/app/node_modules/node-persist/src/node-persist.js:73:29)
    at app.route.get.post (/usr/src/app/src/server.js:57:21)
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/src/app/node_modules/express/lib/router/route.js:131:13)
    at /usr/src/app/node_modules/body-parser/lib/read.js:129:5
(the bot is being hosted on beepboop)

Where are you seeing this error and what did you do to get it?

When I type /code  in a Slack channel the bot is added to, that is what the bot says back.

I was able to fix an issue but it may I know the URL you're using instead of <beanstalk file url> so I can add some more tests to the code?

The bug fix should be up and running. Can you please check if it solves it?

All I get now is "We had an issue getting the snippet from Beanstalk. Please make sure that you entered the correct username and authorization token." instead of the error output.
Just to confirm a few things.
In the Beep Boop config screen, it asks for Beanstalk username and "Auth Token" - but I'm using API Access tokens, that I'm creating in my account; is that not correct? Does the app not verify these credentials before first trying to use them? (i.e. on save?)
The other part that is somewhat strange is that Beanstalk usernames are specific to account subdomains(?); does the token mean there is need to account for this?

Yes, "Auth token" is the API token. We recommend creating a special "bot" user in your account and give that user read-only access. Then generate an API token for this user and use it in the BeepBoop screen.

We don't validate the credentials at the moment. That's a good point and we will probably will add it. I'll add a separate issue for it.

Yes, you'll need a user/token for each of your accounts. I'm not sure you can add several bots to your Slack team. At the moment our Bot supports only one Beanstalk per bot and if this is a case, we might want to extend it as well.

The bot expects an URL you'll see when browsing files (/browse). Something like this: https://<account>.beanstalkapp.com/<repository>]/browse/git/<filename>

We don't use Subversion anymore but it should work as well since the bot is using the API that's VCS independent AFAIK.

Ok - figured it out: I don't get the credentials error when I try and reference a file in a Git repository - only Subversion repositories. Beanstalk still offer both (I prefer Git, but still have to work with Subversion ones sometimes).
If it needs special attention to work with Subversion (and it's not something you want to look into, because you don't use Subversion repositories any more), it might be worth highlighting it's Git repositories only in the README.md file / help docs (saves other Subversion users the time figuring that out / pestering you with duplicate issues).
You might be able to detect if it's not a Git repo and give a Subversion unsupported warning? My Git repo file URLs seem to start with this:
https://<subdomain>.beanstalkapp.com/<repo_name>/browse/git/
(my project doesn't have a 'git' directory at root level! - so I presume this is something generic on Beanstalk's side)
…whereas, my Subversion URLs start like like this:
https://<subdomain>.beanstalkapp.com/<repo_name>/browse/trunk https://<subdomain>.beanstalkapp.com/<repo_name>/browse/tags https://<subdomain>.beanstalkapp.com/<repo_name>/browse/branches
(I don't think you could rely on solely on 'trunk', 'tags' or 'branches' being the only ones that might be present for a Subversion repository - since I believe they are just directories, so you could add your own at the root level [although it's not the standard approach]; however, maybe the 3rd [index 2] path component not being 'git' would be a good indicator that it's a Subversion repo - and the bot can give a specific response about not reporting Subversion repositories?)

Oh, and I know it's minor; but on your item 1 - it is possible to amend the label from "Auth token" to "API Access token" in the Beep Boop config screen? I'd assumed that was what it meant - but the terminology is different enough (especially if you've worked with OAuth before) to make one wonder is you are using the right kind of credential ;)

Very good points!
We'll look into subversion issues soon. I've created separate issues for these.
See #15


[FLINK-4485] close and remove user class loader after job completion

Keeping the user class loader around after job completion may lead to
excessive temp space usage because all user jars are kept until the
class loader is garbage collected. Tests showed that garbage collection
can be delayed for a long time after the class loader is not referenced
anymore. Note that for the class loader to not be referenced anymore,
its job has to be removed from the archive.
The fastest way to minimize temp space usage is to close and remove the
URLClassloader after job completion. This requires us to keep a
serializable copy of all data which needs the user class loader after
job completion, e.g. to display data on the web interface.

Looks food to me.
+1 to merge

Thanks! Just a few words to @nielsbasjes who reported the issue. I've tested the fix using the test instructions you provided. Even before this fix, I could get rid of the temp files by forcing a manual garbage collection on the JVM, using jcmd <pid> GC.run. However, that only worked once the job meta data had been removed from the archive, i.e. it doesn't show up in the web interface anymore. With this fix, the class loader is cleared upon job completion and the files are immediately removed. lsof | fgrep blob_ didn't show any of these files anymore.
Note, that we don't perform any cleanup on the TaskManager side. There we also wind up with some left over files but they don't seem to pile up. It must be that the garbage collector can figure out when to clean much earlier. Plus, we don't keep a reference to old Task instances like we do for the web interface on the JobManager side.
@StephanEwen I'm thinking about adding a similar fix for the TaskManager side. What do you think?

What would the fix for the TaskManager look like? Simply explicitly closing the UserCodeClassloader, or does it need more?

@StephanEwen Yes, it is simple. I just pushed a commit. This now releases all temp files after job completion.

Looks good to me.
+1 to merge when tests pass

This needed another fix because in some tests we use the system class loader instead of a class loader instantiated by the BlobLibraryCacheManager. If we close that one, we cause tests to fail. The solution is to close only FlinkUserCodeClassLoaders.

Merging after tests pass.


Migrate to reading from NAND title

For SD card-based homebrew titles, our current design involves a hidden title being utilized to download our homebrew software’s zip file.
We plan to modify this application to perform the following:

[x] read from ec.cfg a title ID
[x] read the primary content, ID or index zero, from our hidden SD title
[x] replace the contents of our SD title with a zero-length file, editing the TMD appropriately
[x] opening the Wii Shop Channel upon completion

Complete as of 3e9b06204707b4393713b8fc241eac2d8c8e01be.

For SD card-based homebrew titles, our current design involves a hidden title being utilized to download our homebrew software’s zip file.
We plan to modify this application to perform the following:
* [x]  read from ec.cfg a title ID

* [x]  read the primary content, ID or index zero, from our hidden SD title

* [x]  replace the contents of our SD title with a zero-length file, editing the TMD appropriately

* [x]  opening the Wii Shop Channel upon completion

Was reading this and unchecked a checkbox on accident. If you got a notification- my bad!


Adds metron properties for communicating with CF ETCD over TLS

[#121255441]
Signed-off-by: Sam Nelson<EMAIL_ADDRESS>

Thanks, @nelsam! Do we need to wait to merge these until the corresponding changes to CF manifest generation make it to the cf-release release-candidate branch?
Also, will add some line comments.
Best,
Eric

Yes. I believe waiting for the corresponding changes to CF manifest would be ideal. We created a separate PR here

Thanks, @wfernandes. I think we could actually merge this before the CF changes are merged in. I wanted to make sure we didn't get into a situation like we did with renaming some of the loggregator TCP/TLS properties where the CF and Diego manifest-generation templates weren't compatible, but since this is only adding optional input slots to the internal template it seems ok.
Best,
Eric

@ematpl That makes sense. Thanks.


Chore(Azure): Update and Shift Azure instance stop chaos to master

What this PR does / why we need it:

This will add multiple instance support for instance termination
Added abortWatcher for chaos revert on abort signal
Renaming azure-instance-terminate to azure-instance-stop
Added sequence support in azure experiment

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Checklist:

[ ] Fixes #
[ ] PR messages has document related information
[ ] Labelled this PR & related issue with breaking-changes tag
[ ] PR messages has breaking changes related information
[ ] Labelled this PR & related issue with requires-upgrade tag
[ ] PR messages has upgrade related information
[ ] Commit has unit tests
[ ] Commit has integration tests
[ ] E2E run Required for the changes

Experiment Logs
W0610 11:45:55.116723       1 client_config.go:541] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
time="2021-06-10T11:45:55Z" level=info msg="Experiment Name: azure-instance-stop"
time="2021-06-10T11:45:55Z" level=info msg="[PreReq]: Getting the ENV for the  experiment"
time="2021-06-10T11:45:55Z" level=info msg="[PreReq]: Updating the chaos result of azure-instance-stop experiment (SOT)"
time="2021-06-10T11:45:55Z" level=info msg="The application information is as follows" Label= Chaos Duration=15 Ramp Time=0 Namespace=chaos
time="2021-06-10T11:45:55Z" level=info msg="[Status]: Verify that the AUT (Application Under Test) is running (pre-chaos)"
time="2021-06-10T11:45:55Z" level=info msg="[Status]: No appLabels provided, skipping the application status checks"
time="2021-06-10T11:45:55Z" level=info msg="[Info]: The instance under chaos(IUC) are: [azure-instance-delete azure-instance-stop]"
time="2021-06-10T11:45:56Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM running'"
time="2021-06-10T11:45:56Z" level=info msg="[Status]: The instance azure-instance-stop state is: 'VM running'"
time="2021-06-10T11:45:56Z" level=info msg="[Status]: Azure instance(s) is in running state (pre-chaos)"
time="2021-06-10T11:45:56Z" level=info msg="[Info]: Target instanceName list, [azure-instance-delete azure-instance-stop]"
time="2021-06-10T11:45:56Z" level=info msg="[Chaos]: Stopping the Azure instance: azure-instance-delete"
time="2021-06-10T11:45:56Z" level=info msg="[Info]: Starting powerOff the instance"
time="2021-06-10T11:45:57Z" level=info msg="[Chaos]: Stopping the Azure instance: azure-instance-stop"
time="2021-06-10T11:45:57Z" level=info msg="[Info]: Starting powerOff the instance"
time="2021-06-10T11:45:58Z" level=info msg="[Wait]: Waiting for Azure instance 'azure-instance-delete' to get in the stopped state"
time="2021-06-10T11:45:58Z" level=info msg="[Status]: Checking Azure instance status"
time="2021-06-10T11:45:58Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM stopping'"
time="2021-06-10T11:45:58Z" level=info msg="The instance state is VM stopping"
time="2021-06-10T11:46:01Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM stopping'"
time="2021-06-10T11:46:01Z" level=info msg="The instance state is VM stopping"
time="2021-06-10T11:46:03Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM stopping'"
time="2021-06-10T11:46:03Z" level=info msg="The instance state is VM stopping"
time="2021-06-10T11:46:06Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM stopping'"
time="2021-06-10T11:46:06Z" level=info msg="The instance state is VM stopping"
time="2021-06-10T11:46:08Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM stopped'"
time="2021-06-10T11:46:08Z" level=info msg="The instance state is VM stopped"
time="2021-06-10T11:46:10Z" level=info msg="[Wait]: Waiting for Azure instance 'azure-instance-stop' to get in the stopped state"
time="2021-06-10T11:46:10Z" level=info msg="[Status]: Checking Azure instance status"
time="2021-06-10T11:46:11Z" level=info msg="[Status]: The instance azure-instance-stop state is: 'VM stopped'"
time="2021-06-10T11:46:11Z" level=info msg="The instance state is VM stopped"
time="2021-06-10T11:46:13Z" level=info msg="[Wait]: Waiting for chaos interval of 10s"
time="2021-06-10T11:46:23Z" level=info msg="[Chaos]: Starting back the Azure instance: azure-instance-delete"
time="2021-06-10T11:46:23Z" level=info msg="[Info]: Starting back the instance to running state"
time="2021-06-10T11:46:24Z" level=info msg="[Chaos]: Starting back the Azure instance: azure-instance-stop"
time="2021-06-10T11:46:24Z" level=info msg="[Info]: Starting back the instance to running state"
time="2021-06-10T11:46:24Z" level=info msg="[Wait]: Waiting for Azure instance 'azure-instance-delete' to get in the running state"
time="2021-06-10T11:46:24Z" level=info msg="[Status]: Checking Azure instance status"
time="2021-06-10T11:46:25Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM starting'"
time="2021-06-10T11:46:25Z" level=info msg="The instance state is VM starting"
time="2021-06-10T11:46:27Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM running'"
time="2021-06-10T11:46:27Z" level=info msg="The instance state is VM running"
time="2021-06-10T11:46:29Z" level=info msg="[Wait]: Waiting for Azure instance 'azure-instance-stop' to get in the running state"
time="2021-06-10T11:46:29Z" level=info msg="[Status]: Checking Azure instance status"
time="2021-06-10T11:46:30Z" level=info msg="[Status]: The instance azure-instance-stop state is: 'VM starting'"
time="2021-06-10T11:46:30Z" level=info msg="The instance state is VM starting"
time="2021-06-10T11:46:33Z" level=info msg="[Status]: The instance azure-instance-stop state is: 'VM running'"
time="2021-06-10T11:46:33Z" level=info msg="The instance state is VM running"
time="2021-06-10T11:46:35Z" level=info msg="[Confirmation]: Azure instance stop chaos has been injected successfully"
time="2021-06-10T11:46:35Z" level=info msg="[Info]: The instance under chaos(IUC) are: [azure-instance-delete azure-instance-stop]"
time="2021-06-10T11:46:35Z" level=info msg="[Status]: The instance azure-instance-delete state is: 'VM running'"
time="2021-06-10T11:46:36Z" level=info msg="[Status]: The instance azure-instance-stop state is: 'VM running'"
time="2021-06-10T11:46:36Z" level=info msg="[Status]: Azure instance is in running state (post chaos)"
time="2021-06-10T11:46:36Z" level=info msg="[Status]: Verify that the AUT (Application Under Test) is running (post-chaos)"
time="2021-06-10T11:46:36Z" level=info msg="[Status]: No appLabels provided, skipping the application status checks"
time="2021-06-10T11:46:36Z" level=info msg="[The End]: Updating the chaos result of azure-instance-stop experiment (EOT)"


3D particles emission gets chunky if framerate is slowed down

Godot 3.0 alpha1
Windows 10 64 bits
nVidia geforce 940M
I noticed 3D particles emission became less random if the framerate isn't 60fps, giving this kind of artifact with 5000:
https://www.youtube.com/watch?v=yEKJqWV1z-0&feature=youtu.be
If I reduce to something lower like 1000, the spawn pattern is back to random.

This is intended, randomness only happen in the slice assigned to the particle. Due to how particles works, it's impossible to do otherwise. That said, eventually you should probably be able to modify the particle shader soon to make the changes you might want for your specific case.


Use new ubuntu image and just export docker host

This PR fixes #205 by using ubuntu/xenial64 box and also deprecates the use of docker-machine in favor of just using vagrant box docker to build images.

Update the PR with your comments, hope you find it useful

All comment fixed

LGTM. Thanks for your time making this work again!