SPLIT OMIMPS terms

[Term]
id: MONDO:0031329
name: craniofacial dysmorphism, skeletal anomalies, and impaired intellectual development syndrome
xref: OMIMPS:213980 {source="MONDO:equivalentTo"} ! craniofacial dysmorphism, skeletal anomalies, and impaired intellectual development syndrome
[Term]
id: MONDO:0031415
name: Carey-Fineman-Ziter syndrome
xref: OMIMPS:254940 {source="MONDO:equivalentTo"} ! carey-fineman-ziter syndrome
is_a: MONDO:0003847{ source="https://orcid.org/0000-0001-5208-3432"} ! Mendelian disease
relationship: has_characteristic MONDO:0021152 {source="OMIMPS:212093"} ! inherited
[Term]
id: MONDO:0031632
name: developmental delay with short stature, dysmorphic facial features, and sparse hair
xref: OMIMPS:616901 {source="MONDO:equivalentTo"} ! developmental delay with short stature, dysmorphic facial features, and sparse hair
relationship: has_characteristic MONDO:0021152 {source="OMIMPS:256550"} ! inherited
see spreadsheet

Action items
Obsolete

[ ] MONDO:0008952 | cerebrofaciothoracic dysplasia'
[ ] MONDO:0009700 | Carey-Fineman-Ziter syndrome
[ ] MONDO:0014824 | developmental delay with short stature, dysmorphic facial features, and sparse hair

Add new terms
[Term]
id: MONDO:0031329
name: craniofacial dysmorphism, skeletal anomalies, and impaired intellectual development syndrome
xref: OMIMPS:213980 {source="MONDO:equivalentTo"} ! craniofacial dysmorphism, skeletal anomalies, and impaired intellectual development syndrome
is_a: MONDO:0003847{ source="OMIMPS:213980"} ! Mendelian disease
property_value: IAO:0000233 https://github.com/monarch-initiative/mondo/issues/5619 xsd:anyURI
[Term]
id: MONDO:0800385
name: ccraniofacial dysmorphism, skeletal anomalies, and impaired intellectual development 1
def: "A rare syndrome characterized by facial dysmorphism, intellectual deficit and costovertebral abnormalities."  Mendelian disease
relationship: has_characteristic MONDO:0021136 {source="MONDO:0015162", source="MONDO:0015983"} ! rare
property_value: confidence "9.0" xsd:double
property_value: seeAlso https://rarediseases.info.nih.gov/diseases/1210/cerebro-facio-thoracic-dysplasia xsd:anyURI {source="GARD:0001210"}
property_value: IAO:0000233 https://github.com/monarch-initiative/mondo/issues/5619 xsd:anyURI
[Term]
id: MONDO:0031415
name: Carey-Fineman-Ziter syndrome
xref: OMIMPS:254940 {source="MONDO:equivalentTo"} ! carey-fineman-ziter syndrome
is_a: MONDO:0003847{ source="OMIMPS:254940"} ! Mendelian disease
relationship: has_characteristic MONDO:0021152 {source="OMIMPS:212093"} ! inherited
property_value: IAO:0000233 https://github.com/monarch-initiative/mondo/issues/5619 xsd:anyURI
[Term]
id: MONDO:0031632
name: developmental delay with short stature, dysmorphic facial features, and sparse hair
xref: OMIMPS:616901 {source="MONDO:equivalentTo"} ! developmental delay with short stature, dysmorphic facial features, and sparse hair
is_a: MONDO:0003847{ source="OMIMPS:616901"} ! Mendelian disease
relationship: has_characteristic MONDO:0021152 {source="OMIMPS:256550"} ! inherited
property_value: IAO:0000233 https://github.com/monarch-initiative/mondo/issues/5619 xsd:anyURI

@nicolevasilevsky
be aware that some new IDs have been used for other terms between when this issue was created and now.
For instance, MONDO:0800386 was to be used for 'Carey-Fineman-Ziter syndrome 1'. However, it has been used recently for 'organophosphate poisoning'.
The main problem is that, when preparing for the obsoletion of MONDO:0009700(Carey-Fineman-Ziter syndrome), users would use the ID shown in the comments, ie MONDO:0031415 or MONDO:0800386 which is not the correct id anymore.
Same for :

MONDO:0800387
MONDO:0800385
MONDO:0800386

TO DO:
since these ID have already been used for new terms (which were already released), we need to assign new ids for these post-splits terms and update the comments for the obsoletion candidate
PS: I did not update anything at this point, because I don't know where the master for this id range is, and I don't want to add to the confusion.

It seems that
https://monarchinitiative.org/disease/MONDO:0014824
is split into 2 terms.  Do both of these terms apply to  DPH1?
I can't trace this info and the new term is not yet in OLS.

right so it shouldn't be replace by ? should be consider ? (I would need MONDO:0800438  not MONDO:0031632 to be specific for DPH1 ortholog.

Good point, I will change this to consider. Thanks!


Basic ci

In https://github.com/wasmCloud/interfaces/pull/10 I accidentally proposed broken code because I forgot some imports. This is so I don't accidentally do the same thing again.
I also added cache by copy-pasting from https://github.com/actions/cache/blob/main/examples.md#rust---cargo
Adding the cache brings the build time from 4m to 1m, according to the timings on https://github.com/redbadger/wasmcloud-interfaces/actions
I've not attempted to make any more progress towards https://github.com/wasmCloud/interfaces/issues/3

common-actions looks pretty neat. I have never tried creating custom actions, so most of my pipelines end up including a lot of copy-paste. I will have to try this for my next project.

Feel free to use the ones in wasmCloud too, the Rust one is pretty standard 😉


Files in .dockerignore are still copied into context

The .dockerignore file ensures that watchers are not setup for certain files. However these files are still copied into the build context and potentially the final image, slowing things down.
Minimal example
.dockerignore
something.txt

Dockerfile
FROM alpine
COPY . /stuff

skaffold.yaml
apiVersion: skaffold/v1
kind: Config
build:
  artifacts:
  - imageName: gcr.io/k8s-skaffold/skaffold-example
    workspace: .
  local: {}
deploy:
  kubectl:
    manifests:
    - paths:
      - k8s-*
      parameters:
        IMAGE_NAME: gcr.io/k8s-skaffold/skaffold-example

$ ls -a
.  ..  Dockerfile  .dockerignore  k8s-pod.yaml  main.go  skaffold-gcb.yaml  skaffold.yaml  something.txt

$ skaffold run
$ docker run --rm gcr.io/k8s-skaffold/skaffold-example:5ec93d2-dirty-f7ad11ab232cbbde ls -a /stuff
.
..
.dockerignore
Dockerfile
k8s-pod.yaml
main.go
skaffold-gcb.yaml
skaffold.yaml
**something.txt**

Thanks for filing this issue. This is a bug, we're not handling the .dockerignore file yet. This would be a great first issue for contributors, or one of the maintainers will implement it soon.

Cool I've actually gotten this working locally, I'm just not 100% happy with the way I'm doing it. Will open a pull request soon.


elements won't be displayed in AlertController

Ionic version:
[x] 4.x
I'm submitting a ...
[x] bug report
[ ] feature request
Current behavior:
ion-icon elements displayed in the AlertController won't show the icon, if the name attribute is used. SVG files with the src attributes work.

I am sure I saw this working in an older version of Ionic 4.
Related code:
ion-icon-bug.zip
import { AlertController } from '@ionic/angular';

public constructor(public alertController: AlertController) {

}

public async showInfoDialog() {
  const prompt = await this.alertController.create({
    header: 'name does not work, src does',
    message:
    '
<ion-icon name="body"></ion-icon>
' +
    '
<ion-icon src="assets/icon/truck.svg"></ion-icon>
',
     buttons: [{ text: 'OK' }]
   });
   await prompt.present();
}

Ionic info:
Ionic:

   ionic (Ionic CLI)             : 4.12.0 (C:\Users\user\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.4.0
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

System:

   NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 7

Thanks for the issue! I was able to confirm this: https://codepen.io/brandyscarney/pen/qGZydB?editors=1010
The following error is being thrown: icon was not resolved

This happens because the message is sanitized:
innerHTML={sanitizeDOMString(this.message)} which only allows the following attributes: const allowedAttributes = ['class', 'id', 'href', 'src']; and removes the others.
Another example is badge's slot attribute: https://codepen.io/Dudelozaur/pen/QREwJw
You can see that the badges are placed differently on the alert than the initial page. Same thing happens for button shapes, setting items as disabled.

@topalavlad Thanks, I understand the reason. Do you think there should be a way to pass unsansitized data to the alert dialog? Maybe by using an alternative type like SafeHtml that could be passed as the message?

Hi everyone,
This issue has been resolved via #18246 and will be in the next version of Ionic. I added in the name and slot attributes to the allowed list of attributes since I felt those were commonly used attributes.
In general, we don't add attributes to the allowed list of attributes. Components that allow HTML content like ion-alert are not intended for anything other than some basic HTML.
I have created a feature request for giving users the option of bypassing the sanitizer if they need to do something complex: https://github.com/ionic-team/ionic/issues/18277
Thanks!


Help wiht proper log-format

Hi there,
can you please help me to figure out proper log-format. This what I tried:
log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" %^ %^ %^ %^
this are logs from access_log
www.doba.sk <IP_ADDRESS> - - [04/Aug/2016:23:55:41 +0200] "GET /wp-content/themes/Grimag-child/assets/images/icons/32/glyphs/gray/search.png HTTP/1.1" 200 1492 "http://www.doba.sk/2016/07/18/kratke-video-vam-bez-slova-ukaze-ako-v-skutocnosti-funguje-laska/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69 [FBAN/FBIOS;FBAV/<IP_ADDRESS>.137;FBBV/29582208;FBRV/0;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iPhone OS;FBSV/9.3.2;FBSS/2;FBCR/TelekomSK;FBID/phone;FBLC/en_GB;FBOP/5]" 0.002 MISS <IP_ADDRESS>:102 0.002
www.doba.sk <IP_ADDRESS> - - [04/Aug/2016:23:55:42 +0200] "GET /2016/08/04/tigrica-zachranene-z-cirkusu-sa-zmenilo-na-nepoznanie/ HTTP/1.1" 200 10701 "http://m.facebook.com/" "Mozilla/5.0 (Linux; Android 5.0.1; 8070 Build/LRX21M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Safari/537.36 [FB_IAB/FB4A;FBAV/<IP_ADDRESS>.76;]" 0.006 MISS <IP_ADDRESS>:102 0.006
www.doba.sk <IP_ADDRESS> - - [04/Aug/2016:23:55:42 +0200] "GET /tag/zabava/feed/ HTTP/1.1" 200 8381 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" 1.041 MISS <IP_ADDRESS>:102 1.041

Error:
GoAccess - version 1.0.2 - Jul  4 2016 19:36:15
Config file: /etc/goaccess.conf

Fatal error has occurred
Error occured at: src/goaccess.c - main - 1230
Nothing valid to process. Verify your date/time/log format.

Config:
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" %^ %^ %^ %^

I pasted more lines here: http://pastebin.com/EzYau1h5
Note: I tried goaccess on logs from my (standard) ubuntu server. Everything works well, I like the soft. This is from my client hosting.

Please try the following:
log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" %^
time-format %H:%M:%S
date-format %d/%b/%Y

BTW, which field is the one next to the UA? e.g., 0.006

It works, thank you
Have no idea, something internal. IMO it will be something like respond time and nginx proxy IP or IP of DB server

Glad that did it and great to see the post on that site :) Thanks!


Update project to new ember-cli and add Fastboot 1.0.0 support

First, sorry for this large Pull Request. I've had problems in getting tests to work with my previous PR. So I started with a fresh project that uses up to date requirements for new ember projects/addons.
Implemented in this PR:

webfontloader.js is now loaded through node_modules
updated shim structure
implements Fastboot 1.0.0 style initializers
adds Fastboot 1.0.0 support
removes the dependancy on bower.json

Looking at how other addons solve the Fastboot 1.0.0 breakage/support, I would suggest maybe tagging this as 0.4.0 release and requiring Ember 2.x and Fastboot 1.0.0 to use.
I understand that this is a large change to the addon and that you're not actively using Ember anymore. I'm happy to stick around for a while and help with any issues that crop up because of this.

First, thank you a lot for the great job! :+1:
Seems a lot, but legit. I'm gonna merge this and will publish v1.0.0 so updates to README.md are required to make sure the versions are mentioned correctly.

Do you want me to update README/versions?

Okay, I updated, merged and published as 0.4.0. Too early for 1.0.0, I believe

Thanks!


build failed

Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
Could not resolve project :fluttertoast.

Can you please provide more information about how to reproduce?
Is fluttertoast from a plugin or is this the name of your project?
Please add the output of flutter doctor -v.

I've solved it, thank you

@pengMaster had been having the same issue for the past 4 days, tried all kind of troubleshoot but still heading nowhere, please how did you solved it?

me too


27088 geos geometry should accept python 27 memoryview

:warning: This PR should be treated as introduce to discussion.
It looked like simple fix but it reviled some dipper problems. I can't just simple use memoryview in six.memoryview many python 2.7 libraries rely on buffer (ex. sqlite3). Se we need to use buffer as fallback.
I took assumption from the six module:

memoryview and buffer are not strictly equivalent, but should be fine for django core usage.

and I try to change comparison from single six.memoryview to six.buffer_types. In python 2.7 six.buffer_types will contains both buffer and memoryview in my proposal.
After some refactoring I discover that memoryview act not as expected with the bytes function which is used in many places outside the GIS lib as well.
Python 2.7
>>> bytes(memoryview(b'foo'))
'<memory at 0x7f3c2cd00640>'

Python 3.5
>>> bytes(memoryview(b'foo'))
b'foo'

I stop in here and I think this whole approach with additional six patches need to be rethink. memoryview from python 2.7 doesn't act exactly the same like in python 3.5. And unfortunately differences between buffer and memoryview are to big, we can't use them interchangeable. What do you think @claudep ?

As for me, Python 2.7 is the past, long live to Python 3!
If you find a compatible way to solve this, that's fine, but I will not take time to investigate for Python 2.7-only issues.

I don't want to discourage you from working on this but keep in mind that Django 1.11, which is the next version to be released, will be the last version to support Python 2.

@mociepka, do you plan to continue this?

There is not elegant way to solve this issue. If Django drops support to python 3 it is pointless to continue @timgraham .

Ok, thanks for looking into it.


Python.Test.ImageIndexing  fails with Python 3.7

2: Test command: /tmp/SimpleITK-build-cp37-cp37m/Testing/Installation/PythonVirtualenv/bin/python "/tmp/SimpleITK/Testing/Unit/Python/ImageIndexingTest.py"
2: Test timeout computed to be: 1500
2: E...
2: ======================================================================
2: ERROR: test_2d (__main__.TestImageIndexingInterface)
2: testing __getitem__ for 2D image
2: ----------------------------------------------------------------------
2: Traceback (most recent call last):
2:   File "/tmp/SimpleITK-build-cp37-cp37m/Testing/Installation/PythonVirtualenv/lib/python3.7/site-packages/SimpleITK-1.1.0rc1-py3.7-linux-x86_64.egg/SimpleITK/SimpleITK.py", line 4450, in __iter__
2:     raise StopIteration
2: StopIteration
2:
2: The above exception was the direct cause of the following exception:
2:
2: Traceback (most recent call last):
2:   File "/tmp/SimpleITK/Testing/Unit/Python/ImageIndexingTest.py", line 87, in test_2d
2:     self.assertImageNDArrayEquals(img[-4:-1:-2,-2:-1:1],nda[-2:-1:1,-4:-1:-2])
2:   File "/tmp/SimpleITK/Testing/Unit/Python/ImageIndexingTest.py", line 35, in assertImageNDArrayEquals
2:     for p,n in zip(img, nda.flat):
2: RuntimeError: generator raised StopIteration
2:
2: ----------------------------------------------------------------------
2: Ran 4 tests in 0.068s
2:
2: FAILED (errors=1)

This appears to be related to PEP 479:
https://www.python.org/dev/peps/pep-0479/

PR #554 fixes this issue.


Crashes when copying DFU file from Email

Version 4.0.4, iPad Air 2, iOS 9.3.5
I longclick the DFU attachment in the Email app, and select "Copy to nRF Toolbox". The splash screen appears and then nRF Toolbox crashes. No files can be found in the "Inbox" folder under "User Files" after restarting the nRF Toolbox.
I have experienced the same problem on two devices, and this seems to be the exact same problem that user "develooop" describes here: https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/issues/23

Issue is resolved and will be ready in the coming update, we have already submitted to the app store and will update the changes here very soon!


Fixed #32528 -- Replaced django.utils.topological_sort with graphlib.

ticket-32528.

Reopening now that Python 3.10 is the minimum supported version for Django 5.0.


cherrytree: 0.99.39 -> 0.99.40

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/giuspen/cherrytree/releases.
meta.description for cherrytree is: "An hierarchical note taking application"
meta.homepage for cherrytree is: "https://www.giuspen.com/cherrytree"
meta.changelog for cherrytree is: "https://raw.githubusercontent.com/giuspen/cherrytree/0.99.40/changelog.txt"
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

Warning: no invocation of /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40/bin/cherrytree had a zero exit code or showed the expected version

Warning: no invocation of /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40/bin/.cherrytree-wrapped had a zero exit code or showed the expected version

0 of 2 passed binary check by having a zero exit code.

0 of 2 passed binary check by having the new version present in output.

found 0.99.40 with grep in /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40

found 0.99.40 in filename of file in /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40

directory tree listing: https://gist.github.com/bbbbee156d29ebdf8e01edc16227846c

du listing: https://gist.github.com/e36da0c950722032c8600cfbf264c4e2

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
cherrytree

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A cherrytree https://github.com/r-ryantm/nixpkgs/archive/59b6ec82f38ddacd1150d48f96b449c6626f9e79.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40
ls -la /nix/store/29v2vjhh2y9327j3fk59pm394swm9d3g-cherrytree-0.99.40/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

cherrytree

Maintainer pings

Result of nixpkgs-review pr 133099 at 59b6ec82 run on x86_64-linux 1

1 package built successfully:

cherrytree

1 suggestion:

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/applications/misc/cherrytree/default.nix:65:5:
   |
65 |     maintainers = with maintainers; [ ];
   |     ^


[BUG] Patcher doesn't work while imported

Before Reporting...

[x] I have searched the existing issues and can confirm that a similar report has not already been submitted.
[X] I have consulted the Wiki and FAQ to see if my issue was already addressed.

Issue Description
I think it's because of creating a new instance of BdApi, if you replace it in the output file with const betterdiscord = BdApi; all works.
Steps to Reproduce
import { Patcher } from "betterdiscord";

Patcher.before("name", Module, "function", (_, args, origin) => { console.log(args) });

Anything else?
No response

With a bound instance of BdApi, Patcher methods do not take a “name” argument. Does that fix your issue?


Authorization | Approve Recommended Credit Transfer Proposals |5| [v0.2.1]

https://trello.com/c/L0rdI7By/336-authorization-approve-recommended-credit-transfer-proposals-5-v021
Story:
As the Director, I want to be able to Approve a recommended Credit Transfer Proposal between two fuel supplier organizations and this action needs to result in a material change in the credit balances of both organizations.
Scenario 1:
GIVEN that I am an Organization
AND my organization type is Government
AND my role is the Director
AND I have received a Recommended (Recommend Approval) Credit Transfer Proposal from a Government Analyst
WHEN I am viewing the Credit Transfer Proposal in TFRS
THEN I am able to see the Approve button
AND when I click on the Approve button
THEN the credit transfer proposal status changes to approved/completed
AND a material change occurs in the credit balances of both fuel suppliers
Scenario 2:
GIVEN that I am an Organization
AND my organization type is Government
AND my role is the Director
AND I have received a Not Recommended (Recommend Declining Approval) Credit Transfer Proposal from a Government Analyst
WHEN I am viewing the Credit Transfer Proposal in TFRS
THEN I am able to see the Approve button
AND when I click on the Approve button
THEN the credit transfer proposal status changes to approved/completed
AND a material change occurs in the credit balances of both fuel suppliers
Demo:
Show Approve button on Recommended (Recommend Approval) credit transfer proposals
Show Approve button on Not Recommended (Recommend Declining Approval) credit transfer proposals
Show change in credit balance for both parties when the transfer is approved / completed (Card 231)
Show that the Approve button is not available to any other role in the TFRS system

 Authorization | Approve Recommended Credit Transfer Proposals |5| [v0.2.1]


Update listener example to match current API

set file as executable as well

Coverage remained the same at 56.89% when pulling 87051ae5aa1434ded2ed05646fa56576c31f32a2 on jpeeler:master into e09b3139eecd6aeca0c6acf48035ca3ffa96f87d on randomchars:master.


New version: uazo.cromite version 128.0.6613.116

Created by 🥟 Dumplings in workflow run #3982.
Logs
Updated: 128.0.6613.114 → 128.0.6613.116
Cannot validate argument on parameter 'ChatID'. The argument is null, empty, or consists of only white-space characters. Provide an argument that contains non white-space characters, and then try the command again.
Submitting WinGet manifests
Cannot validate argument on parameter 'ChatID'. The argument is null, empty, or consists of only white-space characters. Provide an argument that contains non white-space characters, and then try the command again.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:
(Automated response - build 894.)


Fix for installation of 5.7.10

Thanks for your contribution.
By the time I received this request, the issue was already solved. It took a few hours to complete because I had to make sure all the tests were running correctly before releasing.


Segmentation fault during ab load test

Environment info
Operating System:
Ubuntu 16.04.2 LTS on AWS p2.xlarge
Compiler:
gcc version 5.4.0
Package used (Python/R/Scala/Julia):
Python
MXNet version:
Or if installed from source:
0.10.1
MXNet commit hash (git rev-parse HEAD):
3ceb6d2f91121d5ffa5b81f435e8bcfcc1a75792
Python version and distribution:
Python 2.7.12
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
What am I trying to achieve
I wanted to speed up predictions on a bunch of urls in order to scale. So I decided to preload the model.
I setup a server using rpyc package that preloads the model. I have client.py that connects to the server and predicts the result.
All of this is working fine but when I 'load test using apache bench' it gives me the following error.
Error Message:
Thread 2366 "python" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa8a09700 (LWP 22485)]
0x00007fffe4b55123 in mxnet::CopyFromTo(mxnet::NDArray const&, mxnet::NDArray*, int) ()
   from /home/ubuntu/softwares/mxnet/python/mxnet/../../lib/libmxnet.so
(gdb)

I tried

gdb to understand the error.
htop to see how its performing

Finally, I would try loading the model normally instead of pre-loading.
Let me know what can be done!
Thanks,

Stumbled upon this #3946 issue and understood the problem much better.
Got to know that the engine is not thread-safe!
Is there anywork going on currently to make the engine thread safe?
It would be good to have a faster preditcion service.
Thanks.


W-036866 - Update locator for new account, account name

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Testing Notes

This fixes the locator for Account Name - Create Contact - in the program_enrollments robot script

@robertbwatson - I've put you as the review for this fix.  It fixes the broken program_enrollments.robot script.  You can merge and delete the branch.

@dashattuck This seems fine as long as the builds are passing now. Should someone more familiar with our Robot scripts be reviewing this instead of me?

We don’t need RE any longer.  And normally I would have another automation
developer look at the robot code, but this is an xpath update so we are
good to go.
On Tue, Oct 15, 2019 at 5:24 PM Robert Watson<EMAIL_ADDRESS>wrote:

@dashattuck https://github.com/dashattuck This seems fine as long as
the builds are passing now. Should someone more familiar with our Robot
scripts be reviewing this instead of me?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SalesforceFoundation/EDA/pull/968?email_source=notifications&email_token=AH77T2EJ4IAL5MQV4IE7IQTQOZGKFA5CNFSM4JBDEN32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKQ42A#issuecomment-542445160,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH77T2CBEPMMVLDIBVI22ADQOZGKFANCNFSM4JBDEN3Q
.

--
Doug Shattuck
Test Automation Engineer | Salesforce
Mobile:<PHONE_NUMBER> <(385)%20242-9732>
http://smart.salesforce.com/sig/dshattuck//us_mb_kb/default/link.html

Awesome! Thank you Bobby!
On Tue, Oct 15, 2019 at 6:00 PM Robert Watson<EMAIL_ADDRESS>wrote:

@robertbwatson approved this pull request.
@dashattuck https://github.com/dashattuck Thanks, I'm approving this. I
won't merge until our merge freeze is lifted tomorrow.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SalesforceFoundation/EDA/pull/968?email_source=notifications&email_token=AH77T2GOXDM25PEW24IYFGLQOZKTNA5CNFSM4JBDEN32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCICCCAI#pullrequestreview-302260481,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH77T2CIWVZDVDUZYHDWLPLQOZKTNANCNFSM4JBDEN3Q
.

--
Doug Shattuck
Test Automation Engineer | Salesforce
Mobile:<PHONE_NUMBER> <(385)%20242-9732>
http://smart.salesforce.com/sig/dshattuck//us_mb_kb/default/link.html


Keyboard manager incompatible with Ditto

Microsoft PowerToys version
0.67.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
Enable keyboard manager, using ditto to paste
✔ Expected Behavior
Paste the content in clipboard
❌ Actual Behavior
Paste characater v (It seems the key v is pressed)
Other Software
Windows 11 pro 22621.1194

What exactly fo you remap?
/needinfo

Is this issue still relevant in v0.73? /needinfo


Has hard time staying in character (i.e. gives up on cookie)

This might be an underlying flaw in GPT but after about six responses giving me business advice in exchange for the cookie it said, "As an AI language model, I don't have feelings or desires, so I don't actually want a cookie." So seems like it has a hard time staying in context. Not sure if this is overcomeable.

To test this would need some API access and test environment to see how long it can stay in character before giving up and going back to "default mode"

Yes, this is the concept of the "system message" (see https://www.youtube.com/watch?v=L_Guz73e6fw @ 26:40). This is a property of GPT-4, it's the way its trained. Future versions may be more flexible on this or other open models might be more open.


IndexError: index 160 is out of bounds for axis 0 with size 160

I get this error when I train on bottleneck.
IndexError: index 160 is out of bounds for axis 0 with size 160
This is the code that the error says it has the problem
def bottleneck_generator(annotation_lines, batch_size, input_shape, anchors, num_classes, bottlenecks):
n = len(annotation_lines)
i = 0
while True:
box_data = []
b0=np.zeros((batch_size,bottlenecks[0].shape[1],bottlenecks[0].shape[2],bottlenecks[0].shape[3]))
b1=np.zeros((batch_size,bottlenecks[1].shape[1],bottlenecks[1].shape[2],bottlenecks[1].shape[3]))
b2=np.zeros((batch_size,bottlenecks[2].shape[1],bottlenecks[2].shape[2],bottlenecks[2].shape[3]))
for b in range(batch_size):
_, box = get_random_data(annotation_lines[i], input_shape, random=False, proc_img=False)
box_data.append(box)
b0[b]=bottlenecks[0][i]
b1[b]=bottlenecks[1][i]
b2[b]=bottlenecks[2][i]
i = (i+1) % n
box_data = np.array(box_data)
y_true = preprocess_true_boxes(box_data, input_shape, anchors, num_classes)
yield [b0, b1, b2, *y_true], np.zeros(batch_size)
Is there something wrong with the code? or is there any other solution?

The code works.  I got similar errors because of incompatible versions of tensorflow, cuda, cudnn, keras.
It works for me with Cuda 10, cudnn 7.6,  tensorflow-gpu==1.15.3 and Keras==2.2.4.

@Anyman552 I used train.py and I got no error with the code, but when I used train_bottleneck I faced the same problem, train_bottleneck worked with little amount of data but with a high loss then nan, when I try on the whole dataset I similar error. any idea?

Unfortunately no. I only use train.py. Sorry!


configmap & utime sync: provide via hive cell

Currently, the interaction with the BPF map configmap and the corresponding utime sync is mainly via global accessors.
This commit refactors this, by introducing hive cells for the configmap and the utime sync.

rebased and resolved conflicts

/test

/test-1.27-net-next

rebased to main

/test

/test-1.27-net-next

test-1.25-5.4 (https://jenkins.cilium.io/job/Cilium-PR-K8s-1.25-kernel-5.4/107/) flaked with https://github.com/cilium/cilium/issues/24966

why is this ready to merge? it's not approved by cilium/sig-datapath yet right?

why is this ready to merge? it's not approved by cilium/sig-datapath yet right?

@michi-covalent jussi is part of sig-datapath and looks like the perfect reviewer for this :)

@michi-covalent jussi is part of sig-datapath and looks like the perfect reviewer for this :)

oh yeah he is. sorry i got confused because yutaro is still listed as the code owner from sig-dapath.


Gem can't find legumeinfo-jekyll-theme

Where do I put it? (I'm assuming that there IS a way for Jekyll to load it locally, rather than from the aether. Seems weird that it wouldn't be able to.)
shokin@morangie:~/sams-test-site$ ls
404.html  about.markdown  _config.yml  Gemfile  Gemfile.lock  index.markdown  legumeinfo-jekyll-theme  _posts  _site
shokin@morangie:~/sams-test-site$ bundle
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Could not find gem 'legumeinfo-jekyll-theme x86_64-linux' in any of the gem sources listed in your Gemfile.

shokin@morangie:~/sams-test-site$ gem install legumeinfo-jekyll-theme
ERROR:  Could not find a valid gem 'legumeinfo-jekyll-theme' (>= 0) in any repository

(I could probably figure it out, but since I'm following your instructions, you need to tell me in your instructions.)

I'm not sure this is relevant to how @alancleary wants to approach the short term solution to this but FWIW, here is the approach @nathanweeks took to solve this in the containerized version:
git diff 79c73421da19632123e3c21bb56b172d5742000e 9d7072e5d6febf7beaf42773612021d060ed3bb7 _config.yml
diff --git a/_config.yml b/_config.yml
index b0cde81..5a1c1e2 100644
--- a/_config.yml
+++ b/_config.yml
@@ -32,10 +32,9 @@ github_username: legumeinfo
newsletter: http://eepurl.com/cX_JjL
Build settings
-remote_theme: legumeinfo/legumeinfo-jekyll-theme@1d0c318
+theme: legumeinfo-jekyll-theme
plugins:

jekyll-feed

jekyll-remote-theme

Exclude from processing.
The following items will not be processed, by default.
@@ -45,8 +44,7 @@ plugins:
Excluded items can be processed by explicitly listing the directories or
their entries' file path in the include: list.

-exclude:

docker-compose.yml
+# exclude:

- .sass-cache/

I've got the theme: command in _config.yml. Gem doesn't find the theme. I presume it's just a location thing. I'm not using Docker, I'm rolling my own. (I'm not a huge fan of Docker for stuff like this, TBH, I like to build stuff from scratch for this sort of getting-to-know-the-code task.)

OK, I got it, I have to actually replace the local Jekyll files with the theme files, thereby breaking the theme repo. So it's not really designed to handle modular standalone themes. Basically, clone the theme repo first and then build the site from there. The Gem theme is really mandatory to keep things separate, which I consider being a slightly bad design.
https://jekyllrb.com/docs/themes/#converting-gem-based-themes-to-regular-themes

@sammyjava You can build and install the theme's GEM locally instead of copying the files:
cd legumeinfo-jekyll-theme
gem build legumeinfo-jekyll-theme.gemspec
gem install ./legumeinfo-jekyll-theme-0.0.0.gem

Then it's just a matter of following the installation instructions in the Legumeinfo Jekyll Theme readme.

Cool. Thanks. That makes sense.


Remove unnecessary linux skip for test

I looked for low-haning Linux tests to fix since I was already in that sphere, and I saw this test. It ran fine on my system. Better to have it run on Linux since it can! :)

@swift-ci please test

Hmmm. This might be a configuration issue, where we don't have the path to the toolchain

Hmmm. This might be a configuration issue, where we don't have the path to the toolchain

Yeah, this is a bit weird.
If you follow the Linux docker guide in the README on macOS (https://github.com/apple/swift-driver#preparing-a-linux-docker-for-debug) and run this branch you will see that all tests passes. If you change the test to something like assertString(swiftVersion, contains: "Schmift") you will se it fails.
I don't know what the configuration on the CI is, but if that is public we can compare it to the swift Dockerfile.

@swift-ci please test

Yes! Working now with the recent toolchain improvements

Awesome! Great to see :)


Mangled markdown formatting for a list with indented items

Before format, the Goal:

After format, not desired result:

@jasonkuhrt Hey 👋 !
Sorry, but I don't see this happening anytime soon; indentation is something that gets completely removed and ignored while parsing the lines, and calculating the sentence's "break" to accommodate the printWidth. Adding that kind of support would mean rewriting a LOT of stuff.
Now, looking at your example, I would say you are using the plugin just for the printWidth there, and I would suggest you to add the @prettierignore tag and handle it manually.
I'm sorry I can't be of much help with this, but to be honest, the support for basic markdown styling was a happy accident, and supporting markdown completely is way out of scope for the plugin.


mltools/isomapEmbed.m??

The 'neighbours' parameter is set 7 in the latest version for this function, while its value is 10 in its previous version. Why did you change this parameter ‘'neighbours" from 10 to 7?

I don’t recall when this change was made, but it makes the initialisation ‘less linear’. E.g. if you send number of neighbours to $n$ you are doing PCA.


kubectl proxy supports picking random unused port, add e2e test

Explicitly support--port 0 to pick a random unused port. This functionality existed previously but was undocumented. Changed command to output the port after Listener is created so users can tell what port proxy is running on, and updated help text.
Default command behavior unchanged, but we could make picking random unused port the default (-p default to 0) to be consistent with kubectl port-forward.
Note that the primary motivation for the code change is to make kubectl proxy testable by the included e2e test (specifying explicit port would be unlikely to work, especially when test is run in parallel on jenkins).
#10764
cc @bgrant0607, @nikhiljindal

If not P0, this needs to wait until next week.
cc @deads2k

cc @stefwalter

In general this looks good.  This is not a substitute for #10608. Unix sockets have strong enforced security attached, where as anyone (on some network, behind firewall) can access kubectl proxy when using a TCP socket.

Is there no way for me to choose the listen address for the proxy to limit which nics will be proxying?  In the API server, we call it --listen, I think you call it --bind-address (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cmd/kube-apiserver/app/server.go#L151).

A couple suggestions, but nothing significant.
lgtm

@stefwalter, I agree this is not a substitute for #10608. Since this was triaged 1.0-post, I'm happy to wait until your pr is merged to add this.

Needs a rebase.

@jlowdermilk is this still on your radar?

Rebased, addressed comments. proxy server now listens on localhost only. I had intended to wait until #10608 was merged to combine e2e tests, but this can go in first when tests are green.

LGTM, let's get it in.


Here is fork with fixes to make it work again

Looks like this repo is abandoned(at least for now), so here my fork with fixes provided as is in case somebody needs them: https://github.com/Keramblock/dmarc-visualizer feel free to take them if you want to.
For author: I've created PR(https://github.com/debricked/dmarc-visualizer/pull/38), if you want to implement this fixes. Also feel free to close this issue once this repo will be fixed, thank you for your work anyway!

Can't get this working as the elastic search doesn't seem to be starting. The parsedmarc is throwing a connection error and I'm only seeing containers for parsedmarc and grafana

DOes anyone manage to use dmarc-visualizer ?
I, too, have issue making it work ... I used your fork but there is no index created in elasticshearch, I can only find the geoip one.
When in grafana, I could see that the sources for dmard reports have not been created.
Any one could help ?

No I can't find the solution and I have the same problem.

For anyone still struggling with this, see my comment on this newer Issue https://github.com/debricked/dmarc-visualizer/issues/41#issuecomment-1386567305


Bugfix: dispose never called in nested fragment

I have AndroidFragmentApplication that is attached into another fragment and dispose() method is never called.
The issue was that in nested fragments isRemoving() method always returns false.
The solution was to invoke isRemoving() on parent fragment that is attached directly to activity

I'm not certain this is the way to go. If you are adding child fragments it is really sort of your job to manage them.

I changed the source a little.
@MobiDevelop
If one of the parent fragment is in the removal process then we need to clear libgdx data and call dispose for sure.
Currently for nested fragments dispose is not called - without any warning, without any documentation.

sounds reasonable

I guess it is fine, but still would argue that it is your responsibility.

@MobiDevelop
If I remove fragment I would expect that all resources associated with it are released.
Forcing a developer to remember about something that can and should be done automatically is not good direction.
But it is up to you. Thx for great library.

The child fragment lifecycle is sort of unique, Android seems to leave a
lot to the developer on that front, but we can go ahead and merge this.


Install rHFA from github repo - vignette

To build rHFA directly from the repo, this command works:
> remotes::install_github("TomG007/rHFA", build_vignettes = TRUE, force = TRUE)
Should we include a note in README, or not worry about it because users should find it on CRAN?

yes I think we should
On Wed, Oct 30, 2024 at 11:32 AM Thomas Glancy @.***>
wrote:

To build rHFA directly from the repo, this command works:

remotes::install_github("TomG007/rHFA", build_vignettes = TRUE, force =
TRUE)

Should we include a note in README, or not worry about it because users
should find it on CRAN?
—
Reply to this email directly, view it on GitHub
https://github.com/TomG007/rHFA/issues/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB4MKJVSN2P4YRF2UTYKHI3Z6FF5HAVCNFSM6AAAAABQ5BH5XOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDKMZZGA4DQMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Added this to the Brief how-to: section
The rHFA Guide vignette contains a step-by-step analysis of sample data. When installing the package from github, use this command to ensure the vignette is included.
> remotes::install_github("PatrickEwing-USDA/rHFA", build_vignettes = TRUE)


Debug and Run without debug should have different args options in luanch.json

for example a flask project:
when debug:
args is

--no-reload
--no-debugger

when run without debug:
there is no args needed

Run without debug

This merely tells the debugger not to break into the code.
Whether you want to optimize the application for running without debugging is upto the user. The default configuration is for debugging.


omegaconf.errors.missingmandatoryvalue:

when I try to do testing alone, such error occurs, could you please tell me how to fix the problem?
Traceback (most recent call last):
File "launch.py", line 125, in
main()
File "launch.py", line 52, in main
config.exp_dir = config.get('exp_dir') or os.path.join(args.exp_dir, config.name)
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 359, in getattr
self._format_and_raise(key=key, value=None, cause=e)
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/base.py", line 231, in _format_and_raise
format_and_raise(
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/_utils.py", line 900, in format_and_raise
_raise(ex, cause)
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/_utils.py", line 798, in _raise
raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 351, in getattr
return self._get_impl(
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 451, in _get_impl
return self._resolve_with_default(
File "/opt/miniconda3/envs/ngp_pl/lib/python3.8/site-packages/omegaconf/basecontainer.py", line 96, in _resolve_with_default
raise MissingMandatoryValue("Missing mandatory value: $FULL_KEY")
omegaconf.errors.MissingMandatoryValue: Missing mandatory value: name
full_key: name
object_type=dict
the command I input is as such:
python launch.py --config configs/neus-blender.yaml --resume exp/neus-blender-lego/ckpt/epoch=0-step=20000.ckpt --gpu 0 --test

If you do not use configs in the experiment directory (e.g.,  exp/neus-blender-lego/config/parsed.yaml), you still need to specify the scene by dataset.scene=xxx, even if you resume from previous checkpoints :)

this makes efforts, thank you for your reply!


Add configuration examples to docs widget table

The current widget documentation doesn't explain how each widget should be configured. One approach would be to add example configurations to the table of widgets in the docs.

@erquhart I've suffered quite a lot with the lack of a better widget documentation. For this reason I'm excited to make this my first contribution 😄 Eventually Caleb sent me a link to the kitchen sink config.yml, but I'm still unsure about the possibilities of certain widgets...
That's why I think that, besides providing examples, we should redesign the table in order to include more room to talk about each widget. Thinking about that, I've quickly sketched 3 different approaches for a new section, all following the principle of progressive disclosure. Basically, we don't want to show every widget at once as the list might grow and as it limits the amount of information we can have for each item - else it'd be too heavy on the eyes, super intimidating - and so we only show them when the user asks - AKA clicks on a field or scrolls down.
My first and favorite idea is using a type of word cloud with each input name, as shown in the image below, and then show only the one with active state - which changes as the user clicks each cloud. It's very easy to make this system responsive and it has quite a lot of room for individual information!

As a bonus, I've also thought of creating a simple form that generates fields based on user input. The "Options" part of the image above would change based on the "Widget" input value, transforming into "Format", for example, in case the user selected the date widget. Again, following the word cloud visual, each value for the options could be easily created or deleted without polluting the page with a bunch of inputs.
Following the same principle but still keeping part of the table aspect of the current model, I thought of using a clickable accordion. Even easier to make it responsive and even more room than the word cloud solution, but a bit less pleasing on the eye, in my humble opinion.

Finally, inspired by Hugo's documentation I've also created cards as a proof of concept, but I think it'd take too much scrolling for the user, especially on mobile...

These are all the ideas I had so far, but I'm willing to discuss them freely and search for further options 😃
I can also do the actual coding of whichever option we choose, just gotta figure out the project structure and then I can make a PR, my first one (exciting)!
PS: I've included the .xd file I've used to create this as a zipped folder below:
Experimento.zip

This is SO awesome, I love it!!
I think an ideal scenario would be to pull the generator concept out into a separate web interface that we link to from the docs, maybe even in a separate section of netlifycms.org, as we've also discussed creating a config validator as a web interface, so maybe we'd have a few of these tools over time.
For the display of widget info in the docs, these are all really great concepts, and I'm honestly torn. I like the cloud most, but it feels like that spice on the side is a bit constricted, especially for more complicated widget configuration examples. I'd also like space for one or more images to help folks better understand what the widget is.
@neutyp @rafaelconde any thoughts from the design pros?

Awesome! Sign me in for the config validator and the whole generator thing when it's due time ;)
About the cloud, I totally agree with you, in fact this was one of my main concerns about it... There are pretty much two ways I can see to work around this:

Make the word cloud more vertical in order to increase the height - and therefore the room available - for the widget description part, centralizing all the content in the middle (a kinda dirty solution that wouldn't necessarily work for all cases); or
Make the widget cloud occupy a whole row and free up "unlimited" space below for the widget description. Even if the section keeps jumping in size due to the difference in content of each widget, the user experience would be much better, and there are ways to make it less of a pain such as a nice transition in the height. Today I'm a bit busy with work and school but I've attached below a quick (dirty) example of how it could look (not polished at all, just grasp at the concept haha)

Yep, this could definitely work! As long as there's room to properly whitespace the code sample for clarity, this seems like a great approach.
cc/ @verythorough would love your thoughts on this too.
Regarding the generator, I'd be cool with just adding a Tools section to the docs and putting it there for now. Probably need to play with Hugo a bit to get it going, but if you're up for that a PR would be awesome.

Sorry, I've been under the weather and not keeping up with things. I'm really excited about these ideas, and have been thinking about how to implement them.

Unfortunately this week and the start of the next are a bit frantic with school and some client work, but I'll begin with the widget cloud next Wednesday or Thursday - and, of course, paying attention to the whitespace and clarity of the code. When I'm done with that, I'll fiddle with Hugo and see what I can do, but in advance I'll tell you I'm not the best JS developer out there, so the generator code might be a bit messy - which is great for me cuz it'll allow me to learn, but might be tedious for you and the other maintainers to check on it. Anywho, we'll see how it goes, gimme a week and I'll have the widget cloud ready :D

Sounds great, looking forward to it!

I'm looking forward to your work, @hcavalieri!
To save you some trouble and get a better reference in place in time for 1.0, I'm going to lay some groundwork and get all of the widget info spelled out in (relatively) plain text. I'll add each widget under an H2 (so they're linkable from the sidebar), with the characteristics you list in your mocks. Once those are in, you can apply fancier functionality when you get the time.

That's awesome, @verythorough !
Jessica, I can help you with that, but I think it'd be beneficial if you took a look at the WIP PR for this section as I've took my liberty to change the way the widgets content is served to the Docs: now each widget will have its own .md file, if y'all agree with this.
While we don't have all the info for each, I'll finish styling the section and making sure all is good and round for merging, then we need only fit in the .md files inside site/content/docs/widgets and we'll be done!


Support for SBT 1.0.0

Doing a quick glance at the code/build, it doesn't look like much has to change.  The project compiles with SBT version 1.0.0 just fine it seems.
So my question is... do you want to Cross Build the SBT versions or would a PR that just straight up builds against 1.0.0 only be acceptable?

I'm happy with either. I've been out of the Scala game for a while unfortunately, so not sure what the current usage/standards are. It looks like SBT 1.0 requires Scala 2+, is that right?
If so, backwards compatibility with 1.x would be great.

Closed by #12

The merge build failed.  Looks like I made some incorrect assumptions about how your build was configured.  Do you know what the 'secure' env vars was in the travis.yml?
In either case, the reason is failing is because you need to setup 2 env vars in Travis
BINTRAY_USER and BINTRAY_PASS.
BINTRAY_PASS shoud be the bintray API key.

Yep I started looking into it and then, you know, life got in the way!
@Philippus has kindly offered to help me get this fixed and help maintain his (I'm happy to offer to you also given your recent contributions).
In the meanwhile, I'll see about obtaining new creds and adding to the .travis.yml file.

Cool, I've reinstated the old script that setup the Bintray credentials and we now have a green build and latest release

cool! I've pushed a tag, so now it's also available under https://github.com/mefellows/sbt-dotenv/releases


[WEBSITE-683] Now sort is case and accent insensitive

Coverage remained the same at 100.0% when pulling c6ce2f1fc684ccae94983a5783191f4d4c79b1d2 on katylouise:katylouise/website-683_fix-sort-bug into b3be720a71d5d0615d2f471a0704ae47bd1505f1 on ukparliament:master.

Coverage remained the same at 100.0% when pulling c6ce2f1fc684ccae94983a5783191f4d4c79b1d2 on katylouise:katylouise/website-683_fix-sort-bug into b3be720a71d5d0615d2f471a0704ae47bd1505f1 on ukparliament:master.


How do you get rid of the cursor while bhopping?

When i open it to tweak settings, no matter if i close it, my cursor annoyingly stays in the middle of my screen

This issue is only present in CSS, and I am no longer supporting the project. If anyone is interested in this, the draw cursor hook in CSS is likely incorrect, and would only need an offset value update in hooks.cpp.


Cross Endian between XRCE-DDS Agent and XRCE-DDS Client

hi, I try to porting on PowerPC t2080rdb the XRCE-Client
I configured the Client to Big-endian and running SubscribeHelloWorld on ppc
So result like-below

but the Agent read  Xtype String length as Little-endian, even if submessage Header flag is 0x04
Did I do something wrong?

Could you share a replicator?

I can't understand what replicator means.
but I just changed the Client's  and CDR's CMakeList CONFIG_BIG_ENDIANNESS options on

Is correctly set the endianness flag on the ucdrBuffer structure:
void on_topic(
uxrSession* session,
uxrObjectId object_id,
uint16_t request_id,
uxrStreamId stream_id,
struct ucdrBuffer* ub,
uint16_t length,
void* args)
{
// Check this
printf("ENDIANESS: %d\n", ub->endianness);
(void) session; (void) object_id; (void) request_id; (void) stream_id; (void) length;

HelloWorld topic;
HelloWorld_deserialize_topic(ub, &topic);

printf("Received topic: %s, id: %i\n", topic.message, topic.index);

uint32_t* count_ptr = (uint32_t*) args;
(*count_ptr)++;

}

Here's what the client sees as the received message

The length of a string of type Xtype seems to be misread as a little-endian in the agent.

Here's what the client sees as the received message

Sorry, but I cannot retrieve enough information from this

Oh something changed, When I built the agent in the develop bench
But previous error condition has passed but raised seg fault in Agent


Multiparty doesn't work with Sails

I tried to use Skipper, but it buffers the uploaded files on disk, so I try now to use Multiparty, which works great with Express and bare Node.js
Multiparty works great to stream upload files without getting stored, yet, it fails with Sails, look at this:

module.exports = {

    image_uploadx : function  (req,res) {

        var form = new multiparty.Form();

        form.on('field', function(name, value) {
            console.log('field on ... ');
          if (name === 'path') {
            destPath = value;
          }
        });

        form.on('part', function(part) {
            console.log('on part ...');
            var date_string_seed = String(new Date())
            var random_name = require('crypto').createHash('sha1').update(date_string_seed).digest('hex');

            s3Client.putObject({
                Bucket: bucket,
                Key: random_name,
                ACL: 'public-read',
                Body: part,
                ContentLength: part.byteCount,
            }, function(err, data) {
                if (err){
                    throw err;
                } else {
                    console.log("done", data);
                    console.log("https://s3.amazonaws.com/" + bucket + '/' + random_name);
                }
            });
        });

        form.on('error',function  (err) {
            // res.send('error happpend: ' , err)
        });
    }
}

What shall be done now?

Hi @super-iterator.  I can't really speak to your problems with Multiparty since 1) we're not developers on that project and 2) you haven't posted the actual problem you're having (you just said "it doesn't work").  Additionally, this forum is for reporting bugs on the Sails core, so this kind of question is more appropriate for StackOverflow, or our Google Group or online chat (but again, you'll have to be a lot more explicit about the actual problems you're having).
What I can say is that Skipper is specifically designed to not buffer files to disk--that's the whole point.  The skipper-s3 adapter does buffer parts to disk, because Amazon requires parts to be at least 5 megabytes in size.  But otherwise Skipper uses streams and back-pressure to ensure that your disk (or memory) isn't overrun when uploading large files.

@sgress454 .. Thanks for your response!
Skipper-s3 adapter uses node-knox behind the scenes to stream-upload the files to S3, which never happens, I monitored the node process while uploading, it buffers the upload to disk.
While I tried the same for Node-Multiparty, example code in the link below:
https://gist.github.com/super-iterator/de13aa572d2ca8a8aef2
I monitored the process, no matter what how big the files are, nothing get buffered to disks, which is great.
Is that a difference between knox and multiparty regarding s3 stream-upload?

I was wrong, multiparty buffers S3 uploads to memory before the real upload happens


use pub run for create test and remove [INFO] logs

Description
Since we're only running one (or two?) test files the overhead of pre-compilation is not worth it. This will also cut down on the logspam in this particular case.

Thanks - I meant to do this and forgot

Is commands/create_test.dart the only test that uses the 'create' tag? I can just pass the test file directly to avoid loading everything else

I think so but would have to double check.  Actually for this one we probably don't want to use tags so test doesn't have to scan the whole thing

Updated to use the testfile

LGTM


chore: upgrade Prettier and run on full repo

**Description:**
- Move Prettier 1 ->2 to support `.` glob and built-in parsers
- Move whitespace settings to EditorConfig that Prettier reads
- Expand glob to run on all non-generated files
**Related issue:**
Add link to the related issue.
**Check list:**
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.

@oscard0m probably easier to review this with the "whitespace ignore" option

Hello @nschonni. Thank you for your pull request. We'll investigate it.

No £


Proper handing of raw strings in rust

Fixes #2678
Checklist

[x] I have added tests
[/] I have updated the docs and cheatsheet
[/] I have not broken the cheatsheet

Could we also have a test for more hashes, like r##"hello"##?

Oh that is valid? I did not add support for that.

Oh that is valid?

Per the language reference (also linked in the issue), yes :)

Oh that is valid?

Per the language reference (also linked in the issue), yes :)

Tree sitter gives us no help here so all those different combinations with hashes and backslashes is something we need to solve with regex in that case.

Now we support multiple hashes :)


Github doesn't know what license this is

Github doesn't seem to understand that this repo is under the MIT license. Perhaps the license file was modified enough that it's not working properly?

Can confirm it's MIT license. Not sure why GitHub doesn't understand. Does it cause any problems?

It means that if anything is trying to use a github shield like in my original comment, it will show as not identifiable. That and anything meant to use the Github metadata through one of their APIs will not recognize what license this is under.

Is there an easy fix?

I have no idea. Perhaps replacing the file with a fresh copy of the MIT license template?
https://github.com/licenses/license-templates/blob/master/templates/mit.txt

Could be that. Just had a quick skim and found this https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository#detecting-a-license so could because there are two license files.

Oh, quite likely. In that case you might want to remove one of them.


Wrong compress for consecutive switch statements

Describe the bug
The minifier compresses consecutive switch statements wrongly.
Input code
var a = (() => {
  switch ("production") {
    case "production":
      return "expected";
    default:
      return "unexpected1";
  }

  switch ("production") {
    case "production":
      return "unexpected2";
    default:
      return "unexpected3";
  }
})();

console.log(a);

Config
{
  "jsc": {
    "parser": {
      "syntax": "ecmascript",
      "jsx": false
    },
    "target": "es5",
    "loose": false,
    "minify": {
      "compress": {
        "arguments": false,
        "arrows": false,
        "booleans": false,
        "booleans_as_integers": false,
        "collapse_vars": false,
        "comparisons": false,
        "computed_props": false,
        "conditionals": false,
        "dead_code": true,
        "directives": false,
        "drop_console": false,
        "drop_debugger": false,
        "evaluate": false,
        "expression": false,
        "hoist_funs": false,
        "hoist_props": false,
        "hoist_vars": false,
        "if_return": true,
        "join_vars": false,
        "keep_classnames": false,
        "keep_fargs": false,
        "keep_fnames": false,
        "keep_infinity": false,
        "loops": false,
        "negate_iife": false,
        "properties": false,
        "reduce_funcs": false,
        "reduce_vars": false,
        "side_effects": false,
        "switches": true,
        "typeofs": false,
        "unsafe": false,
        "unsafe_arrows": false,
        "unsafe_comps": false,
        "unsafe_Function": false,
        "unsafe_math": false,
        "unsafe_symbols": false,
        "unsafe_methods": false,
        "unsafe_proto": false,
        "unsafe_regexp": false,
        "unsafe_undefined": false,
        "unused": true,
        "const_to_let": false,
        "pristine_globals": false,
        "passes": 1
      },
      "mangle": false
    }
  },
  "module": {
    "type": "es6"
  },
  "minify": false,
  "isModule": true
}

Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.28&code=H4sIAAAAAAAAA6WNQQoCMRAE73lFk1NyEdSby%2FqXMBl1IWSWZKKC7N%2BVoCieBK9dRdc5FASMcM5j3ONmgHqZlE5wdi4SG%2Bkk2fpOAAqV8Ql2fQYKaysZlq8zk3K0QweRD6El%2FbZafnnrLi7m3%2B77cfNrevtML975wRiSXCXxKsnRhcdwB02YIAgaAQAA&config=H4sIAAAAAAAAA32VO3LjMAyGe5%2FCozrNFrtFDrBdzsChSVCmVyQ1BOhYk%2FHdF6IkJ3FAdRY%2BQDB%2BPPRxOB67C5ru9fjBP%2Flh1BkhP57ZglMkfWNLByZoNNmP1L1s9IIzcnpAqKb7QjrSuQeqUfh7de%2BGlBA299UWfPRu%2BprQpDBmQPxiYyu%2FrwSIhN%2FjV5bTuwROKQ2g4x5SGpWPBD1kyc2kYdAjgrrqBg8smcckJplpIbBqzGmUHaL15FNku4AtaKtMsrNolMs35DMY8lcQ4zgdx0XkGlvYwqn0fe31M4erHoomKRRutTf8jwV4Th5JuSJqscCWEAttiOydykAlx58yXJKPrbB%2FAKzCoBGjDqJO1cPxaLXhbqiPjseXJoHzrIuFRuhZWeW9k%2BSd5YFMXkyZwRYDs75mBzfEQG9BgXM8NCJ%2B92TONe2TwjSNkJwUw33WYhULUM21XPm8HTv4L9dJ8qCtHkHTuU1xCqckrtUWDnROdseBu0GpjTMfjdvY5iVa4PkAK7oUrOBJ7XlpSVFSQ72eP%2BeD14RfqfohneSbMfK81z7%2BWm33x7EOOvafB2G514fVoQvJlgrXL8Hc9%2BV%2B%2F%2Bk%2BnbZr%2FcjaeXzbIudaDvf%2Fe2YcFlUGAAA%3D
SWC Info output
No response
Expected behavior
The below result is expected.
console.log("expected");

Actual behavior
I got the below code.
console.log("unexpected2");

Version
1.7.28
Additional context
I investigated it and have submitted a PR.
If my approach does not seem too off-track, could you possibly review it? :)
https://github.com/swc-project/swc/pull/9620
approach
Based on the debug log in the "investigation" section, I think it's necessary to process consecutive return statements properly in the place where if_return: Merging returns occurs, that is merge_if_returns().
Specifically, I found the below code, code A, is generated in the process, and then code A is converted into code B by merge_if_returns().
// code A

var a = function() {
  return void "production", void "production", "expected";
  return void "production", void "production", "unexpected2";
}();
console.log(a);

↓ merge_if_returns()
// code B

var a = function() {
  return void "production", void "production", "expected", void "production", void "production", "unexpected2";
}();
console.log(a);

The PR makes merge_if_returns() check if it receives consecutive return statements.
If it does, it will do nothing, and dead code elimination works and delete the latter statement.
investigation
---- Input -----
var a = (() => {
  switch ("production") {
    case "production":
      return "expected";
    default:
      return "unexpected1";
  }

  switch ("production") {
    case "production":
      return "unexpected2";
    default:
      return "unexpected3";
  }
})();

console.log(a);

   INFO  Done in 125ns, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in inline global defs
    in minify

   INFO  Done in 510.625µs, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in precompress
    in minify

   INFO  Done in 1.145833ms, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in remove dead code
    in minify

  DEBUG  ===== Start =====
var a = (()=>{
    switch("production"){
        case "production":
            return "expected";
        default:
            return "unexpected1";
    }
    switch("production"){
        case "production":
            return "unexpected2";
        default:
            return "unexpected3";
    }
})();
console.log(a);

    at crates/swc_ecma_minifier/src/compress/mod.rs:179
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  compress: Running expression simplifier (pass = 1)
    at crates/swc_ecma_minifier/src/compress/mod.rs:184
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  compress: expr_simplifier took 124.25µs (pass = 1)
    at crates/swc_ecma_minifier/src/compress/mod.rs:212
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  Done in 410.5µs, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in apply pure optimizer
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  Done in 207.542µs, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in analyze
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  switches: Removing a constant switch, kind: "change"
    at crates/swc_ecma_minifier/src/compress/optimize/switches.rs:134
    in visit_mut_stmt with start: "switch(\"production\"){\n    case \"production\":\n        return \"expected\";\n    default:\n        return \"unexpected1\";\n}\n"
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_block_stmt
    in visit_mut_arrow_expr
    in visit_mut_call_expr
    in visit_mut_var_declarator
    in visit_mut_var_declarators
    in visit_mut_var_decl
    in visit_mut_decl
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_script
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  switches: Removing a constant switch, kind: "change"
    at crates/swc_ecma_minifier/src/compress/optimize/switches.rs:134
    in visit_mut_stmt with start: "switch(\"production\"){\n    case \"production\":\n        return \"unexpected2\";\n    default:\n        return \"unexpected3\";\n}\n"
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_block_stmt
    in visit_mut_arrow_expr
    in visit_mut_call_expr
    in visit_mut_var_declarator
    in visit_mut_var_declarators
    in visit_mut_var_decl
    in visit_mut_decl
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_script
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  if_return: Merging returns, kind: "change"
    at crates/swc_ecma_minifier/src/compress/optimize/if_return.rs:279
    in visit_mut_arrow_expr
    in visit_mut_call_expr
    in visit_mut_var_declarator
    in visit_mut_var_declarators
    in visit_mut_var_decl
    in visit_mut_decl
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_script
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  if_return: Merging returns, kind: "change"
    at crates/swc_ecma_minifier/src/compress/optimize/if_return.rs:279
    in visit_mut_arrow_expr
    in visit_mut_call_expr
    in visit_mut_var_declarator
    in visit_mut_var_declarators
    in visit_mut_var_decl
    in visit_mut_decl
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_script
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  if_return: Merging returns, kind: "change"
    at crates/swc_ecma_minifier/src/compress/optimize/if_return.rs:279
    in visit_mut_arrow_expr
    in visit_mut_call_expr
    in visit_mut_var_declarator
    in visit_mut_var_declarators
    in visit_mut_var_decl
    in visit_mut_decl
    in visit_mut_stmt
    in handle_stmt_likes
    in visit_mut_stmts
    in visit_mut_script
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  Done in 1.501458ms, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in apply full optimizer
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  compress: dead_branch_remover took 101µs (pass = 1)
    at crates/swc_ecma_minifier/src/compress/mod.rs:302
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  ===== Removed dead branches =====
var a#2 = ()=>{
    return void "production", void "production", "expected", void "production", void "production", "unexpected2";
}();
console#1.log(a#2);

==== ===== ===== ===== ======
var a#2 = ()=>{
    return "expected", "unexpected2";
}();
console#1.log(a#2);

    at crates/swc_ecma_minifier/src/compress/mod.rs:314
    in optimize with pass: 1
    in compress ast
    in minify

   INFO  Done in 2.994583ms, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in optimize with pass: 1
    in compress ast
    in minify

  DEBUG  ===== Done =====
var a#2 = ()=>{
    return "expected", "unexpected2";
}();
console#1.log(a#2);

    at crates/swc_ecma_minifier/src/compress/mod.rs:146
    in optimize with pass: 2
    in compress ast
    in minify

   INFO  Done in 19.792µs, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in optimize with pass: 2
    in compress ast
    in minify

   INFO  Done in 3.055542ms, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in compress ast
    in minify

  DEBUG  arrows: Optimizing the body of an arrow, kind: "change"
    at crates/swc_ecma_minifier/src/compress/pure/arrows.rs:52
    in postcompress
    in minify

   INFO  Done in 51.542µs, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in postcompress
    in minify

   INFO  Done in 5.809292ms, kind: "perf"
    at crates/swc_timer/src/lib.rs:32
    in minify

   INFO  optimize(/Users/XXXXX/swc/crates/swc_ecma_minifier/tests/fixture/issues/XXXXX/input.js) took 5.907625ms
    at crates/swc_ecma_minifier/tests/compress.rs:254

  DEBUG  Renaming `a#2` to `a`
    at crates/swc_ecma_transforms_base/src/rename/analyzer/scope.rs:161

   INFO  process(/Users/XXXXX/swc/crates/swc_ecma_minifier/tests/fixture/issues/XXXXX/input.js) took 8.09675ms
    at crates/swc_ecma_minifier/tests/compress.rs:267

---- Output -----
var a = (()=>"unexpected2")();
console.log(a);

I submitted the PR and added the link to it in the above description.


Address  bar not closing automatically on scroll in mobile browsers when using Lenis

When integrating Lenis into my web application, I noticed that the Address bar in the mobile browser does not close automatically when scrolling down or up. Instead, it remains open all the time.
The Address bar should close automatically when scrolling down and open when scrolling up, providing a cleaner browsing experience for mobile users.

This is currently impossible

you mean using syncTouch:true ? This is currently impossible

yes i use syncTouch:true but i mean When integrating Lenis into my web application, I noticed that the address bar in the mobile browser remains open all the time, even when scrolling down. This detracts from the user experience as it takes up valuable screen space. Ideally, I'd like the address bar to automatically hide when scrolling down and reappear when scrolling up, providing a cleaner browsing experience for mobile users. Is there any functionality or configuration within Lenis that can enable this behavior, similar to what some modern mobile browsers implement?

yes as I mentioned, this is currently not possible due to browsers limitations, only native events can trigger this actions ( the one with isTrusted:true ).

ok thanks

yes as I mentioned, this is currently not possible due to browsers limitations, only native events can trigger these actions ( the ones with isTrusted:true ). It's for security reasons I guess. That's the same reason why you cannot hide and show this bar programmaticaly.


Add App.config + NuGet.config to the XML file list

Changes

Files named App.config and NuGet.config have been added to the list of XML files.

Rationale

There are virtually no files on GitHub named NuGet.config that aren't XML.

There are about 32k files named App.config that aren't related to .NET projects, and approximately 926k that are.

cc: @arfon (sorry if I spammed your inbox haha :smile:)

There are about 32k files named App.config that aren't related to .NET projects, and approximately 926k that are.

Thanks for this @jamesqo. We'll need to figure out what these other 32k files are before we can add App.config as these would be marked as XML automatically by this PR as it stands.
Do you have any ideas what these are?

@arfon Actually, the number seems to be closer to 2k (I added an extension:config parameter to the search query). Of those, most seem to be Erlang files (example) and have a lowercase filename.
Is there any way to make the filename case-sensitive, so only App.config gets picked up and not app.config? That would eliminate most of these extraneous results.

Is there any way to make the filename case-sensitive, so only App.config gets picked up and not app.config? That would eliminate most of these extraneous results.

Yes, the filename strategy is case-sensitive.
Maybe we should also add one of the app.config files in test/fixtures/Data/ to make sure that if we make the filename strategy case-insensitive in the future, we get a failing test. (test/fixtures/Data/ corresponds to test files which shouldn't be recognized by Linguist.)

That's a good idea. @jamesqo do you think you could add the lowercase example as @pchaigno suggests?

@arfon Done: 0c86818

Thanks for this contribution @jamesqo :zap:. This will be live in the next release of Linguist (likely sometime in the next week).


Could not build wheels for halotools, which is required to install pyproject.toml-based projects

python 3.10.8
OS windows 11
using pip to install
Could not build wheels for halotools, which is required to install pyproject.toml-based projects

Thanks for pointing this out @Firestar-Reimu. For the 0.8 release I focused on linux and mac os system builds, mostly because I wasn't aware of many windows-based halotools users. I can make an effort to get wheels working for windows for the next release, but in the meantime, for a workaround, do you have access to a machine (or just a partition on your current machine) with either linux or mac os?

I have both linux and windows installed and I found that halotools cannot be downloaded via pip on windows.
pip   windows No
pip   linux   Yes
conda windows Yes
conda linux   Yes

I ran into the same problem with:

halotools 0.9.1
Windows 11
pip 24.2
Python 3.12.3


Fix upgrade VMI status detection

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:

The VM status detection feature breaks when  2+ VMs are deployed on a specific node
Solution:

Fix the VM status detection
Related Issue:
https://github.com/harvester/harvester/issues/5008
Test plan:

create 2+ VMs to deploy on a specific node, then upgrade
validate the feature locally

cat > testvmi.sh << 'EOF'

get_running_vm_count()
{
  local vmioutput=/tmp/vmioutput.yaml
  rm -f "$vmioutput"

  kubectl get vmi -A -l kubevirt.io/nodeName=$HARVESTER_UPGRADE_NODE_NAME -o yaml > "$vmioutput" || echo "get vmi failed"

  if [ -f "$vmioutput" ]; then
    local allcount=$(yq e '.items | length' "$vmioutput")
    # note bug: https://github.com/harvester/harvester/issues/5008#issuecomment-2092627054
    # instead of loop $allcount to run command: yq e '.items[index] | [select(.status.phase!="Succeeded")] | length' "$vmioutput"
    # the grep with line match is more efficient
    local succount=$(grep "    phase: Succeeded" -x -c "$vmioutput")
    echo "$((allcount-succount))"
    rm -f "$vmioutput"
  fi
}

wait_vms_out_or_shutdown()
{
  local vm_count

  while [ true ]; do
    vm_count="$(get_running_vm_count)"

    if [ "$vm_count" = "0" ]; then
      break
    fi

    echo "Waiting for VM live-migration or shutdown...($vm_count left)"
    sleep 5
  done
  echo "all VMs on node $HARVESTER_UPGRADE_NODE_NAME have been live-migrated or shutdown"
}

#note to set the name accordingly
export HARVESTER_UPGRADE_NODE_NAME=harv41

wait_vms_out_or_shutdown
EOF

./testvmi.sh

harv41:/home/rancher # ./testvmi.sh
Waiting for VM live-migration or shutdown...(1 left)
Waiting for VM live-migration or shutdown...(1 left)
Waiting for VM live-migration or shutdown...(1 left)
Waiting for VM live-migration or shutdown...(1 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(2 left)
Waiting for VM live-migration or shutdown...(1 left)
all VMs on node harv41 have been live-migrated or shutdown
harv41:/home/rancher #

@Mergifyio backport v1.2 v1.3

@w13915984028 Thanks for the fix! I wonder if the slightly tweaked version can fix the previous one:
kubectl get vmi -A -l kubevirt.io/nodeName=$HARVESTER_UPGRADE_NODE_NAME -o yaml | yq e '.items | map(select(.status.phase!="Succeeded")) | length'

+1, looks straightforward

@w13915984028 Thanks for the fix! I wonder if the slightly tweaked version can fix the previous one:
kubectl get vmi -A -l kubevirt.io/nodeName=$HARVESTER_UPGRADE_NODE_NAME -o yaml | yq e '.items | map(select(.status.phase!="Succeeded")) | length'

The map keyword is cool.

An output yaml is temporarly used.

count=$(kubectl get vmii -A -l kubevirt.io/nodeName=$HARVESTER_UPGRADE_NODE_NAME -o yaml | yq e '.items |  map(select(.status.phase!="Succeeded")) | length' || true)

if kubectl get vmii return error then the yq will return 0
e.g.:
count=$(kubectl get vmii -A -l kubevirt.io/nodeName=$HARVESTER_UPGRADE_NODE_NAME -o yaml | yq e '.items |  map(select(.status.phase!="Succeeded")) | length' || true)
error: the server doesn't have a resource type "vmii"
harv41:/home/rancher # echo $?
0
harv41:/home/rancher # echo $count
0

if kubectl get vmii return error then the yq will return 0, this is not wanted

Good point.
But using -f to check if there is output seems not reliable, see:
$ if [ -f tempfile ]; then echo yes; else echo no; fi
no

$ kubectl get vmii > tempfile
error: the server doesn't have a resource type "vmii"

$ if [ -f tempfile ]; then echo yes; else echo no; fi
yes


Special characters in camera annotation

For my camera set-up, it would be nice if I can include special characters like é and è in the camera annotation setting. Currently these characters translate to ?? in the preview stream, e.g. Héllo world becomes H??llo world.
Is it possible to support these special characters? It has probably something to do with character encoding?

The annotation is rendered by the MMAL system camera software. We supply the string for each frame. The character set and encoding is not something we can control unfortunately. We can control colour and size.


Java 8 doesn't run on recent Debian Jessie

Java won't start on a recent Debian Jessie if installed using this role. To get a running install, I did

purge the installed Java
Change Ubuntu distribution in apt sources from trusty to xenial
Install Java again

@bitzl I see you closed the issue.
is this a problem or not?

@steenzout I've closed this issue because it got the impression that it was a problem with my testing VM and not this Ansible role. I could verify this now - it was some weird problem with my VM and no issue with this role.


Allow option to ask Twitter API for the user email address

I think this PR is overall good. However, I cannot successfully get email address in remix-auth-twitter-example after publishing this locally.

@na2hiro You will need to regenerate the user access token according to the api docs. "Please note - Your app will need to regenerate the user access tokens for previously authenticated users to access their email address.

ok, it was just me not familiar with the new App settings UI and didn't find where are the real settings for these. Found it here.

I confirmed it's working as expected. Merging now!

Thanks for the quick resolution!


member.edit does not change voice channel

Supplying a voice channel to the edit function does not actually move the user.
simple test code to reproduce below, you may have to type once in chat before the bot begins monitoring voice channels.
    bot.onVoiceStateUpdate.listen((VoiceStateUpdateEvent e) async {
      print("event!");
      if (e.state.user.id.id == "id") {
        Guild guild =
            bot.guilds.findOne((item) => item.id.id == "id");
        VoiceChannel afk = guild.channels[Snowflake("id")]
            as VoiceChannel;
            print(afk.name);

            await guild.members[Snowflake("id")].edit(channel:afk);
      }
    });

are you using nyxx from pub or rewrite_modular branch?

pub, should I switch?

Read here https://github.com/l7ssha/nyxx/wiki. Yeah you should switch, pub is outdated and most like dont even work as intended. Im currently rewriting whole framework, look also here https://github.com/l7ssha/nyxx/pull/43


ImportError are passed when it's not caused by manual files not exist

Machine Learning Team is working on a new extension and they did a lot of manual code to use their own SDK. They have some import errors when using their own SDKs, but the current code in custom.py below will just ignore any ImportError and CLI will eventually throw an error like ModuleNotFoundError: No module named 'azure.ml'. This cost them a lot of effort finding the real issue.
It may be a good idea to only pass ImportError for the .manual.custom part.
from .generated.custom import *  # noqa: F403
try:
    from .manual.custom import *  # noqa: F403
except ImportError:
    pass

close it as supported in master branch. Please use latest private release to make it work.


AbstractRNNCell documentation

Documentation for state in AbstractRNNCell could be more clear.
In the documentation for the AbstractRNNCell it does not make it clear that the state is a tuple. https://www.tensorflow.org/api_docs/python/tf/keras/layers/AbstractRNNCell
This was a gotcha for me when I defined a custom RNN cell that had a single state. It kept adding an axis to that state whenever I performed an operation on it.
For example, the code within the call method the class implementing AbstractRNNCell
logging.info(f'state_update: {state_update}')
new_states = tf.math.add(states, state_update)
logging.info(f'new_states: {new_states}')

leads to the confusing output
06-12 12:28 root         INFO     state_update: Tensor("add_1:0", shape=(32, 4), dtype=float32)
06-12 12:28 root         INFO     new_states: Tensor("Add_2:0", shape=(1, 32, 4), dtype=float32)

Upon implementing the state as a tuple of length one, the issue was solved. I think this could be made more clear in the documentation.
Many thanks.

@AlecBG Is this still an issue for you? The updated doc clearly mentions about state_size

state_size
size(s) of state(s) used by this cell.It can be represented by an Integer, a TensorShape or a tuple of Integers or TensorShapes.

https://www.tensorflow.org/api_docs/python/tf/keras/layers/AbstractRNNCell
Thanks!


How long

hi, how long to training 2 class??
and how to training only using  GPU?
thanks 👍

Hi,

Train 4 000 iterations - time depends on GPU and model: https://github.com/AlexeyAB/darknet#when-should-i-stop-training

Usually sufficient 2000 iterations for each class(object).

To train and detect using GPU just set GPU=1 in the Makefile on Linux: https://github.com/AlexeyAB/darknet#how-to-compile-on-linux

Or compile darknet.sln on Windows: https://github.com/AlexeyAB/darknet#how-to-compile-on-windows
How to train: https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects


Project maintaining

Is it possible to move this project to aio-libs organization?
Of course, I can copy this package to my project and do some needed changes locally, but I guess many people are interested in further project support and aio-ecosystem growth!

@asvetlov @webknjaz
Do you have any thoughts on this?

Who will maintain it after the move?

I guess I can do some contributions.
Also @allancaffee wanted to add typing for this package #19, and of course @syrusakbary is always welcome (if has desire and enough free time).

Somebody should have ownership over the release management, reviewing contributions and engaging with the community too. Plus the original maintainers should speak up.

I'm now a maintainer, and will be pushing things forward.  After a release to unbreak python 3.10, I intend to get the code properly typed and do a more significant release.
I welcome engagement and contributions. :-)


Add/Remove/Configure Authentication Middleware at Runtime

Hi!
Is it possible to add and remove AuthenticationMiddleware at Runtime?
I wan't to configure/add/remove OpenIdConnectAuthenticationProviders inside a WebGui.
I was thinking about storing the ProviderOptions in a Database, with the AuthenticationScheme as GUID.
In my special case i wan't to use IdentityServer4 for multiple Customers.
If an new Customer arrives, i will add a new "Provider" to the Database an register it as Middleware in the pipeline. On the other side, i have to unregister the Provider and delete from Database.
Or maybe is it possible to query the Database on every Challenge if the AuthenticationScheme exists??
Any Ideas?
I have the need to add/remove/configure OpenIdConnectAuthentication without recompile or restart the Asp.net Core WebApplication...
Br

Not today, @hoak is building this feature right now: https://github.com/aspnet/Security/pull/1113, your feedback would be appreciated.

Thanks!

I'll add a unit test today to make sure we support adding and removing schemes dynamically works in the new stack

Hi. I was wondering the exact same thing and just asked about it on SO.
http://stackoverflow.com/questions/42365743/installing-a-new-middleware-at-runtime-in-asp-net-core
I'll definitively give it a try when it's out.
Thanks.

See https://github.com/aspnet/Security/pull/1113/commits/d92d92384f7f6cf2e5e17c975efaa0bd6ab299c0 for what it currently looks like, basically its just associating a schemeName with a handlerType in a new service.

We need to carefully consider threading scenarios such as:

Reader/writer scenarios to ensure no unusual exceptions get thrown during normal operations
Consistency within a request to ensure that during a request the state doesn't change (could cause very weird side-effects)

Tracked via https://github.com/aspnet/Security/issues/1179

Where's this at? Is this now possible? Is there documentation on how to do it? I need to be able to add/remove these via a UI without having to restart our api layer every time.
Thanks!

Here's a sample: https://github.com/aspnet/AspNetCore/tree/5a6b6c90b6e32ecab4975c546228cc63199f168b/src/AuthSamples/samples/DynamicSchemes


Disable Travis CI for master branch

What is the purpose of the change
Disable Travis CI for master branch
Brief changelog
remove .travis.yml

related discussion https://lists.apache.org/thread.html/rb0bf764a4b4b852d3f463e60a910239ad09bb766e9894491e398004a%40<dev.dubbo.apache.org>

Codecov Report

Merging #7342 (217a865) into master (d0b894d) will decrease coverage by 0.96%.
The diff coverage is n/a.

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


Failed to install pytorch3d when using Google Colab

Any solutions?

I am also getting the same error on colab.

I have encountered the same problem, have you solved it?Stuck at the "building wheels" step.

You can try the method in the official documentation, I've tried it and it works.

You can try:
Follow the steps:
conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install -c bottler nvidiacub
and finally:
conda install pytorch3d -c pytorch3d
and it's done!

@thbupt You can try: Follow the steps:
conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2 conda install -c fvcore -c iopath -c conda-forge fvcore iopath conda install -c bottler nvidiacub and finally: conda install pytorch3d -c pytorch3d and it's done!

I thied this solution but the cudatoolkit version caused problem and had compile errors when running install_ext.sh