[Kong 2.1.3][DB-less] Lua plugins cache missing docs

Hi all.
I'm trying to write a plugin in Lua to interact with a Eureka service registry for doing client-service discovery.
I saw it's possible to use a cache in Kong https://docs.konghq.com/2.1.x/plugin-development/entities-cache/ but I don't get:

if it's possible to use without a db (using some custom key);
how to use it. Here https://docs.konghq.com/2.1.x/pdk/ it's mentioned but then there no documentation for its API like the other modules. At the same time, I cannot find any cache.lua on Github.

Could you provide by chance some guidance here?

Just search our sources for kong.cache:get, it has signature of:
kong.cache:get( string) cache_key, (string|nil) options, (function) callback, ...)
The ... are options that are passed to callback. Callback will be called if the item is not found in cache, e.g. there you can make the client-service discovery.

It is equivalent to this: https://github.com/thibaultcha/lua-resty-mlcache#get

You can also cache to module level variable if you want. The kong.cache is implemented as LRU.

Oh, I see. Thank you.
One last question: do I need to explicitly create an instance of the cache through kong.cache:new or is it already created by the PDK?

It is already created by the PDK.


Use sys.executable to find python command.

This approach should work if python doesn't resolve to an interpreter (e.g. it's python3 on ubuntu distros)

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @damccorm


The code source

Hi! Sorry to bother you.
Do you tell me where the code from?
Is it presented by any publication? You know, paper or books?

This is my Paper. Have been accepted. It is expected to be published in the next few months, thank you for your recognition! We can talk whenever we want.

I have an application task to do.
May i use your code? If it has preprinted version, i will be enjoyable to cite it.

Ok！Thanks for your support, the online version of the paper will be updated to GitHub in the future.

Thank you very much.


FFMPEG "dimensions not set" error

**telly release with the issue: ** <IP_ADDRESS>, <IP_ADDRESS> (Those are the two releases I tried, both didn't work.)

Last working telly release (if known): None
Operating environment (Docker/Windows/Linux/QNAP, etc.): Linux

Description of problem:
I'm trying to use TellyTV on my QNAP NAS so that I can stream and record Freeview NZ TV on my Plex server. Whenever I try to open a stream from Plex, or record a show, Plex gives me a Could not tune channel. Please check your tuner or antenna.. FFMpeg also prints a large error in the log. Using TellyTV without FFMpeg enabled gives the same result, without the FFMpeg error.
Contents of telly.config.toml [if you're using a version above 1.1]:

REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

# THIS SECTION IS REQUIRED ########################################################################
[Discovery]                                    # most likely you won't need to change anything here
  Device-Auth = "telly123"                     # These settings are all related to how telly identifies
  Device-ID = 12345678                         # itself to Plex.
  Device-UUID = ""
  Device-Firmware-Name = "hdhomeruntc_atsc"
  Device-Firmware-Version = "20150826"
  Device-Friendly-Name = "telly"
  Device-Manufacturer = "Silicondust"
  Device-Model-Number = "HDTC-2US"
  SSDP = true

# Note on running multiple instances of telly
# There are three things that make up a "key" for a given Telly Virtual Tuner:
# Device-ID [required], Device-UUID [optional], and port [required]
# When you configure your additional telly instances, change:
# the Device-ID [above] AND
# the Device-UUID [above, if you're entering one] AND
# the port [below in the "Web" section]

# THIS SECTION IS REQUIRED ########################################################################
[IPTV]
  Streams = 1               # number of simultaneous streams that telly virtual tuner will provide
                            # This is often 1, but is set by your iptv provider
  Starting-Channel = 1  # When telly assigns channel numbers it will start here
  XMLTV-Channels = true     # if true, any channel numbers specified in your M3U file will be used.
  FFMpeg = true             # if this is uncommented, streams are buffered through ffmpeg;
                            # ffmpeg must be installed and on your $PATH
                            # if you want to use this with Docker, be sure you use the correct docker image
# if you DO NOT WANT TO USE FFMPEG leave this commented; DO NOT SET IT TO FALSE [Issue #185]

# THIS SECTION IS REQUIRED ########################################################################
[Log]
  Level = "info"            # Only log messages at or above the given level. [debug, info, warn, error, fatal]
  Requests = false           # Log HTTP requests made to telly

# THIS SECTION IS REQUIRED ########################################################################
[Web]
  Base-Address = "<IP_ADDRESS>:6077"   # Set this to the IP address of the machine telly runs on AS SEEN BY PLEX
                                  # telly will be telling Plex to connect to URLs at this address.
                                  # DO NOT REMOVE THE PORT
                                  # Just change the <IP_ADDRESS> to your IP address.
  Listen-Address = "<IP_ADDRESS>:6077" # this can stay as-is

# THIS SECTION IS OPTIONAL ========================================================================
#[SchedulesDirect]           # If you have a Schedules Direct account, fill in details and then
                             # UNCOMMENT THIS SECTION
#  Username = ""             # This is under construction; There is no provider
#  Password = ""             # that works with it fully at this time

# AT LEAST ONE SOURCE IS REQUIRED #################################################################
# COPY/PASTE THIS BLOCK TO ADD MORE SOURCES #######################################################
# THIS EXAMPLE WILL NOT WORK AS-IS ################################################################
[[Source]]
  Name = "Freeview NZ"                 # Name is optional and is used mostly for logging purposes
  Provider = "Custom"       # DO NOT CHANGE THIS
                            # "Custom" is telly's internal identifier for this 'Provider'
                            # If you change it to "SOMETHING ELSE", telly's reaction will be
                            # "I don't recognize a provider called 'SOMETHING ELSE'."
  M3U = "http://i.mjh.nz/nz/raw-tv.m3u8"  # This can be either URL or fully-qualified path.

  FilterKey = "" # Telly applies the regular expression to the contents of this key in the M3U.
  FilterRaw = false         # FilterRaw will run your regex on the entire line instead of just specific keys.
  Sort = ""      # Sort will alphabetically sort your channels by the M3U key provided
# END TELLY CONFIG  ###############################################################################

Command line used to run telly [if applicable]:

REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

./telly

Docker run command used to run telly [if applicable]:

REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

telly or docker log:
INFO[2020-11-23T18:16:55+13:00] telly is preparing to go live (version=<IP_ADDRESS>, branch=dev, revision=96424a4719f33de9c1b66d8d2186e0452e45a234)
INFO[2020-11-23T18:16:55+13:00] Loading M3U from http://i.mjh.nz/nz/raw-tv.m3u8
INFO[2020-11-23T18:16:55+13:00] Loaded 27 channels into the lineup from Freeview NZ
INFO[2020-11-23T18:16:55+13:00] telly is live and on the air!
INFO[2020-11-23T18:16:55+13:00] Broadcasting from http://<IP_ADDRESS>:6077/
INFO[2020-11-23T18:16:55+13:00] EPG URL: http://<IP_ADDRESS>:6077/epg.xml
INFO[2020-11-23T18:16:55+13:00] Lineup JSON: http://<IP_ADDRESS>:6077/lineup.json
INFO[2020-11-23T18:18:21+13:00] Serving channel number 1
INFO[2020-11-23T18:18:21+13:00] Remuxing stream with ffmpeg
INFO[2020-11-23T18:18:21+13:00] ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
INFO[2020-11-23T18:18:21+13:00]   built with gcc 4.9.2 (Debian 4.9.2-10)
INFO[2020-11-23T18:18:21+13:00]   configuration: --enable-cross-compile --arch=i686 --target-os=linux --disable-yasm --disable-static --enable-shared --enable-gpl --enable-libmp3lame --disable-libx264 --enable-libsoxr --enable-version3 --enable-nonfree --enable-openssl --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-decoder=eac3 --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-encoder=dca --disable-decoder=hevc --disable-decoder=hevc_cuvid --disable-encoder=hevc_nvenc --disable-encoder=nvenc_hevc --disable-decoder=h264 --disable-decoder=h264_cuvid --disable-encoder=libx264 --disable-encoder=libx264rgb --disable-encoder=h264_nvenc --disable-encoder=nvenc --disable-encoder=nvenc_h264 --disable-decoder=mpeg2video --disable-decoder=mpegvideo --disable-decoder=mpeg2_cuvid --disable-encoder=mpeg2video --disable-decoder=mpeg4 --disable-decoder=mpeg4_cuvid --disable-decoder=msmpeg4v1 --disable-decoder=msmpeg4v2 --disable-decoder=msmpeg4v3 --disable-encoder=mpeg4 --disable-encoder=msmpeg4v2 --disable-encoder=msmpeg4v3 --disable-decoder=mvc1 --disable-decoder=vc1 --disable-decoder=vc1_cuvid --disable-decoder=vc1image --disable-decoder=aac --disable-decoder=aac_fixed --disable-decoder=aac_latm --disable-encoder=aac --extra-ldflags='-L/root/daily_build/64_05/4.5.1/LinkFS/usr/lib -L/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/lib -Wl,--rpath -Wl,/usr/local/medialibrary/lib' --extra-cflags='-I/root/daily_build/64_05/4.5.1/LinkFS/usr/include -I/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/include -D_GNU_SOURCE -DQNAP' --prefix=/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary
INFO[2020-11-23T18:18:21+13:00]   libavutil      55. 58.100 / 55. 58.100
INFO[2020-11-23T18:18:21+13:00]   libavcodec     57. 89.100 / 57. 89.100
INFO[2020-11-23T18:18:21+13:00]   libavformat    57. 71.100 / 57. 71.100
INFO[2020-11-23T18:18:21+13:00]   libavdevice    57.  6.100 / 57.  6.100
INFO[2020-11-23T18:18:21+13:00]   libavfilter     6. 82.100 /  6. 82.100
INFO[2020-11-23T18:18:21+13:00]   libswscale      4.  6.100 /  4.  6.100
INFO[2020-11-23T18:18:21+13:00]   libswresample   2.  7.100 /  2.  7.100
INFO[2020-11-23T18:18:21+13:00]   libpostproc    54.  5.100 / 54.  5.100
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_264.m3u8' for reading
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_578.m3u8' for reading
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_928.m3u8' for reading
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_1660.m3u8' for reading
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_3360.m3u8' for reading
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_6660.m3u8' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_264/00161/master_264_01847.ts' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_578/00161/master_578_01847.ts' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_928/00161/master_928_01847.ts' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_1660/00161/master_1660_01847.ts' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_3360/00161/master_3360_01847.ts' for reading
INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_6660/00161/master_6660_01847.ts' for reading
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 3 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 4 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 6 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 7 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 9 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 10 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 12 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 13 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 15 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 16 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate
INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options
INFO[2020-11-23T18:18:24+13:00] Input #0, hls,applehttp, from 'https://i.mjh.nz/nz/tv.redbull.tv.m3u8':
INFO[2020-11-23T18:18:24+13:00]   Duration: N/A, start: 45766.509333, bitrate: N/A
INFO[2020-11-23T18:18:24+13:00]   Program 0
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00]     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00]     Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00]     Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00]   Program 1
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00]     Stream #0:3: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00]     Stream #0:4: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00]     Stream #0:5: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00]   Program 2
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:6: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:7: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:8: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00]   Program 3
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:9: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:10: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:11: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00]   Program 4
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00]     Stream #0:12: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00]     Stream #0:13: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00]     Stream #0:14: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00]   Program 5
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:15: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:16: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00]     Stream #0:17: Data: timed_id3 (ID3  / 0x20334449)
INFO[2020-11-23T18:18:24+13:00]     Metadata:
INFO[2020-11-23T18:18:24+13:00]       variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00] [mpegts @ 0xd7f560] dimensions not set
INFO[2020-11-23T18:18:24+13:00] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
INFO[2020-11-23T18:18:24+13:00] Stream mapping:
INFO[2020-11-23T18:18:24+13:00]   Stream #0:0 -> #0:0 (copy)
INFO[2020-11-23T18:18:24+13:00]   Stream #0:1 -> #0:1 (copy)
INFO[2020-11-23T18:18:24+13:00]     Last message repeated 1 times
INFO[2020-11-23T18:18:24+13:00] Stopped streaming 1
INFO[2020-11-23T18:18:24+13:00] Stopped streaming 1
http: superfluous response.WriteHeader call from github.com/gin-gonic/gin.(*responseWriter).WriteHeaderNow (response_writer.go:70)

Additional information:
It's set to use IPTV for Freeview NZ.

Found the issue. The NAS drive I was using TellyTV on had an older version of FFmpeg that did not work. Rather than updating the NAS drive's FFmpeg version and risking breaking something, I instead created a container/virtual machine on the NAS drive and ran it on there.


User story: Add new video recommendations

From Full-Stack-Project-Assessment created by Dedekind561: CodeYourFuture/Full-Stack-Project-Assessment#465
Background
Your website is getting better and better every day. You feel good and decide to watch some tutorial videos on YouTube.  However, you realise that currently the only way to add new items is to edit the database directly. That's not too convenient, so you set up to change this! Enhance your website's functionality by enabling users to add video recommendations directly and improving user experience.
User story 👩🏽💻

As a user, I want to add new videos, so I can save new video recommendations for later viewing

Required issues 🎫

[ ] #470
[ ] #471

https://deploy-preview-1--full-stack-project-group2.netlify.app/


Framework 'Key' type should have ToString/FromString

All over the project we convert strings to/from base58. When we implement a key handle type, we should give it a ToString() method and FromString constructor, to ensure consistency.
For public keys this can be the base58 key value, while for secrets it would be some unique string identifier.
In some cases we need to convert to a different format altogether (eg, base64), but those can be exceptions.

I suggest ToBase58() instead of ToString() to account for those exceptional cases


Line ending bug on windows

Hi,
I received a bug report on doctrine/doctrineMigrationsBundle for an elusive bug that only happen on windows. It looks like this code line is the cause of the issue. https://github.com/zendframework/zend-code/blob/master/src/Generator/MethodGenerator.php#L96
I guess that the assumption is that the first line will always be an empty one (aka only containing a new line). It works perfectly on linux but on windows the explode call might return the whole body of the function as one line. Explode will never find the windows line ending (\r\n) if the code was build on linux.
From that assumption, the issue could be fixed just by replacing the the PHP_EOL param with "\n" but I don't know what kind of side effect the trailling "\r"might cause.
Thanks for your time

Duplicate or linked to #39

So, just for your information, ran into this bug today. Just posting some information for you.
Started using XAMPP with PHP 7. doctrine/doctrineMigrationsBundle works with my migrations, but it only works before I run a composer update that updates  ocramius/proxy-manager from version 1.0.2 to 2.0.1, and zendframework/zend-code from 2.6.2 to 3.0.1. After the update, migrations no longer work and I get the Undefined offset: 1 error.
Also interesting that the line in question is the same on version 2.6.2 and 3.0.1. Let me know if you have any questions.  Replacing the PHP_EOL with "\n" allows the migration to work, as you pointed out.
$lines = explode(PHP_EOL, $body);

@jckeen Can you track down the behavior change between zend-code 2.6.2 and 3.0.1 with xdebug ?

So far I've been able to fix it by changing the following line _only _ and leaving the previously mentioned line untouched.
Zend\Code\Reflection\MethodReflection Line 231
from $functionLine = implode("\n", $lines);
to $functionLine = implode(PHP_EOL, $lines);
It seems like when it's getting Doctrine\DBAL\Schema\Schema.php it's adding the "\n". Then it's looking for PHP_EOL instead in: (
Zend\Code\Generator\MethodGenerator Line: 96
$lines = explode(PHP_EOL, $body);
By adding the PHP_EOL to line 231, it seems more consistent with what it's trying to do. I'm still trying to figure out exactly WHY this doesn't happen in 2.6.2 when these files are identical.
Side note: Zend\Code\Reflection\MethodReflection Line 194 is also using the "\n".
I'm unaware of the long term ramifications. Still playing around with it.

@mikeSimonson Ok, so I tracked down why it used to not happen. When I upgraded to PHP 7, ocramius/proxy-manager, which doctrine/migrations requires, updated from 1.* to 2.. The fromReflection method that throws the error in zend-code:
https://github.com/zendframework/zend-code/blob/master/src/Generator/MethodGenerator.php#L96
(which is identical in 2.6.2 and 3.0.1) was overwritten by ocramius\ProxyManager\Generator in 1., but in 2.* it calls the parent function from zend-code instead, which causes the error.

@jckeen Thanks

I ran into this issue as well. I haven't done a TON of testing on this yet, so hopefully I won't lead anyone astray but it looks like setting "auto_detect_line_endings = On" in php.ini on a Windows dev box potentially fixes the issue (on my machine using xampp it was commented-out by default). I'm basically two weeks into Symfony development so... YMMV but hopefully this will help someone.

I don't think that we want to tell people to change their config to use
that code.
Le ven. 25 mars 2016 01:10, Mick McCuen<EMAIL_ADDRESS>a écrit :

I ran into this issue as well. I haven't done a TON of testing on this
yet, so hopefully I won't lead anyone astray but it looks like setting
"auto_detect_line_endings = On" in php.ini on a Windows dev box potentially
fixes the issue (on my machine using xampp it was commented-out by
default). I'm basically two weeks into Symfony development so... YMMV but
hopefully this will help someone.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/zendframework/zend-code/issues/45#issuecomment-201080698

same issue :cry:

@503geek your suggestion doesn't seem to be working for me. The only workaround which works is what @mikeSimonson suggested.

I ran into this issue as well. The problem is caused by a mismatch between the systems line endings (PHP_EOL) and the actual file line ending.
This issue can be easily fixed (bonus: 100% backwards compatibility):
In file: https://github.com/zendframework/zend-code/blob/release-3.0.1/src/Generator/MethodGenerator.php:96
current:
$lines = explode(PHP_EOL, $body);
proposed:
$lines = explode("\n", preg_replace('/\r\n?/', "\n", $body));
explaination
The proposed solution replaces any non LF line ending (CR, CRLF), into LF.

@tiger-seo
Thanks for mentioning my name, it made me re-read my suggestion.
My suggested further improvement code is wrong; I should have double checked my "A further improvement could be" instead of quickly adding another thought.
It should be (I checked this time):
$lines = explode("\n", preg_replace('/\r\n?/', "\n", $body));
if (count($lines) > 0) {
	$indention = str_replace(trim($lines[1]), '', $lines[1]);
} else {
	$indention = '';
}

My sincere apologies.


Can tensorflow run on freescale ubuntu system?

I have one board called udoo neo (from www.udoo.org) ,which run ubuntu system .
I want to port tensorflow on it. How to do it step by step?

For step by step instructions, stackoverflow is probably the better forum.
But if the board runs Ubuntu, you should be able to follow the regular
installation instructions.
On Tue, Jan 19, 2016 at 20:41 david wang wei<EMAIL_ADDRESS>wrote:

I have one board called udoo neo (from www.udoo.org) ,which run ubuntu
system .
I want to port tensorflow on it. How to do it step by step?
—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/816.

Thanks for your answer!

HI. Did you get Tensorflow to work on the udoo neo?


keyv/redis is not detecting external redis instance

Hello,
I found a problem with keyv/redis.
When i try to use an existing redis instance as a parameter for keyv/redis, the library ignores it, and use the local default connection instead.
The origin is this line that uses instanceof to validate the redis instance, but validating against the local dependency of ioredis, not the external one.
I made a repo with the exemple: https://github.com/sebaplaza/keyv-redis-bug
Can we have a more flexible way to validate the redis client ?
Maybe declaring ioredis as a peerDependency ?
Thanks!

@sebaplaza thanks and we are looking into this more. We have been hesitate to declare ioredis as a dependency.

@jaredwray it works !
if (uri.options && uri.options.family) {

is a nice solution for this problem.
thanks !

@sebaplaza we just published @keyv/redis version 2.3.6 that has these changes in there.


Fixing installation method

Hi @dmvieira which kind of issue you are fixing?

I was installing and submiting your version for my internal packages repo using python2 and it breaks.
It's not an issue for python3. Can close if you want


Tracker tests

existing code in https://team.restarone.solutions/api_namespaces/4/api_actions/action_workflow
# get time tracker namespace
time_tracker = ApiNamespace.find_by(name: 'time_tracker')

format = "%Y-%m-%d"
if api_resource.properties['current_month'] == "true"
  api_resource.update(properties: api_resource.properties.merge({ start_date: Date.today.beginning_of_month.strftime(format), end_date: Date.today.end_of_month.strftime(format) }))
end

# get time tracker entries for the current user within the specified time
start_date = Date.parse(api_resource.properties['start_date'])
end_date = Date.parse(api_resource.properties['end_date'])
email = current_user.email
current_user_time_tracker_entries = time_tracker.api_resources.filter { |api_resource| api_resource.properties['email_address'] == email && api_resource.created_at.to_date >= start_date && api_resource.created_at.to_date <= end_date }

# add email of user requesting timesheet
api_resource.update(properties: api_resource.properties.merge({ requested_by: email }))

# get the consultant rate and check if they are active
consultant = ApiNamespace.includes(:api_resources).find_by(name: 'consultant').api_resources.find { |consultant| consultant.properties['email'] == email }

send_email = ->(email, subject, content, attachment) {
  email_thread = MessageThread.create(recipients: [email], subject: subject)
  email_message = email_thread.messages.create(content: content, from: "noreply@#{ENV["APP_HOST"]}")
  attachments = !attachment ? [] : [attachment]

  EMailer.with(message: email_message, message_thread: email_thread, attachments: attachments).ship.deliver_later
}

if consultant.nil?
  send_email.(email, "Unable to generate timesheet", "Please register as a consultant and add your work hours to request timesheet.", nil)
  return
end

if consultant.properties['active'].to_s.downcase == "false"
  send_email.(email, "Unable to generate timesheet", "Inactive consultants cannot request timesheet. Please contact administrator.", nil)
  return
end

rate = consultant.properties['rate'].to_d
total_hours = current_user_time_tracker_entries.sum { |entry| entry.properties['how_much_time_in_hours_spent'].to_d }

# construct the csv file
csv_string = CSV.generate do |csv|
  csv << ['', 'Rate', rate]
  csv << ['', 'Total Hours', total_hours]
  csv << ['', 'Grand Total', total_hours * rate]
  csv << ['', '', '']
  csv << ['Date', 'Hours', 'User', 'Client', 'Task', 'Notes']
  current_user_time_tracker_entries.map { |entry| csv << [entry.created_at.to_s, entry.properties['how_much_time_in_hours_spent'], entry.properties['email_address'], entry.properties['for_what_client'], entry.properties['what_task_did_you_work_on'], entry.properties['notes']] }
end

# email the created csv file as an attachment
email_content = csv_string.html_safe
subject = "Timesheet for #{current_user.email} from #{api_resource.properties['start_date']} to #{api_resource.properties['end_date']}"
attachment = { filename: "#{subject}.csv", mime_type: "text/csv", content: email_content }
content = "Please find your timesheet attached to this email"

send_email.(email, subject, content, attachment)

@atosh502 currently the timesheet request does not attach the generated CSV as an activestorage attachment to the email so the sender doesn't have a copy of the CSV.

Please update the code in the custom action to attach the CSV generated in memory to activestorage and then embed it into the email. This way we have a copy of the actual CSV that was sent.
See here for example: https://github.com/restarone/violet_rails/releases/tag/0.9.45
You can ask @Ayon95 if you have any questions

@atosh502 any updates on this?

@atosh502 it can't be like this. The code needs to be copied from the .yml file without any changes.
Please fix

ok @donrestarone got it

@atosh502 any updates on this?


BUG Fix: Events are now sorted in date ascending order

Fixes Issue #8089

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Okay let me take a look and see

Please check the PR now, I assume it was because my branch was not updated with the repository, I have updated it and now it should work fine.

Great collab 💪  thank you both!


Can all the source code put into just one file?

I hope to use this project in WPS Office JS Macro, but the only way to use it at present is to copy the whole source code into a module in WPS. If all the source code in this project were in just one file, it would be much more convenient to use it.

You can grab the single bundled JS file from : https://www.jsdelivr.com/package/npm/danfojs?path=lib

You can grab the single bundled JS file from : https://www.jsdelivr.com/package/npm/danfojs?path=lib

Thank you.


macOS cannot verify the developer of “terminus-1.0.139-macos-x86_64.pkg”

Version: 1.0.137
Platform: darwin 20.4.0
Plugins: clickable-links, save-output
Getting the following when trying to install latest beta on BigSur 11.3.1 (20E241)
macOS cannot verify the developer of “terminus-1.0.139-macos-x86_64.pkg”. Are you sure you want to open it?

Fixed, release updated


feat: custom conviction voting pallet for opengov

This PR uses conviction voting pallet from forked sdk repository rather than ac opy in hydration repo.

no longer relevant


fix pypy support?

after adding testing to the automated wheel building running via github actions, i noticed that the pypy wheel does not test ok. likely no new issue, just nobody noticed yet / complained yet.
when this issue is fixed, the pypy wheel building can be re-enabled.
see there:

c2ebdba78f45531d64c6b9158d5e6bce66b93c01
388796916273fe60b455d3eb6316c55c0492212e
#36 normal github actions CI with pypy-3.8 also fails (so it is a general issue, not just with the wheel)

just noted that the deflate 0.3.0 pypi release did not have a pypy wheel.

Depending on what the goal will be with supporting PyPy or not, we could adjust the pypi metadata in setup.py accordingly:
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy'

Seems like it's blocked on this:
https://foss.heptapod.net/pypy/pypy/-/issues/3837
I don't know if this is something we could work around or not, but not having used PyPy myself, I'm not inclined to spend much effort on it.

Seems like this would probably require using ctypes or CFFI - I'd imagine that would be a separate wrapper library. Closing this out.

Fixed in #50.


[Docs] Add documentation for what functions are invoked within the model.train method

Similar to the model.predict method, document the functions that are invoked inside the model.train method.

#self-assign

@cosmicBboy Please guide me where exactly is the page located in the repository.
The Edit button on the webpage showing 404.

Hi @cosmicBboy there is doc string for model.train method and also for all the internal invoked functions

#self-assign

#take


Difference between AzureAD module and AzureADPreview module

Hi,
thanks for this doc !
However, for more clarity, you should tell people that the PowerShell cmdlets documented in this page belong to the AzureADPreview PowerShell module that is not compatible with the AzureAD PowerShell module.
I posted something on that topic:
https://mosshowto.blogspot.com/2019/08/azure-ad-logs-powershell-azureadpreview.html

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

ID: 2a01fec2-4745-40f5-ac28-3e278e08e9f5
Version Independent ID: e34e1b92-a59a-b215-12c4-8d5613f3da2c
Content: Azure AD PowerShell cmdlets for reporting
Content Source: articles/active-directory/reports-monitoring/reference-powershell-reporting.md
Service: active-directory
Sub-service: report-monitor
GitHub Login: @cawrites
Microsoft Alias: chadam

Hi @FrankHu-MSFT,
thank you for your quick answer! No more question for me about this topic, happy if it could help,
:-)
Marc


Array argument definition says runtime type is T[] but it's really List

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Reproducible with this test:
https://github.com/benmccallum/fairybread/blob/f694e912780d1afa2dc799d3147fdb72bf04be86/src/FairyBread.Tests/ValidationMiddlewareTests.cs#L233
This may be specific to annotation-based, but it'd be worth checking SDL-first and code first.
The field resolver is defined as:
public string ReadWithArrayArg(FooInputDto[] foos) -> ...;

See the middleware, which looks at context.Field.Arguments[0].RuntimeType which equals FooInputDto[] and then gets the argument's value with context.ArgumentValue<object?>(argument.Name), but that value's runtime type is actually List<FooInputDto>.
I've noticed that context.Field is obsolete, so I'll try the new property to see if it's OK.
Update: context.Selection.Field also suffers the same issue.
Steps to reproduce

See above.

Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.0.0

Created a branch for this benmc/array-arg-def-bug

Seems to be an issue in the actual call to .Argument<object?>("x"), down in the InputParser.

InputParser::ParseLiteral gets a field that's still saying the correct runtime type...
Then it goes into ParseLiteralInternal which returns runtimeValue as a List
Then in ConvertValue, it's being passed the targetType of object, rather than the field.RuntimeType of T[]. So I guess it doesn't do a conversion...

Looks like it's a regression from #4037, though not really sure how to solve it or whether it's a fault from the calling side.
Perhaps if targetType is object, it could always use field.RuntimeType?


SignalR documentation improvements

Hey,
I added some additional documentation for the SignalR integration, especially things I wished were a bit clearer when I initially started using it:

I added further explanation for the specific differences each SignalR message envelope has
Added some information as to how exceptions or missing IDs are handled
Added a rough outline of how the flow of the message looks like, from publisher to client
Added a slightly more complex example to showcase how a Group message would look like
Added a hint as to why it makes sense to add a marker interface

The documentation is now in the doc folder, using Nuxt Content. If you'd like to transplant these changes into the new file, that would be great:
https://github.com/MassTransit/MassTransit/blob/develop/doc/content/3.documentation/5.configuration/integrations/1.signalr.md


[HELP] translate book

I would love to participate in a translation of the book, it helps a lot in learning, but I haven't found ways to contribute in this way, any tips on how I can start translating and publishing?
PS: my language is portuguese

Thank you! :smile:

Thank you! :smile:


bug: checkhealth causes crash

Did you check docs and existing issues?

[X] I have read all the noice.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of noice.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
Nightly
Operating system/version
Ubuntu 22.04
Describe the bug
nvim segfaults and returns to the command line
Steps To Reproduce

run :checkhealth vim.lsp
with that still open run :checkhealth vim.deprecated
Observe crash

Alternatively
Run :checkhealth noice twice
Expected Behavior
No crash
This doesnt happen with nvim --clean and doesn't happen if you :bd to close the existing tab first
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/noice.nvim", opts = {} },
  },
})

Noice doesn't do anything with :checkhealth. Also, whenever Neovim crashes, that's due to bugs in NEovim.
Full stacktrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  frame2win (frp=frp@entry=0x0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3474
[Current thread is 1 (Thread 0x7ec9ca4b6740 (LWP 3076343))]
#0  frame2win (frp=frp@entry=0x0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3474
#1  0x00005dc023a13029 in winframe_find_altwin (win=win@entry=0x5dc03638fd40, dirp=dirp@entry=0x7fffa8cde05c, tp=tp@entry=0x5dc0363b36d0, altfr=altfr@entry=0x7fffa8cddfe0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3211
#2  0x00005dc023a14c56 in winframe_remove (win=win@entry=0x5dc03638fd40, dirp=0x7fffa8cde05c, tp=tp@entry=0x5dc0363b36d0, unflat_altfr=unflat_altfr@entry=0x0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3148
#3  0x00005dc023a17800 in win_free_mem (win=win@entry=0x5dc03638fd40, dirp=dirp@entry=0x7fffa8cde05c, tp=tp@entry=0x5dc0363b36d0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3072
#4  0x00005dc023a17a8a in win_close_othertab (win=win@entry=0x5dc03638fd40, free_buf=free_buf@entry=0, tp=tp@entry=0x5dc0363b36d0) at /home/runner/work/neovim/neovim/src/nvim/window.c:3050
#5  0x00005dc023a1b0bf in close_windows (buf=0x5dc03623af70, keep_curwin=<optimized out>) at /home/runner/work/neovim/neovim/src/nvim/window.c:2510
#6  0x00005dc0237d4b93 in do_buffer_ext (action=action@entry=4, start=start@entry=1, dir=dir@entry=1, count=<optimized out>, count@entry=24, flags=flags@entry=0) at /home/runner/work/neovim/neovim/src/nvim/buffer.c:1401
#7  0x00005dc0237d500d in do_buffer (action=action@entry=4, start=start@entry=1, dir=dir@entry=1, count=count@entry=24, forceit=forceit@entry=0) at /home/runner/work/neovim/neovim/src/nvim/buffer.c:1582
#8  0x00005dc0237d50a8 in do_bufdel (command=4, arg=<optimized out>, addr_count=1, start_bnr=<optimized out>, end_bnr=24, forceit=0) at /home/runner/work/neovim/neovim/src/nvim/buffer.c:1100
#9  0x00005dc0238673fe in ex_bunload (eap=0x7fffa8cde920) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:4494
#10 0x00005dc02385eaf0 in execute_cmd0 (retv=retv@entry=0x7fffa8cde244, eap=eap@entry=0x7fffa8cde920, errormsg=errormsg@entry=0x7fffa8cde248, preview=preview@entry=false) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:1714
#11 0x00005dc02385f155 in execute_cmd (eap=0x7fffa8cde920, cmdinfo=<optimized out>, preview=<optimized out>) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:1796
#12 0x00005dc02379a88c in nvim_cmd (channel_id=9223372036854775809, cmd=<optimized out>, opts=0x7fffa8cdebb7, arena=0x7fffa8cdebd0, err=0x7fffa8cdebc0) at /home/runner/work/neovim/neovim/src/nvim/api/command.c:646
#13 0x00005dc0238b5c35 in nlua_api_nvim_cmd (lstate=0x7ec9ca7f3380) at /home/runner/work/neovim/neovim/build/src/nvim/auto/lua_api_c_bindings.generated.h:1780
#14 0x00005dc023a9dc66 in lj_BC_FUNCC ()
#15 0x00005dc023a89e96 in lua_pcall (L=L@entry=0x7ec9ca7f3380, nargs=nargs@entry=2, nresults=nresults@entry=1, errfunc=errfunc@entry=-4) at lj_api.c:1122
#16 0x00005dc0238c5c95 in nlua_pcall (lstate=0x7ec9ca7f3380, nargs=2, nresults=1) at /home/runner/work/neovim/neovim/src/nvim/lua/executor.c:174
#17 0x00005dc0238d2cb8 in nlua_exec (str=..., args=..., mode=kRetNilBool, arena=0x0, err=0x7fffa8cdee70) at /home/runner/work/neovim/neovim/src/nvim/lua/executor.c:1561
#18 0x00005dc02386d224 in ex_checkhealth (eap=0x7fffa8cdf380) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:7694
#19 0x00005dc02385eaf0 in execute_cmd0 (retv=retv@entry=0x7fffa8cdf374, eap=eap@entry=0x7fffa8cdf380, errormsg=errormsg@entry=0x7fffa8cdf378, preview=preview@entry=false) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:1714
#20 0x00005dc0238600a9 in do_one_cmd (cmdlinep=cmdlinep@entry=0x7fffa8cdf5c8, flags=flags@entry=0, cstack=cstack@entry=0x7fffa8cdf650, fgetline=fgetline@entry=0x5dc0238752ab <getexline>, cookie=cookie@entry=0x0) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:2358
#21 0x00005dc023860df2 in do_cmdline (cmdline=<optimized out>, fgetline=0x5dc0238752ab <getexline>, cookie=0x0, flags=0) at /home/runner/work/neovim/neovim/src/nvim/ex_docmd.c:667
#22 0x00005dc02392187f in nv_colon (cap=0x7fffa8cdfc70) at /home/runner/work/neovim/neovim/src/nvim/normal.c:3191
#23 0x00005dc02391b968 in normal_execute (state=0x7fffa8cdfc00, key=<optimized out>) at /home/runner/work/neovim/neovim/src/nvim/normal.c:1243
#24 0x00005dc0239bf4f4 in state_enter (s=0x7fffa8cdfc00) at /home/runner/work/neovim/neovim/src/nvim/state.c:102
#25 0x00005dc02391a2de in normal_enter (cmdwin=<optimized out>, noexmode=<optimized out>) at /home/runner/work/neovim/neovim/src/nvim/normal.c:521
#26 0x00005dc0238d9442 in main (argc=2, argv=<optimized out>) at /home/runner/work/neovim/neovim/src/nvim/main.c:660


PostCSS Version

Wanted to suggest a minor change in the PostCSS version from
"dependencies": {
    "chalk": "^1.0.0",
    "diff": "^2.0.2",
    "es6-promise": "^3.0.2",
    "postcss": "^5.0.0"
  },

to
"dependencies": {
    "chalk": "^1.0.0",
    "diff": "^2.0.2",
    "es6-promise": "^3.0.2",
    "postcss": "^5.0.14"
  },

PostCSS v5.0.14 is included in the semantic version range ^5.0.0, to update just run npm update
You can test this yourself and see semantic versioning in action http://semver.npmjs.com/

That said, https://github.com/nDmitry/grunt-postcss/pull/84 will also update/fix/resolve this issue

Sounds good. Thanks for putting in the PR.


Allow editing results before saving

In case you got a question wrong because of a typo or a mistake in the quiz file

Closing this as you can always go into the actual results file if you're really motivated, but I don't think it should be part of the app's functionality.


Changed official spelling of Republic of Belarus in Russian language

Changed spelling for the name of Republic of Belarus in Russian language to match official.
( tldr http://www.un.org/ru/member-states/index.html#bh )

Thanks @boajer for the nice PRs 👍
Would you please confirm this change with reference, as I've searched Github & found almost all references for Belarus spelling in Russian to be correct. I know you're the man, you're Belarusian so I shouldn't argue with you, but just need some reference for that changed spelling 😄

@Omranic, thank you for digging in this question, hope I will not overwhelm you with details.
In my original comment I've post link to  United Nation members list, were you could find how it's actually listed ( http://www.un.org/en/member-states/index.html )
You also can check for example http://president.gov.by/en/state_en/
The difference between Беларусь and Беларуссия  is related to our colonial history, after
the collapse of the Soviet Union we've changed official spelling to Республика Беларусь or as short but still  legal form Беларусь.
So 'Белоруссия' carries a derogatory meaning with political background, and mostly used somethings  in Russian yellow press and Left-wing politics groups.
As one more link to read I ask you to read following article https://www.theguardian.com/world/2014/sep/02/belarus-offended-damages-russian-media
Please let me know if it's not enough 😄

Oh man, that's more than enough, thanks a lot 😄
I guess you've a good chance to clear this out by contributing this fix to other packages on Github, just a simple search reveals the old naming across many repos here.
Thanks again @boajer 👍


ACM-14254 Openshift Virtulization Credentials support

Description
This PR is for ticket
Acceptance Criteria

[x] Adds External infrastructure support to OpenShift Virtualization Credential
[x] Adds Unit tests

/retest

/retest-required

/retest-required

/retest

/retest

/retest

/retest

/retest


⚠ Bofrost.de has degraded performance

In 9dac26e, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1584 ms

Resolved: Bofrost.de performance has improved in 4cc4b27 after 6 minutes.


implement "Check license and license URL entries"

There's some code from the old codebase that is commented out and that can be ported.

I am surprised that there is unported code remaining. How many lines of unported code are there?


Rework of train_model function

I reworked the metric-handling in the train_model function by changing the following:

Adding metrics. The metric calculations are still fully based on the scikit-learn. It now tracks the following:

ACC, MCC, and AUROC (new) for single- and multi-class classification
ACC (new), MCC (new), LRAP, and NDCG for multilabel classification
MSE, MAE (new), and R2 (new) for regression

Weighting of the metrics when summarizing based on individual batch sizes (the last batch might be smaller than the others). It only has minor effects, but it is still more precise.
The best performances are now taken from the best model (not the best ever-seen value which might come from a different model).
The best model is determined based on the lowest loss value (applies to all classification and regression settings).
The function has a new boolean parameter return_metrics, which defaults to False to preserve the old behaviour. If set to True, the function returns the best model and all training and validation metrics as a tuple of type Tuple[torch.nn.Module, dict["train": dict[...], "val": dict[...]]].
Added comment to the optimizer argument that it has to be a SAM optimizer for classification settings. The standard optimizers like Adam don't have first_step and second_step functionality.
Telling names. Before, best_acc could have been an actual accuracy, an MSE, or some LRAP. This functionality has been replaced by a variable called best_lead_metric that is inferred from the validation ACC, MSE, or LRAP.

The new code is tested for a LectinOracle training (works) and should not tamper with the old behaviour, i. e., everything possible before, is still possible. Only the selection of the best model has changed to be loss-based and not lead-metric-based (best_acc before).

Thank you & great job!
But could you merge into dev instead? Since the documentation is generated from master, any development work could/would derail, or at least alter, the documentation of the currently stable version. We'll then roll it into master with v1.5


createSitemapsAndIndex not on streams?

I see huge changes, congrats. Streams everywhere!
But what about createSitemapsAndIndex? I have 20kk pages. ican't load them at once, since they don't even fit in my RAM. I was hoping to use streams to generate sitemaps and index.

@bdrtsky Its being actively worked on by a contributor. Feel free to chime in #258. The short story is that it is the most difficult thing to do correctly so rather than hold up the rest of the code, it was carved off.
For what its worth though I think you'll be happy with memory consumption. As that went down from > 1gb to ~70mb for 20k urls


Filter Listener Status by Address/Topic.

Currently, If one listener (one opened port) is listening to 2 account statuses and one raises an error, both Observable will receive the same status error when just the one failing should receive it.
The current workaround is having one listener/port per account. That doesn't scale well.
Rest is adding the address/topic to the payload. We can add a filter to the status's subscribeTo
https://github.com/nemtech/catapult-rest/pull/169
The filter should be added here:
https://github.com/nemtech/nem2-sdk-typescript-javascript/blob/master/src/infrastructure/Listener.ts#L310

There is a bug in catapult-rest I fixed in a PR.
https://github.com/nemtech/catapult-rest/pull/174
This needs to be merged in catapult-rest in order to get the correct encoded address string.

Fixed in master


Add ability to set SparkPost transmission options

This adds the ability to set options as defined in the SparkPost transmission API documentation:
https://developers.sparkpost.com/api/transmissions/#header-request-body
Note that the options value is passed as-is to the JSON body sent to SparkPost.
I could not find any test for the SparkPost adapter, but in case I missed something and additional tests are needed, please let me know.

Hi @florish , just letting you know I've seen this PR. Recent travis integration change has caused me some issue maintaining this project. I'm waiting for some help from the original owner. Thanks for the contribution!


Trusted sites not always remembered

"Config.json" file get corrupted after several calls

Fixed in fb712acd23440c55ab3bed4d6fbaa9e221ef8340


Bug: Linter fails to property delimit frontmatter tags separated by commas

Describe the Bug
If a note's frontmatter contains tags that are delimited by a comma without a trailing space, linter treats them as a single tag.
How to Reproduce
I have attached the data.json file. data.json.txt
Example 1
include in frontmatter YAML:
tags: tag1,tag2
Example 2
include in frontmatter YAML:
tags: tag1,tag2, tag3
Linting the file produces an incorrect result when the tags array is split into a multiline array:
Example 1 produces no result, even though it contains two tags.
Example 2 produces a note that now only contains 2 tags ("tag1,tag2" and "tag3") even though before linting the note contained three tags.
Expected Behavior
Linter should parse the tags array exactly how Obsidian parses the tags array.
Example 1 should produce a multiline tags array with two tags.
Example 2 should produce a multiline tags array with three tags.
Device

[x] Desktop
[?] Mobile

Thanks for reporting this issue. I am not sure how to best handle this situation. I don't have access to the exact logic Obsidian uses to parse the YAML, so using it is out of the question in the Linter itself since I need a way to UT this and that would prevent me from effectively and confidently doing so.
I could loosen the standard for all YAML arrays, to break it apart on a , instead of , , though this could lead to other issues. This will likely need to be tested out.

Here is the logic that needs modification for dev reference later: https://github.com/platers/obsidian-linter/blob/master/src/utils/yaml.ts#L193-L199
Hopefully it can be fixed quickly later on today or before the next release.

This should be fixed on master and in the next release. Please let us know if this is not the case.

Confirmed this is fixed.
Thank you.

Good to hear. Hopefully it will go smoothly from here.


Add Lineage support for Kafka Connect

Is your feature request related to a problem? Please describe.
While working with Kafka Topics, we use Kafka Connect to transport data from different sources and sinks such as S3, Hive, and others.
Describe the solution you'd like
We would love the possibility to register our Kafka Connect processes to Open Metadata in order to show them on Lineage.
This solution would be a sort of Messaging Service lineage.
Describe alternatives you've considered
Metadata could be fed using an API or an ingestion pipeline

Ill be working on this


[BUG] doom update hangs, errors & timeouts

Describe the feature
When module git branch (eg. org-ql) has a hard reset and new commits on top of it, doom update just hangs. I need to manually go to $HOME/.emacs.d/.local/straight/repos/<module>, do git reset --hard HEAD~50, and then doom update works fine.
Least doom should do is report such an issue and proceed with upgrading of next module.
System information

((emacs
  (version . "26.3")
  (features . "XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2")
  (build . "Aug 29, 2019")
  (buildopts "--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now")
  (windowsys . batch)
  (daemonp . server-running))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop 3f7e0fd10 2019-09-29 23:12:43 -0400"))
 (system
  (type . gnu/linux)
  (config . "x86_64-pc-linux-gnu")
  (shell . "/usr/bin/zsh")
  (uname . "Linux 5.3.1-arch1-1-ARCH #1 SMP PREEMPT Sat Sep 21 11:33:49 UTC 2019 x86_64")
  (path "~/.nix-profile/bin" "~/.local/bin" "~/go/bin" "~/.opam/azuracast-stats/bin" "/tmp/fnm-shell-240216/bin" "~/.gem/ruby/2.2.0/bin" "~/perl5/bin" "~/.gem/ruby/2.1.0/bin" "~/bin" "~/.cabal/bin" "~/.cargo/bin" "~/.nix-profile/bin" "~/.local/bin" "~/go/bin" "~/.opam/azuracast-stats/bin" "/tmp/fnm-shell-9408123/bin" "~/.gem/ruby/2.2.0/bin" "~/perl5/bin" "~/.gem/ruby/2.1.0/bin" "~/bin" "~/.cabal/bin" "~/.cargo/bin" "/usr/local/sbin" "/usr/local/bin" "/usr/bin" "/opt/android-ndk" "/opt/android-sdk/platform-tools" "/usr/lib/emscripten" "/usr/lib/jvm/default/bin" "/usr/bin/site_perl" "/usr/bin/vendor_perl" "/usr/bin/core_perl" "/usr/lib/emacs/26.3/x86_64-pc-linux-gnu" "~/.nvm/versions/node/v8.10.0/bin" "~/.nvm/versions/node/v8.10.0/bin"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company (ivy +fuzzy) :ui doom doom-dashboard doom-quit hl-todo indent-guides modeline nav-flash neotree ophints (popup +all +defaults) pretty-code treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors parinfer rotate-text snippets :emacs (dired +ranger +icons) electric vc :term eshell :tools direnv docker eval flycheck gist (lookup +docsets) lsp magit make pass pdf :lang data erlang emacs-lisp fsharp go (haskell +intero) hy javascript latex lua markdown nix ocaml (org +dragndrop +ipython +pandoc +present) perl purescript python racket rust sh web :email notmuch :app calendar irc :config (default +bindings +smartparens))
  (packages add-node-modules-path doom-themes emms helm-org-rifle hledger-mode keyfreq ledger-mode general golden-ratio org-mime org-ql "(org-sidebar :recipe (:host github :repo \"alphapapa/org-sidebar\"))" posframe reason-mode repl-toggle salt-mode tuareg "(vc-fossil :recipe (:host github :repo \"venks1/emacs-fossil\" :branch \"trunk\"))")
  (elpa "s" "posframe" "general" "async")))

Yep, happened a couple of times for me too and a git reset to the parent commit was the fix.

Folks have reported several issues with doom upgrade.
I am aware of these and am working on a solution, and have decided to use this issue as a catch-all for them. For the time being, here are the common issues and their respective workarounds:
doom upgrade hangs indefinitely while updating some packages
You'll need to delete said package(s) manually from ~/.emacs.d/.local/straight/{build,repos}/, then run doom refresh -f.
"No upstream configured for branch" errors
Example:
There was an unexpected error:
  error (error)
Wrong type argument: listp, "There were errors:

   - company-anaconda: ((error Failed to run \"git\"; see buffer *straight-process*) fatal: no upstream configured for branch 'master')
   - anaconda-mode: ((error Failed to run \"git\"; see buffer *straight-process*) fatal: no upstream configured for branch 'master')"

Same solution as above: delete the listed packages manually.
Threads time out frequently.
Example:
```
 .
  .
  ! A thread has timed out. The following packages were skipped: melpa, gnu-elpa-mirror, emacsmirror-mirror, straight, bind-key, async, dotenv-mode, auto-minor-mode, all-the-icons, hide-mode-line, highlight-numbers, rainbow-delimiters, restart-emacs, better-jumper, dtrt-indent, helpful, ns-auto-titlebar, pcre2el, smartparens, so-long, osx-clipboard, undo-tree, ws-butler, projectile
  . 11%
  . 22%
  . 33%
  . 44%
```

For this, you'll need to either:

Increase the timeout (from the default 45s): doom upgrade -t 160 or
Delete the packages listed in the "thread has timed out" message from ~/.emacs.d/.local/straight/{build,repos}/, then run doom refresh -f.

Doom throws "file-missing" errors at startup after doom upgrade
This means the autoloads files weren't generated correctly. doom refresh -f should address this. If not, run doom rebuild -f.

I'll keep you posted.

Thank you for your hard work on the whole project!
Przemek
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, October 7, 2019 11:18 PM, Henrik Lissner<EMAIL_ADDRESS>wrote:

Folks have reported several issues with doom upgrade.
I am aware of these and am working on a solution, and have decided to use this issue as a catch-all for them. For the time being, here are the common issues and their respective workarounds:
doom upgrade hangs indefinitely while updating some packages
You'll need to delete said package(s) manually from ~/.emacs.d/.local/straight/{build,repos}/, then run doom refresh -f.
"No upstream configured for branch" errors
Example:
There was an unexpected error:
error (error)
Wrong type argument: listp, "There were errors:

company-anaconda: ((error Failed to run "git"; see buffer straight-process) fatal: no upstream configured for branch 'master')
anaconda-mode: ((error Failed to run "git"; see buffer straight-process) fatal: no upstream configured for branch 'master')"

Same solution as above: delete the listed packages manually.
Threads time out frequently.
Example: . . ! A thread has timed out. The following packages were skipped: melpa, gnu-elpa-mirror, emacsmirror-mirror, straight, bind-key, async, dotenv-mode, auto-minor-mode, all-the-icons, hide-mode-line, highlight-numbers, rainbow-delimiters, restart-emacs, better-jumper, dtrt-indent, helpful, ns-auto-titlebar, pcre2el, smartparens, so-long, osx-clipboard, undo-tree, ws-butler, projectile . 11% . 22% . 33% . 44%
For this, you'll need to either:

Increase the timeout (from the default 45s): doom upgrade -t 160 or
Delete the packages listed in the "thread has timed out" message from ~/.emacs.d/.local/straight/{build,repos}/, then run doom refresh -f.

Doom throws "file-missing" errors at startup after doom upgrade
This means the autoloads files weren't generated correctly. doom refresh -f should address this. If not, run doom rebuild -f.

I'll keep you posted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Disable package verifier on physical Android devices

Description
As reported in: https://github.com/dotnet/dnceng/issues/3656 we are seeing more and more test failures on physical Android devices due to package installation failure. This problem exists for a while and affects dotnet/arcade and dotnet/xharness CI.
The issue is escalating as we are in the process of repo migration and it requires green CI and full test coverage.
The problem happens as some of the tethered devices are not configured correctly, and have package verifier enabled, which blocks installing debug apks we use in our tests. From our observation, it is possible that the settings got changed as some of the tethered devices got factory reset recently which made them have different defaults than what is expected for testing.
Ask

We would like to ask that all tethered Android devices in the windows.11.amd64.android.open queue get configured by executing the following adb commands which are required to disable package verification during installation:
adb.exe -s <DEVICE_ID> shell settings put global verifier_verify_adb_installs 0
adb.exe -s <DEVICE_ID> shell settings put global package_verifier_enable 0

Include the above commands as a requirement for the initial device configuration - that happens after a factory reset or on a fresh device enrolment.

Additional note
Checking if the devices are properly configured can be done by executing:
adb.exe -s <DEVICE_ID> shell settings get global verifier_verify_adb_installs
adb.exe -s <DEVICE_ID> shell settings get global package_verifier_enable

where both commands should return 0 (not null!).

/cc: @ilyas1974

ICM created for the DDFUN - https://portal.microsofticm.com/imp/v5/incidents/details/553412565

This has been completed.


Safari rendering issue.

I am using dTree to create a family tree. I am using custom node to create nodes. It is working fine on Chrome but not working on Safari. Nodes are not rendered properly.

JSFidle link.

Added jsfiddle link

Hi!
I have had a look at your code and it's hard for me to figure exactly what's wrong. My best suggestion is using the library directly (without hacking the dTree source code) with the callbacks. Then successively adding more adding more complex nodes through the callback nodeRenderer.
I've modified the example on jsfiddle to use the callback and this works fine in both chrome and safari.
https://jsfiddle.net/tpde0cer/992/
Good luck with the bug hunt!
/Erik


Buck converter possibly burnt out?

seems like with an older mothbox that had flash and UV power going through the buck converter it may have been too much and it blew it out. Mothbox kept running in the dark though!

it was


MMD hangs when a list item contains only a backslash

One of our customers discovered that MMD parser hangs when a list item (either bulleted or ordered) contains only a backslash:
* \
1. \

We reproduced the issue as far back as 5.0.1, but did not try versions earlier than that.

I can't reproduce it, either in latest release or development version, or in 5.0.1.
Parsing the file you give me results in the following:

Can you be more specific about how to replicate this?
Thanks!

@fletcher I forgot to check which extensions we are using. The hang happens only with escaped-line-breaks.

I should note that only one line is enough. This alone triggers it:
* \

And this too:
1. \

That did it.  I can reproduce.  Now just need to track down the source of the problem.  Thanks!

UPDATE:  Spent a lot of time trying to track this down.  Interestingly, during my work the problem began to reproduce itself both with and without the escaped line breaks option.  I couldn't identify a specific problem with the PEG recipes.
The problem is that when a list item contains only "", then the parser tries to process the raw block "\\n".  For whatever reason, that causes the parser to fail to match, and to endlessly cycle through "recipes" looking for a match.  I'm not sure why this happens, and certainly welcome any input.
That said, I am able to prevent the error from reaching the user by ensuring that there is something left in the buffer before continuously cycling through the yyparse() function.  A description of the problem is added to the source (parser.leg -> process_raw_blocks()).
I will leave this open for now, as I would prefer a real fix rather than just avoiding the problem.  At least until MMD 6 exists.  ;)


Tidy the dependency

Ⅰ. Describe what this PR did
tidy the maven dependency
Ⅱ. Does this pull request fix one issue?
https://github.com/seata/seata/issues/933
Ⅲ. Why don't you add test cases (unit test/integration test)?
Config change
Ⅳ. Describe how to verify it
ci pass
Ⅴ. Special notes for reviews
1、Unify the version of netty
2、Remove guava ，use caffine to instead of guava cache
3、Remove other useless jars
4、Upgrade junit4 to junit5
5、Remove testng (use  junit5 )

Codecov Report

Merging #981 into develop will increase coverage by 1.36%.
The diff coverage is 60%.

@@              Coverage Diff              @@
##             develop     #981      +/-   ##
=============================================
+ Coverage      36.97%   38.34%   +1.36%
- Complexity      1033     1046      +13
=============================================
  Files            225      219       -6
  Lines           8908     8714     -194
  Branches        1080     1085       +5
=============================================
+ Hits            3294     3341      +47
+ Misses          5212     4951     -261
- Partials         402      422      +20

Impacted Files
Coverage Δ
Complexity Δ

...datasource/undo/mysql/MySQLUndoUpdateExecutor.java
90.9% <ø> (ø)
6 <0> (ø)
:arrow_down:

...java/io/seata/server/session/SessionCondition.java
66.66% <ø> (ø)
2 <0> (ø)
:arrow_down:

...java/io/seata/rm/datasource/DataSourceManager.java
28.33% <ø> (ø)
7 <0> (ø)
:arrow_down:

...n/java/io/seata/rm/datasource/ConnectionProxy.java
9.52% <ø> (-0.12%)
4 <0> (ø)

.../main/java/io/seata/rm/datasource/AsyncWorker.java
16.43% <ø> (ø)
4 <0> (ø)
:arrow_down:

...seata/rm/datasource/sql/struct/TableMetaCache.java
48.97% <60%> (-1.03%)
9 <2> (+1)

...ta/discovery/registry/FileRegistryServiceImpl.java
0% <0%> (-61.54%)
0% <0%> (-7%)

...a/io/seata/discovery/registry/RegistryFactory.java
0% <0%> (-50%)
0% <0%> (-2%)

...java/io/seata/discovery/registry/RegistryType.java
0% <0%> (-38.47%)
0% <0%> (-2%)

...o/seata/server/coordinator/DefaultCoordinator.java
32.27% <0%> (-15.19%)
10% <0%> (-7%)

... and 14 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 b7a930d...18c73cb. Read the comment docs.

Suggestion:

make commons-pool2(just for redis) provided?
upgrade FastJSON to 1.2.50, 1.2.48 has security issue

Suggestion:

make commons-pool2(just for redis) provided?
upgrade FastJSON to 1.2.50, 1.2.48 has security issue
Done in https://github.com/seata/seata/pull/981/commits/a9a09cecf8bd0030c9bd3dea6514c446eb819817

there are some conflict files.

fixed

great job，but I have some confusion，why delete seata-* in dependencyManagement， and each module has a ${project.version} in other pom?

I think the version of dependecies we put in the dependencyManagement is changeable， but the version of submodule dependency is fixed, we can use ${project.version} , so  I think there is a little redundancy to put all submodules in the seata/pom.xml


.get isnt working for messageReaction

Hello,
I runned the codeline below on stable and it worked. Now I installed discord.js-master and it doesnt work. ( I know that my codeline is not good and I could do it differently. )
I have the following error: TypeError: Cannot read property 'count' of undefined
messageReaction.message.reactions.get(encodeURIComponent('‼')).count === 5

If I use:
messageReaction.message.reactions.get('‼').count === 5

I receive the error: TypeError: Cannot read property 'count' of undefined
Further details:

discord.js version<EMAIL_ADDRESS>node.js version : 8.3.0
Operating system: Windows 10 64Bit
Priority this issue should have – please be realistic and elaborate if possible: Medium

First its better to use the specific hash of the master version that you are using.
But it works 100% fine for me... I can only imagine that the message you check doesn't have the emote you specified.

I fixed it, thx anyway!


Use Distributed's new Computation API

Depend on https://github.com/dask/distributed/pull/4923

[ ] Tests added / passed
[ ] Passes black dask / flake8 dask / isort dask

@rjzamora I imagine that you're familiar with this, but it would be good to get your thoughts from the perspective of writing layers.

Note that we probably need test coverage for #7777 before we consider it officially "closed"

Can one of the admins verify this patch?

add to allowlist


Setup Composer Package

As this is newly open sourced package it should be published on https://packagist.org/ so it can be installed using composer.

@TerryKern Composer package is set up: https://packagist.org/packages/orca-services/cakephp-feature-flags


Duplicate RBAC entries for the namespaces resource

Describe the bug
There exists duplicate entries for the namespace resource in the trident-operator ClusterRole:
https://github.com/NetApp/trident/blob/ee2d9743551c82635d411da878389ffbd9f5f655/helm/trident-operator/templates/clusterrole.yaml#L10-L16
https://github.com/NetApp/trident/blob/ee2d9743551c82635d411da878389ffbd9f5f655/helm/trident-operator/templates/clusterrole.yaml#L244-L250
This makes it harder than necessary to review what permissions are granted to the application.
Expected behavior
Instead of having one rule for get and list and one rule for create and patch, I would have expected there to be only one rule for all four verbs:
 - apiGroups:
     - ""
   resources:
     - namespaces
   verbs:
     - get
     - list
     - create
     - patch

Additional context
Note that there are other rules which may seem to also be duplicates, like podsecuritypolicies and securitycontextconstraints. These, however, do actually differ since they have specified resourceNames for each "duplicate" entry!

This is intentional and not a bug.  The operator RBAC must be a superset of the Trident RBAC, and it highlights that by having 2 sections of rules, one that duplicates Trident and one that layers on the extra privileges that the operator requires.


Add Ability to Edit Nessus ID in Templated Finding

As a user I would like to be able to edit the Nessus IDs associated with a templated finding.

closing, previously implemented


ui: show resize volume button to all users

The resize volume is support on all major hypervisors (Xen, VMware, KVM).
The hypervisor key is returned by the list volumes response only for admins
but not for users or domain admin users. This removes the check, as the operation
is supported on all major hypervisors that CloudStack supports.
With this bug fix all users would see resize volume button in the UI.
/cc @swill

Thanks @rhtyd nice fix. Tested it and LGTM.
Before:

After:

Thanks @remibergsma /cc @swill ?

LGTM :+1:

LGTM

@swill this is a simple UI bugfix, please consider merging for 4.9.0 rc2 as well.


Add subdomain support

Subdomain support
add support for subdomains

Search, create, transfer, and delete subdomains
List subdomains on profile and domain screen

lmk if i missed anything

Thank you very much for your contribution!
At first glance it looks great, but I will do a thorough review in the coming days

@wosleyv The PR looks great. However, I've noticed a few minor areas that could be improved:

There seems to be an inconsistency with the color palette applied to the 'Delete Subdomain' button. It is currently set to bg-red-900 when ideally, it should be bg-red-400 to maintain uniformity with other delete buttons.
There appears to be no option for users to navigate back to the parent domain from a subdomain view.
The ordering of subdomains lacks alphabetical sorting. There is no guarantee on the order returned by the RPC
On deleting a subdomain, the user is not redirected back to the parent domain. For improved user experience, I propose adjusting this flow to automatically guide the user back to the parent.
I observed that the PR lacks internationalization support. You could rectify this by rebasing your branch on master and wrapping all Text elements in Trans macros. For error modal messages, consider utilizing t.
There's a small glitch where two modals pop up post successful subdomain creation, where ideally only the success modal should be presented. Ideally, this success modal could also offer the user an option to navigate to the subdomain screen view.
The functionality for creating records for subdomains seems to be not working. Please find a suggested fix here.
There seems to be a validation issue with the domain names, for instance, djnfsd.djsfndsf.dsfjknf is being treated as a valid domain. A potential fix can be found here.

@wosleyv The PR looks good to me


Bsp build target resources

Fixes https://github.com/sbt/sbt/issues/6550
This PR adds an implementation for BSP resource request
When sending the following command to sbt -bsp :
{ "jsonrpc": "2.0", "id": 1, "params": {"targets":[{"uri":"file:/PROJECT_PATH/#module/Compile"}]}, "method": "buildTarget/resources" }

We should now get the following response :
{"jsonrpc":"2.0","id":1,"result":{"items":[{"target":{"uri":"file:/PROJECT_PATH/#module/Compile"},"resources":["file:PROJECT_PATH/module/src/main/resources"]}]}}

This PR was checked on a sample project : the buildTarget/resources is successfully called during the project import and Intellij Idea can rightly define the resources folders :

I created an example project to show that in some case, the build client lacks some information the resource file.
The build file is:
val hello = project.in(file("."))
  .settings(
    scalaVersion := "2.13.6",
    Compile / resourceGenerators += Def.task {
      val greeting = (Compile / resourceManaged).value / "assets" / "greeting.txt"
      IO.write(greeting, "Hello, World!")
      Seq(greeting)
    }
  )

This generates a assets/greeting.txt resource file.
The main method read the content of that resource and prints it:
package hello

import scala.io.Source

object Main extends App {
  Source.fromResource("assets/greeting.txt", getClass.getClassLoader)
    .getLines()
    .foreach(println)
}

Note that the resource is assets/greeting.txt and not greeting.txt.
Running the main to check that it works as expected:
sbt:hello> run
[info] running hello.Main
Hello, World!
[success] Total time: 0 s, completed Jun 18, 2021 10:45:21 AM

When importing the project in IntelliJ the buildTarget/resources response is:
{
  "items": [
    {
      "target": {
        "uri": "file:/home/piquerez/sbt/sbt-6552/#hello/Test"
      },
      "resources": [
        "file:/home/piquerez/sbt/sbt-6552/src/test/resources"
      ]
    },
    {
      "target": {
        "uri": "file:/home/piquerez/sbt/sbt-6552/#hello/Compile"
      },
      "resources": [
        "file:/home/piquerez/sbt/sbt-6552/src/main/resources",
        "file:/home/piquerez/sbt/sbt-6552/target/scala-2.13/resource_managed/main/assets/greeting.txt"
      ]
    }
  ]
}

Here Intellij does not know that the resource file is supposed to be assets/greeting.txt rather than greeting.txt. Or, in other words, that the resource folder should be file:/home/piquerez/sbt/sbt-6552/target/scala-2.13/resource_managed/main/ instead of file:/home/piquerez/sbt/sbt-6552/target/scala-2.13/resource_managed/main/assets/.
Here IntelliJ assumes that the resource folder is file:/home/piquerez/sbt/sbt-6552/target/scala-2.13/resource_managed/main/assets/ which is wrong:

Reproduction repo: https://github.com/adpi2/sbt-6552

I think the solution for now is to send back the managed resource folders rather than the resource files:
val id = bspTargetIdentifier.value
val unmanagedDirs = unmanagedResourceDirectories.value
val managedDirs = managedResourceDirectories.value
ResourcesItem(id, unmanagedDirs.toVector.map(_.toURI) ++ managedDirs.toVector.map(_.toURI))

Or more simply
``scala
val id = bspTargetIdentifier.value
val resourcDirs = resourceDirectories.value
ResourcesItem(id, resourcDirs.toVector.map(_.toURI))

One drawback of this solution is that it does not trigger the resource generation (of the managed resources). We can handle that with:

```scala
val id = bspTargetIdentifier.value
val resourcDirs = resourceDirectories.value
// trigger resource generation
val _ = managedResources.value
ResourcesItem(id, resourcDirs.toVector.map(_.toURI))

You're right, the main problem comes from the lack of resources kind, like we have with sources
I also tried with BSP importing a project with a src/main/resources but no src/test/resources : I end up with the test folder itself being marked as a resource !

I think it comes from BspResolverLogic that creates either a resource from a file or its own parent
I'll give a try to your suggestion and update the current PR !

Thanks for the contribution. I'll trust @adpi2's review and hit merge since it's been approved.


fix rerun-if-env-changed

fix https://github.com/alexcrichton/libz-sys/issues/21

Thanks for the PR! I think some rerun-if-changed should also be printed though, right? (for files depended on)

from http://doc.crates.io/build-script.html, rerun-if-changed=PATH
Normally build scripts are re-run if any file inside the crate root changes, but this can be used to scope changes to just a small set of files.
if the build script itself (or one of its dependencies) changes, then it's rebuilt and rerun unconditionally, so cargo:rerun-if-changed=build.rs is almost always redundant (unless you want to ignore changes in all other files except for build.rs).

Yeah but the default behavior is turned off if any other rerun-if-* keys are printed (such as this env var), so we'll have to recover the behavior by manually informing about input files. I think also that pkg-config now has an option to turn on the env vars by default?

you mean env use rerun-if-env-changed will turn off behavior  behavior of env rerun-if-changed?

Yeah unfortunately usage of either key turns of the default behavior :(

ok, i will fix this.

Ok! While this also depends on files in zlib itself I think printing out just the build script is fine for now.


question regarding .join

I'm trying to map an array to lit-html and then joining them using the Array.join method. The problem is that the Array join method produces a string and not a lit-html object.
example:
  html`[${params.map( param => html`<button> ${param.name} </button>` ).join(',')}]`

produces an output of: [ [Object],[Object],...]
Is there some other way of achieving the correct result, the lit-html way?

Would be nice to have the helper for joining HTMLTemplateResults as part of Lit or at least in the docs.
The helper from @justinfagnani seems to work nicely. I ended up using that in TS with added type info like this:
import { HTMLTemplateResult, nothing } from 'lit';

const templateJoin = (values: Array<HTMLTemplateResult>, joiner: HTMLTemplateResult) => values.map((v, i) => [v, i < values.length - 1 ? joiner : nothing]);


Simulate transactions

Explanation
Simulate all transactions added to the TransactionController using the Sentinel API and store the resulting data in the new simulationData property.
At a high level, the algorithm is:

Simulate the transaction using the Sentinel API.
Check the native balance change.
Extract all the raw logs from the call data hierarchy.
Parse all the logs using the ERC-20, ERC-721, and ERC-1155 token ABIs.
For all parsed transfer events, generate suitable balanceOf transactions.
Simulate the the transaction again but with the balanceOf transactions included before and after.
Compare the return values of the balanceOf responses to determine any token balance changes.

See below for an example of the simulation data:
{
    "nativeBalanceChange": {
        "previousBalance": "0x60f1838c5dabb2c",
        "newBalance": "0x56f38f5cef63b2c",
        "difference": "0x9fdf42f6e48000",
        "isDecrease": true
    },
    "tokenBalanceChanges": [
        {
            "address": "0x123456789ABCDEF123456789ABCDEF0123456789",
            "standard": "erc1155",
            "id": "0x02",
            "previousBalance": "0x1",
            "newBalance": "0x4",
            "difference": "0x3",
            "isDecrease": false
        }
    ]
}

References
Fixes #2140
Changelog
@metamask/transaction-controller

ADDED: Add simulationData property to TransactionMeta which will be automatically populated.

Checklist

[x] I've updated the test suite for new or updated code as appropriate
[x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate

Will be merged after the V2 upgrade.


Some suggestions for java interface

1 - crypto.convertFromExisting(readKeyFromFile("../admin@test.pub"),             readKeyFromFile("../admin@test.priv"));  Why don't we overload that method to handle filepaths and read them too?
2 - Instead
private static ModelTransactionBuilder txBuilder = new ModelTransactionBuilder();
...
txBuilder.creatorAccountId(creator)
            .createdTime(BigInteger.valueOf(currentTime))
            .txCounter(BigInteger.valueOf(startTxCounter))
            .createDomain("ru", "user")
            .createAsset("dollar", "ru", (short)2).build();

this
ModelTransaction.builder()
            .creatorAccountId(creator)
            .createdTime(BigInteger.valueOf(currentTime))
            .txCounter(BigInteger.valueOf(startTxCounter))
            .createDomain("ru", "user")
            .createAsset("dollar", "ru", (short)2).build();

Same for other builder.
3 - Make this method static and don't create unnecessary objects.
protoTxHelper.signAndAddSignature(utx, keys).blob();

4 - I think clients don't need to know about GRPC and stuff.
Instead:
ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 50051).usePlaintext(true).build();
        CommandServiceBlockingStub stub = CommandServiceGrpc.newBlockingStub(channel);
stub.torii(prototx)

this
client = Client.builder().forAddress("localhost",50051).usePlaintext(true)....build();
client.torii(protox);

what do you think guys? @luckychess @lebdron

As reality show the swig interface usually enough, and in fact maintaining additional binding code can be quite messy and inconsistent. Moreover some wrappers around generated bindings can be done by yourself


Cookie core not found

Hello,
I have followed the steps in the documentation but I still have a problem of import.
I had angular2-cookie in my node modules:

Then I inject angular2-cookie:

I use gulp to inject, but we can see in the index.html in dist folder the import succeed:

Then I import CookieService in my app.component.ts:

And use the service as a provider:

I add ANGULAR2_COOKIE_PROVIDERS into main.ts

And I have finally:

I really don't understand .. I think the problem come from me but I don't understand what's happening.

Hey @NablaT
First of all, you don't need to add anything to you bootstrap() function in the main.ts file, unless you want to change default cookie options.
What are you using to serve js files? Gulp-connect? Maybe you should check the options for that. If you could provide me a repository link, I could try to help.

Hey @salemdar
I removed everything related to angular2-cookie in my bootstrap().
And the angular2-cookie import seems to work because in the folder dist (which contains all files read by the browser), I find in the index.html the import.
Sorry I can't share my repository because it's restricted. However, you could find my config for gulp and the tasks in the following page: https://github.com/NablaT/angular2gen/tree/master/app/templates/gulp
Thank you for your help

@NablaT
After some experiments, I found out that you have to modify you SystemJS config to solve the problem:
System.config({
    defaultJSExtensions: true,
    "paths": {
        "angular2-cookie/*": "node_modules/angular2-cookie/*"
    },
    packages: {
        "angular2": {
            "defaultExtension": false
        },
        "rxjs": {
            "defaultExtension": false
        },
    }
});

I tested the library with angular2-seed project and there wasn't such a problem. But their configuration is different. You can compare your generator's SystemJS and gulp configurations with theirs and find out the source of the problem. I also might look into that when I have more time.

In fact the problem come from my generator.
Thanks for your help ;)

No problem, glad to help :).
I updated the readme of the repository. Check the getting started part for newer angular versions.


[CARBONDATA-4148] Reindex failed when SI has stale carbonindexmerge file

Why is this PR needed?
Reindex failed when SI has stale carbonindexmerge file, throw exception FileNotFoundException. This is because  SegmentFileStore.getIndexFiles stores the mapping of indexfile to indexmergefile, when stale carbon indexmergefile exists, indexmergefile will not be null. During merging index file, new indexmergefile will be created with same name as before in the same location. At the end of CarbonIndexFileMergeWriter.writeMergeIndexFileBasedOnSegmentFile, carbon index file will be deleted. Since indexmergefile is stored in the indexFiles list, newly created indexmergefile will be delete also, which leads to FileNotFoundException.
What changes were proposed in this PR?

SegmentFileStore.getIndexFiles stores the mapping of indexfile to indexmergefile which is redundant.
SegmentFileStore.getIndexOrMergeFiles returns both index file and index merge file, so function name is incorrect, rename to getIndexAndMergeFiles.
CarbonLoaderUtil.getActiveExecutor actually get active node, so function name is incorrect, rename to getActiveNode, together replace all "executor" with "node" in function assignBlocksByDataLocality.

Does this PR introduce any user interface change?

No

Is any new testcase added?

Yes

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5562/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3796/

@jack86596 , won't running clean files before doing the reindex operation solve this issue?

@jack86596 , won't running clean files before doing the reindex operation solve this issue?

why before reindex operation, need to run clean files? and dependency relation between reindex and clean files?

@jack86596 , won't running clean files before doing the reindex operation solve this issue?

why before reindex operation, need to run clean files? any dependency relation between reindex and clean files?

No, there is no need to do clean files before reindex there is no dependency, but we only do reindex when the segments are missing, it is not the case here though. What i meant was that running clean files on si table would solve your problem

@jack86596 , won't running clean files before doing the reindex operation solve this issue?

why before reindex operation, need to run clean files? any dependency relation between reindex and clean files?

No, there is no need to do clean files before reindex there is no dependency, but we only do reindex when the segments are missing, it is not the case here though. What i meant was that running clean files on si table would solve your problem

why I need to run one extra command to solve the problem, why not just solve the problem directly, in this way, no need to run extra command? If in order to solve the problem, you need to run clean files, then this is dependency.

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5571/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3805/

retest this please

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5572/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3806/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5576/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3810/

retest this please

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3813/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5579/

LGTM

retest this please

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3831/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5597/

retest this please

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbonPRBuilder2.3/5601/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12444/job/ApacheCarbon_PR_Builder_2.4.5/3835/


0.5 release

Coverage remained the same at 67.731% when pulling 0bd061e5e58d227f70d64516678a1b4c1f342a7b on 0.5 into 7530fe589ecb7e48ef2309d9aa92fa6f01c15cbe on master.