New Documents Added When Adding Field To Preexisting Documents

We recently ran a script to add a field to all pre-existing documents, and even though this field was not part of the indexable fields list, documents that were previously not in the index were added to it. We would like only for documents to be added to the index if they have all the indexable fields, and only if the indexable fields have changed.

Hey Peter, I will look into this later this week.

Thank you so much Sajid!


Need a kernel-based ramdisk

The ramdisk in plan 9, which runs in user mode, is a dog. It has a major impact on the performance of go test. We need a kernel ramdisk.

closing as there has been no activity with this one, if it's going to be reopened we should advise on how one should approach implementing a kernel based ramdisk, resources on how to get started and so on.

I think it's a mistake to close issues due to lack of activity. The issue did not suddenly go away! Leaving it open gives people something they can look for to do.
I don't like closing bugs just because they are not solved. It means if we wait long enough, all the bugs go away. I don't like this approach.

Kinda reminds me of Linus's concern about kdbus. What's the bottleneck of the userland ramdisk? If it is really context switching then I agree a kernel ramdisk is necessary. I am no expert so this is just a reminder.
My suggestion is to reopen this with tag "discussion" or "RFC". The top description can be edited and enriched by the following discussion.

This issue is too poorly worded (my fault!) to be allowed to live. I'll try again.


Add displacy as an output mechanism.

Create an extensible display object that allows no display and displacy

This is out of scope for pidgy


feat: tutorial/from solidity to cairo

Adding a tutorial about how to start as a solidity dev in Cairo 1.0

Thanks @ArturVargas - let's add this when the tutorial is completed and there is an english version :). I'll keep the PR open, just add a mention when you think it's ready.

Closing for now due to inactivity. Happy to re-open when resource is ready :).


S Category Code (Att) - supplementary table - after code list is missing

For DD team to determine priority first - seems the table contents just present the same info for codes - just in a different format.

The original format was the 'missing' table and we added the 'normal' table so it would go through ontoserver.  Not urgent for go-live, next release would be good

To clarify for Maxine - the original format of this item was the 4 column table which is now missing - we corrected this for ontoserver by adding the standard format National Codes list, but we do need the 4 column table to appear in the description.
as above, not urgent for go-live

Need to work out mechanism for Likin code to flag to steve to pick up the rest

Cath and are happy with this, so ticket closed.
Maxine - are you OK from an Ontoserver point of view?


[#992] fix(tez): convertTaskAttemptIdToLong should not consider appattemptId

What changes were proposed in this pull request?
When we convert task attempt id to long, consider real taskAttemptID = taskAttemptID - (appAttemptId - 1) * 1000, the logical only apply to mr. tez should remove this.
If appAttemptId is 2, taskattemptid will be normalized to negative value, it is unexpected.
Fix: #992

Codecov Report

Merging #1007 (3575e8d) into master (411b445) will increase coverage by 0.21%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master    #1007      +/-   ##
============================================
+ Coverage     53.67%   53.88%   +0.21%
+ Complexity     2523     2384     -139
============================================
  Files           381      344      -37
  Lines         21648    18193    -3455
  Branches       1800     1717      -83
============================================
- Hits          11620     9804    -1816
+ Misses         9322     7790    -1532
+ Partials        706      599     -107

Impacted Files
Coverage Δ

...c/main/java/org/apache/tez/common/RssTezUtils.java
63.13% <50.00%> (+0.57%)
:arrow_up:

...ez/runtime/library/common/sort/impl/RssSorter.java
57.95% <100.00%> (-0.48%)
:arrow_down:

.../runtime/library/common/sort/impl/RssUnSorter.java
63.63% <100.00%> (-0.41%)
:arrow_down:

... and 42 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Hadoop YARN/ YARN-10186 Changed README.txt to README.md for better readability

Due to use of txt files for readme, readability is compromised. Change readme.txt to Markdown for better readability.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
31m 18s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
markdownlint
0m  0s
markdownlint was not available.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
1m 22s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
22m 19s
trunk passed

+1 :green_heart:
mvnsite
18m 45s
trunk passed

+1 :green_heart:
shadedclient
15m 46s
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 29s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
26m 16s
the patch passed

+1 :green_heart:
mvnsite
18m 29s
the patch passed

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

-1 :x:
whitespace
0m  0s
The patch 3 line(s) with tabs.

+1 :green_heart:
shadedclient
15m 51s
patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
asflicense
0m 43s
The patch generated 2 ASF License warnings.

153m 25s

Subsystem
Report/Notes

Docker
Client=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense mvnsite markdownlint shellcheck shelldocs

uname
Linux 255b25e254f7 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 6dfe00c

whitespace
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/1/artifact/out/whitespace-tabs.txt

asflicense
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/1/artifact/out/patch-asflicense-problems.txt

Max. process+thread count
319 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/1/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.3.7

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 35s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s
No case conflicting files found.

+0 :ok:
markdownlint
0m  1s
markdownlint was not available.

+0 :ok:
shelldocs
0m  1s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
1m 36s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
19m 30s
trunk passed

+1 :green_heart:
mvnsite
17m 39s
trunk passed

+1 :green_heart:
shadedclient
14m  9s
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 32s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
23m 30s
the patch passed

+1 :green_heart:
mvnsite
17m 30s
the patch passed

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
shadedclient
14m  4s
patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
asflicense
0m 48s
The patch generated 2 ASF License warnings.

112m  5s

Subsystem
Report/Notes

Docker
Client=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense mvnsite markdownlint shellcheck shelldocs

uname
Linux b92fa4d2ce07 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 44afe11

asflicense
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/2/artifact/out/patch-asflicense-problems.txt

Max. process+thread count
414 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/2/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.3.7

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 35s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
markdownlint
0m  0s
markdownlint was not available.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
0m 54s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
19m  2s
trunk passed

+1 :green_heart:
mvnsite
17m 31s
trunk passed

+1 :green_heart:
shadedclient
14m 21s
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 32s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
23m 36s
the patch passed

+1 :green_heart:
mvnsite
17m 27s
the patch passed

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

-1 :x:
whitespace
0m  0s
The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply

+1 :green_heart:
shadedclient
14m 12s
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
asflicense
0m 47s
The patch does not generate ASF License warnings.

111m  4s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense mvnsite markdownlint shellcheck shelldocs

uname
Linux 957b0d1e78c6 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 80b877a

whitespace
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/3/artifact/out/whitespace-eol.txt

Max. process+thread count
420 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/3/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.3.7

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 33s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
markdownlint
0m  0s
markdownlint was not available.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
0m 31s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
19m  9s
trunk passed

+1 :green_heart:
mvnsite
17m 27s
trunk passed

+1 :green_heart:
shadedclient
14m 30s
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 32s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
23m 27s
the patch passed

+1 :green_heart:
mvnsite
17m 37s
the patch passed

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
shadedclient
14m  5s
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
asflicense
0m 48s
The patch does not generate ASF License warnings.

110m 33s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/4/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense mvnsite markdownlint shellcheck shelldocs

uname
Linux f56a7808f166 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 80b877a

Max. process+thread count
420 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1887/4/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.3.7

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 33s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s
No case conflicting files found.

+0 :ok:
markdownlint
0m  1s
markdownlint was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
0m 30s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
20m 40s
trunk passed

+1 :green_heart:
mvnsite
18m 23s
trunk passed

+1 :green_heart:
shadedclient
14m 26s
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 30s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
25m 52s
the patch passed

+1 :green_heart:
mvnsite
18m 24s
the patch passed

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

+1 :green_heart:
shelldocs
0m 18s
There were no new shelldocs issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
shadedclient
14m 45s
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
asflicense
0m 42s
The patch does not generate ASF License warnings.

116m 53s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1887/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense mvnsite markdownlint shellcheck shelldocs

uname
Linux 0fe81003b74d 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / e756fe35909

Max. process+thread count
421 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1887/3/console

versions
git=2.17.1 maven=3.6.0 shellcheck=0.4.6

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 47s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
shelldocs
0m  1s

Shelldocs was not available.

+0 :ok:
markdownlint
0m  1s

markdownlint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
13m 20s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
22m  2s

trunk passed

+1 :green_heart:
mvnsite
25m 35s

trunk passed

+1 :green_heart:
shadedclient
19m 38s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 28s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
25m 50s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
20m 52s

the patch passed

+1 :green_heart:
shellcheck
0m  1s

No new issues.

+1 :green_heart:
shadedclient
19m 15s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
asflicense
0m 43s

The patch does not generate ASF License warnings.

150m 26s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1887/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1887

Optional Tests
dupname asflicense codespell shellcheck shelldocs mvnsite markdownlint

uname
Linux 2dee18fb3fe3 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 90525b4aceaaf845eab859ac06bf56d8eaf4a87c

Max. process+thread count
699 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1887/1/console

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.


Russian language in the application

Are you planning to translate the application into Russian?  If you have the time and opportunity, please add the Russian language.

Hi @Slawa79,
Two days really isn't a long time to wait for an answer.
I don't have any immediate plans to translate Anytime into Russian, but I have noted your request. I would really like to increase the number of languages Anytime supports, but it is currently a bit of a manual process and I do not have the skill or resources to add Russian at the moment.
I am looking at third-party services such as Weblate to make it easier for contributors in the community to help with the translations, so watch this space. :+1:


Security: Lacking a check for the return value of EC_KEY_set_public_key_affine_coordinates()

Affected components
affected source code file: tools/fwinfogen.c
Attack vector(s)
Lacking a check for the return value of EC_KEY_set_public_key_affine_coordinates.
EC_KEY_set_public_key_affine_coordinates() returns 1 on success or 0 on error.
Suggested description of the vulnerability for use in the CVE
DoS vulnerability in sign_pFwInfo() function in Samsung Electronics mTower v0.3.0 (and earlier) due to a missing check on the return value of EC_KEY_set_public_key_affine_coordinates.
Discoverer(s)/Credits
UVScan
Reference(s)
https://www.openssl.org/docs/manmaster/man3/EC_KEY_set_public_key_affine_coordinates.html
https://github.com/Samsung/mTower/blob/18f4b592a8a973ce5972f4e2658ea0f6e3686284/tools/fwinfogen.c#L194

The issue will be reviewed and fixed as soon as possible.


update github page

html landing page to highlight webviz functionality. manually tested on popular browsers and devices

Build seems to be failing on lint. Will address and ensure build succeeds before merging.


serv process are not killed (SSHd)

Gitea version (or commit ref): 1.7.3 built with go1.11.5 : bindata, sqlite, pam
Git version: 2.21.0
Operating system: Arch Linux
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist: https://gist.github.com/bruestel/6e94ac1229e7860230fc481f3e8f384c

Description
Our CI server is checking the git repositories every minute. After a couple of minutes (less than an hour) all the memory is used and the CPU load is very high.
It seems to me that with each ssh connection from our CI there is a new process (/usr/bin/gitea serv key-9 --config=/etc/gitea/app.ini) created. The process gets never disposed.
I've cleaned my logs (#4450) but it didn't help. I think it is a different problem.
Thanks for your help.

@bruestel yes, every ssh request will create a new process but it should be ended some seconds after finished it's work. So maybe you can find some logs to track why it did not end.

Hmm... I suspect that these are due to deadlocked processes.
I think it's time to review serv.go again to check if there are deadlocks.

gitea serv will invoke git command and blocked util that command returned. If the command is blocked, it will always wait.

OK, So both serv and hook appear to be only using private urls which is good - but each action it does is within a new session. We may be better to actually just make serv and hook do all of their logic in a private url and then return their results in simplified fashion to serv/hook.

@zeripath I like your idea. But that may not the reason of this issue.

It depends on the cause I guess, and although moving the logic won't immediately fix what I suspect is the problem - it will help formulate the complete solution. (It should also make both serv and hook faster as they won't need to make multiple internal API requests - and we might be able to drop the gitlogger.)
I suspect that there's deadlock in hook caused by the calls to send the webhooks.


Preview annotation in commonMain sourceSet

It is good to have multiplatform Preview annotation for all target platforms in commonMain sourceSet.

Hello!
Currently desktop preview rendering is possible only in desktop sourceSet because ui-tooling-preview publishes androidx.compose.desktop.ui.tooling.preview.Preview annotation only for desktop sourceSet.
However, I've been able to successfully use current Compose Multiplatform IDE Support plugin to render preview defined in common sourceSet.
You can check the example here:https://github.com/IlyaGulya/compose-jb/tree/example/common-desktop-preview/experimental/examples/falling-balls-mpp
I've moved GamePreview to common sourceSet and added stub androidx.compose.desktop.ui.tooling.preview.Preview annotation to trigger Compose Multiplatform IDE Support plugin to add gutter icon on GamePreview function.
I think Compose MPP team should consider publishing androidx.compose.desktop.ui.tooling.preview.Preview annotation for common sourceSet instead of desktop.

This would be really helpful. Also it would be nice to have a drop down in preview tab to select target platform/device for preview as well as other features from android preview like multiple previews, zoom, grid view, interactive mode, etc. Is it on roadmap somewhere? I can't find any information regarding plans

Any update on this?

not yet

Any updates on this issue?

any update ?

It is good to have multiplatform Preview annotation for all target platforms in commonMain sourceSet.
Hello! Currently desktop preview rendering is possible only in desktop sourceSet because ui-tooling-preview publishes androidx.compose.desktop.ui.tooling.preview.Preview annotation only for desktop sourceSet.
However, I've been able to successfully use current Compose Multiplatform IDE Support plugin to render preview defined in common sourceSet.
You can check the example here:https://github.com/IlyaGulya/compose-jb/tree/example/common-desktop-preview/experimental/examples/falling-balls-mpp I've moved GamePreview to common sourceSet and added stub androidx.compose.desktop.ui.tooling.preview.Preview annotation to trigger Compose Multiplatform IDE Support plugin to add gutter icon on GamePreview function.
I think Compose MPP team should consider publishing androidx.compose.desktop.ui.tooling.preview.Preview annotation for common sourceSet instead of desktop.

and need to install Compose Multiplatform IDE Support

It would be perfect to make use of Android Studio preview feature for composables from commonMain, at least for android target for now. So it will show how composable preview function from common code will look like on Android, in AS's preview ide view.
I assume it could be easier to do, than making a full spectrum of it's feature for Compose Multiplatform IDE plugin from scratch.
And maybe it's just a matter of configuration, because even AS's Layout Inspector works for kmp composables if you use androidx compose compiler in android target.

I think this is very important to have @Preview working in shared compose ui code.

I was wondering what the suggested workflow currently is for creating Composables without the Preview? Just good old fashioned rebuild or creating the composables within androidApp and then after finishing, copying them over to shared?

Any updates on this issue?

This is probably my top feature right now, everything else is pretty good state (at least less of a priority right now), without previews live updating in common editing/updating/building screens is really slow/painful, while we can put previews in androidDebug, the screen living in commonMain means we need to manually build and refresh vs "native" compose dev where previews living in the same srcSet auto compile as you edit them.

As a stop gap, updating the KMM plugin to allow build and refresh on save from the common would be a really big intial win, means don't have to keep switching windows/tabs etc.

This works in latest Fleet release (link), but (at least in my experience) it's very slow (a refresh takes 5-10 sec on M1 macbook) and doesn't support all bells and whistles of @Preview from native Android. Still, good progress.

Even the preview workaround using androidMain do not work when the commonMain composable is loading a resource. I'm getting this exception org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: composeResources/mobileapp.composeapp.generated.resources/drawable/splash_bg.jpg Any idea?

Yeah there is another ticket for this, the Preview plugin doesn't support common resources.

Let's keep this as a meta issue for other children tasks:

https://github.com/JetBrains/compose-multiplatform/issues/4869 - Reduce variety of Preview annotations
https://github.com/JetBrains/compose-multiplatform/issues/5078 - Support common org.jetbrains.compose.ui.tooling.preview.Preview in IDEA and Android Studio

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

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

But why move to YouTrack?


Removed dependencies on bfasst

I'm preparing the tool to be put in a separate directory as a third_party tool rather than bfasst exclusive. Currently, it works as it's own folder, so these changes are a step in that direction.

Please do not request user input, use function parameters and command line arguments. I noticed this in a few files. Thanks.

Good addition with the tests. Please incorporate my previous comment, and then I will merge.

@reillymck I might be missing something, but I believe I did incorporate your last comment. Default should be set to 100 now and user input shouldn't be requested anymore.

I left a comment directly on waveform.py

@reillymck I've looked through the waveform.py file and all previous commits with it, I'm not seeing any comments. The only comment I've seen directly on a file in this PR is this one here (which should be resolved):

On the main page, I only see your comment about user input, the direct comment on compare_waveform.py, your comment 18 minutes ago, and your response.
Should I be looking somewhere else?

@reillymck Is there another way to view comments aside from this?

Is it visible now?


browser: Using chrome.storage.local prevents debugging in chrome extensions

I've got a handful of chrome extensions using debug.  Since a98c28309582135d1849ecc787a9052e1e7fa7e1 landed, I haven't been able to use this package.
Thoughts on either reverting commit in question, or providing some mechanism for disabling this behaviour?
/cc @marmolejo

Something is simple (but awkward) as this would do for me:
var debug = require('debug')('my thing');
debug.storage = localStorage;

Why not delete chrome.storage.local thing and just use localStorage! it never work in chrome extension,

+1 to @chunpu's suggestion


added .arch to gitignore

This file is automatically created when doing make on macos.

I had this change in the release/1.3.0 branch, it just didn't land in master yet.


Cross-Domain in React

Where do I need to add the proxy.html in a React Project. Or can I just add the script tag to the index.html file?

You need to use the same you need to use the same as with Vanilla JavaScript. Any library you use React you use the same as with Vanilla JavaScript React use same JavaScript.
If you want to use cross-domain proxy.html need to be on that domain that will receive messages.
And if you only want to send message inside react app you don't need proxy.html just import sysend  (the same as any other library you import, if you use script tag use script tag, if you use bundler like webpack or typescript use import the same you do for other libraries) and use the library as in readme. sysend.on() to create handler and sysend.broadcast() to send message. Without more details I don't know what else I can tell you.

I added the proxy.html file to my react app. The goal is to have cross-domain messages. Everything works fine on the same domain. Now i added the two domains to sysend.proxy("url"). But I still wont work cross-domain.

Do you have we app somewhere online or the source code so I can look at it? If you don't you can send the code to<EMAIL_ADDRESS>I can look at it.
Do you have any error in the console? If you inspect the page (e.g. with google developer tools) do you have iframe with src="proxy.html" with full path to your other domain?
Do you have same app for both domains?

If you have two domains and you want to send messages in both directions you need to proxy.html files on both domains and two calls to sysend.proxy for both domains, if this is same application code you've upload for both domains.

I did what you said and added an iframe with the src="https://unpkg.com/sysend". Now i will get the error
Failed to load resource: the server responded with a status of 404 (Not Found)
at proxy.html : 1

You don't need to add iframe, you need to call proxy it will create iframe for you, but you need src to be you proxy.html file, not path to the library.
You need to do this steps:

if you have app as http://foo.com/ then you need to put proxy.html into root directory so it will not return 404 when open http://foo.com/proxy.html.
if you have second domain as http://bar.com then you need to put proxy.html into root directory so you can open http://bar.com/proxy.html and don't get the 404 error (it can also be directory but it need to be on target domain).
Inside app located at foo.com you need to run

sysend.proxy('http://bar.com/');
// or
sysend.proxy('http://bar.com/app/');
// or
sysend.proxy('http://bar.com/app/proxy.html');

If you want double sided connection you need to do the same for your second app at bar.com

sysend.proxy('http://foo.com/');
// or
sysend.proxy('http://foo.com/app/');
// or
sysend.proxy('http://foo.com/app/proxy.html');

If on both domains you have same app put both:
sysend.proxy('http://foo.com/');
sysend.proxy('http://bar.com/');

NOTE: You don't need to add any iframe this is done byt sysend.proxy function that is the purpose of it.

I updated my code as you said. The only error I got right now is "Failed to load resource: the server responded with a status of 404 (Not Found)". I added the proxy.html in my react app to the root directory (added to the same level as package.json). I dont know why the proxy.html cant be found.

Do you build your app from source and generate dist directory with webpack or create-react-app (whatever it uses) and 8000 is just server run in dev server?
Please explain how to you build your project, I can't help you if I don't know anything about your app. Add it to github and show the link to the app, you can make it private invite me, or you can send the app source code to my email.
You can also try to search for whatever setup you have "how to add static html page" in google. From what I see it have nothing to do with sysend.js.

You only need to have http://localhost:8000/proxy.html file available, if you would just search how to add static html file to your server you will probably get the answer quicker.

So after some days I was able to host the proxy.html. Unfortunately i get a new Error:

I am pretty sure this is with sysend or with the settings of it.

Soo I was able to solve it and run it successfully.  I got one more question for you where i cant get my head around. I have on both domains the same app. Now when i send a message I receive it on sysend.broadcast always twice on each open tab. Is this normal?

I need to investigate this, do you have demo online? if not I will need to create simple PoC and test.

You need to show your code because it's working correctly, only one message:
https://terminal.jcubic.pl/app.html
https://jcubic.pl/app.html

Also what browser and system you run this on?

So i got the this listeners:
sysend.on('all', function(message) {
            if (message == "new") {
                sysend.broadcast('all', { 'register': this.uuid });
            } else if (message.new) {
                sysend.broadcast(message.new, { 'register': this.uuid });
            } else {
                console.log(message);
            }
        }.bind(this));

        sysend.on(this.uuid, function(message) {
            if (message.register) {
                if (!this.array.includes(message.register)) this.array.push(message.register);
            } else {
                console.log(message);
            }
        }.bind(this));

and I send the message out like that:
sysend.broadcast('all', { "new": this.uuid });
this is the rest code of all sysend connection:
sysend.proxy("http://<IP_ADDRESS>:8000/");         sysend.proxy("http://localhost:8000/");

You have 2 messages because you call broadcast twice.

No it is not that.
I simplified the code:
`// Create tab id
componentDidMount() {
sysend.proxy("http://<IP_ADDRESS>:8000/");
sysend.proxy("http://localhost:8000/");
sysend.proxy("https://terminal.jcubic.pl/app.html");
    this.registerUUID();
    window.addEventListener("beforeunload", this.onUnload);
}

registerUUID() {
    sysend.on('all', function(message) {
        if (message.new) {
            sysend.broadcast(message.new, { 'register': this.uuid });
        } else {
            console.log('No Case:');
            console.log(message);
        }
    }.bind(this));

    console.log(this.uuid);
    console.log(sysend);

    sysend.on(this.uuid, function(message) {
        console.log(sysend);
        if (message.register) {
            console.log(message.register);
            if (!this.array.includes(message.register)) this.array.push(message.register);
        } else {
            console.log(message);
        }
    }.bind(this));

    sysend.on('foo', function(message) {
        console.log(message);
    })
}

// Send message
sendMessage (receiver) {
    console.log('here 2');

    sysend.broadcast(receiver, 'new Message');
}

// Show all open tabs
showAllOpenTabs () {
    // Insert own id in empty array
    this.array = [this.uuid];
    // Request all ids from other tabs
    sysend.broadcast('all', { "new": this.uuid });

    setTimeout(function () {
        document.getElementById("allTabs").innerHTML = '
';
        let i = 1;
        let tabs = this.array;

        for (let tab in tabs) {
            if (tabs[tab] !== this.uuid) {
                let button = document.createElement('button');
                let test = document.getElementById("allTabs");
                button.onclick = () => {
                    console.log('here 1');

                    this.sendMessage(tabs[tab]);
                }
                button.appendChild(document.createTextNode('Send to Tab ' + (parseInt(tabs.indexOf(tabs[tab]))) + tabs[tab]));
                test.appendChild(button);
                test.appendChild(document.createElement("br"));
                i++;
            }
        }
    }.bind(this), 100);
}

render() {
    return (

            <button onClick={this.showAllOpenTabs}>Show All</button>

    );
}`

Can you explain what exactly it's not working and how it's related to sysend.js?
My app if I have 3 open tabs it fire message with 2 UUID what's wrong with that code?

So I simplified my code down to the almost nothing. I call sysend.broadcast('all', { "new": this.uuid }); which sends one message out. Now I should receive on sysend.on('all', function () {}); one message. When I test it with localhost to localhost this is fine and I get just one message, but as soon as I test localhost to kubernetes.docker.internal i get two messages there. You can see my code below.
`
componentDidMount() {
sysend.proxy("http://localhost:8000/");
sysend.proxy("http://kubernetes.docker.internal:8000/");
    sysend.on('all', function(message) {
        if (message.new) {
            // TWO Message received
            sysend.broadcast(message.new, { 'register': this.uuid });
            console.log(message);
        }
    }.bind(this));

    sysend.on(this.uuid, function(message) {
        if (message.register) {
            console.log(message);
            if (!this.array.includes(message.register)) this.array.push(message.register);
        }
    }.bind(this));
}

// Send message
sendMessage (receiver) {
    sysend.broadcast(receiver, 'new Message');
}

// Show all open tabs
showAllOpenTabs () {
    // Insert own id in empty array
    this.array = [this.uuid];
    // Request all ids from other tabs
    console.log('SEND BROADCAST NEW');

    // ONE Message send
    sysend.broadcast('all', { "new": this.uuid });

    setTimeout(function () {
        document.getElementById("allTabs").innerHTML = '
';
        let i = 1;
        let tabs = this.array;

        for (let tab in tabs) {
            if (tabs[tab] !== this.uuid) {
                let button = document.createElement('button');
                let test = document.getElementById("allTabs");
                button.onclick = () => {this.sendMessage(tabs[tab]);}
                button.appendChild(document.createTextNode('Send to Tab ' + (parseInt(tabs.indexOf(tabs[tab]))) + ': ' + tabs[tab]));
                test.appendChild(button);
                test.appendChild(document.createElement("br"));
                i++;
            }
        }
    }.bind(this), 100);
}

render() {
    return (

            <button onClick={this.showAllOpenTabs}>Show All</button>

    );
}

`

How many tabs with same app you have open? Can you make this online? It's hard to test without looking at the app. Also this issue have nothing to do with React, it's just JavaScript. Can you create simple App without extra code, no DOM no REACT just console log that logs the message, it should work the same, React is not Magic it's just JavaScript library that don't add any extra machnics.

Closing as there was no reply to my question. If you add any and still have issue you can reopen or I will if you can't.

Closing as there was no reply to my question. If you add any and still have issue you can reopen or I will if you can't.

Perhaps I have encountered a similar problem as well.
This is an error message thrown by my browser.
sysend.js:17 requestStorageAccess: May not be used in an insecure context.
My Google Chrome version number is 120.0.6099.217.
At present, cross domain communication is not effective, and we do not know how to solve it temporarily.


Does pynlp keep the original tag type "O" which is the non-entity part?

Hello,
Does pynlp keep the original tag type "O" which is the non-entity part?
For example,
sentence = "Nora Jani, a single person, Matt Jani and Susan Jani, husband and wife"
Expecting result:
[('Nora Jani', 'PERSON'), ('a single person', 'O'), ('Matt Jani', 'PERSON'), ('and', 'O'), ('Susan Jani', 'PERSON'), ('husband and wife', 'O')]
Thanks.

Yes, try this:
from pynlp import StanfordCoreNLP

nlp = StanfordCoreNLP(annotators='tokenize, ssplit, pos, ner')

for sentence in nlp( "Nora Jani, a single person, Matt Jani and Susan Jani, husband and wife"):
    for token in sentence:
        print(token, token.ner)

I will try to write up some docs soon.


[IconButton] custom color causes type error

Fixes: https://github.com/mui/material-ui/issues/33054

[x] I have followed (at least) the PR section of the contributing guide.

@siriwatknp would you mind reviewing it since you've been involved in the discussion in the issue?

When will this get merged?
This is a very annoying bug.


Convert Unix path to Windows path in a custom function?

I'm trying to write an "open" function that opens a given directory in File Explorer, but I'm running in to a semi-major issue. Specifying paths to explorer.exe is a pain, because it doesn't accept relative paths (you can enter explorer.exe example-folder, but not explorer.exe example-folder/test).
My idea is to take a given Unix path, expand it to it's full path, and then convert it to a Windows path to pass to explorer.exe. For example, open ../example-folder may expand to open /mnt/c/Users/Jacob/example-folder, which would get converted to C:\Users\Jacob\example-folder and passed to explorer.exe.
I see in some cases Bash on Windows says something along the lines of "Could not convert to Windows path, using C:\Users\Jacob instead." Clearly there must be some function that converts Unix paths to Windows paths; is this something I could access in a shell script, or would I need to write my own custom logic to achieve this?

@JacobDB Yeah, you could probably write a tool that translates it out.

@fpqc ah, alright, thanks. I'll try and write my own.

@JacobDB Make sure you write it so it only works for /mnt though.  If you try to edit files in lxfs from windows, it will break.

Such functionality exists in our driver for translating the %PATH% environment variable and current working directories but it isn't exposed via a documented API.  I have a work item on my plate to look into exposing this via a documented API both for NT callers and WSL callers.
It should be simple to do something that does a simple string translation, I think there's actually a script on this GitHub that already does that.  Where things get interesting is dealing with case-sensitivity etc.

@fpqc I mean, it'd probably work like it does now in those cases, so I'm not too concerned about that. I'll try and built that in though, thanks.
@benhillis that's awesome to hear, will try and keep an eye out for that :) Do you know what I would search to find that script you mentioned?

Shoutout to @aseering - https://gist.github.com/aseering/a06219e74c7f96ccea5ec65d5b2483b5

@benhillis fantastic, thanks much :)

@JacobDB I think you might need the inverse transformation though.

@fpqc yea, you're right. I was able to get it figured out though!
https://gist.github.com/JacobDB/e71e22c3663175b2369211aeb54362fe
Only remaining thing for this is that I'd like ~ to work like it does on Unix, pointing to %HOMEPATH% on Windows. Will try and sort that out tonight. Thanks for the info guys, it was really helpful!

Ugh, I'm stuck on this last thing, mapping ~ to /mnt/c/Users/[username]/. You can see the progress I've made in my gist (lines 8-11), but I just can't finalize it for some reason. Everything I try with the variable at the end of the sed, it either outputs nothing, removes the slashes, doesn't change at all, or outputs the variable name...
Would appreciate some help getting this last little thing sorted!

Got it figured out! I was hitting a weird issue with CMD outputting Windows-style line endings I guess; I kind of assumed that WSL would take care of that conversion, but I guess it makes sense that it doesn't. Anyway, final code:
https://gist.github.com/JacobDB/e71e22c3663175b2369211aeb54362fe

there is a project called outbash, https://github.com/xilun/cbwin basically you call outbash  and this one handles bash and cmd, this allows you to use 3 new commands. wstart wcmd and wrun, for example I have an alias "subl" for "wstart subl" this calls subl like in cmd and translate the path, I can use "subl ." now and many others working as expected.
Currently I have ConEmu calling Outbash calling Bash for several months and works pretty well, when wsl has their own implementation of current path translation as arguments it would be nice to let outbash go, for conemu just waiting for a fix on the fonts to return the stock terminal :P

@zerocool4u2 it's not being maintained anymore because it's integrated in wsl with the interop functionality.

Here's a script that works similar to cygpath, which means it will convert /home to C:\Users\<USER>\AppData\Local\lxss\home, and so on:
https://gist.github.com/darealshinji/61d97abf462c1dff9c582f3d94e16c58

Can we assume that the path to the Linux filesystem stuff will remain being %LOCALAPPDATA%/lxss and not change in future? Because I haven't figured out any way to obtain that path (i.e. reg.exe, or via /proc or /sys). But if it won't change cmd.exe /C echo %LOCALAPPDATA%\\lxss 2>/dev/null | tr -d '\r' can be used to get it.
I guess the content of /proc/mounts can then be used to figure out which sub-directory of %LOCALAPPDATA%/lxss is mounted where within /.
And the Windows drives will always be mounted with the lowercase letter in /mnt (D:\ -> /mnt/d/)?

Windows Insider Build 17046 contains new 'wslpath' functionality that supports path translations. See the release notes for more details.

@Brian-Perkins Hello, I couldn't find it on build 17093. Has it been removed?

It should be at /bin/wslpath. It is created on startup by init (currently as a symlink to /init).

wslpath is a real time saver. Thanks @Microsoft! Here are a few things to go along with it:
# Assuming ~/bin is in your $PATH (default for Ubuntu), but you may need to create the directory
mkdir -p ~/bin

# Make where.exe (like `which` in linux) easy to find/use
ln -s /mnt/c/Windows/System32/where.exe ~/bin/where

# Run a windows executable without knowing its exact path
cat > ~/bin/wrun <<EOF
#!/bin/bash
$(wslpath $(where "$@") | sed 's/\r//')
EOF

# Unfortunately, most Windows executables output `\r\n` line separators. `der` (or de-r) is a handy tool to strip them
cat > ~/bin/der <<EOF
sed 's/\r//'
EOF

For anyone interested, i created a small python script which can open any path (file/directory) from the WSL: https://gist.github.com/MathiasBaumgartinger/1f607cbf75203bd47c9fb0713741cf15

For anyone interested, i created a small python script which can open any path (file/directory) from the WSL: https://gist.github.com/MathiasBaumgartinger/1f607cbf75203bd47c9fb0713741cf15

@MathiasBaumgartinger That inspired me to quickly write a wrapper around the wslpath command in C: https://gist.github.com/darealshinji/ac17471848c57438f772c4808dec019e

@MathiasBaumgartinger That inspired me to quickly write a wrapper around the wslpath command in C: https://gist.github.com/darealshinji/ac17471848c57438f772c4808dec019e

Did some tests and wslpath seems to do only some very simple path conversions:
A Unix path inside the "virtual" root filesystem is translated to a network address and vice versa:
i.e. "/usr" will be resolved as "\wsl$${WSL_DISTRO_NAME}\usr" with ${WSL_DISTRO_NAME} being set as an environment variable (i.e. "Ubuntu");
if ${WSL_DISTRO_NAME} is empty the path will be "\wsl$\usr";
a path inside "/" is checked if it exists, an address under "\wsl$" is resolved even if it doesn't exists.
Anything inside a Windows partition label such as "C:" is translated as being mounted inside "/mnt/":
i.e. "C:\Windows" will be resolved as "/mnt/c/Windows" and vice versa (path must exist)
The actual location of "/" is at "%LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs".
wslpath, is a symbolic link to "/init", a statically linked binary that appears to be built as a C++ program compiled with Clang. It also checks the virtual filesystem on "/sys" (I think) if interoparability is supported and enabled by the kernel. I cannot find any source code for "/init" though (closed-source?).

Did some tests and wslpath seems to do only some very simple path conversions:
A Unix path inside the "virtual" root filesystem is translated to a network address and vice versa:
i.e. "/usr" will be resolved as "\wsl$${WSL_DISTRO_NAME}\usr" with ${WSL_DISTRO_NAME} being set as an environment variable (i.e. "Ubuntu");
if ${WSL_DISTRO_NAME} is empty the path will be "\wsl$\usr";
a path inside "/" is checked if it exists, an address under "\wsl$" is resolved even if it doesn't exists.
Anything inside a Windows partition label such as "C:" is translated as being mounted inside "/mnt/":
i.e. "C:\Windows" will be resolved as "/mnt/c/Windows" and vice versa (path must exist)
The actual location of "/" is at "%LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs".
wslpath, is a symbolic link to "/init", a statically linked binary that appears to be built as a C++ program compiled with Clang. It also checks the virtual filesystem on "/sys" (I think) if interoparability is supported and enabled by the kernel. I cannot find any source code for "/init" though (closed-source?).


Update Units.csv

Added Ncm, Nmm

I updated the generated code ("Run custom tool" on CodeGenerator.tt) and updated the change log and contributors files.

Ok, thanks. Should that have been my job? (I am kind of new to this...)

It should probably be done during build. I will add an issue!

#37

Yes, I had to run the generator as well manually. My concern was whether I should have been responsible for adding that generated file (Torque.cs?) to my branch as well and if I should have modified the change log etc.


[libzippp] Fix conditional check for WIN32 in portfile for vcpkg_fixup_cmake_targets

Is your feature request related to a problem? Please describe.
When building libzippp for Android on my Windows host, I get the following error because of the conditional on line 21 of libzippp's portfile:
CMake Error at scripts/cmake/vcpkg_fixup_cmake_targets.cmake:72 (message):
  'C:/a/4/s/__vcpkg/packages/libzippp_arm-android/debug/cmake/libzippp' does
  not exist.
Call Stack (most recent call first):
  ports/libzippp/portfile.cmake:22 (vcpkg_fixup_cmake_targets)
  scripts/ports.cmake:79 (include)

[DEBUG] cmd_execute_and_stream_data() returned 1 after  5080881 us
Error: Building package libzippp:arm-android failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: libzippp:arm-android
  Vcpkg version: 2020.06.15-nohash

Proposed solution
Instead of checking if(WIN32), the portfile should be checking if(VCPKG_TARGET_IS_WINDOWS). Alternatively, it could check for existence of the folders/files in question to be more robust to future changes.

Hi @tusharb86
Thanks for posting this issue.
I will fix this later.


The model rendered on the Replica dataset is damaged

Habitat-Lab and Habitat-Sim versions
Habitat-Lab: vx.x.x or master?
Habitat-Sim: vx.x.x or master?
Habitat is under active development, and we advise users to restrict themselves to stable releases. Are you using the latest release versions of Habitat-Lab and Habitat-Sim? Your question may already be addressed in the latest versions. We may also not be able to help with problems in earlier versions because they sometimes lack the more verbose logging needed for debugging.
Master branch contains 'bleeding edge' code and should be used at your own risk.
Docs and Tutorials
Did you read the docs? https://aihabitat.org/docs/habitat-lab/
Did you check out the tutorials? https://aihabitat.org/tutorial/2020/
Perhaps your question is answered there. If not, carry on!
❓ Questions and Help

I used the habita-sim to render the Replica dataset, but the model in the resulting image appears incomplete.
Does anyone know what the situation is?And how can I correct this problem?

Hard to be certain with just one image, but in general, 3D reconstruction is not a solved problem and you should expect missing thin structures.

Hard to be certain with just one image, but in general, 3D reconstruction is not a solved problem and you should expect missing thin structures.

From various perspectives, structures similar to chairs and chandeliers are all damaged. And shouldn't it be a confirmed model for the Replica dataset? It is not generated through 3D reconstruction.

shouldn't it be a confirmed model for the Replica dataset? It is not generated through 3D reconstruction.

It is. Please read about it here: https://arxiv.org/abs/1906.05797


Dear Team,Thank you for entire team for your support.When i try to open 3D .Browser hanging.It's going to no responsive mode for some cases.Any solution for this

Describe the Bug
When i try to open 3D .Browser handing.It's going to not response mode for some cases.Any solution for this
Steps to Reproduce
When i try to open 3D .Browser handing.It's going to not response mode for some cases.Any solution for this
The current behavior
When i try to open 3D .Browser handing.It's going to not response mode for some cases.Any solution for this
The expected behavior
When i try to open 3D .Browser handing.It's going to not response mode for some cases.Any solution for this
OS
windows server 16 standard 64 bit
Node version
after publish
Browser
Chrome 126.0.6478.182

+1

I don't understand the question, can you clarify with screenshots or errors


Ballerina data mapper FHIR record support

Description:
FHIR r4 has different FHIR resource types (https://central.ballerina.io/wso2healthcare/healthcare.fhir.r4) and these records must be recognized by the ballerina visual data mapper
Describe your problem(s)
Currently the data mapper doesnt recognize these records as exiting records in the transformation logics and desgin overview.
Describe your solution(s)
These records must be visible and selectable in the visual data mapper once a developer selects the "select existing records" as input or output record types in the ballerina data transformations

The issue is also being tracked here https://github.com/wso2-enterprise/ballerina-plugin-vscode/issues/753


stuck on process to cat files

Hi Juicer support team:
I have to modify juicer.sh to adapt it to run on our LSF cluster. The test run completed.
When I run against my dataset (273G for each fastq), the job is pending on the stage
Job <664648>, Job Name </a1607556732_catsplit>, User , Project ,
Service Class , Status , Queue , Command <
cat /rsrch3/scratch/itops/ryao/juicer/WM115/aligned//a1607
556732_msplit*_optdups.txt > /rsrch3/scratch/itops/ryao/ju
icer/WM115/aligned/opt_dups.txt;  cat /rsrch3/scratch/itop
s/ryao/juicer/WM115/aligned//a1607556732_msplit*_dups.txt
> /rsrch3/scratch/itops/ryao/juicer/WM115/aligned/dups.txt
;cat /rsrch3/scratch/itops/ryao/juicer/WM115/aligned//a160
7556732_msplit*_merged_nodups.txt > /rsrch3/scratch/itops/
ryao/juicer/WM115/aligned/merged_nodups.txt>, Esub
in aligned directory, it has 1042 files for each types of files:
msplit_optdups.txt
msplit_dups.txt
msplit_merged_nodups.txt
but they can't be concatenated to an output file.
Do you have any suggestion?
Thanks!
 If it works, you can restart the pipeline
with the "-S final" flag.
On Thu, Dec 10, 2020 at 10:46 AM ryao-mdanderson<EMAIL_ADDRESS>wrote:

Hi Juicer support team:
I have to modify juicer.sh to adapt it to run on our LSF cluster. The test
run completed.
When I run against my dataset (273G for each fastq), the job is pending on
the stage
Job <664648>, Job Name </a1607556732_catsplit>, User , Project ,
Service Class , Status , Queue , Command <
cat /rsrch3/scratch/itops/ryao/juicer/WM115/aligned//a1607
556732_msplit*_optdups.txt > /rsrch3/scratch/itops/ryao/ju
icer/WM115/aligned/opt_dups.txt; cat /rsrch3/scratch/itop
s/ryao/juicer/WM115/aligned//a1607556732_msplit*_dups.txt

/rsrch3/scratch/itops/ryao/juicer/WM115/aligned/dups.txt
;cat /rsrch3/scratch/itops/ryao/juicer/WM115/aligned//a160
7556732_msplit*_merged_nodups.txt > /rsrch3/scratch/itops/
ryao/juicer/WM115/aligned/merged_nodups.txt>, Esub

in aligned directory, it has 1042 files for each types of files:
msplit_optdups.txt
msplit_dups.txt
msplit_merged_nodups.txt
but they can't be concatenated to an output file.
Do you have any suggestion?
Thanks!
Rong Yao
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/aidenlab/juicer/issues/195, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK2EWY5FQXVYS7DZQXR7LTSUDUOPANCNFSM4UVGOI3Q
.

--
Neva Cherniavsky Durand, Ph.D. | she, her, hers
Assistant Professor |  Molecular and Human Genetics
Aiden Lab | Baylor College of Medicine
www.aidenlab.org

Thanks for the suggestion. I ran the 3 cat command lines, but out of disk space at the end. May I remove directory splits (1.7 Terabytes) at this point before running cat? What is the possible reasons that pipeline stuck at cat step?
Thanks!
Rong

It is stuck because it is running out of disk space.
You can delete files ending with fastq at this point from the splits
folder; see if that helps. If not you can delete sam but I hesitate just
because you haven’t completed the dedupping step yet.
On Fri, Dec 11, 2020 at 4:22 PM ryao-mdanderson<EMAIL_ADDRESS>wrote:

Thanks for the suggestion. I ran the 3 cat command lines, but out of disk
space at the end. May I remove directory splits (1.7 Terabytes) at this
point before running cat? What is the possible reasons that pipeline stuck
at cat step?
Thanks!
Rong
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aidenlab/juicer/issues/195#issuecomment-743433375,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK2EW5C22ZWWNNPOJSAERLSUKEQ3ANCNFSM4UVGOI3Q
.
--
Neva Cherniavsky Durand, Ph.D. | she, her, hers
Assistant Professor |  Molecular and Human Genetics
Aiden Lab | Baylor College of Medicine
www.aidenlab.org


 This happens on a Nexus 6 and Nexus 9.

Can you run flutter -v run, find the adb command (w/ args) that it's failing on, and run that command manually? It might print out better text that would help us narrow down the failure.

I just tried on Android N, build NPC91K, on a 5X, and I was able to "flutter run" the gallery.

This line (https://github.com/flutter/flutter/blob/4d0e6984c204a27e2baa018b0debcfebd54242ba/packages/flutter_tools/lib/src/android/android_device.dart#L193) is failing on the devices we're testing on. We tried running this manually, and it failed with the same error ("Exit code 1...")

I have 1.0.32 locally. We should probably change to wrapping the call with a try-catch; we don't need to fail the build if the app isn't installed, just return false. Perhaps the exit code convention changed for that adb call.

After debugging, we deduced that 1.0.35 changed behavior, and prints a 1 if the path isn't found. On 1.0.32, nothing is printed.
Meanwhile, pm list packages seems to have consistent behavior on 1.0.32 and 1.0.35 and could be used to answer the question "does the apk exist on the device".


Add option to prevent double mappings of spots to DNAs in DNA builder

Currently spots can be mapped to two different DNA molecules when building a DNA archive using the DNA archive building tool. Sometimes is desire but other times this might not be desired. We should add an option to allow users to decide which behavior they prefer.

Adding the log from the DNA finder command to the archive will be hard to do actually because the tools are executed independently to allow for usage in different combinations and manual editing of DNAs. So I am not sure how to add that, but it would be really helpful to know the setting used for DNA finding when looking at the resulting archive. I will think about what we could do and am open to suggestions.


EIP4844: Remove redundant cryptography point in networking specs

Motivation
After changing the cryptography to be more higher level, certain parts of the spec now are no longer concerned with particular cryptographic invariants, since they are encapsulated inside of the cryptography module.
It seems that some parts of the spec were not updated to reflect this. In particular in networking:

[REJECT] the sidecar.blobs are all well formatted, i.e. the BLSFieldElement in valid range (x < BLS_MODULUS).

[REJECT] The KZG proof is a correctly encoded compressed BLS G1 Point -- i.e. bls.KeyValidate(blobs_sidecar.kzg_aggregated_proof)

Suggestion
Since:

[REJECT] The KZG commitments in the block are valid against the provided blobs sidecar. -- i.e. validate_blobs_sidecar(block.slot, hash_tree_root(block), block.body.blob_kzg_commitments, sidecar)

Will only pass if the blobs are all well formatted ie canonical and the proof point is correctly encoded, those two points now seem to be redundant.
Notes
If the above is accepted, then I would also question if the networking layer needs this point:

[REJECT] The KZG commitments of the blobs are all correctly encoded compressed BLS G1 Points. -- i.e. all(bls.KeyValidate(commitment) for commitment in block.body.blob_kzg_commitments)

In order to remove it, I think we would need to add it inside of verify_kzg_commitments_against_transactions . If we always validate the commitments before calling verify_kzg_commitments_against_transactions then I think it would be reasonable to move the point validation function inside of verify_kzg_commitments_against_transactions.

Yeah I agree with that. We can leave all the validation to the cryptography library.


Better readme for every starter code, and for main elecrue readme

I updated it, for now

@RajvirSingh1313 Adding a 'Typescript' badge to the tech stack section of the readme.

@RajvirSingh1313 Adding a 'Typescript' badge to the tech stack section of the readme.

PR for the above issue - https://github.com/arsheelsheikh/Elecrue/pull/1

@arsheelsheikh It would be great if you can make a readme for every template. And if you are adding typescript badge then can you add javascript one too?

@arsheelsheikh It would be great if you can make a readme for every template. And if you are adding typescript badge then can you add javascript one too?

cool I'll add for JavaScript and HTML

@RajvirSingh1313 Completed, I've included them.

@arsheelsheikh remove the html and css ones, js and ts are fine


String array should replace the existing one

Example:
type Form struct {
   Field []string `form:"field"`
}

form := Form{ Field: []string{"value1", "value2"} }

// vals is contains 'field': "value3", "value4"
_ := Decoder.Decode(&form, vals)

// form.Field contains now "value1", "value2", "value3", "value4".
// Excepted was only "value3", "value4"

If I decode the HTTP post values to this struct, the Field property gets appended by the values in the post data instead of replaced.
The use case is the following:
I pre-fill the Form struct with data based on the DB entity. I use this struct also in the view template to render the values.
If I would fill the Form struct after the decoding, it will override all the decoded fields if I not check every single field.
My logical expectation of the form decoder is:

If the form field exists in the values, make sure the value match the decoded value (now it's appending string array, don't tested other kind of arrays/struct array)
If not just leave the field how it is (works)

Hey @aight8 this was done on purpose so that the user had full control over the decoding process, I can see how it would be convenient for deeper nested structures to have this done automatically if desired though.
I can look into adding a decode option so that this behaviour can be configured via an option.

hi, has the option to configure the decoding behavior been added to the library?

@AlisskaPie no not as yet as I have been busy with other projects.


Everything is hell I cannot get the game to work again

Description

Reproduction

Screenshots

Additional context

report what your issue actually is with reproduction steps, spamming issues is not tolerated

if you want actual help, you will need logs as well

complex midi files will severely impact the client
if it's only happening when you try to use midis, perhaps your files are too complex

Is this still an issue?


Added 2019 iPhone model names for 'hasNotch' functionality

Compatibility

OS
Implemented

iOS
✅

Android
NA

Windows
NA

Checklist

[x ] I have tested this on a device/simulator for each compatible OS
[na?] I added the documentation in README.md
[x ] I mentioned this change in CHANGELOG.md
[na?] I updated the typings files (deviceinfo.d.ts, deviceinfo.js.flow)
[ na?] I updated the dummy web/test polyfill (default/index.js)
[ na?] I added a sample use of the API (example/App.js)

Excellent, thanks! This looks fine and certainly follows current convention
Please note that as a future direction (read as: not this 3.x series) I want the ability to answer this question ("hasNotch?") to move to react-native-safe-area-context, which seems like a safer / more thorough way to do it (and also already supports the notch in emulators / simulators a la #732 here)
https://github.com/react-native-community/react-native-device-info/issues/594#issuecomment-527744091

v3.1.3 should be out on npmjs.com now :rocket:


Deprecate installation of global subcommands

Passing the --global flag to the dcos package install command
is now deprecated and support for this will be removed in 1.12.
Subcommands should always get installed for a given cluster instead.
https://jira.mesosphere.com/browse/DCOS_OSS-2157

run linux integration tests


speed of Calpeyron

Hi, I am using Calpeyron and have it working. However, even for a simple model with 2 components CO2 and N2 if I do a bubble point calculation it takes an enormous amount of time to get an answer. In fact, just setting the model takes ages.
I am doing this from the REPL. Is there a way to speed things up or is this as good as it is.
My session is:
using Pkg
using Clapeyron
model = GERG2008(["carbon dioxide","nitrogen"]);
z=[0.996,0.004];
bubble_temperature(model,40e5,z)
I am doing this from the REPL. Is there a way to speed things up or is this as good as it is.
Thanks

here are the timings:
julia> using Clapeyron
julia> @time model = GERG2008(["carbon dioxide","nitrogen"])
2.106798 seconds (5.45 M allocations: 284.842 MiB, 2.71% gc time, 99.96% compilation time)
GERG2008 with 2 components:
"carbon dioxide"
"nitrogen"
julia> z=[0.996,0.004]
2-element Vector{Float64}:
0.996
0.004
julia> @time bubble_temperature(model, 40e5,z)
29.439166 seconds (85.80 M allocations: 4.253 GiB, 4.18% gc time, 99.92% compilation time)
(276.4968315845077, 4.866631958200414e-5, 0.00038309691825400265, [0.9675012746913377, 0.03249872530866227])
We can see it takes 2 seconds the instantiate the model and 30 seconds to solve a simple binary bubble point problem.

Ok I see the issue it's that we have to call the function once in a REPL or other session, for the function to be compiled. After that the compilation is not needed for that function and the function call is very fast. it goes from 30 seconds to 1 millisec.

Hi!
A long term goal is to have this package completely compiled, but it needs work on the julia side for now, for an easy distribution of binaries (fortunately they move fast!). This is widely known in the Julia community as TTFP (Time to first plot, or in this case, Time to first phase eq). At the moment, the best way to use Clapeyron is within an open julia session, notebook, or REPL. I know there is a way to compile the package, by compiling it along a system image, via https://github.com/JuliaLang/PackageCompiler.jl , but personally i've never tried it

Hi Thanks very much for the feedback. I can confirm that PackageCompiler works, you end up with a sys-image that you can load on start up of Julia. If you define a simple function that includes calls to all the functions you want to use from your sys-image then you get your functions precompiled in your sys-image and from then on they will load and run fast in your julia session. The more functions you add to your function the slower that precompile is but from then on you have the fast function access.
As I understand the sys-image so or dll you produce can only be used in Julia. If you want to use the so or dll from another language need to wrap the function with the Base.@ccallable macro, this I have not yet tested but there are good examples.


Update settle-client-test.php

Make it evident that the keys used for testing are just samples.

LGTM. Please rename the PR or otherwise fix the commit message. I assume you have run automated tests? (Would be nice to have them in GitHub checks)

While sensible requests, I'm afraid I lack both knowledge and time for diving into these suggestions. My changes were only meant to inform future security researchers looking into the repository. The gateway software itself is very much outdated and not used by anyone, as it's not possible to run without extensive updates, so I wouldn't worry too much about this breaking anything.


Lack of example for the architecture

Perhaps the example can describe it greatly ,so Need some examples for it .

@MarcSteven have you checked AbsurdGitter ? I have used it as the starting ground for a project and it's been very helpful.

@npvisual  So you should import it into  the project ,that's great


dirdiff: init at 2.1

Motivation for this change
This is a Tcl/Tk directory diff and merge tool that is simple to use, and is something I've been missing on NixOS.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Determined the impact on package closure size (by running nix path-info -S before and after)

This new package takes 160K according to du -sh.  It's closure size is 49MiB.

[X] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 113177 at 285367ec run on aarch64-linux 1

1 package built:

dirdiff

1 suggestion:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/tools/text/dirdiff/default.nix:23:3:
   |
23 |   installPhase = ''
   |   ^

Result of nixpkgs-review pr 113177 at 285367ec run on x86_64-linux 1

1 package built:

dirdiff

1 suggestion:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/tools/text/dirdiff/default.nix:23:3:
   |
23 |   installPhase = ''
   |   ^

I would like to suggest to create a desktopItem as it's a GUI tool. Not a blocker though.
The last release was made over 15 years ago. Very interesting that it's still compiling :smile:

I would like to suggest to create a desktopItem as it's a GUI tool. Not a blocker though.

Yes, this should exist.  Added, thanks!

The last release was made over 15 years ago. Very interesting that it's still compiling :smile:

C and Tcl software sure has good longevity :).
Changes and lint addressed, and I also switched to using installFlags rather than a custom installPhase.

Feedback addressed, thanks @SuperSandro2000.


minDate and maxDate not exist

Hello dev and contributors!
I can't find props for setting max and min date (not time).
Maybe, someone can present some fix for this issue for own fork.
Also, as I understand, U don't realize this feature by own reasons.
Do U can explain this moment?

Yes they do not exist. the reason is just that i haven't had any need for that behavior. I'm happy to take a PR adding it tho


Remove QrSigner/QrSender page?

We have inherited signing transactions that are scanned via a QR-code to send transactions with (I believe, I did not spend too much time into understanding) offline signature and multiparty-signature support. I don't see this happening currently, shall we remove the code?

We actually have our own, different ideas for sth similar:
#441
I think we can purge this legacy


[mwc-select] menu is cut at the top when opens in top position

Describe the bug
select inside a dialog is being cut at the top when menu opens at the top (due to lack of block space)
To Reproduce
Steps to reproduce the behavior:

open select inside a "short" dialog window
make sure the top is more spacious so that menu opens at the top

Expected behavior
native select would open as fixed and wont let user interact (scroll) until click outside and select is closed
fixedMenuPosition mixed with scrim might achieve the same expected result
Screenshots
the video shows a ״vexing״ case but in practice this issue becomes quite annoying.
https://user-images.githubusercontent.com/15140652/118017259-11648f00-b35f-11eb-9d9e-d769be3b5510.mov

Heya does fixedMenuPosition work? It's a bit unclear from your report. Also would it be possible to come up with a live repro? Such as on jsbin or the https://lit.dev/playground

the desired result is not like with fixedMenuPosition. the menu should follow its anchor when scrolled.
For some reason lit's playground behaves differently from codepen (on my machine at least) and opens the menu of the basic select at the bottom of anchor while in codepen it is opened at the top and gets cut partially at its top
lit's playground

codepen

verify yourself and click the 1st select without scrolling (on codepen) -

codepen

lit playground

notice the difference of native select against mwc in reference to fixedMenuPosition. seems like native is fixed as well but it wont let user scroll away without closing its menu. maybe setting fixedMenuPosition on mwc-select should add same logic

This is due to the lack of menu hoisting. This is something we expect to tackle before 1.0.0. Current workaround is <mwc-select fixedMenuPosition> closing as duplicate of #832

Heya, yeah, the correct way to implement this is to actually render the menu at document.body. We're still trying to figure out a method to do this such that it's not lit specific and works across frameworks

I'm not sure how material you will come into play but at the moment a lot of the styling of material web components is handled by css variables as such there are use-cases where theming (css variables) is applied via components as well.
<my-theme dark>
  <mwc-dialog open>
    <!-- some content -->
  </mwc-dialog>
</my-theme>

in the above snippet, given that my-theme sets the relevant variables, and dialog moves elsewhere outside the theme component scope, it will loose styling.
not sure what is material's opinion on theming components as a whole, and what you got lined up but some sort of theming is must for consumers and the alternative would be css traditional styling, which kind of deviates from the modular pattern

Yeah, this is a known issue we'd have to handle as well as determining how to handle event propagation. We likely would make hoisting opt-in  or

why was this closed? very much related to #2577

This was closed as duplicate of #832


SoilSkipListDictionary>>#basicAt:ifAbsent: should use #isRemoved

After merging https://github.com/ApptiveGrid/Soil/pull/403, we can use #isRemoved in SoilSkipListDictionary>>#basicAt:ifAbsent:  instead of #isInitialized, tests are green with:
basicAt: aString ifAbsent: aBlock
	| iterator value key |
	key := (aString asSkipListKeyOfSize: self index keySize) asInteger.
	iterator := self index newIterator.
	value := iterator at: aString ifAbsent: [ aBlock value ].
	value isRemoved ifTrue: [
...

(this was the change from the closed https://github.com/ApptiveGrid/Soil/pull/397, all the other changes where done, just not the #isRemoved one)


Handle static new_sync_read.

Make vmhgfs compile after #61

I think it's more complicated than I thought, please ignore.

Well thanks for at least trying! :)

taviso: so what happened when you tried running with that patch / change in place?
(To not set the read and write values, and just leave them as NULL in vmhgfs-only/file.c)

Some stability issues, I didn't have time to investigate. Perhaps they're unrelated.

Looking at  Viro's change in the kernel source (https://github.com/torvalds/linux/commit/5d5d568975307877e9195f5305f4240e506a2807), your patch looks correct.
I tried the patch with OSX host running Fedora 4.1.3-100.fc21.x86_64 with VMwareTools-9.9.2 (not 9.9.3), and it's working fine for me!
I ran a couple of cp -pr /mnt/hgfs/foo/bar ~/local/foo/bar, and then diff-ed the new directory (on linux) with the original on the OSX or hgfs mount, and also vice-a-versa with no problems.
I didn't reboot (the host or the linux on VM).
Given the above, this should be re-opened and commited to master.
I don't know why you're diff/patch looks slightly different than mine, I mean you added two lines of code around the functions that are now not exported.
i.e. this is my patch file:
--- vmhgfs-only.orig/file.c     2015-08-09 12:11:40.221267063 -0700
+++ vmhgfs-only/file.c  2015-08-09 12:11:29.197685431 -0700
@@ -170,8 +170,10 @@
.flush      = HgfsFlush,
#if defined VMW_USE_AIO
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
.read       = new_sync_read,
.write      = new_sync_write,
+#endif
.read_iter  = HgfsFileRead,
.write_iter = HgfsFileWrite,
#else // LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)

Yes, I think my instability was unrelated.

Works with Fedora 21, Kernel 4.1.3, tools 9.9.3
Thanks

taviso's patch worked for me.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Wily Werewolf (development branch)
Release:        15.10
Codename:       wily
$ uname -a
Linux sun 4.1.0-3-generic #3-Ubuntu SMP Tue Jul 28 12:22:42 UTC 2015 i686 i686 i686 GNU/Linux

I don't know why you're diff/patch looks slightly different than mine, I mean you added two lines of code around the functions that are now not exported.

The original patch adds another space in front of the two lines between the if/endif.

Worked fine, please merge :+1:

Looks good, but I can't test at the moment. Will test soon, though. Thanks!


Expand the XTS documentation

Explain that XTS does not support streaming, and that the IV value is the
tweak.

This pull request is ready to merge

Pushed. Thanks.


Support Smart Switch TYWB 4ch-RF

Hello
Support the script of the device Smart Switch TYWB 4ch-RF
It is found but no commands arrive under debug

As this project has no active maintainer, there's little reason to submit enhancement requests.


TrotterQRTE with primitives

Summary

[ ] Release notes.
[ ] Make sure OperatorBase related code fully removed.
[ ] Decide if getting rid of observables_evaluator.py.

Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

126 of 151 (83.44%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.007%) to 84.128%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/algorithms/time_evolvers/evolution_problem.py
34
35
97.14%

qiskit/algorithms/time_evolvers/real_evolver.py
7
8
87.5%

qiskit/algorithms/time_evolvers/trotterization/trotter_qrte.py
46
52
88.46%

qiskit/algorithms/time_evolvers/imaginary_evolver.py
0
8
0.0%

qiskit/algorithms/observables_evaluator.py
26
35
74.29%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
56852

Relevant Lines:
67578

💛  - Coveralls


packaging alertmanager sets and add a tests.

packaging alertmanager sets and add a tests.

Hi,
Thanks for looking into this and please be aware of this work: https://github.com/thanos-io/thanos/pull/1838 which changes a lot and adds tests as well (:

Can you rebase? (:

Can you rebase? (:

Yes.


versionCode

It seems like your app's versionCode is (almost) never increased; the latest release today again had it at 2. As Android uses versionCode to tell versions apart it's important to increase it with each release. Could you please take care for that? It's the value behind the + sign in this line of your pubspec.yaml. Thanks in advance!

Thanks for fixing! Please keep increasing with future releases :smiley:

Thanks for fixing! Please keep increasing with future releases 😃

Okay, no problem! 😄


True and False keywords are misbehaving when used in method returns

Methods with a Boolean return type will compile but not deploy... sometimes.
Take a look at this.
from boa3.builtin.compile_time import public

@public
def addition_checker(a: int, b: int, c: int) -> bool:
    if a + b == c:
        return True
    else:
        return False

This code compiles, but on deploy it gives Neo.VM.BadScriptException: Exception of type 'Neo.VM.BadScriptException' was thrown. in Neo Express.
Trying an alternate approach:
@public
def addition_checker(a: int, b: int, c: int) -> bool:
    return a + b == c

Compiles, deploys, and invokes as expected. Seems to imply something wrong with True and False.
One more to test it:
@public
def addition_checker(a: int, b: int, c: int) -> bool:
    if a + b == c:
        return bool(1)
    else:
        return bool(0)

Also deploys and invokes correctly. Worth some investigating?

@EdgeDLT what version of boa are you using?
Using 0.14 I cannot reproduce it. The assembly looks fine to me
INDEX    OPCODE      PARAMETER
0        INITSLOT    0 local, 3 arg    <<
3        LDARG0
4        LDARG1
5        ADD
6        LDARG2
7        NUMEQUAL
8        JMPIFNOT    12 (4/04)
10       PUSHT
11       RET
12       PUSHF
13       RET

I can call the function fine using neo-debugger.

In case that is bypassing the script check I also deployed it to neo-express (using the visual dev thing) and called the function without problems

Sorry for wasting your time @ixje, my Boa install was significantly outdated. Works fine reinstalled in a fresh environment. Also fixed another issue I was having yesterday... it appears I need more sleep.

it appears I need more sleep.

No worries, story of my life ;)


Feature request - creation of double-sided Commodore 1571 images

I would like to request the ability to create 340k .d71 image files from Commodore 1571 double-sided GCR-encoded disks.

1571.zip

1571flux.zip
2nd try. Used this command and it seemed to work:
sudo fluxengine read ibm --bit-error-threshold=0.4 --retries=0 -s :d=1 --write-flux=1571.flux

Just an example of a .d71 file...
cpm+128.zip


Gateway control color and brightness

I hope other control commands (sound related) will work in the same manner. Just didn't have enough time to implement them
Code is based on
https://github.com/louisZL/lumi-gateway-local-api/blob/master/网关.md
https://github.com/octa22/org.openhab.binding.xiaomigateway/blob/master/src/main/java/org/openhab/binding/xiaomigateway/internal/XiaomiGatewayBinding.java
https://github.com/corbinmunce/domoticz/blob/master/hardware/XiaomiGateway.cpp

Thanks for the pull request! I've been trying to avoid using the local developer API for writes and instead map against the miIO-methods. There is a method called set_rgb that controls the color and brightness of the gateway. I've been ignoring that part of the gateway, but it really deserves proper support.
I added a first implementation using this method that uses the capability brightness and color:rgb which is the same as used by the light-type (for Yeelights). I'm currently a bit unsure if that actually belongs on the gateway or if the gateway should expose a virtual sub-device for its light functionality.
Here a few quick notes about the API:

setRGB(color) takes either a string with a hex color (such as #ff00aa) or an object with the keys red, green, blue with values between 0 and 255.
setBrightness(brightness) takes a value between 0 and 100 to indicate the brightness.

Does this implementation work for your use case?

Will try it asap

In overall it works.
Got an issue though.
			const rgb = 0x7f0000ff
			return this.call('set_rgb', [ rgb ]);

^ works fine
			const rgb = 0xff0000ff
			return this.call('set_rgb', [ rgb ]);

^ fails with
I believe the problem is somewhere in parameter type conversion inside set_rgb / call
miio.device.[<IP_ADDRESS>] -> (3) {"id":2,"method":"set_rgb","params":[-65536]} +0ms   miio.packet -> <Buffer 21 31 00 50 00 00 00 00 02 bb 64 a3 00 01 4e a0 16 5d 10 37 24 63 a9 ee d8 71 b4 b7 ec 8c 0e 66> +0ms   miio.packet <- <Buffer 21 31 00 60 00 00 00 00 02 bb 64 a3 00 01 4e a0 9b 4f 00 53 a3 32 48 1d 66 7f 1c a3 d2 51 99 59> +7ms   miio.device.[<IP_ADDRESS>] <- Message:{"error":{"code":-5005,"message":"params error"},"id":2} +0ms (node:25960) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error (node:25960) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Actually, the problem is in setBrightness itself. I gonna do other pull request


Handling notebook execution assets

An example of this is ExecutableBookProject/jupyter-cache#47
Here we would also like to use the assets argument of the  stage_notebook_file method:  https://github.com/ExecutableBookProject/MyST-NB/blob/b64cc307b38c14db469e410434895f13f63773ff/myst_nb/cache.py#L101
Firstly, I imagine it would be extremely difficult/impossible to run actual analysis of the code, to work out what assets are required. So then the user must specify these assets explicitly.
Then are three probable approaches to achieve this:

We search for a specific folder relative to the notebook, e.g. docname_assets

this would be an issue if multiple notebooks relied on the same asset

they are specified as part of the notebook metadata

this would require reading the notebook before staging

they are specified within the sphinx conf.py

(3) is probably the easiest option, something like:
jupyter_execute_assets = {
    "path/to/doc": [
        "doc_assets/*"
    ]
}

Here (a) all asset paths must be relative to the notebook folder, e.g. here the assets are at path/to/doc_assets, (b) glob patterns can be used.
It would be somewhat similar to package_data in setup.py

cc'in @choldgraf @AakashGfude

Thanks @chrisjsewell
I think (3) would require quite a bit of work from the users, specifically if it is a big project and users have to track one more thing about updating conf.py whenever they introduce, remove an asset from a notebook.
(2) seems like a good option in my opinion.
Thinking about it, there can be one more option where we create a variable which contains patterns which we want to ignore being added as assets like
assets_excludepatterns = ['__pycache__']

@chrisjsewell are these generated assets or user supplied assets? If I remember correctly you are using the term artefacts for generated assets?
Can we add a directive (i.e. dependency) for including assets required for compilation? This would be easier to parse and is then easy for the user to understand which assets are required in each document?

are these generated assets or user supplied assets

assets are input external files required by the notebook to execute
artefacts are output external files generated by the notebook execution

Can we add a directive

Not a directive, because it needs to be known before fully parsing the document

Alternatively it could be added to the yaml at the top of the document

This is my option (2) above, so could well be the route we go down


After deleting thing, offset not updated on Connection and Messages page

BUG REPORT

What were you trying to achieve?
Lists all Things on connection page

What are the expected results?
Lists all Things on connection page

What are the received results?
No Things listed

What are the steps to reproduce the issue?

Create 11 Things
On Connection page go to page 2 on Things side
Go to Things page and delete one Thing
Back on Connection page you don't see any Thing (because it's hanging on page 2 which no longer exists)

In what environment did you encounter the issue?
Local enviroment, Mainflux in docker, env.url = " url = "http://localhost:80/"

Additional information you deem important:
Same applies to channels on connection page

Moving this one to new MainfluxLabs/ui-elm repo: https://github.com/MainfluxLabs/ui-elm/issues/6


Back to c sharp

@stefan-kenyon I migrated this project back to using C# instead of F#, thought it was better for the long haul.
The project is now hosted on http://localhost:1076, which it will inform you when running via the run.ps1 script. I also added a tool called Swagger to the project that shows all the endpoints available to be called on the API. Once the project is running you can navigate to the http://localhost:1076/swagger/index.html url and you should see the Swagger UI. Which at this moment has Questions and Users routes.
I'll have to carve out some time to show you how to install SQL server and get everything running. As always, let me know if you have any questions.


Top-level input event listening

Adding input listeners to the root of the scene graph can be undesirable when it wants to allow any other user interaction (as it behaves like setting pickable:true, which changes what things are hit tested in a sim), and adding listeners to the Display I believe is the best alternative.
An example of this happening is https://github.com/phetsims/circuit-construction-kit-dc/issues/87, where a rectangle on the visual top of the carousel is not normally hit-tested, but when a rootNode listener is added, it then is hit-tested and prevents interaction with the carousel.
While it may be best to try tagging certain nodes with pickable:false, it feels like a bad pattern to have to add that tag on a huge amount of nodes.
For a while, I've wanted to be able to add event listeners to the display directly, as it's a much cleaner way of globally handling this type of input. It shouldn't change the hit-testing, and doesn't require finding the scene root (matters in DAG cases especially).
For cases where root listeners are currently added and handle()/abort() are not called on the event, I would recommend using these Display listeners. (This would be good to discuss at the developer meeting, so I've tagged it here).

For example, ComboBox's listener on the root node would trigger the same problem with Carousel (or other sim-specific code), and is an example of something that would be changed to a display listener.

Reviewing for developer meeting.
Sounds like a good feature to have.  I've occasionally had a requirement like "do X when the user does anything else".  I've always managed to push back on those requirements, since they often indicate bad design.  But someday I may not be as convincing.
@jonathanolson What is " ComboBox's listener on the root node" that you mentioned in https://github.com/phetsims/scenery/issues/650#issuecomment-316558067.  Do you mean the listParent argument to CombBox's constructor?

Works great in CCK when clicking away from a selected vertex or circuit element.

Oh... I missed that this was already implemented, thought @jonathanolson was soliciting ideas.

7/27/17 dev meeting: @jonathanolson and I will review >= 8/14.

If I'm reading this correctly, these listeners are leaking in CCK:

Discovered in https://github.com/phetsims/circuit-construction-kit-dc/issues/116

I don't have better ideas, so unassigning myself.  I'm not clear on the status of this issue (e.g. https://github.com/phetsims/scenery/issues/650#issuecomment-318555087), so leaving it open.

@pixelzoom, in this case, I'd like to use display listeners instead of listening to the root node in all code (e.g. ComboBox, sim-specific code, etc.)
Any objections to me refactoring those usages (with testing)?

No objection.

I also think using display listeners will be better, go for it!

I hit the three places I found using this pattern (tested, fuzzed, aqua-tested). Closing.


Targeting multiple columns across multiple tables

I appreciate this is more of a question than an issue but might help someone in the future.
I have multiple tables on a page, and each table can have varying numbers of columns (see http://stamps.petersenuploads.co.uk/index.php?route=product/category&path=59_71)
Looking at https://github.com/filamentgroup/tablesaw/issues/51 this can be done where each table has the same number of columns. I'm looking to do this based on a css class. ie each  is given a class such as <th class="col-name">.
$menu.find( 'input[type="checkbox"]' ).on( "change", function(e) {
            var checked = e.target.checked;

            $( e.target ).data( "cells" )
                .toggleClass( "tablesaw-cell-hidden", !checked )
                .toggleClass( "tablesaw-cell-visible", checked );

            var col=0;
            $('.tablesaw-columntoggle>thead>tr>th').each(function () {
                //NEED TO MATCH ON CLASSES RATHER THAN COL INDEX
                var status = ($(this).hasClass('tablesaw-cell-hidden')) ? 'none' : 'table-cell';
                $('.tablesaw-columnclone tr>:nth-child('+col+')').css('display',status);
            });
            self.$table.trigger( 'tablesawcolumns' );
        });

Any ideas how to target columns like this?

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.
The enhancement backlog can be found here: https://github.com/filamentgroup/tablesaw/issues?utf8=✓&q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+
Don’t forget to upvote the top comment with 👍!


Need admin approval

@atcaoyufei, Thanks for leveraging Azure docs feedback channel to raise this question. Could you please share the Azure documentation for which this feedback is applicable to and also describe more details about your scenario?

Organization A Create Application
Organization B member authorized to log in
Need admin approval

@atcaoyufei, Thanks for the response and sharing additional details.
As mentioned in my previous post, it would greatly help, if you could share the Azure documentation for which this feedback is applicable to? I beleive you are referring to this documentation  'Configure the admin consent workflow (preview)', please do confirm on the same or share the specific Azure document for a focused assistance.  As I do understand you have configured the admin consent workflow, could you also please share some more details about your problem so we can assist you better.

@atcaoyufei  There are certain permissions that require admin approval only. For example in below screenshot, the permissions where admin consent required is set to 'Yes' would not accept user consent. Only the permissions where admin consent required is set to '-' can be consented by users.

So regardless of whether this option is set to yes or no:

only administrator can consent to the permissions for which admin consent required is 'Yes'.

scope: offline_access Files.ReadWrite.All

@atcaoyufei Could you please share the complete request URL which initiate the consent framework?

@amanmcse
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=4bb69ea8-1fd8-4dcf-a493-d023f7e8e432&redirect_uri=https%3A%2F%2Fp
y-index.github.io&response_type=code&state=debug&scope=offline_access+Files.ReadWrite.All&prompt=consent

@atcaoyufei I constructed same URL with the client_id of the application in my tenant and not getting the "Need Admin Approval" message. You can test with below URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=b6f346ba-c900-4633-9f0d-e8000d97dc8e&redirect_uri=https://py-index.github.io&response_type=code&state=debug&scope=offline_access+Files.ReadWrite.All&prompt=consent
You can try registering a new application and try again. If you still face this issue, I would suggest you to open a Support Request as this is not expected behavior and require deeper troubleshooting.


Added cstore_fdw

cstore_fdw is an extension to PostgreSQL.
I would really like for this to link the library into postgres/lib but I have no idea how to get Homebrew to make it happen.

Releases are available for this now, so if still interested please submit this to the core. Thanks for the PR!


What steps will reproduce the problem?

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/ipythonconsole/namespacebrowser.py", line 50, in
self.namespacebrowser.process_remote_view(data))
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/namespacebrowser.py", line 283, in process_remote_view
self.set_data(remote_view)
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/namespacebrowser.py", line 376, in set_data
self.editor.set_data(data)
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 822, in set_data
self.model.set_data(data, self.dictfilter)
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 159, in set_data
self.set_size_and_type()
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 174, in set_size_and_type
for index in range(start, stop) ]
File "/Applications/anaconda/lib/python3.6/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 174, in
for index in range(start, stop) ]
TypeError: 'builtin_function_or_method' object is not subscriptable
Version and main components

Spyder Version: 3.2.0
Python Version: 3.6.1
Qt Versions: 5.6.2, PyQt5 5.6 on Darwin

Dependencies
pyflakes >=0.6.0 :  1.5.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.1 (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.5.6 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
psutil >=0.3     :  5.2.2 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
sympy >=0.7.3    :  1.0 (OK)
cython >=0.21    :  0.25.2 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  5.3.0 (OK)
pylint >=0.25    :  1.6.4 (OK)

I think this is a duplicate of #5015

@aliasHH  when this error happened, what code did you run? or what kind of object were you trying to see?

Closing because of lack of response.