Issue running on Google Colab w/ GPU

I've been trying to get turicreate models to train on Google Colab's Python 3 + GPU runtimes. Thus far, I've closely followed many different blog posts and open issues to see if I could get something working with little success.
Environment Details
Python Info
3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]

CUDA 10 comes by default
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

The work around I attempted was to uninstall that version along with the associated nvidia drivers/tools, then reinstall everything for CUDA 8, producing this:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

Turicreate and Mxnet versions
mxnet-cu80               1.1.0
turicreate                    5.4

OS Info
!uname -a
Linux f82bf6d665b4 4.14.79+ #1 SMP Wed Dec 19 21:19:13 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

Where it breaks
Once I do all of the package installation, I import turicreate and make sure to set the number of gpus to use all available: tc.config.set_num_gpus(-1). I then proceed to load data, create training and testing sets, and train the object detection model. While training, it starts to download NN layers and then all of a sudden it crashes my session due to maxing out the available RAM. Training code snippet below:
# Create an object detection model
model = tc.object_detector.create(
    dataset=train_data,
    max_iterations=30
)

The dataset being used is pretty small (under 1 GB) and there is 12GB Gen RAM available and ~15GB GPU RAM. It's unclear how to get this model to train using the GPU as I have followed most examples/instructions found online. It's possible I have something wrong with my environment, it's a Google issue, or there's something else I haven't thought of. Happy to share the colab notebook if that would be helpful.
Thanks!

FWIW - It appears the machine that Google has scheduled my compute is on Ubuntu 18.04. I learned, according to nvidia's site, CUDA 8 is not supported there ---> https://developer.nvidia.com/cuda-80-ga2-download-archive.

Though what I have read contradicts this, I was able to run things successfully using CUDA 10 and mxnet-cu100 (latest version 1.4.0.post0), despite the warnings thrown during import:
WARNING:root:TensorFlow version 1.13.1 detected. Last version known to be fully compatible is 1.12.0 .
WARNING: You are using MXNet 1.4.0 which may result in breaking behavior.
         To fix this, please install the currently recommended version:

             pip uninstall -y mxnet && pip install mxnet==1.1.0

         If you want to use a CUDA GPU, then change 'mxnet' to 'mxnet-cu90' (adjust 'cu90' depending on your CUDA version):

I will go ahead close this issue for now.


supplementary code/data

Hi, thank you for this interesting work. I would like to know if there are the models weights available and if there is a script to convert the xml files from the datasets (IU dataset) to an annotation.json file?
Are these the weights?: https://github.com/cuhksz-nlp/R2GenCMN/blob/main/data/r2gencmn.md
here is some code I wrote:
import pandas as pd
from os import listdir
from os.path import isfile, join
import xmltodict
from sklearn.model_selection import train_test_split
SEED = 0
path = 'path/to/ecgen-radiology/'
annotationFiles = [path+f for f in listdir(path) if isfile(join(path, f))]
train, tmp = train_test_split(annotationFiles, test_size=0.3, random_state=SEED)
val, test = train_test_split(tmp, test_size=0.66, random_state=SEED)
train_lst = []
val_lst = []
test_lst = []

def get_ann_(lst, subset, subset_lst):
    for file in lst:
        with open(file) as xml_file:
            data_dict = xmltodict.parse(xml_file.read())
            if 'parentImage' not in data_dict['eCitation']:
                continue
            #print(data_dict['eCitation']['parentImage'])#[0]['@id'])
            if type(data_dict['eCitation']['parentImage']) == list:
                img_paths =<EMAIL_ADDRESS>for x in data_dict['eCitation']['parentImage']]
            else:
                img_paths = [data_dict['eCitation']['parentImage']['@id']]
            ann_id = img_paths[0].replace('.png', '')
            report = ' '.join([x['@Label'] + " " + x['#text'] if '#text' in x else '' for x in data_dict['eCitation']['MedlineCitation']['Article']['Abstract']['AbstractText']])
            annotation = {'id': ann_id, 'report':report, 'image_path': img_paths, 'split':subset}
            subset_lst.append(annotation)
get_ann_(train, 'train', train_lst)
get_ann_(val, 'val', val_lst)
get_ann_(test, 'test', test_lst)
res = {'train': train_lst, 'val': val_lst, 'test':test_lst}

Excuse me, do you know how to convert the mimic-reports in mimic-cxr into the form of annotation.json? If possible, can you provide the code?

Hi,
Thanks for your attention!
You can apply the dataset here with your license of PhysioNet.
Best,
Zhihong


composer install command doesn't run during build in php

If I'm right, the existence of composer.json is needed for the composer, right? So I can detect if the file exists and run the composer.

In meantime, I figured it out. :)


Feature Request: Argument of a complex number

There has been tf.complex_abs for absolute value.
I request for something like tf.complex_arg which calculate the argument of complex numbers.
Constructor like tf.complex_polar(abs, arg, name=None) is also nice.

This is a dupe of https://github.com/tensorflow/tensorflow/issues/483


Add rollbar

Note that we will have to update the deploy environment to include ROLLBAR_ACCESS_TOKEN

Resolve conflicts and merge.  The access token is in place on the server

Rebased and fixed. Waiting on travis before merging.

Looks like I messed up with rebase - I'll fix this next week


Optimize expression mapper and array mapper

What kind of change does this PR introduce? (check one with "x")
[] Bugfix
[] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[*] Other... Please describe: Optimize mapper performance.

This PR use to optimize expression mappe and array mapper, it has very bad performance according to our testing, here is a table to describe.
The number got by the total time spend by 100 users and each user send 1000 requests with rest trigger.

Name
Users
Requst Num
Total spend time

Previous Assign
100
1000
~38s

Expression mapper
100
1000
~3m20s

Optimized Expression mapper
100
1000
~58s

New Assign
100
1000
~45s

We can see there is significant improve. Here is what I did

Remove regex which takes times
Remove duplicate code and unused code
Rewrite a new mapping string parser

You might also aware that I updated old assign to new to support more features. such as: $activity[rest].body["x.y"] x.y is body's field name and good to support complex attribute mapping.
I also optimized array mapping by add more mapping type at leaf node mapping. prevuios we just have primitive, but now it is compatible with mapper type assign, literal and expression
Test: I have tested all go test with no issue found and I tried serveral test case which generated by web UI.

Hi @lixingwang can you include your bench mark test, if you haven't already

@fm-tibco I added benchmark tests for mapper types.  please take a look./


docker push keeps retrying and failing to local registry

$ docker run -d -p 5000:5000 --name registry registry:2
$ docker push --disable-content-trust=false localhost:5000/ubuntu
The push refers to a repository [localhost:5000/ubuntu]
2f1da5476ba7: Pushing [==================================================>] 136.4 MB
could not verify layer data for: sha256:2f1da5476ba736f1c02df28b51515b4a996a55d6d8378a480ef7486a0d568ae2. This may be because internal files in the layer store were modified. Re-pulling or rebuilding this image may resolve the issue

I saw the 500 error in the docker registry log
time="2016-11-07T17:33:11Z" level=error msg="response completed with error" err.code=unknown err.detail="unexpected EOF" err.message="unknown error" go.version=go1.6.3 http.request.host="localhost:5000" http.request.id=aba55e29-f48f-4a22-b833-a42c66911f4f http.request.method=PATCH http.request.remoteaddr="<IP_ADDRESS>:35133" http.request.uri="/v2/ubuntu/blobs/uploads/062ec770-029f-417e-9f3c-1fb3150bf938?_state=kq_Zaj2MK2tHEQWBRfNagoqe1mLARvBBrajE-qyX2T97Ik5hbWUiOiJ1YnVudHUiLCJVVUlEIjoiMDYyZWM3NzAtMDI5Zi00MTdlLTlmM2MtMWZiMzE1MGJmOTM4IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDE2LTExLTA3VDE3OjMyOjQ2LjYzMDA5ODkyM1oifQ%3D%3D" http.request.useragent="docker/1.12.2 go/go1.6.3 git-commit/bb80604 kernel/3.13.0-95-generic os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.2 \\(linux\\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=24.438541532s http.response.status=500 http.response.written=70 instance.id=da4c4fab-730c-4be4-8c1a-38b9bcdfb6b6 vars.name=ubuntu vars.uuid=062ec770-029f-417e-9f3c-1fb3150bf938 version=v2.5.1

$ docker info
Containers: 9
 Running: 1
 Paused: 0
 Stopped: 8
Images: 10
Server Version: 1.12.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 51
 Dirperm1 Supported: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host null bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 3.13.0-95-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 80
Total Memory: 503.8 GiB
Name: summerpalace
ID: YPT4:YO6X:2QND:TWUU:S7ZN:CB4E:CSLJ:LQTL:WTZ3:DX7G:U6RU:OE2J
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 dockmaster.prod.luminatewireless.com:4001
 <IP_ADDRESS>/8

@mzhaom can you post the registry logs for the entire push operation up until the error, as well as the deamon logs (in debug mode)

This the registry log:
registry.txt
The docker daemon log:
docker-daemon.txt

A little more information. The image was pulled from a v1 registry. I don't know whether that might cause any issue.

i am getting the exact same error. if someone finds solution please share....need urgently

@saravpkkl can you open up a new issues and please include your registry configuration. This is a similar issue but doesn't appear to be the exact same issue.

@mzhaom Are you still hitting this issue and if yes, what are the steps to reproduce it?

This is already fixed and closed
On Tue, Apr 25, 2017 at 5:02 AM, sudhanshu-garg<EMAIL_ADDRESS>wrote:

@mzhaom https://github.com/mzhaom Are you still hitting this issue and
if yes, what are the steps to reproduce it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/distribution/issues/2042#issuecomment-296850197,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJJcotTovkbJX4TSf4eMj0fed-KwwP1dks5rzTEEgaJpZM4Kru6w
.

@saravpkkl can you point to the commit with the fix?

I'm also hitting this issue. Unless someone can point to the fix, I would still consider this an open issue.

I'm also seeing this. docker service logs also shows no recognizable errors on the side of the registry, but eventually the push fails with a 500 internal server error.

anyone found a solution for this issue ?

Hey @mMohamed451
In my case all i needed to do was to remove limits on any load balancer before the registry.
I don't know your actually setup, but it is something like this: https://github.com/nginxinc/kubernetes-ingress/issues/21

i have a solution , make sure that you have the correct tag name for the image , i think this will fix this issue

i think i have a solution , make sure that you have the correct tag name for the image , i think this will fix this issue

I had a very similar error (retrying until failure) and it was not related to docker, but to the file system of the machine hosting the registry. In my case the logs were almost identical to yours except that they said
msg="mkdir: [...] permission denied"
I solved it by running the update-permissions gitlab script.
Now your case seems to be a little different. From your logs:
msg="unknown error reading request payload: unexpected EOF"
I'd take a look at the registry's directory (in my case it was /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/v2/) and inspect what's going on there. Have a look at the permissions and search for corrupt files. I hope this helps.

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

Looks like the issue is about the registry denying the access, in my case I forgot I deleted the registry on the host

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

@bachya Thanks so much for this! For some reason I can't seem to find any real docs on REGISTRY_HTTP_HOST anywhere. Do you recall where you found the documentation for this?

Make sure you have given right project id when docker build command was run
gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld
here replace project id properly.
In my case this was the issue

I have the same issue with a custom caffe image

I have the same issue.
controller-0:~$ sudo docker push <IP_ADDRESS>:5000/docker.io/nfvpe/multus:v3.4
The push refers to repository [<IP_ADDRESS>:5000/docker.io/nfvpe/multus]
b39e09a96a41: Retrying in 14 seconds
b4b5c7759f04: Retrying in 13 seconds
877b494a9f30: Retrying in 13 seconds

Please check your docker proxy settings in /etc/systemd/system/docker.service.d/http-proxy.conf. If you set the proxy, you need set no proxy entry.
[Service]
Environment="HTTP_PROXY=http://[your proxy]:[port]/" "HTTPS_PROXY=http://[your proxy]:[port]/" "NO_PROXY=localhost,<IP_ADDRESS>,[your private docker registry]"

Another way, disable the proxy file with mv http-proxy.conf http-proxy.bak directly .
Notice，after you changed your proxy file. you have to reload the docker service.
 sudo systemctl restart docker
sudo systemctl daemon-reload

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

Thank you very match! This worked for me

I had the same issue but all I had to do was enable this : Google Container Registry API in the google cloud console, worked fine after that.

i think i have a solution , make sure that you have the correct tag name for the image , i think this will fix this issue

This fixed an issue I was having with pushing to Nexus thank you @mMohamed451

I had to docker logout + docker login after changing my API key / password.
I did not see anything in the docker daemon logs. I wish it would show the error while it was retrying so we wouldn't have to guess the issue.

It was missing IAM permission on the user in my case.

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

That's it. You saved my life :))). Thanks a lot.

It was missing IAM permission on the user in my case.

Hey, what permission are you missing?

It can be a disk/storage utilization issue.

It happened to me, the issue was that i had no permits to create a new image, if you wanna overcome without adding permissions, upload using a different label to your image, and you should be fine =)
if nt, just add permissions to your role =)

This might only be my stupidity (probably), but I missspelled ghcr.io for ghrc.io.

thanks, solve my question
$ docker run -d --restart=always --name registry  -p 35000:5000 -v /var/lib/registry:/var/lib/registry registry:latest
$ echo "<IP_ADDRESS> registry.demo" >>/etc/hosts
cat <<EOF> /etc/docker/daemon.json
{
  "insecure-registries" : ["registry.demo:35000"]
}
EOF

$ docker push registry.demo:35000/registry:latest
The push refers to repository [registry.demo:35000/registry]
bd8ea65e605d: Retrying in 20 seconds
665fce3f5a4e: Retrying in 5 seconds
f24009e23f0f: Retrying in 20 seconds
f68373c1ba86: Retrying in 5 seconds
78a822fe2a2d: Retrying in 20 seconds

$ cat  /etc/systemd/system/docker.service.d/proxy.conf
[Service]
Environment="HTTP_PROXY=http://xxxxx:7890"
Environment="HTTPS_PROXY=http://xxxxx:7890"
Environment="NO_PROXY=localhost,<IP_ADDRESS>,.example.com,registry.demo:35000,<IP_ADDRESS>"

$ systemctl daemon-reload &&systemctl restart docker && systemctl status docker

$ docker push registry.demo:35000/registry:latest
The push refers to repository [registry.demo:35000/registry]
bd8ea65e605d: Pushed
665fce3f5a4e: Pushed
f24009e23f0f: Pushed
f68373c1ba86: Pushed
78a822fe2a2d: Pushed
latest: digest: sha256:0f7e785a49386d7e98c502151f9b01dc5578aa4f13078a346b2c5cf50433f663 size: 1363

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

Thank you very much! That fixed it for me!

This gave me the answer that worked for me – in short, ensure that you run your Registry container with the REGISTRY_HTTP_HOST env var specified:
docker run -e REGISTRY_HTTP_HOST=https://my.registry:5000 -d -p 5000:5000 --name registry registry:2

Thanks, worked for me :).

Closing as solved. See: https://github.com/distribution/distribution/issues/2042#issuecomment-606753339

Just in case somebody runs a private registry behind a nginx reverse proxy, the client_max_body_size must be increased or you will see docker layer upload retries when a layer is larger than 10M:
server {
    listen 443 ssl;
    server_name <domain name of ingress proxy, e.g. xyz.example.com>;

    client_max_body_size 50000M;

    ssl_certificate <path to ssl certificate chain file>;
    ssl_certificate_key <path to ssl key file>;
    ssl_protocols TLSv1.2 TLSv1.3;

    proxy_set_header Proxy "";
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # Docker registry
    location /v2 {
        proxy_pass http://<IP or domain of registry>:<port if not 80>;
    }
}

Make sure there is no extra spaces between each command


Navigation improvments

Codecov Report
Base: 90.24% // Head: 90.23% // Decreases project coverage by -0.01% :warning:

Coverage data is based on head (7a57422) compared to base (f8e300e).
Patch coverage: 87.27% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #72      +/-   ##
===========================================
- Coverage    90.24%   90.23%   -0.02%
===========================================
  Files           26       26
  Lines          902      911       +9
===========================================
+ Hits           814      822       +8
- Misses          88       89       +1

Impacted Files
Coverage Δ

src/ragger/backend/interface.py
100.00% <ø> (ø)

src/ragger/backend/ledgercomm.py
92.85% <50.00%> (ø)

src/ragger/backend/ledgerwallet.py
89.18% <50.00%> (ø)

src/ragger/backend/speculos.py
94.54% <86.95%> (-1.54%)
:arrow_down:

src/ragger/navigator/navigator.py
93.33% <92.85%> (+0.59%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Synoptic

Attempt to create an approximation of the synoptic layout as used in CS-Studio and EDM, along with some other demonstrations such as a mobile friendly layout and performance page

Quite a few changes here but most of the important ones are quite likely to be revisited, so I'm happy to merge. Unfortunately Travis seems a bit busy right now.

Yea I'm quite happy to fix some small changes if you have any more suggestions, otherwise we should probably make issues for the bigger issues and move on.
Would be nice to wait for Travis to verify this.


adjust for update to apex

The apex package is going to update soon (See: https://github.com/thibautjombart/apex/issues/46). With this update comes a change to the accessor locusNames(). It has now been changed to getLocusNames() and setLocusNames(). This will have to change in these two lines: https://github.com/NESCent/popgenInfo/blame/cb0d66460c062ff8e2990c185b7f737f69f54050/use/PopDiffSequenceData.Rmd#L50-L51
The pull request should only be initiated once apex is on CRAN and the Docker container is rebuilt

Apex has been updated. As soon as the docker container is updated, we should create a pull request from the apex-update branch.

I triggered a rebuild, succeeded. Submitted pull request, see #181. Triggered re-run of the CI test.

I believe this is done.


Write Tutorial to using DPP UI

Documentation Request Type

Please choose one of the following:

[x] New documentation
[ ] Documentation needs enhancement or clarification
[ ] Documentation is broken, inaccurate, or out of date

What needs to be done
Write tutorial for DPP UI
Result
There is a tutorial available for people to use DPP UI

Changed "quick start" terminology to "tutorial"

Website: https://atlana.readthedocs.io/en/latest/
Repo: https://github.com/AgPipeline/Atlana/tree/documentation
PR: https://github.com/AgPipeline/Atlana/pull/2


Custom Chat Input Bar - Weird Keyboard Height.

Hello sir,
Thank you very much for your lib.
in my case, i custom Chat Input Bar With Custom View.

But i have some weird bug when open keyboard, and enter multiline in textview. See in this video.
https://streamable.com/b0nts
Im using Chatto vs Chatto Addition (3.3.1 Build with swift 4.0) via Cocoapod.
Thank you very much.

Sorry, i am using IQKeyboardManager but forgot disable for chat screen.


Cannot return null for non-nullable field LastEventEntity.collectionName

What happened?
I opened https://kodadot.xyz/bsx and I have seen error
Please reproduce in steps

open https://kodadot.xyz/bsx

Expected Behavior
Fixed GraphQL query
Can be also some unimplemented feature of kodadot/snek
What browsers are you seeing the problem on?
Chrome
At which address did you encounter bug?
kodadot.xyz
Are you logged in?
No response
Which wallet you are using?
PolkadotJS
Screenshots

Relevant log output
No response
Payment link for reward
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

:wave:

I don't think it can be fixed on the frontend, we'll need to check the lastEventQuery from kodadot/snek repo

@roiLeo can you please provide your addr in description?


Proper TSIClient example with msal.js (using up-to-date libraries)

I see that every example for this library is using the adal.js library which is marked as deprecated. I want to evaluate if tsiclient.js is a good option to connect with our azure b2c time series db. Maybe it is the only option anyway.
Now for a start, a proper basic example with the recommended libraries like msal.js would help alot. Another Problem is the authentification documentation seems to focus only on C# and is about using the "client secret" which i do not find in the msal.js documentation (again no examples how to use it). The same Problem: The C# Documentation for msal.net is used for the main manual for msal.js. It is a mess :)

msal.js works much in the same way as adal.js (give it an appID, give it some scopes, etc etc).  A guide to migrating from adal.js to msal.js can be found here.  If you apply that to the authentication code that uses adal.js in the examples we've shown, it should work just fine with msal.js.  I use both adal.js and msal.js regularly depending on context, and they are fairly easy to switch between
But as you'll see from the examples, the setup of authentication is actually external to this library.  The tsiclient library just takes an access token for the TSI API, which can be obtained in any number of ways.  I used adal.js in the examples because it was the recommended client side auth library for AAD at the time.  Since it just uses a bunch of vanilla OAuth2 mechanisms, it still works for the purpose it serves in these examples...which is to illustrate the usage of tsiclient, not to be a resource for client side AAD auth libraries
If you believe the documentation for msal is incorrect or misleading, I would follow up in that repository.  Regardless, I don't believe that illustrating the usage of msal.js for a generic web app is something that needs to be done in this repo, and the usage of msal.js (or any other auth library) is also external to whether or not you should use tsiclient.js, so I am going to close this issue


How can i change the icon displayed by os_icon

I want to show the arch logo, instead of Penguin logo. What do i have to change?

If you have Nerd Fonts installed put this in your .zshrc.
POWERLEVEL9K_LINUX_ICON='\uf300'

I have Nerd Font Installed, and my terminal is using UbuntuMonoDerrivativePowerline Nerd Font Regular, amd i set
POWERLEVEL9K_LINUX_ICON='\uf300'
but, still shows the pengiun icon.

Hey @yurividal -
If you type:
$ echo $'\uf300'

Into your command line, do you see the Arch logo?

yes

@bhilburn it worked! i had tomove the following lines to the begginig of the .zshrc file.
 POWERLEVEL9K_MODE='nerdfont-complete' POWERLEVEL9K_LINUX_ICON='\uf300'
so now my config starts with these 2 lines. before, they were further down bellow, together with the other config lines


unable to use it via cocoa pods

/usr/bin/pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
[!] Unable to find a specification for SugarRecord

They started from scratch. It is going to take a while. I don't want to disrespect but, it didn't have much support in previous version either. I hope they go strong this time. Since my app was using it, I don't have any choice but to change it. Good luck.

As @tosbaha we started from Scratch, still building the version2. It'll take a while to have it ready but as soon as we have it we'll reach you.
Sorry @tosbaha about not being able to support the you that much with the previous version. We're trying to do it much better with this version.


bsc#988980 is patched, re-add ssl for cinder

Depends on https://github.com/crowbar/crowbar-openstack/pull/538

Can we convert to a revert of the original commit? This makes clear the code.

@aplanas done

This should not have been merged before the milestone is out.


FR: Grafana variables

Hi, it seems that the datasource does not support passing Grafana variables, which is an issue when trying to create dynamical dashboard. Could you please confirm it and add the support, please?

Are you planning to release a new version?

Yes, tomorrow. But it also might take a bit of time, because grafana has to review the new release.

v1.2.0 has been deployed to the grafana plugin platform


[SPARK-12411] [CORE] Decrease executor heartbeat timeout to match heartbeat interval

Previously, the rpc timeout was the default network timeout, which is the same value
the driver uses to determine dead executors. This means if there is a network issue,
the executor is determined dead after one heartbeat attempt. There is a separate config
for the heartbeat interval which is a better value to use for the heartbeat RPC. With
this change, the executor will make multiple heartbeat attempts even with RPC issues.

Test build #47956 has started for PR 10365 at commit c899481.

Is the issue you're trying to fix the following: there can be up to 12 parallel heartbeats to the driver from each executor? Other than that, is there any other change in behavior that you're expecting as of this patch?

Test build #47956 has finished for PR 10365 at commit c899481.

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

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

Merged build finished. Test PASSed.

I think there can only be 1 heartbeat in flight but because of the network timeout, the executor only gets 1 try instead of 12.

there can be up to 12 parallel heartbeats to the driver from each executor?

12 parallel heartbeats? Why there are so many heartbeats in flight?

12 parallel heartbeats? Why there are so many heartbeats in flight?

There can't be because we use a single thread for the heartbeat; it was my misunderstanding.

LGTM merging into master.


UIView rotate(toAngle

This method will reset all other transformations applied to the view. UIView rotate(byAngle behaves differently

looks like UIViewExtensions.swift problem with override or animation stuff at line 316 and line 336

@bastianschilbe fixed in #48, Thank you for reporting.


delegated api support

This is on hold.
We will most likely invert the API to use a deny list rather than allow list.  If the workload matches a list of "bad" programs we should not issue a cert.
This should allow us to mitigate against attacks such as CodeCov for our customers.
This adds CLI support for the SPIRE delegated API.
merge first: https://github.com/testifysec/go-witness/pull/5

commit should be feat: xxxx to match conventional commit structure and change log generator to work correctly

Closing for now


Fix right click crash in Locales Filter

Fixes https://github.com/godotengine/godot/issues/32052

Thanks!


[QoL] Block placement sound

Trowel has behavior similar to placing a block with the /setblock command now

was fixed in 1.2.0


Test for preferred_address uses an invalid format

The test which assert a server rejects transport parameters with a preferred_address uses a bogus format. This is likely to result in triggering a parsing error instead of just checking the server rejects the presence of this parameter.
I think malformed parameters are also an interesting case, but they should be kept separate.

Is the following data good enough?
"7f000001"
"01bb"
"00000000000000000000000000000000"
"0000"
"08"
"0001020304050607"
"000102030405060708090a0b0c0d0e0f"

Sure that looks fine!

Fixed in 7c5ce12ee7eef4b248dae5c99c319ca668ba5f09


Add blog post about k8s runtime observability

Hi folks!
Last week I was doing a PoC on instrumenting Kubernetes with OpenTelemetry traces with Tracetest team, and we thought that it could be good to blog about it and wanted to share it with you in this blog post.
What are your thoughts about it? Do you think it makes sense?

Preview:

~https://deploy-preview-2779--opentelemetry.netlify.app/blog/2023/creating-k8s-cluster-with-runtime-observability/~
https://deploy-preview-2779--opentelemetry.netlify.app/blog/2023/k8s-runtime-observability/

@svrnm and @chalin, thanks for your feedback! I've pushed a new version considering your comments.

Of course, you need to address the check failures.

Hi folks, thanks for your feedback!
I've addressed the pipeline failures. It should be working now. @chalin, @svrnm, and @cartermp, feel free to add any comments about the changes and existing text.
Thanks!

@cartermp done! Thanks!


Dummy PR to test authorization

Dummy PR to test authorization

/te-ci pytorch

/te-ci

@Oleg-Goncharov Tested?

@ksivaman I did, but not authorized to trigger /te-ci for some reason. Let's keep this dummy PR until the issue is resolved, so I can test it later

/te-ci

/te-ci

/te-ci

/te-ci


missing TodoItems declaration in TodoController

Issue: https://github.com/aspnet/Docs/issues/1319

Hi @TomGeske, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Thank you Tom for that important correction!  50d035e7636602bd7133be011c002cf4e3c3282b


FIDO U2F action authentication (Yubikey)

There could be good reasons to lock certain changes or all actions behind individual authentications. So that you will have to actually use the key when you want a new server or update a config or something like that.
Adding some good reading on how to implement.
https://rodneylab.com/sveltekit-fido-u2f-login/   # Good for frontend
https://github.com/tstranex/u2f                   # Seems to be simpel for backend, but might be outdated
https://github.com/CaliOpen/gofido                # Seems to be actively used, but something looks strange at first glance

Webauthn or fido2 might be a better goal.
https://github.com/fxamacker/webauthn

This is probably the best base.
https://github.com/go-webauthn/webauthn


Standard users are unable to provision Elemental clusters from Cluster Management

Setup

Rancher version: v2.6.8
Browser type & version: Chrome

Describe the bug

Currently, in order to perform any sort of Elemental operation, you need to be one of two things:

The default admin user
A user that is a Cluster Owner on the local cluster

The second point here is problematic as it is not a good workflow to assign non-admin users to be a Cluster Owner, just to be able to work with Elemental. While Elemental, by design, is catered towards more administrative personnel such as sysadmins, we need to be mindful of RBAC here, standard users in particular.
When going to Cluster Management, you are only able to see the option to create an Elemental cluster if you are either an admin user or Cluster Owner of the local cluster. That should not be the case and we should assume that not only admin users will be provisioning Elemental clusters.
Contrasting with Harvester for example, standard users are able to create Harvester clusters via Cluster Management BUT they are unable to modify any of the OS management handled within Rancher. We should apply the same RBAC rules for Elemental.
To Reproduce

Setup Rancher, create a standard user and login as that user.
Navigate to Cluster Management and click Create.
Validate that you are unable to see Elemental after toggling to RKE2/K3s.

Result
Standard users are unable to create an Elemental cluster from the Cluster Management page.
Expected Result

Standard users NEED to be able to create an Elemental cluster from the Cluster Management page.

I think this is the same bug as #19

They can do so if the user is assigned the role Elemental Administrator.
Admin must provide the user this level of access in order to be able to manage Elemental.

Tested today and looks good so far, I would like to do a last test before closing.

Today I was able to deploy k3s/RKE2 elemental node either as admin and user granted with elemental-administrator role!
This one can be closed as well.


Lifting IR Operation createArray

v0 <- LoadInteger '1'
v1 <- LoadUndefined
v2 <- CreateArray [v0, v1]

will be lifted to
const v2 = [1,];

Which means [1].  The comma will be interpreted as trailing comma by JS engine, which will be ignored. Then if i want a array which end with hole, i have to put two LoadUndefined there.
Is this intends? Thanks!

Ah yes, good catch and thanks for the PR, let's continue the discussion there!


[SPARK-16028][SPARKR] spark.lapply can work with active context

What changes were proposed in this pull request?
spark.lapply and setLogLevel
How was this patch tested?
unit test
@shivaram @thunterdb

example update in the other PR.

Test build #60755 has started for PR 13752 at commit 179fbdc.

Test build #60763 has started for PR 13752 at commit f5f401c.

Test build #60755 has finished for PR 13752 at commit 179fbdc.

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

Merged build finished. Test PASSed.

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

Test build #60763 has finished for PR 13752 at commit f5f401c.

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

Merged build finished. Test PASSed.

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

LGTM. Minor comment about docs

Updated. thx

Test build #60858 has started for PR 13752 at commit 978d1af.

Thanks - merging this to master and branch-2.0 after jenkins passes

Test build #60858 has finished for PR 13752 at commit 978d1af.

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

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

Merged build finished. Test PASSed.

I think spark.lapply() is a case that demonstrates the need for supporting Dataset in SparkR. Removing the explicit sc parameter is quite helpful to moving to Dataset internally in the future if Dataset is to be supported


Support Splatfest Player Crown, Player species and translate Challenges text

[x] Splatfest Player Crown
[x] Player species
[x] Translations for event

@frozenpandaman @spacemeowx2
Added species and crown type as attribute values for players structure.

API
attr
values

battle
players.species
"inkling" or "octoling"

battle
players.crown_type
"x", "100x" or "333x"

salmon
players.species
"inkling" or "octoling"

The crown_type is as follows:

key
meaning

"x"
Crowned Top 500 in X Battles

"100x"
Splatfest 100x battle winner

"333x"
Splatfest 333x battle winner

The battle already has a crown attribute (boolean); crown_type is added as a complement to crown.

If crown_type is set correctly, crown is automatically assumed to be truthy (="yes")
If crown is truthy and crown_type is not specified, its type is assumed to be "x" (for compatibility with older clients)

API documents have been updated.
If you have any questions, please ask on this issue, on our discord server, or in a private channel.
Note that while those settings are reflected correctly on the API response, there is not yet a UI that can be properly displayed on a web page 😢

woohoo, yay, thanks! will get this supported sometime tonight or tomorrow before the fest...

Close this issue as I can now remove it from my TODO list.
You guys may continue to write here if you have any questions.

@fetus-hina Just to clarify, unlike other attributes like rank_in_team, kill, etc. (which can be set both in the base payload and in the players struct), have these keys have only been added into the players struct? Or is it OK/expected to send it for both?
i.e. from the wiki API doc "For the player themselves, the same data will be sent twice in the main structure and this player structure." – is this true for these new keys too?
(question applies to both regular battles and Salmon Run)

They are added only to the player structure.
They are not particularly important information for the stat.ink user, so I have no plans to add them to the main structure.
However, stat.ink's system does not care about extraneous data, so there are no particular bad effects when you send them.


During object placement in "edit by camera"-mode you cannot set the camera's movement speed.

There are a lot of such places, I understand that you would like to restart LDYOM through the menu, but alas all places can not be fixed, you need to deal with each individual case. So my advice is to restart only with a complete reboot of the game.

I understand that you would like to restart LDYOM through the menu
That's not at all what I meant.

So my advice is to restart only with a complete reboot of the game.
How will rebooting the game make a feature, that doesn't exist, available?


Perform hot exit backup/discard operations in a queue

Fixes #16509
@bpasero please review :smiley:

@Tyriar not sure this is a good fix, now you are basically serialising all file operations into one queue even though they can execute in parallel as long as the resource they are talking about is different. Would it not make more sense to have a queue per resource?

@bpasero changed it to use a queue per-resource.

@Tyriar looks better. but now it seems we leak Queue objects for every file that is being backed up. I suggest to remove a queue when the last operation is finished.

@bpasero thanks for the feedback, good for another look.

@Tyriar great, I think the queue should also be disposed?

LGTM


Make Repository::update_submodules public.

Thanks for this! I've been hesitant to make this public in the past since I'd prefer to not stray too far from libgit2 itself, and this is a pretty inflexible method with how things are updated (and pretty easy to inline locally if necessary).

No problem. I see where you're coming from, given the difficulty I've had with it, myself.


Updated Readme and Changelog

updated compile commands
bring changelog up to latest version

Signed-off-by: Kenneth Lim<EMAIL_ADDRESS>

:star:


Cannot chat with one specific contact

When I try to send a message to one of my contact I get this error. I have deleted a previous device and added a new one.
I know have this folder structure.

Thanks, Cc: @mmaxim

This is a problem from KBFS, cc @strib any thoughts?


ModernHttpClient + PortableRest

Hi,
I noticed that Fusillade version 0.6 doesn't work with ModernHttpClient + PortableRest (Xamarin.Forms project), but adding the reference directly to Fusillade code works. Could you generate a new version for Fusillade since the latest one is from 2014?
Thanks,

0.7.0 has been released. Can you please try again now?

It did the job. Thanks!


Fix Get Geolocation Data - jQuery Selector

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm run test-challenges. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #9303

Description

Added instructions to use double quotes on jQuery selectors since this is stylistically preferred and FreeCodeCamp's tests don't seem to support double-quote selectors. This change will clarify this issue for learners.

@sthodup1
We have repeated this multiple times and the check list as well says the same, kindly make sure that you test all the changes locally.
npm run test-challenges
Please go though the Guidelines for Contributing.

@raisedadead I actually did run the tests locally this time. I'm not sure why it failed. I'll try again. Sorry for the trouble

@sthodup1 no issues, please take your time, :sweat_smile:
I am guessing the escaping in the quotes is the point of trouble.

LGTM :+1:

@sthodup1 This is weird the PR has made a change to a challenge other than that is mentioned in the original issue.
Are you sure you have tested this locally by actually running the server?

@raisedadead the issue in the challenge was caused by lack of clarity on single quote usage in selectors in the challenge I modified.
I've tested it with npm test challenges command. I'm not sure how to actually run the server to test but I'll look into it

@sthodup1 please re-visit the Guidelines for Contributing. Its all in there.

@raisedadead Found it! I'll check on the local copy and make any changes as necessary by the end of the day.

@raisedadead I've tested it on the local copy and it looks good to me

@sthodup1

the PR has made a change to a challenge other than that is mentioned in the original issue.

weren't we adding this to Get Geolocation Data challenge and not  Target HTML Elements with Selectors Using jQuery

@raisedadead The poster of the original issue had a problem completing the Get Geolocation Data challenge. However, the cause of the problem was that the poster attempted to use single quotes in a jQuery selector. Using single quotes for selectors could also cause other challenges to fail, and does not follow jQuery style practices. That's why I changed the Target HTML Elements with Selectors Using jQuery challenge. This is the earliest challenge that uses selectors, and it would be the best to tell people to use double quotes here.

@sthodup1 Can we link this in the Geo Location Challenge in that case?

@raisedadead I added a link to this change in the Get Geolocation Data challenge. (after some difficulties with git if you can't tell by the number of updates to the PR)

@sthodup1 thanks a lot for the hard work and time you have invested on this. Will QA and merge soon.

Geico ding is some awesome stuff man but how much good will Google's serves
be in the wake of Microsoft?
On Jun 27, 2016 12:24 PM, "Mrugesh Mohapatra"<EMAIL_ADDRESS>wrote:
@sthodup1 https://github.com/sthodup1 This is weird the PR has made a
change to a challenge other than that is mentioned in the original issue.
Are you sure you have tested this locally by actually running the server?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/pull/9391#issuecomment-228813698,
or mute the thread
https://github.com/notifications/unsubscribe/AJwcfXJQ6ZBjFHnSaC9ryNurnPWrd5TNks5qQAdBgaJpZM4I-mAe
.

:sparkles: :sparkles: LGTM. :sparkles: :sparkles:
Thanks.


Create datadog-synthetics.yml

Hi 👋
Can you help me understand how this PR is relevant and useful for this repo? Thanks!


M3-4778: Add "Edit" button on StackScript Detail page

Description
Add "Edit" button on StackScript Detail page; minor updates to associated test & a function name change in StackScripts.tsx.
Type of Change

Non breaking change ('update', 'change')

Note to Reviewers
Open to other ideas for the placement of the "Edit" button, but the upper right is consistent with what we have for Billing Contact, for example

Is the "Edit" button supposed to show up for Community StackScripts?

My initial thought is that it shouldn't, but I'll get confirmation on that

Is the "Edit" button supposed to show up for Community StackScripts?

My initial thought is that it shouldn't, but I'll get confirmation on that

Is the "Edit" button supposed to show up for Community StackScripts?

My initial thought is that it shouldn't, but I'll get confirmation on that

It definitely should not. Only show Edit if the current user has the ability to edit the StackScript. This might require checking grants for Account scripts, since there are per-user grants for each script.

@Jskobos I made an attempt at passing it down via props from StackScripts.tsx --> StackScriptsDetail.tsx --> StackScript.tsx, but it wasn't quite fruitful. I commented out some of the code associated with that attempt so you can get an idea of what I was trying.
On the other hand, in StackScriptRow.tsx, I persisted the category on the History object, and was able to use that in StackScript.tsx. With that approach it seems to work if a user navigates to a StackScript from the Account or Community tabs, but it wouldn't work if a user went to a direct URL.


Updated Readme.md

Typo/Styling Error:
Changed Nested yieldables are supported, meaning you can nest
To Nested yieldable objects are supported, meaning you can nest

thanks 92fd1b4b6634bf1f769ff77f3c7e1ef80a879f92


Add berp upgrade to gherkin v19.0.2 changelog

Added berp upgrade to gherkin v19.0.2 changelog

For small changes like this, please commit straight to the master branch.

@aslakhellesoy tried, but the GitHub web UI didn't allow me to do that (protected branch). I didn't try it directly from git though...


ParquetReader should check creator version before applying row group statistics

Describe the bug
as described in https://issues.apache.org/jira/browse/PARQUET-251, parquet files created by parquet-mr version <= 1.6.0 might contain incorrect row-group statistics.
newer parquet-mr version has added an extra logic to check parquet file creator, if it is created by buggy parquet-mr version. the statistics will be completely dropped. (the code is here: https://github.com/apache/parquet-java/blob/68e0eae9fb375d9b586ab3899828968f2a6d711e/parquet-column/src/main/java/org/apache/parquet/CorruptStatistics.java). we should keep the same logic with this implementation.
To Reproduce
query with buggy parquet file created by parquet-mr 1.6.0. the row group statisitcs is corrupted and results incorrect pruning and outpus.
Expected behavior
check parquet file creator, if created by buggy parquet-mr version, don't use its row group statistics.
Additional context
trino has fixed this bug: https://github.com/trinodb/trino/issues/1798

Labeling as an enhancement as the bug was actually in parquet-mr and working around it would therefore be a feature

I think it might also be reasonable for the rust reader to just return what is in the parquet file
In the trino case the higher level query engine knows ignore such statistics. It might be ok to have whatever is using parquet-rs be the one that ignores the statistics


examples/decrypt-cenc: slice bounds out of range

Using this file (444 KB):
https://user-images.githubusercontent.com/73562167/170490911-a4bb62b6-b841-4e1c-9158-ba7389e1a168.mp4

I get this result:
> decrypt-cenc -i enc.mp4 -o dec.mp4 -k 680a46ebd6cf2b9a6a0b05a24dcf944a
panic: runtime error: slice bounds out of range [5397:5391]

goroutine 1 [running]:
github.com/edgeware/mp4ff/bits.(*FixedSliceReader).ReadBytes(0xa75fe4?, 0x5d0000c0000564c0?)
        D:/Desktop/mp4ff-master/bits/fixedslicereader.go:205 +0xcb
github.com/edgeware/mp4ff/mp4.DecodeUnknownSR({{0xc00000a2f0?, 0xc000074540?}, 0xc00000a2f0?, 0x4?}, 0x115f?, {0xb05be8, 0xc0000564c0})
        D:/Desktop/mp4ff-master/mp4/unknown.go:29 +0x4b
github.com/edgeware/mp4ff/mp4.DecodeBoxSR(0xa1efa0?, {0xb05be8, 0xc0000564c0})
        D:/Desktop/mp4ff-master/mp4/boxsr.go:145 +0xe5
github.com/edgeware/mp4ff/mp4.DecodeContainerChildrenSR({{0xc00000a28c?, 0x0?}, 0x9d145d?, 0x4?}, 0x7d2, 0x280f, {0xb05be8, 0xc0000564c0})
        D:/Desktop/mp4ff-master/mp4/container.go:62 +0x135
github.com/edgeware/mp4ff/mp4.DecodeTrafSR({{0xc00000a28c?, 0xc000074540?}, 0xc00000a28c?, 0x4?}, 0xa4e985?, {0xb05be8?, 0xc0000564c0?})
        D:/Desktop/mp4ff-master/mp4/traf.go:46 +0x49
github.com/edgeware/mp4ff/mp4.DecodeBoxSR(0xb0258e?, {0xb05be8, 0xc0000564c0})
        D:/Desktop/mp4ff-master/mp4/boxsr.go:147 +0xb5
github.com/edgeware/mp4ff/mp4.DecodeContainerChildrenSR({{0xc00000a278?, 0xc000006030?}, 0xc000122000?, 0x2055?}, 0x7ba, 0x280f, {0xb05be8, 0xc0000564c0})
        D:/Desktop/mp4ff-master/mp4/container.go:62 +0x135
github.com/edgeware/mp4ff/mp4.DecodeMoof({{0xc00000a278?, 0xc000074510?}, 0xc00000a278?, 0x4?}, 0x7b2, {0xb038a8, 0xc000006030})
        D:/Desktop/mp4ff-master/mp4/moof.go:31 +0x134
github.com/edgeware/mp4ff/mp4.DecodeBox(0xc00011c000?, {0xb038a8, 0xc000006030})
        D:/Desktop/mp4ff-master/mp4/box.go:280 +0xb5
github.com/edgeware/mp4ff/mp4.DecodeFile({0xb038a8?, 0xc000006030}, {0x0, 0x0, 0x22d8433b1c8?})
        D:/Desktop/mp4ff-master/mp4/file.go:156 +0x237
main.decryptMP4withCenc({0xb038a8?, 0xc000006030?}, {0xc00007dea8, 0x10, 0x20}, {0xb038c8, 0xc000006038})
        D:/Desktop/mp4ff-master/examples/decrypt-cenc/main.go:76 +0x6d
main.start({0xb038a8, 0xc000006030}, {0xb038c8, 0xc000006038}, {0xc000010200?, 0xadade4?})
        D:/Desktop/mp4ff-master/examples/decrypt-cenc/main.go:52 +0xd2
main.main()
        D:/Desktop/mp4ff-master/examples/decrypt-cenc/main.go:36 +0x212

This other tool works as expected:
mp4decrypt --key 1:680a46ebd6cf2b9a6a0b05a24dcf944a enc.mp4 dec.mp4

Looks like issue is here:
https://github.com/edgeware/mp4ff/blob/e51225e48fbb04a79713ef569347075ebacffe3b/bits/fixedslicereader.go#L197-L208
if function gets a negative value (like in this case) it causes a panic

Here is a minimal case:
package main

import (
   "github.com/edgeware/mp4ff/mp4"
   "net/http"
)

const segment0 = "http://redirector.playback.us-east-1.prod.deploys.brightcove.com/v1/6245817279001/c1cff58f-cc7c-4285-8883-6758d92d8928/xe5/ffe34eec-4812-4ab9-830b-a3f2ea9d076c/segment0.m4f"

func main() {
   res, err := http.Get(segment0)
   if err != nil {
      panic(err)
   }
   defer res.Body.Close()
   if res.StatusCode != http.StatusOK {
      panic(res.Status)
   }
   mp4.DecodeFile(res.Body)
}

Here is a minimal case to trigger a panic:
package main

import (
   "github.com/edgeware/mp4ff/mp4"
   "os"
)

func main() {
   segment0, err := os.Open("segment0.mp4")
   if err != nil {
      panic(err)
   }
   defer segment0.Close()
   mp4.DecodeBox(0, segment0)
}

https://github.com/edgeware/mp4ff/pull/147

@89z Thanks for the report and the code in the PR.
It would be good to at least remove the panic which results when parsing your example file.
I'll have a look as well. What is your plans for the PR?

The PR gets closed when you delete the fork. If you have a way to reopen it, then please do. Otherwise you might just need to copy the code into a new commit. As long as you set me as the author, you can do whatever you want.

OK. I want to do a bit more like handle unknown UUIDs as in the small PR #148, so we'll see where this ends up.

Solved by #148

I don't get it. It seems you didn't add UUID here:
https://github.com/edgeware/mp4ff/blob/1abe9a5439ec93b62993558c8ab37f9ea00c5992/mp4/traf.go#L259-L271
but when I test the code, it does seem to be OK. So what did you do different?

I don't remove the UUID box and I don't identify the UUID as PIFF. The root issue before was that the length of the unknown UUID box was wrong.
We could remove the uuid/piff box now, but a proper solution would be to add parsing of the uuid/piff box and use its information to get the decryption information needed and then finally remove it. Just removing it doesn't help much in my view, or do you actually manage to decrypt the sample without extracting the uuid/piff information?
Anyway, I consider the issue solved, as it was reported as a crash. The same crash happened when running "mp4ff-info" on the file. Now that tool works and shows the unknown uuid box:
...
[senc] size=2896 version=0 flags=000002
 - sampleCount: 180
 - perSampleIVSize: 8
[uuid] size=2912
 - uuid: a2394f52-5a9b-4f14-a244-6c427c648df4
 - subType: unknown

Just removing it doesn't help much in my view, or do you actually manage to decrypt the sample without extracting the uuid/piff information?

The file that I originally posted, has this layout:
[moof] size=8+6657
  [traf] size=8+6633
    [senc] size=12+2308, flags=2
      sample info count = 144
    [A2394F525A9B-4F14-A244-6C42-7C648DF4] size=28+2308, flags=2
      sample info count = 144

So I think you can decrypt using CENC or PIFF. So in my temporary fix, I just fixed the panic, but I also had to remove the PIFF box after encryption, otherwise the file wouldn't play. I guess you had some better solution.

Anyway, I consider the issue solved, as it was reported as a crash.

Yes agreed, everything is working now, it just seemed like you fixed the problem a different way, so I was curious.


Packaging issue: modules not visible

It seems modules (i.e., python files) are not automatically visible in their package (e.g., nitransforms.io, unless explicit imports are set in the __init__.py of the package.
In other words, this code:
from nitransforms.manip import TransformChain

doesn't work, unless we add the line
from . import manip

to nitransforms/__init__.py.
I might be misinterpreting how the default packaging works, but I believe we have some bad setting in the setup.cfg instead.
I know @effigies has dealt quite a bit with setuptools, pep517, etc. - any quick ideas of why this is happening? or this is actually not a bug?

You've put an __all__ in __init__.py. That seems likely to make things hard to access.

Okay, in fact not a bug. Thanks for the clarification.


GitLab ticket tracking

When using GitLab, all ticket status show as 0 even though there are active tickets. Is there something specific that would have to be changed to get this to show valid counts? The creation of tickets works just fine.

PR already merged


[Discussion] [CognitiveServices] Is the "account" subgroup necessary?

Description
It's interesting that the az cognitiveservices list command allows listing accounts, but the other account-related CRUD operations are nested underneath the az cognitiveservices account subgroup. This seems somewhat inconsistent with the rest of the CLI. Should the account sub-group just be flattened to form the set of commands underneath the az cognitiveservices group itself?
The description of the az cognitiveservices group already seems to imply that is the main goal (and therefore, might support flattening the account sub-group): az cognitiveservices: Manage Cognitive Services accounts in Azure Resource Manager.

Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: nightly
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: nightly
OS Version: What OS and version are you using?
Answer here: macOS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash

@kostenray to comment.


Installation aborted

When i try to install mechvibes it says installation aborted. What can I do?

same


Do you know how to change the rotation axis?

Hello Kenny, do you know how to change the rotation axis to make the hand can rotate the cube around other axis such as y axis.
I modified the self.cfg["env"]["rotation_axis"] to [0.,1.,0.] in leap_hand_rot.py and define  self.rot_axis_buf[:, 0] = 0  # Zero out x-axis rotation
self.rot_axis_buf[:, 1] = 1  # Only y-axis rotation is rewarded
self.rot_axis_buf[:, 2] = 0  # Zero out z-axis rotation
in the compute_reward method in leap_hand_rot.py, but the new  tained policy based on the modification showed nothing difference, the cube was still rotated around z axis.
Then I added 1 rotation reward about y axis and penalties around x,z axes and added them to the original rewards in the compute_reward, however, after training, the agent still didn't rotate the cube around y axis, could you please offer any suggestion?
def compute_reward_align_y_axis(self, object_angvel, rotate_reward_scale=2.0):
# Define the y-axis unit vector
y_axis = torch.tensor([0.0, 1.0, 0.0], device=object_angvel.device).unsqueeze(0).repeat(object_angvel.shape[0], 1)
    # Normalize angular velocity
    angvel_norm = torch.norm(object_angvel, dim=1, keepdim=True) + 1e-6  # Prevent division by zero
    angvel_unit = object_angvel / angvel_norm

    # Calculate the alignment (dot product)
    alignment = torch.sum(angvel_unit * y_axis, dim=1)

    # Clip the alignment between -1 and 1
    alignment = torch.clamp(alignment, min=-1.0, max=1.0)

    # Scale the reward
    rotate_reward_y = rotate_reward_scale * alignment

    return rotate_reward_y

def compute_reward_penalize_other_axes(self, object_angvel, penalty_scale=10.0):
    # Define the x and z-axis unit vectors
    x_axis = torch.tensor([1.0, 0.0, 0.0], device=object_angvel.device).unsqueeze(0).repeat(object_angvel.shape[0], 1)
    z_axis = torch.tensor([0.0, 0.0, 1.0], device=object_angvel.device).unsqueeze(0).repeat(object_angvel.shape[0], 1)

    # Calculate penalties as the absolute angular velocities along x and z
    penalty_x = torch.abs(torch.sum(object_angvel * x_axis, dim=1))
    penalty_z = torch.abs(torch.sum(object_angvel * z_axis, dim=1))

    # Total penalty
    total_penalty_xz = penalty_scale * (penalty_x + penalty_z)

    return -total_penalty_xz  # Negative to penalize

You may need to add cube pose to the policy observation space, not sure if it'll train on a new axis as is.  It's quite a bit harder to get that axis to work without pose though it should be possible.

Thank you for your prompt reply and valuable suggestion, I will check it out. Best luck of your ongoing research : D


Make 'Save' button's state more visible

Is your feature request related to a problem? Please describe.

The 'Save' button is currently disabled when no changes are made to the entry, and is grey in colour. It is enabled when changes are made to the entry, and is blue in colour. However, the difference between the 2 states is not obvious enough. The button needs to be more prominent and easier to distinguish between the states.
Describe the solution you'd like

Change the styling of the button to make it more obvious when enabled.
I suggest making the background color of the button darker to make it stand out against the white more. Making the text of the disabled state a lighter grey would also help.
Describe alternatives you've considered

Any other larger styling changes to the button would make it too different from other buttons in the UI.
Additional context

Figure: Disabled 'Save' button

Figure: Enabled 'Save' button - colours are soft and similar to grey disabled state

Figure: Example of less prominent disabled 'Save' button style

Figure: Example of more prominent enabled 'Save' button style

Closing as stale

i dont see the SAVE button at all

save button appears only in editorial workflow


Raise event when server connection has been lost

For MobiFlight it would be nice to have an event when the connection to the sim is not longer available.
Then MobiFlight can inform the user that the connection has been lost.
Maybe there is a socket exception or maybe only the missing datagrams could be an indicator.

Thank you for the suggestion.
It's a feature I'll definetly add in the near future.

I haven't tried Mobiflight but I have my own plugin for the Elgato Stream Deck that I had to solve similar challenge so I hope this is useful. Using XPlaneConnector the solution I came up with is to use the LastReceive property, and check my own internal "last reconnect attempt time" so we don't flood the computer with too many retry attempts. Then, the main work is to save dataref subscriptions, Stop(), restore datarefs, and Start() to re-connect -- that definitely improved reliability of my X-Plane connectivity; my previous approach was to have a manual re-connect action/button which was less than ideal.
private static readonly object _lock = new object();
private static DateTime lastReconnectTry = DateTime.MinValue;
public override async Task OnWillAppear(StreamDeckEventPayload args)
{
  lock (_lock)
  {
    // XPlane.Connector is static instance of XPlaneConnector class
    if (XPlane.Connector.LastReceive == DateTime.MinValue || (DateTime.Now - XPlane.Connector.LastReceive).TotalSeconds >= 5)
    {
      if (lastReconnectTry == DateTime.MinValue || (DateTime.Now - lastReconnectTry).TotalSeconds >= 5)
      {
        lastReconnectTry = DateTime.Now;
        var datarefs = new List<DataRefElement>(XPlane.Connector.DataRefs);
        XPlane.Connector.Stop();
        XPlane.Connector.DataRefs.Clear();
        XPlane.Connector.DataRefs.AddRange(datarefs);
        XPlane.Connector.Start();
      }
    }
  }

  SetModelProperties(args);
  await base.OnWillAppear(args);
}


first commit of the hands on Homework 1

video link : https://video.drift.com/v/abtXRMEIjfK2RlVnJpBYA4lyLuZGDRE5gXw9lzqaOXY0/

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
22

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
4

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
4

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
22

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
22

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
23

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
23

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


View events are triggered on non-main thread?

Hello! I'm observing an interesting behaviour. The following code:
println(Thread.currentThread().toString())

    Window("Title") {
        Surface(modifier = Modifier.fillMaxSize()) {
            MaterialTheme {
                DesktopTheme {
                    Button(onClick = { println(Thread.currentThread().toString()) }) {
                        Text("Button")
                    }
                }
            }
        }
    }

prints:
Thread[main,5,main]
Thread[AWT-EventQueue-0 @coroutine#1,6,main]

Is it expected? My concern is that some libraries have requirements that they are accessed from the same thread as they were initialised. From my point of view, the event queue should be looped from the original main thread.

All UI events should be dispatched on the AWT thread, so the second one is correct. And probably the Window element and all its view creation happens deferred on the AWT thread as well. So your first logging statement doesn't capture the right thread.

Right. How can we initialize on the AWT thread?

That's already being done for you - https://github.com/androidx/androidx/blob/androidx-main/compose/ui/ui/src/desktopMain/kotlin/androidx/compose/desktop/AppWindow.kt#L72

If you want to run some library code on the same thread, that would be either SwingUtilities.invokeLater or a GlobalScope.launch(Dispatchers.Swing) block

Thanks! Given the original example, how I should change it so it would always print the AWT thread?

Depends on what you want to do and when you want it to be done. There's WindowEvents that you can pass to the Window composable, and it has onOpen callback among others.

Let me jump in real quick to clarify what is guaranteed and what is explicitly NOT guaranteed.
What is guaranteed:

UI Events, including button clicks, will fire on the AWT thread.
When using the new SwingPanel API, the initialization lambda and update lambdas will be invoked on the AWT thread.
Visual updates will be applied on the AWT thread.

As Kirill mentioned, you can jump on the AWT thread using various functions provided by SwingUtilities
Virtually nothing else about threading is guaranteed.  In fact, Composition is explicitly NOT guaranteed to occur on any particular thread.  There isn't even a guarantee that a child widget will be composed on the same thread that a parent is being composed on.  You should NOT be making any assumptions that depend upon the thread that your composable functions are running in.
I'm going to close this issue because this is working as intended (thus not actionable).  Feel free to continue the discussion in this thread.

Arkadii - I think that it would be helpful to be a little bit more specific about the scenarios that you have in mind. Maybe it's for Compose in general, maybe it's for Compose for Desktop in particular, maybe it's about how the existing window callbacks are not addressing the specific requirements that you have in mind

@jimgoog thanks for clarifying. My concern was about the main function. It is not Composable, and so I expected it to be called on the main thread, the same thread that will be used later for Compose callbacks etc.
The issue here is that I need to initialise some dependencies before the composition will begin, and pass them later to Composable functions (directly or via ambients, whatever). I need to initialise dependencies on the same thread as they will be called later from callbacks.

My concern was about the main function. It is not Composable, and so I expected it to be called on the main thread, the same thread that will be used later for Compose callbacks etc.

Yeah, Compose is not doing anything special here.  The main thread is used as an entry point for a Java application, and the AWT thread is used for graphics/UI operations.  This is done largely because you don't want the main thread to cause the UI to become unresponsive, and you don't want apps which don't have/need a UI to inherit the complexity of an imposed event queue.  We're just doing conforming to the de facto standard here.

The issue here is that I need to initialise some dependencies before the composition will begin, and pass them later to Composable functions (directly or via ambients, whatever). I need to initialise dependencies on the same thread as they will be called later from callbacks.

Without knowing what those dependencies are, let me say that this makes me a tiny bit nervous.  You don't want to be doing any meaningful amount of work on the AWT thread, as you will block UI responsiveness.  You may want to consider dispatching the UI event from the AWT thread to a data thread that you own.  But I say this without knowing anything about your dependencies, so maybe it's fine.
Also, ambients are a major foot gun, please avoid using them to the extent possible, just like you avoid globals or ThreadLocals.

@jimgoog A common scenario of app startup is:
fun main() {
    val myViewModel = MyViewModel() // Initialise the ViewModel, I want this to run on AWT/Event thread, from which it will be accessed later

    Window("Title") {
        Surface(modifier = Modifier.fillMaxSize()) {
            MaterialTheme {
                DesktopTheme {
                    Button(onClick = {
                        viewModel.onButtonClick() // Runs on AWT/Event thread, fine
                    }) {
                        Text("Button")
                    }
                }
            }
        }
    }
}

In my particular case I want the ViewModel to be instantiated on the same thread, from which it will be accessed later. From my little experience with native desktop apps, the event looper runs on the same thread as the main function. So this was never a problem for me.
E.g. in native GTK apps we have something like this:
fun main() {
    val app: CPointer<GtkApplication> = gtk_application_new(...).requireNotNull()
    // Initialise other things here, this is the main thread

    g_application_run(app.reinterpret(), 0, null) // <-- This function loops on the exact same main thread

    // Cleanups
}

I can make lateinit val myViewModel initialise it from something like DisposableEffect. This should work, but looks fragile.

I suppose my question was more "what are you doing in ViewModel that forces it to be on the same thread?"

@jimgoog I am using an SDK that does this verification. Fortunately, I can lift this restriction in my particular case, but this still might be a use case in general. Like "I want this class to be instantiated on the AWT/Event thread". E.g. it my trigger some side effects, which are out of control of the developer.

Yeah, if you really need to run on AWT, using DisposableEffect doesn't really sound like the right thing, I'd do something like:
    val viewModel = run {
        var viewModel: MyViewModel? = null
        SwingUtilities.invokeAndWait { viewModel = MyViewModel() }
        viewModel!!
    }

@jimgoog Thanks! This is what I was looking for! I will try.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Security Vulnerability

When I cloned this them, Github notified me that:
"We found a potential security vulnerability in one of your dependencies.
A dependency defined in package-lock.json has known security vulnerabilities and should be updated".
With further inspection, I found that the "hapijs / hoek (2.16.3)" package caused the security vulnerability.
Any thoughts on this?

I am also getting
Known  high severity security vulnerability detected in mime < 1.4.1 defined in package-lock.json.
package-lock.json update suggested: mime ~> 1.4.1.
and
Known  high severity security vulnerability detected in mixin-deep <1.3.1 defined in package-lock.json.
package-lock.json update suggested: mixin-deep ~> 1.3.1.
_

I'm getting the following:
"We found a potential security vulnerability in one of your dependencies."
lodash node module before 4.17.5 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via defau...
package-lock.json update suggested:
lodash ~> 4.17.5
Always verify the validity and compatibility of suggestions with your codebase.

how to update lodash in my jekyll site? I tried to run npm -i<EMAIL_ADDRESS>--save but seems not work in the lock file


Test: built-in Notebook Variables view

refs: https://github.com/microsoft/vscode/issues/165445, https://github.com/microsoft/vscode-jupyter/issues/14821

[] macOS
[] linux
[] windows

Complexity: 4

Pre-requisites - If you don't have python set up to run notebooks

ensure python is installed on your machine
install the latest pre-release Python and Jupyter extensions
open a workspace where you will be running tests for this TPI
Create: new jupyter notebook and run print(1) in a cell.
a. If the cell runs successfully, you're already set up, otherwise...
The kernel picker should open, select "Python Environments..." -> "Create Python Environment..." -> select venv or conda, and whichever version you'd like.

Testing
The jupyter extension is the only extension with a variable provider at this point, and only for python

set "notebook.experimental.variablesView": true, in settings
Create a notebook and run cells that assign variables (sample code below)
Open the debug view and find the new Notebook Variables section
explore the variables

sample code
simple types
aString = "Hello"
aList = [1, 3, aString]
listOfLists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
aTuple = (3, 4, aString)
aSet = {5, 6, aTuple, aString}
aDict = {"key1": 8, "key2": aSet}
anInt = 11
aFloat = 11.3
boolean = False

objects
class A:
    prop1 = 1
    prop2 = 2

    def __init__(self, a, b):
        self.a = a
        self.b = b
        self.list = [1, 2, 3]

class B:
    propList = [A(100, 200), A(300, 400)]

anObject = A(12, 15)
nestedObject = B()

long list
aLongList = []
for i in range(100000):
    aLongList.append('listEntry' + str(i))

circular reference
dict1 = {'key1': 1}
dict2 = {'key2': 2, 'otherDict': dict1}
dict1['otherDict'] = dict2

Invalid test plan item. See errors below and the test plan item spec for more information. This comment will go away when the issues are resolved.
Error: Test plan item should have assignments

Invalid test plan item. See errors below and the test plan item spec for more information. This comment will go away when the issues are resolved.
Error: Test plan item should have assignments

I got caught by not being able to expand nodes while paused in the debugger. At one point I was thinking that while paused, we might use the debugger to update values. Is that not actually possible, or would you try that at some point?

I got caught by not being able to expand nodes while paused in the debugger. At one point I was thinking that while paused, we might use the debugger to update values. Is that not actually possible, or would you try that at some point?

We could do that, the extension's view does by delegating to either a debug provider or kernel provider. I was just thinking that the variables view contains all that info, but it is a strange behavior.


Samples don't run on Windows 10 due to COM initialization conflict

Bevy version
I'm seeing this on 0.7 with commit 83c6ffb7
Operating system & version
Windows 10 19043.1645
What you did
I tried a few examples:

gltf_skinned_mesh
breakout
scene

What you expected to happen
Sample runs and does not panic.
What actually happened
All samples that I've run panic when cpal tries to initialize COM with a multithreaded apartment on a thread that is assigned to a single threaded apartment (done by winit):
Z:\cool\path\bevy>cargo run --example scene
   Compiling bevy v0.7.0 (Z:\cool\path\bevy)
    Finished dev [unoptimized + debuginfo] target(s) in 4.92s
     Running `target\debug\examples\scene.exe`
2022-04-15T18:51:41.537468Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 2070 SUPER", vendor: 4318, device: 7812, device_type: DiscreteGpu, backend: Vulkan }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: -2147417850, kind: Uncategorized, message: "Cannot change thread mode after it is set." }', Z:\cool\pathi\.cargo\registry\src\github.com-1ecc6299db9ec823\cpal-0.13.1\src\host\wasapi\com.rs:13:77
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\examples\scene.exe` (exit code: 101)

Additional information
It looks like the drag and drop support in winit initializes COM with a single threaded apartment, and then later cpal on the same thread tries to initialize COM with a different apartment. The UI thread probably should be STA.

Related to #3772
What version of coal do you have in your dependencies (in the Cargo.lock file)

[[package]]
name = "cpal"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05631e2089dfa5d3b6ea1cfbbfd092e2ee5deeb69698911bc976b28b746d3657"
dependencies = [
 "alsa",
 "core-foundation-sys 0.6.2",
 "coreaudio-rs",
 "jni 0.17.0",
 "js-sys",
 "lazy_static",
 "libc",
 "mach 0.3.2",
 "ndk 0.2.1",
 "ndk-glue 0.2.1",
 "nix 0.15.0",
 "oboe",
 "parking_lot",
 "stdweb 0.1.3",
 "thiserror",
 "wasm-bindgen",
 "web-sys",
 "winapi",
]

Version 0.13.1 is 1.5 years old and has an issue, could you run cargo update and check that it's at least the 0.13.4, then rerun the examples?

That seems to work! Sorry about that, despite my time with Rust that's the first time a stale lock file bit me.


Update chaos-studio-faults-actions.md

Updating the doc with limitation agent fault limitation.

@prasha-microsoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@johnkemnetz
Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prasha-microsoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@prasha-microsoft - I see that you're now the assigned author of this article. If you still want to make this change, please open a new PR in the private repo.


CLOUD-322 support heterogen clusters

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/periscope-build-pull-request/4/


Remove some use of Ri_bulk_crit

This PR removes some use of Ri_bulk_crit, which is no longer needed/used in the surface model. Made possible by #1184.

bors r+


KITE-1047 clarify language on performance in the morphlines introduction

ugh the non rendered is terrible.
before:

All morphline commands are implemented efficiently. Ballpark-wise, a simple command like readJson or readAvro or grok can process O(100k) records per second per CPU core, and we've seen O(50k) simple xqueries/sec/core. A command that does almost nothing runs at something like O(5 M) records/sec/core - the overhead of passing records among commands is no more than a Java method invocation and hence close to zero - negligible. Considering that Lucene indexing inside Solr only runs at something like O(1k) records/sec/core ballpark this means that typically Lucene (rather than a morphline) is by far the main ingestion bottleneck (unless your morphline somehow samples or filters or otherwise throws away 99% of the records while running in a huge yet latency sensitive streaming MR or Impala job).

after:

Performance is a primary concern for the implementaiton of all morphline commands. Ballpark-wise, a simple command like readJson or readAvro or grok can process approximately 100k records per second per CPU core, and we've seen approximately 50k simple xqueries per second per core. A command that does almost nothing runs at something like approximately 5M records per second per core - the overhead of passing records among commands is no more than a Java method invocation and hence close to zero - negligible. Considering that Lucene indexing inside Solr only runs at something like approximately 1k records per second per core this means that typically Lucene (rather than a morphline) is by far the main ingestion bottleneck (unless your morphline somehow samples or filters or otherwise throws away 99% of the records while running in a huge yet latency sensitive streaming MR or Impala job).

failures appear to be related to the HBase module and not a part of this PR.


Can't create outbound NAT with PPPoE Interface as NAT target

Describe the bug
When I try to create an outbound NAT rule with my PPPoE WAN interface (WAN address) as Translation / target I get the following error message:
The following input errors were detected:
- A valid target IP address must be specified.

To Reproduce
Steps to reproduce the behavior:

Go to Firewall ‣ NAT ‣ Outbound
Click on Add
Set the following options (defaults omitted):

Interface: WireGuard (or any other interface)
Source address: WireGuard net (or any other net)
Destination invert: true
Destination address: RFC1918 (alias for private ips)
Translation / target: WAN address

Click on Save

Expected behavior
The rule should be created like when I select any other interface as target.
Screenshots

Error Message + Settings

Additional context
Possibly related to #400 as it describes the exact same issue (but is closed since a long time).
Environment
OPNsense 19.7 (amd64, LibreSSL)

@DerEnderKeks can you post a screenshot of the selection list? XXX address should only be visible for static configured interfaces.
https://github.com/opnsense/core/blob/64c4d89b9dd99b9041f0984bec39ed76ed9dc978/src/www/firewall_nat_out_edit.php#L42-L46

Sure:

can you share the interface page as well? (without addresses / usernames, etc, etc)

ok, thanks, it shouldn't display wan in the outbound rules, "Interface address" can be used instead.

So if I select Interface address it will also translate to the WAN address if it routes something over it?

interface address will translate to the first address of the physical interface (in pf terms XXXX:0), which in your case is the same as wan on the wan interface.

I'm sorry, but I don't think I understand quite yet.
Why is the address of the WAN interface the one it would pick out of the multiple interfaces (including VLANs) I have? In my setup there is only one physical interface which itself has no address as everything is in VLANs (even the WAN, it's actually just a PPPoE device on the VLAN9 interface).

usually you want to be able to access the internet from some (or any) of the attached networks, which would mean that you need to nat on the interface where the traffic is leaving (usually wan).

Ok, I just figured out what was wrong in my setup.
In the NAT rule I selected the Wireguard (and not the WAN) interface. That's why I was so confused with what you meant. But it all makes sense now and works fine.
Thanks for your help anyway!


Increase tolerances for add_vec_mat

Summary
We are currently experiencing issues on develop. @bob-carpenter suggested to increase the tolerances for the particular test that fails randomly. So this PR does just that. I am starting with 5E-3 and if that will still cause issues we can increase that to 1E-2.
Tests
/
Side Effects
/
Checklist

[x] Math issue #1453

[x] Copyright holder: Rok Češnovar
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

I would refrain from merging to develop until this issue is resolved as develop will keep failing randomly.

Anyone up for a quick review?


Memory leak in Append for vectors

There's a memory leak in the Append procedures generated for vectors. For example:
https://github.com/reznikmm/protobuf/blob/c99dbfdf845e5eb0395a4f21cc6a7d97a962ac44/source/compiler/generated/google-protobuf-descriptor.adb#L208-L211
The generated code should call Free when the array has to be reallocated.
   procedure Append (Self : in out T_Vector; V    : T) is
      Init_Length : constant Positive := Positive'Max (1, 256 / T'Size);
   begin
      if Self.Length = 0 then
         Self.Data :=  new T_Array (1 .. Init_Length);
     elsif Self.Length = Self.Data'Last then
         declare
            Aux_Data : T_Array_Access := Self.Data;
         begin
            Self.Data :=
               new T_Array'(Self.Data.all & T_Array'(1 .. Self.Length => <>));
            Free (Aux_Data);
         end;
      end if;
      Self.Length := Self.Length + 1;
      Self.Data (Self.Length) := V;
   end Append;

By the way, is there any specific reason for not using Ada.Containers.Vectors in this case, so you don't worry about low-level memory management?

Yeah, indeed. Thank you for the report.
The reason for not using generic package is to avoid unresolved forward dependencies. For example, you can't instantiate Ada.Containers.Vectors for a private type until you have a full type declaration. Custom private type for vector allows you have cross-dependencies, like
type A is record
  V1 : B_Vector;
end record;
type B is record
  V1 : A_Vector;
end record;

I've fixed this for me and will provide a pull request. I generated the code without block, because it was easier for me to construct the ada_pretty structure without it. Maybe you prefer other way.

thank you, Manuel!


How to Get the Pool Address of a JETTON-TON Pair?

In the provided examples and code, it is currently possible to retrieve the pool address for a JETTON-JETTON pair. However, I am looking for a way to get the pool address for a JETTON-TON pair.
I have explored the Ston.fi API documentation but couldn't find any information on obtaining the pool address using a jetton address.
Could you please provide guidance or add support for retrieving the pool address for JETTON-TON pairs?
Thank you!

I just solved it. You need to use pTON address instead of TON.


--terragrunt-non-interactive does not appear to work without one of the run-all commands

Describe the bug
The documentation of the CLI switches describes this option --terragrunt-non-interactive, which allows automation to ignore prompts.  However, it appears despite the documentation, that it is only used when using the run-all (and the other -all) command.
Steps To Reproduce
// paste code snippets here
terragrunt apply --terragrunt-non-interactive

Expected behavior
Not to be prompted to apply, or the documenation to explain that this switch only applies to the run-all command
Nice to haves

[ ] Terminal output
[ ] Screenshots

Versions

Terragrunt version: 0.58.10
OpenTofu/Terraform version: 1.8.4
Environment details (Ubuntu 20.04, Windows 10, etc.): All

Additional context
Clarification request most likely.

Hi,
--terragrunt-non-interactive documentation specifies cases when it is used:

This will default the answer for all prompts to yes except for the listed cases below.

https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-non-interactive
Most probably you are looking for setup like:
terragrunt apply -auto-approve --terragrunt-non-interactive


datasource bug

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
In the data source function module, I select the postgresql type data source. After the test is successful, I delete the password for the test, or it is successful.
What you expected to happen

How to reproduce
Fill in the correct data source connection information first, after the test is successful, delete the password, and then test
Anything else
The reason for the problem is because: the DataSourceClient created by dbType, user and jdbcUrl as the key when getting the DatasourceUniqueId in the 55th line of the DataSourceClientProvider, so the first DataSourceClient is found in the second test, So there will be cases where the test can be successful without a password
Version
2.0.5
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

The image upload failed, please try again.

The image upload failed, please try again.


fixed the Particle System & Forces examples

I fixed the Particle System and Forces examples. They are broken because they are using get() but the method name has been changed to copy(). I found commit 338b468 of p5.js which gave me the answer.

thanks!!


fix: change widget-iframe height based on it's content

Summary
The current version of the widget calculates its height based on the viewport. However, in the iframe version of the widget, we are obliged to consider a fixed value for the iframe that represents the maximum possible height of the widget. Consequently, when the widget is loaded and is placed on the home page, an empty space is created at the bottom of the widget, disrupting the user experience. In this draft, we address this issue by using messaging between the iframe source and the hosting website, setting the iframe height to the actual height occupied by the widget.

Closing this PR in favor of https://github.com/rango-exchange/rango-client/pull/546


tour: Slice Defaults - Results appear to be inconsistent with description

Context: https://tour.golang.org/moretypes/10
Here is code shown:
s := []int{2, 3, 5, 7, 11, 13}

s = s[1:4]
fmt.Println(s)

s = s[:2]
fmt.Println(s)

s = s[1:]
fmt.Println(s)

And here are the results:
[3 5 7]
[3 5]
[5]

I fail to see how   s[1:] doesn't result in items  1 through 4   (outer bound, non inclusive)
Maybe I'm missing something.

Never mind..  you are re-assigning the slice.   Sorry to bug.


Add a 1080p50 mode

Hi,
I was wondering if it was possible to add a 1080p50 mode or if there is a hardware limitation that prevents that?
I'm interested in using this device to quantify lag in live broadcasts but all of our equipment runs at 50Hz (to match the powerline frequency in our country).

Good idea, I will add 50Hz modes (1080p50, 1080i50, 720p50) as options to the custom firmware generator at time-sleuth.i74.de.

I just added 1080p50, 1080i50 and 720p50 as options to time-sleuth.i74.de. To flash your custom firmware you need need the tools listed here.
If you need help on programming the firmware, feel free to contact me.

Amazing, thank you!
I've ordered the device and I'll let you know once I get a chance to test out the new firmware

I had a chance to test it today. For the most part it works as expected. The video mixers typically require very strict (consistent) input formats (resolution and framerate). When I directly connect the time sleuth (outputting 1080p50) to the video mixer, I see the signal for a split second before it vanishes (and it doesn't seem to fill the screen completely on the monitor output). However, if I feed the time sleuth in via a Decimator converter, then it does work as expected. Interestingly, the converter detects the input as 1080p50 as expected.
There are a couple of possibilities off the top of my head - one is that sometimes the video mixer can be finicky about the EDID, and the decimator rewrites this. Another is that the timing of the HDMI output could be off slightly, which is why it works for a split second and then vanishes. I'm by no means an expert on the finer details of the HDMI protocol though, so you probably know more than me.
Up to you whether you want me to investigate this further or not (since I can make it work with the Decimator converter). I could switch everything over to 1080p60 temporarily to see if the problem still exists if that is helpful.

Time Sleuth does only output a DVI signal, not a "real" HDMI signal. So some meta data will be missing.
Time Sleuth ignores any EDID sent from the sink, but maybe the Decimator adds HDMI meta data to the signal?
The deviation of the clock should be well within the allowed +/- 0.5%.
I always verify, if the timings are correct on an HDMI analyser. Let me double check, if the signal is within specification.
Do you have a model number/manual for the video mixer used?

Ah, I see. That would probably explain it. There was actually another item in the chain, a BlackMagic HDMI -> SDI microconverter (as the video mixer, a BlackMagic ATEM 1 M/E Production studio 4k, has mostly SDI inputs). This converter supports multiple resolutions/framerates but doesn't do standard conversions like the Decimator. My guess is that the microconverter falls over because it doesn't get an EDID...yep, this pretty much confirms it!
That's ok. I'm happy to use the Decimator to make it work (I can do comparisons with two chained Decimators vs just one Decimator to determine how much latency is introduced by the first Decimator)


pkg/test/framework/components/apps/local/agent::TestFull is flaky

xref: https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/10021/istio-unit-tests/16875
--- FAIL: TestFull (10.28s)
	pilot_agent_test.go:62: failed to start envoy after 10s. Error: Get http://<IP_ADDRESS>:43401/server_info: dial tcp <IP_ADDRESS>:43401: connect: connection refused

xref: https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/10025/istio-unit-tests/16882
--- FAIL: TestFull (10.50s)
	pilot_agent_test.go:62: failed to configure Envoys: service a missing config for outbound listener <IP_ADDRESS>_41113

TestMinimal also failed

Confirmed. I renamed the PR to indicate the test is flaky.
Most recent flake: https://gubernator.k8s.io/build/istio-prow/pr-logs/pull/istio_istio/10004/istio-unit-tests/17106
--- FAIL: TestFull (10.30s)
	pilot_agent_test.go:62: failed to start envoy after 10s. Error: Get http://<IP_ADDRESS>:42887/server_info: dial tcp <IP_ADDRESS>:42887: connect: connection refused
FAIL

Great - thanks, @ayj

@nmittler now every agent will have his own portManager.  When envoy starts the port reserved by his portManager might be reserved by another portManager. So it will have error like" external/envoy/source/server/server.cc:84] error initializing configuration '/tmp/istio_agent_envoy_config879447953.yaml': cannot bind '<IP_ADDRESS>:36463': Address already in use"
I have submitted a PR https://github.com/istio/istio/pull/10718 to make all agents in testing use one portManager. Can you review it?

@irisdingbj approved ... thanks!

Still flakes as of now:
https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/10630/istio-unit-tests/20558

The test in question no longer exists and the apps component has been replaced with Echo. Closing.


IPython kernel/clients: error when closing an IPython console

From pierre.raybaut on 2013-02-10T05:47:34Z
Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.
What steps will reproduce the problem?

Open a new IPython console
Open an IPython console connected to the existing kernel (created at step 1)
Close the second IPython console and answer Yes to the message box What is the expected output? What do you see instead? The consoles should be closed as requested. Instead, only the kernel is closed and the following traceback is shown in the internal console:

>>> Traceback (most recent call last):
File "D:\Python\spyder\spyderlib\plugins\ipythonconsole.py", line 1049, in close_console
self.close_related_ipyclients(client)
File "D:\Python\spyder\spyderlib\plugins\ipythonconsole.py", line 991, in close_related_ipyclients
self.close_console(widget=cl)
TypeError: close_console() got an unexpected keyword argument 'widget'
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1261

From pierre.raybaut on 2013-02-10T04:29:35Z
This issue was updated by revision 32fd57d5b089 .
Status: Fixed