"failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error" unless running with sudo

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ClearLinux 31030
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:  -
TensorFlow installed from (source or binary): binary
TensorFlow version: tensorflow-gpu 1.14.0
Python version: 3.7.4
Installed using virtualenv? pip? conda?: pyenv's pip
Bazel version (if compiling from source): -
GCC/Compiler version (if compiling from source): -
CUDA/cuDNN version: cuda_10.0.130_410.48_linux, cudnn-10.0-linux-x64-v<IP_ADDRESS>
GPU model and memory: Geforce RTX 2060, 6GB RAM

Describe the problem
The error "failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error" is thrown when initializing tensorflow-gpu, falling back to CPU instead of GPU.
When running python with sudo, GPU is detected but libraries cannot be opened. A subsequent run without sudo works, enabling GPU being used. I don't understand why running with sudo is needed to enable future calls without sudo work.
The specific output is:
$ python -c "import tensorflow as tf; tf.Session(config=tf.ConfigProto(log_device_placement=True))"
2019-09-18 17:49:26.342297: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-09-18 17:49:26.364789: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-09-18 17:49:26.365673: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b4f7008c70 executing computations on platform Host. Devices:
2019-09-18 17:49:26.365685: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): <undefined>, <undefined>
2019-09-18 17:49:26.387440: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1
2019-09-18 17:49:26.397897: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
2019-09-18 17:49:26.397918: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: linux
2019-09-18 17:49:26.397923: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: linux
2019-09-18 17:49:26.397950: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: 430.50.0
2019-09-18 17:49:26.397965: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 430.50.0
2019-09-18 17:49:26.397969: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:310] kernel version seems to match DSO: 430.50.0
2019-09-18 17:49:26.399634: I tensorflow/core/common_runtime/direct_session.cc:296] Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device
Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device

$ sudo python -c "import tensorflow as tf; tf.Session(config=tf.ConfigProto(log_device_placement=True))"
2019-09-18 17:49:33.476640: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-09-18 17:49:33.492804: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-09-18 17:49:33.493345: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b8b43539a0 executing computations on platform Host. Devices:
2019-09-18 17:49:33.493356: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): <undefined>, <undefined>
2019-09-18 17:49:33.494037: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1
2019-09-18 17:49:33.525519: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:33.525827: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties:
name: GeForce RTX 2060 major: 7 minor: 5 memoryClockRate(GHz): 1.755
pciBusID: 0000:01:00.0
2019-09-18 17:49:33.525900: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.525942: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.525980: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.526017: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcurand.so.10.0'; dlerror: libcurand.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.526055: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcusolver.so.10.0'; dlerror: libcusolver.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.526092: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcusparse.so.10.0'; dlerror: libcusparse.so.10.0: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.526130: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory
2019-09-18 17:49:33.526135: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1663] Cannot dlopen some GPU libraries. Skipping registering GPU devices...
2019-09-18 17:49:33.614070: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-09-18 17:49:33.614090: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]      0
2019-09-18 17:49:33.614095: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0:   N
2019-09-18 17:49:33.615437: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:33.615752: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b8b71df500 executing computations on platform CUDA. Devices:
2019-09-18 17:49:33.615761: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): GeForce RTX 2060, Compute Capability 7.5
2019-09-18 17:49:33.616523: I tensorflow/core/common_runtime/direct_session.cc:296] Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device
/job:localhost/replica:0/task:0/device:XLA_GPU:0 -> device: XLA_GPU device
Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device
/job:localhost/replica:0/task:0/device:XLA_GPU:0 -> device: XLA_GPU device

$ python -c "import tensorflow as tf; tf.Session(config=tf.ConfigProto(log_device_placement=True))"
2019-09-18 17:49:38.343247: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-09-18 17:49:38.359840: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-09-18 17:49:38.360790: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55d522b77c70 executing computations on platform Host. Devices:
2019-09-18 17:49:38.360803: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): <undefined>, <undefined>
2019-09-18 17:49:38.361478: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1
2019-09-18 17:49:38.377924: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.378224: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties:
name: GeForce RTX 2060 major: 7 minor: 5 memoryClockRate(GHz): 1.755
pciBusID: 0000:01:00.0
2019-09-18 17:49:38.382955: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0
2019-09-18 17:49:38.426461: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0
2019-09-18 17:49:38.452107: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10.0
2019-09-18 17:49:38.468904: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10.0
2019-09-18 17:49:38.517258: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10.0
2019-09-18 17:49:38.545852: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10.0
2019-09-18 17:49:38.660617: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7
2019-09-18 17:49:38.660684: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.661018: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.661283: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0
2019-09-18 17:49:38.661304: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0
2019-09-18 17:49:38.727136: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-09-18 17:49:38.727157: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]      0
2019-09-18 17:49:38.727164: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0:   N
2019-09-18 17:49:38.727262: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.727564: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.727848: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-09-18 17:49:38.728115: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5451 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2060, pci bus id: 0000:01:00.0, compute capability: 7.5)
2019-09-18 17:49:38.729363: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55d525ddbe50 executing computations on platform CUDA. Devices:
2019-09-18 17:49:38.729373: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): GeForce RTX 2060, Compute Capability 7.5
2019-09-18 17:49:38.730199: I tensorflow/core/common_runtime/direct_session.cc:296] Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce RTX 2060, pci bus id: 0000:01:00.0, compute capability: 7.5
/job:localhost/replica:0/task:0/device:XLA_GPU:0 -> device: XLA_GPU device
Device mapping:
/job:localhost/replica:0/task:0/device:XLA_CPU:0 -> device: XLA_CPU device
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce RTX 2060, pci bus id: 0000:01:00.0, compute capability: 7.5
/job:localhost/replica:0/task:0/device:XLA_GPU:0 -> device: XLA_GPU device

Any other info / logs
CUDA and Nvidia drivers installed at /opt following ClearLinux guide.
$ echo $LD_LIBRARY_PATH
/usr/local/cuda/lib64:

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

$ nvidia-smi
Wed Sep 18 17:58:36 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.50       Driver Version: 430.50       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2060    Off  | 00000000:01:00.0  On |                  N/A |
|  0%   50C    P8     9W / 170W |    152MiB /  5931MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       651      G   /usr/bin/X                                    39MiB |
|    0       789      G   /usr/bin/gnome-shell                         111MiB |
+-----------------------------------------------------------------------------+

@josei ,
Could you check this issue which is similar to your issue. If those solutions doesn't work, could you uninstall and reinstall CUDA and cuDNN? Please let us know how it progresses. Also, try to uninstall and reinstall tensorflow-gpu and try following the instructions from TensorFlow website. Thanks!

Yes, things I've already tried are:

Install nvidia-modprobe.
Uninstall and install CUDA and cuDNN.
Uninstall and install tensorflow-gpu.
Uninstall and install different Nvidia driver versions.
I can't follow TensorFlow instructions right away, as they're not focussed on ClearLinux distribution. Probably I'd switch distribution, as this could be a ClearLinux issue unless someone knows how to narrow it down.

@josei Can you try TF1.15.0rc1 and let us know if the issue persists or not. Thanks!

See https://devtalk.nvidia.com/default/topic/749939/cuda-is-not-active-unless-i-run-it-with-sudo-privillages-/

@mihaimaruseac Thanks, I'll research in that direction and report here

The problem was that only some /dev/nvidia* files are present before running Python with sudo:
$ ls /dev/nvidia*
/dev/nvidia0  /dev/nvidiactl  /dev/nvidia-modeset

After running the Device Node Verification script, the /dev/nvidia-uvm file gets added, enabling Tensorflow to work on GPU:
$ ls /dev/nvidia*
/dev/nvidia0  /dev/nvidiactl  /dev/nvidia-modeset  /dev/nvidia-uvm

Just expanding on @josei suggestion.. run the following:
cd /dev
sudo nano script.sh (copy/write contents of "Device Node Verification Script")
sudo chmod 777 script.sh
sudo ./script.sh


Creating a data factory with Azure CLI triggers error

This was my initial command:
az datafactory factory create \
        --name data-factory-cicd \
        --resource-group $rgName

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az datafactory factory create Extension Name: datafactory. Version: 0.1.0.
Errors:
'expiresIn'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
...
    result = func(*args, **kwargs)
core/pipeline/policies/_authentication.py, ln 93, in on_request
    self._token = self._credential.get_token(*self._scopes)
azure/cli/core/adal_authentication.py, ln 64, in get_token
    return AccessToken(token, int(full_token['expiresIn'] + time.time()))
KeyError: 'expiresIn'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az datafactory factory create --name {} --resource-group {}

Expected Behavior
Environment Summary
Linux-4.15.0-1091-azure-x86_64-with-debian-stretch-sid
Python 3.6.10
Installer: DEB

azure-cli 2.8.0 *

Extensions:
databricks 0.4.0
datafactory 0.1.0

Additional Context

datafactory

Duplicate of #1900. A fix is released, please try with the latest azure-cli.


Question/Request

Would it be possible with Chromium to use the contextual menu to save a  tab directly in one of the groups ?
Ref: https://developer.chrome.com/apps/contextMenus
Regards :octocat:

From where would you like to see the context menu ? Could you explain a bit more the use case ?

From any tab I had when "Right clicking" in the page.
Like this if it is possible:

A use case would be I find an interesting page about a project I'm working on and I have already a group of tabs created for this topic so I could just use the context menu to save the current page in the group.
Regards :octocat:

this, please! it would really help for easier management

I too, vote for this! :)

Thanks a lot 👍👍👍
It will save me lot of manipulations to add tabs to the groups when I'm working 😊
Have a nice week-end ! :octocat:


Cannot Authorize Google Drive

Hello,
I just installed the extension. However, when I click on the google drive option under keepass databases it opens a google login page. When I login it just brings me to a blank white page "vivaldi://chrome-signin/?access_point=6&reason=0". There is no dialog tell me to please press "Accept". Any help would be greatly appreciated - Thank You

Vivaldi?

Closing - Vivaldi is not supported.


Update the Collection.filter type to be similar to Array.filter

Update the Collection.filter type to be similar to Array.filter.
By adding "value is S" to the return value so that it is possible to change the type after filtering
The current state of the type Collection.filter: filter(filter: (x: T) => boolean): Collection<T, TKey>;
Desired state of type Collection.filter: filter<S extends T>(filter: (value: T) => value is S): Collection<S, TKey>;

I created a pull request to solve this problem: https://github.com/dexie/Dexie.js/pull/1658

Thanks, this sounds logical and I wish it worked but I can't see the change make any difference in practice. As far as I know, not even Array.prototype.filter() can properly filter out by inferring the filter function to a return value that extends T but is more precise.
I would love to see this work for both Array.filter and Collection.filter():
type Thing = Foo | Bar;

interface Bar {
   type: "bar"
   barProp: string;
}

interface Foo {
   type: "foo";
   fooProp: number;
}

const a: Thing[] = [{
  type: "foo",
  fooProp: 1
}, {
  type: "bar",
  parProp: "hey!"
}];

a.filter(x => x.type === "foo")[0].fooProp; // Compile error: Property 'fooProp' does not exist on type Thing;

I still get error in standard typescript Array.filter (see above) but I wish it would work.
Do you have an example code snipped that could show how this would work? I agree with the code but don't find it work as expected due to some typescript limitation.

If the filter function is passed a predicate of the following form: (value: T): value is S => return boolean
Then at the output we get a filtered type S
In the case shown below, the Animal type becomes the Dog type:
interface Animal {
  name: string;
  age: number;
}

interface Dog extends Animal {
  woof: () => void;
}

function isDog(animal: Animal): animal is Dog {
  return animal.hasOwnProperty("woof");
}

function woofIfDog(animals: Animal[]) {
  const dogs: Dog[] = animals.filter(isDog);
  dogs.forEach((dog: Dog) => dog.woof());
}

const animalsArray = [
  { name: "Fido", age: 4, woof: () => console.log("woof") },
  { name: "Whiskers", age: 15, meow: () => console.log("meow") },
];

woofIfDog(animalsArray);

To make it work in your example, you need to change the filter call like this:
function isFoo(x: Thing): x is Foo {
  return x.type === "foo";
}

a.filter(isFoo)[0].fooProp;

Nice that it can be achieved, though with explicit is declaration. And of course worth it to merge this PR!


[explore] datapanel search: remove search input do not trigger new search

How to reproduce the bug

Go to  explore view,
type in some long text in the search input box, you will see matched metrics and columns,
remove a few words in the search input box, you should see more matched metrics and columns
but there is no new search action triggered.
Note: in my screenshot, some very long metrics name got truncated. Please add tooltip to display full name.

Environment
latest master
cc @junlincc @zuzana-vej

thanks for testing our new feature extensively and keeping the quality bar high for Superset @graceguo-supercat 🙏
Two issues here

Deleting text to trigger new search action - P1
Display super long column name - Our current solution is to implement resizable data panel. tooltip will not be ideal for UI/UX, as it will be added to all columns names and metrics. We should get to resizable in a couple weeks. hope that's not a deal breaker for you.  @graceguo-supercat

thanks for testing our new feature extensively and keeping the quality bar high for Superset @graceguo-supercat 🙏
Two issues here

Deleting text to trigger new search action - P1
Display super long column name - Our current solution is to implement resizable data panel. tooltip will not be ideal for UI/UX, as it will be added to all columns names and metrics. We should get to resizable in a couple weeks. hope that's not a deal breaker for you.  @graceguo-supercat

@pkdotson Please take this one(Deleting text to trigger new search action), along with https://github.com/apache/superset/issues/12299 and https://github.com/apache/superset/issues/12233
you have the most knowledge in this area. 🙏
pls let me know

@pkdotson Please take this one(Deleting text to trigger new search action), along with https://github.com/apache/superset/issues/12299 and https://github.com/apache/superset/issues/12233
you have the most knowledge in this area. 🙏
pls let me know

resizable is good improvement. when there is a lot of long text, user want to resize wider. when the current dataset is small, user may want to keep it narrower.
but even when user set datapanel narrow, user should still be able to read full name by tooltip.

resizable is good improvement. when there is a lot of long text, user want to resize wider. when the current dataset is small, user may want to keep it narrower.
but even when user set datapanel narrow, user should still be able to read full name by tooltip.

We don't have a solution for showing tooltip only on the ones w titles that can not be fully displayed. This project's on the Q1 roadmap. I am afraid that adding tooltip on all columns and metrics despite their length isn't an optimized solution visually.
Column titles were truncated. Only a limited number of columns and metrics were displayed in the previous versions, which means this feature is already a huge step forward in terms of the information's visibility.
I understand your request, and we are committed to improving. Pls allow some time for research/design/technical discussion to happen on this one.
@mihir174
Old:

We don't have a solution for showing tooltip only on the ones w titles that can not be fully displayed. This project's on the Q1 roadmap. I am afraid that adding tooltip on all columns and metrics despite their length isn't an optimized solution visually.
Column titles were truncated. Only a limited number of columns and metrics were displayed in the previous versions, which means this feature is already a huge step forward in terms of the information's visibility.
I understand your request, and we are committed to improving. Pls allow some time for research/design/technical discussion to happen on this one.
@mihir174
Old:

Can I have another request? Could you make the search input box stay, not scroll with the very long Columns and Metrics section?
Even we set only show max 50 entries, it is still over a page height. Scroll back and forth to find search input box is a little inconvenient.  thanks @junlincc and @pkdotson

Can I have another request? Could you make the search input box stay, not scroll with the very long Columns and Metrics section?
Even we set only show max 50 entries, it is still over a page height. Scroll back and forth to find search input box is a little inconvenient.  thanks @junlincc and @pkdotson

Could you make the search input box stay, not scroll with the very long Columns and Metrics section?

yup! that makes perfect sense. im opening a new issue, as the original request has been addressed by https://github.com/apache/superset/pull/12319, i'm closing this one for now

Could you make the search input box stay, not scroll with the very long Columns and Metrics section?

yup! that makes perfect sense. im opening a new issue, as the original request has been addressed by https://github.com/apache/superset/pull/12319, i'm closing this one for now

Confirming this issue is resolved in latest master 01/09/2021 @ 11:20am (UTC)
all designed and new functions are working properly in Explore DataPanel
follow up discussion for [Explore]allow user to search metrics and columns by properties in data panel in Q1
cc @graceguo-supercat @ktmud @zuzana-vej @mistercrunch

Confirming this issue is resolved in latest master 01/09/2021 @ 11:20am (UTC)
all designed and new functions are working properly in Explore DataPanel
follow up discussion for [Explore]allow user to search metrics and columns by properties in data panel in Q1
cc @graceguo-supercat @ktmud @zuzana-vej @mistercrunch


UtilWorld#getRandomPosition in Nether teleports you above the bedrock level

With the recent change to UtilWorld#getRandomPosition to fix the y-level position, teleporting the player to this random location in the nether always puts the player above the bedrock level

Fixed in your PR


stateDurationNode seems not to work properly

From docs:
Compute the duration of a given state. The state is defined via a lambda expression. For each consecutive point for which the expression evaluates as true, the state duration will be incremented by the duration between points. When a point evaluates as false, the state duration is reset.
In my tickscript i have something like this:
dbrp "telegraf"."autogen"
batch
    |query('''SELECT sum("lower") AS "lower"
                FROM "db"."rp"."measurement"
                ''')
        |stateDuration(lambda: TRUE) // for testing purposes
                .unit(1m)
        |httpOut('out')
        |alert()
             // Warn after 1 minute
             .warn(lambda: "state_duration" >= 1)
             // Critical after 5 minutes
             .crit(lambda: "state_duration" >= 5)

In browser ( http://:9092/kapacitor/v1/tasks/task1/out ) it displays me that "state_duration" is 0 and it doesn't change.
Am i doing something wrong?

i found answer in #2184.


live server extension

Issue Type: Bug
I have installed an live serer extension but it is not being active
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:41:52.311Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

Hi,
Thanks for reaching out to the VS Marketplace Team. This issue has been resolved, and the mentioned extension is now active in the VS Marketplace. Please let us know if you encounter any further issues.
Regards,
VS Marketplace Team

Closing the issue since there has been no updates on the information requested. If the issue still persists, please feel free to reopen or create a new issue.


refactor: visibility observer

use ResizeObserver api to emit visibility change. Also auto recalculate table when table resize by parent containers.
What kind of change does this PR introduce? (check one with "x")

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

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

@timowolf Could you please review this?


Error in provided example

The provided example is wrong, it should be:
message = ServiceBusMessage(
"Hello World!!",
session_id="MySessionID",
application_properties={'data': 'custom_data'},
time_to_live=datetime.timedelta(seconds=30),
subject='MyLabel'
)
and not
message = ServiceBusMessage(
"Hello World!!",
session_id="MySessionID",
application_properties={'data': 'custom_data'},
time_to_live=datetime.timedelta(seconds=30),
label='MyLabel'
)
by the way, this kind of issue would not have existed if you didn't use two words for the same concept :
"subject
xref:Optional[str]
The application specific subject, sometimes referred to as label."

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

ID: 1c9b4162-c26e-9f86-4c66-b26449bbd077
Version Independent ID: 1bb2b238-82fa-274b-a43d-55d5d1a72252
Content: azure.servicebus.ServiceBusMessage class
Content Source: docs-ref-autogen/azure-servicebus/azure.servicebus.ServiceBusMessage.yml
Service: service-bus
GitHub Login: @lmazuel
Microsoft Alias: lmazuel

Hi @darkag, thank you for opening an issue! I'll tag some folks who can take a look; we'll get back to you as soon as possible.

Thank you @darkag . We have a linked PR that will address this


Issue with returnTo/state post callback

Having an issue with the returnTo parameter.
Here is the issue:
Start login at /node/99 -> which takes me to /user/login if there is no session -> authenticates the user against Auth0 after building the authorize URL -> callback to module -> Here it returns to /user page instead of /node/99 where i started the authentication.
I see the https://github.com/auth0/auth0-drupal/blob/master/src/Controller/AuthController.php is accepting returnTo URL, but is not redirecting back to that URL after authentication is complete and callback service is call.

Thank you @SumanaMalkapuram! I'll make sure to take a look at this and get it in the upcoming release.


ePromos need to confirm that we FS can work on the published theme on the staging site

Once we push the most up-to-date code changes to staging site, you may use the published theme.


Add wildcard support to cp

Feature Description
Currently cp doesn't support wildcard. With wildcard support, it will make copying multiple files much easier.
Describe The Solution You'd Like
Say, we can an folder which contains a.exe, a.pdb, b.exe and b.pdb, and we would like to copy the exe file into a folder named bin, while pdb file into a folder named symbols.
Currently this is what we needs to do:
cp a.exe bin/a.exe
cp b.exe bin/b.exe
cp a.pdb symbols/a.pdb
cp b.pdb symbols/b.pdb

With wildcard support, it will be much easier:
cp *.exe bin/
cp *.pdb symbols/

Code Sample
Code sample is the same as above.

@r12f this is now implemented in the 0.8.5 branch. you can see a new command called glob_cp (also cp_glob) that can be used.
see api doc:
https://github.com/sagiegurari/duckscript/blob/0.8.5/docs/sdk.md#std__fs__CPGlob
would love some feedback if you have any

Awesome! Thanks a lot! And may I use it in cargo-make now? I will definitely upgrade and try it out.

it should work, but im going to release a new cargo make in a few hours.

@r12f might postpone the cargo-make release, but if you reinstall cargo-make it should pick up the latest duckscript version and should hopefully work.
if you have an issue with that, just open/reopen an issue. I would love to get some feedback if it works well.


Support For Indigenous Languages | Spike

Where to get Indigenous names we can use to test?

@cvarjao For testing I've installed a Salish keyboard and enter some words and phrases from language tutorials. This might be a good place to start. Make sure we can issue, verify and text message words with a reasonably common language to BC.

Needs investigation on indigenous language and use in bc services.

@knguyenBC can you check who will be responsible for this?


Tests: use SortedLedgerStorage in order to not use RocksDB, not compatible with Mac M1

This is a proof-of-concept patch to try running tests on Mac M1.
There is a problem with the version of RocksDB bundled with Pulsar.
We can disable DbLedgerStorage, enabled by default in Pulsar, and use the standard SortedLedgerStorage, that does not use RocksDB

@aymkhalil is this PR required for users in order to be able to run on M1 ?

@aymkhalil is this PR required for users in order to be able to run on M1 ?

Not really. I found most of the test reliability issues coming form the Pulsar image. The best setup I found is to use this pulsar image built for M1: https://hub.docker.com/r/kezhenxu94/pulsar.
For C* my default option would be to run C4 (for the non ccm tests). If I run into issues, then I'll use my custom built DSE image: harbor.sjc.dsinternal.org/pulsar/dse-server:6.8.23-ARM


Feature/new connection notification

Add the following:
Message on connect
Headers on connect
Ability to send text instead of binary messages.
Add disconnect functionality
Only process log messages if log level is high enough

I'm a fan of the concepts added here.


Allow Element to return its html source

Hi!
I think if there's possibility to trivially add getting the html source of an element from the webdriver backend.
I'm sure webdriver protocol allows it, because I use it quite heavily in Ruby/Watir scripts.
I have an interesting set of scenarios where it is needed, maybe I drop few words on it:
I don't quite use phantomjs/hound (or other binding, like watir) for testing of long webapp flows. I rather write scripts which automate stuff. Lots of scripts. And they need to be fast.
So my typical scenario is to run a "webdriver client" like my app using Hound or a Watir script, visit some app, generate a needed state in it and then process the results, which means - read lots of DOM elements. Usually there's no need of further conversation with the webapp at that stage. But getting lots of elements via webdriver is slow. Phantomjs - and it is a fastest of the webdriver backends as they say - gives back a single element of a not-so-big page at ca 150-200 ms. If I have to iterate through tens or hundreds of them, the whole script goes painfully slow, and it's meant to be interactive.
So what I do in Ruby/Watir is to get the current source of some DOM subtree containing the results I need - webdriver gives it back with the proper current state even if it was updated via ajax - then I feed it to Hpricot or similar and I have everything parsed in fractions of the time before - like 0.1s instead of half of a minute. That is what I need. I'd like to do it in Elixir/hound as well. :)

There's now inner_html/1 and inner_text/1 in master branch. I'll publish a new version in a few days.

Wow cool. Thanks! :D


Correct test-commands unit test failures.

The test-commands unit test fails due to a number of issues:

It incorrectly assumes the add_addr_accepted and subflows (see ip-mptcp(8)) MPTCP resource limits are zero at test start, which causes the get_limits command test case to fail when either one of those MPTCP limits is non-zero.
The set_flags command test case was performed after the remove_addr  test case.  This caused the kernel to return an invalid argument (EINVAL) error since the network address for which flags were to be set was no longer tracked by the kernel.
The main event loop exited before all of the underlying generic netlink send and receive operations were completed, which then prevented the mptcpd command test cases from completing successfully.

Correct all of these issues.

The set_flags test case also need the change in PR #259 before it'll succeed as well.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 64.923%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
1390

Relevant Lines:
2141

💛  - Coveralls


Add builders' gallery and first entry

added some basic instructions for those new to using git
added my entry for Robert the Rover

Suggestions welcome.

This is awesome, guys.  Thanks for adding example builds to the repo here!
Quick thought for @Achllle and @ericjunkins ... do you think there's any value in linking to / including the in-progress and completed builds from the Tapatalk forum over at https://www.tapatalk.com/groups/jpl_opensource_rover/in-progress-builds-f11/ and https://www.tapatalk.com/groups/jpl_opensource_rover/completed-builds-f7/ ?  There's some really great content over there as well... just food for thought.
Thanks as always for your incredible support on this really neat project!

I think we should include them, but I'm not sure if we should do it for them or let them add theirs in (and provide an update). Happy to take on a couple of them


Latest update (as of Apr 17)

Working, including the startup size!
See https://github.com/loic-sharma/flutter-engine/pull/39

Could you also update the readme with some explanation of what's necessary to run this now? e.g. check out branch x, compile command, command to run with local engine, etc.

I've revised the README. Can you take a look?


current-day data restriction example is out of date

Trying out this example today, the models are able to answer this question with their default knowledge:
https://github.com/openai/openai-cookbook/blob/a5197083bd834567d29a2d7b2ec34f125351433d/examples/Question_answering_using_embeddings.ipynb#L176-L193
Can this please be updated with an example that it can't answer as of today, May-20-2024?

GPT-4o has data up to October 2023.
The 2024 Academy Awards might be a good new example.
# an example question about the 2024 Oscars
query = 'Who won the 2024 oscars for best actor?'

response = client.chat.completions.create(
    messages=[
        {'role': 'system', 'content': 'You answer questions about the 2024 Academy Awards.'},
        {'role': 'user', 'content': query},
    ],
    model=GPT_MODEL,
    temperature=0,
)

I'm sorry, but I don't have the information on the winners of the 2024 Academy Awards. The event may not have occurred yet, or the results may not be available in my current dataset. You can check the latest updates from reliable sources such as the official Oscars website or major news outlets.

@ted-at-openai @MikeHeaton

I can't get the Embedding article linked from the example to work with the 2024 Oscars, though.


basic/Tutorial Evaluating the Predictor updates

Hello, I'm using the 4 basic/Tutorial notebooks to run a demo and encountered a few errors along the way.

In 3.Evaluating_Your_Predictor, forecast_arn doesn't exist. This can be replaced with forecast_arn_deep_ar variable from the previous step.
In 3.Evaluating_Your_Predictor, "data/item-demand-time-validation.csv" doesn't exist. This can be replaced with "data/item-demand-time-validation.csv". However this does not give the desired results, see image below.

A new new file for validation can be created in 1.Importing_Your_Data with the correct time range for validation.
The sliced time range in 3.Evaluating_Your_Predictor for the df used to plot the graph can then be updated to reflect the validation data file. This gives us the correct graph, see image below.

Hopefully I was able to explain myself well. I can make the required changes and submit  a PR.
:slightly_smiling_face:

Excellent callout, if you make the PR I'll be happy to review and merge!

Fixes have been merged!


compress: do not leak memory for zero-sized result

Not sure if this is the correct way to fix this issue, but ek::compress will leak memory if the input mask is fully false.
In that case, the following early returns triggers:
https://github.com/mitsuba-renderer/enoki-jit/blob/af18bf8d2177a911861c7e1fa2725eeacfd3e6ba/src/var.cpp#L480-L484
and so the memory allocated for indices never gets stolen, which means it's leaked when returning from compress_():
https://github.com/wjakob/enoki/blob/2ab5258cba3143fed5e55ccff831d406ae98f5f4/include/enoki/jit.h#L571-L574

I'm curious to learn how you ran into this (not sure I understand 100% yet). Wouldn't the malloc() wouldn't return nullptr because its input size is also zero? In that case, there wouldn't be a leak(?)

Looks great. While you're at it, can you fix one more thing and then merge?
diff --git a/include/enoki/jit.h b/include/enoki/jit.h
index a2d9a3e..28d96a6 100644
--- a/include/enoki/jit.h
+++ b/include/enoki/jit.h
@@ -565,7 +565,9 @@ struct JitArray : ArrayBase<Value_, is_mask_v<Value_>, Derived_> {
         } else {
             uint32_t size_in = (uint32_t) size();
             uint32_t *indices = (uint32_t *) jit_malloc(
-                AllocType::Device, size_in * sizeof(uint32_t));
+                Backend == JitBackend::CUDA ? AllocType::Device
+                                            : AllocType::HostAsync,
+                size_in * sizeof(uint32_t));

             eval_();
             uint32_t size_out = jit_compress(Backend, (const uint8_t *) data(),

Allocating Device arrays just makes sense on GPUs, and this indeed fails in LLVM mode.

Okay, done! CI is green so I will merge now.


Cannot install: stat run.sh: file does not exist

When i try to install the addon I get the following message:

COPY failed: file not found in build context or excluded by .dockerignore: stat run.sh: file does not exist

I no longer offer addon support from this account, now the addons I develop will be uploaded in this repository.
https://github.com/deadbeef3137/home-assistant-addons

When i try to install the addon I get the following message:

COPY failed: file not found in build context or excluded by .dockerignore: stat run.sh: file does not exist

I no longer offer addon support from this account, now the addons I develop will be uploaded in this repository.
https://github.com/deadbeef3137/home-assistant-addons

In that case, you should add a note about it at the top of the readme file.


Command failed: could not find file

What version of Delve are you using (dlv version)?
Delve Debugger
Version: 1.1.0
Build: $Id: 1990ba12450cab9425a2ae62e6ab988725023d5c $
What version of Go are you using? (go version)?
go version go1.10.2 darwin/amd64
What operating system and processor architecture are you using?
macOS High Sierra 10.13.6

I have a problem with debugging, i suppose so the reason is my project structure. Sometimes when i create new package, i create inside "cmd" directory where is my main file(attached file). In this case i can add breakpoints only in my main file, because each breakpoints in other file is unverified. I get error: "Error on CreateBreakpoint: could not find ...src/location/scanner/monitor.go:34". Summarizing, main.go file is in main package, transport and monitor file is in scanner package. Is it possible to debugging project with structure like this ? When i move monitor.go, transport.go and main.go to one main package, all works great.
I also tried debugging directly in delve debugger and i got the same error "Command failed: could not find /Users/wojciechpolus/go-workspace/src/location/scanner/transport.go:43"

Where the files are shouldn't matter. I'd like to see the executable built by delve.

I built executable file for my platform.
scanner.zip

This is not an executable built by delve.

Could you tell my how can i build it ?

When you do dlv debug it will create a file called debug in the current directory. Alternatively go build -gcflags='all=-N -l'
I must say however that even in that optimized binary not a single line of monitor.go is present in your final executable.

thank you for clarification. I send new file, i used command: go build -gcflags='all=-N -l'
scanner.zip

PS. if it should it's not a bug with delve but with go.

I'm sure that should contains. I sent entire project, in cmd/scanner directory is debug file.
scanner.zip

Can you reproduce it with 1.11rc1?

Yes, i have exactly the same with 1.11rc1

cc @heschik

Weird. Something is going badly wrong during external linking; the functions disappear from the symbol table, the subroutine DIEs vanish from .debug_info, etc, etc. Additionally this callq in main.main looks very bad:
42c0dee:       e8 fd e6 ff ff  callq   -6403 <type..eq.github.com/streadway/amqp.queuePurge+0xE80>
That's supposed to be (*QueueTransport).Wait.
This program doesn't work, does it? It looks completely trashed to me.
I'll bisect and maybe file an upstream bug.

This program isn't beautiful, because i wanted just test possibility bluetooth. This program work. It constantly scans beacons devices in nearby.

Ah, I didn't notice that it reproduces with 1.10. That's a bit of a relief.
@wopol can you put together a self-contained reproducer and file a bug against Go itself? This is going to take more investigation than I can do right now for something that's not a 1.11 release blocker.

Oops, we raced.
It works? Really? Hmm. I'll have to look harder.

OK, i will create new issue against GO.
PS. If you want run this program, you must do it on macOS with enabled bluetooth.

Yes, please do. I think the missing symbol table entry is the primary problem -- dsymutil is probably dropping the DWARF for the functions it doesn't know existed.
For the record, the "bad" callq is fine; it's just giving the offset from the last symbol it does have.


create docker image google-api-python3

Status
Ready/In Progress/In Hold (Reason for hold)
Related Content Pull Request
Related PR: -
Related Issues
Related: https://github.com/demisto/etc/issues/20992
Description
create a new docker image in order to replace deprecated package.

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/google-api-python3:<IP_ADDRESS>843
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/google-api-python3/tags
Get started by pulling the image:
docker pull devdemisto/google-api-python3:<IP_ADDRESS>843

Docker Metadata

Image Size: 44.58 MB

Image ID: sha256:6921b827cc94edca13a30d7f29c5ec1b29dd46b83345328cc85f5e48cdb02b8c

Created: 2022-10-30T12:08:22.206894097Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.8
PYTHON_PIP_VERSION=22.2.2
PYTHON_SETUPTOOLS_VERSION=63.2.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
DOCKER_IMAGE=devdemisto/google-api-python3:<IP_ADDRESS>843

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:dc5299e9d4c408aef783ef5e440516e4174a08d9
org.opencontainers.image.version:<IP_ADDRESS>843

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/google-api-python3:<IP_ADDRESS>844
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/google-api-python3/tags
Get started by pulling the image:
docker pull devdemisto/google-api-python3:<IP_ADDRESS>844

Docker Metadata

Image Size: 44.58 MB

Image ID: sha256:66e6864dbb582c378e9428f778ffb4f835710f4db6d7e84c3215f04cf3ba713c

Created: 2022-10-30T13:25:17.960036151Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.8
PYTHON_PIP_VERSION=22.2.2
PYTHON_SETUPTOOLS_VERSION=63.2.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
DOCKER_IMAGE=devdemisto/google-api-python3:<IP_ADDRESS>844

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:28c0672fa20198a813c054e1b9224bd75afd8731
org.opencontainers.image.version:<IP_ADDRESS>844

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/google-api-python3:<IP_ADDRESS>882
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/google-api-python3/tags
Get started by pulling the image:
docker pull devdemisto/google-api-python3:<IP_ADDRESS>882

Docker Metadata

Image Size: 33.84 MB

Image ID: sha256:f1d045e9f59c441ebee6e42c4cf66e61d6f300587f253be6c5bb6aa34da10bfa

Created: 2022-10-30T15:06:19.279655566Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.8
PYTHON_PIP_VERSION=22.2.2
PYTHON_SETUPTOOLS_VERSION=63.2.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
DOCKER_IMAGE=devdemisto/google-api-python3:<IP_ADDRESS>882

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:0c563c743992f334de1b3487913a35562d46dd81
org.opencontainers.image.version:<IP_ADDRESS>882

as we discussed, lets not create another seemingly duplicate google-api image. Are there any of these not in use? Which are we replacing by adding this?

@JudahSchwartz I will open a dev-task about the dockers google-api-py3 and googleapi-python3 in order to merge it to one docker image. currently i am using this docker only for tests. I don't have intent to merge it until we understand which one we replace by add this.

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/google-api-python3:<IP_ADDRESS>914
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/google-api-python3/tags
Get started by pulling the image:
docker pull devdemisto/google-api-python3:<IP_ADDRESS>914

Docker Metadata

Image Size: 44.58 MB

Image ID: sha256:7ab8d1d00baab04d22ff13d7aa22da295f84fba18106f9155ec611783aee16a6

Created: 2022-10-31T10:08:58.44863662Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C.UTF-8
GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
PYTHON_VERSION=3.10.8
PYTHON_PIP_VERSION=22.2.2
PYTHON_SETUPTOOLS_VERSION=63.2.0
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
DOCKER_IMAGE=devdemisto/google-api-python3:<IP_ADDRESS>914

Labels:

org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:fd249406bb5de98a348d3bbdba66f2d267950dda
org.opencontainers.image.version:<IP_ADDRESS>914


Unblock state transition in fork choice

Currently, fork choice genserver blocks when performing state transition. This will be solved by the per-block concurrency model, but in the meanwhile, we can solve the blocking part:

We can start each state transition in an async task.
We can handle the results in handle_info
We can change the handle_call so that it does a noreply and then continues. This would mean that pending blocks still has a sync call to the store, but the store is not blocked for other uses like metadata, getting the head, etc. If not possible with handle_call, we can use a handle_cast + a receive from pending blocks, emulating an async call.

We fixed it as follows:

BeaconChain GenServer caches forkchoice data
ForkChoice.on_block is now async
PendingBlocks fetches block data directly from DB


Attempting to install azure-storage-blob results in segmentation fault

I tried installing azure-storage-blob using the command provided in the readme however it is resulting in a segfault:
$ pip install azure-storage-blob --pre
Collecting azure-storage-blob
  Using cached https://files.pythonhosted.org/packages/9e/ff/6b4765c781b81f72995442b0c431038ff278aee3e186cbc4497a8f6a639b/azure_storage_blob-12.0.0b3-py2.py3-none-any.whl
Collecting cryptography>=2.1.4 (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/e6/68/50698ce24c61db7d44d93a5043c621a0ca7839d4ef9dff913e6ab465fc92/cryptography-2.7-cp27-cp27mu-manylinux1_x86_64.whl
Collecting azure-core<2.0.0,>=1.0.0b3 (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/66/e5/bae9c44414ec8c3d596bf722e8577447858cc9df0f259beca98688246f07/azure_core-1.0.0b3-py2.py3-none-any.whl
Collecting enum34>=1.0.4; python_version < "3.4" (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting msrest>=0.5.0 (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/27/b0/c34b3ea9b2ed74b800520fbefb312cdb7f05c20b8bd42e5e7662a5614f98/msrest-0.6.10-py2.py3-none-any.whl
Collecting azure-storage-nspkg<4.0.0,>=3.0.0; python_version < "3.0" (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/ba/f6/054ace7b01c6c21b3b95a83c3997f7d6539d939a2c08c4f27f779128a030/azure_storage_nspkg-3.1.0-py2.py3-none-any.whl
Collecting futures; python_version < "3.0" (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
Collecting typing; python_version < "3.5" (from azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/22/30/64ca29543375759dc589ade14a6cd36382abf2bec17d67de8481bc9814d7/typing-<IP_ADDRESS>-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.4->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/8d/c3/be192e56ab85a7b2439caf83049b9936292aaf0398038a2fe28716f18951/asn1crypto-1.0.1-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography>=2.1.4->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.1.4->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/8d/e9/0c8afd1579e5cf7bc0f06fbcd7cdb954cbc0baadd505973949a99337da1c/cffi-1.12.3-cp27-cp27mu-manylinux1_x86_64.whl
Collecting six>=1.4.1 (from cryptography>=2.1.4->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting azure-nspkg; python_version < "3.0" (from azure-core<2.0.0,>=1.0.0b3->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/c2/95/af354f2f415d250dafe26a5d94230558aa8cf733a9dcbf0d26cd61f5a9b8/azure_nspkg-3.0.2-py2-none-any.whl
Collecting requests>=2.18.4 (from azure-core<2.0.0,>=1.0.0b3->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from msrest>=0.5.0->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl
Collecting isodate>=0.6.0 (from msrest>=0.5.0->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl
Collecting requests-oauthlib>=0.5.0 (from msrest>=0.5.0->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/c2/e2/9fd03d55ffb70fe51f587f20bcf407a6927eb121de86928b34d162f0b1ac/requests_oauthlib-1.2.0-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.1.4->azure-storage-blob)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.18.4->azure-core<2.0.0,>=1.0.0b3->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/e0/da/55f51ea951e1b7c63a579c09dd7db825bb730ec1fe9c0180fc77bfb31448/urllib3-1.25.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.18.4->azure-core<2.0.0,>=1.0.0b3->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5 (from requests>=2.18.4->azure-core<2.0.0,>=1.0.0b3->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.5.0->msrest>=0.5.0->azure-storage-blob)
  Using cached https://files.pythonhosted.org/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl
Installing collected packages: asn1crypto, enum34, ipaddress, pycparser, cffi, six, cryptography, azure-nspkg, urllib3, certifi, chardet, idna, requests, azure-core, typing, isodate, oauthlib, requests-oauthlib, msrest, azure-storage-nspkg, futures, azure-storage-blob
Segmentation fault (core dumped)

I'm running Ubuntu 18.04. I ran sudo apt-get update sudo apt-get upgrade before running the pip command.
Has anyone else had this issue, or does anyone have any suggestions? If not, let me know if you need any more info from me. Thanks!

@giant090860 thanks for letting us know! Someone from our team will take a look at this. cc: @rakshith91

This is not something that we've seen before. Based on the set of packages/wheels installed, I assume that you are using the system installed Python, correct (i.e. Python 2.7)?
I'll try to set up a machine and see if I can reproduce the problem.

@johanste
$ python --version
Python 2.7.15+

I just noticed that interestingly, I am able to import from this package
>>> from azure.storage.blob import BlobClient
>>>

I even successfully connected to azure and downloaded a blob from it.
So I suppose the segmentation fault is a false flag? The package is apparently working, and according to pip freeze, its installed:
$ pip freeze | grep blob
azure-storage-blob==12.0.0b3

I'll let you know if anything doesn't work, but so far, it appears to be working even though I got a seg fault during installation.

Ok - thanks for the update. For what it's worth, I did not see the segmentation fault on a clean ubuntu 18.04 box using the system install python. In addition to the steps you listed above, I also installed sudo apt-get install python-pip on the box after doing the update/upgrade steps.
A quick search led me to a couple of similar issues that may be of interest.

Based on what we can see, this doesn't look like an issue in the package, but rather an issue with pip. If we start encountering the issue again, we need to check the core dumps to see what is actually going on here.


Configure a picker storage location

Allow user to setup a default picker location to setup file open dialog default.
Cherry pick for td: Add a environment variable that the pipeline team can use to setup that default location per production.

done with release 0.8.0


MAINT: special: fix some pyflakes warnings

LGTM expect for the one test tolerance thing.

Thanks Josh


Typescript Stubs

Can we get immutablejs integrated with Typescript community stubs? I would really help with the intellisense and autocompletion features?

@tusharmath - there is no need for a type definition (that's what's DefinitelyTyped is about, type definitions) to be hosted on DefinitelyTyped for intellisense or auto-completion to work. The type definition simply needs to be referenced in some way, directly or indirectly, by tsconfig.json (or similar) and intellisense/auto-completion (assuming you're using some sort of 'standard' TypeScript setup) will simply work.
In some ways your request is related to #779, but this isn't a blocker - you can make it work, albeit somewhat manually for now.

Thanks for answering!


Issue with Select when using ->displayUsingLabels()

All selects outside of my NovaDependencyContainer work fine with the ->displayUsingLabels() method, however, those within a NovaDependencyContainer, won't render the selected value when editing, it shows as blank, and saves as such. Selecting a value and saving it, still works as expected though. Removing the ->displayUsingLabels() option seems to bring everything back to functional again.
public $bannerTypes = [
        'alert-danger' => 'Danger',
        'alert-warning' => 'Warning',
        'alert-info' => 'Info',
        'alert-success' => 'Success'
    ];

...

Boolean::make('Show Banner', 'has_banner')
    ->help('Show the banner for this plan.'),

NovaDependencyContainer::make([
    Text::make('Banner', 'banner_text')
        ->help('Alert Banner Text to display for this Plan. Leave blank to hide banner.')
        ->hideFromIndex(),

    Select::make('Banner Type')
        ->options($this->bannerTypes)
        ->displayUsingLabels()
        ->hideFromIndex()
        ->nullable(),
])->dependsOn('has_banner', 1),

Let me know if I can answer any questions you might have! Thanks for the great package 😀

Sorry, iphone was being trigger frenzy closing this issue ..

@mitchkramez Should be fixed in 1.2.8, please confirm and if so, close this issue.

@wize-wiz fully and completely fixed! thank you again!


helm get manifest after install of release that FAILED comes back as not found

When a helm install fails, doing a helm get manifest to check manifest fails with message "release note found" even though helm list shows a release is there.
Sequence of event is like this:
Using this deployment.yaml:
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: nginx
        test: abcd
    spec:
      containers:
      - name: nginx
        image: thisfailsnginx:1.7.9
        ports:
        - containerPort: 80

and do:
helm install --namespace temp --name temp /tmp/charts

to install the chart which fails due to image pull backoff and pod never going into ready state.
I then do:
helm list

to see if release got created, which it has.
[storage] 2017/08/16 23:48:39 Listing all releases with filter
NAME 	REVISION	UPDATED                 	STATUS	CHART      	NAMESPACE
temp	1       	Wed Aug 16 23:42:17 2017	FAILED	nginx-0.1.0	default

however, doing a get manifest fails with:
helm get manifest temp

which fails with:
[storage] 2017/08/16 23:54:17 Getting deployed release from "temp" history
Error: release: "temp" not found

However, explicitly specifying revision works.
helm get manifest temp --revision 1

shows me the manifest correctly.
Is this expected behaviour? i.e. only look for non-failed release.
If so, was a bit surprised as the release itself was created.

@kiich I cannot reproduce this. I have a FAILED release named test2 with only 1 revision and I can successfully retrieve the manifest with helm get manifest test2.  Can you try with another chart and see if you have the same experience?

Hey @jascott1 thanks for the feedback and apologise for the late reply.
I'll try another chart and confirm the behaviour. Also to note is I'm on a fairly old helm version so will try and upgrade and check if it still reproduces.

I'm going to close this ticket due to inactivity, but please re-open if this still needs to be addressed. Thanks!


make it easy vscode its wasting my time so when i learn something

Issue Type: Feature Request
can you please make it easy when i install c/c++ but my programme not working it said there is gcc or clang problem i don't understand can you please set automatic install all things for programmers because we waste time to fix problem to downloading and set path not only c in python , java etc please fix it i want to download vscode and just start coding and my programme run please make it simple vscode is complicated only those people use who is developer or well know about it but what about those who just starting coding but they don't know about it please make it easy because i waste lot's of time please
VS Code version: Code 1.50.0 (93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3, 2020-10-07T06:00:00.397Z)
OS version: Darwin x64 17.7.0

Hey @loverofmicrosoft, thanks for the feedback. I think we have a couple of tools that could really help in this situation.
Have you had a chance to take a look at our Java or Python coding packs? The Coding Pack for Java includes VS Code, the Java Development Kit (JDK), and essential Java extensions. The Coding Pack can be used as a clean installation, or to update or repair an existing development environment. The Coding Pack for Python sets up VS Code, your Python environment and libraries, and other really helpful extensions for starting out, like LiveShare.
As another alternative, we have the Remote - Containers extension, which also greatly reduces the need to set up any downloads or dependencies. You could choose from a list of preconfigured dev containers, such as a Python 3 or C++ dev container, and all of the runtimes and libraries will already be set up for you - you don't have to download anything on your local machine besides Docker. We have a getting started tutorial here.
Does it sound like any of these solutions might help?

Hey @loverofmicrosoft, following up here - did it sound like any of the above might help?

Closing for now with the guidance above in mind - please feel free to let us know if you have any other questions or feedback, and I'd be happy to reopen or discuss further. Thank you!


getNonce : use while instead of calling itself when nonce is used

Because there is no wait inside of the "if / getNonce" the current implementation will just hit the maximum stack of nested calls and bomb out
Suggestion: use something like
var nonce = new Date().getTime();
while(lastNonces.indexOf(nonce)>-1){
nonce = new Date().getTime(); // Repetition of the above. This can probably done better :-)
}
Instead of:
if (lastNonces.indexOf(nonce) > -1) {
  // There is no wait here, so during the same millisecond, we will call ourselves many times
  return getNonce();
}

I encountered this bug, thank you very much @@
So finally, it will be like this right?
  var getNonce = function() {
    var nonce = new Date().getTime();

    while(lastNonces.indexOf(nonce)>-1){
      nonce = new Date().getTime(); // Repetition of the above. This can probably done better :-)
      }

    // keep the last X to try ensure we don't have collisions even if the clock is adjusted
    lastNonces = lastNonces.slice(-50);

    lastNonces.push(nonce);

    return nonce;
  };


VSCode can't find binaries in my path (eslint)

VSCode Version: 1.8.0
OS Version: Archlinux

Hi,
I have some binaries such as eslint, jshint or tslint in a user defined binary directory (/home/user/.config/yarn/global/node_modules/.bin/).
This directly is added to the PATH at session startup and is visible to vscode.
I checked in the /proc/pid/environ file of my running vscode (actually I checked the process that run the jshint server as well as the one for the workspace) that it has the PATH environment variable correctly set.
Still, when I open a .js file, I get the following message:

It is the same for eslint:
[Info  - 10:21:51] ESLint server is running.
[Info  - 10:21:51]
Failed to load the ESLint library for the document /home/vnoel/Linagora/Petals/dev/git/petals-cockpit-new/frontend/generate-headers.js

To use ESLint in this workspace please install eslint using 'npm install eslint' or globally using 'npm install -g eslint'.
You need to reopen the workspace after installing eslint.

Surprisingly I don't have the problem with tslint even though it is in the same path…

@dbaeumer for ESLint.

Created #17464 for jshint.

@victornoel the ESLint extension doesn't use ESLint from the path. The extension loads the eslint npm module via require in a running node process and we keep that process alive to not start it after every change of a file. This is why you need to install ESLint either into the workspace folder or globally. Alternatively you can set the eslint.nodePath setting to point to a location that is uncommon. In your case you could set it to /home/user/.config/yarn/global/node_modules which should do the trick.

@dbaeumer I see, this wasn't so clear to me, thank you for the clarification!

@dbaeumer just a quick question, when it is installed globally, which path is used to look it up by default?

The resolving sequence is as follows: first eslint.nodePath if set, then relative to the file that is validates up the parent directory chain and then globally.

@dbaeumer I meant what is the global path where it is looked up? Is it in all the paths present in NODE_PATH variable?

Yes, it looks into all paths present in NODE_PATH. This is what node does by default and we wrote a script to reuse Node's resolve algorithm here.

Thanks! So I guess the simplest and most generic solution to my problem is to add /home/user/.config/yarn/global/node_modules to NODE_PATH then :)

Yes that is correct.


Actual output:
export interface RequestBody {
    filename?: string /* binary */[];
}

Suggested solution
Add an CLI option --emitFormData, which will emit export type RequestBody = FormData; when body content type is multipart/form-data.
For environments which aren't support FormData (i.e. Node) it can be fixed by adding --header option, which will insert custom content at the top of generated file (--header='import FormData from "form-data";')

Any update on this?

AFAIK no one is working on this @agamm.
PRs accepted!


fix links between doc pages

Fixes a few links in the documentation that pointed to incorrectly capitalized headings, as well as one that was bad markdown syntax.
Tested via make docs and clicking.

Failures are fixed in the next release.
Thanks for your contribution @nkeriks !


Upgrade Yarn

Head for bug/Node-Env branch is detached. Need to revert PR #58 as this PR merged bug/Node-Env to master.


Kohya error in runpod

Hi Guys!
Ive installed Kohya ss linux version on my runpod and after a spending 2 hours fixing a error, found a new error after I press
train model in the dreambooth lora tab. Since i have very limited coding knowledge, i need help please.
root@1422e0b89586:/workspace/kohya_ss-linux# source venv/bin/activate
(venv) root@1422e0b89586:/workspace/kohya_ss-linux# python3 ./kohya_gui.py
Load CSS...
This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
Traceback (most recent call last):
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/gradio/routes.py", line 384, in run_predict
output = await app.get_blocks().process_api(
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1024, in process_api
result = await self.call_function(
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/gradio/blocks.py", line 836, in call_function
prediction = await anyio.to_thread.run_sync(
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/workspace/kohya_ss-linux/venv/lib/python3.10/site-packages/anyio/_backends/asyncio.py", line 807, in run
result = context.run(func, *args)
File "/workspace/kohya_ss-linux/lora_gui.py", line 385, in train_model
repeats = int(folder.split('')[0])
ValueError: invalid literal for int() with base 10: '.ipynb'

You may want to try this:
https://github.com/bmaltais/kohya_ss/issues/1062


Text | Children type is too limited for common usage

Text's children prop is currently:
children?: string | Node; which accepts string, Node, and undefined.
This doesn't allow for multiple children, or even normal jsx being passed in.
This JSX tag's 'children' prop expects a single child of type 'string | Node | undefined', but multiple children were provided.  TS2746
  > 34 | <Text>Hello my name is {customerName}</Text>
       |  ^

It also doesn't allow for regular nested JSX (JSX.Element) or Element
Type 'Element' is not assignable to type 'string | Node | undefined'.

AC

Update the children type for Text to be more flexible

Bonus: Create a generic "let me pass jsx stuff here" type we can reuse throughout Foundry UI, and include it in the src/components/commonTypes.ts file.

I'll take this. Warning I am a complete React n00b


[file_system_http_cache] Add eviction

Commit Message: [file_system_http_cache] Add eviction
Additional Description: Add the last piece of making file_system_http_cache functional; eviction. This adds a thread for the eviction operation to be performed on, allowing for on-demand eviction rather than periodic. This has advantages and disadvantages

Pro: when there is no demand for eviction because the cache is below its size limits, the cost is very low.
Pro: the cache should not get significantly oversized, because a demand for eviction will occur as soon as it is oversized.
Con: if the cache is constantly being populated and entries rotated out, the cost will be higher than periodic eviction would be.
Option for improvement: a configuration option for postponing eviction if the last eviction was more recent than (specified duration) would reduce the cost of that con, but reduce the benefit of the second pro.

Risk Level: None, this filter is not in use and is still tagged WIP.
Testing: Almost 100% coverage (updating an atomic more than once because there was a race is not covered).
Docs Changes: n/a
Release Notes: n/a (not yet)
Platform Specific Features: n/a

/retest
(Doesn't look like I broke that.)

/wait

/retest

For some reason I can't reply in the thread-joining thread. You're right, I misremembered and described the problem incorrectly. At this point I can't actually remember what the problem was, but there was definitely something. I think it's to do with the order in which things are destroyed in tests, rather than in production, that leds to some sort of thread-related test failure. However, it seems some other restructuring has resolved that problem, so it does make sense to use constructor and destructor now.

I think there are still other pending comments besides the ones I just flushed.
/wait

/wait

Todd can you take a pass?

/retest


Consider checking TypeURL in UnwrapMalleatedTx

Context
While discussing upcoming WirePFB refactors, @evan-forbes and I discussed adding a check to UnwrapMalleatedTx to verify the TypeURL of a WirePFB. Something like
https://github.com/celestiaorg/celestia-app/blob/6ba7873533f09c8ea8ccfe671eee6b4a65c8903c/app/process_proposal.go#L88
Problem
https://github.com/celestiaorg/celestia-core/blob/b7a7c1ab37fde91f9687b5c1c4766119e7b71db5/types/tx.go#L205
doesn't currently perform any checks for TypeURL so it's possible to unwrap a tx that isn't a WirePFB
Proposal
Add a TypeURL check

On re-review, TypeURL is an SDK concept and it doesn't seem desirable to introduce a Cosmos SDK import in celestia-core.

the sdk uses this https://github.com/golang/protobuf/blob/v1.5.2/proto/registry.go#L264, which we should be able to use without importing the sdk.
That is deprecated on closer inspection tho... we will eventually have to switch to some other equivalent depending on how we generate things in the future.

I think we can close this now, as we're using four character strings as an added field. #893


Allow html output only for diff and results at cmd

We should not list html output for command line commands which do not support this (products list, runs, sum etc).

Running CodeChecker cmd results run_name -e html_out -o html gives me a ValueError exception (Unsupported format).


Bump ansi-regex to ^5.0.1 to fix CVE-2021-3807

As the title says, I'm adding an explicit dependency on<EMAIL_ADDRESS>

Hmm, maybe this package should be added to the resolutions instead of dependencies, like for example in here #2782?

Indeed 👍 Thanks for the hint


Problem with rotation gizmos (possibly related to handedness / coordinate space?)

In my application, I'm using a left-handed, Y up coordinate system.
When setting up this library, I encountered an issue with the rotation gizmos. At first they looked as if they were rotating inverse to the screen, but then I realized the real reason is that the arcs were being drawn with an offset of PI radians.
The gizmo looks correct in the demo, so I'm thinking perhaps there's an offset that needs to be added to the arc that changes with the chosen coordinate system?
This gif illustrates the issue:

Here's what happens when I change rotation.rs:70:
- painter.arc(radius, FRAC_PI_2 - angle, FRAC_PI_2 + angle, stroke);
+ painter.arc(radius, FRAC_PI_2 - angle + PI, FRAC_PI_2 + angle + PI, stroke);

Seems a better fix is to return -Z in the view_forward function.
/// Forward vector of the view camera
pub(crate) fn view_forward(&self) -> Vec3 {
-    self.view_matrix.row(2).xyz()
+    -self.view_matrix.row(2).xyz()
}

This confirms my suspicion of it being a handedness issue. Depending on the chosen coordinate system, when fixing Y = UP and X = RIGHT, Z can either be forward or backwards depending on the handedness:

I had not tested this with left-handed coordinate system. Looks like translation and scale work normally, but rotation does not.
Can you test if these changes fix this for you? https://github.com/urholaukkarinen/egui-gizmo/pull/15

I had not tested this with left-handed coordinate system. Looks like translation and scale work normally, but rotation does not. Can you test if these changes fix this for you?: #15

Thanks! Looks like the fix partially works: It makes the thing rotate in the right direction, but I'm still getting the opposite side of the arcs like in the first gif I shared. Looks like these lines are responsible:
https://github.com/urholaukkarinen/egui-gizmo/pull/15/files#diff-1b660058be8e20894b1b1d05baa36074ffaeae4431fd75c63d30e0e599ff36f9L69-R73
Since arc_length is using view_forward, the arc it returns is offset by PI in left-handed mode.

Hmm, that's interesting. I tested that by using left-handed system in the demo and before the fix it looked the same as in your gif. After the changes it seemed to work the same way as with right-handed system.
arc_length should not affect the arc direction in any way. The view_forward there is used for turning the arc into a circle when the angle is small enough

Ah, nevermind, you're right! What seems to be wrong is the left handed check itself. Flipping the comparison here does the trick, and then everything works fine:
- self.left_handed = self.mvp.determinant() > 0.0;
+ self.left_handed = self.mvp.determinant() < 0.0;

Hmm yes, I have a feeling that < 0.0 is correct, but for some reason it looks wrong in the demo. I'm not yet quite sure why.

Maybe there are other things influencing the sign of the determinant other than handedness? :thinking:  From a quick search, it seems that mirrored coordinate systems have different sign determinants, but I haven't been able to find anywhere that negative means left (or right).

I think I totally misunderstood what the determinant means in this case. I made some changes to the PR. Can you try if it works for you now?

Huh, weird :thinking: so, it doesn't work for me because apparently projection_matrix.z_axis.z is zero. I know my rendering library (rend3) is using reverse Z, maybe this has something to do with it?
This is how my projection matrix is being built:
Mat4::perspective_infinite_reverse_lh(vfov.to_radians(), aspect_ratio, near)

And these are the actual values, in case it's relevant:
[/home/user/Repositories/egui-gizmo/src/lib.rs:527] self.projection_matrix = Mat4 {
    x_axis: Vec4(
        0.85852164,
        0.0,
        0.0,
        0.0,
    ),
    y_axis: Vec4(
        0.0,
        1.7320508,
        0.0,
        0.0,
    ),
    z_axis: Vec4(
        0.0,
        0.0,
        0.0,
        1.0,
    ),
    w_axis: Vec4(
        0.0,
        0.0,
        0.01,
        0.0,
    ),
}

I should study a bit more in depth how different projection matrices are built.
Anyway, I analyzed all the different projection matrices available in glam and noticed that with those I could use projection_matrix.z_axis.w to determine the handedness. For orthographic projection the z_axis.w is always 0.0, so for those I could use z_axis.z. Not very scientific, but this solution seems to work with each of the different projections available in glam. I've updated the pull request.
If this solution still does not fully work, I'll just add a configurable parameter :smile:.

Looks like it works! :tada:


Allow specifying a default filter for a profile

I have some integration tests that require a backing data store to be available. By default, I'd like only the "unit" tests to run, but I'd like this to be something that any other user can do by just specifying cargo nextest run, rather than cargo nextest run -E 'not (kind(test) and binary(integration))'. I think that adding a property into the profile configuration would be great. This would then also enable "named" filters in a way, through the use of the profiles feature.

Hi, thanks for the question! I agree that this would be good. The main challenge here is presenting this in the UI -- we need to make it clear that it's not nextest's fault that only a subset of tests is being run.

This is now supported via the default-set config: https://nexte.st/docs/running/#running-a-subset-of-tests-by-default


Payout issue after update

Dears,
I checked a log and found that was related with PPLNS calculation.

First, it calculated a 1.5% to pool op
Second, it calculated a remaining reward after deducted a 1.5% for pool op
Third, it calculated a PPLNS percent of GLT miner
Fourth, it tried to send a reward to two separte address, which poolop and GLT miner
however following error occurred.

[2017-11-13 00:57:12.1365] [E] [PayoutManager] [GLT] Payment processing failed MiningCore.DaemonInterface.DaemonClientException: Internal Server Error
at MiningCore.DaemonInterface.DaemonClient.d__15.MoveNext() in D:\git\miningcore\src\MiningCore\DaemonInterface\DaemonClient.cs:line 235
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MiningCore.DaemonInterface.DaemonClient.d__131.MoveNext() in D:\git\miningcore\src\MiningCore\DaemonInterface\DaemonClient.cs:line 179 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at MiningCore.Blockchain.Bitcoin.BitcoinPayoutHandler.<PayoutAsync>d__9.MoveNext() in D:\git\miningcore\src\MiningCore\Blockchain\Bitcoin\BitcoinPayoutHandler.cs:line 233 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at MiningCore.Payments.PayoutManager.<PayoutPoolBalancesAsync>d__13.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 164 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at MiningCore.Payments.PayoutManager.<PayoutPoolBalancesAsync>d__13.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 175 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at MiningCore.Payments.PayoutManager.<ProcessPoolsAsync>d__11.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 97    at MiningCore.DaemonInterface.DaemonClient.<BuildRequestTask>d__15.MoveNext() in D:\git\miningcore\src\MiningCore\DaemonInterface\DaemonClient.cs:line 235 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at MiningCore.DaemonInterface.DaemonClient.<ExecuteCmdSingleAsync>d__131.MoveNext() in D:\git\miningcore\src\MiningCore\DaemonInterface\DaemonClient.cs:line 179
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MiningCore.Blockchain.Bitcoin.BitcoinPayoutHandler.d__9.MoveNext() in D:\git\miningcore\src\MiningCore\Blockchain\Bitcoin\BitcoinPayoutHandler.cs:line 233
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MiningCore.Payments.PayoutManager.d__13.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 164
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at MiningCore.Payments.PayoutManager.d__13.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 175
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MiningCore.Payments.PayoutManager.d__11.MoveNext() in D:\git\miningcore\src\MiningCore\Payments\PayoutManager.cs:line 97

[2017-11-12 23:55:15.6853] [I] [PayoutManager] Processing payments for pool GLT
[2017-11-12 23:55:15.7078] [I] [GLT] [Bitcoin Payout Handler] Unlocked block 255482 worth 100 GLT
[2017-11-12 23:55:15.7133] [I] [PayoutManager] Processing payments for pool GLT, block 255482
[2017-11-12 23:55:15.7342] [I] [GLT] Adding 1.5 GLT to balance of GR75m73cMwbgjVXUsUdDaTtVa7zRdfFtFS
[2017-11-12 23:55:16.3006] [I] [PayPerLastNShares] Balance-calculation completed with accumulated score 0.0444 (2.2%)
[2017-11-12 23:55:16.3217] [I] [PayPerLastNShares] Adding 2.18503 GLT to balance of GVrPkXik9dFYvx7jF8eH1v3UMrr6H7XvxG for 39 shares
[2017-11-12 23:55:16.7159] [I] [PayPerLastNShares] 39 shares contributed to a total payout of 2.18503 GLT (2.22% of block reward)
[2017-11-12 23:55:16.8040] [E] [PayoutManager] [GLT] Payment processing failed MiningCore.DaemonInterface.DaemonClientException: Internal Server Error

I use a local wallet address of both (sender and receiver). I mean that send a coin from pool wallet to pool wallet address.

Strange. It crashes in Line 233 but I'm missing the log output from Line 219 in your log - https://github.com/coinfoundry/miningcore/blob/master/src/MiningCore/Blockchain/Bitcoin/BitcoinPayoutHandler.cs#L219

Any chance for you to debug this?

@oliverw, What should I post or give related with this  error?
I  am under test a miningcore on  windows computer, there installed a BTC and GLT wallet. for sure I uses a both of wallet and its address for payment send and received.
Total GLT balance on payment address is 200GLT.
Payment step.
Unlocked a block(255482) ---> Processing paymnets for pool  GLT, block 255482 ----> Adding 1.5 GLT to OP address ---> PPLNS adding 2.18503 GLT to blance of miner addrerss (2.22%) ---> Payment failed
The paymanet process  log of GLT.
[2017-11-12 23:55:15.7078] [I] [GLT] [Bitcoin Payout Handler] Unlocked block 255482 worth 100 GLT
[2017-11-12 23:55:15.7133] [I] [PayoutManager] Processing payments for pool GLT, block 255482
[2017-11-12 23:55:15.7342] [I] [GLT] Adding 1.5 GLT to balance of GR75m73cMwbgjVXUsUdDaTtVa7zRdfFtFS
[2017-11-12 23:55:16.3006] [I] [PayPerLastNShares] Balance-calculation completed with accumulated score 0.0444 (2.2%)
[2017-11-12 23:55:16.3217] [I] [PayPerLastNShares] Adding 2.18503 GLT to balance of GVrPkXik9dFYvx7jF8eH1v3UMrr6H7XvxG for 39 shares
[2017-11-12 23:55:16.7159] [I] [PayPerLastNShares] 39 shares contributed to a total payout of 2.18503 GLT (2.22% of block reward)
[2017-11-12 23:55:16.8040] [E] [PayoutManager] [GLT] Payment processing failed MiningCore.DaemonInterface.DaemonClientException: Internal Server Error

@oliverw could you write here exactly what you needed for debug?


Javascript update

Docs Build status updates of commit 610326c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

tutorials/javascript.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Terraform plugin state commands

Platform or tool
Terraform
Desired or expected behavior
terraform state [subcommand] should work.
Subcommands:
    list                List resources in the state
    mv                  Move an item in the state
    pull                Pull current state and output to stdout
    push                Update remote state from a local state file
    replace-provider    Replace provider in the state
    rm                  Remove instances from the state
    show                Show a resource in the state

Current behavior
Commands fails with no valid credential sources found.
terraform init and plan | apply work fine.
Relevant log output
Error: No valid credential sources found
│
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│
│ Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled,
│ context deadline exceeded

### op CLI version

2.23.0-beta.01

I see this same problem.  I am able to do a "terraform state list" but if I try to do a "terraform state show xxxx" it fails.
Additionally a "terraform providers" fails in a similar way.
I'm also curious to know what the state of the terraform plugin truly is.  Its been in beta for quite some time. Is there any hope or expectation that it will reach an official release?

@federicopires FYI, we were able to move past this terraform beta version.  Recently the main desktop app was updated and would no longer work with the older beta 1password-cli version.
Once we were on the latest version of the desktop app and 1password-cli and things were functioning there, we of course no longer had the terraform plugin that was included in the 2.23.0-beta.01 version.
To address this, you can simply just clone this repo and then issue the following commands:
make terraform/validate
make terraform/build

Now you should have the latest versions of the desktop app, 1password-cli, and a locally installed version of the terraform plugin.  This now has allowed us to use all of the terraform state and terraform providers commands without issue.  You will see a slightly annoying WARNING message about it not being an official plugin but for now I can accept this.
Hope that helps folks out.  Here is to hoping that 1password will just start including the terraform plugin in the latest 1password-cli releases?


pip install with wrong parameter format

maybe misspelling(intake-parquet=0.2.2 altair=3.2.0 should be intake-parquet==0.2.2 altair==3.2.0)

Thanks for the fix @pzghost Could you just update the PR title to be more clear what is this PR doing

@zjffdu  Updated title. THX.

@pzghost Please take a look into Contribution Guide

I just ran into this same issue.   Would be great to get it merged.

LGTM merge to master


Prevent user from accidentally logging out of cloud social network

Fix https://github.com/uProxy/uproxy/issues/2349:

The "Log-out of uProxy" button should not appear if the user's only logged-in network is cloud
If the user does click "Log-out of uProxy" (available when they are logged into a non-cloud social network), this should log out of all networks except cloud
Added a sanity check in the logout method uproxy_core.ts to fail if the UI attempts to logout of cloud.

This change is

:+1:


Fixes to data cleanup job test

This includes a trivial fix for a broken test. Another commit also changes a default internal setting of the EventThrottler so that it makes more sense in the general case.

Can you explain in brief why you are bumping up the number ?

Yes sure.
I originally set the EventThrottler's default window size to 50 ms, because the previous implementation was checking rates at that interval. I think the main reason why the previous implementation's window was so small is that it didn't have rolling windows so it needed to be small in order to avoid overshooting too much.
However, such small interval does not work well with Tehuti rates when the target throttling rate is less than 20/sec. The reason being that it will register one event, then measure its rate over the span of 50 ms, and come up with a rate of 20 events / seconds. If the throttler code was set to target 1 QPS, it would then determine it needs to sleep for 19 seconds, even if that event was the only one that would come during that second...
There could be use cases where one truly wants to throttle with a 50 ms interval, but I don't think that's necessary for us. Since it breaks the low throughput case, it seems like an inconvenient default. We can always pass in whatever interval we want in order to override the default in specific use cases, if need be.
-F

Makes sense. Thanks for the explanation.


Add protocol detection

We should detect http vs https so it doesn't throw mixed content warnings.

Updated on master!


Add Xdebug debugging support to new projects

When a new project is initialized, the Docker Compose configuration should already contain the necessary configuration which are needed to use Xdebug for debugging. Debugging should, however, be turned off by default.

Hello,
I'm attempting to set up remote debugging with Xdebug in localbeach. Despite thoroughly reviewing the documentation and configuring the following variables:
PHP_XDEBUG_ENABLE=true
PHP_XDEBUG_CONFIG=serverName=${BEACH_VIRTUAL_HOSTS}
PHP_IDE_CONFIG=serverName=${BEACH_VIRTUAL_HOSTS}
PHP_XDEBUG_CLIENT_HOST=host.docker.internal
PHP_XDEBUG_MODE=debug,develop
PHP_XDEBUG_DISCOVER_CLIENT_HOST=1
PHP_XDEBUG_MAX_NESTING_LEVEL=1000
I'm encountering issues with it not functioning correctly, and I'm unable to connect to the server. I've tried implementing a custom Docker setup, which works well. However, upon comparing this with the localbeach setup and examining the phpinfo output, I noticed that the serverName is consistently empty when running the project via localbeach. Additionally, I suspect that the xdebug.start_with_request setting is not optimally configured. I managed to rebuild the flownative nginx container with these settings, achieving functionality only for the initial request, but I'm struggling to determine how to set the server name correctly.
Could you kindly provide additional guidance on how to effectively utilize Xdebug in localbeach?
Best regards,