sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Docs for how to use the dev proxying feature with the local network feature, if possible
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

For my web app I use `http-proxy-middleware` as mentioned in [the CRA docs](https://create-react-app.dev/docs/proxying-api-requests-in-development/) in a `setupProxy.js` file to proxy API requests to a locally running API server like so:

```js
  app.use(proxy("/api", { target: "http://localhost:8000/" }));
```

However when running `create-react-app` it also offers that you can access your site on your local network via an IP address, for example to test the experience on a mobile device. This feature doesn't seem to be compatible with the proxying approach as I'm using above, which I think is because that `localhost` URL isn't being rewritten to the IP address either (and i'm not sure if a different port will be forwarded as well).

[Spectrum thread for my use case here](https://spectrum.chat/create-react-app/general/proxying-requests-to-api-over-local-network-on-dev~0d995776-e474-4d7a-a09a-9867c58f40b8).

### Describe the solution you'd like

If this is possible I would love for the proxying docs to explain how to make these two features work together in harmony.

### Describe alternatives you've considered

I tried messing around with settings passed to `http-proxy-middleware`, but I'm having trouble coming up with something that works.

### Additional context

Thanks for the great project and hope this helps in making it even greater!
Repository: pytorch
Issue: Segfault when using misaligned data pointer (from joblib)
Labels: module: crash,triaged,module: numpy

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
Segmentation fault on read-only numpy array.
Might be related to #33001.

## To Reproduce

Steps to reproduce the behavior:
```py
import torch
import numpy as np

def create_memmap_backed_data(data):
    import os.path
    import tempfile
    import joblib
    temp_folder = tempfile.mkdtemp(prefix='testing_')
    filename = os.path.join(temp_folder, 'data.pkl')
    joblib.dump(data, filename)
    return joblib.load(filename, mmap_mode='r')

y = np.random.randn(20, 1)
y = create_memmap_backed_data(y)

y[:, [0]]  # works
np.asarray(y)[:, [0]]  # works
torch.as_tensor(y)[:, 0]  # works
torch.as_tensor(y)[0, [0]]  # works
torch.as_tensor(y)[[0], :]  # works

torch.as_tensor(y)[:, [0]]  # segmentation fault
```

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->
No segmentation fault

## Environment
```
PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: 10.0.130

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: TITAN X (Pascal)
Nvidia driver version: 410.129
cuDNN version: /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7

Versions of relevant libraries:
[pip3] numpy==1.16.4
[pip3] torch==1.2.0
[pip3] torchvision==0.3.0
[conda] _pytorch_select           0.2                       gpu_0  
[conda] blas                      1.0                         mkl  
[conda] mkl                       2019.4                      243  
[conda] mkl-regression            0.1                       dev_0    <develop>
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.12           py37ha843d7b_0  
[conda] mkl_random                1.0.2            py37hd81dba3_0  
[conda] pytorch                   1.2.0           cuda100py37h938c94c_0  
[conda] torchvision               0.3.0           py37_cu10.0.130_1    pytorch
```
## Additional context
Repository: youtube-dl
Issue: site add request - nickelodeon.dk
Labels: site-support-request

## Checklist

- [ x] I'm reporting a new site support request
- [ x] I've verified that I'm running youtube-dl version **2020.03.08**

```
$ youtube-dl --version
2020.03.08
```
- [ x] I've checked that all provided URLs are alive and playable in a browser
- [ x] I've checked that none of provided URLs violate any copyrights
- [ x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

https://www.nickelodeon.dk/episodes/pb4q9b/lego-r-city-adventures-buster-shirley-staedare-saeson-1
https://www.nickelodeon.dk/episodes/hsc2x0/lego-r-city-adventures-rovere-og-lover-billen-billy-saeson-1-af-1
https://www.nickelodeon.dk/episodes/08q2ru/lego-r-city-adventures-hele-byens-dormand-vilde-fendrich-saeson-1-af-4
https://www.nickelodeon.dk/episodes/mdpdb8/lego-r-city-adventures-poppy-starr-skumle-ting-saeson-1-af-3
https://www.nickelodeon.dk/episodes/o9zfoh/lego-r-city-adventures-actionjul-forbryderhuler-saeson-1
https://www.nickelodeon.dk/episodes/o27csi/lego-r-city-adventures-lille-carol-sidste-mand-i-lobet-saeson-1-af-1


## Description

I would like to request that www.nickelodeon.dk will be added to youtube-dl
Repository: flutter
Issue: CurvedGradient non-linear gradient colors
Labels: c: new feature,framework,P3,team-framework,triaged-framework

## Use case

I would like to render a non-linear gradient of colors in a rectangle.

## Proposal

Support a [Curves](https://api.flutter.dev/flutter/animation/Curves-class.html) parameter  to a `CurvedGradient` class, similar to [LinearGradient](https://api.flutter.dev/flutter/painting/LinearGradient-class.html), which will interpolate a non-linear gradient of colors.
Repository: flutter
Issue: Support for HLS on desktop browsers for video_player_web
Labels: c: new feature,platform-web,p: video_player,package,P3,team-web,triaged-web

## Use case
I have a HLS stream and I want to built an app which works on both mobile and web.

Currently there is no browser support for HLS on desktop browsers. (Except legacy Edge 🙈)
https://caniuse.com/#feat=http-live-streaming

## Proposal
Is there a possibility to include HLS support as part of the package?

In Javascript https://github.com/video-dev/hls.js/ is used a lot to add the compatibility.
Repository: godot
Issue: Video doesnt play correctly after export to android
Labels: platform:android,topic:core

**Godot version: Godot 3.2.stable.official**

**OS/device including version: Linux mint export to android**

**Issue description: video player getting slower and slower after export to android**

**Steps to reproduce: create in videoplayer node and export it to android**

**Minimal reproduction project: the video can play correctly like when it play on godot engine simulator**

i cant upload file so i just drop link of my project here

https://drive.google.com/open?id=1MB-qNR-1sActOVr5SzNovXjES96HnQ-v

this is a simple project, it contains just video playing in scene and the button on the center of scene is for reload the current scene

the original Video by Sean JOHNSTON from Pexels

the link contain 2 zip file: project, and the apk.

im not sure what is the problem, i just trying export the video with some custom setting
Repository: rust
Issue: Idea: guaranteed-zero padding for niches
Labels: C-enhancement,T-compiler,A-layout,C-optimization

As suggested [here](https://github.com/rust-lang/unsafe-code-guidelines/issues/174#issuecomment-599160855), one option to gain more layout optimizations would be (either for all `repr(Rust)` types or with per-type opt-in) to use a different kind of padding.

Right now, padding bytes may contain arbitrary data, and can be omitted when copying as they are "unstable" in a typed copy. Instead, we could also imagine a kind of padding ("zero-padding") that is *guaranteed to be zero*. This has the disadvantage that padding bytes need to be initialized on struct creation and copied when the struct is copied, but it has the advantage that padding bytes can become "niches" for layout optimizations.

LLVM's padding is of the "unstable" kind, but we could just add explicit fields ourselves (fields that are guaranteed to be zero) when translating zero-padded types to LLVM.

Cc @eddyb
Repository: flutter
Issue: shlock .upgrade_lock fails on exFAT file system: shlock not supported
Labels: tool,platform-mac,d: api docs,a: error message,P3,team-tool,triaged-tool

On the mac, this problem bothered me for a day, and finally I found that when my hard disk is formatted as exfat, the error occurs when I execute flutter, so I can only format the hard disk to other formats, and by the way Those who run into this issue need to be alert.
Repository: flutter
Issue: [video_player] Allow creating a video player controller from bytes stream (e.g., Uint8List)
Labels: c: new feature,p: video_player,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

Can someone play videos from Memory : something Like :  `VideoPlayerController.memory(Unit8List)`.
There are already the features `.file()` , `.asset()` , `.network()` . Maybe you can add the `.memory()` constructor .
Repository: pytorch
Issue: Documentation doesn't cover MWE using launch.py script
Labels: todo,oncall: distributed,triaged

## 📚 Documentation

Documentation related to `torch.nn.parallel.DistributedDataParallel()` don't include any examples of how to properly use it in combination with `launch.py`

The screenshot below from `launch.py` shows one can call their script e.g. `main.py` using `launch.py` but gives no proper example on how to set up `main.py` in order to work correctly with `launch.py`

In order not to repeat myself there's a longer discussion in the [forums](https://discuss.pytorch.org/t/distributed-parallel-one-machine-multi-gpu-multi-process/72177)

Also the claim that in general `torch.nn.parallel.DistributedDataParallel()` is faster than `torch.nn.parallel.DataParallel()`, is not completely true, at least not in my experiments on a single node multi-gpu (i.e. 2 gpus).

This needs verification.

If that's the case then docs should reflect that and state that `DistributedDataParallel` is faster only when you have n-nodes or n-gpus?

![image](https://user-images.githubusercontent.com/2902390/77232091-e6394200-6b96-11ea-9a67-97614701766d.png)



cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
Repository: vscode
Issue: Make extension defined task types work in code-workspace files
Labels: feature-request,tasks

- VSCode Version: 1.43.1
- OS Version: Windows 10

Steps to Reproduce:

1. Create new workspace
2. Add script in `scripts` of `package.json` as follow: `"buildfordebug": "tsc --project ./tsconfig.json --outDir ./out",`
3. Create default `tsconfig.json`
4. Setup `launch` in `workspace` with following configurations
```
	"launch": {
		"version": "0.2.0",
		"configurations": [
			{
				"type": "node",
				"request": "launch",
				"name": "Launch Program",
				"skipFiles": [
					"<node_internals>/**"
				],
				"program": "${workspaceFolder}/index.ts",
				"preLaunchTask": "buildfordebug",
				"outFiles": ["${workspaceFolder}/out/**/*.js"]
			}
		]
	}
```
5. Setup `tasks` in `workspace` with following configurations
```
	"tasks": {
		"version": "2.0.0",
		"tasks": [
			{
				"label": "buildfordebug",
				"group": "build",
				"type": "npm",
				"script": "buildfordebug",
				"presentation": {
					"reveal": "silent",
					"panel": "new"
				},
				"problemMatcher": ["$tsc"]
			}
		]
	}
```
5. Launch debug by pressing F5

For easy demo, please clone it from [https://github.com/mannok/WorkspaceLaunchTaskDemo](https://github.com/mannok/WorkspaceLaunchTaskDemo)
p.s. 1. Clone it   2. `npm install`   3. Press F5

### **Error is then prompted as: Could not find the task 'buildfordebug'**

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: flutter
Issue: After editing TextField, app auto focuses on back button; instead of next available a11y element on iOS
Labels: a: text input,platform-ios,framework,f: material design,a: accessibility,customer: money (g3),has reproducible steps,found in release: 3.7,team-design,triaged-design

See internal b/151685565.

Steps to Reproduce:

- Construct a page with a TextField and a Button
```
    const Text('Testing TextField A11y'),
    TextField(controller: TextEditingController()),
    FilledButton(onPressed: () {  },child: const Text('button'),),
```

- Double-Tap TextField to edit it
- Then focus on done key on the keyboard, and double tap
The keyboard will dismiss, then it will focus on the back button by default, not the next button.
Repository: rust
Issue: Place &str in specific linker sections
Labels: A-linkage,T-lang,C-feature-request

In the usecase I am working on I want to store the string from `core::any::type_name` in a specific linker section to create an instrumentation tool for Embedded Rust micro controllers.
If the string is placed in `.rodata` it does not affect the tool, but when having only a few kB of memory storing these strings in the actual micro controller is a huge price to pay.
Rather only the generated ELF file, which the host can read, should have this info (i.e. in an `INFO` marked section).

As it is today one can place variables in specific sections as:

```rust
#[link_section = ".my_section"]
static S: u32 = 2; 
```

However, this is not possible for `&str`, the following:

```rust
#[link_section = ".my_section"]
static S: &str = "test"; 
```

Will place the string itself in `.rodata`, while placing the pointer and length in the section `.my_section`. 
The recommended solution is to place the string in an array using something similar to the following:

```rust
union Transmute<T: Copy, U: Copy> {
    from: T,
    to: U,
}

const TN: &'static str = "my string";

#[link_section = ".my_section"]
static S: [u8; TN.as_bytes().len()] = unsafe {
    *Transmute::<*const [u8; TN.as_bytes().len()], &[u8; TN.as_bytes().len()]> {
        from: TN.as_ptr() as *const [u8; TN.as_bytes().len()],
    }
    .to
};
```

However this does not work on strings given from (non-const-fn) functions such as `core::any::type_name`, and the function take no arguments so the string must be coming from a literal somewhere.
Is there a way to make the strings from `core::any::type_name` (or similar functions) be placed in a specific linker section?
As the string is being placed in `.rodata` something is controlling this placement, I simply wish to change this.

The method stated above works in nightly, as one can use the `#![feature(const_type_name)]` feature to get the string as a const-fn. However I am unable to reproduce this in any way using stable rust.
Example playground of the nightly version: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d5f5c7fbe90194640bd1918cc068c2db
Repository: opencv
Issue: Need both Real & Imaginary values as pairs from getGaborKernel() function
Labels: feature,category: imgproc

##### System information (version)

- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019


##### Detailed description

I am trying to use the Gabor Filter on some images of paper fibres, and ultimately generate a 2 bit gray code, based on the coefficients of the complex number so resulted from the filter. However, the opencv implementation of the Gabor Kernel only returns the real part of the kernel. I know there is a way to get the imaginary part of the kernel by adjusting the value of phi / psi by Pi/2, but that gets rid of the sign of the imaginary values.

Is there any way for the function to return both real and imaginary parts of the kernel? i.e. a complex number for every pixel.

##### Issue submission checklist
 - [x] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
Repository: rust
Issue: Weird error for mutable references in a loop
Labels: C-enhancement,A-diagnostics,T-compiler,fixed-by-polonius

I tried this code:

```rust
fn noop(v: &mut i32) -> Option<&mut i32> {
    Some(v)
}

pub fn f(v: &mut Vec<i32>) -> Option<&mut i32> {
    for item in v {
        if let Some(res) = noop(item) {
            return Some(res);
        }
        let _ = &*item;
    }
    None
}
```

I expected to see this happen: code successfully compiles because mutable reference is used only temporarily in an `if` block.

Instead, this happened: Rust fails to compile with an error.
```
error[E0502]: cannot borrow `*item` as immutable because it is also borrowed as mutable
  --> <source>:10:17
   |
5  | pub fn f(v: &mut Vec<i32>) -> Option<&mut i32> {
   |             - let's call the lifetime of this reference `'1`
6  |     for item in v {
7  |         if let Some(res) = noop(item) {
   |                                 ---- mutable borrow occurs here
8  |             return Some(res);
   |                    --------- returning this value requires that `*item` is borrowed for `'1`
9  |         }
10 |         let _ = &*item;
   |                 ^^^^^^ immutable borrow occurs here
```

Without `noop` it also fails, although with slightly different error:

```rust
pub fn f(v: &mut Vec<i32>) -> Option<&mut i32> {
    for item in v {
        if let Some(res) = Some(item) {
            return Some(res);
        }
        let _ = &*item;
    }
    None
}
```

Error:

```
error[E0382]: borrow of moved value: `item`
 --> <source>:6:17
  |
2 |     for item in v {
  |         ---- move occurs because `item` has type `&mut i32`, which does not implement the `Copy` trait
3 |         if let Some(res) = Some(item) {
  |                                 ---- value moved here
...
6 |         let _ = &*item;
  |                 ^^^^^^ value borrowed here after move
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.42.0 (b8cedc004 2020-03-09)
binary: rustc
commit-hash: b8cedc00407a4c56a3bda1ed605c6fc166655447
commit-date: 2020-03-09
host: x86_64-unknown-linux-gnu
release: 1.42.0
LLVM version: 9.0
Compiler returned: 0
```
(although reproduces in all Rust versions I could find)
Repository: ant-design
Issue: slider 在ie11 下 iframe 包裹时按住鼠标拖动到iframe外放开鼠标，再移入时还是会触发拖动进度
Labels: Internet Explorer,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://codepen.io/mraiguo/pen/xxGaEVy?editors=0010](https://codepen.io/mraiguo/pen/xxGaEVy?editors=0010)

### Steps to reproduce
1. 按住slider的点拖动
2. 不放开鼠标左键拖动到iframe外，然后放开左键
3. 鼠标移入iframe内刚刚拖动的slider上，发现进度跟着移动了，chrome无此现象

### What is expected?
与chrome表现一致

### What is actually happening?
鼠标在iframe外mouseup，不触发rc-slider内部的onend方法

| Environment | Info |
|---|---|
| antd | 4.0.3 |
| React | react16 |
| System | win10 |
| Browser | ie11 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Running the project on a dual monitors incorrectly displays project.
Labels: bug,platform:macos,topic:porting

**Godot version:** v3.2.1.stable.official

**OS/device including version:** MacOS Catalina 10.15.3

**Issue description:**

The project is not displayed correctly in a multi-monitor setup where the Editor and Project start on different monitors.

I put the following as a debug statement in an element's `_draw` function:

```
print(OS.get_window_size())
```

The project starts on Monitor 1 and the output is:

```
(1600, 1200)
```

<img width="912" alt="Screen Shot 2020-03-22 at 3 15 54 AM" src="https://user-images.githubusercontent.com/171007/77244476-80c37080-6beb-11ea-8e39-5f4dc436d932.png">

Once I drag this window to Monitor 2 the following gets printed:

```
(800, 600)
```

![Screen Shot 2020-03-22 at 3 16 57 AM](https://user-images.githubusercontent.com/171007/77244492-a3558980-6beb-11ea-83ff-e00a4de74bb7.png)

Dragging this same window back to Monitor 1 prints the same as the first time `(1600, 1200)`, but now it displays the control:

<img width="912" alt="Screen Shot 2020-03-22 at 3 18 05 AM" src="https://user-images.githubusercontent.com/171007/77244507-ce3fdd80-6beb-11ea-8ae5-1dd2e6b27a24.png">

**Steps to reproduce:**

Hardware setup:
- Monitor 1: Macbook Pro.
- Monitor 2: External monitor.

1. Start Godot, put it on Monitor 2.
2. Editor -> Settings -> "Run" -> "Window Placement"; set "Screen" as "Monitor 1".
3. Play.
Repository: rust
Issue: HRTBs: "implementation is not general enough", but it is
Labels: A-lifetimes,A-trait-system,A-closures,T-lang,T-compiler,C-bug,A-higher-ranked

[Playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=dd8b42df59f46cea2ed646339ad1d024)
```rust
trait MyFn<'a> {}
impl<'a, F> MyFn<'a> for F where
    F: FnOnce(&'a i32) -> &'a i32 {}
    
fn foo<F>(f: F) where F: for<'a> MyFn<'a> {}
// This works:
// fn foo<F>(f: F) where F: for<'a> FnOnce(&'a i32) -> &'a i32 {}

fn main() {
    foo(|x: &i32| -> &i32 { x });
}
```
produces:
```
error: implementation of `MyFn` is not general enough
  --> src/main.rs:10:5
   |
1  | trait MyFn<'a> {}
   | ----------------- trait `MyFn` defined here
...
10 |     foo(|x: &i32| -> &i32 { x });
   |     ^^^ implementation of `MyFn` is not general enough
   |
   = note: `MyFn<'1>` would have to be implemented for the type `[closure@src/main.rs:10:9: 10:32]`, for any lifetime `'1`...
   = note: ...but `MyFn<'_>` is actually implemented for the type `[closure@src/main.rs:10:9: 10:32]`, for some specific lifetime `'2`
```
But clearly it actually is implemented for any lifetime.
Repository: flutter
Issue: Enable "hot reload" (not just "hot restart") for Flutter Web
Labels: c: new feature,dependency: dart,t: hot reload,customer: crowd,a: debugging,platform-web,c: proposal,P2,c: parity,customer: chilli,team-web,triaged-web

Latest update: https://github.com/flutter/flutter/issues/53041#issuecomment-1367615679

----

Hello! 
Trying the web development currently in beta version. actually quite satisfied as the browser reloads very quick. Only annoying thing is that the hot restart doesn't work properly, imho.
Please check on this.
Best Regards,
Jakob
P.S.: Hope this is enough information - First time opening an issue here :)

# Steps to Reproduce

1. Setup flutter project for web development
2. Run `flutter run -d Chrome`
3. Navigate to a view != main view
4. hot restart (small 'r') without browser refresh (like it should do with capital 'R')

**Expected results:** 
Browser should reload, but stay on the same view

**Actual results:** 
Browser fully restarts the app --> Again at the main view