WEB GUI

Describe the solution you'd like
A clear and concise description of what you want to happen.
if its possible to add web ui for use on server

The library I used to develop the GUI actually supports web.
This is something I'm interested in but unluckily not in the short term, due to servers cost and to the fact that I'm giving precedence to the development of new functionalities for the native app.
I'll leave this issue open and maybe one day it'll happen.
Thanks for your suggestion!

That would also be a feature very useful in my case - few servers I would benefit this application in.
I had a look at the library, and I am not sure this will be as straightforward as a few component are entangled within the GUI crate (e.g, the control of the packet capture )
I believe this could be achieved by serving an HTTP actix-web server that distribute the pre-build WASM interface on the root and serve an update websocket to tunnel stats from the server to the web client.
If that sounds good, I can get started with this under a web feature as it seems it isn't something you would be looking at. Long term, perhaps we could consider using command argument (clap-rs maybe?) to allow the two modes as part of the same binary.

You could start trying something if you really want to, but at the moment I cannot assure you that a web feature will actually be included in the next releases.
Of course when the process will be mature and if the results will be satisfying, we could start collaborating and work on this feature together.
I would definitely prefer having the two modes as part of the same binary by the way.

2 mode in binary with you do choice with option when you execute the binary

SGTM - and thanks for the fair warning. Most of all, I would like and try to do this in the start-of-the-art, I cannot promise it will be within the same binary at first. I would rather iterate on that piece of work and make sure every development decisions fit within what you have in mind/you would accept in the project.

SGTM - and thanks for the fair warning. Most of all, I would like and try to do this in the start-of-the-art, I cannot promise it will be within the same binary at first. I would rather iterate on that piece of work and make sure every development decisions fit within what you have in mind/you would accept in the project.

Sounds good to me, your help is very much appreciated.
I'll be looking forward to your work, and you don't have to feel any pressure about it!
Everything you do will be fine as long as it will be discussed together!

Also very interested to run sniffnet on servers :smile:

Also very interested to run sniffnet on servers :smile:

Nice to hear!
If you don't mind sharing, could you describe more precisely the scenario you have in mind for a possible usage?

@GyulyVGC monitor all network traffic from this server sorry i dont see your message

I didn't understand well, I was talking about a web interface installed on a vm that can be checked from a client pc and that from this interface we can see all the network traffic machine by machine thanks to a data centralization @matbgn

Describe the solution you'd like A clear and concise description of what you want to happen.
if its possible to add web ui for use on server

🤣 OK maybe to concise this time. Nevermind ignore my comment if wanted.

I would like you to create a web interface that can see all the interface machines on the network.
I think if you create a model with an agent and a centralized server, you can centralize all the bandwidth and data usage that is used by machines like this model    https://www.google.com/url?sa=i&url=https%3A%2F%2Fme.me%2Fi%2Fmaster-slave-architecture-application-read-write-master-read-read-76dc5811209a47809606cf3caef18941&psig=AOvVaw20DKesLhIrzUwUSkI7iuDL&ust=1684621840200000&source=images&cd=vfe&ved=0CBEQjRxqFwoTCNDc88S3gv8CFQAAAAAdAAAAABAd @matbgn

As I'm not maintainer of this project and have no impact on decisions here, maybe it will be better to ping @GyulyVGC at least 😉

Thanks guys for the feedback.
I have a bunch of other goals for the short term, but if I will be able to keep working on Sniffnet even after the GitHub Accelerator, I will definitely consider developing a web version.

Hello! I'm thinking of giving this feature a try, and I wanted to first check with you about possible approaches.
As far as I am aware, Iced supports the Web platform (presumably utilizing WebAssembly).
A way of implementing a web gui could be accomplished by completely separating the graphical part of the project and making it able to run in a headless state, with some way of extracting the data (maybe gRPC?) and then spawning a sidecar that would contain the interface.
This interface could be in the form of a web server or a standalone Iced application. This gives the flexibility of running the project as a desktop application, exposing only said internal API (and then running the web server/desktop application in a client machine), or also hosting the web server along with Sniffnet.
The main problems I can see with this approach would be that this internal API would also be detected by Sniffnet, potentially creating an infinite and exponential recursion (detect internal API packet -> send it to client -> detect new packet -> repeat...) unless we implement a queue and send in batches (every 1s, for example)
Another (I believe) problem is that separating the graphical part of the project is not going to be so easy: a quick search for iced in the project says that most references are in the gui directory (which is really beneficial), but there are some scattered references in other files (report, networking, ...).
I would love to know what your thoughts are on this approach or if we should simply think of another way of doing stuff.

Hey @tocuto thank you so much for your interest.
Honestly, I haven't a really clear plan concerning this issue.
Ideally I'd like to change as least as possible, reusing most of the stuff that's already there.
Something I'd really like to do, and which would allow to satisfy the previous point, is to keep using iced and finding a way to make it work on the web as is, if that's possible.
We should understand which portions of Sniffnet cannot be kept as they are now: for example whether we can inspect system network interface directly from the web environment or not.
Then, exclusively for the features that can't be used as they are now, as you said we should find a gRPC-like mechanism to send the needed data.
As you understand this is the part that requires major restructuring of the app and that's why in an ideal world I'd love to avoid it completely.
But in case the web environment doesn't let us do some OS-level stuff, of course we should adapt the app to share proper data with the interface.
Feel free to start experimenting if you feel to, and let me know in case of doubts.

We should understand which portions of Sniffnet cannot be kept as they are now: for example whether we can inspect system network interface directly from the web environment or not.
If the goal is to spin up a web browser and access the data sniffnet needs from there, this is a big no-no as the browser sandbox doesn't allow this kind of stuff.

As you understand this is the part that requires major restructuring of the app and that's why in an ideal world I'd love to avoid it completely.
I understand that you'd want to avoid this restructuring, but I really can't think of a way that doesn't require it. I feel like it's either moving only the gui part to the web and keeping the rest in a headless state; or moving the app as a whole to the web and making a sort of slim proxy for OS-level stuff.

I find the first approach better, as it would be way more extensible, but more time consuming.
I will try to strip off all the OS components from the project and make that slim proxy for now tho.

I really appreciate your attempt, however keep in mind that I've been pretty busy lately and the time I plan to dedicate to Sniffnet will prioritise the Desktop application, since it will remain the most important goal of the project.


drivers/input: Add TOUCHSCREEN config

Summary
This PR intends to provide a new CONFIG_TOUCHSCREEN config. This configuration should be enabled in case any touchscreen input device is selected.
Update:
Adding MOUSE and TOUCHSCREEN as dependencies for NxGraphics input devices ended-up breaking configs from several boards. It seems those are selecting NX_XYINPUT_MOUSE when no actual mouse input is provided. This may be addressed in a separate PR.
Related:

https://github.com/apache/incubator-nuttx-apps/pull/666
https://github.com/apache/incubator-nuttx/pull/3443

Impact
No impact to existing board configurations, since CONFIG_TOUCHSCREEN is a hidden config.
Testing
Verified dependencies via menuconfig. No impact to build process.
Successfully disabled touchscreen-related configs from lvgl.

One thing that I tried to do in the past was establish some conventions for configuration naming.  I was not very successful in that as there are many, many configuration naming consistencies.
I think that I tried to enforce was to include the name of the directory where a configuration is defined OR part of the name of the configuration that enables this one.  You will see that most but not all configurations follow this convention.  CONFIG_INPUT, for example, does not.  Per that convention, it should be CONFIG_DRIVERS_INPUT.  Then all of the top level configurations defined in that directory should be CONFIG_INPUT_*.  So for example, CONFIG_TOUCHSCREEN should be CONFIG_INPUT_TOUCHSCREEN.
This has the advantage that (1) by the name of the configuration, you (usually) know which Konfig file it is defined in and (2) it prevents configuration naming collisions.  Kconfig variable name collisions are especially nasty because usually not error is generated when the redundant names are used.
We should come to an agreement as a group about configuration naming.  Should we continue to try to follow this convention?  Should we abandon it altogether?  Should we establish a different convention for configuration names?

I think that I tried to enforce was to include the name of the directory where a configuration is defined OR part of the name of the configuration that enables this one. You will see that most but not all configurations follow this convention. CONFIG_INPUT, for example, does not. Per that convention, it should be CONFIG_DRIVERS_INPUT. Then all of the top level configurations defined in that directory should be CONFIG_INPUT_*. So for example, CONFIG_TOUCHSCREEN should be CONFIG_INPUT_TOUCHSCREEN.
This has the advantage that (1) by the name of the configuration, you (usually) know which Konfig file it is defined in and (2) it prevents configuration naming collisions. Kconfig variable name collisions are especially nasty because usually not error is generated when the redundant names are used.

I usually find myself spending some time to discover where a given config is defined, so I agree that we can improve this with a convention.
Although it may not reflect the directory structure, I believe that following the CONFIG__* template is more intuitive, like CONFIG_INPUT_* and CONFIG_NX_*.
Drivers could be classified as SUBSYSTEM, so we'd have CONFIG_DRIVERS_<CLASS>_. As an example, MAX11802 could be redefined as CONFIG_DRIVERS_INPUT_MAX11802.
It will be a big refactor of our Kconfig system.

This kind of short, unadorned naming will always lead to problems and name collisions.  Again, I recommend that you consider CONFIG_INPUT_TOUCHSCREEN and CONFIG_INPUT_MOUSE instead of CONFIG_TOUCHSCREEN and CONFIG_MOUSE.  That is must less likely to conflict.

This kind of short, unadorned naming will always lead to problems and name collisions. Again, I recommend that you consider CONFIG_INPUT_TOUCHSCREEN and CONFIG_INPUT_MOUSE instead of CONFIG_TOUCHSCREEN and CONFIG_MOUSE. That is must less likely to conflict.

Sorry, I may have not made myself clear. I agree with using CONFIG_INPUT_TOUCHSCREEN as well as CONFIG_INPUT_MOUSE, which would fit to what I described as CONFIG_<SUBSYSTEM>_*. It is just that I was intending to this renaming in a later PR.
For now, since TOUCHSCREEN is being created, although it won't follow the style from the other configs, it may be created in the most suitable template. I'll change it to CONFIG_INPUT_TOUCHSCREEN.

I created https://github.com/apache/incubator-nuttx/pull/3482 for renaming the MOUSE and the other classes.


Is it possible to create Account Form using this pacakge?

Hi,
I have used card element form provided in react-stripe-elements.
I need to add bank account details. So I need to show account form with account holder name, account number and Routing number Fields.
Is it possible to do with react-stripe-elements?
Thank you.

Unfortunately, Stripe Elements currently does not have a way to gather bank account information.

Thanks for reply..


Remove Identifier

This change is

Reviewed 3 of 3 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Update android-studio to <IP_ADDRESS>,171.4408382

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Didn't see that #40045 already existed. Sorry for the spam.


"send"  is no response in ionic

In my ionic project,  it can't work normally.When I call this method, he didn't give me any return values.
setInterval(function () {
var buffer = new ArrayBuffer(12);
var x = new Int32Array(buffer);
x[1] = 1234;
var slice = buffer.slice(4);
var y = new Int32Array(slice);
console.log(x[1]);
console.log(y[0]);
x[1] = 6789;
alert($scope.socketId);
chrome.sockets.udp.send($scope.socketId, buffer,
'<IP_ADDRESS>', 8888, function(sendInfo) {
alert("sent " + sendInfo.bytesSent);
});
}, 5000);

This sockets has been created,and I can get the information by the method "chrome.sockets.udp.getInfo".


Error in the 'reduceToSingeImageMockFunction'

I've been trying to use the 'reduceToSingeImageMockFunction' follow up the LT-GEE Guide and this doesn't seem to work, applying the basic running LT-GEE script .

That isn't an existing function. It is pseudo code - a mock function name used as a placeholder for a real function that you define to reduce an annual set of images to a single image. As an example, you can use .reduce(ee.Reducer.mean()) on an annual ee.ImageCollection.


TD-3707: In Assessments - fixed issue on first question expanding after all questions answered.

JIRA link
TD-3707
Description
In Assessments fixed issue on first question expanding after all questions answered.
Screenshots
After

Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have:

[x] Run the formatter and made sure there are no IDE errors
[ ] Written appropriate unit tests for the changes, including:

accessibility tests for new views
tests for new controller methods
tests for new or modified API endpoints

[x] Manually tested my work with and without JavaScript
[ ] Tested any Views or partials created or changed with Wave Chrome plugin and addressed any valid accessibility issues
[ ] Updated/added documentation in Confluence and/or GitHub Readme. List of documentation links added/changed:

doc_1_here

[x] Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing is broken
[ ] Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks.

@ArunimaGeorge   can you please change target branch to RC?


No suggestions shown in check list items

When I type b[, I don't see any link suggestion.
Instead, Obsidian displays b[].
I also tried to add a keyboard shortcut, but this only inserts b[ in Obsidian and nothing else.
I tested this on macOS with a French keyboard, in Preview mode.

PS: Boost Link not triggering with b[ consistently happens inside a checklist item (- [ ] …). This should be easy to test and try to reproduce!
This prevents me from consistently using this plugin, as I always have to see if I'm inside a checklist or not, so as to avoid using Boost Link inside checklist (since it doesn't trigger).

PPS: Could it be that the opening bracket of checklist items trips the Boost Link trigger?
I tried to see if I could find a solution myself, since it really prevents me from using this nice plugin, to no avail. I looked in main.ts:BoostLinkEditorSuggester.onTrigger(), but I must say that I don't know either Javascript or Typescript, so I didn't find anything I could help with.
Any help would be much appreciated!

After investigating, I did find the culprit: the Tasks plugin also offers a menu with suggestions, when its "Auto-suggest task content" option is on. It interferes with Boost Link Suggestion.
If Obsidian knew how to mix (interlace if needed?) the items suggested by multiple plugins, this would allow users to use them all (instead of having to choose one).

I'm sorry for taking this long to respond! Thank you for reaching out, and for your updates!
To confirm my understanding, do you mean that the Tasks plugin also has a menu that triggers with p[ by default? Or something else? If so, does changing the Boost plugin's "Trigger string" setting in Settings avoid this conflict?

Better late than never. :)
My observation was that any plug-in that monitors the input (Tasks, Various Complements, Complete, etc.) has to be used alone: only one plug-in got to respond to the input.
I cannot test this with the current Obsidian version right now.


Release 0.16.1

This is a tracker to aggregate issues that should be part of 0.16.1. Please add specific Issues or PRs prefixed with the "Depends on" keyword (and remember that PRs need to be backported to the release-0.16 branch).
Depends on https://github.com/submariner-io/admiral/pull/744
Depends on https://github.com/submariner-io/subctl/issues/971 (backport)
Depends on https://github.com/submariner-io/subctl/pull/972
Depends on https://github.com/submariner-io/submariner/pull/2740
Depends on https://github.com/submariner-io/submariner/pull/2759
Depends on https://github.com/submariner-io/submariner/pull/2749
Depends on https://github.com/submariner-io/submariner/pull/2753
Depends on https://github.com/submariner-io/submariner-operator/pull/2838
Depends on https://github.com/submariner-io/submariner-operator/pull/2848
Depends on https://github.com/submariner-io/submariner-operator/pull/2854
Depends on https://github.com/submariner-io/submariner/issues/2747

Removing https://github.com/submariner-io/subctl/issues/971 as dependent per discussion with team.


Add implementation of Huffman decompression

This implementation is largely based on https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/mobi/huffcdic.py

@philippeitis, I'm working on merging the decompression algorithm to mobi but I have a few questions about the provided algorithm. What exactly are the sections that are supposted to go as a second argument to decompress? I managed to load a huff dictionary by passing the correct huff and cdic records but then got stuck at reader reaching end of file when I tried to pass the readable record range slices as sections.

Hi - I am a little busy, but as an initial starting point, https://github.com/kovidgoyal/calibre/blob/ba2bd3f01b89961546a09d3d04afa46d7822997b/src/calibre/ebooks/mobi/reader/mobi6.py should be helpful (CTRL+F HuffReader, CTRL+F unpack to see where the sections come from) - https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/mobi/huffcdic.py

    def text_section(self, index):
        data = self.sections[index][0]
        trail_size = self.sizeof_trailing_entries(data)
        return data[:len(data)-trail_size]

    def extract_text(self, offset=1):
        self.log.debug('Extracting text...')
        text_sections = [self.text_section(i) for i in range(offset,
            min(self.book_header.records + offset, len(self.sections)))]
        processed_records = list(range(offset-1, self.book_header.records +
            offset))
...
        self.mobi_html = b''.join(map(unpack, text_sections))

        self.sections = []
        self.section_headers = []
        for i in range(self.num_sections):
            offset, a1, a2, a3, a4 = struct.unpack('>LBBBB', raw[78 + i * 8:78 + i * 8 + 8])
            flags, val = a1, a2 << 16 | a3 << 8 | a4
            self.section_headers.append((offset, flags, val))

        def section(section_number):
            if section_number == self.num_sections - 1:
                end_off = len(raw)
            else:
                end_off = self.section_headers[section_number + 1][0]
            off = self.section_headers[section_number][0]
            return raw[off:end_off]

        for i in range(self.num_sections):
            self.sections.append((section(i), self.section_headers[i]))

@vv9k So, judging by this, I believe that we need to take the sections from self.book_header.huff_offset..                  self.book_header.huff_offset + self.book_header.huff_number as the huff tables, and the remaining sections in range self.text_section(i) for i in range(offset, min(self.book_header.records + offset, len(self.sections)))

Looking at lib.rs, huff_data looks correct to me.

Thanks for the response :) When using only the readable_record_range, it currently fails with InvalidDictionaryIndex when trying to fetch a value from the huffman dictionary. The index is over the bounds of the dictionary, here are the values printed before indexing:
max_code: 75104255, code: 0, code_len: 17, index: 2291, dict_len: 2048

https://github.com/vv9k/mobi-rs/blob/277dc9d825d8dbfaea79e5a76eb4e3c7bc7224b6/src/huff.rs#L188-L194
Will have to look some more into it, just started wrapping my head around it.


Feedback events registration

We need to provide a facility to record feedback events (like conversions) and maintain a date partitioned log on S3.
The facility is not directly related with any model, so we can simply assume to record HTTP calls to api/event/<event_type>?parameters into a json file.

Fluentd has been added to stack, now I'm waiting for credentials for testing on cluster

Fluentd has been added, ansible roles has been added, full stack has been tested. Now I'm working on fluentd tests.


Improve test for Empty values handling

Pull request checklist

[ ] Did you bump the project version?
[x] Did you add a description to the Pull Request?
[ ] Did you add new tests?
[x] Did you add reviewers?

This PR include:

Improved error message
Deser test case №28, the behavior of Serde.isempty is consistent with the documentation.

Hi, @NeroBlackstone! Glad to see you again. Can you up patch in Project?


HCI initilization for esp32c6  (IDFGH-11222)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
// NimBLE Client - Scan
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_event.h"
#include "nvs_flash.h"
#include "esp_log.h"
#include "esp_nimble_hci.h"
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
#include "host/ble_hs.h"
#include "services/gap/ble_svc_gap.h"
#include "sdkconfig.h"
char *TAG = "BLE Client Scan";
uint8_t ble_addr_type;
void ble_app_scan(void);
// BLE event handling
static int ble_gap_event(struct ble_gap_event *event, void *arg)
{
struct ble_hs_adv_fields fields;
switch (event->type)
{
// NimBLE event discovery
case BLE_GAP_EVENT_DISC:
    ESP_LOGI("GAP", "GAP EVENT DISCOVERY");
    ble_hs_adv_parse_fields(&fields, event->disc.data, event->disc.length_data);
    if (fields.name_len > 0)
    {
        printf("Name: %.*s\n", fields.name_len, fields.name);
    }
    break;
default:
    break;
}
return 0;

}
void ble_app_scan(void)
{
printf("Start scanning ...\n");
struct ble_gap_disc_params disc_params;
disc_params.filter_duplicates = 1;
disc_params.passive = 0;
disc_params.itvl = 0;
disc_params.window = 0;
disc_params.filter_policy = 0;
disc_params.limited = 0;

ble_gap_disc(ble_addr_type, BLE_HS_FOREVER, &disc_params, ble_gap_event, NULL);

}
// The application
void ble_app_on_sync(void)
{
ble_hs_id_infer_auto(0, &ble_addr_type); // Determines the best address type automatically
ble_app_scan();
}
// The infinite task
void host_task(void *param)
{
nimble_port_run(); // This function will return only when nimble_port_stop() is executed
}
void app_main()
{
nvs_flash_init();                               // 1 - Initialize NVS flash using
esp_nimble_hci_and_controller_init();           // 2 - Initialize ESP controller
nimble_port_init();                             // 3 - Initialize the controller stack
ble_svc_gap_device_name_set("BLE-Scan-Client"); // 4 - Set device name characteristic
ble_svc_gap_init();                             // 4 - Initialize GAP service
ble_hs_cfg.sync_cb = ble_app_on_sync;           // 5 - Set application
nimble_port_freertos_init(host_task);           // 6 - Set infinite task
}
this code work fine for other esp devices other than esp32c6 do esp32c6 don't need any hci intilization even the document provide the initilization of hci link but i am unable to import it can any one tell the reason

Hi @pavan-coding

esp_nimble_hci_and_controller_init(); // 2 - Initialize ESP controller

This step is no more needed, starting 5.x , the mentioned API is removed. Details for this can be found here.
You can refer to existing blecent example here to see a working reference main function.

Closing this issue. Feel free to reopen in case of further queries.


Update Isar, enable caching

This brings both ccache and (automatically) sstate caches. Both should accelerate partial rebuilds.

Extracted from the meta-coral work. Will also be helpful for #115.


Deprecation comment for test.Flags doesn't actually point to anything?

https://github.com/knative/pkg/blob/main/test/e2e_flags.go#L35 there is no test/flags.Flags()?

I believe it should be pointing to this: https://github.com/knative/pkg/blob/main/test/e2e_flags.go#L36


heirarchy assumptions

Hi Huberto - thanks for your nice work on the leaflet-draw
I was trying to use it and am running into a problem with the map ref not being findable.
https://github.com/hubertokf/vue2-leaflet-draw/blob/master/src/App.vue#L24
It seems like you assume that the parent of the parent of the l-draw-toolbar is the root of the vue component
If there is an extra level in there (e.g. for resizing) then it breaks with an undefined error since it is trying to ask a different object for $refs
Am I seeing this right?  Can you think of a workaround without forking your code?
I haven't seen any leaflet best practice or rule that says things should not be arranged this way in the ui...
Please let me know what you think - maybe there is a safer way to find the component root from a child element?  Or maybe there could be an option to assume that the parent is the vue2leaflet l-map...?

Having the same issue when trying to put the map inside a modal.

Did you register your map with ref="map"?
i.e.:
<LMap
ref="map"
:zoom="zoom"
:center="center"
:options="mapOptions"
style="height: 100%"
@update:center="centerUpdate"
@update:zoom="zoomUpdate"
>.....

This issue should be closed in favor of this answer.
https://github.com/hubertokf/vue2-leaflet-draw/issues/16#issuecomment-72359309

@professorhaseeb I can't test this at the moment - but I'll defer to you on this and reopen if I find the problem later.  Thanks!


Use gitlab generic webhooks instead of drone-ci-service

Benefits:

the webhook delivery history of the drone-ci-service is broken (no way to check if a webhook was successfully delivered by Gitlab)
drone-ci-service has limited events support (for example no comment or branch deleted event)
independent from drone integration in general

you have to ajust the moc responces


Dart_SetLibraryTagHandler exits when called without a current isolate

This issue was originally filed by<EMAIL_ADDRESS>
This function is documented to return an error handle, but instead exits if called outside of any isolate.

Stale.


explicitly talk about /etc/default/docker

References to editing the DOCKER_OPTS in the /etc/default/docker file seem to be sprinkled throughout the documentation, but never explicitly stated or explained. Also everywhere it is referenced it specifies Ubuntu, but I believe it is also true for CentOS.

+kind/writing

#dibs We're writing a PR to solve this.

@resouer Can you please use fixes or closes keyword instead of Fix as you have in some of your PRs. Thanks!

@rrarunan got it. Thanks for reminding!

Seems like it should be closed (PR merged)

Thanks @vdemeester


Exclude the fuzz crate from default-members

… so that libfuzzer-sys is only compiled when needed. This is an attempt to work around a Windows CI failure where g++.exe isn’t found anymore:
https://app.circleci.com/pipelines/github/apollographql/apollo-rs/2214/workflows/e6b564ef-82af-4f25-95a5-9155e1f6c926/jobs/16157
cargo fuzz run still works as before. Presumably it looks for [package.metadata] cargo-fuzz = true in Cargo.toml of all members, not just default ones.

the DoubleEndedIterator fix is on main already (i meant to PR for it but pushed to main on accident)

Looks like the explanation is in the "Install Rustup" step:
warning: it looks like you have an existing installation of Rust at:
warning: C:\ProgramData\chocolatey\bin
warning: It is recommended that rustup be the primary Rust installation.
warning: Otherwise you may have confusion unless you are careful with your PATH
warning: If you are sure that you want both rustup and your already installed Rust
warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes
warning: or pass `-y' to ignore all ignorable checks.
error: cannot install while Rust is installed
warning: continuing (because the -y flag is set and the error is ignorable)

https://github.com/apollographql/apollo-rs/pull/832 fixed CI. We can revisit later to make things easier to build on Windows.


[Shallow] Question: Testing that an element exist somewhere, even within root component props

Details about my setup: I'm using Material-UI, so normally whenever a component uses one of this library's component, I should wrap it in a ThemeProvider. I'm then using shallow rendering in my tests to skip that and simply test that my components display whatever I'm expecting them to display.
That being said, I'm hitting a wall right now and I'm unsure if it's me not getting how shallow rendering works or just something that's not possible to do due to either how React or Enzyme work.
I have this component from Material-UI that I want to "bake in" some values and let my app customize other.
import * as React from 'react'
import * as CSSModules from 'react-css-modules'
import * as styles from './MobileHeader.scss'

import AppBar from 'material-ui/AppBar'
import IconButton from 'material-ui/IconButton'
import CreditBalance from 'components/CreditBalance/CreditBalance'

@CSSModules(styles)
export default class MobileHeader extends React.Component {
    public render() {
        let {leftIconClickHandler, title, leftIcon, credits} = this.props

        return (
            <AppBar
                title={title}
                iconElementLeft={<IconButton>{leftIcon}</IconButton>}
                iconElementRight={
                    <CreditBalance
                        credits={credits}
                        creditIcon='/assets/img/b2b-credit-x4.png'
                        />
                }
                onLeftIconButtonTouchTap={leftIconClickHandler}
                styleName="app-bar"
                titleStyle={{height: 56}}
                iconStyleRight={{marginBottom: 14, marginTop: 14}}
            />
        )
    }
}

Let's say I want to test it displays credits properly, in my tests, the only thing I really care about is 1- Is there a CreditBalance component and 2- does it display 100?
Normally, when components are simply a series of children composed together, this is simple with find() and props(), but since the CreditBalance component is within AppBar's props, I can't a test working easily. find() won't find it
I did manage to test it, but it's almost reverse implementation and very brittle:
it(`Should display the credits in the <AppBar />'s iconElementLeft`, () => {
    let credits = mobileHeader.find('AppBar').prop('iconElementRight')
    expect(credits.props.credits).to.equal(100)
})

I'd love if I could simple do something like expect(mobileHeader.contains('CreditBalance')).to.be.true or something similar. Anything more precise than this and I feel like I'm throwing BDD out the window.
Is what I'm trying to do simply not possible?

If you want to test the whole component tree, you need mount.

I realize that, sorry if my question made it sound otherwise.
However, as my example test shows, I can inspect the shallow rendered component and check that the prop I want is set to the value I'm expecting. Since the information is there, within the ShallowWrapper, is there no way to just test "Hey, is there a CreditBalance component in there somewhere, anywhere?"
It's fine if there is no way to do it, but I prefer to make sure before I do the switch since I much prefer shallow rendering to mounting components to a DOM.

No, there's no way to do it - the point of shallow is that the implementation details of the subtree do not belong in your tests.
I recommend doing it with shallow, and having your MobileHeader tests simply assert that it renders an AppBar, with a iconElementRight prop of a CreditBalance. Then, your shallow unit tests for AppBar can assert that the iconElementRight gets rendered - and your CreditBalance tests can assert that it is rendered properly.

Alright. Guess I still need to do some figuring out when it comes to testing React components!
Thank you!


Define Markdown entry format

Due date: 09/03 #7
Related: #3, #8
We need to agree on the first version of the sdg-categorized project entry markdown template.
The PR for #8 will be merged with the following format:
### Bahmni
Bahmni is an Open Source hospital Management System focusing on poor/underserved and public hospitals in the developing world. It's aimed to being a generic system which can be used for multiple diseases and hospitals in different countries.

* rating: 5
* license: AGPL-3.0
* [website](https://www.bahmni.org/) | [repo](https://github.com/Bahmni)

View result here
We can also discuss what to add in-between these entries. Eg sdg details and progress reports. Maybe better for a future enhancement though.

Like I said previously, I do like the current format.
A few things that I would do, though (let me know what you think about them):

Change *-style lists to --style as required by awesome
Add licenseLink as the link for the license
In the future link the rating to the definition for the given rating (rating 5 means it has to follow x, y and z)
Add a title attribute with the ratingComment (see #26) to the rating.
Add the otherLinks (see #26): Not sure whether that should be above or below the website and repo link. I don't think next to them is a good idea.
Add a contribute link: I'd personally also look at the contribution guideline and how good it is before deciding whether to contribute.

Should we also add the stars somewhere?
The new version would then look like this:
### ERPNext
ERPNext is a top-rated Open Source ERP (Enterprise Resource Planning). Among other features, it also offers a Healthcare module to manage patient data, appointments, lab tests and more. Originally a separate module named smarteCare, it's now integrated in the core itself.

- rating: 5
- license: [AGPL-3.0](https://github.com/frappe/erpnext/blob/develop/license.txt)
- other links: Old smarteCare Website | Integration of smarteCare into the core
- [website](https://erpnext.com/healthcare) | [repo](https://github.com/frappe/erpnext) | [contribute](https://github.com/frappe/erpnext#contributing)

Result
ERPNext
ERPNext is a top-rated Open Source ERP (Enterprise Resource Planning). Among other features, it also offers a Healthcare module to manage patient data, appointments, lab tests and more. Originally a separate module named smarteCare, it's now integrated in the core itself.

rating: 5
license: AGPL-3.0
other links: Old smarteCare Website | Integration of smarteCare into the core
website | repo | contribute

I could make a PR for that if you want :)

@AblingerOscar Thanks! Sounds good.
If you don't mind, I'd like to leave this issue open. Eventually, I'd like to make a shiny template, re-using some of the tricks I found in other interesting awesome lists (as listed in #3). This is a very low priority :)

Sure, we can do that.
Should I still create a PR for that or not? 🤔

Sure, if you want. Else, I'll do it, no problem

I was gonna do it quickly but then remembered I didn't have the tools installed on my laptop to execute it and rather worked on the website ^^
I was gonna do it tomorrow, but if you wanna do it, feel free to do so :)


Grid: Request to add config option to use top/left positioning instead of CSS transform

Transforms has one big drawback, it creates a new stacking context (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context) making it very difficult to put child elements on top of other rendered cells (such as context menus). I've created an example demonstrating the issue here: http://codepen.io/anon/pen/grYLLy .
I'm willing to create a pull request with a fix if you would like :)

I'm a little confused by your Codepen. You're using the same class for the item you're trying to put below and above, so I'm not sure how that would work. If you modified your Codepen slightly, it works:

Attempting to put this on top

aa

.row {
  width: 120px;
  height: 120px;
  position: absolute;
}

.menu {
  z-index: 10;
  position: absolute;
  background-color: green;
  height: 80px;
}

Renders like this:

I've considered making the transform option configurable (see #94) but for different reasons. It should not be necessary to achieve what you're trying to do.

We can continue to communicate on this ticket. I closed it because I don't think there's any action that needs to be taken by react-virtualized in order to support what you're referring to.
You can always nest high-z-index objects within containers that have a lower z-index stacking context if you want to ensure that you can place other things on top of them. Perhaps that's what you've accidentally done with your overlays in your larger project?

The reason I had the same class (row) in my example is that its what Grid will render and is out of the callers control. I've created a new codepen with relevant class names, ie "Grid__cell" instead of "row". http://codepen.io/anon/pen/RabjaN Makes more sense now?

Compare to this: http://codepen.io/anon/pen/MygOjV

Ah, so you want to have something in a single Grid cell that extends above/over other cells. I didn't get that from the initial Codepen. Hmm.
I'm still a little uneasy about content that extends over the visible bounds of a cell. It seems like it introduces potentially tricky edge cases:

With cells that have just scrolled out of view (their content might vanish before it seems like it should)
With grids/tables/lists that are themselves constrained by a stacking context (the "popup" might get clipped at the edge of the grid)

Where I work, we use react-bootstrap/react-overlays Portal for this sort of thing. There's also tajo/react-portal.
I'll re-open this issue and give it a little more thought.

Yes :). Thanks for the tip about react-overlays, it's a good workaround for most cases. The reason that I still would like to have this possibility in react-virtualized is that it will make it much easier to work with third party components. In my current project I'm using https://github.com/JedWatson/react-select that is rendering its drop down menu in the same tree as the parent.

No problem. :)

@jonaslundgren: You'll be happy to learn that, for entirely performance-related reasons, release 5.2.3 replaces transform:translate with top/left positioning. (See PRs #124 and #125 for more context.) As such I'm going to go ahead and close this issue. :)

Nice :)


fix: use owned Builder pattern for ConnectOptions

Closes #2131

PR changed to target 0.7-dev.

Thank you @abonander 🙌🏻
Should I also update the CHANGELOG.md file?

@ar3s3ru no need to update CHANGELOG but I just merged some pretty large refactors, do you mind rebasing?

@abonander rebased on latest commit on 0.7-dev 👍🏻
Welcome back btw!

@ar3s3ru if you amend and force-push it should trigger a CI run.


[WIP] Re-implement Connect-To Functionality

Re-implement the Connect-To functionality so that one Shabad OS server is able to find servers on the same network and be able to connect with them.
Related to: #84

Closing in favor of #416 which can switch to local networks if on the same wifi


Broken transitive Eq property

It seems that you have broken test for the transitive Eq property in plutusEqLawsDirectWith:
plutusEqLawsDirectWith gen shr =
  testProperties
    ("Plutus Eq laws for " <> typeName @a)
    [
    ........
      ( "if x == y and y == z, then x == z"
      , forAllShrinkShow (liftArbitrary gen) (liftShrink shr) ppShow propTrans
      )
    ]
  where
    ........
    propTrans :: Triple a -> Property
    propTrans (Triple x y z) =
      cover
        50.0
        ((x PlutusTx.== y) && (y PlutusTx.== z))
        "precondition satisfied"
        $ ((x PlutusTx.== y) && (y PlutusTx.== z)) === (x PlutusTx.== z)

Example: x=0, y=1, z=0

@re-xyr This seems like a small oversight, so shouldn't be too difficult to repair.


Add command-line switch to omit folders from debug output

Fixes #1427
Adding a --flatten-debug-output switch that will remove the datetime folder, as well as /.maestro/tests/ from the path, leaving the debug output exactly where the user defined.
Proposed Changes

🤖 Generated by Copilot at 972f615
Added a new option --flatten-debug-output to the test command in maestro-cli to simplify the test output folder structure for CI environments. Updated the TestDebugReporter class to handle this option and generate the output path accordingly.
Testing
No params:
 ⇒ ./maestro test ~/maestro/scratch.yaml
Running on iPhone 14 Pro - iOS 16.4 - 1FCE17AC-A5FF-496C-9EDB-7C66E9D0FBE3

 ║
 ║  > Flow
 ║
 ║    ❌  1 is the same as 2
 ║

Assertion is false: false is true

==== Debug output (logs & screenshots) ====

/Users/danc/.maestro/tests/2023-09-13_174225

Just the debug option:
 ⇒ ./maestro test --debug-output /tmp/maestro ~/maestro/scratch.yaml
Running on iPhone 14 Pro - iOS 16.4 - 1FCE17AC-A5FF-496C-9EDB-7C66E9D0FBE3

 ║
 ║  > Flow
 ║
 ║    ❌  1 is the same as 2
 ║

Assertion is false: false is true

==== Debug output (logs & screenshots) ====

/tmp/maestro/.maestro/tests/2023-09-13_174126

With the new option:
 ⇒ ./maestro test --debug-output /tmp/maestro --flatten-debug-output  ~/maestro/scratch.yaml
Running on iPhone 14 Pro - iOS 16.4 - 1FCE17AC-A5FF-496C-9EDB-7C66E9D0FBE3

 ║
 ║  > Flow
 ║
 ║    ❌  1 is the same as 2
 ║

Assertion is false: false is true

==== Debug output (logs & screenshots) ====

/tmp/maestro

Issues Fixed
#1427

@ArthurSav can you work with @Fishbowler to drive this PR to completion? Thanks!

@Fishbowler Can you ensure that deleteOldFiles doesn't run in this case. It might cause unintended deletions in custom dirs.

Closing this due to staleness. OP you can re-open + address comments


Bugfix/tdi 37873

Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-37873
What is the new behavior?
Component works in the studio
Does this PR introduce a breaking change?

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: failure :x:

checking the tests issues.

OSGI tests are failing because you removed the ,com.snowflake* from the export package command.
I think this cause not arm to export those API and will make the tests work. I also wonder if you are not required to export them to be used by the jdbc APIs.

OK, I fixed the export; The problem is the export causes the classes to be included in files inside of the Jar files; but the studio requires the actual Jar file. Both are now being included (at a cost of twice the size -- which is unfortunate, but at least everything will work).


Segfaults and SIGABRTs on nightlies since 2019-11-19

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): ('v1.12.1-18736-g229a46c', '2.1.0-dev20191119')
Python version: Python 2.7.6
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
TensorFlow version tf-nightly==2.1.0.dev20191119 experiences core
dumps on some simple summary operations. I can’t reproduce this on my
normal workstation, but I have a consistent repro on a Cloud VM (which
does not have Cuda installed; maybe relevant?).
Repro steps:
Create a new virtual machine running Ubuntu 14.04:
https://console.cloud.google.com/compute/instancesDeploySolution?solution=ubuntu-os-cloud:ubuntu-trusty
Prepare the system:
sudo apt install python-pip python-virtualenv python3.5

Create a virtualenv:
virtualenv -p python2.7 ./ve &&
. ./ve/bin/activate &&
pip install -U pip setuptools &&
pip install tf-nightly==2.1.0.dev20191119 &&
:

Attempt to reproduce the failure:
python -c '__import__("tensorboard").summary.scalar("test", 1)'

About half the time, the last command will SIGABRT. On Python 2.7, the message is:
(ve)wchargin@trusty-travis-debug-37:~$ python -c '__import__("tensorboard").summary.scalar("test", 1)'
2019-11-19 21:08:01.525309: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-11-19 21:08:01.525350: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2019-11-19 21:08:01.525377: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (trusty-travis-debug-37): /proc/driver/nvidia/version does not exist
2019-11-19 21:08:01.525707: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-11-19 21:08:01.534370: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-11-19 21:08:01.535487: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x526b010 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2019-11-19 21:08:01.535515: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
*** Error in `python': free(): invalid pointer: 0x0000000001ecaad0 ***
Aborted (core dumped)

On Python 3.5, the log is:
(ve3.5a)wchargin@trusty-travis-debug-37:~$ python -c '__import__("tensorboard").summary.scalar("test", 1)'
2019-11-19 21:06:03.550539: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-11-19 21:06:03.550578: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2019-11-19 21:06:03.550601: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (trusty-travis-debug-37): /proc/driver/nvidia/version does not exist
2019-11-19 21:06:03.550931: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-11-19 21:06:03.559645: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-11-19 21:06:03.560529: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x4a31d20 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2019-11-19 21:06:03.560558: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
*** Error in `python': corrupted size vs. prev_size: 0x0000000001572680 ***
Aborted (core dumped)

Note that though this code is invoked through TensorBoard APIs, the
error is actually in TensorFlow (TensorBoard does not have any C++ code
of its own), and the TensorBoard nightlies did not change substantially
between the last good nightly and the current broken nightly.
Downgrading TensorBoard to nightly tb-nightly==2.1.0a20191118 or to
stable tensorboard==2.0.1 does not fix the problem.
If you instead install the following dependencies—

`pip freeze` output; install with `pip install -r requirements.txt`
absl-py==0.8.1
astor==0.8.0
attrs==17.3.0
aws-xray-sdk==0.95
backports.ssl-match-hostname==<IP_ADDRESS>
backports.tempfile==1.0
backports.weakref==1.0.post1
boto==2.49.0
boto3==1.9.86
botocore==1.12.253
cachetools==3.1.1
certifi==2019.9.11
cffi==1.13.2
chardet==3.0.4
configparser==4.0.2
cookies==2.2.1
cryptography==2.8
docker==4.1.0
docutils==0.15.2
ecdsa==0.14.1
entrypoints==0.3
enum34==1.1.6
flake8==3.7.8
funcsigs==1.0.2
functools32==3.2.3.post2
future==0.18.2
futures==3.3.0
gast==0.2.2
google-auth==1.7.1
google-auth-oauthlib==0.4.1
google-pasta==0.1.8
grpcio==1.25.0
grpcio-testing==1.24.3
h5py==2.10.0
idna==2.8
ipaddress==1.0.23
Jinja2==2.10.3
jmespath==0.9.4
jsondiff==1.1.1
jsonpickle==1.2
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
Markdown==3.1.1
MarkupSafe==1.1.1
mccabe==0.6.1
mock==3.0.5
moto==1.3.7
nose==1.3.7
numpy==1.16.5
oauthlib==3.1.0
opt-einsum==2.3.2
pathspec==0.6.0
pbr==3.1.1
pluggy==0.6.0
protobuf==3.10.0
py==1.5.2
pyaml==19.4.1
pyasn1==0.4.8
pyasn1-modules==0.2.7
pycodestyle==2.5.0
pycparser==2.19
pycryptodome==3.9.4
pyflakes==2.1.1
pytest==3.3.0
python-dateutil==2.8.1
python-jose==2.0.2
pytz==2019.3
PyYAML==5.1.2
requests==2.22.0
requests-oauthlib==1.3.0
responses==0.10.6
rsa==4.0
s3transfer==0.1.13
six==1.13.0
tb-nightly==2.1.0a20191119
termcolor==1.1.0
tf-estimator-nightly==2.0.0.dev2019111909
tf-nightly==2.1.0.dev20191119
typing==<IP_ADDRESS>
urllib3==1.25.7
websocket-client==0.56.0
Werkzeug==0.16.0
wrapt==1.11.2
xmltodict==0.12.0
yamllint==1.17.0

—then the following script consistently segfaults after completing each
command (except rarely when it SIGABRTs instead):
(ve2.7)wchargin@trusty-travis-debug-37:~$ cat scriptzz.py
import tensorboard as tb
tb.summary.v1.scalar_pb('test', 42)
tb.summary.scalar('test v2', 1337)
from tensorboard.plugins.beholder import Beholder, BeholderHook
print("DONE")
(ve2.7)wchargin@trusty-travis-debug-37:~$ python scriptzz.py
2019-11-19 21:26:36.188506: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-11-19 21:26:36.188546: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2019-11-19 21:26:36.188579: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (trusty-travis-debug-37): /proc/driver/nvidia/version does not exist
2019-11-19 21:26:36.188899: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-11-19 21:26:36.197595: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-11-19 21:26:36.198580: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5df0030 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2019-11-19 21:26:36.198617: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
DONE
Segmentation fault (core dumped)

Example double-free/invalid-free in failed build log:
https://travis-ci.com/tensorflow/tensorboard/jobs/258256205
Example segfault in failed build log:
https://travis-ci.com/tensorflow/tensorboard/jobs/258256206
Describe the expected behavior
Running TensorFlow code should never SIGSEGV or SIGABRT.
Code to reproduce the issue
See above.
Other info / logs
This previously occurred with TensorFlow’s 20191024 nightlies:
pip: tb-nightly==2.1.0a20191024
pip: tf-nightly==2.1.0.dev20191024
python: tb.__version__ == 2.1.0a20191024
python: tf.__git_version__ == v1.12.1-16634-g0e90b26
python: tf.__version__ == 2.1.0-dev20191024

See https://github.com/tensorflow/tensorboard/pull/2834 for context.
This is blocking TensorBoard CI. We’ll probably just pin yesterday’s
nightlies in the short term, but last time we did that (see above PR)
the underyling issue was evidently never actually resolved.

cc @mihaimaruseac

FWIW, I’m continuing to see these errors on 2019-12-02 nightlies:
(ve)wchargin@trusty-travis-debug-39:~$ python -c '__import__("tensorboard").summary.scalar("test", 1)'
2019-12-02 22:43:19.710483: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-12-02 22:43:19.710528: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
2019-12-02 22:43:19.710552: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (trusty-travis-debug-39): /proc/driver/nvidia/version does not exist
2019-12-02 22:43:19.710889: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-12-02 22:43:19.720134: I tensorflow/core/platform/profile_utils/cpu_utils.cc:101] CPU Frequency:<PHONE_NUMBER> Hz
2019-12-02 22:43:19.721200: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5716340 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2019-12-02 22:43:19.721227: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
*** Error in `python': free(): invalid pointer: 0x0000000002349ad0 ***
Aborted (core dumped)
(ve)wchargin@trusty-travis-debug-39:~$ python -c 'print(__import__("tensorflow").__version__)'
2.1.0-dev20191202
(ve)wchargin@trusty-travis-debug-39:~$ pip freeze --all | grep -e tensor -e tf- -e tb-
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
tb-nightly==2.1.0a20191202
tf-estimator-nightly==2.0.0.dev2019120209
tf-nightly==2.1.0.dev20191202

I didn't yet get a chance to look into these unfortunately. I think the earliest I can look into them is next week.

Acknowledged; thanks! It’s certainly quite weird that I can reproduce
this on a fresh Ubuntu machine but not my normal environment, which is
Debian-based. I’ve hacked around this by disabling the one integration
test in our CI that happens to hit this, but that integration test is
actually pretty important for us, so it would be awesome if we could get
to the bottom of this. Thanks so much!

@mihaimaruseac Any updates on the investigation of this issue? We continue to see it in the latest nightly (20191222).

Can you try upgrading scipy to 1.4.1? There have been similar sigabrts last week which were caused by scipy (scipy/scipy#11237)
There was another segfault I fixed recently, I need to do some post-fixing work today and then I can investigate this more

@mihaimaruseac  @wchargin The most recent tensorboard build log that shows this error already shows scipy==1.4.1 is being used. See log here: https://api.travis-ci.org/v3/job/628578238/log.txt. So I don't think scipy is the direct cause.

Thanks. One more segfault to investigate, then. I'm on it.

@mihaimaruseac Thanks! Let me know if I can be of any help.

Oh, I just noticed you're using Ubuntu 14 VMs. Can you try with Ubuntu 16 ones? Our toolchain is tested on ubuntu 16 and we expect issues with ubuntu 14.

Should we also close this one, now that we identified the issue to come from the toolchain?

Closing, since issue stems from toolchain and we fixed that


When .fit(), Ti is shifted by 1 month

Hello,
Thank you very much for this package. Is great.
I just have one issue.
For some reason, the Ti is shifted by 1 month when doing .fit().
Here is a simple example:
import pandas as pd
import numpy as np
import dcapy.dca as dca  # https://scuervo91.github.io/dcapy/
import datetime

df = pd.DataFrame({
    'date': ['2020-01-01', '2020-02-01', '2020-03-01', '2020-04-01', '2020-05-01'],
    'prod': [10, 9, 8, 7, 6]})
df['date'] = pd.to_datetime(df['date'], format='%Y-%m-%d')

# df.plot(x='date',y='prod', kind='scatter')

d1 = dca.Arps(freq_di='M')
d1.fit(df=df, time='date', rate='prod')
d1

The output I get is:
Declination
 Ti: 2020-02-01
 Qi: 9.044496325102125 bbl/d
 Di: 0.004430541919967859 FreqEnum.M
 b: 4.647764695265519e-08

As you can see, the Ti is 1/FEB/2020, but at the dataset, the first month was 1/JAN/2020.
Also, notice Qi is ~9 instead of the original 10. Which is the oil_rate for the predicted 1/FEB/2020.
Is there any reason why?
Thanks!
Here is another short example:
a3 = dca.Arps(
    ti = datetime.date(2021,1,1),
    di = 0.03,
    qi = 10,
    b = 0,
    freq_di='M',
    seed=42
)

a4 = a3.forecast(start=datetime.date(2021,1,1),end=datetime.date(2022,1,1), freq_output='M', iter=10)
a4 = a4.reset_index()
a4['date'] = a4['date'].astype('datetime64[ns]')

d2 = dca.Arps(freq_di='M')
d2.fit(df=a4, time='date', rate='oil_rate', b=0)
d2

The output
Declination
 Ti: 2021-02-01
 Qi: 9.694755946748566 bbl/d
 Di: 1.0 FreqEnum.M
 b: 0.0

I found the issue is at arps.py at the fit() method and the interaction with the filters.
To quick and dirty fix the issue, I am adding an additional element to the array for x and yb.
Previously was:
        # TODO: Add the option to start the cumulative with an Initial Value different a 0
        #Check inputs
        x = df[time].values if isinstance(time,str) else time
        yb = df[rate].values if isinstance(rate,str) else rate

Now is:
        # TODO: Add the option to start the cumulative with an Initial Value different a 0
        #Check inputs
        x = df[time].values if isinstance(time,str) else time
        yb = df[rate].values if isinstance(rate,str) else rate

        # TODO: JPBM: Fix?
        if isinstance(x[0],(np.datetime64,date)):
            x_delta = np.timedelta64(1, 'M').astype('<m8[ns]')
        else:
            x_delta = 1.
        x_previous = np.min(x) - x_delta
        x = np.append(x_previous, x)
        yb = np.append(0, yb)

I need to spend more time to understand how the filtering works.

By the way, with this toy example:
import pandas as pd
import numpy as np
import dcapy.dca as dca  # https://scuervo91.github.io/dcapy/
import datetime
import matplotlib.pyplot as plt

a3 = dca.Arps(
    ti = datetime.date(2021,1,1),
    qi = 20,
    di = 0.1,
    b = 0.1,
    freq_di='M',
    seed=42
)

a4 = a3.forecast(start=datetime.date(2021,1,1),end=datetime.date(2022,1,1), freq_output='M', iter=10)
a4 = a4.reset_index()
a4['date'] = a4['date'].astype('datetime64[ns]')

d2 = dca.Arps(freq_di='M')
d2.fit(df=a4, time='date', rate='oil_rate')
print(d2)

fig, ax = plt.subplots(figsize=(10,7))
a4.plot(x='date', y='oil_rate', kind='scatter',ax=ax)
d2.plot(ax=ax, start=datetime.date(2021,1,1), end=datetime.date(2022,1,1))

I get this output:
Declination
 Ti: 2021-01-01
 Qi: 20.000000000000004 bbl/d
 Di: 0.0033333333333333375 M
 b: 0.10000000000000345

Which still not a perfect match. The Di is not fitting correctly.
Not sure if this issue with the date has to do with it.

Fix with #23


IOBUF support

This PR adds support for IOBUF to SymbiFlow.

[x] Minitest.
[x] Blackbox / simulation model.
[x] Architecture definition.
[x] Techmap.
[x] fasm2bels.
[ ] Automatic inference of 3-state IOBUFs

With this PR the flow of SymbiFlow changes a bit. Upon sysnthesis the design is written to a JSON file. Then, the file is processed by the split_inouts.py utility which splits inout ports into separate inputs and outputs. After processing, the design is written to another JSON file which is then converted to EBLIF using Yosys.
This processing should be moved to a Yosys plugin in the future.
Each top-level inout port of the design is split into one input and one output port. Port names are given in the following way: inout A -> input A_$inp and output A_$out.

I'm still having issues with making Yosys infer IOBUFs from assign statements though. For such a design:
inout wire pin

...

wire pin_i;
wire pin_o;
wire pin_t;

assign pin_i = pin;
assign pin = (pin_t == 1'b1) ? pin_o : 1'bz;

In some cases I end up with an OBUFT-like cell for the 3-state output and the input taken directly from the pin (not through any buffer). In other cases I have a properly connected IOBUF cell but after optimization its output gets disconnected (a bug?).

I'm still having issues with making Yosys infer IOBUFs from assign statements though. For such a design:

I know I suggested the iobufmap to begin with, but if we simply require the IOBUF explicitly, would your script do the right thing?


NFL/LIVE!! HOW TO WATCH Detroit Lions vs Arizona Cardinals LIVE STreams

Watch the Detroit Lions vs. Arizona Cardinals game on Hulu + Live TV. You can watch the NFL, including Fox, with Hulu + Live TV. The bundle ...
Streaming options for the game include Paramount+, and FUBO, which offers a free trial to new subscribers. Watch Lions vs Cardinals live on Fubo ...
Where to watch Cardinals vs. Lions
When: Sunday, Sept. 22 at 4:25 p.m. ET
Where: State Farm Stadium -- Glendale, Arizona
What channel is Lions vs Cardinals on today? Time, TV streaming info to watch Week 3 game
A pair of 1-1 teams squares off in the desert when the Detroit Lions visit the Arizona Cardinals in Week 3. With the wins for each coming against the same common opponent, the Los Angeles Rams, it's a barometer game for a pair of NFC playoff aspirants.
Here's how to watch the Lions game, including time, TV schedule and streaming information:
The Arizona Cardinals take on the Detroit Lions in the next NFL fixture. We're expecting a real battle between two evenly-matched teams, both sporting a 1-1 record so far this season.
If you're interested in watching Arizona Cardinals vs. Detroit Lions for free from anywhere in the world, we have all the information you need.
When is Cardinals vs. Lions?
Arizona Cardinals vs. Detroit Lions starts at 4:25 p.m. ET on Sept. 22. This fixture takes place at the State Farm Stadium.
Lions vs. Cardinals Livestream: How to Watch NFL Week 3 Online Today
Want to watch the Lions play the Cardinals? Here's everything you need to stream Sunday's 4:25p.m. ET game on Fox.
The 1-1 Lions and 1-1 Cardinals meet in the desert on Sunday in a game that could have a lasting impact on the NFC playoff picture. Each team can put up points, but do so with quarterbacks of contrasting style.
Jared Goff of the Lions is a pocket-passer who looks to distribute the ball to his talented duo of receivers, Amon-Ra St. Brown and Jameson Williams, as well as tight end Sam LaPorta. And when they aren't open, he's content to check the ball down to running backs Jahmyr Gibbs and David Montgomery.
For the Cardinals, when Kyler Murray can't find rookie wideout Marvin Harrison Jr. and tight end Trey McBride, he's happy to take off running. Murray already has over 100 yards rushing after two games on just 10 carries.
The Lions and Cardinals kick off in Arizona at 4:25 p.m. ET (1:25 p.m. PT) on Fox. Here's how you can watch, even if the game isn't available on your local Fox channel.gfhgjhgfdf

ythjytuy6


Cannot connect to <IP_ADDRESS>, localhost, or linux IP address

This was working for me prior to 18945
Please fill out the below information:

Your Windows build number:  (Type ver at a Windows Command Prompt)
10.0.18945.1001]

What you're doing and what's happening:  (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Trying to access network ports in my WSL2 (port forwarded via ssh over vpn) via localhost or <IP_ADDRESS> or eth0 IP address and getting connection refusal

for example

ssh -i ~/.ssh/your.key -l username -L 27027:mongo.server.ip:27017 -N -f mongo.server.ip

What's wrong / what should be happening instead:
I should be able to connect from the windows host (eg in browser, or sql editor) to linux ports eg <IP_ADDRESS>:8080 or localhost:27017

when I run NoSQLBooster for MongoDB in windows I get the error:
"message" : "failed to connect to server [localhost:27027] on first connect [MongoNetworkError: connect ECONNREFUSED <IP_ADDRESS>:27027]

Connecting from Linux out (eg to initialize ssh port forwarding or lynx localhost:8080) works.
I can ping the linux IP but not connect to that either
Network Info from wsl:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 5e:ac:68:50:7d:20 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 9a:99:a8:e8:66:84 brd ff:ff:ff:ff:ff:ff
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit <IP_ADDRESS> brd <IP_ADDRESS>
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:d1:ac:d2 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/16 brd <IP_ADDRESS> scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fed1:acd2/64 scope link
       valid_lft forever preferred_lft forever

ip r
default via <IP_ADDRESS> dev eth0
<IP_ADDRESS>/16 dev eth0 proto kernel scope link src <IP_ADDRESS>

From windows
ifconfig
Ethernet adapter vEthernet (WSL):

   Connection-specific DNS Suffix  .
One odd thing with the new localhost win10->wsl2 implementation is that the linux process needs to bind to <IP_ADDRESS> in order for win10 to access on localhost.  I suspect this will be fixed before long.
example:
ng serve
This starts an angular/npm app but doesn't specify which interface to bind to.  It cannot be accessed from win10
ng server --host <IP_ADDRESS>
This binds to all interfaces and win10 can access on http://localhost:4200

Big fan of accessing development stuff via localhost without having to configure security and access. localhost on WSL2 is great news.
Now, if you have to set <IP_ADDRESS> on every piece of software you don't really benefit of the localhost simple access feature. Tried mysql and postgresql, they need to bind to <IP_ADDRESS> to accept connections from outside. RabbitMQ admin plugin web interface works fine via localhost (guest account by default works only via localhost).
I hope the localhost access would expand to most services without additional setup (like bind <IP_ADDRESS>), if possible. localhost accesss made WSL so much easier to use compared to the traditional development vm.

You've not copied and pasted a full set of commands to reproduce.

Good point. I've added a specific example of ssh port forwarding that normally works - it is connecting to a remote mongodb instance but anything that you have in your network should behave similarly.

If I'm reading it right you right you have the following setup

a mongo db not running in win10 or wsl2
a wsl2 which you want to use to port forward the mongo db port on remote mongo server
win10 mongo client that you want to attached to forward port

interesting pattern!
Have you tried:
ssh -i ~/.ssh/your.key -l username -L <IP_ADDRESS>:27027:mongo.server.ip:27017 -N -f mongo.server.ip
and setting GatewayPorts yes in /etc/ssh/sshd_config
My inspiration came from this:
https://stackoverflow.com/questions/23781488/how-to-make-ssh-remote-port-forward-that-listens-0-0-0-0
As I mentioned in an earlier post you need for ports to bind to <IP_ADDRESS> with wsl2 at the moment - I'm hoping the suggestion above will cause the ssh port binding to bind to <IP_ADDRESS> and the GatewayPorts would expose the port to Win10 (and potentially to other PCs on your network!)

Thanks for posting.  I have identified an issue with the localhost feature and we are working on a fix.

interesting pattern!

Yeah - I have a number of mongo servers running elsewhere that don't have the ports exposed I normally connect to from wsl using the mongo cli but I have some Windows GUI tools that make some things easier so necessitating the song-and-dance

Have you tried:
ssh -i ~/.ssh/your.key -l username -L <IP_ADDRESS>:27027:mongo.server.ip:27017 -N -f mongo.server.ip

This works.! Brilliant, thank you.

and setting GatewayPorts yes in /etc/ssh/sshd_config

This does not appear to be needed - I'm guessing because I'm using ssh and not sshd to provide the forwarding.
Thanks for the help and hopefully Ben will have a fix Soon (tm)

is there any work around for docker?

is there any work around for docker?

try this, only for docker:docker-desktop-wsl2-tech-preview

@sinapis I have tried that with SysVinit procedure. For that, add DOCKER_OPTS="--host tcp://<IP_ADDRESS>:2375" line in /etc/default/docker file as root. Then start docker daemon in WSL with sudo service docker start. Now add set DOCKER_HOST=tcp://localhost:2375 in Windows side an run docker client.

Still not work in 18963😭😭😭

Fixed in 18970.

I'm on 18999, and I cannot use localhost. Trying to get to a mysql server.
<IP_ADDRESS> works, but not <IP_ADDRESS> or localhost.
in my.cnf , I commented bind-address.
do I have to do something special for localhost to work?

I rebooted. VM IP is now <IP_ADDRESS>/20
localhost works!

Still broke in 18995. Was more reliable than before, but gave up on mysql after a few hours

Still broke in 18995. Was more reliable than before, but gave up on mysql after a few hours

I'm on 18995.1, it works using "localhost"

Still broke in 18995. Was more reliable than before, but gave up on mysql after a few hours

I'm on 18995.1, it works using "localhost"

Yes, it works "most of the time", if you boot up you can access anything run on WSL2 via localhost:port, but alas after a few hours it gets flakey again, not 100% for example already established long running connection such as persistent DB connection remain but struggles establishing new connections. It's much more reliable than earlier "localhost" featured versions

It would be very useful if somebody could identify an app or workflow that can reliably trigger any remaining issues.

Just another observation, after last night hibernation I can't access /mnt/c/ inside WSL2 or localhost:port from windows, the WSL2 kernel has been up evident by uptime.

I just switched to the insider previews, and switched my WSL distro to v2, and while it worked once, rebooting my system for something else caused this problem to begin.
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 6a:05:33:e7:f5:ed brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 06:79:51:51:a7:30 brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:8f:2e:0a brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/20 brd <IP_ADDRESS> scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe8f:2e0a/64 scope link
       valid_lft forever preferred_lft forever
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit <IP_ADDRESS> brd <IP_ADDRESS>

$ ip route
default via <IP_ADDRESS> dev eth0
<IP_ADDRESS>/20 dev eth0 proto kernel scope link src <IP_ADDRESS>

I am able to ping out of ubuntu, but starting a simple python3 -m http.server 5000 is enough to trigger the issue for me.  I can not connect to servers hosted in WSL via localhost or <IP_ADDRESS>, but I am via the rotating IP.  I am going to try wiping my WSL install and starting it from scratch is enough to fix the issue.

I can now confirm that even with a fresh reinstall of WSL2 with Ubuntu 18.04, it still has the same issue.

At least now I can wsl --shutdown and reopen a terminal and get back localhost connectivity (and /mnt/c access)
But it (localhost and mnt/c) never works on resume from standby (i.e. close laptop in evening and open in morning) - wondering is the standby/resume issue is considered somewhere else or perhaps laptop usage isn't considered at the moment

I tried the wsl --shutdown trick, but even that was not enough to fix the issue.  I am continuing to see if I can find something that can point to what's going on better.

It does look to be something sleep related.  After a fresh reboot yesterday, I was able to access items via localhost, but today, I have been unable to after placing my system into sleep mode.

I'm using Laravel.
Running php artisan serve --host <IP_ADDRESS> with default port of 8000. The app is not accessible from chrome at <IP_ADDRESS>:8000
Same with Spring/Tomcat

Another one https://twitter.com/hmemcpy/status/1181258918682664961

I have a issue that looks like this but was better described on #4347  which was closed as duplicated by this.
Anyways, here is the description:

Windows build 19041.1
WSL 2 running Ubuntu 18.04.3
Apache2

Apache2 default site is working great from Windows with localhost.
When I create a new Virtual Host on Apache2, with a different tld like test.tld, it works from inside WSL2, but not from the windows machine.
I put test.tld on Ubuntu hosts file and also on Windows hosts file.
I'm describing it here again because @craigloewen-msft closed #4347 in favor of this issue, but I'm not seeing any description that looks like my use case here, so I'm documenting it.

I realized that, if I put:
::1             test.tld localhost

instead of
::1             localhost test.tld

in the Windows hosts file, it works, I don't know if this is a normal behaviour for IPv6

I can reliably reproduce this with ssh -L bindings, like the OP. Start up ssh client with -L 1234:remote:1234, use that port forward a little in a browser, then use ~C SSH escape command to add another port forward using -L 5678:localhost:5678 and it more often than not won't be available on localhost:5678. This can be confirmed using netstat -a -b -n, as the only result for wslhost.exe is the 1234 port from the original binding. Once it breaks like this, I also have to use wsl --shutdown to get port forwarding working again in SSH client.

It would be very useful

I have PostgreSql 8.4 installed on an WSL distro (Ubuntu 18.04). If I kill a locked JDBC (running an alter table query on a read locked table using DataGrip) connection to the database server, all listening sockets on wslhost.exe disappears. Maybe wslhost.exe crashes?

About to lose the point of using WSL2 at all as all of a sudden I can't locally access any of my applications.

I can't imagine such a critical issue going unfixed for so much time, are people just not using WSL2 for developing anything on the web? I was hoping to but I guess with this issue the hype just comes crashing to the ground when a basic function can't work correctly.

I believe WSL2 in current shape is useless for anything that involves networking. And in today's world, that's pretty much everything. If you want to develop web apps, having Apache on WSL2 is useless, as there are bunch of hoops to jump through, and even those aren't guaranteed to work. You can't reliably access that web server from outside, nor occasionally from local PC. If you want to use that WSL2 for management & monitoring tools to manage other (real) Linux servers using remote management/monitoring, again you have to rely on buggy and badly thought through network implementation.  I'm talking about 99% of what WSL was made to solve - give developers and admins (be it net/sys/db) access to tools from Linux ecosystem. From my point of view, it fails for most admin and dev uses with current networking stack. We're all way better off creating our own lightweight VMs on Hyper-V, that's just 4GB disk space and 10min of time. Slightly longer than installing WSL distro through Store, but you have 100% compatibility, 100% access to networking, and it is a reliable solution.
We aren't meant to be browsing web from WSL2, and that's just about it in a list of networking features that work on WSL2.
I beg excuse of all developers that are spending countless hours on this project, indeed a wonderful project with huge potential. But I hope you people still get the point. Perhaps you should just ask project managers to rethink the strategy...

I'm not sure if this is related but I've never been able to get database tools (running on windows) that use the jdbc postgresql driver to connect to a PostgreSQL instance running in a docker container on one of my WSL2 Distros. Tools like HeidiSQL connect just fine but Datagrip, DBeaver, etc cannot connect.

for me the only that works accessing WSL2 server apps from windows 10  :

Obtain the IP address of your distro by running the command ip addr inside of your WSL distro and finding it under the inet value of the eth0 interface.

You can find this more easily by filtering the output of the command using grep like so: ip addr | grep eth0.

Connect to your Linux server using the IP you found above.
from release notes of WSL2 WSL-1870.zip founded here .

made a small server in go and tested http://<IP_ADDRESS>:3006/
works fine !

Fixed in 18970.

Other landing zone over at #4851. For else, feel enouraged to open a new issue following the template.

Fixed in 18970.

Other landing zone over at #4851. For else, feel enouraged to open a new issue following the template.

I don't think so.  Still experiencing it on 19577.

@kangzj make sure you didn't hit this bug https://github.com/microsoft/WSL/issues/5298

@kangzj make sure you didn't hit this bug #5298

you are a life saver thanks heaps


#1977 - Application Offering Change Request [Student Application Tracker] - Part 3: e2e tests

As a part of this PR, created e2e tests to test the following controller endpoints:

application.students.controller.ts: getApplicationProgressDetails and getCompletedApplicationDetails

assessment.students.controller.ts: getRequestedAssessmentSummary

Looks good @sh16011993. just added one qn

Nice work @sh16011993 . Few minor comments.


Include when a process was started on the process properties dialog

I often look up this information but missing from process hacker! Please include time stamp for when the process had started.

Hah!


Increase the tests

Hi @luizpicolo good to see you in hacktoberfest again! I will write some specs. By the way, there are more issues to this project? I will be happy to help 😉

Hey @luizpicolo, I checked your rails_helper and saw that you didn't use SimpleCov.start :rails. Changing it, it'll be like this:

do any more work needs to be done in here ? @luizpicolo

Yes, we always need more tests :)


Upgrade to go 1.20 and update dependencies + point to a compatible MCAD

Testing if this works...

Solution looks promising for upstream CFO to point at a new branch in MCAD repo with updated dependencies. There doesn't seem a need to update instascale.

Closing as pushing this PR to upstream.


internal/gamepaddb: a Nintendo Switch Pro controller doesn't work well on macOS and Windows

Even after updating the gamepad database, the mapping doesn't work well.
The latest database includes this:
030000007e0500000920000001000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,

https://i.gyazo.com/3a61b9d4a1d140a65a1fe9e9fd4006ce.mp4
On macOS, a Nintendo Switch Pro controller doesn't work well...

@nadimkobeissi did you see the same thing?

glfw/glfw#1627

https://github.com/libsdl-org/SDL/blob/main/src/joystick/hidapi/SDL_hidapi_switch.c
Implementing HIDAPI driver seems necessary.

Note that a Nintendo Switch Pro controller works when Steam Input is used.


"Error written data on DDS entity" after restarting publisher

Using the pingpong publisher on the PC side, and the uros_pong_server on the MCU side, I can run the benchmark as long as I want.
However when I ran it for a couple of minutes and then restart, I get the "Error written data on DDS entity" from thee agent and communication does not work afterwards. I have to restart the agent.

Due to the various build system-related changes it has taken a while to test the new versions, but it looks as if this issue is solved now.

Sorry, a longer test revealed that the issue is still present.
Steps to reproduce:

Set up an Olimex STM32-E407 with pingpong-eth configuration
start agent on host and "uros_pong_server" on client
Run micro_ros_rtt/pingpong for at least 30 seconds.
Stop pingpong and restart it

-> agent prints "Error written data on DDS entity."

 Thanks for the description.

Hi @iluetkeb, I was not able to reproduce this issue in my host using this pingpong_server application. I will to reproduce it in NuttX the next week. Could you reproduce it in your host?

I always ran this on NuttX, but I can try again on the host.

The first time we noticed this issue has been with the Olimex board directly attached by Ethernet to my PC. In those cases, it occurred when we restarted the RTT test after it had been running for a while.
This week, I am using the Olimex board connected to the GL.Inet AP by Ethernet, and them I'm communicating with that using a USB Wifi adapter. In this setup, we also sometimes have the problem just during running, though rarely.
Moreover, with the second setup, we fairly see the session breaking down (no data being received) and the daemon then logs
[1582188574.700544] info     | SessionManager.hpp | establish_session        | session re-established | client_key: 0x1009760727, address: <IP_ADDRESS>:516

Should I start the daemon with more verbose settings?


Land devel branch changes on main

We have pretty much completed the work for preparing devel to merge to main, so let's get it done!

LGTM, This is a big PR so I just did a rudimentary glance. If we miss something we can quickly follow up with a PR but it is better to get this merged sooner so we can work on main moving forward.

I did review the changes and confirmed that the next differences between the old devel and the rebased devel were just the workflow, package version and associated test, and spec file related changes from main...


Optimization of rotated bounding box and ellipse shapes annotation

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Current Behaviour

At the moment you need to draw a box and after that rotate it using a point inside the box. Usually after rotation you need to adjust its size again. Even the process is very intuitive, it is not optimal for mass tagging.
Possible Solution

First of all I think we need to split bounding box icon on two ones: rotated and simple bounding boxes.
A simple bounding box should have ability to be drawn using 2 corners or 4 points. By default, a simple bounding box should be drawn by 2 corners (just as now). A rotated bounding box should be drawn by 4 points (or 4+?) only.
Because an ellipse is another representation of a rotated bounding box, it should have the same behaviors as a rotated bounding box.
For simple bounding boxes I will leave the rotation point. Thus it will be easy to transform a simple bounding box to a rotated one.

can you tell me how to rotate? really thanks!


browser.Browser.close()

Hi,
https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-close
How would you implement this function at the moment? I'd like to close the browser completely if that's possible?

HI @geekscrapy, I've updated the example code to show that this works - all devtools API functions are autogenerated from the protocol source.


Leverage trust domain in issuing certs; remove TD from identity

This PR finalizes the steps to allow for custom trust domains. It accomplishes this by:

Remove trust domain from service identity, since trust domain can now change, and we are decoupling identities from trust domain, see this doc for more info
Modify IssueCertificate to accept a CN prefix instead of a full CN, and apply the trust domain dynamically. However there are a few cases where a custom trust domain cannot be used (k8s webhooks are required to end in .svc). So we further modify the IssueCertificate method to accept Variadic args. This neatly fits with the Validation period which is only needed for control plane certs, and defaults to the cached validity duration (cached due to cert rotation).

So we add another variadic arg that signals that the provided prefix is actually the entire common name, and not to append the trust domain.
The remaining changes are simply plumbing around removing .cluster.local from service identities, and calls to IssueCertificate

Codecov Report

Merging #4782 (2334a98) into main (ae53c47) will decrease coverage by 0.17%.
The diff coverage is 57.08%.

:exclamation: Current head 2334a98 differs from pull request most recent head b72e729. Consider uploading reports for the commit b72e729 to get more accurate results

@@            Coverage Diff             @@
##             main    #4782      +/-   ##
==========================================
- Coverage   69.04%   68.87%   -0.18%
==========================================
  Files         225      224       -1
  Lines       16365    16388      +23
==========================================
- Hits        11300    11288      -12
- Misses       5013     5048      +35
  Partials       52       52

Flag
Coverage Δ

unittests
68.87% <57.08%> (-0.18%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

cmd/osm-controller/osm-controller.go
13.93% <0.00%> (ø)

pkg/certificate/types.go
100.00% <ø> (ø)

pkg/debugger/proxy.go
2.66% <0.00%> (-7.34%)
:arrow_down:

pkg/envoy/ads/jobs.go
0.00% <0.00%> (ø)

pkg/envoy/rds/response.go
82.85% <0.00%> (ø)

pkg/envoy/xdsutil.go
96.07% <ø> (+2.16%)
:arrow_up:

pkg/errcode/errcode.go
100.00% <ø> (ø)

pkg/k8s/mock_controller_generated.go
14.14% <0.00%> (-1.42%)
:arrow_down:

pkg/k8s/types.go
100.00% <ø> (ø)

pkg/workerpool/workerpool.go
100.00% <ø> (ø)

... and 31 more

Continue to review full report at Codecov.

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

Could you describe in the commit why the trust domain is being removed from the identity?

Could you describe in the commit why the trust domain is being removed from the identity?

done!

@steeling I can merge this once the failing lint and tests are fixed. Thanks for this change!


Gamepad

Ready to submit your project? Nice job! Hopefully you've read the submission guidelines. If not, make sure to read them first.
If you're unsure about the format, make sure to check out the Orpheuspad example and follow the format there.
If this PR isn't a submission, that's okay too! If there's anything about this PR template that seems confusing, let me know in #hackpad on the slack!

Great stuff! If you wanna make any more changes, create a new PR with the changes and DM me on slack @Ducc :) Get your hackpad here: https://forms.hackclub.com/hackpad


Remove link

I removed the link "http://www.vedovelli.com.br/screencasts/" because is not working
What does this PR do?
Remove Resource(s)
For resources
Description
Why is this valuable (or not)
How do we know it's really free?
For book lists, is it a book?
Checklist:

[x] Not a duplicate
[ ] Included author(s) if appropriate
[ ] Lists are in alphabetical order
[ ] Needed indications added (PDF, access notes, under construction)

Thanks!


Multi-frame chunk, script blocked in the activ frame

Hello,
I want to create a small script to export estimated coordinates from a multi-frame chunk using the function saveReference. So I created a loop as you can see in the following script. The problem is I only obtain the coordinates of the active frame. It create the right number of file but they all have the same coordinates of the frame that is open in Metashape.
I can find anything about that problem so I'll be glad if someone as an idea about this issue.
import Metashape as ms
import os
doc = ms.app.document
path="suivi_reperes/"
i=0
for frame in doc.chunks[5].frames: #I'm only interested in this chunk number 5
file_name=path+'reperes_t'+str(i)	frame.saveReference(file_name,PhotoScan.ReferenceFormatCSV,items=PhotoScan.ReferenceItemsMarkers,columns="n,[u|v|w],")
i+=1

Hi,
As you noted saveReference for markers exports coordinates from the active frame, this is design-restriction of current API implementation. But you can use simple workaround - make current frame active before calling saveReference:
import Metashape as ms
import os
doc = ms.app.document
path="suivi_reperes/"
i=0
chunk = doc.chunks[5] #I'm only interested in this chunk number 5
active_frame_before = chunk.frame
for frame in chunk.frames:
    file_name=path+'reperes_t'+str(i)
    chunk.setFrame(frame)
    frame.saveReference(file_name, PhotoScan.ReferenceFormatCSV, items=PhotoScan.ReferenceItemsMarkers, columns="n,[u|v|w],")
    i+=1
chunk.setFrame(active_frame_before) # returning active frame back

Please feel free to reopen issue if you still have the problem.


Input method issue

I'm chinese user and also a big fans of The Daodejing of Laozi.
Usually stay in Simple chinese Pinyin IME, When I call QS in non english IMS, QS can't get my chinese input correct, So before input,  I think QS should automatic change my IME to english.
Friends around me almost no demand in the QS to input Chinese characters if you add a switch to be perfect.
regards

still can't type in chinese characters.

That user and its home directory have already been created.

That wasn’t what the user was asking for, but there was a change submitted that should allow Chinese characters. We haven’t had time to look at it.

hope this issue will be solved soon

Let's me explain the problem with image:
when my ime is chinese Pinyin(most of chinese user use this ime as default)

when i launch QS and type "te", my screen like this

and then I hit "Enter" , QS will launch textedit app

so i suggest when launch quicksilver, QS should force switch my ime to english mode, or any other smoothly achieve


code slow startup

VSCode Version: Code - Insiders 1.11.0-insider (4db944bc08e34fb15c5805927d9cb67470776606, 2017-03-02T07:10:18.838Z)
OS Version: Windows_NT ia32 10.0.15031
CPUs: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz (4 x 3009)
Memory (System): 7.96GB (3.77GB free)
Memory (Process): 135.82MB working set (136.31MB peak, 107.75MB private, 33.59MB shared)
Load (avg): 0, 0, 0
VM: 0%
Initial Startup: yes
Screen Reader: no
Empty Workspace: no
Timings:

Component
Task
Time (ms)

main
start => app.isReady
38

main
app.isReady => window.loadUrl()
526

renderer
window.loadUrl() => begin to require(workbench.main.js)
641

renderer
require(workbench.main.js)
936

renderer
create extension host => extensions onReady()
1667

renderer
restore viewlet
0

renderer
restore editor view state
670

renderer
overall workbench load
2135

main + renderer
start => extensions ready
3985

main + renderer
start => workbench ready
4300

:warning: Make sure to attach these files: :warning:
-C:\Users\olebg\ed71_main.cpuprofile.txt
-C:\Users\olebg\ed71_renderer.cpuprofile.txt

@olebg You need to attach the files

C:\Users\olebg\ed71_main.cpuprofile.txt
C:\Users\olebg\ed71_renderer.cpuprofile.txt

I don't have those files. Instead I have ed71_main.cpuprofile.txt and ed71_renderer.cpuprofile.txt

ed71_main.cpuprofile.txt
ed71_renderer.cpuprofile.txt

Thanks for the profiles, we have found #22086  and #21963. Fixes for both should land in insiders very soon. Happy Coding!

Thank you. 😊


Use latest pre-commit setup

Reproduce

pre-commit run -a

I Expect
Success
Instead
Failure

pre-commit run -a works on repository


docs: include usage instructions

Hey, after I figured my issue out, I thought some usage instructions would be nice

Before you merge, give me a sec to clean up the commit log. I also added a desktop entry, but forgot to make a branch

Alright, that should be nice and tidy


Doesn't work

By default and with usage
const enableScenarioCalling = require('reuse-cucumber-scenarios');
enableScenarioCalling();
gives error
TypeError: Cannot read property 'name' of undefined
GWT.js:29:52)
    {
      var scenarioTag = sHelper.firstScenarioTag(tags);    // select first tag in the last line
      OtherWorld.setCurrentScenarioTag(scenarioTag.name);  // set current scenario Tag in CustomWorld
    }

My first guess is what version of cucumber-js this was written against - cucumber-js has changed significantly since when this package was last published (3 years ago)


Listener not found warning

Using Leaflet.Sleep with the latest leaflet.js (1.8.0). After I move the mouse over the map, all browsers throws a warning Listener not found  in Events.js:180:10.
The Events.js is not physically present in my file structure, seems it is generated by leaflet itself and the console shows it's path as src/core/Events.js.
There might be some conflict between Leaflet.Sleep and the newest leaflet, because with older leaflet.js there is no warning.
Also when I remove Leaflet.Sleep from my webpage and use only leaflet.js, the warning is gone, so it is definitely caused by Leaflet.Sleep.

Leaflet.Sleep has many usages of off() after once(), which will always throw listener not found because once has already removed the listener. Can you please take a look?


Resolved problem about initial 0 on percentage and negative when value is 0

Issue #52 and #28

Please separate your PR in two: one for each bug.
For the first bug, write a test case (percentage.test.js).
For the second bug, you need to change the e2e test (number.spec.js) to describe this new behaviour.