SciPy Crash No Error Message on maximum_filter

I am running some code to generate hashes for audio .mp3 files
the code will successfully run sometimes and on others the program will stop and crash (this is reproducible when running generate hash. the code will run for the first hash then when it comes to the second there is a chance it will crash with no error message. I added some logging and traced the error back to the function
local_max = maximum_filter(arr2D, footprint=neighborhood) == arr2D
following this in to the library through filters.py to the function line 970 _min_or_max_filter()
the line that crashes and does not execute is line 1043 _nd_image.min_or_max_filter
I could not follow this into nd_img as the file was precompiled .pyc !
I hope I have given all the infomation needed! apologies if not this is my first time submitting an issue!
Reproducing code example:

import hashlib
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import os

from termcolor import colored
from scipy.ndimage.filters import maximum_filter
from scipy.ndimage.morphology import (generate_binary_structure, iterate_structure, binary_erosion)
from operator import itemgetter
from reader_file import FileReader

IDX_FREQ_I = 0
IDX_TIME_J = 1

# Sampling rate, related to the Nyquist conditions, which affects
# the range frequencies we can detect.
DEFAULT_FS = 44100

# Size of the FFT window, affects frequency granularity
DEFAULT_WINDOW_SIZE = 8192 # was 4096

# Ratio by which each sequential window overlaps the last and the
# next window. Higher overlap will allow a higher granularity of offset
# matching, but potentially more fingerprints.
DEFAULT_OVERLAP_RATIO = 0.5

# Degree to which a fingerprint can be paired with its neighbors --
# higher will cause more fingerprints, but potentially better accuracy.
DEFAULT_FAN_VALUE = 30   # was 15

# Minimum amplitude in spectrogram in order to be considered a peak.
# This can be raised to reduce number of fingerprints, but can negatively
# affect accuracy.
DEFAULT_AMP_MIN = 10

# Number of cells around an amplitude peak in the spectrogram in order
# for Dejavu to consider it a spectral peak. Higher values mean less
# fingerprints and faster matching, but can potentially affect accuracy.
PEAK_NEIGHBORHOOD_SIZE = 20

# Thresholds on how close or far fingerprints can be in time in order
# to be paired as a fingerprint. If your max is too low, higher values of
# DEFAULT_FAN_VALUE may not perform as expected.
MIN_HASH_TIME_DELTA = 0
MAX_HASH_TIME_DELTA = 200

# If True, will sort peaks temporally for fingerprinting;
# not sorting will cut down number of fingerprints, but potentially
# affect performance.
PEAK_SORT = True

# Number of bits to throw away from the front of the SHA1 hash in the
# fingerprint calculation. The more you throw away, the less storage, but
# potentially higher collisions and misclassifications when identifying songs.
FINGERPRINT_REDUCTION = 20

def fingerprint(channel_samples, Fs=DEFAULT_FS,
                wsize=DEFAULT_WINDOW_SIZE,
                wratio=DEFAULT_OVERLAP_RATIO,
                fan_value=DEFAULT_FAN_VALUE,
                amp_min=DEFAULT_AMP_MIN,
                plots=True):
    print(plots)
    print(channel_samples)
    print(Fs)
    # show samples plot
    if plots:
      plt.plot(channel_samples)
      plt.title('%d samples' % len(channel_samples))
      plt.xlabel('time (s)')
      plt.ylabel('amplitude (A)')
      plt.show()
      plt.gca().invert_yaxis()

    # FFT the channel, log transform output, find local maxima, then return
    # locally sensitive hashes.
    # FFT the signal and extract frequency components

    # plot the angle spectrum of segments within the signal in a colormap
    arr2D = mlab.specgram(
        channel_samples,
        NFFT=wsize,
        Fs=Fs,
        window=mlab.window_hanning,
        noverlap=int(wsize * wratio))[0]

    # show spectrogram plot
    if plots:
      plt.plot(arr2D)
      plt.title('FFT')
      plt.show()
    print("passed plots")
    # apply log transform since specgram() returns linear array
    arr2D = 10 * np.log10(arr2D) # calculates the base 10 logarithm for all elements of arr2D
    arr2D[arr2D == -np.inf] = 0  # replace infs with zeros

    # find local maxima
    local_maxima = get_2D_peaks(arr2D, plot=plots, amp_min=amp_min)

    #msg = '   local_maxima: %d of frequency & time pairs'
    #print colored(msg, attrs=['dark']) % len(local_maxima)

    # return hashes
    print("fingerprinting Finished")
    return generate_hashes(local_maxima, fan_value=fan_value)

def get_2D_peaks(arr2D, plot=False, amp_min=DEFAULT_AMP_MIN):
    print("2D peaks called")
    # http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.morphology.iterate_structure.html#scipy.ndimage.morphology.iterate_structure
    struct = generate_binary_structure(2, 1)
    neighborhood = iterate_structure(struct, PEAK_NEIGHBORHOOD_SIZE)
    # find local maxima using our fliter shape
    print("local max")
    print(arr2D)
    print(len(arr2D))
    local_max = maximum_filter(arr2D, footprint=neighborhood) == arr2D
    print(local_max)
    print("background")
    background = (arr2D == 0)
    print("erroded background")
    eroded_background = binary_erosion(background, structure=neighborhood,
                                       border_value=1)

    # Boolean mask of arr2D with True at peaks
    print("detected peaks ")
    detected_peaks = local_max ^ eroded_background

    # extract peaks
    print("extract peaks")
    amps = arr2D[detected_peaks]
    j, i = np.where(detected_peaks)

    # filter peaks
    amps = amps.flatten()
    peaks = zip(i, j, amps)
    peaks_filtered = [x for x in peaks if x[2] > amp_min]  # freq, time, amp

    # get indices for frequency and time
    frequency_idx = [x[1] for x in peaks_filtered]
    time_idx = [x[0] for x in peaks_filtered]

    # scatter of the peaks
    if plot:
      fig, ax = plt.subplots()
      ax.imshow(arr2D)
      ax.scatter(time_idx, frequency_idx)
      ax.set_xlabel('Time')
      ax.set_ylabel('Frequency')
      ax.set_title("Spectrogram")
      plt.gca().invert_yaxis()
      plt.show()
    print("2d plots complete")
    return zip(frequency_idx, time_idx)

# Hash list structure: sha1_hash[0:20] time_offset
# example: [(e05b341a9b77a51fd26, 32), ... ]
def generate_hashes(peaks, fan_value=DEFAULT_FAN_VALUE):
    if PEAK_SORT:
      peaks = sorted(peaks, key = lambda x:x[1])

    # bruteforce all peaks
    for i in range(len(peaks)):
      for j in range(1, fan_value):
        if (i + j) < len(peaks):

          # take current & next peak frequency value
          freq1 = peaks[i][IDX_FREQ_I]
          freq2 = peaks[i + j][IDX_FREQ_I]

          # take current & next -peak time offset
          t1 = peaks[i][IDX_TIME_J]
          t2 = peaks[i + j][IDX_TIME_J]

          # get diff of time offsets
          t_delta = t2 - t1

          # check if delta is between min & max
          if t_delta >= MIN_HASH_TIME_DELTA and t_delta <= MAX_HASH_TIME_DELTA:
            h = hashlib.sha1("%s|%s|%s".encode() % (bytearray(freq1), bytearray(freq2),bytearray(t_delta)))
            yield (h.hexdigest()[0:FINGERPRINT_REDUCTION], t1)

def FindHashes(path, filename):
  print("Started Finding Hashes")
  if filename.endswith(".mp3"):
    print("Hashing for path : " + path )
    print("Filename: " + filename)
    reader = FileReader(path + filename)
    audio = reader.parse_audio()
    channel_amount = len(audio['channels'])
    print("made it to for loop")
    for channeln, channel in enumerate(audio['channels']):
        msg = '   fingerprinting channel %d/%d'
        print((msg).format(channeln+1, channel_amount))
        print("Running Fingerprint")
        channel_hashes = fingerprint(channel, Fs=audio['Fs'], plots=False)
        print("Finished Fingerprint")
        channel_hashes = set(channel_hashes)
        print("hashes generated for " + filename + ": " + str(len(channel_hashes)))

    return channel_hashes

File_Reader.py

import os
from pydub import AudioSegment
from pydub.utils import audioop
import numpy as np
from hashlib import sha1

class BaseReader(object):
  def __init__(self, a):
    self.a = a

  def recognize(self):
    pass  # base class does nothing

class FileReader(BaseReader):
  def __init__(self, filename):
    # super(FileReader, self).__init__(a)
    self.filename = filename

  """
  Reads any file supported by pydub (ffmpeg) and returns the data contained
  within. If file reading fails due to input being a 24-bit wav file,
  wavio is used as a backup.

  Can be optionally limited to a certain amount of seconds from the start
  of the file by specifying the `limit` parameter. This is the amount of
  seconds from the start of the file.

  returns: (channels, samplerate)
  """
  # pydub does not support 24-bit wav files, use wavio when this occurs
  def parse_audio(self):
    limit = None
    # limit = 10

    songname, extension = os.path.splitext(os.path.basename(self.filename))

    try:
      audiofile = AudioSegment.from_file(self.filename)

      if limit:
        audiofile = audiofile[:limit * 1000]

      data = np.frombuffer(audiofile._data, np.int16)

      channels = []
      for chn in range(audiofile.channels):
        channels.append(data[chn::audiofile.channels])

      fs = audiofile.frame_rate
    except audioop.error:
      print('audioop.error')
      pass
        # fs, _, audiofile = wavio.readwav(filename)

        # if limit:
        #     audiofile = audiofile[:limit * 1000]

        # audiofile = audiofile.T
        # audiofile = audiofile.astype(np.int16)

        # channels = []
        # for chn in audiofile:
        #     channels.append(chn)

    return {
      "songname": songname,
      "extension": extension,
      "channels": channels,
      "Fs": audiofile.frame_rate,
      "file_hash": self.parse_file_hash()
    }

  def parse_file_hash(self, blocksize=2**20):
    """ Small function to generate a hash to uniquely generate
    a file. Inspired by MD5 version here:
    http://stackoverflow.com/a/1131255/712997

    Works with large files.
    """
    s = sha1()

    with open(self.filename , "rb") as f:
      while True:
        buf = f.read(blocksize)
        if not buf: break
        s.update(buf)

    return s.hexdigest().upper()

Scipy/Numpy/Python version information:
I am using scipy version 1.4.1
Python : 3.7
Numpy 1.18.1
I am under the assumption that code the written is ok as I did not write it / understand the ins and outs of it !

Thanks for taking the time to report this. Do you mind restricting the issue only to the offending line together with its input arguments? It would help us to isolate the issue much quicker

PEAK_NEIGHBORHOOD_SIZE = 20
arr2D is a very large array generated by def fingerprint()
struct = generate_binary_structure(2, 1)
neighborhood = iterate_structure(struct, PEAK_NEIGHBORHOOD_SIZE)
local_max = maximum_filter(arr2D, footprint=neighborhood) == arr2D

maximum filter is the line with the issue! would you like me to remove the rest of the code from the post?

If I run python -u -m trace this is the last calls made before the exit
filters.py(1018):         fshape = [ii for ii in footprint.shape if ii > 0]
filters.py(1018):         fshape = [ii for ii in footprint.shape if ii > 0]
filters.py(1018):         fshape = [ii for ii in footprint.shape if ii > 0]
filters.py(1019):         if len(fshape) != input.ndim:
filters.py(1021):         for origin, lenf in zip(origins, fshape):
filters.py(1022):             if (lenf // 2 + origin < 0) or (lenf // 2 + origin >= lenf):
filters.py(1021):         for origin, lenf in zip(origins, fshape):
filters.py(1022):             if (lenf // 2 + origin < 0) or (lenf // 2 + origin >= lenf):
filters.py(1021):         for origin, lenf in zip(origins, fshape):
filters.py(1024):         if not footprint.flags.contiguous:
filters.py(1026):         if structure is not None:
filters.py(1031):         mode = _ni_support._extend_mode_to_code(mode)
 --- modulename: _ni_support, funcname: _extend_mode_to_code
_ni_support.py(41):     if mode == 'nearest':
_ni_support.py(43):     elif mode == 'wrap':
_ni_support.py(45):     elif mode == 'reflect':
_ni_support.py(46):         return 2
filters.py(1043):         _nd_image.min_or_max_filter(input, footprint, structure, output,
filters.py(1044):                                     mode, cval, origins, minimum)

Hi everybody! I'll look into this issue and share some thoughts soon. Would be grateful for any ideas/help too

This looks to me as though it could be #4878 (Which isn't really only about median_filter).
@Charlie-Bryant, can you at least share the size and dtype of arr2d and footprint when this fails?

they are both numpy nd arrays arr2d is size 42 and footprint is 8193 sorry this took so long my access to this code was limited

has this issue been confirmed that it is #4878?


[Question] Can we add files programmatically, without the browser dialogue interface?

Hi,
Is there a way where we can add files to vue-dropzone through code ( without the browser dialogue for drag and drop), so that it automatically starts uploading and triggering all success and error events.
I explored the existing methods but the addFile seems to only create a mock file for display and doesn't initiate the auto upload events.
I am considering a usecase where we generate dataUrl on the fly from a webcam ( selfies ) which are then added to the dropzone for subsequent uploads automatically.
Please correct me if I am missing something. Or there are alternate ways to achieve the same.
Thanks

This is one of those instances where different use cases expect different defaults. For clarity, the next release will feature a new method addAndUploadFile() with identical params that also fires upload hooks.

A new release is available on NPM. Please reopen this issue if there are further problems with the outlined solution.


Distribute API calls to all brokers

This PR refactors the client to use and maintain only one gRPC connection per broker. Following this change the connection pool has been removed as it was no longer needed. The MaxConnsPerBroker and KeepAliveTime client options are not used anymore either.
Publications are sent on brokers depending on the stream and partition using consistent hashing. This should allow multiple publications towards to the same stream to be sent to the same broker, which should help with keeping message ordering.
API calls (except subscriptions and cursors) are randomly distributed on the brokers. This doesn't use the Picker or Resolver gRPC interfaces yet.
See the discussion at https://github.com/liftbridge-io/go-liftbridge/issues/99

PR created upstream, closing this one.

PR created upstream, closing this one.


IRGen: Treat class layout for classes from other modules a bit more opaquely.

We would miscompile in mixed-language-version projects when a Swift class was compiled for one language version, while using Objective-C-imported types that are only available to that version, and then imported into a Swift module with a different language version that wasn't able to see all of the properties because of incompatible imported types. This manifested in a number of ways:

We assumed we could re-derive the constant field offsets of the class's ivars from the layout, which is wrong if properties are missing, causing accesses to final properties or subclass properties to go to the wrong offsets.
We assumed we could re-derive the instance size and alignment of a class instance in total, causing code to allocate the wrong amount of memory.
We neglected to account for the space that stored properties take up in the field offset vector of the class object, causing us to load vtable entries for following subclass methods from the wrong offsets.

Eventually, resilience should reduce our exposure to these kinds of problems. As an incremental step in the right direction, when we look at a class from another module in IRGen, treat it as always variably-sized, so we don't try to hardcode offsets, size, or alignment of its instances. When we import a class, and we're unable to import a stored property, leave behind a new kind of MissingMemberDecl that records the number of field offset vector slots it will take up, so that we lay out subclass objects and compute vtable offsets correctly. Fixes rdar://problem/35330067.

@swift-ci Please test

@swift-ci Please test source compatibility

@jrose-apple @slavapestov Does this look reasonable as a stopgap for 4.1?

Build failed
Swift Test Linux Platform
Git Sha - 258d711627c82c164ed32e765a40afbd19e82d62

Build failed
Swift Test OS X Platform
Git Sha - 258d711627c82c164ed32e765a40afbd19e82d62

@swift-ci Please test

@swift-ci Please test source compatibility

@swift-ci Please test

@swift-ci Please test source compatibility

Build failed
Swift Test Linux Platform
Git Sha - 258d711627c82c164ed32e765a40afbd19e82d62

Build failed
Swift Test OS X Platform
Git Sha - 39dfe07354fdc8428cc220193ced35d1a0e7ec86

@swift-ci please smoke test os x

@swift-ci please smoke test os x

@swift-ci Please smoke test OS X

@swift-ci Please smoke test

@swift-ci Please smoke test OS X


[Settings]: When tooltip is visible on the screen Voice Access are not able to access any control on the Terminal app.

Windows Terminal version
1.15.2003.0
Windows build number
10.0.25179.1000
Other Software
Test Environment:
OS: Window 11 22H2 OS Build 25179.1000
App: Windows Terminal Preview
AT: Voice Access
Steps to reproduce
Repro Steps:

Open Windows Terminal.
Open Voice Access AT.
Inside Settings>Startup page, Use 'Expand launch Size' command, when command get executed, a tooltip will appear.
When Tooltip is visible on screen, try to access app using available commands without dismissing the tooltip.

User Experience:
People with limited mobility who use Voice Access will impacted here as they might not be able to use controls and get confused regarding the same.
Guideline Reference:
EN 301 549 V3.2.1: 11.06.02 No disruption of accessibility features
Attachments:
Tooltip.zip
Attachment Note: Not able to inspect Terminal Preview app with AI and Inspector tool.
Expected Behavior
When tooltip is visible on the screen Voice Access users should be able to access all control on the Terminal app.
Actual Behavior
When tooltip is visible on the screen Voice Access are not able to access any control on the Terminal app like nothing happens when users use 'Click control name' and 'show numbers' etc. commands.
Observation:
Voice Access users can access controls after dismissing the tooltip or using 'Show Grid' command.
To learn more about Voice Access and how an application can support its different modes, Refer https://www.osgwiki.com/wiki/VoiceAccess_Testing
Voice Access Commands page: https://sway.office.com/Q5JvoIGBI5glyoKw?ref=Link

This definitely isn't specific to one single control - the mouse was left on top of the "launch size" expando, and that caused the tooltip to appear over it.
Now, the bigger question here is how should Voice access interact with XAML tooltips? Clearly it can't walk around the tooltips in the UI tree. I suspect this needs to be moved way upstream, either into WinUI itself, or into Voice Access. @carlos-zamora thoughts?

Yup, this is a XAML Islands bug. I've filed https://github.com/microsoft/microsoft-ui-xaml/issues/7815 on the XAML team
CC @v-rpundir

Tracking ID: Bug 41849571: [XAML Controls Gallery -> ToolTip]: When tooltip is visible on screen, unable to access app using available commands ('Click control name' and 'show numbers' etc.) without dismissing the tooltip.
FYI- We do not track XAML bug in GitHub as per XAML testing team guidelines.

hey, Mr  Carlos,  just an idea.  Just from kind of having a quick look over this vault, it seems like you're you're pushing this forward more so than anyone else. So I want to. Just run it right to you. Another protocol on this. I see
you work for Microsoft, and this isn't really an open source project. And I just. wanted to throw ideas at you. I'm a user. I'll use whatever works for me. I've been using windows a 99% my career. I don't want to use Ubuntu in Julia, but I think I have to for this one's the scientific project which could have a huge impact, but I just noticed in power tools, that there is a OCR feature that Google's always had, but which will let you maybe go to a video game which has buttons rendered
and get the text from those buttons and then allow you to press buttons and then you won't have to do all the work that you've done with all these different UI protocols and stuff. What I would think you would do for XAML or for anything if you get into that visual tree somehow I don't even know how to do it is you find a button via name and localization.  Have the words that you want. to say put those into a dictionary and limit the language models domain so that it will guess first that you might be referring to those buttons if you're in that context. before just you know, putting up numbers or letters I would suggest that I'm just going to look at my screen if I see a button and I'm going to say its name. If I see a tool tip by my I might remember what was on that tool tip and use in that the next time I want to invoke the command I might not even be looking at my screen after tat . know, so I really think some of those work that's being done is redundant. And maybe you just do the ocr. I know it's a little bit more expensive, but when you're feeding it into the voice to text AI  first. it's going to make that cheaper, more accurate,  and it's going to get implemented faster and the faster it is out there and better , you're going to save the planet 20,000 hours of mucking around clicking and mousing

Hi @damian-666, I suggest you submit this feedback to the relevant team (sounds like Voice Access, maybe) via Feedback Hub. Here's a link: https://support.microsoft.com/en-us/windows/send-feedback-to-microsoft-with-the-feedback-hub-app-f59187f8-8739-22d6-ba93-f66612949332
That'll make sure it gets to the right place :)


Use variables to check if the server is running

Add server_socket variables so we can use another name then kopano_server as the server name

Hi @RobinvG,
I was wondering if there is a way to simplify the environment variables until I realised that this way the same env variable is used in the configuration file for the socket this way. I like that.
The downside is that this does not seem to work for dockerize:
kopano_gateway_1    | 2019-11-27T15:58:39.422520256Z 2019/11/27 15:58:39 Waiting for http://kopano_server:236/: unexpected HTTP status code: 405.
kopano_ical_1       | 2019-11-27T15:58:20.360662763Z 2019/11/27 15:58:20 Waiting for http://kopano_server:236/: unexpected HTTP status code: 405.

Maybe this needs a single "KOPANO_CONN" after all. Then there is one place where one can check if the variable begins with with "http", replace "http*://" with "tcp://" and finally assign this value to KCCONF_*_SERVER_SOCKET.

@RobinvG what do you think about https://github.com/zokradonh/kopano-docker/pull/298 ?
I think this approach may be less confusing down the road.

@fbartels  I agree let's use that one then

Great. Currently waiting for tests to finish, then I'll merge it.


Cant understand how to make it real trade

So, finally I got over all the erros but still cant get running :). Please. I just would like to put there my API keys and start it. Why cant it be so simple? What should I edit in the CryptoTriangularArbitrageBinanceBot.py to make it really trade?

The closest tri arb bot to trading is "Private_TriArb_SocialMedia.py" bot, which actually is very close to 'plug and play', and in fact has order functionality available. You might want to try with this bot and tell me your results!

Hello my friend @1221328 , can you please provide some documentation on the errors you faced and their solution, and raising them as issues ? I will close this issue, and I have further discussion on what is required for the tri arb bot to trade.


url_title doesn't work with decimal number in title

I have decimal number in my title like:
 this product size 0.5 or  this product size 0,5
I need to create slug url and add to database using url_title function:
url_title('this product size 0.5') but in action url_title remove . or , from url and output is:
this product size 05
how do can I keep . or , in url when I work with url_title function?!

There is no option in the url_title() function that can handle this.
Please ask support questions in the Forum.

There is no option in the url_title() function that can handle this.
Please ask support questions in the Forum.


OIDC for VCI with Dutch Blockchain Coalition

We shoudl be able to make the issuance work rapidely
https://ssi.dutchblockchaincoalition.org/#/credentials/issue/request
the token endpoint is not in the openid config , the endpoint is ...../agent/token
So lets says that if the wallet does not find the token endpoint , then wallet can user the "/token" as fallback
Same for authorization endpoint -> "/authorize"

Use did:jwk p-256

Can be probablyt tested with OIDC4VCI sandbox test 12 @bibash28
token endpoint is on xxxx/agent/token -> add "/token" at teh end of the issuer url

removed to manage standard level


pylint extension stays disabled in windows 11 vs code after installing and cannot be enabled

I do see pylint command working fine from VS code terminal.
pip show pylint
Name: pylint
Version: 3.3.2
Summary: python code static checker
Home-page: https://github.com/pylint-dev/pylint
Author:
Author-email: Python Code Quality Authority<EMAIL_ADDRESS>License: GPL-2.0-or-later
Location: C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages
Requires: astroid, colorama, dill, isort, mccabe, platformdirs, tomlkit
Required-by:
I also see the following three options are unrecognized in settings.json
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.lintOnSave": true,
Python extension along with pylance and python debugger extensions are working fine.
Please help.

Can you share a screenshot of the extension from the extension view? There should be a button to enable the extension.

Please see attached.. Enable option is disabled.

Can you show me the pylint page? It is currently showing SSH FS page, I want to see what version of the extension is installed and if there are any update options. What is the version of VS code you have?

Here you go

Looks like you are using a Virtual workspace. This is not supported by the pylint extension. You need to open this as a normal workspace. Only Pylance will work in this scenario.

ok, thank you for looking into this.


Fix race conditions in Capture/CaptureWithCGo

When run in parallel, the current code can panic
due to "unlock of unlocked mutex".
Specifically, what would happen is:

Routine1 swaps file descriptors
Routine2 then swaps FDs again
Routine1 finishes and tries to restore FDs
Routine1 errors restoring FDs in the defer,
causing one of the 'if e != nil, unlock' branches
to be hit.
The unconditional 'unlock' call then runs,
and re-unlocks the mutex, panicing.

Because there were no tests with concurrency,
this bug wasn't detected (it is trivial to reproduce
by adding parallelization, as the test indicates).
While trying to debug and fix this bug (avoiding multiple unlocks),
I realized that the cause of hitting the branch (failure restoring FDs)
indicates a logical problem- because the FDs are global to the process,
it would be very easy to lose/interleave input:

Routine1 swaps FDs (stdout/err are routine1's copies)
Routine2 swaps FDs (stdout/err are routine2's copies)
Routine1's callback runs and writes to routine2's fd copies

To avoid this, I simplified everything and take a mutex on the whole
function (multiple defers run in LIFO).
The downside here is obviously that we have to run the callback
inside of the mutex; however, I am not sure what the option could be.
If code (C or Go) writes to stdout/os.Stdout or err,
it logically must run in isolation.
Avoiding the function-side lock allows concurrent callbacks
but with incorrect results.

[ ] Sorry i did not have time and energy to do open source. Just update the repository with the latest internal changes we had, and this problem should be fixed there. I am really sorry for closing this PR now. Drinks on me.


vieb: 7.2.0 -> 9.5.0

Description of changes

From #184119, it seems nobody is maintaining the package (?), @K900 @adam-neeley @Isti115 friendly pings if you want to test this
Add npm_package_version env variable in electron wrapper to correctly set version, see Vieb/index.js at master · Jelmerro/Vieb, also https://github.com/NixOS/nixpkgs/pull/184119#issuecomment-1227609109
Remove  no longer needed p7zip input (See remove extension support · Jelmerro/Vieb@60376ee)

Changelog: Release Vieb 9.5.0 · Jelmerro/Vieb
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Maintainer pings
cc @gebner @fortuneteller2k

Tested with nixpkgs-review, seems to work fine. :+1:

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/809


recent_view: Fix no topic found at center of recent view.

The bug is hard to reproduce, but I was able to reproduce with #30134 and used the same strategy to fix it here.

OK, pushed a revision that I think is a good merge point, even if I'm not entirely certain that we're doing the right thing in some unlikely/theoretical cases there.

Test failure looks like an unrelated infrastructure failure affecting the realm_playground puppeteer test.


Update debian i386 node binary with no-MMX patch

connects to https://github.com/resin-io/node-arm/pull/35


pmd: 6.0.1 -> 6.1.0

Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found 6.1.0 with grep in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0
found 6.1.0 in filename of file in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0

Success on x86_64-linux (full log)
Attempted: pmd
Partial log (click to expand)
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0/lib  /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0/bin
patching script interpreter paths in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0
/nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0/bin/run.sh: interpreter directive changed from "/bin/bash" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash"
checking for references to /tmp/nix-build-pmd-6.1.0.drv-0 in /nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0...
/nix/store/qh8xnf46qfyijvskdznwl08r6js4wg7y-pmd-6.1.0

Success on aarch64-linux (full log)
Attempted: pmd
Partial log (click to expand)
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0/lib  /nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0/bin
patching script interpreter paths in /nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0
/nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0/bin/run.sh: interpreter directive changed from "/bin/bash" to "/nix/store/lnws52qanbi5vz8qg24v4ym57nznfndg-bash-4.4-p12/bin/bash"
checking for references to /build in /nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0...
/nix/store/ickmny515qqyy2w740ps352wg3w7pf59-pmd-6.1.0

Success on x86_64-darwin (full log)
Attempted: pmd
Partial log (click to expand)
no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/zhjwnv6qib92lg654nyi8dl71nbii41r-pmd-6.1.0/lib  /nix/store/zhjwnv6qib92lg654nyi8dl71nbii41r-pmd-6.1.0/bin
patching script interpreter paths in /nix/store/zhjwnv6qib92lg654nyi8dl71nbii41r-pmd-6.1.0
/nix/store/zhjwnv6qib92lg654nyi8dl71nbii41r-pmd-6.1.0/bin/run.sh: interpreter directive changed from "/bin/bash" to "/nix/store/pkjmwq7sqrvjg7cjiph6hq0khsmfl6p8-bash-4.4-p12/bin/bash"
/nix/store/zhjwnv6qib92lg654nyi8dl71nbii41r-pmd-6.1.0


Class not found exception 'com.azure.data.cosmos.sync.CosmosSyncClient'

I am using the Spring cloud Hoxton(2.2.x) release.
And when updating my library from 2.1.1-Fix to any higher version like 2.2.3.FIX1 i keep getting this class not found exception when starting the application.

Hi, @sombhattacharyya1983
Thanks for reaching out.
Could you please create an issue in the new repo?
And please share your pom in the new issue.


refresh AWS deployment doc + relevant includes

fixes #5661
fixes #4847
Possibly conflicts with #5317 as I updated to specify Network Load Balancer and not ALB. I  But judging from this comment, #5317 might not be a concern?

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/78dacf8d37b78b63f69d3a3f8ecad77c0bccbab1/
Edited pages:

v19.1/deploy-cockroachdb-on-aws-insecure.md
v19.1/deploy-cockroachdb-on-aws.md
v19.2/deploy-cockroachdb-on-aws-insecure.md
v19.2/deploy-cockroachdb-on-aws.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/452d68d2344e816fcb57fb1765c856f241b7a0ef/
Edited pages:

v19.1/deploy-cockroachdb-on-aws-insecure.md
v19.1/deploy-cockroachdb-on-aws.md
v19.2/deploy-cockroachdb-on-aws-insecure.md
v19.2/deploy-cockroachdb-on-aws.md

Hi @bdarnell, would you be able to review my updates to the following:
Regarding #4847:
_includes/v19.2/prod-deployment/synchronize-clocks.md
_includes/v19.2/faq/clock-synchronization-effects.md
Regarding #5317, can you confirm that NLB is indeed the requirement for deploying on AWS, and not ALB? I have tested an AWS deployment using an NLB and have specifically called this out in the instructions:
v19.2/deploy-cockroachdb-on-aws.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/1b6512796dbaffea1dd2cf78194a44b3c16f9c17/
Edited pages:

v19.1/deploy-cockroachdb-on-aws-insecure.md
v19.1/deploy-cockroachdb-on-aws.md
v19.2/deploy-cockroachdb-on-aws-insecure.md
v19.2/deploy-cockroachdb-on-aws.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/2ab851ea103522d728d6bc4caf883e37a0acd32b/
Edited pages:

v19.1/deploy-cockroachdb-on-aws-insecure.md
v19.1/deploy-cockroachdb-on-aws.md
v19.2/deploy-cockroachdb-on-aws-insecure.md
v19.2/deploy-cockroachdb-on-aws.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/2b54ece69bc7de764e6cbf73c1e6215547a580f3/
Edited pages:

v19.1/deploy-cockroachdb-on-aws-insecure.md
v19.1/deploy-cockroachdb-on-aws.md
v19.2/deploy-cockroachdb-on-aws-insecure.md
v19.2/deploy-cockroachdb-on-aws.md


Make cobertura an optional dependency

Most people probably don't want/need the Uberalls stuff, so make it a dynamic
class load if the Cobertura plugin is installed.
/r @jjx
Note that the dynamic class loading by String feels really weird to me, but I don't know Java well enough to know if there's a better way. Feel free to suggest.

@jjx updated with generic Provider/BaseProvider

@jjx all comments addressed. Any further issues?

:smile_cat:


merge from template-coveralls

package.json

chore(deps): add ^10.12.2 remove ^10.12.1 (devDependencies.npm-pkgbuild)

.github/workflows/ci.yml

chore(deps): remove -18 (jobs.test.strategy.matrix.node-version)

:tada: This PR is included in version 6.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
v6.1.0
GitHub release

Your semantic-release bot :package::rocket:


Remove StellarSDK import and add Operation

Remove the StellarSDK import because it is an undefined value and add the operation module in the import. This was causing this problem https://github.com/stellar/typescript-wallet-sdk/issues/103#issue-2175252006

huh, good catch thanks @yanielbf
It looks like importing the entire sdk comes up undefined in a React or React Native environment, but not in NodeJS. I left a ticket for the stellar-sdk team to take a look https://github.com/stellar/js-stellar-sdk/issues/931
I think we should remove all the StellarSDK imports to be safe

changing them all here
https://github.com/stellar/typescript-wallet-sdk/pull/112


Interview of Qubino ZMNHTD  is not finding the meter values for endpoint 1

Is your problem within Home Assistant (Core or Z-Wave JS Integration)?
YES, BUT a Home Assistant developer has told me to come here
Is your problem within ZWaveJS2MQTT?
NO, my problem is NOT within ZWaveJS2MQTT
Checklist

[X] I have checked the troubleshooting section and my problem is not described there.

[X] I have read the changelog and my problem was not mentioned there.

Describe the bug
The HA integration fails to be fed with values coming from the Qubino Meter (NodeId: 7) as, during the interview phase of such nodes, not all values are reported.
Accordingly to HA developer, the driver fails in correctly send information about the whole Instance 1 of the CommandClass 50 during the interview phase but only send data value changes for such instances.
As HA needs to know the datatype of all entities and their presence before evolving their states to new values, all data changes coming from an unknown/partially filled entity are discharged.
Therefore all of this data reported upward, such as
2022-01-09T16:48:41.576Z SERIAL « 0x01180004000712600d0100320221340000103d00000000000092              (26 bytes)
2022-01-09T16:48:41.578Z DRIVER   Node 7, Endpoint 1: Trying to access endpoint instance before Multi Channel in
                                  terview
2022-01-09T16:48:41.579Z DRIVER   Node 7, Endpoint 1: Trying to access endpoint instance before Multi Channel in
                                  terview
2022-01-09T16:48:41.580Z CNTRLR   [Node 007] [~] [Meter] value[66049]: 440.5 => 415.7               [Endpoint 1]
2022-01-09T16:48:41.584Z SERIAL » [ACK]                                                                   (0x06)
2022-01-09T16:48:41.588Z DRIVER « [Node 007] [REQ] [ApplicationCommand]
                                  └─[MultiChannelCCCommandEncapsulation]
                                    │ source:      1
                                    │ destination: 0
                                    └─[MeterCCReport]
                                        type:       Electric
                                        scale:      W
                                        rate type:  Consumed
                                        value:      415.7
                                        time delta: 0 seconds

are received
2022-01-09 16:48:41 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":7,"args":{"commandClassName":"Meter","commandClass":50,"endpoint":1,"property":"value","propertyKey":66049,"newValue":415.7,"prevValue":440.5,"propertyName":"value","propertyKeyName":"Electric_W_Consumed"}}}', extra='')

but not evaluated as the value_id='17-50-1-value-66049' is not registered.
Re-interviewing the node do not solve the problem
Device information
Manufacturer: Qubino
Model name: ZMNHTD
Node ID in your network: 7
How are you using node-zwave-js?

[ ] zwavejs2mqtt Docker image (latest)
[ ] zwavejs2mqtt Docker image (dev)
[ ] zwavejs2mqtt Docker manually built (please specify branches)
[ ] ioBroker.zwave2 adapter (please specify version)
[ ] HomeAssistant zwave_js integration  (please specify version)
[ ] pkg
[ ] node-red-contrib-zwave-js (please specify version, double click node to find out)
[X] Manually built from GitHub (please specify branch)
[ ] Other (please describe)

Which branches or versions?
version:
node-zwave-js branch: honestly, not idea. I think is included by zwavejs2mqtt
zwavejs2mqtt branch: master (Release 6.2.0)
Home assistant zwave_js integration Version: Home Assistant 2021.12.5
The node-zwave-js has been manually built from github from zwavejs2mqtt master version 6.2.0
Did you change anything?
no
If yes, what did you change?
No response
Did this work before?
Don't know, this is a new device
If yes, where did it work?
No response
Attach Driver Logfile
Attached the log files taken

during the interview of the node 7 started from HA and
during the subsequent restart of HA (which you may by not interested on)

There are a bunch of crazy things going on.
The lifeline association of the node is weird:
2022-01-09T16:38:23.486Z DRIVER « [Node 007] [REQ] [ApplicationCommand]
                                  └─[MultiChannelAssociationCCReport]
                                      group id:           1
                                      maximum # of nodes: 1
                                      node ids:
                                      endpoints:          0:1, 0:0

This is wrong on many levels. First it reports that it only accepts one destination, but reports two. Second it has a target node of 0, which is invalid. The controller is 1. Third (not shown here), it isn't possible to delete those - they just come back...

The node doesn't report support for the Multi Channel CC, so there is no endpoint 1.
2022-01-09T16:38:15.637Z CNTRLR « [Node 007] node info received
                                  supported CCs:
                                  · Z-Wave Plus Info
                                  · Basic
                                  · All Switch
                                  · Meter
                                  · CRC-16 Encapsulation
                                  · Configuration
                                  · Version
                                  · Manufacturer Specific
                                  · Powerlevel
                                  · Association
                                  · Multi Channel Association
                                  · Association Group Information
                                  · Device Reset Locally
                                  · Firmware Update Meta Data
                                  controlled CCs:
                                  · Basic

Since this is a Qubino device, I'm guessing you changed a configuration parameter that enables endpoint 1, but you did not exclude and re-include it like the manual tells you to.
Unless you do that, it's not possible to correctly interact with the device.

You were absolutely right.
This is one of the first nodes I have included in my network and it has been around for years before I decided to make it fully functional. I think it was included using [z-way] (https://z-wave.me/z-way) and I don't remember how I did it. Then I switched to HA with zwave support (now legacy) and never managed to get it to work with autonomous reports but was forced to poll it to get the values from it.
Now, I gave it another chance and wanted to refine it using the new integration which finally gave me access to the entire node configuration.
And yes, ** the exclusion and re-inclusion ** of the node make endpoint 1 disappear and all the necessary data is present consistently on instance 0.
Thanks for the exclude-include trick that I had no idea of and that I barely found in the manual and thanks again for the support and the wonderful project.
It's okay for me to close this ticket


Fix NPE when getting completions in arguments in function:call()

Purpose
$title
Fixes #38932
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Shall we also update the PR title to reflect what's actually being fixed/updated?

Shall we also update the PR title to reflect what's actually being fixed/updated?

I would mention the actual change (e.g., Set the symbol for function in BIR symbol enter) and include "Fix NPE when getting completions in arguments in function:call()" in the description.


Update metadata type

Fix  #1411
Checklist

[x] No CHANGELOG update needed

[x] No new tests needed

[x] No documentation update needed

@manasghandat  do you expect to be able to resume work on this PR and/or shall we lend a hand to close it out?

this was addressed in #1502


Change relative imports to absolute imports.

Address @aleksihakli comment.

LGTM @hramezani 👍

@aleksihakli Thanks :+1:
I am going to merge it if you approve it.

@hramezani approved as well :)


Modify the code for chinese prompt

If my prompt is in Chinese instead of English, how should I modify the code

It should work properly if the initial prompt is in Chinese.
However, we didn't test it on different languages, so there might be a need for small modifications for the meta-prompt (explicitly instructing the model to preserve the prompt language).
This is the relevant meta-prompts:
https://github.com/Eladlev/AutoPrompt/blob/main/prompts/meta_prompts_classification/step_prompt.prompt
I'm guessing that also the samples should be in Chinese, so you might also need to add here the language instructions:
https://github.com/Eladlev/AutoPrompt/blob/main/prompts/meta_prompts_classification/step_samples.prompt


HttpWebRequest.GetResponseAsync() does not respect the Timeout property

Prerequisites

[x ] I have written a descriptive issue title
[ ] I have verified that I am running the latest version of ImageProcessor
[ ] I have verified if the problem exist in both DEBUG and RELEASE mode
[x ] I have searched open and closed issues to ensure it has not already been reported

Description
Our web site uses the RemoteImageService and for the most part it works fine. But occasionally, one of the servers hosting some of our remote images can experience excessive load and starts responding very slowly. So mitigate the effect we have set a timeout of 3000 (milliseconds) in the <service> configuration settings in Security.config.
But this timeout doesn't seem to be applying. And I think I've figured out why:
The RemoteImageService uses the RemoteFile class to retrieve the file from origin, by building a HttpWebRequest, setting HttpWebRequest.Timeout and then calling GetResponseAsync(). See:
https://github.com/JimBobSquarePants/ImageProcessor/blob/963d8fd21badb3c0a9d58d3a486818c2683efce1/src/ImageProcessor.Web/Helpers/RemoteFile.cs#L176
and
https://github.com/JimBobSquarePants/ImageProcessor/blob/963d8fd21badb3c0a9d58d3a486818c2683efce1/src/ImageProcessor.Web/Helpers/RemoteFile.cs#L255
But according to the msdn documentation mentioned in in the link below, asynchronous requests on HttpWebRequest do not respect the Timeout property:

The Timeout property has no effect on asynchronous requests

https://stackoverflow.com/questions/26214337/timeout-behaviour-in-httpwebrequest-getresponse-vs-getresponseasync
Steps to Reproduce
Install ImageProcessor.Web Use /remote.axd with a URL that responds very slowly..
System Configuration
.NET Framework 4.6.1
ImageProcessor <IP_ADDRESS>
ImageProcessor.Web <IP_ADDRESS>
ImageProcessor.Web.Plugins.AzureBlobCache <IP_ADDRESS>
Running on Azure App Service

Good detective work! 👍
Would it be possible to submit a PR updating the RemoteFile class to use HttpClient? I don't know when I'll get the chance to do it myself.


[Feature request]: allow to load an html file when the pause fire

Version

[X] I'm using version 1.8.1

Existing requests

[X] I've checked Existing requests

What operating system are you using?
macOS
Operating System Version
MacOSX 10.13.6
Problem description
It would be great when a pause fire to allow to load an html page. (stored locally). It is something you could allow? Sincerely.
Possible solution
A clear and concise description of any alternative solutions or features you've considered.
Alternative solutions
A clear and concise description of what you want to happen.
Additional information
No response
Code of Conduct

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

Hi, what would be on such a website? I mean: JS, nodejs? With electron's security model, it would be easier for you to fork repo and edit break files as you wish.

No answer and I don't plan to implement this, so closing. Sorry.


Make StrCat effective for single rvalue string

Main motivation for me is patter like:
void SomeCall(Args&&...);

auto msg = StrCat(...);
LOG(unique_id, msg);
SomeCall(std::move(msg)); // internally have absl::StrCat for case when argument more than one or some of them not is string

Can you give a more concrete example?

This PR breaks users that are relying on the function signature/overload resolution. I ran it through our code base verify this and found lots of code that no longer builds.
I asked for a complete example so that I might be able suggest an alternative. If you want to provide a complete example maybe I can help.


No module named 'pytest_jsonreport'

Hello!
First of all thank you for this great lib.
The issue is the following error:
from pytest_jsonreport.plugin import JSONReport ModuleNotFoundError: No module named 'pytest_jsonreport'
when using the following snippet:
import pytest from pytest_jsonreport.plugin import JSONReport plugin = JSONReport() pytest.main(['test_foo.py'], plugins=[plugin])
however, using $ pytest --json-report --json-report-summary works fine
I'm using miniconda with a virtual env in Windows, using where pip command points to the correct pip executable with the correct virtual env name.
versions:
Python 3.7.3
pytest-json-report-1.0.3
pip 19.0.3
pytest  4.3.1 (displaying that this lib is a registered plugin)
thanks in advanced

Thanks for reporting! This lookup error is most likely not related to the plugin. Unfortunately I'm not familiar with Anaconda setups on Windows, so I can't give you a lot of useful advice on how to fix it.
Maybe running the failing script with python -v ... gives you a hint where Python is looking up the imports. Also, maybe using python -m pytest instead of pytest picks up the right pytest installation.
If you have reason to think this is a bug in this library, feel free to reopen the issue.


ML.NET ISSUE

@Kiansniper2005 commented on Mon Oct 21 2019
Problem encountered on https://dotnet.microsoft.com/learn/ml-dotnet/get-started-tutorial/create
Operating System: windows
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
When I right click on mlMLApp and add, there isn't an option there called machine learning. I ran the only .exe in the Microsoft.ML.ModelBuilder. The .exe was called: lightgbm.exe.

Install it: https://dotnet.microsoft.com/learn/ml-dotnet/get-started-tutorial/install

@Kiansniper2005 were you able to get it successfully installed?

Yes
On Wed, 30 Oct 2019, 22:40 Jake<EMAIL_ADDRESS>wrote:

@Kiansniper2005 https://github.com/Kiansniper2005 were you able to get
it successfully installed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dotnet/machinelearning-modelbuilder/issues/299?email_source=notifications&email_token=AHSUK3C35VTQVVSW2HZ44BDQRIEOJA5CNFSM4JEIMONKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECV75ZY#issuecomment-548142823,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHSUK3BSNBDCVD6GKDH7APLQRIEOJANCNFSM4JEIMONA
.

Resolved.


Question: What's a recommended way to store additional metadata during a coverage run?

Originally reported by Ardelean Vlad George (Bitbucket: vladiibine, GitHub: vladiibine)

Hi!
I'm looking for guidance for an idea that I have.
I'll present my goal, some steps that I took to research a direction to follow, and at the end, I will clarify my question.
High level goal:
I want to store and report the number of asserts that were executed. I want to display the assertions count together with the covered/not-covered status of lines. This would allow one to also know "how much" certain code was covered.
Steps that I took, or plan to take:
I looked at the internals of coverage, in order to find a place where I can plug some code in, so to store some metadata.
I noticed that the internal format used for storing data, wouldn't trivially allow storing more than the row numbers
I noticed that there's a C and a Python tracer. I don't know how I'd be able to modify the C one - probably I need to compile my own tracer based on that one - haven't done such things, so postponing this approach.
I took a look at the python tracer and as far as I could tell it's made to deal with line numbers and not much else. Probably the interfaces of the Python and C tracers are the same though, so it was interesting to see what it does. I noticed however that the tracer didn't get called for the functions I was testing. This means I probably missed something
There's then the obvious problem of counting the number of assert statements that are being run between executions of different portions of the app code - I will deal with that on my own. I have a vague idea how to do that, but this is not in the scope of this question.
So my question is:
How would you recommend I integrate my code with coverage.py?
Current idea:
Have a pytest plugin that counts asserts, and monkey-patches coverage, so that it can store and correlate assert-statement related data, to the line numbers reported by coverage.py
I know this question might be heavy. If you feel like what I'm trying to do exceeds the original plan for coverage, please let me know :) This is more of an experiment at the moment, and this question is part of the research that I'm doing.
Thanks a lot!
Awesome library btw :P

Bitbucket: https://bitbucket.org/ned/coveragepy/issue/652

commenting here as to not forget about the discussion. I made no more progress on this


wip

include bits use it)))

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Beygut sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the PR! Could you please re-open this PR with a more descriptive title?


Standard variable names in OBS

For cmorizing the observational data we adopt the CMOR standard from the CMIP5 Tables.
The problem is that the metadata defined in the CMIP6 Tables are sometimes different even for the same variable.
For example "Sea Ice Area Fraction" is sic in CMIP5 and siconc in CMIP6, and the mip is also different (OImon vs. SImon). In some cases even the units are different: "Mole Fraction of Ozone" is tro3 with units of 1.e-9 (ppb) in CMIP5 and o3 with units mol/mol in CMIP6.
Since we want our OBS to be usable across the various CMIP phase and we do not want to duplicate the data just changing the name or the units, we would need to find a way to map the CMIP5 metadata
to CMIP6 (or other projects if needed).
The idea would be to have a yml file containing this mapping, using the CMIP5 Tables as reference.
Would that work? @jvegasbsc @bouweandela @valeriupredoi

Adding to this issue, some ocean variables are already regridded to the atmospheric model grid and provided by the model groups. For example, siconc on the atmospheric grid is siconca. Thus, only a very simple 1-to-1 mapping between those variables is required.

@jvegasbsc already implemented something related to this, but I'm not sure if it covers this case:https://github.com/ESMValGroup/ESMValTool/blob/91246325f9737d3e0b39eec3515b26374776d986/esmvaltool/cmor/table.py#L66-L70

Good to know, thanks!
But I'm expecting this dictionary to grow, so it would be good to move it to a yml file.

Yes, there are a few variables that have been renamed from CMIP5 to CMIP6, as well as some tables. Good news is that the changes are making them more consistent.

Since we want our OBS to be usable across the various CMIP phase and we do not want to duplicate the data just changing the name or the units, we would need to find a way to map the CMIP5 metadata
to CMIP6 (or other projects if needed).
The idea would be to have a yml file containing this mapping, using the CMIP5 Tables as reference.

Or we can try to construct this at runtime by comparing the standard_name. It will be a bit more complicated to create but we will not have to worry about maintining in the long term.

About the units, we must choose a default project an use it for the default, but I think it will be nice to have them as an option in the preprocessor.

Or we can try to construct this at runtime by comparing the standard_name. It will be a bit more complicated to create but we will not have to worry about maintining in the long term.

If the standard name remains the same across the CMIP projects that would be indeed the best solution.

Hi @jvegasbsc , could this solution also be extended to solve the issue with observations that have old variable names? Like, for example, the sea ice concentration observations still have the variable name sic, which raises the error
esmvaltool._recipe_checks.RecipeError: Unable to load CMOR table 'OBS' for variable 'siconc' with mip 'SImon'.

Hi all, I'm having problems reading in siconca. I can read in siconc fine, but when I switch to siconca I get:
File "/mnt/lustre01/pf/b/b380746/ESMValTool-AR6/esmvaltool/_recipe.py", line 126, in _add_cmor_info
  format(cmor_table, short_name, mip))
esmvaltool._recipe_checks.RecipeError: Unable to load CMOR table 'CMIP6' for variable 'siconca' with mip 'SImon'

Hi all, I'm having problems reading in siconca.

I will take a look

Hi @jvegasbsc , could this solution also be extended to solve the issue with observations that have old variable names?

Yes, I will want a solution that works for all conventions we support

Ok, the automatic mapping is not possible. siconc and siconca are different variables but have the same standard_name

@npgillett : The way I got siconca to work was adding the line
    'sic': 'siconca',
to
_CMIP_5to6_varname = {       'sic': 'siconc',       'sit': 'sithick',       'tro3': 'o3',  }
in ESMValTool/esmvaltool/cmor/table.py
However, to my understanding there is currently no way to load siconc and siconca simultaneously in the same recipe.

Thanks very much for the help so far. But unfortunately this doesn't work for me. I changed ESMValTool-AR6/esmvaltool/cmor/table.py to include siconca instead of siconc:
    _CMIP_5to6_varname = {
        'sic': 'siconca',
        'sit': 'sithick',
        'tro3': 'o3',
    }

I still get the error:
  File "/mnt/lustre01/pf/b/b380746/ESMValTool-AR6/esmvaltool/_recipe.py", line 126, in _add_cmor_info
    format(cmor_table, short_name, mip))
esmvaltool._recipe_checks.RecipeError: Unable to load CMOR table 'CMIP6' for variable 'siconca' with mip 'SImon'

You can see my error log here:
/scratch/b/b380746/esmvaltool_output/test_attribute_20190311_172901/run/main_log_debug.txt
Also, even with the above change to table.py the receipe will still read in siconc - it appears not to be using _CMIP_5to6_varname at all.


question about django.db.models import F, MAX

When  I run python manage.py runserver one error "cannot import name F" which is related with mptt's managers.py is shown to me. Then I checked managers.py I found this F is in django.db.models. But when I checked django.db.models in django's file I couldn't find it. What's wrong with it? Thanks

Hi,
the F function is located in django/db/models/expressions.py
Maybe the problem is coming from your version of Django.

My django is 2.6. I am still confused about this problem.

Django 2.6 does not exist yet, but python 2.6 so.

ooops! My bad. Django is 1.3.1 python is 2.6


Remove cloudfront.net from Xtreme extension

Energized Protection - block ⚡

Let's make an annoyance free, better open internet, altogether!

Issue Submit Form

  Provide the following infos properly, which will help us to resolve your issue quickly.

Issue(s):
Type x in between [ ] and make sure there isn't any space between brackets. Example; for Your Selected Issue(s), type like this - [x]
You can select more than one category of issues if you need to!

[x] Whitelist
[ ] Blacklist
[ ] App Broken
[ ] Website Broken
[ ] Request
[ ] Other Issue

Pack(s):
Write the name of the pack(s) you are using.

Pack(s) Name: n/a

Extension(s):
Also name the extension(s) if you are using any. If you don't then leave it blank.

Extension(s) Name:  Xtreme

Domain(s):
If you are submitting this issue for whitelist/blacklist issue, send us the domain(s) for whitelisting/blacklisting here. Kindly use the Code Tag to prevent tracking.

Domain(s):

cloudfront.net

Your Config:
Just to ensure there is no issues or conflicts with other app/software/magisk module/extension/source list.
Make sure you are running Energized Protection Service only.

Client: Pihole

Version: 20.08.221

Details:
Write us a lil bit more about your issue or query. You can attach any screen shot or log of the issue or advert, this will help to highlight it.

Your Issue Detail:

cloudfront.net is a public suffix (see https://publicsuffix.org/list/public_suffix_list.dat). Subdomains of cloudfront.net can be blocked, but this domain itself should never be blocked.

Thank you for making Energized Protection great, with your kind help!
A project by Ador with ❤

particularly if you look at the services https://aws.amazon.com/cloudfront/customers that leverage the domain.

Blocking cloudfront.net is having the side-effect of blocking many sites, for example developer.mozilla.org, which is a CNAME to a .cloudfront.net subdomain.


RFP - iasl

Checklist

[x] The package I am requesting does not already exist on https://chocolatey.org/packages;
[x] There is no open issue for this package;
[x] The issue title starts with 'RFP - ';
[x] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL:  https://acpica.org/
Direct download URL for the software/installer:  https://acpica.org/sites/acpica/files/iasl-win-20210331.zip
Software summary/short description:  iASL is the ACPI source-code compiler and disassembler.
Related issue:  #1059.

Is this the package you are requesting: https://chocolatey.org/packages/iasl. There is no listed versions, which means it do not show up during a search on chocolatey.org. If this is not the package you are looking for, please update the issue title to something else that won't conflict with existing packages on chocolatey.org.

     Yes, that's an older, quite-outdated version of the package I'm requesting with this issue.

Yes, that's an older, quite-outdated version of the package I'm requesting with this issue.

The version aside, that is still the same package / software?

Yes, that's an older, quite-outdated version of the package I'm requesting with this issue.

The version aside, that is still the same package / software?

     Exactly.

@AdmiringWorm:

As the package exists, please follow the triage process for any further action on this software: https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process#the-triage-process

     Where, if I might ask?  It doesn't show up in any of:

'choco search iasl'
A search for 'iasl' in the Chocolatey Community Packages web tree
A search for 'iasl' in the 'chocolatey-community/chocolatey-packages' GitHub repository.

I'd ask if the 'iasl' package was a non-maintainer upload since, matching the documentation, it doesn't show up in the package web tree, but 'choco search' can't find it, either.

(This is kind of academic at this point, though, since I gave up on trying to build the UEFI shell that one time and never went back to make another attempt.)

It's at https://community.chocolatey.org/packages/iasl

     OK; thank you, @pauby.

@AdmiringWorm:

As the package exists, please follow the triage process for any further action on this software: https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process#the-triage-process

     This has now been started with warexify/chocolatey-edk2-buildtools#1, a PR to the package source's host GitHub repository.


Adding error unmarshalling event clarity

Seems to be a type issue in handling the GUILD_CREATE event in my case, I've also seen several others.  It's unclear to me what's actually happening under the covers.
2019/04/21 13:34:31 [DG0] wsapi.go:552:onEvent() error unmarshalling GUILD_CREATE event, json: cannot unmarshal string into Go struct field Game.timestamps of type float64

There seems to be a lot of these kinds of type-related issues being tossed around.  Maybe it would be a good idea to add some more clear logging as to what the underlying issue is so it's more clear what's happening?  I personally would like to have more insight into the event that my bot wasn't able to process.

The master branch doesn't appear to be completely up to date with the current payloads received from Discord

@bkuhl I agree actually and was thinking the same thing a couple days ago. What extra data would you like? Personally, I wouldn't mind seeing the user id, guild id, and maybe the value it's having a problem with.  I'm not sure if all of that can be added cleanly but it's worth looking into.

Those are the exact fields I'm thinking of.


Lint issues

Description (required)
Works on #171: Fix Lint errors/warnings
Tests performed (required)
All automated tests still pass
Tested 2.9.0-debug-lint-issues~453cd5ac on Samsung Galaxy S6 with API level 25.

Codecov Report

Merging #2114 into master will increase coverage by 0.02%.
The diff coverage is 1.44%.

@@            Coverage Diff            @@
##           master   #2114      +/-   ##
=========================================
+ Coverage    5.49%   5.52%   +0.02%
=========================================
  Files         231     231
  Lines       11546   11512      -34
  Branches     1075    1070       -5
=========================================
+ Hits          635     636       +1
+ Misses      10859   10824      -35
  Partials       52      52

Impacted Files
Coverage Δ

...va/fr/free/nrw/commons/explore/SearchActivity.java
0% <ø> (ø)
:arrow_up:

.../fr/free/nrw/commons/ui/widget/CustomEditText.java
0% <ø> (ø)
:arrow_up:

.../java/fr/free/nrw/commons/nearby/NearbyPlaces.java
0% <ø> (ø)
:arrow_up:

...nrw/commons/achievements/AchievementsActivity.java
0% <ø> (ø)
:arrow_up:

...java/fr/free/nrw/commons/delete/ReasonBuilder.java
0% <ø> (ø)
:arrow_up:

...ava/fr/free/nrw/commons/nearby/NearbyFragment.java
0% <ø> (ø)
:arrow_up:

...c/main/java/fr/free/nrw/commons/AboutActivity.java
0% <0%> (ø)
:arrow_up:

...fr/free/nrw/commons/media/MediaDetailFragment.java
0% <0%> (ø)
:arrow_up:

...w/commons/contributions/ContributionsFragment.java
0% <0%> (ø)
:arrow_up:

...free/nrw/commons/theme/NavigationBaseActivity.java
24.62% <0%> (+0.36%)
:arrow_up:

... and 18 more

Continue to review full report at Codecov.

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

If want to merge with #2151, I've already handled the conflicts in my lint-issues-spelling branch.

Thanks @domdomegg !


Simulation runs faster than camera framerate

I am running a gazebo plugin for simulating the Intel Realsense D435i. When I record a rosbag, the rate of frames is ridicoulously low (3.5Hz). By reducing the real_time_update_rate to 10 I can get something similar to 30Hz (what it should be), but I want to set the simulation so that everything runs as slow as needed to keep the framerate at some specified value.
Plugin code: https://github.com/m-tartari/realsense_gazebo_plugin/tree/49ab134fa517280bb8393e715173dc631ccc2557
Similar to https://github.com/gazebosim/gz-sensors/issues/332

Workaround is to lower real_time_update_rate until the framerate reaches 30fps.

Based on your use of realsense_gazebo_plugin, it sounds like you're using Gazebo-classic. This repo is for the new Gazebo. Can you confirm?

Based on your use of realsense_gazebo_plugin, it sounds like you're using Gazebo-classic. This repo is for the new Gazebo. Can you confirm?

I'm using gazebo classic. Where is the repo for that version?

https://github.com/gazebosim/gazebo-classic. I will mention that Gazebo-classic will be EOL in January, 2025 and there's minimal maintenance going on right now. I encourage you to switch to modern Gazebo (see https://gazebosim.org/docs/latest/migrating_gazebo_classic_ros2_packages/)


Feature Request : Additional solutions submissions popup submissions instructions

the bigger problem is that the solution.csv is not commensurate with the user inputs.
so for example if my solution.csv is:
id,modelcard,github,benchmark,score
1,tonic/stablemed,josephrp/stablemed/,accuracy,0.8

the user input in the submissions popup remains two descriptive fields.
to get around that painlessly the competition host might want to simply descrive the inputs required, which he can already do btw.
however experience with public facing applications that require user inputs tells us that every screen should have a reminder especially the last screen if multiple pieces of information a required.
hope this helps + good first issue !
Some thoughts how to resolve it in the context of the other and related open issue :
some kinda auto-gen-multi-parser that creates the gradio code for the compentition host inside competitions/create .
hey I'm a big fan + already made my first two competitions , keeping them long running , but not yet resolved on the competitions page ;-)

could you please share a bit more. what kind of competition it is? what do you want the user to submit and how you evaluate? or share the competition link? :)

hey I'm a big fan + already made my first two competitions , keeping them long running , but not yet resolved on the competitions page ;-)

thank you! ill try my best to help you fix the issue you are facing!

how are you evaluating the submissions? i dont see anything in the public leaderboard :) can you make a sample submission? or are you not able to make a submission at all?

here the model card is not getting refreshed (yet):
That part is still manual. We can add the competitions there once it starts working :)

so submissions actually fine
at least they show up in the dataset
for the script competition we'll evaluate it ... not sure yet, but there should be a time requirement and problem set. with an public benchmark and analogous private benchmark. basically. the topic is math olympics, so probably all past math olympics are the public dataset (i have to make it still, i suppose) , i also want to share some elements lifted from GAIR/MathPile . For the Monarch32K competitition , it's a bit more straightforward, i would like to folks to submit their models and datasets they used, we'll simply use those datasets to test them for the precision and analogous but private datasets for the competition leaderboard.
how does the leaderboard actually work, there's maybe a set solutions csv , and all submissions should be evaluated against that?


Updated the outdated screenshots

I updated the following outdated screenshots on From Peaks to Genes Tutorial issue 2401: login_register, upload_button, intro_02, and intro_summits

Thanks @rahmot. Could you rename all files with updated screenshots so they replace the previous ones? Thanks

@bebatut, what about renaming the updated screenshots with the previous name so that it automatically replaced them in the files?