Now listener work only on first open/close

Listeners calls onToggleSoftKeyboard. Toogle! But listeners calls every UI tick.

Merged. Thank you for your contribution, LionZXY.


Server not discoverable through the friends tab as a LAN world. Although connects when directly connecting using the IP.

Using tcpdump I see that the server pings my other device on the same network when I punch in the address of the host (Raspberry Pi 4B). Connection works and I see no problems other than the need for my server to BE discoverable on LAN for easy cross-compatibility. However, I also noticed something weird. When removing the saved server in the servers tab, it then immediately appears in the LAN games section, then disappears on the next ping. I'm not sure if this is a bug or a network problem as I am using a public university network, locally only.

This image only downloads and runs the software provided by Mojang. Please contact their forum or issue tracker about issues specific to their software.

with version 1.21.30 the discovery works on my network

If you don't see the server in the friends tab as a LAN world, but can connect through the IP, check the level.dat of your world. Look out for

LANBroadcast:
LANBroadcastIntent:

Both values must be set to 1 to be visible in the LAN.
LANBroadcast: Whether the world has been opened with the "Visible to LAN players" world setting enabled.
LANBroadcastIntent: Whether the "Visible to LAN players" world toggle is enabled.
https://minecraft.wiki/w/Bedrock_Edition_level_format#level.dat
Took me couple of hours to solve my issue. After copying my world on my pc and openend it locally, and then copied it back to the server, the server (world) was not visible in the friends tab anymore, but I was able to connect directly through the servers tab. I didn't change the world settings of the LAN, no clue how that happened. After setting the value to 1 for LANBroadcast the world was visible again in the friends tab.
I have the same issue with the saved server in the servers tab not visible in the friends tab. Although my world stays visible in the friends tab, when I remove it from the servers tab. Maybe that's by design


Array reformat

I'm trying to stop my array from being reformatted from
      var grid = [
        [],
        [{w: 1,h: 1}],
        [{w: 2,h: 1}, {w: 2,h: 1}],
]

to
      var grid = [
        [],
        [{
            w: 1,
            h: 1
          }],
        [{
            w: 2,
            h: 1
          }, {
            w: 2,
            h: 1
          }],

Any ideas? I've tried "keep_array_indentation": true but no luck

This requested behavior is not present in either Pretty Diff or JS-Beautify.  This feature would have to be enabled through an option, which would be the only way to avoid massive regression.  It is more challenging than it appears due to various degrees of structure depth with potential for all kinds of strange side effects.

Thanks, is there anyway to mark the part of the source to not be reformatted?

Not that I am aware of because deep data structures like that can occur in a variety of locations.

Pretty Diff can achieve this with the options formatArray: "inline", formatObject: "inline".  These options might need to be added to Atom Beautify though.


getAllDevices() results in null

Hi,
I tried to create a sample app (below). I tried to write the minimal thing that wouldn't result in exceptions and might work. Unfortunately, when I load my code on two devices with both Location and Bluetooth permissions enabled, neither device picks up on the presence of the other device. There are no exceptions from this code initially, but after a few minutes, the app crashes for no apparent reason.
import React, { useState, useEffect } from "react";
import { Text } from "react-native";
import SpecialBle, { requestLocationPermission, checktLocationPermission } from "rn-contact-tracing";

const SERVICE_UUID = "00000000-0000-1000-8000-00805F9B34FB";

/*
const ScanMatchMode = [
    {value: 1, label: 'MATCH_MODE_AGGRESSIVE'},
    {value: 2, label: 'SCAN_MODE_LOW_LATENCY'},
];

const AdvertiseMode = [
    {value: 0, label: 'ADVERTISE_MODE_LOW_POWER'},
    {value: 1, label: 'ADVERTISE_MODE_BALANCED'},
    {value: 2, label: 'ADVERTISE_MODE_LOW_LATENCY'},
];

const AdvertiseTXPower = [
    {value: 0, label: 'ADVERTISE_TX_POWER_ULTRA_LOW'},
    {value: 1, label: 'ADVERTISE_TX_POWER_LOW'},
    {value: 2, label: 'ADVERTISE_TX_POWER_MEDIUM'},
    {value: 3, label: 'ADVERTISE_TX_POWER_HIGH'},
];
*/

const BluetoothScreen = () => {
    const [permissions, setPermissions] = useState({location: false, ignoreBatteryOpt: false});
    const [config, setConfig] = useState({
        serviceUUID: SERVICE_UUID,
        scanDuration: 10000,
        scanInterval: 10000,
        advertiseInterval: 10000,
        advertiseDuration: 10000,
        scanMatchMode: 1,
        advertiseMode: 2,
        advertiseTXPowerLevel: 1,
        notificationTitle: "Bluetooth",
        notificationContent: "Bluetooth",
        notificationLargeIconPath: "",
        notificationSmallIconPath: "",
        token: "default_token"
    });

    async function checkPermissions() {
        let isGranted = await checktLocationPermission();
        let ignoreBatteryOpt = await SpecialBle.isBatteryOptimizationDeactivated();
        setPermissions({...permissions, ...{location: isGranted, ignoreBatteryOpt: ignoreBatteryOpt}});
    }

    useEffect(() => {
        (async () => {
            console.log("module:", SpecialBle);

            console.log("permissions");
            await checkPermissions();

            console.log("database");
            await SpecialBle.writeContactsToDB(null);

            console.log("set config");
            await SpecialBle.setConfig(config);

            console.log("start ble service");
            await SpecialBle.startBLEService();

            console.log("advertise");
            await SpecialBle.advertise();

            console.log("start scan");
            await SpecialBle.startBLEScan();

            console.log("get all devices");
            await SpecialBle.getAllDevices(devices => {
                console.log(devices);
            });
        })();
    }, []);

    return (<Text>Bluetooth</Text>);
};

export default BluetoothScreen;

 LOG  module: {"advertise": [Function fn], "cleanDevicesDB": [Function fn], "cleanScansDB": [Function fn], "deleteDatabase": [Function fn], "exportAdvertiseAsCSV": [Function fn], "exportAllContactsAsCsv": [Function fn], "exportAllDevicesCsv": [Function fn], "exportAllScansCsv": [Function fn], "exportScansByKeyAsCSV": [Function fn], "exportScansDataAsCSV": [Function fn], "fetchInfectionDataByConsent": [Function fn], "getAllDevices": [Function fn], "getAllScans": [Function fn], "getConfig": [Function fn], "getConstants": [Function anonymous], "getScansByKey": [Function fn], "isBatteryOptimizationDeactivated": [Function fn], "match": [Function fn], "requestToDisableBatteryOptimization": [Function fn], "setConfig": [Function fn], "setPublicKeys": [Function fn], "startBLEScan": [Function fn], "startBLEService": [Function fn], "stopAdvertise": [Function fn], "stopBLEScan": [Function fn], "stopBLEService": [Function fn], "writeContactsToDB": [Function fn]}
 LOG  permissions
 LOG  database
 LOG  set config
 LOG  start ble service
 LOG  advertise
 LOG  start scan
 LOG  get all devices
 LOG  null

is there a solution for the "null" getDevice () function?

Change to this.
SpecialBle.getAllDevices((err, devices) => {
       setDevices(devices)
})

it work for me.


Fast log gammas

Calculating log gammas is an expensive part of the allele fraction model.  We could speed this with negligible loss of accuracy by caching a few tens of thousands of values from 0 to 100 or 1000 and using linear interpolation.
This issue can be closed by implementing such caching or by showing that it doesn't significantly improve performance.

The JVM running on my laptop does 10 million log gammas per second, which is about three times as expensive as logarithms.  The allele fraction model needs to calculate 4 log gammas per het, so if you have 25,000 hets all the log gammas in the model likelihood take 1/100 of a second.
To get MLEs for each parameter (minor allele fractions, outlier probability etc) might require 100 evaluations each, so we're probably dealing with 10 seconds of log gammas per iteration to find the posterior mode.  Getting a few hundred MCMC samples is probably more expensive but roughly comparable.
These numbers are manageable but get expensive when we relearn the model at every iteration of segment merging.  In my opinion it makes sense to come back to this issue after we have a new segmentation strategy.  We'll see how pressing it is then.

To clarify, I think this is primarily an issue for WGS, where we have ~1.5 million hets.  From the logs in /dsde/working/lichtens/wgs/out_case_chip_wgs/acnv/*out it looks like finding the MLE takes ~10 minutes (which is roughly consistent with your estimate), but 200 MCMC iterations takes ~1 hr.
Naive profiling of the AlleleFractionModeller tests suggests that around ~60% CPU is going toward log gammas, so if we can improve on this I think it might be an easy win.  However, we should perhaps profile more carefully.
However, I agree that changing our segmentation is more pressing!  Note that oversegmentation (typically 1000+ segments) hurts us by both by increasing the number of MAF parameters and by increasing the number of similar-segment merge iterations required to smooth things (looks like the WGS samples hit the limit of 25 merge iterations = ~25 hrs).  Turning off refitting between iterations helps, perhaps at the cost of smoothness of the final result, but you're still looking at 2+ hours for the initial and final fit.
Just to note, other possibilities for cutting down the runtime include trimming down the number of hets for WGS, changing similar-segment merging so that we can locally refit only the MAF for the newly created segment, ditching MCMC, etc.
@LeeTL1220 can you make the plots for your WGS runs so we can see what these hets look like?

Ahhhhh, I get it!

Issue moved to broadinstitute/gatk #2860 via ZenHub


Changelog displayed by "Plugin Changelog" always show "Chore"...

I use the "Plugin Changelog" to see the changelog but under every version it is always, for example:

chore(release): 6.9.3

I guess the plugin is taking the text under the "releases" thread and not the changelog.md file.
Maybe having the text in the changelog for a particular release also be added to the description of the release? 😉

This should be better now

It is 😀
Much better 👍


Rejecting errors

I know I look like a guy who walks around poking everyone's face with something he just learned, and in fact I am, but... Isn't this, this and this supposed to be rejections instead of thrown errors?
I mean, Promise.reject() is already implemented, so why not?

@dsblv ES2015 spec says:
    1. If NewTarget is undefined, throw a TypeError exception.

So, I guess, not.


Upgrade failed

Love this integration, however, my upgrade failed, and I'm not sure where to go from here.

I did rename that directory, and it didnt work.  The subsequent Sonos update still failed.
Currently on 5.2.5 and upgrading to 5.2.6
This seems to be the relevant info from the debug file.
205 warn<EMAIL_ADDRESS>No repository field.
206 warn<EMAIL_ADDRESS>No license field.
207 verbose stack Error: Refusing to delete /home/mike/.node-red/node_modules/.bin/xml2js: is outside /home/mike/.node-red/node_modules/fast-xml-parser and not a link
207 verbose stack     at clobberFail (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:121:12)
207 verbose stack     at isSafeToRm (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:114:15)
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:54:5
207 verbose stack     at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:7:26)
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:180:7
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
207 verbose stack     at _readAllLinks (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:215:28)
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
207 verbose stack     at resolveSymlink (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:226:22)
207 verbose stack     at _readAllLinks (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:217:5)
207 verbose stack     at readAllLinks (/usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:212:3)
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:179:5
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
207 verbose stack     at cb (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
207 verbose stack     at /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:153:16
208 verbose cwd /home/mike/.node-red
209 verbose Linux 5.10.60-meson64
210 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=~" "--production" "--engine-strict"<EMAIL_ADDRESS>211 verbose node v14.17.6
212 verbose npm  v6.14.15
213 error code EEXIST
214 error path /home/mike/.node-red/node_modules/.bin/xml2js
215 error Refusing to delete /home/mike/.node-red/node_modules/.bin/xml2js: is outside /home/mike/.node-red/node_modules/fast-xml-parser and not a link
216 error File exists: /home/mike/.node-red/node_modules/.bin/xml2js
217 error Remove the existing file and try again, or run npm
218 error with --force to overwrite files recklessly.
219 verbose exit [ 1, true ]
I'm unsure what the npm --force command should be, since that doesnt work.

What node-red version do you use?
npm recommends to either

delete /home/mike/.node-red/node_modules/.bin/xml2js

or

use the npm command in addition to these option
"install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=~" "--production" "--engine-strict"<EMAIL_ADDRESS>with additional option --force

Do you have access to command level in that directory?

Thanks, that worked. Appreciate the prompt reply!


[openssl] Build error

Host Environment

OS: Amazon Linux2, kernel is 5.10.135-122.509.amzn2.x86_64
Compiler: g++ (GCC) 7.3.1 20180712 (Red Hat 7.3.1-15)

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/Microsoft/vcpkg.git
 ./vcpkg/bootstrap-vcpkg.sh
 ./vcpkg/vcpkg install "aws-sdk-cpp[core,sts,timestream-query]" --recurse

Failure logs

Cut and paste the appropriate build messages from the console output.
Attach every failure log file mentioned in the console output.

[1/3] cd /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean && export PATH=/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/bin:/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/downloads/tools/ninja/1.10.2-linux && export CC=/usr/bin/cc && export AR=/usr/bin/ar && export LD=/usr/bin/ld && export RANLIB=/usr/bin/ranlib && export MAKE=/usr/bin/make && export MAKEDEPPROG=/usr/bin/cc && export WINDRES= && /usr/bin/perl Configure no-shared no-module enable-static-engine no-zlib no-ssl2 no-idea no-cast no-seed no-md2 no-tests linux-x86_64 --prefix=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/packages/openssl_x64-linux/debug --libdir=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/packages/openssl_x64-linux/debug/lib --openssldir=/etc/ssl "-fPIC -g" && /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/downloads/tools/cmake-3.24.0-linux/cmake-3.24.0-linux-x86_64/bin/cmake -DDIR=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean -P /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/ports/openssl/unix/remove-deps.cmake
FAILED: nssl-3.0.5-30ecfd0d02.clean/Makefile /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/Makefile
cd /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean && export PATH=/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/bin:/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/downloads/tools/ninja/1.10.2-linux && export CC=/usr/bin/cc && export AR=/usr/bin/ar && export LD=/usr/bin/ld && export RANLIB=/usr/bin/ranlib && export MAKE=/usr/bin/make && export MAKEDEPPROG=/usr/bin/cc && export WINDRES= && /usr/bin/perl Configure no-shared no-module enable-static-engine no-zlib no-ssl2 no-idea no-cast no-seed no-md2 no-tests linux-x86_64 --prefix=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/packages/openssl_x64-linux/debug --libdir=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/packages/openssl_x64-linux/debug/lib --openssldir=/etc/ssl "-fPIC -g" && /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/downloads/tools/cmake-3.24.0-linux/cmake-3.24.0-linux-x86_64/bin/cmake -DDIR=/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean -P /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/ports/openssl/unix/remove-deps.cmake
Can't locate IPC/Cmd.pm in @INC (@INC contains: /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/util/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/external/perl/Text-Template-1.56/lib) at /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/util/perl/OpenSSL/config.pm line 18.
BEGIN failed--compilation aborted at /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/util/perl/OpenSSL/config.pm line 18.
Compilation failed in require at Configure line 24.
BEGIN failed--compilation aborted at Configure line 24.
ninja: build stopped: subcommand failed.
~

Additional context
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:129 (message):
Command failed: /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/downloads/tools/cmake-3.24.0-linux/cmake-3.24.0-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j3
Working Directory: /home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/x64-linux-dbg
See logs for more information:
/home/ec2-user/amazon-timestream-odbc-driver/vcpkg/buildtrees/openssl/install-x64-linux-dbg-out.log
Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/openssl/unix/portfile.cmake:21 (vcpkg_cmake_install)
ports/openssl/portfile.cmake:39 (include)
scripts/ports.cmake:147 (include)
error: building openssl:x64-linux failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+openssl
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[openssl]+Build+error
Include '[openssl] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-09-20-522aa94e9d261c7d7b2f079bf2591ca62df5c714
vcpkg-scripts version: 6ca56aeb4 2022-09-26 (25 hours ago)
Add any other context about the problem here, such as what you have already tried to resolve the issue.

$ sudo yum install perl-IPC-Cmd
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Package 1:perl-IPC-Cmd-0.80-4.amzn2.noarch already installed and latest version Nothing to do

Maybe you can try to update perl-IPC-Cmd, like comment https://github.com/microsoft/vcpkg/issues/25729#issuecomment-1200337695. I can't reproduce this issue locally. I have only Ubuntu machine.

After check the log and google the error info, I got a solution "yum install perl-Data-Dumper". Now the problem is fixed. Thanks  for your support!

I also got this error, doing sudo dnf install perl fixed it on Fedora 38 for me:
Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /home/user/projects/bustub-cpp-reimpl/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/util/perl /usr/local/lib64/perl5/
5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/user/projects/bustub-cpp-reimpl/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/external/perl/Text-Template-1.56/lib) at /home/user/projects/bustub-cpp-reimpl/vcpkg/buildtrees/openssl/x64-linux-dbg/nssl-3.0.5-30ecfd0d02.clean/util/perl/OpenSSL/config.pm line 18.

Prior to this, I got an error about the Perl FindBin module, which I did dnf install perl-FindBin but that didn't fix it so I just installed everything.


Update README.md

Just a small line change to make the command line install more user friendly from the readme

good catch, thanks!


Line under account name input field and Continue button can disappear

Bug Description
When making a new account and entering a name for it, the line under the input field will disappear below the keyboard, if you go forward and then back again. It might be good to put both the button and line above the keyboard. This is likely related to the removed dependency during the update to the iOS 15 SDK.

Notice how the line under the input field has appeared, and the Continue button is also nowhere to be seen.

Expected Result

Both the line and the button stays above the keyboard.

Actual Result

The line and the button seems to be hidden behind the keyboard.

Versions

Software Version: 1.0(22)
OS: iOS 14.7 and 15

@kristiyandobrev, it should be possible to hide the keyboard by click somewhere outside the input field now, right? I can't get it to work in all places, on iOS 15.0. The input field kind of slides down behind the keyboard as if the keyboard was about to disappear, but the keyboard stays up. The same thing happens, when I press the suggestions I get. It seems to only be a problem for account and identity name inout fields for some reason.
https://user-images.githubusercontent.com/76045015/142431527-b71d28ad-cb08-407a-bc38-3f893f330028.MOV

Verified in v1.0.26, iOS 14.7.1, iPhone11.


Preview does not load

I am using Sublime Text Version 3.1.1 Build 3176 on Centos 7. When I open a markdown file I get the following error:
Traceback (most recent call last):   File "/mnt/data/apps/sublime_text_3/sublime_plugin.py", line 509, in on_load_async     callback.on_load_async(v)   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 97, in on_load_async     md_view, preview = self.update(view)   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 64, in update     show_html(view, preview)   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MLPApi.py", line 76, in show_html     html = markdown2html(get_view_content(md_view), os.path.dirname(md_view.file_name()), md_view.settings().get('color_scheme'))   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MLPApi.py", line 40, in markdown2html     html = '<style>\n{}\n</style>\n'.format(get_style(color_scheme))   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/functions.py", line 131, in get_style     css += pygments_from_theme(get_resource(color_scheme))   File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/functions.py", line 139, in get_resource     return sublime.load_resource(resource)   File "/mnt/data/apps/sublime_text_3/sublime.py", line 192, in load_resource     raise IOError("resource not found") OSError: resource not found
Any Suggestion?  Thanks,
Oscar

I confirm the issue, @martadelyon reported on W10 and I add macOS 10.13.6, with the exact screenshots and behavior on the mac.

Someone mentioned in a different post that installing and activating the Monokai-Extended color scheme made the preview work for them.
I just tried that and it works. This could maybe serve as a work-around for some people.

+1 :(

+1

First I installed SublimeText-Markdown/MarkdownEditing from GitHub, then I installed MarkdownLivePreview. It was working like a charm. After removing MarkdownEditing, I wasn't able to get live previews anymore, no matter how many times I re-installed MarkdownLivePreview.
I am using Ubuntu 16 and Sublime 3.

Same here. Fresh install of MarkdownLivePreview and not working at all. Have the latest trial build of Sublime Text 3

After installing MarkdownEditing, the MarkdownLive Preview works.

You can change the schema by MarkdwonEditing settings file. There is a "color_scheme" option in Markdown.sublime-settings file.

Thanks! I'll try this. By the way, I think you should take notice of your personal information when you upload a picture.

Someone mentioned in a different post that installing and activating the Monokai-Extended color scheme made the preview work for them.
I just tried that and it works. This could maybe serve as a work-around for some people.

Did the trick for me!

Installing and activating Monokai-Extended did not work for me on OSX, and after installing MarkdownEditing, Alt-M didn't work to launch MarkdownLivePreview anymore and MarkdownLivePreview: Toggle isn't available in the command window at all.

The project has not been updated for a long time

No it hasn't... The main reason being that I've moved to vim.
After a quick look, this issue is caused by MLP failing to load the color scheme. There's definitely a problem when loading the newer color schemes (.sublime-color-scheme) since it's in JSON, and the old color schemes use to be .tmTheme, in XML.
So when MLP loads the current color scheme in order to get the right colors to highlight the <pre> blocks with the right colors, it tries to load the current color scheme with a XML parser.
I think I'm just going to remove the highlighting part. It's not that crucial, and I don't have the time to load make a converter of a .sublime-color-scheme to a pygment css.

Installing the Monokai-Extended package - closing sublime text - reopening sublime and the file, then alt+m WORKED! Thank you!

+10086


Will there be a new version released ? and when will the next version be released?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

why? and who are you?


Bug: Lightmode checkbox is wrong color

:tada: This issue has been resolved in version 0.13.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Property-based test: lwaftr run does not crash with get

This adds a first property based test. The property is that the lwaftr
does not crash with a 'snabb config get' command run repeatedly.
This is a first step towards resolving #631 .
Use: SNABB_PCI0=82:00.1 ./program/lwaftr/tests/propbased/selftest.sh
Note that this is currently reporting crashes, for instance after 14 or 23 iterations.

I've been poking around to see if I can figure out why it crashes, but had limited success so far. Adding some prints produces this error message:
core/main.lua:26: short read
stack traceback:
	core/main.lua:149: in function <core/main.lua:147>
	[C]: in function 'error'
	core/main.lua:26: in function 'assert'
	program/config/common.lua:121: in function 'read_length'
	program/config/common.lua:144: in function 'recv_message'
	program/config/common.lua:153: in function 'call_leader'
	program/config/get/get.lua:8: in function 'run'
	program/config/config.lua:23: in function 'run'
	core/main.lua:67: in function <core/main.lua:43>
	[C]: in function 'xpcall'
	core/main.lua:211: in main chunk
	[C]: at 0x004535b0
	[C]: in function 'pcall'
	core/startup.lua:3: in main chunk
	[C]: in function 'require'
	[string "require "core.startup""]:1: in main chunk

So it looks like the config program is getting EOF at the point where it tries to read the message length part of the protocol right after sending a get-config message (the describe message seems to get through).
BTW, while reading through some of the RPC code I think I found a minor bug but not 100% sure. Here's a patch for it included below:
From fbff900411bc6e52ad4ca83ee6037f78100e7b60 Mon Sep 17 00:00:00 2001
From: Asumu Takikawa<EMAIL_ADDRESS>Date: Thu, 8 Dec 2016 00:07:43 -0800
Subject: [PATCH] Fix accidental hardcoding of the schema name

---
 src/lib/yang/rpc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/yang/rpc.lua b/src/lib/yang/rpc.lua
index 0d2fde5..6c5395b 100644
--- a/src/lib/yang/rpc.lua
+++ b/src/lib/yang/rpc.lua
@@ -15,7 +15,7 @@ function prepare_callee(schema_name)
 end

 function prepare_caller(schema_name)
-   local schema = schema.load_schema_by_name('snabb-config-leader-v1')
+   local schema = schema.load_schema_by_name(schema_name)
    return {
       print_input = data.rpc_input_printer_from_schema(schema),
       parse_output = data.rpc_output_parser_from_schema(schema)
--
2.1.4

Hi, "short read" means the leader hung up on the call, which it will do if there is any error.  We have to look on the leader side for the details.  The patch isn't right -- we always talk to the leader with the snabb-config-leader-v1 rpcs, they embed data for other schemas (see that yang model).

After @wingo figured out that there was some GC trouble going on (adding collectgarbage() makes it crash quickly), I kept looking and it seems like the problem is that peer.buf gets freed by the GC too soon because peer itself is freed after the write.
Here are two patches that at least prevent the crashing. Not proposing this as a real fix though, since it's a kludge.
Patch 1:
From 53e93b6036e7942eb7bcc1b8b4cdce8c564bbb96 Mon Sep 17 00:00:00 2001
From: Asumu Takikawa<EMAIL_ADDRESS>Date: Fri, 9 Dec 2016 00:01:50 +0000
Subject: [PATCH 1/2] Hang onto peer.buf to avoid GC

Not a real solution, but prevents crashing
---
 src/apps/config/leader.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/apps/config/leader.lua b/src/apps/config/leader.lua
index 53dcde7..23f03e3 100644
--- a/src/apps/config/leader.lua
+++ b/src/apps/config/leader.lua
@@ -532,6 +532,7 @@ function Leader:handle (payload)
 end

 local dummy_unix_sockaddr = S.t.sockaddr_un()
+local bufs_table = {}

 function Leader:handle_calls_from_peers()
    local peers = self.peers
@@ -608,6 +609,7 @@ function Leader:handle_calls_from_peers()
             reply = #reply..'\n'..reply
             peer.state = 'reply'
             peer.buf = ffi.new('uint8_t[?]', #reply, reply)
+	    table.insert(bufs_table, peer.buf)
             peer.pos = 0
             peer.len = #reply
          else
--
2.5.2

Patch 2:
From 61bd0817397d5d9a5a7aceb40f7ad6d944d8b0d8 Mon Sep 17 00:00:00 2001
From: Asumu Takikawa<EMAIL_ADDRESS>Date: Fri, 9 Dec 2016 00:04:06 +0000
Subject: [PATCH 2/2] Increase test duration for prop_nocrash

---
 src/program/lwaftr/tests/propbased/prop_nocrash.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/program/lwaftr/tests/propbased/prop_nocrash.lua b/src/program/lwaftr/tests/propbased/prop_nocrash.lua
index 136a3f9..62afe9d 100644
--- a/src/program/lwaftr/tests/propbased/prop_nocrash.lua
+++ b/src/program/lwaftr/tests/propbased/prop_nocrash.lua
@@ -31,7 +31,7 @@ function handle_prop_args(prop_args)

    local pid = S.fork()
    if pid == 0 then
-      local cmdline = {"snabb", "lwaftr", "run", "-D", "2", "--conf",
+      local cmdline = {"snabb", "lwaftr", "run", "-D", "8", "--conf",
           "program/lwaftr/tests/data/icmp_on_fail.conf", "--reconfigurable",
           "--on-a-stick", pci_addr}
       -- FIXME: preserve the environment
--
2.5.2

The following patch is potentially a better fix, though I'm not entirely sure why it works. (if anyone who has a better grasp of LuaJIT's FFI semantics can take a look that'd be great)
From 2023ccc8baaff8e7dc127ea7a2d32611dbb596dd Mon Sep 17 00:00:00 2001
From: Asumu Takikawa<EMAIL_ADDRESS>Date: Fri, 9 Dec 2016 05:16:23 +0000
Subject: [PATCH] Cast reply string instead of using ffi.new

---
 src/apps/config/leader.lua                          | 2 +-
 src/program/lwaftr/tests/propbased/prop_nocrash.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/apps/config/leader.lua b/src/apps/config/leader.lua
index 53dcde7..ec9179b 100644
--- a/src/apps/config/leader.lua
+++ b/src/apps/config/leader.lua
@@ -607,7 +607,7 @@ function Leader:handle_calls_from_peers()
             assert(type(reply) == 'string')
             reply = #reply..'\n'..reply
             peer.state = 'reply'
-            peer.buf = ffi.new('uint8_t[?]', #reply, reply)
+            peer.buf = ffi.cast("uint8_t*", reply)
             peer.pos = 0
             peer.len = #reply
          else
diff --git a/src/program/lwaftr/tests/propbased/prop_nocrash.lua b/src/program/lwaftr/tests/propbased/prop_nocrash.lua
index 136a3f9..6743749 100644
--- a/src/program/lwaftr/tests/propbased/prop_nocrash.lua
+++ b/src/program/lwaftr/tests/propbased/prop_nocrash.lua
@@ -31,7 +31,7 @@ function handle_prop_args(prop_args)

    local pid = S.fork()
    if pid == 0 then
-      local cmdline = {"snabb", "lwaftr", "run", "-D", "2", "--conf",
+      local cmdline = {"snabb", "lwaftr", "run", "-D", "10", "--conf",
           "program/lwaftr/tests/data/icmp_on_fail.conf", "--reconfigurable",
           "--on-a-stick", pci_addr}
       -- FIXME: preserve the environment
--
2.5.2

Aaaaah, excellent work @takikawa.  So it turns out it's not an early free but rather corruption.  Quoth http://luajit.org/ext_ffi_semantics.html in "Initializers":

Byte arrays may also be initialized with a Lua string. This copies the whole string plus a terminating zero-byte. The copy stops early only if the array has a known, fixed size.

I was thinking that ffi.new('uint8_t[?]', #str, str) would make an array with "known, fixed size".  But I think that characteristic applies to the type, and is uint8_t[?] fixed, even when given its length?  I thought so.  I was wrong; you can't do this:
local buf = ffi.typeof('uint8_t[?]', #str)(str)

But you can do this:
local buf = ffi.typeof('uint8_t[$]', #str)(str)

Using the $ makes an array type with fixed size.  The [?] makes a variable-length array (VLA).
So this bug was that LuaJIT was writing a zero byte beyond the array, and that was corrupting the GC metadata (probably the header for the next object).  Putting all buffers in an array mitigated the bug by never requiring that the data be collected.  The real fix tho is to stop writing beyond the end of data :)  I will prepare a PR.

Superseded by #703


Consider using Sphinx for gh-pages

https://github.com/readthedocs/godocjson
https://github.com/readthedocs/sphinx-autoapi

So I want down this rabbit hole and learned quite a bit:

Installing sphinx-autoapi[go] includes sphinxcontrib-golangdomain which requires Python 2.7
The only conf.py configuration needed isautoapi_type = "go"
autoapi_dirs = ["..", "../postgres"]

Actually running sphinx-build invokes godocjson (so it must be available on ${PATH}); however this is just an intermediate that creates some JSON; we have other options for how to get this JSON, e.g. we could just store it as static content in the repo
To actually get the content to build I had to create "dummy" files docs/index.rst (for Sphinx), docs/contents.rst (for autoapi) and a dummy directory (docs/autoapi/). These happened at different stages of tinkering, so I'm not entirely sure which are truly required.

It's clear that the sphinx-autoapi project is active (most recent commit was August 17, 2020, i.e. 3 days ago). However, the Go support is not active; the sphinxcontrib-golangdomain project has not had a release since Apr 8, 2018 (after a long hiatus from all other releases in 2013) and has only had 5 commits since 2013.

I pushed https://github.com/dhermes/golembic/tree/issue-6 to showcase this.

It'd be nice if I code just specify a custom domain and utilize some kind of shared goodies from the package. I tried autoapi_type = "go-djh" and got
loading pickled environment... done

Extension error:
Invalid autoapi_type setting, following values is allowed: "dotnet", "go", "javascript", "python"
make: *** [Makefile:20: html] Error 2

It's possible that autoapi_generate_api_docs = False could be set and then somehow read directly from JSON from some custom domain (i.e. go-djh).


Implement capability for a hard fork for extended/infinite claim expiration times

Based on https://github.com/lbryio/lbrycrd/pull/112, unlike this one, this PR should not hard fork mainnet or testnet. It does implement the hard forking in regtest so it can be tested downstream. Regtest sets original expiration time to 500, forks at height 800 and sets it to new expiration time 600.
Below are additions to  https://github.com/lbryio/lbrycrd/pull/112:
Made #define statement to change whether we are removing claim expiration or not, currently set to not remove it.
Adjusted chainparams so mainnet and testnet does not hard fork, made regtest fork to an extended expiration time for testing purposes.
Changed the initialization of nExpirationTime in CClaimTrie to use chainparams
I adjusted claimtriebranching_no_expire  to account for the fact that CClaimTrie should be using RegTesting expiration related parameters (so no need to set nExpirationTime inside the test). Also added a test that checks to see if claims that expire after the fork height still expires at the original height as expected.

merged as part of https://github.com/lbryio/lbrycrd/pull/137


Command not defined exception.

Sometimes I think it would be nice if the dep would look in parent directories for a deploy.php as I'm often in a sub-folder making changes, then I have to get back up to the root to get dep to work.

Done in v4.


Add way to check root element of object

E.g. a 3x3 rift is still a rift

Added Obj:isRootElement


[Bug]: Tabs action with Popover or Link are only clickable on the last tab

Browser
Chrome, Firefox
Package version
3.0.857
React version
18.2.0
Description
When clicking on a Popover or Link that is rendered in the action slot of the Tabs component, the popover or link should be triggered. Currently clicks are only being registered on the last tab (right-most).
When testing this issue with other components, the Button component is not affected by this issue and works as expected.
Source code
No response
Reproduction
https://codesandbox.io/p/sandbox/cloudscape-tabs-action-bug-44pwp3
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems

Hi Brandon, thanks for reaching out.
I can indeed reproduce this behaviour in our playground examples as well. I will create a ticket on our end to track this. Also to note, for links, if they are info links, they shouldn't be added as an action per our guidelines. We also suggest to use inline icon buttons and inline icon button dropdowns in the actions.

Thanks @cansuaa,
We're using the action slot for the New label and popover that is shown when announcing new features.
I noticed the tabs component guidelines says:

Follow the guidelines for announcing new features to communicate if the tab is new, and follow the guidelines for announcing beta and preview features to communicate if the tab is in beta or preview.

But the announcing new features page doesn't actually have specific guidelines for how to use the labeling with tabs. I think that's a gap in the docs that should be addressed.
In the meantime, I'll try the z-index workaround. Thanks!

When attempting to wrap the popover in a span with a z-index value, chrome noted that because the span element has position: static that the z-index value wound't be applied.
When I set the span to position: relative without setting a z-index, it allows popover to be clickable, so I'll use that as our workaround for now.


[EventRequest] Table 1294 "Applied Payment Entry" - OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc

Describe the request
Can you please add event OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc in procedure GetTotalAppliedAmountInclPmtDisc
Event Publisher would be:
    [IntegrationEvent(false, false)]     local procedure OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc(var AppliedPaymentEntry: Record "Applied Payment Entry"; AppliedPaymentEntryRec: Record "Applied Payment Entry")     begin     end;
The procedure would look like:
` procedure GetTotalAppliedAmountInclPmtDisc(IsDelete: Boolean): Decimal
var
AppliedPaymentEntry: Record "Applied Payment Entry";
TotalAmountIncludingPmtDisc: Decimal;
begin
AppliedPaymentEntry.SetRange("Statement Type", "Statement Type");
AppliedPaymentEntry.SetRange("Statement No.", "Statement No.");
AppliedPaymentEntry.SetRange("Statement Line No.", "Statement Line No.");
AppliedPaymentEntry.SetRange("Bank Account No.", "Bank Account No.");
AppliedPaymentEntry.SetRange("Account Type", "Account Type");
AppliedPaymentEntry.SetRange("Account No.", "Account No.");
AppliedPaymentEntry.SetFilter("Applies-to Entry No.", '<>%1', "Applies-to Entry No.");
OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc(AppliedPaymentEntry, Rec);
    if IsDelete then
        TotalAmountIncludingPmtDisc := 0
    else
        TotalAmountIncludingPmtDisc := "Applied Amount" - "Applied Pmt. Discount";
    ....
    ....

end;`

Additional context
We want to be able to apply additional filters to the record
Internal work item: AB#542663

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 22786.


[e2e] Duplicate message index from android app

As reported at https://github.com/matrix-org/synapse/issues/1669:
It looks like $14808717113401196FlzLb:matrix.org and $14808726053404510BqAmd:matrix.org were both sent using message index 0, from the same megolm session. The messages are otherwise different, so it's not a duplication within the network (or an actual replay attack).
@ylecollen: any idea how this might have happened?

I suspect that the first message has been resent after connection lost.

but they are clearly different messages.

The only steps i can see
-> Bob sends a message but it has been encrypted but it cannot be sent
-> the application is killed (by the user or by the system) -> the dedicated olm session backup failed
-> Bob restarts the application the former olm session is restored
-> bob resends the first message (encrypted with index 0) and sends a new one (encrypted with index 0)


Kubernetes 1.11: In-Cluster Load Balancing and CoreDNS Plugin Graduate to General Availability

Per the release notes, IPVS is not yet the default when is went GA in release 1.11.  Can you tell me when IPVS replaced IPTables as default proxy mode?

Hi @drohnow, can you provide a link to the release page?

/kind support

iptables is still default as of 1.25
From https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/
/close

--proxy-mode ProxyMode
Which  proxy mode to use: 'iptables' (Linux-only), 'ipvs' (Linux-only),  'kernelspace' (Windows-only), or 'userspace' (Linux/Windows,  deprecated). The default value is 'iptables' on Linux and 'userspace' on  Windows(will be 'kernelspace' in a future release).This parameter is  ignored if a config file is specified by --config.

/close


Bumping version

Refer to this link for build results (access rights to CI server needed):
http://ops-jenkins-master-001.optoro.io:8080/job/optoro_skel-pr/3/
Test PASSed.


Custom telemetry collection for teams managing VSCode deployment

VSCode has a great set of telemetry primitives to enable extension authors to collect telemetry, we would love to see something similar provided for organizations that manage a large team of developers using VSCode and are looking to collect telemetry.
Specifically, we would like to be able to collect metrics that would answer questions like:

"How long does do code actions take?"
"How long does a file save take?"
"How long does initialization of the language server take?"
"How frequently does VSCode's builtin tsserver process crash?"
"What errors are occurring in our users' installed extensions?"

For organizations with a team of hundreds of developers using VSCode, collection of this data can be very cumbersome and reactive. We would much prefer to be proactive and be able to analyze these metrics to see if misconfigurations in our projects or recommended extensions are causing a degraded experience for our developers.

+1 on this, we too are currently looking into how we can monitor VSCode used within the organization. It would be nice for us to have this out of the box without having to come up with our own distribution to patch the telemetry implementation.

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog for now to gather more feedback. Thanks


Is there a way to do this with a package manager besides conda?

I'm biased toward venv, and any time I see conda mentioned, I cringe a bit since it involves installing a ton of stuff I don't need

Yeah, nothing to prevent you from using venv if that’s what you prefer.
But you might be thinking of the full anaconda environment , which does install a lot of extra stuff.  I recommend miniconda, which only includes a fairly minimal set of packages and in my opinion makes it a bit easier to manage multiple environments with different python versions.


Proposal: PropertyNamer does not support returning nulls

When using entity FW and DBs. It is greate to make nullable FK's automatically have a null value.
This used to work when overriding RandomValuePropertyNamer. but v6 i can no longer return a null ie.. default(int?) (or maybe the issue is C# latest.)
Could i propose adding the nullables get methods for the Guid and int in the RandomValuePropertyNamer?

I gues the "ShouldIgnore" is a way to also achieve this


WL-4812: Validate on saving any change to a nested reading list

This has in it:
i. scrolling to the top of the screen to bring the error message into view when there is one
ii. allowing some drag and drop moves that were being incorrectly caught when validating.

Thanks


Make workspaces code dynamic

Describe the bug
Some of the current files in working code : https://github.com/janibashamd/f5-hybrid-security-architectures are seem to have static vars available like /arcadia/data.tf, /eks-cluster/data.tf, /nic/data.tf, /xc/data.tf etc
To Reproduce
Steps to reproduce the behavior:

Go to 'https://github.com/janibashamd/f5-hybrid-security-architectures '
Click on data.tf files in each section
Check values of each workspace

Expected behavior
Since these are user params, keeping static values won't work
Screenshots
If applicable, add screenshots to help explain your problem.

Fix validated and will be merged as part of release 2.3.1 on 25 May 2023.

v2.3.1


It is better to remove the checkbox "Don't ask again about enabling soft delete" from the 'Delete' dialog if the soft delete is already enabled

Storage Explorer Version: 1.27.0-dev
Build Number: 20221117.5
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 18.04/MacOS Ventura 13.0 (Apple M1 Pro)
Architecture: ia32/x64
How Found: Ad-hoc testing
Regression From: Not a regression
Steps to Reproduce

Expand one storage account -> Blob Containers. (Soft delete is enabled)
Create a blob container -> Upload one blob.
Right click the blob -> Click 'Delete'.
Check there is no checkbox "Don't ask again about enabling soft delete" on the dialog.

Expected Experience
It is better to remove the checkbox "Don't ask again about enabling soft delete" from the 'Delete' dialog.
Actual Experience
There is a checkbox "Don't ask again about enabling soft delete" on the 'Delete' dialog.

Addition Context
This issue also reproduces for ADLS Gen2 blobs when the setting "Enable ADLS Gen2 soft delete (Preview)" is disabled.

Should be corrected with the most recent changes in main branch.

Verified this issue on the main build 20221118.3. Fixed.


Support for Multiple Test Configurations

New Feature
Priority: High
Description:
Implement the ability to configure multiple TBE (Test Before Each), TBA (Test Before All), TAA (Test After All), and TAE (Test After Each) within the test case (TC) configuration settings to allow more granular control over test case operations.

Tested OK
Tested Version: 3.2.5
Implement the ability to configure multiple TBE (Test Before Each), TBA (Test Before All), TAA (Test After All), and TAE (Test After Each) within the test case (TC) configuration settings to allow more granular control over test case operations.
Refer the video link
https://jam.dev/c/2d1c903e-2acd-462a-806c-37383814614f


Fix four bugs with numeric dimension output types.

This patch includes the following bug fixes:

TopNColumnSelectorStrategyFactory: Cast dimension values to the output type
during dimExtractionScanAndAggregate instead of updateDimExtractionResults.
This fixes a bug where, for example, grouping on doubles-cast-to-longs would
fail to merge two doubles that should have been combined into the same long value.
TopNQueryEngine: Use DimExtractionTopNAlgorithm when treating string columns
as numeric dimensions. This fixes a similar bug: grouping on string-cast-to-long
would fail to merge two strings that should have been combined.
GroupByQuery: Cast numeric types to the expected output type before comparing them
in compareDimsForLimitPushDown. This fixes #6123.
GroupByQueryQueryToolChest: Convert Jackson-deserialized dimension values into
the proper output type. This fixes an inconsistency between results that came
from cache vs. not-cache: for example, Jackson sometimes deserializes integers
as Integers and sometimes as Longs.

And the following code-cleanup changes, related to the fixes above:

DimensionHandlerUtils: Introduce convertObjectToType, compareObjectsAsType,
and converterFromTypeToType to make it easier to handle casting operations.
TopN in general: Rename various "dimName" variables to "dimValue" where they
actually represent dimension values. The old names were confusing.

@fjy please don't merge PRs with unanswered comments (despite the approval), otherwise why they are left?

Fwiw, I had already started addressing some of those comments, so I plan to raise a follow up PR for that.
Btw, @leventov what did you intend by doing an approval + also leaving comments? I'd interpret that as "please consider these comments, but if you don't want to do them, I am ok with that." I thought they were all reasonable comments so that's why I'm doing a follow up.

Follow-up is in #6231.


Invoking SSS on select multiple doesn't hide the select

I have been looking for a replacement for Select 2 and this looks promising.
However when I invoke SSS on the select multiple element, I do get the separate inputs, and
the select is updated. But the select isn't hidden as shown in the screenshot. Any ideas?

Ok, finally got the image to upload.

Thanks for the pointer. I had a 'display: inline-block' on the select that was making it visible.
Once I changed the CSS rule to apply only if :not([hidden]) the pesky select went away.
I may be back with a few more questions. I still have an issue where the active input box doesn't show a placeholder/prompt. I assume the placeholder is identified by the option with an empty value (value="")?
I am also trying to format the selected items inside a wrapping flexbox to make them more compact.
Obviously, this compact form will only apply to desktop or other devices where swipe gestures won't be used.
Thanks for your help.

I may be back with a few more questions. I still have an issue where the active input box doesn't show a placeholder/prompt. I assume the placeholder is identified by the option with an empty value (value="")?

Yes, however, I added the option to be able to specify it in version 1.1.0


codegen output a7ba6f00842745a4a81cfd756b0a03af

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

124 of 153 (81.05%)  changed or added relevant lines in 12 files are covered.
11 unchanged lines in 3 files lost coverage.
Overall coverage increased (+1.0%) to 70.402%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

box_sdk_gen/managers/folder_metadata.py
1
2
50.0%

box_sdk_gen/managers/integration_mappings.py
0
1
0.0%

box_sdk_gen/managers/search.py
1
2
50.0%

box_sdk_gen/managers/shield_information_barrier_reports.py
1
2
50.0%

box_sdk_gen/managers/shield_information_barriers.py
0
1
0.0%

box_sdk_gen/managers/zip_downloads.py
1
2
50.0%

box_sdk_gen/utils.py
41
42
97.62%

box_sdk_gen/managers/file_requests.py
1
3
33.33%

box_sdk_gen/schemas.py
17
37
45.95%

Files with Coverage Reduction
New Missed Lines
%

box_sdk_gen/managers/shield_information_barrier_reports.py
1
57.5%

box_sdk_gen/managers/zip_downloads.py
1
62.0%

box_sdk_gen/schemas.py
9
66.44%

Totals

Change from base Build<PHONE_NUMBER>:
1.0%

Covered Lines:
5868

Relevant Lines:
8335

💛  - Coveralls


Broken link in READMe

When I click this link:

I see this, I don't understand what it says but looks like 404 page:


✨ Add new Remediation Controller to CAPM3

This PR implements capm3-remediation-controller proposal.
This PR calls for a new Metal3Remediation object and a new controller in CAPM3 that uses BMO APIs to perform automated remediation of unhealthy nodes in Metal3 project.
This proposal also introduces Metal3RemediationTemplate CRD. The Metal3RemediationTemplate is used by CAPI MachineHealthCheck to create Metal3Remediation objects when it detects unhealthy Machines in the cluster.

/test golint

/test-integration

/test golint

/test golint

/test golint

/test-integration

/test-v1a4-integration
/test-v1a4-centos-integration

/test-v1a4-integration
/test-v1a4-centos-integration

/test-v1a4-centos-integration

@jan-est this needs a rebase.

/test-v1a4-integration
/test-v1a4-centos-integration

/test-v1a4-integration
/test-v1a4-centos-integration


Update README.md

Hi Riiddhik,
Sorry I would not be able to merge this PR as it goes against the guidelines of hacktoberfest so marking it as invalid


StrSubstNo or string concatenation must not be used as a parameter in the Error method

Title
StrSubstNo or string concatenation must not be used as a parameter in the Error method.
Description
The data classification context will be lost when using the StrSubstNo method or string concatenation as a parameter in the Error method. Instead use the ability of the Error method to insert values into the string with placeholders.
Reason for the rule
All error messages are logged into telemetry and we do not allow adding customer data into telemetry.
So all error that have a textconst as first argument actually log the textconst in telemetry, this greatly increase that ability to resolve errors found in telemetry.
If StrSubstNo or string concatenation is used as first argument the data classification context is lost and no message text is logged in telemetry.
Bad code sample 1
var
   ErrorMsg: Label 'Customer %1 has incorrect email', Comment = '%1 = Customer No.';

local procedure MyProcedure()
begin
    Error(StrSubstNo(ErrorMsg, Customer."No.");
end;

Good code sample 1
var
    ErrorMsg: Label 'Customer %1 has incorrect email', Comment = '%1 = Customer No.';
local procedure MyProcedure()
begin
    Error(ErrorMsg, Customer."No.");

end;

Bad code sample 2
var
   Text000Err: Label 'There are no planning lines to make orders for. ';
   Text007Err: Label 'This template and worksheet are currently active. ';
local procedure MyProcedure()
begin
    Error(Text000Err + Text007Err);
end;

Good code sample 2
var
   ErrorMsg: Label 'There are no planning lines to make orders for. This template and worksheet are currently active. ';
local procedure MyProcedure()
begin
    Error(ErrorMsg);
end;

Good and bad practices for fixing the rule
Use ability of Error method to insert values (expressions) into the string that has placeholder.
Remarks
None

We only get the error test in Telemetry if the first argument is a label or a textconst.


My chart's legend and axis labels don't show up in Chrome

I posted my issue on Stackoverflow.
I made a grouped bar chart, but the legend and axis labels don't show up in Chrome. It looks fine in Firefox, though. Attached are files showing how the chart looks in Firefox vs Chrome.
What am I doing wrong?

https://github.com/chrismp/chrismp.github.io/pull/1

can we close this issue please and thanks.

You will have to as I can not


Unable to compile and launch ExternalMaps.sln in Xamarin.

I am unable to launch and compile the app in Xamarin. Getting the following error:

I'm on the latest version of Xamarin running on OS X El Capitan.

That is fine it is just a warning that UWP projects can't load. Alpha you can now load


[OTHER] change web page title

What would you like to share?
The title says Whisper | Chat Application change all instances of that in index.html to Whisper | Anonymously Chat and Make a friend
Additional information
No response
👀 Have you checked if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read and understood the rules in the Contributing Guidelines

Are you willing to work on this issue ?
None

can I work on this?

can I work on this?

No, this is a good first issue

I am willing to work on this issue. I am new comer here @Dun-sin

I am willing to work on this issue. I am new comer here @Dun-sin

Ok, thanks for wanting to contribute, Make sure you follow the rules 👉🏽here👈🏽, else your PR will not be accepted and will be closed. Good Luck


Sending a Transactional SMS Message to a Phone Number

Issue on page:        https://github.com/opentelekomcloud-docs/simple-message-notification/blob/main/api-ref/source/apis/sms_message_operations/sending_a_transactional_sms_message_to_a_phone_number.rst
On Page: https://docs.otc.t-systems.com/simple-message-notification/api-ref/apis/sms_message_operations/sending_a_transactional_sms_message_to_a_phone_number.html#smn-api-55001
What means: "Cloud Communications > Message&SMS." ?

Question addressed in gitea for the next doc version: https://gitea.eco.tsi-dev.otc-service.com/docs/simple-message-notification/issues/64


Removing impress at screensize (dynamically) and stopping at the end of the slideshow.

Hi all,
I have a couple of questions I've been fighting with and wondered if you chaps would know the solutions (i'm not super hot on my jquery):

I'd like to remove impress (all functionality) at 768px screen size, so I can provide users with a different layout for mobile. I'd like to make this happen dynamically as the user resizes the window -  Sadly this doesn't work as I want:

if ($(window).width() > 768) {
        impress().init();
    }

As this doesn't fire when the window is resized and therefor doesn't reinitiate impress when the screen is increase - and doesn't remove it when screen is decreased.
I've tried adding and removing a class to the body at 768px then trying to remove all the CSS applied from impress but this is just getting messy. (code below) Could someone help me out?
function checkWidth(init)
{
    /*If browser resized, check width again */
    if ($(window).width() < 768) {
        $('html').addClass('remove-impress');
    }
    else {
        if (!init) {
            $('html').removeClass('remove-impress');
        }
    }
}

$(document).ready(function() {
    checkWidth(true);

    $(window).resize(function() {
        checkWidth(false);
    });
});

I'd like my presentation to end at the last slide and not loop - I think I must be something simple - could someone point this out to me!

Many thanks, fab bit of code btw!
Ben
(updated to add the second lot of Jquery)

This use case will only be able to be fixed once impress.js can dynamically change it's properties. Closing in favor of #537 then.
As from the second point I have created a new issue to track too: #538.


Fails on Windows 10

The plugin fails to find pip during the installation.  The directory structure created in the virtual environment is different than what the plugin expects.  The pip executable is installed in Scripts instead of bin.

Same problem here, it seems that it´s trying to reference an non existing directory path:
[ERROR] Failed to execute goal no.oms.maven:pre-commit-maven-plugin:0.2.3:download-binary (default) on project sms: Failed to install binary: Python encountered an issue when installing the pre-commit binary: Failed to execute python: Cannot run program "C:\santalucia\workspace\sms\precommit_files\pre-commit\.pre-commit-virtualenv/bin/pip": CreateProcess error=2, El sistema no puede encontrar el archivo especificado -> [Help 1]

In directory .pre-commit-virtualenv there is no /bin/pip directory, only directories:
Include
Lib
Scripts
pyenv.cfg


x/tools/internal/refactor/inline: offer an option to inline all calls in a file

At the moment the inliner operates on one call at a time this limits the cleanup work the inliner can do when you want to inline all calls in a single file.
One example for such cleanups are import renames and removals. Since #67281 is fixed it now works for individual calls. However, if there are multiple calls in a single file, the problems remains. The inliner analyzer generates one diagnostic per call and the attached suggested fix needs to be self contained and correct when applied in isolation. This means if there are two calls, the inliner cannot avoid the import rename and cannot remove the import of the old package because it would make it impossible to apply the suggested fixes in isolation. Example:
-- path/to/old/dependency/dep.go --
package dependency
import "path/to/new/dependency"
// inlineme
func Foo() { dependency.Foo() }

-- path/to/new/dependency/dep.go --
package dependency
func Foo() {}

-- some/user/main.go --
package main
import "path/to/old/dependency"
func main() {
  dependency.Foo() // one diagnostic here
  dependency.Foo() // another diagnostic here
}

To solve this problem the inliner could offer a mode in which it generated one diagnostic per file with a suggested fix that inlines all calls (potentially of different functions).

Related Issues and Documentation

x/tools/internal/refactor/inline: analyzer generates unnecessary import renames #67281 (closed)
x/tools/internal/refactor/inline: analyzer generates suggested fixes that move comments incorrectly #67336

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

CC @adonovan.


Fail to match

I have following lines:
    + param1: baz (string, optional) - all inline option parameter
    + param2: no description (string, optional)
    + param3 (integer, required) - parameter without example
    + param4: true (required) - no type
    + param5: 23423 (enum[string], required) - enumerable

Each line is checked against following regex:
(?i)(?P<leading_white>\s+)\+\s+(?P<name>[\w\d_]+)(?:[:]\s+(?P<example>[\w\d ]+))?\s+(?:\(\s*(?P<param_type1>([\w\d]+)|enum\[[^]]+\])\s*,\s*(?P<req_opt1>required|optional)\)|\(\s*(?P<req_opt2>required|optional)\s*\)|\(\s*(?P<param_type2>[\w\d]+)\s*\))?(?:\s+\-\s+(?P<desc>[^\n]+)?)?

I checked this regex here: https://regex101.com/r/C9MTGi/1/
In theory it should match all 5 but example 3 is failing

The rust regex crate doesn't have the exact same semantics and syntax as python's regex module, so the fact that that regex101 link you shared matches, but rust's regex crate doesn't isn't necessarily evidence of a bug.
That regex is pretty long. Can you try to shrink it down to a smaller and easier to understand test case that better highlights the exact match semantics that you think this crate should have?

@Eraden When filing bug reports, please include a reproducible example that others can compile and execute. Not doing this costs time and energy on our part, which isn't fair.
I did this for you and every single one of your subjects matches.
fn main() {
    let re = regex::Regex::new(r"(?i)(?P<leading_white>\s+)\+\s+(?P<name>[\w\d_]+)(?:[:]\s+(?P<example>[\w\d ]+))?\s+(?:\(\s*(?P<param_type1>([\w\d]+)|enum\[[^]]+\])\s*,\s*(?P<req_opt1>required|optional)\)|\(\s*(?P<req_opt2>required|optional)\s*\)|\(\s*(?P<param_type2>[\w\d]+)\s*\))?(?:\s+\-\s+(?P<desc>[^\n]+)?)?").unwrap();
    let subjects = &[
        "    + param1: baz (string, optional) - all inline option parameter",
        "    + param2: no description (string, optional)",
        "    + param3 (integer, required) - parameter without example",
        "    + param4: true (required) - no type",
        "    + param5: 23423 (enum[string], required) - enumerable",
    ];
    for &subject in subjects {
        println!("{:?}", re.is_match(subject));
    }
}

Output:
true
true
true
true
true

Playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d8caf6746fb87a913560be70b53ee9a7


function_link matches everything until the next closed parenthesis

It seems that function_link pattern is a bit fragile if the opening parenthesis is not closed as expected.
In particular it matches multiple lines and eats up other tags. Here's an emacs screenshot showing the problem.

I guess it would be better to either stop at new line (not sure if doxygen autolink matches function names on multiple lines) or maybe at the next '@' or '\' tag instead of blindly matching from one parenthesis to the next no matter what's in between.

I have no clue either, but I agree it'd be a better experience to have it not over-consume across multiple lines


Do I have to explicitly import the TypeScript definitions?

Hey there -- I noticed the jest-enzyme and jest-environment-enzyme packages both supply TypeScript definitions for augmenting the Jest matchers and setting up the global namespace, respectively. That's great!
However, I only seem to be able to get them to work if I explicitly include them in my tsconfig.json file, like this:
  "include": ["src/**/*", "node_modules/jest-enzyme/lib/index.d.ts"]

Is this how I'm supposed to be doing things?

Unfortunately, I'm not a typescripter. So i'm going to cc some people who have helped get the types in here and maybe they can help!
Calling all typescripters! @vkrol @astorije @cyberhck @pascalduez

My hunch is that because the types are defined within the package proper rather than published as their own @types package, TypeScript doesn't look for them automatically -- so even though they're global augmentations they don't get pulled in unless another piece of code requires them (or they're explicitly included in compilation in tsconfig.json, as I did above).
That means that this suggested setup
"jest": {
  "setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js",

won't pull them in, unfortunately.

yes, we also do what @lostfictions mentioned because we have special matchers as well :smile: when we simply do a import 'jest-enzyme' it simply works though, I didn't face any problems which was asked. I'll also link @paibamboo and see if I missed something.

Gonna close this as it seems to be solvable in user land.


Critical: Ream creates invalid Webpack config object

With the latest deps, fresh Ream install in an empty project directory (according to https://ream.js.org/guide/introduction.html) can't even start due to a Webpack config error.
Steps to reproduce
Create Dockerfile:
FROM node:10

WORKDIR /test
RUN npm i ream && npx ream dev

run it:
docker build .

Results
...
+<EMAIL_ADDRESS>added 876 packages from 451 contributors and audited 9124 packages in 36.408s
found 0 vulnerabilities

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.externals should be one of these:
   function | string | object { <key>: string | object | [non-empty string] | boolean } | RegExp | [function | string | object { <key>: string | object | [non-empty string] | boolean } | RegExp]
   -> Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.
   Details:
    * configuration.externals should be an instance of function
      -> `function(context, request, callback(err, result))` The function is called on each dependency.
    * configuration.externals should be a string.
      -> An exact matched dependency becomes external. The same string is used as external dependency.
    * configuration.externals should be an object.
      -> If an dependency matches exactly a property of the object, the property value is used as dependency.
    * configuration.externals should be an instance of RegExp
      -> Every matched dependency becomes external.
    * configuration.externals[0] should be an instance of function
      -> `function(context, request, callback(err, result))` The function is called on each dependency.
    * configuration.externals[0] should be a string.
      -> An exact matched dependency becomes external. The same string is used as external dependency.
    * configuration.externals[0] should be an object.
      -> If an dependency matches exactly a property of the object, the property value is used as dependency.
    * configuration.externals[0] should be an instance of RegExp
      -> Every matched dependency becomes external.
    at webpack (/test/node_modules/webpack/lib/webpack.js:31:9)
    at createConfigs.map.config (/test/node_modules/ream/lib/index.js:149:47)
    at Array.map (<anonymous>)
    at Ream.createCompilers (/test/node_modules/ream/lib/index.js:149:33)
    at module.exports.api (/test/node_modules/ream/lib/utils/setupWebpackMiddlewares.js:4:48)
    at Ream.getServer (/test/node_modules/ream/lib/index.js:270:49)

Of course Docker is not required, I was just using it to 100% reliably isolate my environment.

I think there are extra square brackets here: https://github.com/ream/ream/blob/9e368363ae19ce22443577698b68665ee528f9aa/lib/webpack/webpack.config.server.js#L25 but I'm not 100% sure.

Until the fix is merged, the workaround is adding this to config:
chainWebpack (config) {
	const externals = config.get('externals')
	if (Array.isArray(externals) && externals.length === 1 && Array.isArray(externals[0])) {
		// Fix Ream bug, see https://github.com/ream/ream/issues/115
		config.externals(externals[0])
	}
}

Sometimes I wonder if I'm the only one using Ream? 🤔It seems to hit the middle ground between bloated Nuxt and boilerplate repetitive Vue SSR just perfectly. So sad it's not getting any traction.

:tada: This issue has been resolved in version 3.2.9 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 3.2.10 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How exactly I get the mod work?

Question in title, please help!

Go to the controls page

and how do I bind two keys at once?

Screenshot your controls page
If the mod works properly, set your first key, then click the "+" at the right of it. Now you can bind another key, and circle through your bound keys or bind another one by pressing "+" again


Feature request: ability to disable checking for bookmarks

I use sshfs sometimes to edit files remotely, and so many of my bookmarks refer to these files, which are mounted locally and then unmounted when I'm not using sshfs. Thus, unless I have my remote server mounted, NERDTree complains that I have invalid bookmarks.
It's not that big of a deal, but it'd be nice to be able to disable bookmark checks, so that I don't keep getting this error message on startup.

Per #168, the warning has been diabled; therefore, I'm closing this issue.


[FLOC-2538] An option to allow all flocker scripts to log to a file

Design for https://clusterhq.atlassian.net/browse/FLOC-2538

The branch name is wrong, I think you want release-maintenance/flocker-1.0.0pre2/... (i.e. match current thing you want to merge into?). Also we'll hopefully have release/flocker-1.0.2 soon. And this scheme is soooo terrible and error prone. Hopefully we can fix it for next release.

Anyway looks good please proceed.

I got the branch name wrong. So I'll close this PR and the branch.


feat(tutorial): complete step 4

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

could someone help me review this, thanks!

@alisonjoseph, just test to create a new pull , could you help me review


⚠ Redacted has degraded performance

In bcfe07d, Redacted ($RED) experienced degraded performance:

HTTP code: 200
Response time: 2271 ms

Resolved: Redacted performance has improved in a0870e7 after 9 minutes.


Missing /data/3Dxcat/tmp/

I tried running your code on 3D data, but the folder /data/3Dxcat/tmp/ seems to be missing. Is there a way to obtain the files in that folder?

These data are too large, so I did not uploaded them as well. Please run "axial_proj_data_maker_HU.m" to precompute them and these data will be stored in /data/3Dxcat/tmp/. So you do not need to compute them repeatedly for your subsequent testing!

These data are too large, so I did not uploaded them as well. Please run "axial_proj_data_maker_HU.m" to precompute them and these data will be stored in /data/3Dxcat/tmp/. So you do not need to compute them repeatedly for your subsequent testing!

Thank you!


ARGB, samlpe in kotlin, and a bit of refactoring.

Thanks for the PR! A couple things:

I'd like to keep the sample project written in Java (I'm assuming most users of the library will be developing in Java)
I personally prefer 2 space indentation over 4 space, so could we leave that as is :smile:

Well, you can always setup your IDE to use any formatting you want, but it's kinda correct to push with a most common and idiomatic one(which is 4 spaces -_-).
As for sample project: keep it java or kotlin, it doesn't really matter, though it is not very good idea to use l kotlin-written lib inside of purely-java app, as lib will bundle kotlin runtime, which weights about 1MB(and that's a lot, as for something to be required for a colorpicker, lol).
Anyway, at least backport features I implemented(ARGB, a landscape layout, tintable alerdialog (+ HEX indicator, though it's not yet in my branch(but it is in my java-implementation))).

And yeah, I also remade this lib purely in java, so those folks who don't use kotlin can enjoy this amazing picker without having to deal with additional 1mb of kotlin runtime.
https://github.com/MrBIMC/VintageChroma Let's cross-reference those libs maybe?


null safety

dart pub upgrade --null-safety
null-safety compatible versions do not exist for:

markdown_widget
draggable_scrollbar

draggable_scrollbar has a PR for it but it seems to be on hold: https://github.com/fluttercommunity/flutter-draggable-scrollbar/pull/45
markdown_widget  and looks like it is abandoned maybe.

any pr on this? for null safety?


[SPARK-39823][PYTHON] Add DataFrame.asSchema(StructType) in PySpark

What changes were proposed in this pull request?
Add DataFrame.as(StructType)
Why are the changes needed?
for function parity
Does this PR introduce any user-facing change?
yes, new api
How was this patch tested?
added UT

also cc @cloud-fan

df.to looks good to me. Can we rename the scala api in this PR as well?

@cloud-fan sure, let me update it.

I am merging this, since the last commit only fix two typos

Merged to master, thanks all!


Add Kubernetes Sidecar Networking Documentation.

I love this project and hope this documentation helps! Please let me know if anything needs to be tweaked/adjusted :)

I would love to see this merged in! I followed these instructions and was able to easily setup gluetun on k8s.

I would love to see this merged in! I followed these instructions and was able to easily setup gluetun on k8s.

Hey, do you mind sharing how you configured the other containers to use the sidecar?

I would love to see this merged in! I followed these instructions and was able to easily setup gluetun on k8s.

Hey, do you mind sharing how you configured the other containers to use the sidecar?

Sure! Here's a Deployment where I put an application and gluetun onto the same Pod: https://github.com/shepherdjerred/servers/blob/main/cdk8s/dist/turing.k8s.yaml#L1862-L1967
With cdk8s: https://github.com/shepherdjerred/servers/blob/main/cdk8s/src/services/torrents/qbittorrent.ts#L39-L86

I would love to see this merged in! I followed these instructions and was able to easily setup gluetun on k8s.

Hey, do you mind sharing how you configured the other containers to use the sidecar?

Sure! Here's a Deployment where I put an application and gluetun onto the same Pod: https://github.com/shepherdjerred/servers/blob/main/cdk8s/dist/turing.k8s.yaml#L1862-L1967
With cdk8s: https://github.com/shepherdjerred/servers/blob/main/cdk8s/src/services/torrents/qbittorrent.ts#L39-L86

Thanks for getting back to me so quickly. The solution worked for me too. However, I'm thinking that with this setup, I won't be able to share the gluetun container with networks that aren't in the same pod, right? I'm planning to check if there's a good way to deploy gluetun separately and then set up other pods to use it as an egress network using labels.

I'm not super experienced with Kubernetes, but that sounds correct. You could deploy one gluetun sidecar container per pod that needs the VPN, but maybe there's a better way.

@S0PEX @shepherdjerred I'm currently researching what you guys are looking for. As far as I understand it. It should be possible to run the gluetun separately. Currently trying to figure it for for a nomad deployment. For both nomad and kubeneters it should be the same because in order to run it separately it must be using a CNI Network macvlan as I understand it now. I don't have it working yet. But at least I have figured out that people are using the CNI macvlan driver for this and are creating a seperste network for their vpn. Hope this helps. Because both nomad and kubernetes can use CNI plugins it should work for both.
Here is the clue I'm working with: a lot of home labbers are using the macvlan CNI to create a special vpn network in their clusters, both for kubernetes and nomad. And use it to redirect their traffic through tailscale. I'm currently thinking the same principle should work for gluetun.
If you check blogs and repositories on github you see people are using the macvlan cni driver to create special cluster wide network to route all traffic throigh tailscale vpn.
Hope this helps, please ping me if you figure it out. I will do the same.

@gjrtimmer Thanks for the hint, I'll check out macvlan and see if I can get it working.

While I was able to access the UI using kubectl port-forward, I'd be interested in figuring out why the LoadBalancer doesn't. The LoadBalancer service never worked for me, and I know its not user error on my part as I was able to access the other container's UI just fine when I got rid of gluetun.
Here's the manifest I applied, if anyone sees why this won't work through the LoadBalancer I'd love to hear it, I hate giving up but screw it it works with port forwarding.

Thank you this was really helpful. I was able to use Gluten with browserless/chromium that another container uses Puppeteer to connect and run some routines.

Thanks for this pull, this helped me get everything together and working, albeit slightly differently.
For anyone stumbling upon this to integrate with applications like qbittorrent, I have created a helm chart that creates an init-container based side-car out of gluetun, to enable binding to the tunnel interface in the same pod.
https://gitlab.com/GeorgeRaven/raven-helm-charts/-/tree/main/charts/qbittorrent?ref_type=heads
or using the gitlab package registry:
helm repo add raven https://gitlab.com/api/v4/projects/55284972/packages/helm/stable

The optional init container boils down to this: https://gitlab.com/GeorgeRaven/raven-helm-charts/-/blob/main/charts/qbittorrent/values.yaml?ref_type=heads#L28-L61
  initContainers:
  # optional gluetun VPN client sidecar
  # https://github.com/qdm12/gluetun
  # https://github.com/qdm12/gluetun-wiki/pull/7
  - name: gluetun # init sidecar for VPN connection
    image: "ghcr.io/qdm12/gluetun:latest"
    restartPolicy: Always # makes this init into a sidecar container k8s 1.29
    imagePullPolicy: Always
    ports:
    - name: http-proxy
      containerPort: 8888
      protocol: TCP
    - name: tcp-shadowsocks
      containerPort: 8388
      protocol: TCP
    - name: udp-shadowsocks
      containerPort: 8388
      protocol: UDP
    envFrom:
    - secretRef:
        name: gluetun
        optional: false
    env:
    - name: TZ
      value: "Europe/London"
    - name: FIREWALL_DEBUG
      value: "on"
    - name: FIREWALL_INPUT_PORTS
      value: "8080"
    securityContext:
      capabilities:
        add:
        - NET_ADMIN

This will specifically enable a firewall rule to forward normal web traffic to qbittorrent server in the standard ingress > svc > pod manner of k8s, otherwise the firewall blocks the normal traffic (and fails liveness probes etc). This also uses envFrom which allows one secret to populate lots of environment variables, which is useful if you encrypt your secrets with something like bitnami sealed-secrets as I do.
Hope this helps the next person looking to do this.

Sharing some example config that ended up working for me for those that would find it useful, unsure why this MR isnt merged yet but glad it was here for reference!
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: myapp
  name: myapp
spec:
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
        - image: ghcr.io/qdm12/gluetun:latest
          name: gluetun
          imagePullPolicy: Always
          securityContext:
            capabilities:
              add: ["NET_ADMIN"]
          ports:
            - containerPort: 9091
          env:
            - name: TZ
              value: '<timezone val>'
            - name: VPN_SERVICE_PROVIDER
              value: "<my provider>"
            - name: VPN_TYPE
              value: "wireguard"
            - name: WIREGUARD_PRIVATE_KEY
              value: "<priv key val>"
            - name: WIREGUARD_ADDRESSES
              value: "<IP val>"
            - name: FIREWALL_INPUT_PORTS
              value: "9091"
        - image: myapp:latest
          name: myapp


Download and Upload measurement Issue in ResultPage

There is a problem with measurement of download and upload .
In the dashboard the values are correct but they are incorrect in the results page. Ping value is correct
Thanks

Fixed in #1160 👍

Thanks
Oh one more thing. You tagged version 0.16.2 but version 0.16.1 is reported in the footer
Thanks again

Yeah... Me and code are fighting today.


[SPARK-33094][SQL] Make ORC format propagate Hadoop config from DS options to underlying HDFS file system

What changes were proposed in this pull request?
Propagate ORC options to Hadoop configs in Hive OrcFileFormat and in the regular ORC datasource.
Why are the changes needed?
There is a bug that when running:
spark.read.format("orc").options(conf).load(path)

The underlying file system will not receive the conf options.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
Added UT to OrcSourceSuite.

This is similar changes to https://github.com/apache/spark/pull/29971. @HyukjinKwon @yuningzh-db @dongjoon-hyun Please, review this PR.

Test build #129554 has started for PR 29976 at commit ef6d7f9.

I ran the test from this PR (just changed format) on Parquet V1/V2, ORC v2, CSV v1/v2, JSON v1/v2 and on Text v1/v2. Everywhere it passed.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34160/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34160/

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34160/
Test FAILed.

I have looked at build failures, it seems they are not related to the changes - some failures while downloading artefacts.

Test build #129554 has finished for PR 29976 at commit ef6d7f9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129554/
Test PASSed.

@dongjoon-hyun Can this be merged to branch-3.0 (maybe 2.4 too) since it can be considered as a bug fix?
Here is a real use case, a customer tries to read files in Azure Data Lake:
def hadoopConf1() = Map[String, String](
  s"fs.adl.oauth2.access.token.provider.type" -> "ClientCredential",
  s"fs.adl.oauth2.client.id" -> dbutils.secrets.get(scope = "...", key = "..."),
  s"fs.adl.oauth2.credential" -> dbutils.secrets.get(scope = "...", key = "..."),
  s"fs.adl.oauth2.refresh.url" -> s"https://login.microsoftonline.com/.../oauth2/token")
val df = spark.read.format("...").options(hadoopConf1).load("adl://....azuredatalakestore.net/foldersp1/...")

but gets the following exception because the settings above are not propagated to the filesystem:
java.lang.IllegalArgumentException: No value for fs.adl.oauth2.access.token.provider found in conf file.
	at ....adl.AdlFileSystem.getNonEmptyVal(AdlFileSystem.java:820)
	at ....adl.AdlFileSystem.getCustomAccessTokenProvider(AdlFileSystem.java:220)
	at ....adl.AdlFileSystem.getAccessTokenProvider(AdlFileSystem.java:257)
	at ....adl.AdlFileSystem.initialize(AdlFileSystem.java:164)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2669)

@HyukjinKwon You merged similar fix for avro to branch-3.0 in https://github.com/apache/spark/pull/29971 . WDYT should I open a PR with the changes for branch-3.0?

So it can fix a bug right? sure let's open a PR to port back.

+1 for backporting, @MaxGekk and @HyukjinKwon .

Here is the backport to branch-3.0: https://github.com/apache/spark/pull/29985

Regarding to https://github.com/apache/spark/pull/29976#issuecomment-705465062 , I could put the test to a common trait and test all built-in datasources including Avro, ORC, LibSVM, CSV and so on. Let me know if you think it makes sense for improving test coverage. cc @gatorsmile @cloud-fan

Here is the PR https://github.com/apache/spark/pull/30067 with common test.


remove setting section

I'm submitting a ...  (check one with "x")

[ ] bug report

[x] feature request

setting section should remove. there will be no use of setting section for now.

it has been done


Add support for command INCRBY

Add support for the INCRBY command in DiceDB similar to the INCRBY command in Redis. Please refer to the following commit in Redis to understand the implementation specifics - source.
Write unit and integration tests for the command referring to the tests written in the Redis codebase 7.2.5. For integration tests, you can refer to the tests folder. Note: they have used TCL for the test suite, and we need to port that to our way of writing integration tests using the relevant helper methods. Please refer to our tests directory.
For the command, benchmark the code and measure the time taken and memory allocs using benchmem and try to keep them to the bare minimum.

Hey @arpitbbhayani , would like to work on this! Please assign


Fix: Prevent request hang in ensureFileIsPassed middleware

Description

This pull request addresses an issue where the ensureFileIsPassed middleware was causing requests to hang indefinitely if no file was uploaded. The middleware did not explicitly send a response or call next() in the case where no file was found, leading to stalled requests. You can check it with curl -X POST http://localhost:3000/rest/memories or any other file-upload related endpoint.
Resolved or fixed issue: none
Affirmation

[x] My code follows the CONTRIBUTING.md guidelines

ah good catch 👍
Could we add a test case for the memory endpoint to check that?
https://github.com/juice-shop/juice-shop/blob/master/test/api/memoryApiSpec.ts

ah good catch 👍
Could we add a test case for the memory endpoint to check that?
https://github.com/juice-shop/juice-shop/blob/master/test/api/memoryApiSpec.ts

Yep, done.

Awesome :)
Thank you 🙌

Squashed your it.only fix + solved linter warnings.


A conflict dialog pops up when uploading one folder to a file share

Storage Explorer Version: 1.21.0-dev
Build Number: 20210831.4
Branch: rel/1.21.0
Platform/OS: Windows 10/Linux Ubuntu 18.04/MacOS Big Sur 11.4
Architecture: ia32\x64
How Found: From running test cases
Regression From: Previous release (1.20.1)
Bug Descriptions
A conflict dialog pops up when uploading a folder to one file share or cloning/pasting one file share which contains folders.
Steps to Reproduce

Expand a storage account -> File Shares.
Create a file share -> Upload one folder to the file share.
Check no conflict dialog pops up.

Expected Experience
No conflict dialog pops up.
Actual Experience
A conflict dialog pops up.

AzCopy 10.12.1 merged into main which should resolve this issue.

Fixed on the rel/1.21.0 build 20210903.4.


⚠ ClamAV has degraded performance

In 1ac6250, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 93 ms

Resolved: ClamAV performance has improved in ca77dfe.


update(kernels): update kernel json lists.

This PR updates the list of kernels from the latest crawling. Do not edit this PR.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: poiana
To complete the pull request process, please assign leogr after the PR has been reviewed.
You can assign the PR to them by writing /assign @leogr in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 0f81693c8bb6560af27302ba746423a0f64c548c

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, poiana
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@maxgio92:

In response to this:

/meow

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Function of controller got wrong injection when I use domain() in route files

Laravel Version: 7.* latest
PHP Version: 7.4.16
Database Driver & Version: mysql 5.7.*

Description:
when I use function domain like this:
Route::domain('{account}.xxx.com')->group(function ($api) {
   $api->get('/users/{user}', [Controller::class, 'show']);
});

function in Controller
public function show(User $user) {
 ...
}

if domain is wook.xxx.com
the $user in show function got string wook always.
Injected models will trigger this problem.
Steps To Reproduce:

Given your route, I suspect your show method has the wrong parameters. Try:
public function show($account, User $user) {
  ...
}

Given your route, I suspect your show method has the wrong parameters. Try:
public function show($account, User $user) {
  ...
}

Thanks,
yes, It's correct like this, but must I inject $account in every function?

Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so.
Thanks!

Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so.
Thanks!

Laravel 8.5.14 has the same issue

Route::domain('{account}.laravel.test')
    ->get('/users/{user}', [\App\Http\Controllers\UserController::class, 'show']);

UserController
<?php
declare(strict_types=1);
namespace App\Http\Controllers;

use App\Models\User;

class UserController extends Controller
{
    /**
     * Display the specified resource.
     *
     * @param  \App\Models\User  $user
     * @return \Illuminate\Http\Response
     */
    public function show(User $user)
    {
        dd($user);
    }
}

and I change type for param $user to  string, the output value is the value of {account}

public function show($account, User $user) {
  ...
}

Thanks,
yes, It's correct like this, but must I inject $account in every function?

Yes, because you have two parameters {account} and {user} in your url, so you need them in your controller as well, in that order.
if you want to avoid the account in your controller, I recommend dropping the domain method, and instead creating a middleware that looks up the domain instead and add the result to the request.
Stackoverflow may be a more appropriate place for this question as well: https://stackoverflow.com/questions/tagged/laravel

public function show($account, User $user) {
  ...
}

Thanks,
yes, It's correct like this, but must I inject $account in every function?

Yes, because you have two parameters {account} and {user} in your url, so you need them in your controller as well, in that order.
if you want to avoid the account in your controller, I recommend dropping the domain method, and instead creating a middleware that looks up the domain instead and add the result to the request.
Stackoverflow may be a more appropriate place for this question as well: https://stackoverflow.com/questions/tagged/laravel

got it!
Thank you very much!


Allow netbox to generate circuit IDs.

Issue type
[ X ] Feature request
[ ] Bug report
[ ] Documentation
Environment

Python version:  3.5.2
NetBox version:  2.3.3

Description
The circuit ID field is mandatory when adding a circuit. In case of "circuits" used within the same organization, such as between cages of the same customer in a colo, it would be useful to have an option for Netbox to generate the ID.
No third party libraries should be needed. This could mean a schema change, or just to use the existing id column in circuits_circuit. In the GUI it could be a checkbox to use the Netbox circuit id, and in the API there could be some word to put in the field that means to use the Netbox id. If the box is checked maybe it would also put the word in the cid field since in the schema it is NOT NULL. Maybe there is a better way than a reserved word?

Sorry but this is firmly out of scope for NetBox. Every organization has their own naming preferences, and I'm not about to go down that rabbit hole.

Currently I just identify these circuits by the cross connect ID given to me by the data center, but my provider circuits have those too as well as actual IDs from the provider. It also seems that if the physical cable plant feature is implemented, the cross connect IDs would belong there instead of as circuit IDs. So the analogous thing here would be for me to generate IDs and my preference would be just integers which Netbox already does anyway. So I'm just hoping for a way to use the Netbox circuit ID as my circuit ID.
I can just see what was the last used ID and increment in my head to fill in the cid field the same as the Netbox id will be. Is there a better way to think about this? Should I post to the mailing list and ask how other people do it? I know too there are lots of ways to make circuit IDs meaningful, but I'd be happy with just serial integers. Sorry to bother.


General code review

OpenSimMPLS sources are very stable, tested and mature at this moment. However, since Java 5.0 the source code is the same and at this moment a review is needed to take advantage of new Java versions features.

Specifically, OpenSimMPLS does not use generics. It should not be difficult as code is well isolated.


Adding option for EGL and OpenGL preference.

Thanks for the PR :+1:

Thanks for the PR :+1:

Made changes, please let me know if this is good.

Thanks for your patience :+1:


[23.11] pdns-recursor: 4.9.3 -> 4.9.5

Description of changes
Security update
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested via pdns-recursor.tests
[x] Tested compilation of all packages that depend on this change
[x] Tested basic functionality of all binary files
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build pdns-recursor.tests


Deprecated Packages

Mongoose no longer requires options, they are implemented by default in v6: https://mongoosejs.com/docs/migrating_to_6.html#no-more-deprecation-warning-options
Discord.js v13 breaks everything... 😒

Yeah I haven't had a chance to start updating it to v13 yet.

no worries, dependabot was getting annoying lol