Meshery VSCode Plugin

Introduction
Meshery is a CNCF project that provides a  cloud native management platform. MeshModels are a key concept in Meshery that enable developers to define cloud-native components and their relationships. With the increasing adoption of cloud-native architectures, there is a growing need for efficient development tools that can simplify the process of creating, editing, and using Meshery MeshModels. To address this need, we propose the development of IDE plugins that can provide developers with an intuitive and seamless experience while working with Meshery MeshModels.
Objectives
The objective of this project is to develop IDE plugins that can enhance the developer experience while working with Meshery MeshModels. The proposed plugins will leverage technologies such as golang, Meshery Models, and CUElang to provide features such as syntax highlighting, auto-completion, validation, and rendering previews for Meshery MeshModel definitions.
Conclusion
The proposed IDE plugins for Meshery MeshModels will provide developers with a powerful set of features that can simplify the development and deployment process of Meshery MeshModels. With the growing adoption of cloud native architectures, these plugins can become an essential tool for developers working on cloud native applications. This project will be implemented under the umbrella of CNCF, and we are confident that it will make a significant contribution to the cloud native community.
Implementation
Design-required. See instructions below.
Acceptance Tests

Syntax Highlighting and Auto-completion: The plugin can fetch Meshery MeshModel definitions such as cloud-native components and their relationships. This information can be used to provide syntax highlighting and auto-completion for these definitions in the JSON files, making it easier for developers to write error-free code.
Validation and Reference: For Meshery MeshModel definitions such as cloud-native components and their relationships, the plugin can use the CUE language to provide validation for the CUE input and preview the rendering result. The plugin can also fetch the Meshery MeshModel schemas and display them in the IDE for reference.

Mockups
Design-required

Contributor Guides and Handbook

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Hii, I am not able to access the 'Create a Functional Specification' document.


Change the default routing_method to sabre

In order to get ready for deprecating StochasticSwap the only default pipeline that uses is level 0. Changing it to sabre.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
24 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.02%) to 89.924%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/expr.rs
1
94.02%

crates/qasm2/src/lex.rs
5
92.37%

crates/qasm2/src/parse.rs
18
96.69%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.02%

Covered Lines:
65978

Relevant Lines:
73371

💛  - Coveralls


clean Readme

move changelog and docs to another files.
dont include them in README

@Ksengine Thank you for the suggestion. I will do it soon ;-)

can i help you.

we can close this issue now

i am the author of https://github.com/Ksengine/DicksonUI
you starred it once
but i had deleted and recreated it.

@dddomodossola
not yet moved

@Ksengine DicksonUI is cool! Why you deleted it?
I will rework the readme after some important pending works.

I will rework the readme after some important pending works.

ok

my description :

A student in Sri Lanka. 16 years old.beginner for coding.

and beginner for github
i deleted it accidentally.
I had recreated DicksonUI.
If you can please contribute

@Ksengine I really would be happy to contribute but I have no spare time. Work+family+some extra work= no spare time 😥

i made a pr #420


[test] stage1: seccomp: experimenting...

 In this test, I can successfully insert a kernel module, but it's because nspawn only disables the init_module() syscall if CAP_SYS_MODULE is not given. But my image has CAP_SYS_MODULE.
https://github.com/coreos/rkt/issues/1614
/cc @jfrazelle

@jfrazelle do you know if seccomp programs can get stacked or if they replace each other? My test is non-conclusive... but I was wondering if setting up a seccomp program at the app-level would disable the seccomp program set up by systemd-nspawn at the pod level.

I should just have read "man seccomp": yes, seccomp programs can get stacked, so it's fine.

Closing. The current seccomp PR is https://github.com/coreos/rkt/pull/2753


updated omni-epd to version 0.3.4

Bumps omni-epd branch to current version. Summary of changes below.
Version 0.3.4
Added

palette_filter advanced option now supports color names or hex values in addition to RGB colors. Thanks missionfloyd
IT8951 devices now support gray16 mode for grayscale
Waveshare 10.3 IT8951 device marked as tested. Thanks simonjowett

Version 0.3.3
Added

added link to pycasso in the README. Thanks jezs00
new displays, Waveshare 7.3in 7 Color - thanks evelyndooley, Waveshare 2.13in V3

Thanks - I forgot about this after I made the PR.


zephyr: switch to recent defines and include headers

In zephyr code-base some generic include patches
and defines had been deprecated since a while.
This condition was maintained until zephyr v2.1.0 inclusive.
Recently these deprecated items were removed completely from
the zephyr master branch. Zephyr current SHA of this patch is
e124c1cd34938f02bbe879533c6bd29b5ff53707
This patch switch mcuboot to using most recent items.
Signed-off-by: Andrzej Puzdrowski<EMAIL_ADDRESS>

Btw, the CI failed because there are some files that are used by both Zephyr and the sim so have to adjust those includes...


Failed to install plugin 'BMO Chatbot'

When installing BMO Chatbot via the Community Plugins I get "Failed to install plugin 'BMO Chatbot'" after pressing install.

Running into the same issue.

Sorry, should be fixed now.
Check v2.3.1

Confirmed working for me.  Thank you for the quick fix.

Working for me, amazing quick fix. Thanks for your rapid work!


A wild "pokemon" appeared repeating itself

Expected Behavior
Pokemon should be captured not repeat itself over and over?
Actual Behavior
Pokemon should be captured not repeat itself over and over? I have to ctrl-c to kill it.
[================================        ] 80%[21:26:07] Something rustles nearby!
[21:26:07] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:07] IV [Stamina/Attack/Defense] = [15/10/2]
[21:26:10] A Wild Venonat appeared! [CP 324] [Potential 0.67]
[21:26:10] IV [Stamina/Attack/Defense] = [13/9/8]
[21:26:13] Catch Rate with normal Pokeball is low (43.22%). Throwing Razz Berry... (11 left!)
[21:26:13] Catch Rate with normal Pokeball has increased to 64.82%
[21:26:13] Using Pokeball (chance: 64.82%)... (67 left!)
[21:26:14] Captured Venonat! [CP 324] [13/9/8]
[21:26:14] Venonat has been exchanged for candy!
[21:26:19] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:19] IV [Stamina/Attack/Defense] = [15/10/2]
[================================        ] 82%[21:26:31] Something rustles nearby!
[21:26:31] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:31] IV [Stamina/Attack/Defense] = [15/10/2]
[21:26:34] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:34] IV [Stamina/Attack/Defense] = [15/10/2]
[=================================       ] 83%[21:26:41] Something rustles nearby!
[21:26:42] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:42] IV [Stamina/Attack/Defense] = [15/10/2]
[21:26:45] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:45] IV [Stamina/Attack/Defense] = [15/10/2]
[==================================      ] 85%[21:26:51] Something rustles nearby!
[21:26:51] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:51] IV [Stamina/Attack/Defense] = [15/10/2]
[21:26:54] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:26:54] IV [Stamina/Attack/Defense] = [15/10/2]
[==================================      ] 87%[21:27:01] Something rustles nearby!
[21:27:02] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:02] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:06] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:06] IV [Stamina/Attack/Defense] = [15/10/2]
[===================================     ] 88%[21:27:12] Something rustles nearby!
[21:27:13] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:13] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:16] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:16] IV [Stamina/Attack/Defense] = [15/10/2]
[====================================    ] 90%[21:27:23] Something rustles nearby!
[21:27:23] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:23] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:27] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:27] IV [Stamina/Attack/Defense] = [15/10/2]
[====================================    ] 91%[21:27:33] Something rustles nearby!
[21:27:34] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:34] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:37] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:37] IV [Stamina/Attack/Defense] = [15/10/2]
[====================================    ] 92%[21:27:45] Something rustles nearby!
[21:27:45] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:45] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:49] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:49] IV [Stamina/Attack/Defense] = [15/10/2]
[=====================================   ] 94%[21:27:56] Something rustles nearby!
[21:27:56] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:56] IV [Stamina/Attack/Defense] = [15/10/2]
[21:27:59] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:27:59] IV [Stamina/Attack/Defense] = [15/10/2]
[======================================  ] 95%[21:28:08] Something rustles nearby!
[21:28:08] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:28:08] IV [Stamina/Attack/Defense] = [15/10/2]
[21:28:12] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:28:12] IV [Stamina/Attack/Defense] = [15/10/2]
[21:28:15] Arrived at Pokestop
[21:28:17] Now at Pokestop: Shakespeare - Spinning...
[21:28:20] Loot:
[21:28:20] 50 xp
[21:28:20] - 3x Pokeball (Total: 70)
[21:28:20] PokeStop on cooldown. Time left: 4.98 minutes
[21:28:22] Found fort 1eaac6a73cb741ddb6ddb7dc1960057f.16 at distance 0.42km
[21:28:22] Need to move closer to Pokestop
[                                        ] 0%[21:28:26] Something rustles nearby!
[21:28:27] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:28:27] IV [Stamina/Attack/Defense] = [15/10/2]
[21:28:31] A Wild Eevee appeared! [CP 676] [Potential 0.6]
[21:28:31] IV [Stamina/Attack/Defense] = [15/10/2]
[21:28:33] Exiting PokemonGo Bot
Steps to Reproduce
Let bot run and eventually it'll repeat over and over.
Other Information
Dev Branch
OS:  Win10
Git Commit: 07e028292881677c06e1ded51e021d1a8cc9e68f

@ayiire Please try to update to newest dev branch by running this command: git pull

It happened again on another eevee.
[21:42:21] Captured Doduo! [CP 410] [10/12/11]
[21:42:21] Doduo has been exchanged for candy!
[21:42:32] Something rustles nearby!
[21:42:32] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:32] IV [Stamina/Attack/Defense] = [15/12/4]
[21:42:36] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:36] IV [Stamina/Attack/Defense] = [15/12/4]
[=========                               ] 23%[21:42:42] Something rustles nearby!
[21:42:42] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:42] IV [Stamina/Attack/Defense] = [15/12/4]
[21:42:45] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:45] IV [Stamina/Attack/Defense] = [15/12/4]
[===========                             ] 28%[21:42:53] Something rustles nearby!
[21:42:53] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:53] IV [Stamina/Attack/Defense] = [15/12/4]
[21:42:56] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:42:56] IV [Stamina/Attack/Defense] = [15/12/4]
[21:42:59] Something rustles nearby!
[21:42:59] A Wild Doduo appeared! [CP 10] [Potential 0.29]
[21:42:59] IV [Stamina/Attack/Defense] = [2/6/5]
[21:43:04] Using Pokeball (chance: 100.00%)... (65 left!)
[21:43:05] Captured Doduo! [CP 10] [2/6/5]
[21:43:05] Doduo has been exchanged for candy!
[============                            ] 32%[21:43:24] Something rustles nearby!
[21:43:24] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:43:24] IV [Stamina/Attack/Defense] = [15/12/4]
[21:43:28] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:43:28] IV [Stamina/Attack/Defense] = [15/12/4]
[===============                         ] 38%[21:43:37] Something rustles nearby!
[21:43:37] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:43:37] IV [Stamina/Attack/Defense] = [15/12/4]
[21:43:40] A Wild Eevee appeared! [CP 491] [Potential 0.69]
[21:43:40] IV [Stamina/Attack/Defense] = [15/12/4]
[================                        ] 42%[21:43:49] Something rustles nearby!

Just did a git pull and will try it again.
Running 9d2535001b92772c6b797183b1cf4df768806af3

@ayiire Great, let me know if the issue was resolved.

Doesn't seem like it fixed anything. It looks like eevee and magikarp has an issue, maybe because of them appearing twice with catch_above and release_below?
[21:57:56] Something rustles nearby!
[21:57:56] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:57:56] IV [Stamina/Attack/Defense] = [15/12/11]
[21:57:59] A Wild Tentacool appeared! [CP 279] [Potential 0.56]
[21:57:59] IV [Stamina/Attack/Defense] = [10/10/5]
[21:58:03] Catch Rate with normal Pokeball is low (43.22%). Throwing Razz Berry... (5 left!)
[21:58:03] Catch Rate with normal Pokeball has increased to 64.82%
[21:58:03] Using Pokeball (chance: 64.82%)... (66 left!)
[21:58:04] Captured Tentacool! [CP 279] [10/10/5]
[21:58:04] Tentacool has been exchanged for candy!
[21:58:10] A Wild Parasect appeared! [CP 845] [Potential 0.58]
[21:58:10] IV [Stamina/Attack/Defense] = [7/15/4]
[21:58:13] Catch Rate with normal Pokeball is low (14.12%). Throwing Razz Berry... (4 left!)
[21:58:13] Catch Rate with normal Pokeball has increased to 21.17%
[21:58:13] Using Ultraball (chance: 39.36%)... (5 left!)
[21:58:14] Captured Parasect! [CP 845] [7/15/4]
[21:58:19] A Wild Geodude appeared! [CP 560] [Potential 0.64]
[21:58:19] IV [Stamina/Attack/Defense] = [10/13/6]
[21:58:22] Catch Rate with normal Pokeball is low (29.94%). Throwing Razz Berry... (3 left!)
[21:58:23] Catch Rate with normal Pokeball has increased to 44.91%
[21:58:23] Using Pokeball (chance: 44.91%)... (65 left!)
[21:58:23] Captured Geodude! [CP 560] [10/13/6]
[21:58:29] A Wild Gastly appeared! [CP 441] [Potential 0.87]
[21:58:29] IV [Stamina/Attack/Defense] = [12/12/15]
[21:58:33] Catch Rate with normal Pokeball is low (26.78%). Throwing Razz Berry... (2 left!)
[21:58:33] Catch Rate with normal Pokeball has increased to 40.17%
[21:58:33] Using Pokeball (chance: 40.17%)... (64 left!)
[21:58:34] Captured Gastly! [CP 441] [12/12/15]
[21:58:39] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:58:39] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:04] Found fort 6e3e3718d5d349dca8f53a4b2d86f7ab.16 at distance 0.01km
[21:59:04] Now at Pokestop: Lioness and Her Cubs - Spinning...
[21:59:06] Loot:
[21:59:06] 50 xp
[21:59:07] - 3x Pokeball (Total: 67)
[21:59:07] PokeStop on cooldown. Time left: 4.99 minutes
[21:59:09] Found fort d226aad99cba4f899378759f73395f5b.16 at distance 0.07km
[21:59:09] Need to move closer to Pokestop
[                                        ] 0%[21:59:13] Something rustles nearby!
[21:59:14] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:14] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:17] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:17] IV [Stamina/Attack/Defense] = [15/12/11]
[                                        ] 1%[21:59:24] Something rustles nearby!
[21:59:24] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:24] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:28] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:28] IV [Stamina/Attack/Defense] = [15/12/11]
[==                                      ] 5%[21:59:35] Something rustles nearby!
[21:59:35] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:35] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:38] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:38] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:40] Something rustles nearby!
[21:59:41] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[21:59:41] IV [Stamina/Attack/Defense] = [11/8/0]
[21:59:44] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[21:59:44] IV [Stamina/Attack/Defense] = [11/8/0]
[====                                    ] 10%[21:59:50] Something rustles nearby!
[21:59:50] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:50] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:53] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[21:59:53] IV [Stamina/Attack/Defense] = [15/12/11]
[21:59:57] Something rustles nearby!
[21:59:57] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[21:59:57] IV [Stamina/Attack/Defense] = [11/8/0]
[22:00:00] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[22:00:00] IV [Stamina/Attack/Defense] = [11/8/0]
[=====                                   ] 13%[22:00:07] Something rustles nearby!
[22:00:07] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[22:00:07] IV [Stamina/Attack/Defense] = [15/12/11]
[22:00:11] A Wild Eevee appeared! [CP 77] [Potential 0.84]
[22:00:11] IV [Stamina/Attack/Defense] = [15/12/11]
[22:00:14] Something rustles nearby!
[22:00:15] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[22:00:15] IV [Stamina/Attack/Defense] = [11/8/0]
[22:00:17] A Wild Magikarp appeared! [CP 146] [Potential 0.42]
[22:00:17] IV [Stamina/Attack/Defense] = [11/8/0]
[22:00:18] Exiting PokemonGo Bot

I placed two bots on top of a eevee spawn, one with the default pokemon config example untouched and one with the pokemon config example with all catch_above_cp lines removed.
Untouched config - Eevee is found but is never caught. Looks like it just keeps appearing it while doing other things.
[22:22:45] Attempting to evolve all pokemons ...
[22:22:46] Something rustles nearby!
[22:22:46] A Wild Eevee appeared! [CP 41] [Potential 0.47]
[22:22:46] IV [Stamina/Attack/Defense] = [15/4/2]
[22:22:50] A Wild Rattata appeared! [CP 239] [Potential 0.6]
[22:22:50] IV [Stamina/Attack/Defense] = [10/15/2]
[22:22:54] Catch Rate with normal Pokeball is low (37.43%). Throwing Razz Berry... (15 left!)
[22:22:55] Catch Rate with normal Pokeball has increased to 56.14%
[22:22:55] Using Pokeball (chance: 56.14%)... (105 left!)
[22:22:56] Captured Rattata! [CP 239] [10/15/2]
[22:22:56] Rattata has been exchanged for candy!
[22:23:01] A Wild Rattata appeared! [CP 192] [Potential 0.49]
[22:23:01] IV [Stamina/Attack/Defense] = [6/4/12]
[22:23:06] Catch Rate with normal Pokeball is low (40.01%). Throwing Razz Berry... (14 left!)
[22:23:06] Catch Rate with normal Pokeball has increased to 60.02%
[22:23:06] Using Pokeball (chance: 60.02%)... (104 left!)
[22:23:07] Captured Rattata! [CP 192] [6/4/12]
[22:23:07] Rattata has been exchanged for candy!
[22:23:12] A Wild Eevee appeared! [CP 41] [Potential 0.47]
[22:23:12] IV [Stamina/Attack/Defense] = [15/4/2]
[22:23:15] Exiting PokemonGo Bot
Edited config, removed all catch_above_cp lines  - Eevee is found and caught right away
[22:22:05] Attempting to evolve all pokemons ...
[22:22:06] Something rustles nearby!
[22:22:06] A Wild Eevee appeared! [CP 375] [Potential 0.47]
[22:22:06] IV [Stamina/Attack/Defense] = [15/4/2]
[22:22:09] Catch Rate with normal Pokeball is low (32.01%). Throwing Razz Berry... (9 left!)
[22:22:10] Catch Rate with normal Pokeball has increased to 48.01%
[22:22:10] Using Pokeball (chance: 48.01%)... (39 left!)
[22:22:10] Captured Eevee! [CP 375] [15/4/2]
[22:22:11] Eevee has been exchanged for candy!
[22:22:16] A Wild Rattata appeared! [CP 269] [Potential 0.6]
[22:22:16] IV [Stamina/Attack/Defense] = [10/15/2]
[22:22:19] Catch Rate with normal Pokeball is low (35.29%). Throwing Razz Berry... (8 left!)
[22:22:19] Catch Rate with normal Pokeball has increased to 52.93%
[22:22:19] Using Pokeball (chance: 52.93%)... (38 left!)
[22:22:20] Captured Rattata! [CP 269] [10/15/2]
[22:22:20] Rattata has been exchanged for candy!

I too had this issue, removing the extra magikarp and eevee lines resolved the issue.

Also getting this bug on 97658283f37db827af940f5d74146346ccfcdf06

Try removing the "catch above" lines for those particular pokemon

Please upgrade to the latest dev branch by running this command:
git reset --hard
git pull -f

Then run this command:
pip install --upgrade -r requirements.txt
If issue persists, open a new issue.
/closed


system cannot find file specified

Can you send debug log files?
Run the same command but this time add -ll DEBUG right after anime and before dl.


Sequence issue with --x-packages-root and --x-buildtrees-root

Describe the bug
In my company's development enviroment, I cann't set inherited permission. So only one user can use /XXXXX/vcpkg/packages.
And I found --x-packages-root and --x-buildtrees-root and set them in the CMakeLists.txt:
set(VCPKG_INSTALL_OPTIONS "--x-buildtrees-root=/tmp/$ENV{USER}/buildtrees --x-packages-root=/tmp/$ENV{USER}/packages")

This won't work and says no permission with  /XXXXX/vcpkg/packages/vcpkg-cmake-config/XXXXX
But this one works:
set(VCPKG_INSTALL_OPTIONS "--x-packages-root=/tmp/$ENV{USER}/packages --x-buildtrees-root=/tmp/$ENV{USER}/buildtrees ")

Just put --x-packages-root in front.
Is this a bug?
Environment

OS: CentOS 7.6
Compiler: GCC 11

Log
-- Running vcpkg install
Detecting compiler hash for triplet x64-linux...
The following packages will be built and installed:
    benchmark[core]:x64-linux -> 1.6.1 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/benchmark/0b248363b29630caf5f45a42d2d82c12b29979e1
    fmt[core]:x64-linux -> 8.1.1#1 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/fmt/602d9743b7957c9e82a06d0e81d58637c6df5222
  * gflags[core]:x64-linux -> 2.2.2#5 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/gflags/7c1fe35b0a7e9b5b9f58b16c6cc08caa108fb945
    glog[core]:x64-linux -> 0.4.0 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/glog/ce92e93c37ae6faf8ff82f5ef14a66b8977ed5e7
    gtest[core]:x64-linux -> 1.11.0#5 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/gtest/9731f44f8b0ecbc67eafccd0440700357d2cdfc4
    nlohmann-json[core]:x64-linux -> 3.10.5#3 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/nlohmann-json/91f188e19b106e7d316de593e98f3319f8f5ec25
    spdlog[core]:x64-linux -> 1.10.0#1 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/spdlog/3256ea88cc375fda2f977a2eb18435e23d498572
  * vcpkg-cmake[core]:x64-linux -> 2022-05-10 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/vcpkg-cmake/e8db2f70aa8b584aac932fcff65d91bf52d57731
    vcpkg-cmake-config[core]:x64-linux -> 2022-02-06 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/vcpkg-cmake-config/24dc7dfc704406e9f745f033643dc25f56e4ca18
    yaml-cpp[core]:x64-linux -> 0.7.0#1 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/yaml-cpp/a79d9c026aefee69214dbd39294da49398b07c7b
    zlib[core]:x64-linux -> 1.2.12#1 -- /tmp/USERNAME/buildtrees --x-packages-root=/tmp/USERNAME/packages/versioning_/versions/zlib/ecc4c064d4911faf12d8bf5fd6bcd5c556d89774
Additional packages (*) will be modified to complete this operation.
Failure to remove_all("/TOOLPATH/tools/vcpkg/packages/vcpkg-cmake-config_x64-linux") due to file "/TOOLPATH/vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake": Permission denied
-- Running vcpkg install - failed
CMake Error at /TOOLPATH/vcpkg/scripts/buildsystems/vcpkg.cmake:858 (message):
  vcpkg install failed.  See logs for more information:
  /meda_home/USERNAME/Projects/aiMask/cmake-build-debug/vcpkg-manifest-install.log

VCPKG_INSTALL_OPTIONS should be a list not a space separated string.

@Neumann-A Thank you for your reply. So this is by design, right? Could you or someone else please add it to the document that this option is a cmake lis? @Adela0814

So this is by design, right?

I still wonder why you assumed that it is a string. CMake convention typically is that plurals like VCPKG_INSTALL_OPTIONS, VCPKG_OVERLAY_TRIPLETS, VCPKG_OVERLAY_PORTS, <LIBNAME>_LIBRARIES and <LIBNAME>_INCLUDE_DIRS are always to be treated as lists. Only flags coming (possibly) from the environment like CMAKE_CXX_FLAGS (which is initialized by ENV{CXXFLAGS}) are to be treated as plain strings.

@Neumann-A You are right. I'm new to CMake. These options come from command line so I thought they work as command line. And exchange their position makes it work.


Search for text with accents

We'd like to be able to find people who have accents in their names, or bills that have accents in their names, without having to type the accented characters. For example, searching cardenas should find CÁRDENAS, Tony. I think the new version of Mongo we're now using makes this possible if it is feasible to include this feature in the API:
{
  $text:
    {
      $search: <string>,
      $language: <string>,
      $caseSensitive: <boolean>,
      $diacriticSensitive: <boolean>
    }
}

but what if people put in the effort to include an accent? Should we just ignore it and make it insensitive to accents?

In the futurem we might want to be the case if include a diacritic in the search a check box appears that allows you choose to match exactly or not.   I agree with Adam that the best default is probably the insensitive one as much of the older material in the db does not include them.

Isn't the default for diacriticSensitivity false? I thought we already did this.

Separately, searches with diacritics currently crash @lukesonnet I thought you fixed something with this at one point. Try searching Cárdenas and watch as we spool endlessly.

Looks like 'Cardenas' finds nobody.
db.voteview_members.findOne({bioname: /cardenas/i}) finds nobody as well.
I'm not sure what query is actually run by the api though?
On Sat, Jan 7, 2017 at 12:41 PM, Aaron Rudkin<EMAIL_ADDRESS>wrote:

Separately, searches with diacritics currently crash @lukesonnet
https://github.com/lukesonnet I thought you fixed something with this
at one point. Try searching Cárdenas and watch as we spool endlessly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JeffreyBLewis/WebVoteView/issues/96#issuecomment-271108803,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS6Qi161CVLO3sMHkValkROrq3iu34bsks5rP_h_gaJpZM4LcYGT
.

The API uses a regex by default, like your search, if you only give a single name or if you specify as Last, First--intending to get an exact match. If you search Tony Cardenas you get the result you'd expect because it uses the fulltext index which is already insensitive to diacritics.
Summary of results at present:

Cárdenas gives us Tony Cárdenas (uses regex) ✔
Cardenas gives us no results (regex) ❌
Tony Cardenas gives us Tony Cárdenas (uses fulltext) ✔
Cardenas, Tony gives us no results (regex) ❌
Cárdenas, Tony gives us Tony Cárdenas (regex) ✔

Looking online it seems like there might be some issues associated with this exact problem with a regex. The diacriticSensitive thing above doesn't seem to apply apply to regex searches (and it defaults to false, so that was our desired behaviour anyway).
Can we punt on this until later?

I don't have a good understanding of all the considerations involved in the search, so this may not be well advised. At this time bioname is now text-indexed so db.voteview_members.find({$text: {$search: 'cardenas'}}) (no accent, no capitalization) does find him. I wonder if it might be reasonable for right now to use the text search instead of regex in this case?

I fixed this.
So the basic issue is that with fulltext, you get diacritic insensitivity, but not partial word matches (i.e. search for clinto and get no results), while with regex you get partial word matches, but it's slow, and you don't get diacritic insensitivity.
I solved it by searching with fulltext first, and if there are no results, trying the same search as a regex. It means failing searches will be modestly slower, but we will have better behaviour. Yay!


fix #117093 update Filter on Type indicator after 'list.toggleFilterOnType' command

This PR fixes #117093
See animated GIF in issue for how to reproduce the issue fixed by this PR.

Works great, thanks! 🍻


Also add Create.* in the one_two_summary checker

Example: https://bugzilla.mozilla.org/show_bug.cgi?id=1532253

Coverage remained the same at 29.619% when pulling d42d710a60a13fe1a98f16fcb09bd7e32b02f2cc on sylvestre-patch-3 into 2de3fe193117ea003e9a680ff9473eefe0b22ea8 on master.


FALCON-2061 Falcon CLI shows hadoop classpath loading info in the console

+1

@bvellanki falcon-config.sh is used by the service-start in addition to falcon cli client. won't the Hadoop libs needed for the server start?

I see you are making the change in the client APPTYPE.
+1

+1


Improve error message

With latest master, connecting on a server with a non running RDP server, I get this:
$ ./output-ogon/client/X11/xfreerdp /v:<IP_ADDRESS> /u:hardening /p:XXXX /rfx /bpp:32
[14:22:45:185] [18813:18814] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[14:22:45:202] [18813:18814] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Relais brisé (pipe)
[14:22:45:202] [18813:18814] [ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[14:22:45:202] [18813:18814] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[14:22:45:202] [18813:18814] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure

Except by looking at the code, I guess nobody can guess that the error is a connection refused ! There must be a way to improve error message, at least for such common cases.

Maybe this should be a separate issue, but it may make sense to do at the same time, so I'll put it here: it would be great to document the exit codes from the application (xfreerdp, specifically). I work on a system that invokes it programmatically so exit codes would be great for distinguishing different types of failure.


Update README.md

Describe the change
Fix ActiveRecord code example typo.
Why are we doing this?
Better for newbs
Benefits
Less confusion
Drawbacks
It will take 4 seconds to merge.
Requirements
Put an X between brackets on each line if you have done the item:
[] Tests written & passing locally?
[] Code style checked?
[] Rebased with master branch?
[] Documentation updated?

Coverage increased (+3.4%) to 77.677% when pulling f1cd9430cb6f43dbc3f10f59340183f294d0e31a on bradgessler:patch-2 into 3903f59d6d38dcde85b0eace4197745b74bd379d on piotrmurach:master.

Hi Brad,
Thanks for contributing!
Correct me if I'm wrong but quickly checking the example, I think the change should be event.to to read the state to transition to from the event object?

Yeah, when I opened this ticket that callback wasn't getting an Event object; instead it was getting a symbol. I'm trying to recreate now and I can't, so I'll close this issue, spend some more time with it, and open it if I can recreate.

As things stand the docs are incorrect. It probably should say event.to as that's what gets yielded to the block, a TransitionEvent value object. If that's not the case then that's defo a bug. So if you have a minute to fix the docs I would appreciate it.

I'll have a look later this evening.
Unrelated: I've got a pretty interesting approach to state machines in Rails in the works that I hope to make a gem. After looking at about 10 state machine libraries for Ruby, this one was by far the best in terms of architecture, so it will be the underlying lib for this gem if I get it to a more polished state.
In less words: thank you for this lib, you did some really great work.


Change MP retry settings and add logging on failures

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Sample output with a fake command -

Running docker build
DockerException: The docker command executed was fake test command with localhost:32932/buildrunner-mp-build-container-multi-platform-main-6.ib141cd.m1689783203-1695059656-linux-arm64.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured). in buildrunner.docker.multiplatform_image_builder.MultiplatformImageBuilder._build_single_image, retrying in 5 seconds...
DockerException: The docker command executed was fake test command with localhost:32932/buildrunner-mp-build-container-multi-platform-main-6.ib141cd.m1689783203-1695059656-linux-amd64.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured). in buildrunner.docker.multiplatform_image_builder.MultiplatformImageBuilder._build_single_image, retrying in 5 seconds...
DockerException: The docker command executed was fake test command with localhost:32932/buildrunner-mp-build-container-multi-platform-main-6.ib141cd.m1689783203-1695059656-linux-arm64.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured). in buildrunner.docker.multiplatform_image_builder.MultiplatformImageBuilder._build_single_image, retrying in 5 seconds...
DockerException: The docker command executed was fake test command with localhost:32932/buildrunner-mp-build-container-multi-platform-main-6.ib141cd.m1689783203-1695059656-linux-amd64.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured). in buildrunner.docker.multiplatform_image_builder.MultiplatformImageBuilder._build_single_image, retrying in 5 seconds...


Namespace issues with latest conda-forge package

We have updated to the lastest version on conda-forge and it fails to import.
>>> import hypothesis
>>> dir(hypothesis)
['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']

The pip version for comparison
>>> import hypothesis
>>> dir(hypothesis)
['HealthCheck', 'Phase', 'Verbosity', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '__version_info__', '_settings', 'assume', 'configuration', 'control', 'core', 'errors', 'event', 'example', 'executors', 'find', 'given', 'infer', 'internal', 'note', 'reject', 'reporting', 'searchstrategy', 'seed', 'settings', 'statistics', 'strategies', 'unlimited', 'utils', 'vendor', 'version']

I can confirm this, also related to this comment..

Can also confirm that this is broken.
Most annoying is that it blocks pytest from running too, since a pytestplugin is registered and not available.
ModuleNotFoundError: No module named 'hypothesis.extra.pytestplugin'

I guess this was a bad idea to merge it anyway. Me bad. Any ideas what will be the best action now?

I think the simpliest solution will be to increment the build number and push an update as soon as possible.

I'm removing the bad package for now. I cannot look into fixing the latest version at the moment but I'll try to fix this next week.

Thanks @ocefpaf ! The new version is simply broken. I'll try to figure the solution myself as well. The package is simply convoluted and non-standard. I wonder if we should involve some of the authors into this effort. Sorry for being trigger happy with the merge. I forgot that I had problems with building new version and when I have returned to it I did not check the history and when new release merged into PR without problems I just merged ...

No problem.


Update dashboard inclusion criteria

Resolves: #272
Updates the criteria for including variants in dashboard and recommended lists
Will require a re-importing of ClinVar, as well as re-generation of the Dashboard lists.

Resolves #260
Resolves #271

The priority lists to run (known problems) are:

CNTNAP2 | https://gnomad.broadinstitute.org/gene/ENSG00000174469
ABCG8 | https://gnomad.broadinstitute.org/gene/ENSG00000143921
DARS2 | https://gnomad.broadinstitute.org/gene/ENSG00000117593
CCDC40 | https://gnomad.broadinstitute.org/gene/ENSG00000141519

Running and uploading these on a local will fix the known issues, and allow for some spot checking that things are working as expected, before the big reload.


Development Dashboard, Laravel Web Console

For things other than bugs:
Created the Development Dashboard for developers. You can access it in admin panel -> settings.
Added the Laravel Web Console package to the Development Dashboard

@jitendra-webkul do you have any news on it? May I help you? Do you need in something?

I would like to inform you, that this package has been added to the Laravel news official website!

@alkhachatryan thanks


sel with method 'nearest' fails with AssertionError

The following fails
def test_sel_nearest():
    """Test `sel` with method='nearest'"""
    # create test data
    times = pd.date_range('2000-01-01', periods=4)
    foo = xr.DataArray([1,2,3,4], coords=dict(time=times), dims='time')

    # works
    expected = foo.sel(time='2000-01-01')

    # fails
    assert foo.sel(time='2000-01-01', method='nearest') == expected

with an AssertionError in xarray/core/variable.py:
C:\Users\uuu\AppData\Local\Continuum\Miniconda2\lib\site-packages\xarray\core\dataarray.pyc in sel(self, method, tolerance, **indexers)
    623             self, indexers, method=method, tolerance=tolerance
    624         )
--> 625         return self.isel(**pos_indexers)._replace_indexes(new_indexes)
    626
    627     def isel_points(self, dim='points', **indexers):

C:\Users\uuu\AppData\Local\Continuum\Miniconda2\lib\site-packages\xarray\core\dataarray.pyc in isel(self, **indexers)
    608         DataArray.sel
    609         """
--> 610         ds = self._to_temp_dataset().isel(**indexers)
    611         return self._from_temp_dataset(ds)
    612

C:\Users\uuu\AppData\Local\Continuum\Miniconda2\lib\site-packages\xarray\core\dataset.pyc in isel(self, **indexers)
    910         for name, var in iteritems(self._variables):
    911             var_indexers = dict((k, v) for k, v in indexers if k in var.dims)
--> 912             variables[name] = var.isel(**var_indexers)
    913         return self._replace_vars_and_dims(variables)
    914

C:\Users\uuu\AppData\Local\Continuum\Miniconda2\lib\site-packages\xarray\core\variable.pyc in isel(self, **indexers)
    539             if dim in indexers:
    540                 key[i] = indexers[dim]
--> 541         return self[tuple(key)]
    542
    543     def _shift_one_dim(self, dim, count):

C:\Users\uuu\AppData\Local\Continuum\Miniconda2\lib\site-packages\xarray\core\variable.pyc in __getitem__(self, key)
    377         # orthogonal indexing should ensure the dimensionality is consistent
    378         if hasattr(values, 'ndim'):
--> 379             assert values.ndim == len(dims), (values.ndim, len(dims))
    380         else:
    381             assert len(dims) == 0, len(dims)

AssertionError: (0, 1)

It does not matter which type the dimension has that is indexed:
def test_sel_nearest_int():
    """Test `sel` with method='nearest'"""
    bar = xr.DataArray([1, 2, 3, 4], coords=dict(dummy=range(4)), dims='dummy')

    # works
    expected = bar.sel(dummy=3)

    # fails
    assert bar.sel(dummy=3, method='nearest') == expected

This is on Miniconda for Windows 64 bit with conda-forge and IOOS builds and

xarray=0.8.2
pandas=0.19.1
numpy=1.11.2

Why might this be? Am I doing something wrong?

Sorry for the delay getting back to you.
I'm having trouble reproducing this on OS X. I assume you're running Python 2? Maybe this is a Windows thing? I'm a little baffled here.
One thing that would be very helpful is a pull request with a test case that fails our continuous integration tests (which include testing Windows).

Yes, this is Python 2. :flushed: Let's see what Travis & Co say.

Hi j08lue,
Just wondering if you ever figured this out? I'm having exactly the same issue on 64-bit Windows 10, using WinPython 2.7 and the following:
xarray 0.9.1
Pandas 0.19.1
Numpy 1.11.2
If I've understood the comments here  correctly, it sounds as though others are struggling to reproduce the problem - even on Windows - so presumably it's something strange with our installations?

@JamesSample Thanks for restoring my credibility a bit here... But, no, I did not figure this out yet.
Appveyor apparently does not have the combination Windows 64 bit + Python 2.7 (https://ci.appveyor.com/project/jhamman/xarray-injyf/build/1.0.659), maybe that is why it does not reproduce the error?

@j08lue Thanks for your response - that's interesting. I'm not familiar with Appveyor and hadn't realised what builds were being used.
As a test, I've just installed 32-bit WinPython 2.7 and xarray (still on my 64-bit Windows 10 machine) and everything works fine, so this does appear to be a specific issue with xarray and 64-bit Python 2.7.

@JamesSample excellent work confirming the limited scope.
I am quite sure that the issue is with this line: https://github.com/pydata/xarray/blob/v0.9.1/xarray/core/variable.py#L375-L376
        dims = tuple(dim for k, dim in zip(key, self.dims)
                     if not isinstance(k, (int, np.integer)))

When you run the test case I added in #1184, you will see that, inside __getitem__, key is a tuple with an empty array inside (key = (np.array(0, dtype=np.int64),)).
With that value,
isinstance(key[0], (int, np.integer))

is False on 64 bit Windows and so dims=('time',), which has length 1.
But values = self._indexable_data[key] gives a zero-dimension array, such that values.ndim == 0...
I am unable to tell which of the two sides of the assertion expression is unexpected...

Sounds like we need to add 64-bit Python 2.7 on Windows to our build matrix!
And also a more robust check for integer types in variable.py.

I've just run into the same issue with the AssertionError on Windows 7 x64 with Python v2.7, netcdf4 1.2.4, numpy 1.11.3, pandas 0.19.2, xarray 0.8.2 and 0.9.1 (all packages from Anaconda repo).
Downgrading pandas to 0.18.1 solved the problem for me.

Just for reference (I don't develop on Windows), do we need to test both 32 and 64 bit Windows installs? It's not a big deal to add another configuration to the build matrix, but currently we only test Python 2.7 on 32-bit and 3.6 on 64-bit: https://github.com/pydata/xarray/blob/v0.9.1/appveyor.yml


Audible artifacts on macOS when blocksize=0

The sound is a little bit broken when using sounddevice to play following wav. Here is the code sample.
import io
from urllib.request import urlopen

import sounddevice as sd
import soundfile as sf
DEFAULT_SOURCE = 'http://www.voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav'
data, sample_rate = sf.read(io.BytesIO(urlopen(DEFAULT_SOURCE).read()), dtype='float32')
sd.play(data, sample_rate)
sd.wait()

While at the same time, it is ok with pyaudio
import pyaudio
import wave
import sys
import io
from urllib.request import urlopen

CHUNK = 1024
DEFAULT_SOURCE = 'http://www.voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav'
f = io.BytesIO(urlopen(DEFAULT_SOURCE).read())

wf = wave.open(f, 'rb')
p = pyaudio.PyAudio()
stream = p.open(format=p.get_format_from_width(wf.getsampwidth()),
                channels=wf.getnchannels(),
                rate=wf.getframerate(),
                output=True)

data = wf.readframes(wf.getnframes())

while data:
    stream.write(data)
    data = wf.readframes(CHUNK)

stream.stop_stream()
stream.close()

p.terminate()

I prefer to use sounddevice as the code is concise compared with pyaudio. Hope you can pay some time to investigate this issue. Thanks.

Thanks for the report!
I'm not sure if I can reproduce your problem on Linux (I don't have access to a Mac). I don't hear a difference between the two versions.
Can you try to describe with a bit more details what you mean by "a little bit blur"?
Please note that the recording you are using has quite some noise in it, and it doesn't start smoothly. Did you try it with different files?
It's not related to your problem, but the while loop in your second code example is superfluous.
The first wf.readframes() call already reads the whole file, the second one returns no data (because the whole file has been read already). Regardless what CHUNK is, which is undefined, BTW.
The two code examples are not exactly equivalent, you could try a more literal port of your PyAudio example to sounddevice:
import sounddevice as sd
import wave
import io
from urllib.request import urlopen

DEFAULT_SOURCE = 'http://www.voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav'
f = io.BytesIO(urlopen(DEFAULT_SOURCE).read())
wf = wave.open(f, 'rb')

dtype = {1: 'int8', 2: 'int16', 3: 'int24', 4: 'float32'}[wf.getsampwidth()]
stream = sd.RawOutputStream(
    dtype=dtype,
    channels=wf.getnchannels(),
    samplerate=wf.getframerate())
data = wf.readframes(wf.getnframes())
with stream:
    stream.write(data)

Do you hear the same problem with this code example?

Hi @mgeier, thanks for your reply. I have update my sample code to set CHUNK = 1024. The sound was a little bit broken like you were listening to a radio channel whose signal is weak (not blur, my fault).
I guess I have figured out the root cause. It seems like it is default value of blocksize's fault. When I specific either blocksize = 1024 or latency=0.2 when calling sd.play, the issue is gone.
I didn't investigate how sounddevice decide those default value internally, but I guess the blocksize should not be too small.

I have update my sample code to set CHUNK = 1024.

OK, now CHUNK is defined, but the while loop is still useless.

It seems like it is default value of blocksize's fault.

Yes, that's possible.
That would also explain why it works in PyAudio. PyAudio overrides the default value with frames_per_buffer=1024, while the sounddevice module uses blocksize=0 as default (as does the PortAudio C API).
You should check this by extending your first code example a bit:
...
sd.play(data, sample_rate)
status = sd.wait()
if status:
    print(status)

Does this print anything when you run it?

Hi, I have modified the example but nothing is printed.

... but you still hear the broken sound?

while True:
    sd.play(data, sample_rate)
    status = sd.wait()
    if status:
        print(status)

Yes. I execute it in while True: loop and nothing is printed. But I can still hear the broken sound.  I can just set blocksize to 1024, it works well.

OK, thanks. This seems to be a PortAudio issue then. If nothing is printed, there shouldn't be audible problems.
Anyway, good to know that it works well if you provide blocksize=1024.
Just for the record, could you please mention what kind of hardware you are using?
Built-in sound card/loudspeakers?

Build-in sound card with ear phone on a MacBook Pro (Sierra)

The example file you were using has a sampling rate of 8000 Hz and the sounddevice stream is started with this same rate.
Did you try other files with different sampling rates (e.g. 44100, 48000)?
At which sampling rates does the problem occur?

I also try this one:  https://www2.cs.uic.edu/~i101/SoundFiles/StarWars3.wav
Also have same issue.
We are working on VoIP quality related task, so we only use 8000Hz and 16000Hz audio sample.

Thanks for the update. Could you please also try a file with a slightly higher sampling rate (e.g. 44100, 48000)?

@link89 Any news?


Global search did not work

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:  1.87.2
OS Version:  win 11

Steps to Reproduce:

As snapshot attached, results of  'handleConfirm' are supposed to be more than just 2.

### Tasks

Did you intend to paste a screenshot?
/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


How to uninstall?

I had a problem with some dependency, wanted to revert back to my original .vimrc file (uninstall) but could not find it.
According to this it should be called .vimrc.old somewhere?
https://raw.github.com/spf13/spf13-vim/master/bootstrap.sh
In the end had to replace .vimrc in spf13-vim... with a basic version I found here:
http://vim.wikia.com/wiki/Example_vimrc

On Thu, Mar 1, 2012 at 3:11 AM, Frank Mullenger <
<EMAIL_ADDRESS>
wrote:

I had a problem with some dependency, wanted to revert back to my original
.vimrc file (uninstall) but could not find it.
According to this it should be called .vimrc.old somewhere?
https://raw.github.com/spf13/spf13-vim/master/bootstrap.sh

The bootstrap file is very straightforward. It simply makes a copy of the
critical vim files with the extension .old. Not sure why you can't find it.
What are you doing to look for it?

In the end had to replace .vimrc in spf13-vim... with a basic version I
found here:
http://vim.wikia.com/wiki/Example_vimrc

This is also the outdated version of spf13-vim. The current version (3.0)
is significantly better (though the install routine is nearly identical).

Reply to this email directly or view it on GitHub:
https://github.com/spf13/spf13-vim/issues/57

I thought I could find the *.old files in the ~/.vim and ~/.vimrc folders but they have been changed into symbolic links?
I used something like this command to look for them:
find ~/ -name *.old


Refactor: Use Enum Values for Global Token Access

Overview
This pull request optimizes global token retrieval by replacing switch case blocks with direct access to enum values which:

Improves code readability and simplicity
Eliminates computational overhead from switch case lookups
Enhances runtime performance for token retrieval
Aligns with Kotlin practices for enum usage

Changes

Added property values and assignments to Enum classes for all Global Tokens
Refactored lookup methods to return token values except for sharedColor
Refactored sharedColors function to utilize SharedColorsTokens lookup to map to SharedColorSets properties
Added deprecation annotation to notify users that direct enum value access is available

Validations

Automated tests were run
Manual testing that compared the Design Token Activity in the feature branch with the master branch to make sure there are no visual changes

Pull request checklist
This PR has considered:

[x] Light and Dark appearances
[x] Automated Tests
[x] Documentation and demo app examples
[x] VoiceOver and Keyboard Accessibility
[x] Internationalization and RTL layouts
[x] Size classes and window sizes (notched devices, multitasking, different window sizes, etc)

@mishramayank1 thank you for approving this pull request. It looks like the merge is stuck because of the fluentui-android-build workflow status is waiting to be reported; however, the workflow is disabled. Is there something I need to do to get around this?

Hey @williamado
Thanks for the changes. We will merge the changes soon. Probably first week of Jan.


AWS: Managed resources appear to be deleted and recreated for no reason

What happened?

I have been going through the Stacks Guide using AWS, and I noticed a strange behavior. I am not sure exactly what causes it.
I started going through the guide a few days ago, using a Crossplane control cluster running on my MacOS laptop in Docker Kubernetes.
Today, I noticed that the EKS cluster and MySQL instance I had been working with had been deleted and recreated in Crossplane. It appears to have happened around the time I got into the office and connected to the network.
I have been closing my laptop and moving around the office throughout the day to go to meetings. Recently, I locked it and took a break for a bit, during which the laptop presumably went to sleep. When I came back and checked on my managed resources, the EKS clusters I had been managing with Crossplane had just been deleted and recreated, about at the time when I would have been logging into the laptop.
The claims have been around the whole time, and were not deleted and recreated.
The first time I noticed this, the EKS cluster was active. The second time I had two EKS clusters, and I believe one was active and one was creating.
I am creating this in the main crossplane repository in case it affects other cloud provider stacks or some shared code. I have not checked.
How can we reproduce it?

I am not entirely sure yet what the minimum reproduction steps are, but I imagine that it involves using the AWS Stack to manage an EKS cluster or MySQL instance using a Crossplane control cluster on a laptop, then letting the laptop sleep, then coming back to it. I was following the Crossplane Stacks Guide using AWS, and had created a wordpress instance.
What environment did it happen in?
Crossplane version: helm alpha
AWS Stack version:  crossplane/stack-aws:v0.1.0
Mac OS
Kubernetes from Docker Desktop for Mac OS

I did check the logs of the AWS infrastructure stack pod, but I did not see anything other than messages declaring that it was reconciling the managed resources.

The claims have been around the whole time, and were not deleted and recreated.

Is this also true of the managed resources bound to said claims?

Is this also true of the managed resources bound to said claims?

No. The managed resources seemed to have been deleted and recreated on the Crossplane side, and seemed to have been deleted and recreated on the AWS side as well.


Welcome!

yeah good its awesome created on 30 january, 2023.
Yes yes!

@jwklong Star this Repository


Support detecting format for compressed parquet files file.parquet.gz

@esevastyanov : Can you please take a look ?
The relevant code to infer format would be in connectors.go
+cc @k-anshul : For any help.

As for the applying a compression while writing to a parquet file:

Compressing the entire file (a) does not work because reading Parquet files requires jumping around to random locations, which is not possible in compressed files, and (b) has essentially no effect because the Parquet files are already compressed internally, and compressing the file twice will not accomplish much.

https://github.com/duckdb/duckdb/issues/2715#issuecomment-984431966


[$500] mWeb/Chrome - Room-Scrolling down the WS list & tapping back button, page gets scrolled up

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.19
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:

Go to https://staging.new.expensify.com/
Tap fab
Tab start chat
Tap Room
Tap Workspace
Scroll down the workspace list
Tap back button
Launch app
Perform step 2 -- step 6

Expected Result:
Scroll down the Workspace list and tapping back button, page must not get scrolled up and user must be directed to previous page in mweb.
When user scrolls down the workspace list, it must not get scrolled up, the list must remain as it is in Android
Actual Result:
Scroll down the Workspace list and tapping back button, page gets scrolled up, in create room WS dropdown page in mweb. In Android, when user scroll down the workspace list, it automatically gets scrolled up.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/244ec908-8777-4b49-9415-bbabf38c4ffc
https://github.com/Expensify/App/assets/115492554/41a58ad3-0c92-414f-90d5-6ba718f930c4

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010479b8cabd48312c
Upwork Job ID:<PHONE_NUMBER>067364864
Last Price Increase: 2023-12-29

Proposal
Please re-state the problem that we are trying to solve in this issue.
When we press back while the workspace list is shown on the new room page, the list will scroll to the top, on the web.
What is the root cause of that problem?
The workspace list is just a modal (ValuePicker).
https://github.com/Expensify/App/blob/4a7014b980c6dc50cab671525ba017ceec5a8bdd/src/components/ValuePicker/index.js#L70-L92
On native, pressing back will close the modal, but when we press back on the web, we try to navigate back to the previous route history, that is the New Chat tab. So the modal is still showing, but the tab changed to Chat (you can notice the URL change).
What changes do you think we should make in order to solve the problem?

Hide the modal when the tab is blurred (out of focus)
https://github.com/Expensify/App/blob/4a7014b980c6dc50cab671525ba017ceec5a8bdd/src/components/ValuePicker/index.js#L55-L57
useFocusEffect(useCallback(() => hidePickerModal, []));

What alternative solutions did you explore? (Optional)
Replace ValuePicker usage with a react navigation screen.

What is the result with your solution? @bernhardoj
This is what I got.
https://github.com/Expensify/App/assets/102477862/db357929-c2fd-43a0-a564-7de08a11cf4e
With the suggested change, the list scrolls up on visiting workspace selection modal and device back button takes back to the Chat tab.
I think the expected result should not have the automatic scrolling and back button should send back to the Room tab.

@c3024 yep, I did mention it in the proposal

On native, pressing back will close the modal, but when we press back on the web, we try to navigate back to the previous route history, that is the New Chat tab.

That's why I put the alternative solution.

the list scrolls up on visiting workspace selection modal

Can't reproduce this one.

@c3024 is there a solution here that will work?

No, let's see if we can get a better proposal.

Actually, I am not able to reproduce this any longer, looks like it's fixed.


Address entity or Address?

When adding companies in a network graph, i can add 2 kinds of Address, one accepts Address entities, the other strings. There's no distinction between them.

https://github.com/alephdata/aleph/issues/2254


Burst Multiple cache using cacheBusterNotifier

Hello Devs,
Is it possible to burst multiple cache using cacheBusterNotifier.
I'm using this to burst single cache
  @CacheBuster({
    cacheBusterNotifier: cacheBuster$
  })

I know there is one another way to burst multiple cache by calling method.
burstCache(){
 cacheBuster1$.next();
 cacheBuster2$.next();
}

It will be helpful . if we can pass the array of subject to cacheBusterNotifier.
something like this
  @CacheBuster({
    cacheBusterNotifier: [cacheBuster1$,cacheBuster2$]
  })

I'm not sure its possible with the decorators.
if I missed something. please suggest some other possible ways to do cache bursting.
Thank you so much for this library

@saurabh47 This has been asked before and right now there isn't a way. You can of course create a common Subject and subscribe other subjects to it. Similar to your burstCache() method.
Something like:
 @CacheBuster({
    cacheBusterNotifier: commonCacheBuster$
  })

And then have other cacheBusterObservers subscribe to it like commonCacheBuster$.subscribe(event=>specificCacheBuster.next()),commonCacheBuster$.subscribe(event=>specificCacheBuster2.next()) and etc..
THen use those like:
@Cacheable(
{
   cacheBusterObserver: specificCacheBuster2
}
)

Thanks @angelnikolov


allow React >=0.13.0-beta.1

Just like in react-hot-loader to be able to use 0.13 features on project right now w/o peerDependencies hell. Looks like everything is working fine, API is backwards compatible.

Good point. Can you verify that this includes recently released v0.13.0-rc1? If not, can  you please make sure examples work with it, and if they do, add another >= separately?

>=0.13.0-beta.1 includes 0.13.0-rc1 as well. all examples are working fine for me, but not the react-router (https://github.com/rackt/react-router/issues/638) :)


eve support datastore https certs

Signed-off-by: Naiming Shen<EMAIL_ADDRESS>
support for datastore cert chain from user configuration
if the ds is local App based, skip verification for server cert

Writing the cert to the ShareCertDirName means that other comunication such as other downloads will also trust the added cert, and here we just want to allow it for a particular download using that datastore.
Thus I think it is a lot safer to use the pattern which the zedcloud package uses, where we have a GetTlsConfig which loads certificates to get a tlsconfig struct, then this is used to form a transport and the transport is used to client := &http.Client{Transport: transport}
Here we have a ep.hClient which can be modified to have a particular TlsConfig with the specified certificate.
Alternatively, you can add an argument to httpClientSrcIP() to takes an optional certificate to use to create the TlsConfig. That ensures that the added cert only applies to this particular http client.
Also, presumably we should do this for sftp and the other transports; we have the same approach for all that we create a client with a source IP hence we should be able to specify the TlsConfig for all of them as well.

Sure. I'll make the cert specific to the datastore attached for downloading. the sftp is not http/https related. we can have a separate story on that

@naiming-zededa as I can see, we should also modify url for oci transport as well as sftp, because we split it https://github.com/lf-edge/eve/blob/cf9ed6e592d6516e356e40f7927d01f130fe1870/pkg/pillar/cmd/downloader/syncop.go#L90
Seems, something like should work
diff --git a/pkg/pillar/zedcloud/lookupproxy.go b/pkg/pillar/zedcloud/lookupproxy.go
index 03a75f6b6..59500f5e6 100644
--- a/pkg/pillar/zedcloud/lookupproxy.go
+++ b/pkg/pillar/zedcloud/lookupproxy.go
@@ -131,9 +131,10 @@ func IntfLookupProxyCfg(log *base.LogObject, status *types.DeviceNetworkStatus,
        // if download URL has "http://" or "https://" then no change here regardless of proxy
        // if there is proxy on this intf, treat empty url scheme as for https or http but prefer https,
        // replace the passed-in download-url scheme "docker://" and maybe "sftp://" later, to https
-       // XXX for sftp, currently the FQDN can not have scheme attached, but url.Parse will fail without it
-       if trType == zedUpload.SyncSftpTr && !strings.Contains(downloadURL, "://") {
-               downloadURL = "sftp://" + downloadURL
+       // XXX for sftp and oci, currently the FQDN can not have scheme attached, but url.Parse will fail without it
+       if (trType == zedUpload.SyncSftpTr || trType == zedUpload.SyncOCIRegistryTr) &&
+               !strings.Contains(downloadURL, "://") {
+               downloadURL = fmt.Sprintf("%s://%s", trType, downloadURL)
        }
        passURL, err := url.Parse(downloadURL)
        if err != nil {

@naiming-zededa as I can see, we should also modify url for oci transport as well as sftp, because we split it
https://github.com/lf-edge/eve/blob/cf9ed6e592d6516e356e40f7927d01f130fe1870/pkg/pillar/cmd/downloader/syncop.go#L90
Seems, something like should work
diff --git a/pkg/pillar/zedcloud/lookupproxy.go b/pkg/pillar/zedcloud/lookupproxy.go
index 03a75f6b6..59500f5e6 100644
--- a/pkg/pillar/zedcloud/lookupproxy.go
+++ b/pkg/pillar/zedcloud/lookupproxy.go
@@ -131,9 +131,10 @@ func IntfLookupProxyCfg(log *base.LogObject, status *types.DeviceNetworkStatus,
        // if download URL has "http://" or "https://" then no change here regardless of proxy
        // if there is proxy on this intf, treat empty url scheme as for https or http but prefer https,
        // replace the passed-in download-url scheme "docker://" and maybe "sftp://" later, to https
-       // XXX for sftp, currently the FQDN can not have scheme attached, but url.Parse will fail without it
-       if trType == zedUpload.SyncSftpTr && !strings.Contains(downloadURL, "://") {
-               downloadURL = "sftp://" + downloadURL
+       // XXX for sftp and oci, currently the FQDN can not have scheme attached, but url.Parse will fail without it
+       if (trType == zedUpload.SyncSftpTr || trType == zedUpload.SyncOCIRegistryTr) &&
+               !strings.Contains(downloadURL, "://") {
+               downloadURL = fmt.Sprintf("%s://%s", trType, downloadURL)
        }
        passURL, err := url.Parse(downloadURL)
        if err != nil {

@giggsoff Right, i did change those in my workspace, but i'm waiting for eden error we have seen on 'route unreachable', any ida?


Example to print IMU data

I have created a python file that prints the IMU data from the FC

@JonasVautherin I have changed the sleep timer.

But you should not sleep there :see_no_evil:. You should consume the events as they arrive. Sleeping may just slow them down and accumulate a delay that you don't want :innocent:.

I have removed the delay 😅

If you can fix the style issue then this is good to go in, thanks.
https://github.com/mavlink/MAVSDK-Python/actions/runs/10682857899/job/29632558957?pr=727

I have changed the style


WIP: Apply Tuple allocation elimination

references #330 - Let's see if this still works.
Original idea by @zeux from https://gist.github.com/zeux/1638442

In ed264fb I added two small samples.
dotpeek gives the following:
// Type: FSharp.Compiler.Unittests.TupleEliminationTest
// Assembly: FSharp.Compiler.Unittests, Version=<IP_ADDRESS>55, Culture=neutral, PublicKeyToken=f536804aa0eb945b
// MVID: 5512E8B3-D40A-62BC-A745-0383B3E81255
// Assembly location: D:\code\fsharp\Debug\net40\bin\FSharp.Compiler.Unittests.dll

using \u003CStartupCode\u0024FSharp\u002DCompiler\u002DUnittests\u003E;
using Microsoft.FSharp.Core;
using NUnit.Framework;
using System;
using System.Collections.Generic;

namespace FSharp.Compiler.Unittests
{
  [TestFixture]
  [CompilationMapping(SourceConstructFlags.ObjectType)]
  [Serializable]
  public class TupleEliminationTest
  {
    public TupleEliminationTest()
    {
      TupleEliminationTest tupleEliminationTest = this;
    }

    [Test]
    public void RunLookup1()
    {
      Assert.AreEqual((object) "", (object) FSharpFunc<Dictionary<int, string>, int>.InvokeFast<string>((FSharpFunc<Dictionary<int, string>, FSharpFunc<int, string>>) new \u0024TupleAllocationElimination.RunLookup1\u004023\u002D1((FSharpFunc<IDictionary<int, string>, FSharpFunc<int, string>>) new \u0024TupleAllocationElimination.RunLookup1\u004023(this)), new Dictionary<int, string>(), 42));
    }

    [CompilationArgumentCounts(new int[] {1, 1})]
    public static string LookUp(IDictionary<int, string> d, int key)
    {
      string str1 = (string) null;
      Tuple<bool, string> tuple = new Tuple<bool, string>(d.TryGetValue(key, out str1), str1);
      string str2 = tuple.Item2;
      if (tuple.Item1)
        return str2;
      else
        return "";
    }

    [Test]
    public void RunLookup2()
    {
      Assert.AreEqual((object) "", (object) TupleEliminationTest.LookUp((IDictionary<int, string>) new Dictionary<int, string>(), 42));
    }
  }
}

so the function lookup gets inlined and no tuple is allocated.
Unfortunately this doesn't work with the static member.

Can we find the original author and have him submit this?  We need to be careful about the provenance of pull requests.
Thank you
Kevin

I'm the original author; I forgot about this patch when it was rejected on MS Connect, glad to see F# development being more open now!
I'm not 100% sure why it would not work in a static member...

I'm just trying to run the builds and see if it actually works.
With 9d4f163 seems I don't have success. dotpeek still shows:
// Type: FSharp.Compiler.Unittests.TupleElimination
// Assembly: FSharp.Compiler.Unittests, Version=<IP_ADDRESS>55, Culture=neutral, PublicKeyToken=f536804aa0eb945b
// MVID: 5512F62B-D40A-62BC-A745-03832BF61255
// Assembly location: D:\code\fsharp\Debug\net40\bin\FSharp.Compiler.Unittests.dll

using Microsoft.FSharp.Core;
using System;
using System.Collections.Generic;

namespace FSharp.Compiler.Unittests
{
  [CompilationMapping(SourceConstructFlags.Module)]
  public static class TupleElimination
  {
    [CompilationArgumentCounts(new int[] {1, 1})]
    public static string lookUp(IDictionary<int, string> d, int key)
    {
      string str1 = (string) null;
      Tuple<bool, string> tuple = new Tuple<bool, string>(d.TryGetValue(key, out str1), str1);
      string str2 = tuple.Item2;
      if (tuple.Item1)
        return str2;
      else
        return "";
    }
  }
}

@zeux: seems I don't get it to work at all.

Note: the change essentially tried to transform the code that was generated for automatic out-value to tuple conversion into code that is optimized by tuple allocation elimination.
If either the conversion code changed to generate a different structure or allocation code changed this may no longer be effective and has to be adjusted...

@asik: in #330 you said you tested the change. Could you please describe how.

I compiled a little sample like you did in release mode and looked at the dissassembly in ILDasm. That was a few months ago though. I can try again later today to see if that still works.

Yes. Please try with my sample. Maybe I'm just holding it wrong.
On Mar 25, 2015 7:09 PM, "asik"<EMAIL_ADDRESS>wrote:

I compiled a little sample like you did in release mode and looked at the
dissassembly in ILDasm. That was a few months ago though. I can try again
later today to see if that still works.
—
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/visualfsharp/pull/331#issuecomment-86153704
.

If you're not using --optimize+ then that code isn't invoked at all.

I think this is a small but important PR that allows us to write idiomatic code with no overhead.
If there's an interest I can setup some IL tests to verify that the tuple is actually eliminated

Yes. I'd love to see that.
On Mar 25, 2015 7:46 PM, "mrange"<EMAIL_ADDRESS>wrote:

I think this is a small but important PR that allows us to write idiomatic
code with no overhead.
If there's an interest I can setup some IL tests to verify that the tuple
is actually eliminated
—
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/visualfsharp/pull/331#issuecomment-86168320
.

@zeux did you already sign the CLA and are you OK with this contribution? We use this here for discussion and you could send your own PR.

@forki I created a simple IL test for to verify elimination of tuples. You can find it here: https://github.com/mrange/visualfsharp/commit/7140a0e77082533aeeff459b977850673304a833

I did not sign the CLA; I'm happy to sign it and to make a PR!

cool.
btw: as expected in release mode both gets optimized:
// Type: FSharp.Compiler.Unittests.TupleElimination
// Assembly: FSharp.Compiler.Unittests, Version=<IP_ADDRESS>55, Culture=neutral, PublicKeyToken=f536804aa0eb945b
// MVID: 551313B5-D40A-62BC-A745-0383B5131355
// Assembly location: D:\code\fsharp\Release\net40\bin\FSharp.Compiler.Unittests.dll

using Microsoft.FSharp.Core;
using System.Collections.Generic;

namespace FSharp.Compiler.Unittests
{
  [CompilationMapping(SourceConstructFlags.Module)]
  public static class TupleElimination
  {
    [CompilationArgumentCounts(new int[] {1, 1})]
    public static string lookUp(IDictionary<int, string> d, int key)
    {
      string str1 = (string) null;
      bool flag = d.TryGetValue(key, out str1);
      string str2 = str1;
      if (flag)
        return str2;
      else
        return "";
    }
  }
}

// Type: FSharp.Compiler.Unittests.TupleEliminationTest
// Assembly: FSharp.Compiler.Unittests, Version=<IP_ADDRESS>55, Culture=neutral, PublicKeyToken=f536804aa0eb945b
// MVID: 551313B5-D40A-62BC-A745-0383B5131355
// Assembly location: D:\code\fsharp\Release\net40\bin\FSharp.Compiler.Unittests.dll

using Microsoft.FSharp.Core;
using NUnit.Framework;
using System;
using System.Collections.Generic;

namespace FSharp.Compiler.Unittests
{
  [TestFixture]
  [CompilationMapping(SourceConstructFlags.ObjectType)]
  [Serializable]
  public class TupleEliminationTest
  {
    public TupleEliminationTest()
    {
      TupleEliminationTest tupleEliminationTest = this;
    }

    [Test]
    public void RunLookup1()
    {
      Assert.AreEqual((object) "", (object) TupleElimination.lookUp((IDictionary<int, string>) new Dictionary<int, string>(), 42));
    }

    [CompilationArgumentCounts(new int[] {1, 1})]
    public static string LookUp(IDictionary<int, string> d, int key)
    {
      string str1 = (string) null;
      bool flag = d.TryGetValue(key, out str1);
      string str2 = str1;
      if (flag)
        return str2;
      else
        return "";
    }

    [Test]
    public void RunLookup2()
    {
      Assert.AreEqual((object) "", (object) TupleEliminationTest.LookUp((IDictionary<int, string>) new Dictionary<int, string>(), 42));
    }
  }
}

Good work. I will now try to add some bigger perf tests in order to meet the contributor guidelines for  perf optimizations.

I still wonder why we need to introduce str2

A thought is that perf tests should probably include gc time. the benefit might be small on platforms with a competent gc. however for game devs on platforms with poor gcs this could give good improvements. iirc the example posted by @zeux seemed to be game related.

str2 might well be eliminated by the jitter. can check tomorrow....

As far as performance goes, what sort of benchmark is expected?
It's simple to set up something trivial that stresses the allocation - for example, this:
open System.Collections.Generic
open System.Diagnostics
open System

let cache = Dictionary<int, int64>()

let rec square n =
    match cache.TryGetValue(n) with
    | true, v -> v
    | _ ->
        let v =
            if n < 1 then
                0L
            else
                square (n - 1) + (int64 n * 2L - 1L)
        cache.Add(n, v) |> ignore
        v

let sw = Stopwatch.StartNew()

let mutable sum = 0L
for i=1 to 100 do
    cache.Clear()
    let res = square 10000
    sum <- sum + res

let time = sw.Elapsed

printfn "%d in %A" sum time

Gives the following results:
Baseline:
10000000000 in 00:00:00.0493286
With patch:
10000000000 in 00:00:00.0378752

@mrange I applied your test in 8067a90 (without applying tuple elimination) but build is not red.

@zeux
For the Contributing GuideLines:

Performance tests and figures must be given, either in the PR or in the notes associated with the PR.
The PR must show a reliable, substantive performance improvement that justifies the complexity introduced. For the compiler, performance improvements of ~1% are of interest.

With 9a0ea5e I can reproduce your benchmark results, which are much better than 1% for this case. I think this criteria is met.

Strictly speaking the 1% refers to the perf of the compiler itself. A bit more perf testing over longer runs and using #time in F# Interactive to get GC figures would be useful. Also adfing some IL codegen baseline tests would be great.

Strictly speaking the 1% refers to the perf of the compiler itself.

ahh ;-)

More iterations and fsi output: https://gist.github.com/zeux/12fb2e40994b8c142960
A lot of GC collections without the patch and no collections with :)

FWIW I've verified locally that reverting the change to opt.fs makes the test fail. It took me some time since there was an issue with a hosted compiler - it used the code with the change to opt.fs even after I reverted the change - but this is probably because I used Visual Studio to build fsc.exe. I verified the tests by disabling hosted compiler.
I'm still working on getting CLA signed; in the meantime I'll submit a PR with a change to opt.fs and @mrange's test.

it used the code with the change to opt.fs even after I reverted the change

I assume you have to rebuild the proto-compiler. I use the following:

git clean -xdf
appveyor-build.cmd

closing this in favour of https://github.com/Microsoft/visualfsharp/pull/335

there was an issue with a hosted compiler - it used the code with the change to opt.fs even after I reverted the change

After making compiler changes you need to make sure to re-run update.cmd to update the GAC, that's where the test tools will be grabbing FSharp.Core from.  Depending on the change you might need to reorun BuildTestTools.cmd as well.


Browserpass fills out a wrong form (e.g. registration form)

browserpass-ce 2.0.4 on FF 56.0 / Mac
Auto-fill gets bamboozled into filling out the "Create a new account" form on the left side of https://www.reddit.com/login, instead of the actual login form on the right.

This was a good report, when multiple forms are visible at once, browserpass was naively picking the first one. I added some logic that attempts to detect which one is a login form. If such detection fails, the code will fallback to use the first visible form.
This fixes reddit.com, if there are other examples where a wrong form is still being filled out, please submit the websites here.


Public access to InnerDataAdapter on GlimpseDbDataAdapter

Hello.
I've managed to get Glimpse working on one of our applications. It's a somewhat large application with lots of old code that must work along with the new code. I've wrapped our Sql Server connections with Glimpse.ado and it's working ok.
One problem I had to face was that I need access to the SqlDataAdapter.RowUpdated event. This event isn't defined on the generic DbDataAdapter interface so it's not exposed by GlimpseDbDataAdapter. The solution is to have access to the InnerDataAdapter property of GlimpseDbDataAdapter, but it's defined as private. I've managed to do so by using reflection, but I think that it should be public, so I (and other potential users) can guarantee that it won't change/rename/disappear on future release.
Regards.

@Peluko Is this something that would still be useful to you?

I think this was done.


Artifact from Maven Central not Java7 compatible

The currently available 0.5.0 artifact was apparently compiled with Java 8. At least the class file GenASTTransformation.class has version 52 and causes incompatibility with Java 7 builds.
We build spock-genesis locally with Java 7 which resolves the issue, but we would like to use maven-central instead of having to deploy our own version.

@kschwank sorry about that I must have missed switching back to Java 7 when I published. I will not be able to push 0.5.0 again because it is a release. and I just checked bintray and the version there is Java 8 as well. I have an as yet unreleased new feature (#4) that just needs docs. I will probably just do some quick docs this weekend and get version 0.6.0 published this weekend (with java 7) instead of doing a 0.5.1 release to fix it.

That's great! Thanks a lot!

should be available in next couple hours once promotion completes


Service bus queue - FIFO

For example I can have 2 threads which read messages from queue. And I have 2 messages in the queue: message1 was delivered as the first one and message2 was delivered as the second one. Message1 was read first  by the first thread. The second thread read message2. Message1 was abandoned and message2 was processed succesfully and completed. Message1 was peaked the second time and also completed.
In this case message1 came first and was processed second. It is not FIFO. Am I right?

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

ID: afed582b-fb3f-30b3-b119-6c4a9218bf34
Version Independent ID: d4cf3473-21c1-2409-e7ac-9ad93fbc5895
Content: Azure Storage queues and Service Bus queues compared and contrasted | Microsoft Docs
Content Source: articles/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted.md
Service: service-bus-messaging
GitHub Login: @sethmanheim
Microsoft Alias: sethm

@bastyuchenko Thank you for your feedback! We will investigate and get back to you with our findings.

@bastyuchenko Are you leveraging Storage Queues or Service Bus Queues?
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted#foundational-capabilities

Additional Information:
Messages in Storage queues are typically first-in-first-out, but sometimes they can be out of order; for example, when a message's visibility timeout duration expires (for example, as a result of a client application crashing during processing). When the visibility timeout expires, the message becomes visible again on the queue for another worker to dequeue it. At that point, the newly visible message might be placed in the queue (to be dequeued again) after a message that was originally enqueued after it.
The guaranteed FIFO pattern in Service Bus queues requires the use of messaging sessions. In the event that the application crashes while processing a message received in the Peek & Lock mode, the next time a queue receiver accepts a messaging session, it will start with the failed message after its time-to-live (TTL) period expires.

@bastyuchenko I want to follow up with you on your inquiry. The information I provided states that 'message sessions' is needed to guarantee a FIFO pattern. Have you tried this or verified that you are using this functionality as part of your solution? Please let me know. Thank you.

@Mike-Ubezzi-MSFT I'm just studying the service bus documentation and I have studied just the half of the documention and haven't met an explanation how to use 'message session'. I'm going to return to this question later when I study the whole documentation.

@sethmanheim This scenario may warrant adding content around message sessions, as there is no clear explanation as to implementing  this functionality from this page.

@Mike-Ubezzi-MSFT @bastyuchenko We do have an article covering message sessions: https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-sessions.

@bastyuchenko Please let us know if that article answers your questions. If so, can we close this issue for now? Thanks!

Hi guys! I have eventually read the article and I've found out how to implement FIFO using message session id. Thank you for your help!


allow local overrides to docker-compose

Exclude docker-compose.override.yml file from git updates to allow for local customizations of projects docker-compose.yml file

Ah, I wasn't aware of this feature until now.
Thanks for your pr.


Incompatibility to io.js-3.0

Broken on io.js 3
As some of you may have mentioned, that the CI is failing on builds upwards version 3.0.
This is because of an incompatibility of the sqlite driver, which does not compile anymore. Also NAN has released a major release, which means that many projects using native modules are pretty broken right now.
This goes for sqlite3 which we use and also pg-native, which we included by default.
I used the time I spent on this, to clean up a bit. I removed the tests for different versions of postgresql, thus we test only on the current stable version now. Also I defaulted the project to mariadb, it covers all mysql functionality anyway, travis ci now finally supports mariadb as an addon though. The last thing I changed, was to remove the pg-native module, you can install it yourself anytime if you want it, as it is only optional.
Conclusion
Just wait a bit before switching to io.js 3, either the modules get fixed and get compatible to io.js 3 or the drivers already have moved out of db-migrate itself and get available as standalone.
Or better, just use nvm!
I leave you this note as I'm going to remove io.js 3 from the builds for now, until this issue is fixed. In one or another way... .

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25407676-incompatibility-to-io-js-3-0?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

Release 3.1.0 of sqlite3 package is available, and this works with iojs 3 and node 4. Indeed, the master branch of this repo seems to work fine with node 4 (and the sqlite driver as well).

Yes since today iojs-3 builds fine again. https://travis-ci.org/db-migrate/node-db-migrate/builds/79347057
closing this note.


release: prepare for v1.0.0-alpha2

Signed-off-by: Stephen J Day<EMAIL_ADDRESS>Closes https://github.com/containerd/containerd/milestone/11.

Codecov Report

Merging #1253 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1253   +/-   ##
=======================================
  Coverage   28.24%   28.24%
=======================================
  Files          28       28
  Lines        2854     2854
=======================================
  Hits          806      806
  Misses       1901     1901
  Partials      147      147

Continue to review full report at Codecov.

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

LGTM

LGTM


[Accessibility]A11y_VSCode_ScreenReaderOptimized_Keyboard:"Screen Reader Optimized" button is not accessible by keyboard

Environment Details:
VSCode Version : 1.24.1
OS Version : Win10
Repro Steps:

Launch VS Code.
Navigate to File->select New File->Navigate to Status Bar-> "Screen Reader Optimized" button.
Check the keyboard navigation.

Actual:
"Screen Reader Optimized" button is not accessible by keyboard.it is only accessible through mouse also there is no shortcuts provided access this.
Expected:
"Screen Reader Optimized" button should accessible through keyboard.
Recommendations:
Refer below link which is repository of bug fixes code snippets:
https://microsoft.sharepoint.com/teams/msenable/mas/pages/browse-fixes.aspx
User Impact:
The keyboard user will not be able to access the control.
MAS Reference:
https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={8492c4eb-c179-40ae-8777-cd044ed725a2}
Does this issue occur when all extensions are disabled?: Yes
Attachment For Reference:

Dup of https://github.com/Microsoft/vscode/issues/51977


how to set proxy for spring cloud cli servers

I successfully installed spring cloud cli via gvm on powershell in windows, however when i run spring cloud kafka, I get an error message from maven being unable to connect to the internet (repo servers) to get the artifacts.
I already tried to set my proxy environment variables but without success. I know that the spring application should work if I am able to pass a JVM arguments string with my proxy settings, but I am unable.
Ho can I do that?

spring.cloud.maven.proxy.*
		/**
		 * Protocol to use for proxy settings.
		 */
		private String protocol = "http";

		/**
		 * Host for the proxy.
		 */
		private String host;

		/**
		 * Port for the proxy.
		 */
		private int port;

		/**
		 * List of non proxy hosts.
		 */
		private String nonProxyHosts;

And where do i have put and aplication.yml with that props?

Duplicates #44


Update CODEOWNERS

This conflicts with @alexandratran 's incoming update of CODEOWNERS here:
https://github.com/MetaMask/mm-docs-v2/pull/59/files#diff-3d36a1bf06148bc6ba1ce2ed3d19de32ea708d955fed212c0d27c536f0bd4da7
Which one should we use?

I included this change in my existing PR #59, so we can close this PR.


How to create Elastic Search index on  monthly basis using ElasticLowLevelClient?

NEST/Elasticsearch.Net version:
Elasticsearch version:
Description of the problem including expected versus actual behavior:
Steps to reproduce:
1.
2.
3.
Provide ConnectionSettings (if relevant):
Provide DebugInformation (if relevant):

Describe the feature:

Hi ,
We reserve GitHub Issues for bug reports and feature requests.
In order for your question to get the attention it deserves, the best place to ask it would be the Elastic Discourse forums at https://discuss.elastic.co/c/elasticsearch. Not only do more folks view the forums than the GitHub Issues list, and hence it is more likely to receive attention, but the forums are also geared towards being able to search previous questions and answers, making it a much more valuable archive for future question askers.
Thanks!


Add snake_case registration documentation

Resolves #225

Just noticed that there is some outdated info in API Differences:

Additionally, signals are mapped to properties of type Signal and must start with a prefix signal (check Signals section for more details). The prefix is dropped during registration, so the signal signalReverseChanged is known in Godot as reverseChanged. This is done to avoid naming conflicts with other members of a class. There is no signal type in GDScript, signals are only referenced by name so they can have the same name as methods and/or properties in the same class.

Can you change that as well?

sure


1.0.1 Not working on IOS

1.0 did work on IOS.
Can you help?

Hi, a setting was wrong in last release. You can delete and reinstall the plugin to fix it. Please let me know if if works!

Hi,
I'm afraid it is not working.
See pic attached of a few minutes ago.
[image0.png]
On 25 Oct 2022, at 9:54 PM, thingnotok @.***> wrote:

Hi, a setting was wrong in last release. You can delete and reinstall the plugin to fix it. Please let me know if if works!
—
Reply to this email directly, view it on GitHubhttps://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthingnotok%2Fobsidian-toggle-list%2Fissues%2F5%23issuecomment-1291294052&data=05|01|g%40digesu.com.br|8b4b8ed7831c4ebfa79e08dab6ec9dee|718f3212162b4bf891c55c06573e715e|0|0|638023424687195944|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=yvc%2Fa6Rw%2FP%2BOUEzF2kS0odjYao9zmoNVGpqRa5Bb5jo%3D&reserved=0, or unsubscribehttps://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKTSVE7KTYVCS5T2WISXBOLWFB6LVANCNFSM6AAAAAAROOLVM4&data=05|01|g%40digesu.com.br|8b4b8ed7831c4ebfa79e08dab6ec9dee|718f3212162b4bf891c55c06573e715e|0|0|638023424687195944|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=vOoys%2Fd75cJMvWF6mx20d8i5EP1nZuFL3%2B2tV6Hnwv4%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

The pic ...
Similar behavior on iPad.

Hi, sorry I misunderstood how obsidian pull plugins so the changes were not working.
I just update the setting and can download the plugin from community plugin with my iphone (ios 16.0). Keep me updated if it it works. You may need to restart the app or something to let the app fetch the new files.
btw, just curious, I'm not using obsidian on mobile devices, but as this plugin is only useful with keyboard hotkeys, how do you guys use it on a phone?

Thanks! It works.
To make it work on IOS, go to Options > Mobile, and add ToggleList two options to the mobile bar. 😎


libSQL support/fork

Hey folks,
I can see increased interest in SQLite in my tech bubble.
Ahd that's how I learned about libSQL which offers several improvements  including altering columns.
One of the project goals is to maintain 100% backwards compatibility with SQLite yet it still may deserve fork/another project, and I appreciate that it might be beyond the resources that the team currently have.
This also made me think that Exqlite may benefit from swappable backends.
update:  I played a bit with libSQL and Exqlite and it seems that libSQL is a Rust project and doing it right means taking completely another route of building native extension against it with Rustler.
that followed a brief chat in Turso's Discord  in the context of an already ongoing conversation which highlighted the exciting capability of embedded replications, which  is definitely beyond the original SQLite scope.

Thanks! Embedded replicas require not only that the driver will use libsql instead of sqlite (which is very easy) but also that our http and sync functions are exposed (should be also easy if adopting libsql happened throughtl the rust library, not C).

Unfortunately we also don't have the bandwidth to support elixir at the moment, but if the driver maintainers want to do that,  we would be happy to help!

Best,
Yevhenii

So I designed ecto_sqlite3 to have the ability to swap out different sqlite backend implementations. All you need to do honestly is build a new library that implements the db_connection interface. I believe this is how you can swap it out easily.
This would allow you to bring in your own rustler compilation process.
Some big things to consider about libsql, if at any point they diverge on the features of the SQL syntax and what is available (native json operators like psql, ltree, etc...) then we will not be able to support that with the ecto_sqlite3 implementation.

I dropped in a binary of libsql into ecto_sql and it just worked so its probably not that hard if you need this to work, fork exqlite and add the libsql amalgamation and you are good.

I just needed to bring in libsql-amalgamation-0.2.2.tar.gz in place of sqlite3.h/cc and it "just worked". I'm not sure ecto_sqlite supports alter but nothing stops you from using it manually.

That is correct, ecto_sqlite does not support alter because well, sqlite doesn't support alter 😉


Integration tests fail intermittently

Describe the bug
Our tests have external dependencies

DNS - dnstest.io
http - httpbin.org (example https://travis-ci.org/github/aelsabbahy/goss/jobs/729563840#L5278 via #621)

How To Reproduce
Keep retrying.
Expected Behavior
Tests don't fail for external reasons.
Actual Behavior
If an external dependency is unavailable, our tests fail.
Environment:

Version of goss
OS/Distribution version (if applicable)

httpbin
Used within integration-tests/goss/goss-shared.yaml.
Could replace with a trivial golang http server.
dnstest
Used within integration-tests\goss\goss-shared.yaml.
Could replace with a https://coredns.io/ - I don't know very much about DNS server choices, but this looked at a glance easy to configure.
Orchestration
We'd need to spin up both dependencies, then run the integration tests, then tear down the dependencies. I think that could be achieved via a docker-compose.yml with some judicious port-maps.
I think that could form the basis of reworking the linux-based integration tests, since each test-container could maybe become registered into the compose file - I think that might simplify away a bunch of shell script & makefile.

One thing I would be interested in before actual work is done on this is a brief research on the pros/cons of using docker-compose vs https://github.com/testcontainers/testcontainers-go
The later may be less flexible, but one less build dependency to worry about? shrug

Marking this as approved.

Status update:

httpbin change was done
dns needs to be done
docker-compose needs to be done


table settings altering

test create table as well

check correct validation for the new settings with the correct settingsapplier

test ALTER TABLE reset as well

ack


Update README.md - Small typo

Update README.md - Small typo

Hey, please can you look at the merge conflicts? Just pull and merge.
Thank you!

Done