Fix cloudfront middleware

@manishtomar According to documentation, ipfilteredby is not required. And if you don't set ipfilteredby for cloudfront middleware, registry crashes and you get the error panic: interface conversion: interface {} is nil, not string.
This PR fixes this issue and some minor formatting issues with cloudfront configuration docs.

I triggered a build on master branch and Its failing there as well. https://travis-ci.org/vishesh92/distribution/builds/487321788
Its happening because version of gometalinter is not fixed and some changes were recently merged there: https://github.com/alecthomas/gometalinter/pull/579

Closed and reopened to trigger build

@manishtomar I have made those changes.

@dmcgowan @caervs @manishtomar any update on this?

@caervs resolved your comments.

@caervs resolved your comments.

@vishesh92 thank you!


[Doc update][Update Build Tabs for Microsoft Teams]

added lightbox tag

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/tabs/what-are-tabs.md
86
18
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 53883de:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/tabs/what-are-tabs.md
:white_check_mark:Succeeded
View

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/tabs/what-are-tabs.md
86
18
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit bbacb0d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/tabs/what-are-tabs.md
:white_check_mark:Succeeded
View

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

Docs Build status updates of commit a1f6d65:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/assets/images/tabs/personaltab.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/tabs/tabs.png
:white_check_mark:Succeeded
View

msteams-platform/tabs/what-are-tabs.md
:white_check_mark:Succeeded
View

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


Pylance Symbol Search is slow

Environment data

Language Server version: 2022.6.11, vscode over ssh
OS and version: Ubuntu 20.04.3 LTS
Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.18 (Proprietary codebase, cannot give more details on packages and such)

Pylance config:
{
    "python.analysis.indexing": true,
    "python.languageServer": "Pylance",
    "python.formatting.provider": "black",
    "python.analysis.useLibraryCodeForTypes": false
}

Problem statement
Running Pylance through the official extension, in a large proprietary Python Monorepo, in a python2 virtualenv. Symbol search (Cmd+T) takes more than a minute to find symbols. However Cmd+Clicking a symbol in the code is working instantaneously. From the logs I can read, the index size reaches its limit causing VSCode to drop index cache.
Repro Steps
Repo I use is private and proprietary, cannot share any reproduction steps. At least 13k python files in the repo.
Expected behavior
Symbol search being fast. In particular, PyCharm is able to handle this repo properly and its symbol search is working as expected while VSCode is not.
Actual behavior
Symbol search unusably slow
Logs

[Info  - 8:35:38 AM] (708066) Pylance language server 2022.6.11 (pyright bbc42826) starting
[Info  - 8:35:38 AM] (708066) Server root directory: /home/arthur.depasse/.vscode-server/extensions/ms-python.vscode-pylance-2022.6.11/dist
Notebook support: Legacy
[Info  - 8:35:38 AM] (708066) No configuration file found.
[Info  - 8:35:38 AM] (708066) pyproject.toml file found at <redacted-repo>.
[Info  - 8:35:38 AM] (708066) Setting pythonPath for service "<redacted-repo>": "/home/arthur.depasse/<obfuscated-repo>/venv2/bin/python"
[Info  - 8:35:38 AM] (708066) Loading pyproject.toml file at /home/arthur.depasse/<redacted-repo>/pyproject.toml
[Error - 8:35:38 AM] (708066) Pyproject file "/home/arthur.depasse/<redacted-repo>/pyproject.toml" is missing "[tool.pyright]" section.
[Warn  - 8:35:38 AM] (708066) stubPath /home/arthur.depasse/<redacted-repo>/typings is not a valid directory.
[Info  - 8:35:38 AM] (708066) Python version 2.7 from interpreter is unsupported
[Info  - 8:35:38 AM] (708066) Assuming Python platform Linux
[Info  - 8:35:39 AM] (708066) Searching for source files
[Info  - 8:35:39 AM] (708066) Auto-excluding /home/arthur.depasse/<redacted-repo>/venv2
[Info  - 8:35:40 AM] (708066) Found 12970 source files
[Info  - 8:35:40 AM] (708066) Background analysis(1) root directory: /home/arthur.depasse/.vscode-server/extensions/ms-python.vscode-pylance-2022.6.11/dist
[Info  - 8:35:40 AM] (708066) Background analysis(1) started
[Info  - 8:35:40 AM] (708066) Indexer background runner(2) root directory: /home/arthur.depasse/.vscode-server/extensions/ms-python.vscode-pylance-2022.6.11/dist (index)
[Info  - 8:35:40 AM] (708066) Indexing(2) started
[Info  - 8:35:44 AM] (708066) [BG(1)] Long operation: getSemanticTokens full at /home/arthur.depasse/<redacted-repo>/<redacted-file>.py (2773ms)
[Info  - 8:35:44 AM] (708066) [IDX(2)] Long operation: index execution environment /home/arthur.depasse/<redacted-repo> (3302ms)
[Info  - 8:35:44 AM] (708066) [IDX(2)] Long operation: index libraries /home/arthur.depasse/<redacted-repo> (4293ms)
[Info  - 8:35:44 AM] (708066) Indexer done(2). indexed 516 files
[Warn  - 8:36:55 AM] (708066) Workspace indexing has hit its upper limit: 2000 files

could try disabling indexing or using a pyrightconfig.json file to exclude folders
https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-config-file

So I added an include and exclude section to my pyproject file, excluded as much stuff as I could, and went from 13k files to 8.7k files analyzed by Pylance. It's still well above the 2k limit for indexing. This resulted in a small speedup in symbol search but not going below the 30sec bar, and far from being usable. I also tried disabling indexing and it didn't really helped.
Since working in repos that contain more than 2k files that need to be analyzed and indexed is pretty much a reality for anyone working in a big monorepo, is there a way to raise this 2k files index limit ? I wouldn't mind paying the cost of indexing once when I start the server and then have it cached on file or in memory even if the cache gets really big, as long as it makes search features usable

In fact that is the current behaviour of Pycharm and probably one of the last things that prevent me from moving away from it. It indexes your whole repo in a single pass when the language server starts and then saves a complete cache of the index. You also get visual feedback on the indexing operation (which is not the case with Pylance and makes it hard to understand what is happening when)

Thanks for the feedback, unfortunately, lazy analysis is fundamental to the design of Pyright - the analysis engine that Pylance uses. It deliberately does not cache the analysis results. I don't see this changing in Pyright anytime soon.


evolutions not randomized

Hey, don't know if this has been said before but the latest build doesn't have evolutions randomized even if I select the tab to do so. Even after re-randomizing, they aren't random.

do other randomizations work?

Yes. Just not evolutions. Even when the prompt is selected when randomizing.

I have no idea if they're still working on it, but unfortunately it still doesn't work. Without this function, the game is only half as much fun. Does anyone have a solution for this?


Cannot flash hex to either side of board (Redox-w v1.0)

Hello! I was happily building my Redox wireless until about early March. Since then, I have been attempting to flash the hex firmware (even going to compile it myself) with no avail. I use Arch Linux on my main workstation and laptop, and have tried installing Ubuntu to better follow the guide on another laptop. I can connect with OpenOCD and telnet to the nrf52s, and "seem" to have a response, but no action. I use an official StLink v2. An example is here:
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
WARNING: interface/stlink-v2.cfg is deprecated, please switch to interface/stlink.cfg
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.221053
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'telnet' connection on tcp/4444
Info : dropped 'telnet' connection
Info : accepting 'telnet' connection on tcp/4444
Info : dropped 'telnet' connection
Info : accepting 'telnet' connection on tcp/4444
Info : dropped 'telnet' connection

And that's it. I get no response that it's resetting, one that's it's uploading, and nothing seems to be happening. Everything I echo is just accepted and then dropped. What could be the cause of this?
Thank you in advance.

Hi,
can you show me the commands issued by the other terminal (the echo ones)?
In any case I recently updated the redox firmware repository and it’s now possible to upload the firmware using Docker containers. You can give that a try.

Sure, the commands issued were:

echo reset halt | telnet localhost 4444
echo nrf51 mass_erase | telnet localhost 4444
echo reset halt | telnet <IP_ADDRESS> 4444
All returned the same responses as the pictures on your documentation.

I will attempt the docker solution right now, and update you on that!

Here is the Docker output for programming the right hand side. Correct me if I'm wrong, but that looks like it succeeded!
============================= PROGRAMMING =============================
Trying ::1...
Trying <IP_ADDRESS>...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00000dac msp: 0x20004000
> flash write_image erase /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex
auto erase enabled
Unknown device (HWID 0x000000d1)
using fast async flash loader. This is currently supported
only with ST-Link and CMSIS-DAP. If you have issues, add
"set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0x20004000
wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.698408s (22.909 KiB/s)
> reset
> Connection closed by foreign host.

============================== FINISHED ===============================

For documentation purpose, the expected output of any of the
docker exec -it redox-w-firmware_toolchain_1 ./redox-w-firmware/redox-w-keyboard-*/program*.sh

is
============================= PROGRAMMING =============================
Trying <IP_ADDRESS>...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00000ba8 msp: 0x20004000
> flash write_image erase /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex
auto erase enabled
Unknown device (HWID 0x000000d1)
using fast async flash loader. This is currently supported
only with ST-Link and CMSIS-DAP. If you have issues, add
"set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0x20004000
wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)
> reset
> Connection closed by foreign host.

============================== FINISHED ===============================

while on the server side you should see:
openocd_1    | Open On-Chip Debugger 0.9.0 (2018-01-24-01:05)
openocd_1    | Licensed under GNU GPL v2
openocd_1    | For bug reports, read
openocd_1    | 	http://openocd.org/doc/doxygen/bugs.html
openocd_1    | WARNING: target/nrf51_stlink.cfg is deprecated, please switch to target/nrf51.cfg
openocd_1    | Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
openocd_1    | Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
openocd_1    | adapter speed: 1000 kHz
openocd_1    | Info : Unable to match requested speed 1000 kHz, using 950 kHz
openocd_1    | Info : Unable to match requested speed 1000 kHz, using 950 kHz
openocd_1    | Info : clock speed 950 kHz
openocd_1    | Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
openocd_1    | Info : using stlink api v2
openocd_1    | Info : Target voltage: 3.274320
openocd_1    | Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
openocd_1    | Info : accepting 'telnet' connection on tcp/4444
openocd_1    | target state: halted
openocd_1    | target halted due to debug-request, current mode: Thread
openocd_1    | xPSR: 0xc1000000 pc: 0x00000ba8 msp: 0x20004000
openocd_1    | auto erase enabled
openocd_1    | Warn : Unknown device (HWID 0x000000d1)
openocd_1    | Warn : using fast async flash loader. This is currently supported
openocd_1    | Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
openocd_1    | Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
openocd_1    | target state: halted
openocd_1    | target halted due to breakpoint, current mode: Thread
openocd_1    | xPSR: 0x61000000 pc: 0x2000001e msp: 0x20004000
openocd_1    | wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)
openocd_1    | Info : dropped 'telnet' connection

You can see the OpenOCD server output by issuing:
docker-compose logs openocd

or by launching docker compose in foreground mode (without the -d in the launch command). The important line here is:
openocd_1    | wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)

By the look of it you should be good.

For documentation purpose, the expected output of any of the
docker exec -it redox-w-firmware_toolchain_1 ./redox-w-firmware/redox-w-keyboard-*/program*.sh

is
============================= PROGRAMMING =============================
Trying <IP_ADDRESS>...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00000ba8 msp: 0x20004000
> flash write_image erase /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex
auto erase enabled
Unknown device (HWID 0x000000d1)
using fast async flash loader. This is currently supported
only with ST-Link and CMSIS-DAP. If you have issues, add
"set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0x20004000
wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)
> reset
> Connection closed by foreign host.

============================== FINISHED ===============================

while on the server side you should see:
openocd_1    | Open On-Chip Debugger 0.9.0 (2018-01-24-01:05)
openocd_1    | Licensed under GNU GPL v2
openocd_1    | For bug reports, read
openocd_1    | 	http://openocd.org/doc/doxygen/bugs.html
openocd_1    | WARNING: target/nrf51_stlink.cfg is deprecated, please switch to target/nrf51.cfg
openocd_1    | Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
openocd_1    | Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
openocd_1    | adapter speed: 1000 kHz
openocd_1    | Info : Unable to match requested speed 1000 kHz, using 950 kHz
openocd_1    | Info : Unable to match requested speed 1000 kHz, using 950 kHz
openocd_1    | Info : clock speed 950 kHz
openocd_1    | Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
openocd_1    | Info : using stlink api v2
openocd_1    | Info : Target voltage: 3.274320
openocd_1    | Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
openocd_1    | Info : accepting 'telnet' connection on tcp/4444
openocd_1    | target state: halted
openocd_1    | target halted due to debug-request, current mode: Thread
openocd_1    | xPSR: 0xc1000000 pc: 0x00000ba8 msp: 0x20004000
openocd_1    | auto erase enabled
openocd_1    | Warn : Unknown device (HWID 0x000000d1)
openocd_1    | Warn : using fast async flash loader. This is currently supported
openocd_1    | Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
openocd_1    | Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
openocd_1    | target state: halted
openocd_1    | target halted due to breakpoint, current mode: Thread
openocd_1    | xPSR: 0x61000000 pc: 0x2000001e msp: 0x20004000
openocd_1    | wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)
openocd_1    | Info : dropped 'telnet' connection

You can see the OpenOCD server output by issuing:
docker-compose logs openocd

or by launching docker compose in foreground mode (without the -d in the launch command). The important line here is:
openocd_1    | wrote 16384 bytes from file /usr/src/nRF5_SDK_11/redox-w-firmware/redox-w-keyboard-basic/custom/armgcc/_build/nrf51822_xxac-keyboard-right.hex in 0.782274s (20.453 KiB/s)

By the look of it you should be good.

Yup, that was it for the hands. Just my two cents, but I honestly think the docker method should be the one described in the docs, it's well done. Although this confirms I have an issue with my Arduino or wiring of the receiver, since I still cannot connect to it. I might swap it with a 100% official one to make sure that the issue isn't a knock off. Thank you for your help with this issue!

Just my two cents, but I honestly think the docker method should be the one described in the docs

Yeah, I was debating this with myself just today. Thanks for the feedback ;)

Although this confirms I have an issue with my Arduino or wiring of the receiver, since I still cannot connect to it.

If you still have issues open a new issue dedicated to it.

@TheCatster BTW just double checking: did you burn the firmware on the receiver’s YJ14015 ?

I cannot, that was my major issue right now. I got busy with some other things, but am trying to desolder my Arduino Pro Micro and swap it, I did have an illegitimate one.


Logic check on from-value.ts in DayOfWeek

import { DayOfWeek } from '../iso-types'
import { fromOrdinal } from './from-ordinal'

/**
 * This seems to try to convert a "dirty" value to a valid day-of-week. However, if it is adding 1 to the dirty day-of-week number, it will not return an accurate day.
 *    (e.g. if a user passes 1 with the intention of having it converted to Sunday, which is ordinal 0, they would instead receive Tuesday.)
 * @param dirtyValue
 * @returns
 */

export function fromValue(dirtyValue: number): DayOfWeek {
  return fromOrdinal(dirtyValue + 1)
}

Ok, upon further inspection, I see what this function is doing. However, I'm not sure that it makes sense to have from-ordinal and from-value to not have the same number and day associations. I think it might be better to have a different helper function that can convert between a "dirty" value and the accurate one and maintain a consistent bind of day to number.

We should have a short discussion about the merits of a 1 or 0 as the starting number for certain situations.

We will provide functions for both 0-indexing and 1-indexing for all time formats but under different names. Default and preferred will be 0-indexing and will be referred to as to-{time} and from-{time}. 1-indexing will be referred to as to-{time}-1 and from-{time}-1.


Create bootstrap

Create a bootstrap file for project which should set the environment upon download.

Added, refactored and documented.


Deprecate in favor of crossbeam-utils

With the release of concurrent-queue version 2, there are no major users of this crate left. This PR officially deprecates this crate.
Closes #10

@smol-rs/admins Any thoughts on this? If not, I'll merge this in a week.

No thoughts in particular. If you think this is the right direction, it seems fine with me ^^

Any thoughts on this? If not, I'll merge this in a week.

...I said, two weeks ago. Oh well, let's merge this.


Metrics package

Added metrics package which provides tools useful for gathering and exposing system metrics for external monitoring tools.

Is there an existing package used for similar stuff in any of our existing dependencies? Thinking specifically of libp2p.

Is there an existing package used for similar stuff in any of our existing dependencies? Thinking specifically of libp2p.

Unfortunately, I didn't find anything fitting our needs.

There is a metrics package provided by go-ethereum: https://github.com/ethereum/go-ethereum/tree/master/metrics
Is it something we could not use for our needs? If so, can we summarize why for future-us?
If we did not explore this option, I think I am fine merging this PR and looking at go-ethereum metrics in the future.

Yeah, this PR overlaps several things from go-ethereum, but also provides some useful functionality tailored for keep-* clients. Specifically, the observer logic allows us to define reusable metric observation loops in one place (on keep-core side) and avoid polluting the codebase with metric primitives which must be done in case we use bare go-ethereum metric package. Also, this PR is rather minimalistic because for now, we don't need all metric types and other magic. At last, we can always incorporate useful things from go-ethereum in the future if needed.


Test activation.TANH

ISSUE #95
-Unit test to activation.TANH
**Original activation.TANH
-Modify @param to be able to use scalar or array.
-Modify function to perform array operations or scalar.

Thank you! 👊 🙏


Minimize the use of rand() within the SDK within keyvault

Follow-up from @LarryOsterman: https://github.com/Azure/azure-sdk-for-cpp/pull/4222#discussion_r1067352922

FWIW, rand is considered a banned API when "randomness is required". Unless you call srand() and provide a high quality (unpredictable) seed, the output of rand is predictable which might result in collisions.
You might consider changing this to rand_s?

https://github.com/Azure/azure-sdk-for-cpp/blob/a3e9ad1d2c2509608ba6aaf78d0a400587e9b4fe/sdk/keyvault/azure-security-keyvault-secrets/test/perf/inc/azure/keyvault/secrets/test/get_secret_test.hpp#L78
Currently, it is only used within tests which makes it less critical to fix, but if collisions occur, it might affect test reliability.

@LarryOsterman, as an aside, we have one actual use of rand() in the SDK within the retry_policy, however that scenario doesn't require "true" randomness with guarantees around collision.
https://github.com/Azure/azure-sdk-for-cpp/blob/a3e9ad1d2c2509608ba6aaf78d0a400587e9b4fe/sdk/core/azure-core/src/http/retry_policy.cpp#L77
What are your thoughts on keeping that one?

For the retry policy, it's probably just fine.
For context: there are two concerns w.r.t. quality randomness - the primary one is when you use random as a source for things where predictability is critical. Two examples:

There was a famous hack of an online poker site caused by a predictable seed being used for a rnj (not finding the reference right now)
You can hijack TCP connections if you can predict the TCP frame sequence numbers - this was a BIG issue around the 2000s because many TCP implementations used highly predictable sequence numbers.

The secondary one is related, but it has to do with repeatability of random number sequences: If you call the rand() without first calling srand() with a unique input, then the output of the RNG is 100% repeatable. That means that if (for instance), you're generating temporary filenames, if you just use rand() as a source of uniqueness, then your filenames are going to collide, which is a VERY bad quality in a temporary filename.
For the retry policy, I don't believe that either of these concerns applies - clearly predictability isn't a problem, and if the same retry delays happen every time, it doesn't really matter.

rand() will eventually collide even when using srand().  This was the problem I faced in the uuid and why I switched to random_device.  We do want some randomness in the retry so that backoffs don't delay the same amount and continue to collide.
I'm not convinced this a problem worth fixing though.  If we do address it, we need to ensure the std::random_device initialization cost is not occurring on each call.

with regards to KeyVault rand() appears only in 3 locations all tests not in the sdk code, i don't think randomness is that important in the test cases, where we generate an ephemeral string.
As for the other locations it is used to get the backoff time for retry , and load balancing index ,
In all cases randomness / collisions don't seem to be of any import .


imagemagick7: 7.0.7-32 -> 7.0.7-35

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/imagemagick/versions.
These checks were done:

built on NixOS
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/animate passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/compare passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/composite passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/conjure passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/convert passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/display passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/identify passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/import passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/magick-script passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/mogrify passed the binary check.
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/montage passed the binary check.
Warning: no invocation of /nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/stream had a zero exit code or showed the expected version
/nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35/bin/magick passed the binary check.
12 of 13 passed binary check by having a zero exit code.
0 of 13 passed binary check by having the new version present in output.
found 7.0.7-35 with grep in /nix/store/7wx9r73c0r0d9cccqjn5rfy1i9fkazx7-imagemagick-7.0.7-35
directory tree listing: https://gist.github.com/416a1bac07dc41a682c21f3ef7014908
du listing: https://gist.github.com/e9a89e0789ef0f799410b18f783e01fc

meta.description for imagemagick7 is: '"A software suite to create, edit, compose, or convert bitmap images"'.
cc @the-kenny @wkennington for testing.

Success on x86_64-linux (full log)
Attempted: imagemagick7
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev/lib  /nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev/bin
patching script interpreter paths in /nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev
/nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev/bin/Magick++-config: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
/nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev/bin/MagickWand-config: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
/nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev/bin/MagickCore-config: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/as41kd1fvns7f1b56q2g8k76bkh4a8qj-imagemagick-7.0.7-35-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/4iab0zk98w1y0lqjw20bhdawb53kac6d-imagemagick-7.0.7-35-doc
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/4iab0zk98w1y0lqjw20bhdawb53kac6d-imagemagick-7.0.7-35-doc
checking for references to /build in /nix/store/4iab0zk98w1y0lqjw20bhdawb53kac6d-imagemagick-7.0.7-35-doc...

Success on aarch64-linux (full log)
Attempted: imagemagick7
Partial log (click to expand)
patching script interpreter paths in /nix/store/vl9kk6n5jixr91ks637wmyxh1kv3rvfv-imagemagick-7.0.7-35-dev
/nix/store/vl9kk6n5jixr91ks637wmyxh1kv3rvfv-imagemagick-7.0.7-35-dev/bin/MagickWand-config: interpreter directive changed from "/bin/sh" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/sh"
/nix/store/ganbnzjzw6lq7gnw79pfln3y397bdjwn-imagemagick-7.0.7-35
/nix/store/vl9kk6n5jixr91ks637wmyxh1kv3rvfv-imagemagick-7.0.7-35-dev/bin/MagickCore-config: interpreter directive changed from "/bin/sh" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/sh"
/nix/store/vl9kk6n5jixr91ks637wmyxh1kv3rvfv-imagemagick-7.0.7-35-dev/bin/Magick++-config: interpreter directive changed from "/bin/sh" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/vl9kk6n5jixr91ks637wmyxh1kv3rvfv-imagemagick-7.0.7-35-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/qmwibrlkrnx4lmri19fa3msyafp7k4yy-imagemagick-7.0.7-35-doc
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/qmwibrlkrnx4lmri19fa3msyafp7k4yy-imagemagick-7.0.7-35-doc
checking for references to /build in /nix/store/qmwibrlkrnx4lmri19fa3msyafp7k4yy-imagemagick-7.0.7-35-doc...

Failure on x86_64-darwin (full log)
Attempted: imagemagick7
Partial log (click to expand)
   Compiling rls-span v0.4.0
   Compiling flate2 v1.0.1
   Compiling rls-data v0.15.0
   Compiling syntax_pos v0.0.0 (file:///private/tmp/nix-build-rustc-1.25.0.drv-0/rustc-1.25.0-src/src/libsyntax_pos)
   Compiling rustc_errors v0.0.0 (file:///private/tmp/nix-build-rustc-1.25.0.drv-0/rustc-1.25.0-src/src/librustc_errors)
building of '/nix/store/dvfcr5b362ymixjjc4xcyvv7j877f89z-rustc-1.25.0.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/kn2f0scghqixqhh1zdkd6arl9wmyx0h5-cargo-0.26.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3slf13rvnv87wj10wb3wa2wrxgh2n594-librsvg-2.42.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/gcfs18q9adjc1vylnjj0ajqxppmca7zm-imagemagick-7.0.7-35.drv': 1 dependencies couldn't be built
error: build of '/nix/store/gcfs18q9adjc1vylnjj0ajqxppmca7zm-imagemagick-7.0.7-35.drv' failed


implement get_puzzle_and_solution_for_coin() in chia_rs

The motivation for the function is that running a generator and pulling out the coin puzzle and solution is currently quite expensive. This speeds it up about 7 folds.
profile before:

profile after:

Can we skip the get_full_block call, and access the generator bytes directly?

Or does that not work due to previous generators?

Can we skip the get_full_block call, and access the generator bytes directly?

We can't skip the DB lookup, but we can skip the expensive part, parsing the FullBlock. I'm working on that patch now

Can we create a test that runs this on this code ? It's a "copy-protection" (or "fork detector") generator that ensures the correct (and broken) deserialization code is there.

yes, but we would have to do that at the chia-blockchain level. the deserializer argument is still expected to be passed in as an argument.


seven_zip and chef versions misalignment

Dear All --
I have "cfncluster create RandomName" returning FAILURE. Upon examining the /var/log/cfn-init-cmd.log, I see the root cause:
2022-08-12 21:01:26,272 [ERROR] Command chef (chef-client --local-mode --config /etc/chef/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json --override-runlist cfncluster::_prep_env) failed
2022-08-12 21:01:26,272 [DEBUG] Command chef output: Starting Chef Client, version 14.2.0
[2022-08-12T21:01:25+00:00] WARN: Run List override has been provided.
[2022-08-12T21:01:25+00:00] WARN: Run List override has been provided.
[2022-08-12T21:01:25+00:00] WARN: Original Run List: [recipe[cfncluster::slurm_config]]
[2022-08-12T21:01:25+00:00] WARN: Original Run List: [recipe[cfncluster::slurm_config]]
[2022-08-12T21:01:25+00:00] WARN: Overridden Run List: [recipe[cfncluster::_prep_env]]
[2022-08-12T21:01:25+00:00] WARN: Overridden Run List: [recipe[cfncluster::_prep_env]]
resolving cookbooks for run list: ["cfncluster::_prep_env"]
Synchronizing Cookbooks:
  - cfncluster (1.6.0)
  - build-essential (8.1.1)
  - tar (2.1.1)
  - poise-python (1.7.0)
  - selinux (2.1.1)
  - nfs (2.5.1)
  - sysctl (1.0.5)
  - yum-epel (3.1.0)
  - openssh (2.6.3)
  - apt (7.0.0)
  - yum (5.1.0)
  - hostname (0.4.2)
  - line (1.0.6)
  - seven_zip (4.2.2)
  - mingw (2.1.4)
  - poise (2.8.2)
  - poise-languages (2.1.2)
  - ohai (5.3.1)
  - iptables (8.0.0)
  - hostsfile (3.0.1)
  - poise-archive (1.5.0)

Running handlers:
[2022-08-12T21:01:26+00:00] ERROR: Running exception handlers
[2022-08-12T21:01:26+00:00] ERROR: Running exception handlers
Running handlers complete
[2022-08-12T21:01:26+00:00] ERROR: Exception handlers complete
[2022-08-12T21:01:26+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 03 seconds
[2022-08-12T21:01:26+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2022-08-12T21:01:26+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2022-08-12T21:01:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-08-12T21:01:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-08-12T21:01:26+00:00] FATAL: Chef::Exceptions::CookbookChefVersionMismatch: Cookbook 'seven_zip' version '4.2.2' depends on chef version [">= 15.3"], but the running chef version is 14.2.0
[2022-08-12T21:01:26+00:00] FATAL: Chef::Exceptions::CookbookChefVersionMismatch: Cookbook 'seven_zip' version '4.2.2' depends on chef version [">= 15.3"], but the running chef version is 14.2.0

2022-08-12 21:01:26,272 [ERROR] Error encountered during build of chefPrepEnv: Command chef failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 542, in run_config
    CloudFormationCarpenter(config, self._auth_config).build(worklog)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 260, in build
    changes['commands'] = CommandTool().apply(self._config.commands)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/command_tool.py", line 117, in apply
    raise ToolError(u"Command %s failed" % name)
ToolError: Command chef failed
2022-08-12 21:01:26,275 [ERROR] -----------------------BUILD FAILED!------------------------
2022-08-12 21:01:26,275 [ERROR] Unhandled exception during build: Command chef failed
Traceback (most recent call last):
  File "/opt/aws/bin/cfn-init", line 171, in <module>
    worklog.build(metadata, configSets)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 129, in build
    Contractor(metadata).build(configSets, self)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 530, in build
    self.run_config(config, worklog)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 542, in run_config
    CloudFormationCarpenter(config, self._auth_config).build(worklog)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 260, in build
    changes['commands'] = CommandTool().apply(self._config.commands)
  File "/usr/lib/python2.7/dist-packages/cfnbootstrap/command_tool.py", line 117, in apply
    raise ToolError(u"Command %s failed" % name)
ToolError: Command chef failed
2022-08-12 21:01:26,468 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-1.amazonaws.com/
2022-08-12 21:01:26,468 [DEBUG] Signaling resource MasterServer in stack cfncluster-RandomName with unique ID i-0XXXX....XXXX and status FAILURE

Would like to get a fix or a workaround suggestion. Thank you.

Hi @ezotkina
you're facing a known issue with an old version of ParallelCluster: https://github.com/aws/aws-parallelcluster/issues/2706
It seems to me you're using cfncluster 1.6.0.
Can you confirm you're using an old ParallelCluster version?
We strongly suggest you to create a new cluster with the latest version of the product that is 3.2.0.
Please check also ParallelCluster Support Policy
Thanks

@enrico-usai Yes, the logs above are from the latest version of "cfncluster" (1.6.1, October 2018, as it exists on pypi) that somebody else used in legacy code here. Seems really old.
I switched to latest "parallelcluster" and am able to do now what I want.
Thank you very much.


TicketMonster did not start

after deploying the lab the TicketMonster application gave an "bad gateway" error
I recommend adding steps on how to recover from this error

Instructions added to guide in order to make users check VMs.

Reviewed and modified autostart in vSphere 5.5

Shutdown before creating blueprints done keeping NFS server for last and wait until others are down.

Startup procedure starts Storage VM first

Updated Ansible in the Workstation to 2.6
Created a playbook to start VMs
https://github.com/RedHatDemos/RHS-Infrastructure_Migration/blob/master/playbooks/start_vms.yml
Added it to workstation during boot.


segmentation fault (core dumped)

On my "Arch Linux" machine, every demo fails with:
- segmentation fault (core dumped)  ./gears

Apr 15 18:59:18 obelix systemd-coredump[4423]: Process 4421 (gears) of user 1000 dumped core.

Stack trace of thread 4421:
#0  0x00007fa103e95833 n/a (libnvidia-glcore.so.364.16)
#1  0x0000000000410cfe _ZN7vkTools10loadShaderEPKcP10VkDevice_T21VkShaderStageFlagBits (gears)
#2  0x000000000040a29b _ZN17VulkanExampleBase10loadShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE21VkShaderStageFlagBits (gears)
#3  0x0000000000407d43 _ZN13VulkanExample16preparePipelinesEv (gears)
#4  0x0000000000408f5c _ZN13

VulkanExample7prepareEv (gears)
#5  0x00000000004073e3 main (gears)
#6  0x00007fa105822710 __libc_start_main (libc.so.6)
#7  0x0000000000407649 _start (gears)

OS: Arch Linux x86_64
Kernel Release: 4.5.0-1-ARCH
Type: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
NVIDIA Driver Version: 364.16
Server Vendor Version: 1.18.3 (11803000)
GPUs: GeForce GTX 680 (GPU 0)

I have tested the precompiled binaries.
gears-strace.txt

Can you run the examples with validation enabled and see if the validation reports any errors? Did you put the data folder beside the binary folder?

Is your folder structure:
vulkan-examples
 - bin *(where bloom, computeparticles, etc resides)*
 - data *(where font.fnt, models/, etc resides)*

?

@z3ntu
Yes and today, after a reboot only "pushconstants" is crashing. All other demos are working now.
1440 segmentation fault (core dumped)  ./pushconstants

@SaschaWillems
What do you mean with "Can you run the examples with validation"?

At the top of every example, you'll see:
#define ENABLE_VALIDATION false

The triangle example also includes an explanation:
// Set to "true" to enable Vulkan's validation layers
// See vulkandebug.cpp for details

On windows it's also possible to enable validation with a command line parameter. I'll add that to the linux code path in the future.
Please note that you need to have the LunarG Vulkan SDK installed in order to use the validation layers.

@dR3b pushconstants crashes for me too:

./pushconstants
fish: “./pushconstants” terminated by signal SIGSEGV (Address boundary error)

@z3ntu : On what GPU? It won't run on my Intel (SandyBridge). I guess push constants are not yet implemented with the Mesa Intel Vulkan drivers.

GTX850M with Nvidia 364.16 driver, Arch Linux

Can you please run the examples with Validation enabled (requires an installed SDK) and see if the validation layers report any errors? The push constant samples run fine here on NVIDIA (980 and Shield) and AMD (R9 390).

So I installed vulkan-validation-layers with pacman -S vulkan-validation-layers (also installed vulkan-headers, set #define ENABLE_VALIDATION true in pushconstants/pushconstants.cpp recompiled, but I still get fish: “./pushconstants” terminated by signal SIGSEGV (Address boundary error) when launching.

In which line does the SIGSEGV occur? Can you step through the code?

How do I do this? I am just compiling it with cmake and running it in the terminal.

Apparently in https://github.com/SaschaWillems/Vulkan/blob/master/base/vulkanMeshLoader.hpp#L350

Debug info there:

Thx for your effort. What's the ASSIMP version you're using? It seems that ASSIMP doesn't load the normals for that mesh, though it actually has normals (just checked).

assimp 3.2-2

I get the same problem. Only pushconstants is segfaulting. gdb backtrace is the same as the one cited by z3ntu
Running with strace, I found out the it is trying to open a missing samplescene.obj.mtl file:
$ strace ./pushconstants
   ...
open("./../data/models/samplescene.obj.mtl", O_RDONLY) = -1 ENOENT (No such file or directory)
   ...
open("./../data/models/samplescene.obj.mtl", O_RDONLY) = -1 ENOENT (No such file or directory)

This is the aiMesh struct values:
paiMesh	const aiMesh *	0x9fa1b0
	mPrimitiveTypes	unsigned int	2
	mNumVertices	unsigned int	64
	mNumFaces	unsigned int	32
	mVertices	aiVector3D *	0x9fa6c0
	mNormals	aiVector3D *	0x0
	mTangents	aiVector3D *	0x0
	mBitangents	aiVector3D *	0x0
	mColors	aiColor4D *[8]	0x9fa1e0
	mTextureCoords	aiVector3D *[8]	0x9fa220
	mNumUVComponents	unsigned int [8]	0x9fa260
	mFaces	aiFace *	0x9577d8
	mNumBones	unsigned int	0
	mBones	aiBone **	0x0
	mMaterialIndex	unsigned int	0
	mName	aiString	{...}
	mNumAnimMeshes	unsigned int	0
	mAnimMeshes	aiAnimMesh **	0x0

System specs:
Ubuntu 16.04
GeForce GTX 950M
Driver 364.19

@gqmelo : That's odd as ASSIMP shouldn't fail if the .mtl file is missing (or at least does not for me). I have pushed a commit that uses the COLLADA version of the mesh instead of the .obj one.
Can you check again? Thx!

Yep, pushconstants does work now.

@SaschaWillems, now it is working for me too

@SaschaWillems ./computeparticles still doesn't work (SIGSEGV)

@z3ntu : Instancing and multithreading fail because they can't load resources (texture and mesh). Is your data folder up-to-date?
Compute works fine for me on NVIDIA (GTX 980, Shield TV), AMD (R9 390) and Intel (Haswell, Linux).

Yep, I downloaded the data package again and extracted it. Binaries were compiled from the newest git source.

Where did you download? You need to get the current data directory from this repository.
I'll try to update the released binaries and data packages this weekend, but until then you need to compile and run from the repo.

Okay everything works now. Thanks.


Include SDK version, operation to API calls

Suggestion:

x-xata-sdk-version, x-xata-sdk-operation
User Agent

SGTM.

Thanks for this @SferaDev!
Could you give me a couple of examples of the sorts of values we might pass?
How would this work for our second SDK e.g. python? How would it work for non-SDK clients e.g. CLI, (and maybe the frontend?)

What about User-Agent: Xata/0.13.0 (TypeScript; getMany) without any headers to be implemented?

I've kept it simple, added Xata client-ts/0.13.0 for now. Operation should probably need a custom header, but I don't have the information in the fetcher so it's more complicated.


Unable to --add-to-schedule

I'm able to run all the commands except --add-to-schedule. Am I missing something ? Please help, thanks!
%run accelerate_workbooks.py --add-to-schedule "SCHEDULE" "PRODUCTION/Non-Realtime Dashboard/performance_d"
ERROR:root:File 'accelerate_workbooks.py\u202f--add-to-schedule.py' not found.
The rest works as below:
Workbook Acceleration is enabled for the following workbooks
+--------------+-----------------------------------------------------------------------+-------------+---------------------------+--------------------------+
| Site         | Project/Workbook                                                      | Status      | Last Updated              | Task Running Time (Secs) |
+--------------+-----------------------------------------------------------------------+-------------+---------------------------+--------------------------+
| DolfinWallet | PRODUCTION/Non-Realtime Dashboard/=activeness          | accelerated | 2020-10-15 15:53:53+07:00 |                    124.0 |
| DolfinWallet | PRODUCTION/Non-Realtime Dashboard/=performance_d           | accelerated | 2020-10-15 15:21:48+07:00 |                     28.0 |
| DolfinWallet | PRODUCTION/Non-Realtime Dashboard/=kpi               | accelerated | 2020-10-15 15:19:03+07:00 |                     12.0 |
| DolfinWallet | PRODUCTION/Non-Realtime Dashboard/dolfin_transaction                  | accelerated | 2020-10-15 15:53:39+07:00 |                      9.0 |
| DolfinWallet | PRODUCTION/Non-Realtime Dashboard/segment | accelerated | 2020-10-15 15:22:06+07:00 |                      8.0 |
+--------------+-----------------------------------------------------------------------+-------------+---------------------------+--------------------------+
Scheduled Tasks for Workbook Acceleration
+-----------------------------------------------------------------------+----------+-------------+
| Project/Workbook                                                      | Schedule | Next Run At |
+-----------------------------------------------------------------------+----------+-------------+
| PRODUCTION/Non-Realtime Dashboard/segment | *        |             |
| PRODUCTION/Non-Realtime Dashboard/performance_d           | *        |             |
| PRODUCTION/Non-Realtime Dashboard/kpi               | *        |             |
| PRODUCTION/Non-Realtime Dashboard/activeness          | *        |             |
| PRODUCTION/Non-Realtime Dashboard/transaction                  | *        |             |
+-----------------------------------------------------------------------+----------+-------------+
*The Workbook Acceleration views for these workbooks will be updated when they are published, or when their extract is refreshed.

Seems the command is not formatted right as "accelerate_workbooks.py\u202f--add-to-schedule.py" is considered as a python file name. You could split the command in to multiple lines like
run accelerate_workbooks.py
--add-to-schedule
"SCHEDULE"  \
"PRODUCTION/Non-Realtime Dashboard/performance_d"


after stopping the client, server still tries to contact it endlessly

client side wireshark

194.180.x.x is the server, <IP_ADDRESS> is the client
at packet 90 i stopped the client, but the server still tried to contact it endlessly every 3 seconds, i waited 8 hours and it didn't stop.
please implement a timeout or detect icmp port unreachable messages, thank you

that's because on the server side some your application is still trying to send traffic over the VPN. tinyfecVPN server was just faithfully encapsulating and forwarding your packet to tinyfecVPN client.
the current behavior is similiar to wireguard. I don't think this is a bug or desgin problem.

please implement a timeout and detect icmp port unreachable messages, thank you

if you have special need you can fork the code and implement a customize version

"that's because on the server side some your application is still trying to send traffic over the VPN. tinyfecVPN server was just faithfully encapsulating and forwarding your packet to tinyfecVPN client."

i verified that there is no data going through the tun interface before stopping the process, if i don't stop the client then this is what i see

Hi, sorry my last reply was wrong.
There is a keep_alive_feature which sends packets every 3s, so that the NAT device won't revoke the NAT channel.
In https://github.com/wangyu-/tinyfecVPN/blob/master/tun_dev.h, there is a:
const int keep_alive_interval = 3000;  // 3000ms

Currently I didn't make it a tune-able parameter.  If you want to disable this feature, you can change 3000 to a super large value.

I can make this const int keep_alive_interval = 3000;  // 3000ms tune-able from a cmdline argument in the next release.
But not planning to add detecing loss of connection.

please implement a timeout or detect icmp port unreachable messages

In my desgin I would like the VPN to be still working after recovering from a long period of network outage, regardless of how long the outage is.  The current desgin is (almost) stateless and connection-less.
tinyfecVPN is meant to be tiny and simple. So I want to avoid the concept of connection and timeout.
If you need VPN with more feature, maybe you can use "UDPspeeder" + "wiregaurd or openvpn"

thank you, my country is VERY strict on internet censorship and i just wanted to avoid long udp sessions. my upload speed is only 600kbit/s and udpspeeder + wireguard uses a bit more bandwidth than tinyfecvpn so i wanted to use tinyfecvpn. i'll just stop the server when it's not in use

i just wanted to avoid long udp sessions

if that's the main concern you can change:
const int keep_alive_interval = 3000;  // 3000ms

to
const long long keep_alive_interval = 1e17;

Re-compile at server side, then server will never send any packet on it's own. And you will not need to stop the server manually.

oh, thanks for mentioning it again, i didn't get it at first, this will work nicely, thank you!


it doesn't save properly

Describe your bug here. If you are modding, try testing your bug in a clean version of the engine instead. Also, if you're using an older version of JSE, please try the latest version/action build. Also, be sure to check the pinned 'JS Engine: Known Issues' issue, to check if your issue hasn't already been found!

Command Prompt/Terminal/Crash logs (if existing)
a

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
a

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
a
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
None
Did you check for any similar issues to what you're reporting? Check, then come back here. If there is a similar issue, then do not report the issue, otherwise it will be marked as a duplicate.
Yes

CAUSE OF PROBLEM HAS BEEN FOUND!!!
apparently i forgot to remove the redAnim save thing when i ported the note splashes to the new system, so any time you save it would add redAnim to the config file. however, because that doesn't exist anymore the game treats it like offsets and it breaks

fixed in latest commit


Suggestion: Avoid automagical name-matching, use functional mappings.

Probably, as a future development, there could be an option to map props to providers manually, not automagically, if that's not against the concept. Could be useful for more predictability and decoupling from specific provider and reducer names.
@timbur What do you think?

Good idea! There actually isn't any magic to it, which will hopefully be clear in my next (shorter) write-up. It's literally just a single loop that compares the propTypes to the provider's actions and reducers. I like this idea though so I'll think about what might be the best method to explicitly map things. There is actually already a way to do it but I'll need to take a closer look at possibly improving the API.

@sompylasar Does my latest post on medium help things seem less magical?
And what do you think would be a potential use-case and an ideal API for what you're asking?  The earliest version of this library did actually allow you to explicitly assign providers to components, but I removed it because it added unnecessary boilerplate.  So now that I've thought about it some more, I'm not entirely sure how necessary it would be to put that functionality back into this library plus the ability to remap action keys and/or reducer keys.  If you need to remap action keys and/or reducer keys, it would be as easy as this:
import provideSomething from 'provide-something';

const actions = {
  someRenamedAction: provideSomething.actions.someAction,
  etcEtc: provideSomething.actions.etc
};
const reducers = {
  someRenamedReducer: provideSomething.actions.someReducer,
  etcEtcEtc: provideSomething.actions.etcEtc
};
const provideSomethingElse = { ...provideSomething, actions, reducers };

export default provideSomethingElse;

Perhaps the best way to think about providers and their actions and reducers is in the same vein of every other import within your app - i.e., all your imports are uniquely named as well.

Also consider that we have provider factories like provide-array and provide-map for common data structures that are likely to be used multiple times within the same app, and thus need unique keys.

Reading...

And reducers are mapped such that components will always have the current state of the provider’s relevant reducers.

Reducers have no state, it's the store which has one.

And what do you think would be a potential use-case and an ideal API for what you're asking? The earliest version of this library did actually allow you to explicitly assign providers to components, but I removed it because it added unnecessary boilerplate. So now that I've thought about it some more, I'm not entirely sure how necessary it would be to put that functionality back into this library plus the ability to remap action keys and/or reducer keys.

Right, I see.

If you need to remap action keys and/or reducer keys, it would be as easy as this:

But if you have an app with 50+ providers, and then some day you need to reuse 10+ of them in the next app, I doubt you'll want 10+ renaming modules like in this easy example.
So you should plan ahead for the actions and reducers names -- prefix them, make them unique etc. -- to avoid such boilerplate later. From both articles this is not obvious, because there is just count, increment and decrement -- not providersExampleAppCount, providersExampleAppCountIncrement, providersExampleAppCountDecrement.

BTW, your second post is great and useful, too.

In summary, the best thing to do is:

Think of providers actions and reducers as any other import statement, but specific to components of course, and always up-to-date state.
Use provider factories for semi-common data structures so that keys can easily be unique.


create dropdown menu UI (e.g., File, Edit, Help, etc.)

Currently the options selectable by the user at just some checkboxes across the top of the screen, plus some buttons on the right.
Create a standard dropdown menu (a.k.a. curtain menu) to be able to set all of these options.
Also allow the menu of edit modes/selection modes on the right to be hidable, and change them as in cadnano to be represented by a small icon, with the text only appearing on a hover. But perhaps it is good to keep the shortcut key visible without a hover.

@dave-doty I started looking into the library. I think we should replace the entire MenuComponent with Navbar. I think we should plan out what the menu UI should look like (what buttons and options there are).

Closed by commits from https://github.com/UC-Davis-molecular-computing/scadnano/commit/61cae84b86092ecb2d72a30433c3a86d37c41102 to https://github.com/UC-Davis-molecular-computing/scadnano/commit/8894cc0a66641094703033614ff24ce33e79c7b3


Wrong System Information

Expected behavior

As i understand it should return the user system information. e.g if user hit our application from windows it should return windows machine information. or if user hit from mac it should return so.

Actual behavior

It is returning the machine information where is server running instead of user machine. like my application recently hosted in AWS.

Steps to reproduce the problem

nothing fancy I just require and used very core details below is the code

    //get exact time of method call
    let timeStamp = new Date();
    //check null values of params
    let params = {};
    si.getStaticData(data => {
        details.platform = data.os.platform;
        details.version = data.os.distro;
        details.arch = data.os.arch;
        details.ip4 = data.net[0].ip4;
        details.ip6 = data.net[0].ip6;
        details.mac = data.net[1].mac;
        if(level === 'info'){
            params = meta.params[0] || {}
        }
        else{
            params = {
                error: meta.params.error,
                reason:meta.params.reason,
                details: meta.params.details,
                message: meta.params.message,
                type: meta.params.errorType,
            }
        }
        Meteor.call('logs.insert', {
            log:{
                level: level,
                log: msg,
                params: params,
                details: details,
                timeStamp: timeStamp,
                record: meta.doc
            }
        }, (err, response) => {
        })
    });
});```

### Specifications

- package version: ~2.3.1
- operating system: LInux (Ubunut x64)
- hardware: description: Portable Computer
    product: Inspiron 5521 (xxx123x#ABA)
    vendor: Dell Inc.
    version: A05
    serial: 51MC0X1

### Problem and possible solution
Is am getting the module wrong what should I do then it will return the user machine information instead of that machine where server running. am using it within Meteor
![image](https://user-images.githubusercontent.com/5462788/32403625-1ae674b6-c0fc-11e7-9cea-08ad0533c628.png)

Systeminformation should (and does) return system informations of the machine, where the code is running (which is the server side). The library uses a lot of OS specific functions.
On the client this will not work, because from within the browser, your access to os specific functionality is super limited - for security reasons.


Nested  need to be wrapped in another component in v4

Take this example:
<Match pattern="/users" children={() => (

     <Match pattern="create" component={CreateUser}/>
     <Match pattern="delete" component={DeleteUser}/>

)}/>

It would be nice to not have to wrap the children. It would also be nice to be able to provide the  children as React elements and not be forced to use a function. Like this:
<Match pattern="/users">
  <Match pattern="create" component={CreateUser}/>
  <Match pattern="delete" component={DeleteUser}/>
</Match>

If we did that then we'd have to make react-dom a dependency (because we'd have to make the div). This way we work on all platforms, web, native, vr (?).

@ryanflorence would it work with an array?
<Match pattern="/users" children={() => [
  <Match key="1" pattern="create" component={CreateUser}/>
  <Match key="2" pattern="delete" component={DeleteUser}/>
]}/>

No, because match doesn't render anything, but you can make your own match w/ a div wrapping its children with a couple lines of code and use that. Compose!

I wonder if React will some day allow returning an array of children from render?

According to this, the new Fiber algorithm will support multiple children as a result of render.
But this is quite very long-term perspective, so you can't rely on it in current solutions, however you can hope that eventually it will become better.

Cool!

Is there currently another way to nest routes with react router v4 then the one shown in the first post?
I find a lot of examples like this:
    <Route path="/" component={App}>
      <Route path="/repos" component={Repos}/>
      <Route path="/about" component={About}/>
    </Route>

However, v4 is not like this anymore because it uses Match instead, right?

@jonas-db You would include those child routes in the <App> component.
note: I am writing this using relative paths which are not supported, but hopefully will be in the near future.
const App = () => (

    <Switch>
      <Route path="repos" component={Repos} />
      <Route path="about" component={About} />
    </Switch>

)


Fill path with geoJSON

Is there a way to apply a pattern to a geoJSON?
I've tried several methods, but I seem to be missing something and couldn't find anything on the documentation.

@marulango I am also interested in styling GeoJSON

I added a code example https://teastman.github.io/Leaflet.pattern/pattern-geojson.html


Option to customize landing page with centerred service layout

Summary
OSCM markeptlace owners want to have there service list in a centerred view.
Details
Provide an option by mp.scss to customize the layout of landing page service in a way that the service cards appear in center and not left aligned. A solution over scss only would be preferred. In case this requires a jsf view modification, the change should not impact the default layout. Meaning, for instance an additional custom class or more being added on the view is fine - I am okay to create a new build on Docker Hub. But such class needs to be without effect - empty or unused - in the default mp.scss, and only allow to creating a respective center styling via custom branding mp.scss.
Acceptance criteria

[ ] Default branding is preserved - right aligned bootstrap grid layout with service cards
[ ] Sass/CSS code solution (mp.scss or customBootstap variables) is provided to center the layout
[ ] Screenshot is provided and accepted

Additional context
Ask me

Hi @KabacinskiPiotr
I have found you solution in https://reviewable.io/reviews/servicecatalog/oscm/1140#- and approved. On the other hand, let's not change the default layout. Please find my acceptance criteria above.
I understand that your customizing solution with centering the service cards is by styling the class alignServices that you have added.
in _serviceContentBox.scss
.alignServices {
  justify-content: left;
}

Please remove the  justify-content: left; for the default layout.

@KabacinskiPiotr
Your solution is fine. I have approved your PR https://github.com/servicecatalog/oscm/pull/1140. Thank you.


Cannot create container for service da-node: invalid mode: readonly

When I ran this command
docker-compose up -d
(I can't use docker compose up -d, Error occured "docker: 'compose' is not a docker command.")
So I used docker-compose.
Then Error occured like below.

What is my mistake?

Do I need to use "docker compose"?
docker-compse is V1, docker compose is V2.

If I run docker compose up -d (after installing docker compose V2)
error occured like this:
network eigenda-network was found but has incorrect label com.docker.compose.network set to "eigenda-network"

it's quite possible that your previous docker-compose command is messing with. can you delete all networks manually and start fresh?

closing due to inactivity


KAFKA-10559 | Initial Commit

This PR addresses https://issues.apache.org/jira/browse/KAFKA-10559.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@vamossagar12 -- contributions to Apache Kafka, should be targeted against the official Apache Kafka repository (https://github.com/apache/kafka), not against Confluents fork of Apache Kafka. -- Can you please open a PR against the correct repository so we can review and merge your PR?

Thanks @mjsax .
Closing this in favour of https://github.com/apache/kafka/pull/9432


Right Click

Hi, is there a way to enable the right mouse button?

Hello. So there is no way that I am aware of to enable the "right-click" functionality of a regular browser session in electron. Generally, you build your own context menu for right-click.
Is there any particular function that you are looking for, when using the right-click. I may be able to modify the code, and add a menu item for it.


LspCodeAction unable to create files.

Getting following error when trying to create file with rust-analyzer
Error: request textDocument/codeAction failed (Client does not support create capability., error = RequestFailed)

Can you describe the list of steps (along with a sample rust file) to reproduce this issue?

# create new project
cargo new hola

# open file
vim hola/src/main.rs

# add following line to top of file
mod io;

Screenshots
neovim lsp code action

vim-lsp code action

Thank you.

I have committed the change https://github.com/yegappan/lsp/commit/491a32144022a0fa3ac174fea60dfb133779383e to support this.  Can you try out the latest version of the plugin?

In the latest version, creating files works but renaming file throws an error Error: Renaming files not supported.

Can you add the steps for renaming files using the Rust language server?

In line mod io place cursor in io
call LspRename and enter new name

Thanks for the steps.  I have committed https://github.com/yegappan/lsp/commit/72301ac00707579f7e85f91c6ba95e3a962123d5 to add support for renaming files.  Can you try using the latest version of the plugin?

New Update works as expected.
Thank you for the quick fix and for a great tool.


Questions about workflow_config_hist_Alpha360.yaml: Are model_path, stock2concept and stock_index necessary?

❓ Questions and Help
There are some args of model HIST in workflow_config_hist_Alpha360.yaml like this：
model_path: "benchmarks/LSTM/model_lstm_csi300.pkl"
stock2concept: "benchmarks/HIST/qlib_csi300_stock2concept.npy"
stock_index: "benchmarks/HIST/qlib_csi300_stock_index.npy"
Some qusetions:
1 It seems model_path is a pretrained model. Is it necessary? If it was setted as None, what gonna happen?
2 I downloaded the stock2concept matrix and found there were nearly 4000 concepts and 735 stocks. If I want train the model based on a larger instrument, how can I expand the stock2concept matrix?
3. If I want to pretrain an LSTM model, can I just use the config file [workflow_config_lstm_Alpha360.yaml] with little modifications? (https://github.com/microsoft/qlib/blob/main/examples/benchmarks/LSTM/workflow_config_lstm_Alpha360.yaml)
Thank you!

Hello, can you share the downloaded dataset with me, I can't get on Yahoo, thank you very much.

Hello, can you share the downloaded dataset with me, I can't get on Yahoo, thank you very much.

Use the qlib default data, the file name is "20230602160236_qlib_data_cn_1d_latest.zip"


[5.0] - Add some more details to composer.json files

Good idea, yeh. We still get issues and pulls to the wrong repos. This might help reduce that confusion.


Changed version of carthage command in readme

DCO1.1 Signed-off-by: Thomas Boop<EMAIL_ADDRESS>

Hi boopt2,
Thanks for submitting this pull request!
I can confirm that the DCO1.1 sign-off has been included. It is okay to process this pull request.
dco-bot


Use Git walker to avoid using GitHub API

Signed-off-by: Ruturaj Mohite<EMAIL_ADDRESS>Description
Replaces GitHub walker with Git walker to avoid using the GitHub API which causes rate limit issues
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

@gr455 Thanks


Sessions expired in memcached with very high webapp session timeout (e.g. 1 year)

From martin.grotzke on July 29, 2011 10:34:13
This was reported on the mailing list (http://groups.google.com/group/memcached-session-manager/msg/822b244d81aaba5a):

"Well, we finally got round to properly testing the session stuff.
At first we were not getting a lot of success, but after debugging
what was going on we discovered that our (rediculously high)
session timeout value was causing problems.

Quoting from http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt

Expiration times
----------------

Some commands involve a client sending some kind of expiration time
(relative to an item or to an operation requested by the client) to
the server. In all such cases, the actual value sent may either be
Unix time (number of seconds since January 1, 1970, as a 32-bit
value), or a number of seconds starting from current time. In the
latter case, this number of seconds may not exceed 606024*30 (number
of seconds in 30 days); if the number sent by a client is larger than
that, the server will consider it to be real Unix time value rather
than an offset from current time.

As our session timeout was set at one year (!) and
memcached-session-manager was passing this value on unchanged,
memcached interpreted the value as a Unix epoch date, which evaluates
to some time in the past; hence the sessions were expired by memcached
immediately.

We've solved our problem by setting the timeout to 30 days now,
but I suggest that memcached-session-manager should inspect the
timeout and correct accordingly; perhaps always convert to Unix epoch?"
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=104

From martin.grotzke on December 18, 2013 14:46:48
 Issue 187  has been merged into this issue.

From martin.grotzke on December 18, 2013 14:48:13
Fixed in master.
Status: Fixed
Labels: Milestone-1.6.6

From martin.grotzke on December 19, 2013 02:04:25
 Issue 187  has been merged into this issue.

From martin.grotzke on December 20, 2013 14:28:33
(No comment was entered for this change.)
Labels: -Milestone-1.6.6 Milestone-1.7.0

From<EMAIL_ADDRESS>on December 26, 2013 23:20:55
Can you please update, the session will be expired immediately on the first request itself or its may come after a few minutes the user is still active in the system. Because in my test i am facing an issue where i am getting 403 error which is session might have expired after the user is active for more than 30 minutes into the system. we are using the cluster with auto scaling and we have session failover jars 1.6.5

From martin.grotzke on December 27, 2013 00:48:50
This issue was fixed in 1.7.0. If you're experiencing issues with 1.7.0 please provide enough details like e.g. your msm configuration and session-timeout.

From martin.grotzke on December 27, 2013 22:48:48
 Issue 187  has been merged into this issue.


Integration with solr

Hi,
I am new to solr. I have downloaded kuromoji
And placed it in solr-5.3.0\server\lib
And added

in solr-5.3.0\server\solr\configsets\basic_configs\conf
Now if i do search it should treat each of search term as japanese right?
Or do i need to specify which text should be treated as japanese

Apache Solr already is already bundled with JapaneseTokenizer (based on Kuromoji) since version 3.6.  Simply use field type text_ja and you should be able to search Japanese just fine.  There's no need to put any jars anywhere to use Japanese - it works out-of-the-box.
See https://speakerdeck.com/atilika/japanese-linguistics-in-lucene-and-solr for more information on features, etc.

hi ,
Thanks for quick reply.
Can you tell me where should i write this text_ja
in schema.xml or solrconfig.xml of my core
And also if schema.xml which file should i use. As there are several schema.xml

Please have a look at the Apache Solr documentation on https://cwiki.apache.org/confluence/display/solr/Getting+Started for further details. Thanks.


[Documentation] "Install" section in README does not make sense

Say I am new to libp2p and just want to install whatever npm package I need to get started so I can run example code in tutorials. I come to the js-libp2p page on github. I look under "Install". It gives the npm line to run to install, then says,

this module is only a skeleton and should not be used directly other than libp2p bundle implementors that want to extend its code

So… wait. I shouldn't install it? The line is unclear; it says "don't use", not "don't install".
It also says "as noted above" so I look above. Above it nicely explains that I should use "libp2p-ipfs-nodejs" or "libp2p-ipfs-browser". Great! I'll install one of those. Except those links are links to… javascript files? I search the npm registry. There is no "libp2p-ipfs-browser" there. There is a "libp2p-ipfs-nodejs" but it is marked "deprecated" with a big banner that says to go to… github.com/libp2p/js-libp2p, in other words this page. Later the README suggests I "create my own" libp2p "bundle" but it doesn't explain what thing or collection of things I need to install to create one of those. I don't know exactly what a "bundle" is at this point.
It is clear I am probably looking at the wrong page. Unfortunately you are the top hit on Google for "javascript libp2p". So you have a page which is clearly not the first thing a new user should look at, but because of Google you are the first thing a new user is likely to look at, and you don't link which page within the sprawling libp2p web presence is the first thing a new user should look at.
My "expected behavior"/suggestion is that you change "this module… should not be used" to "this module… should not be installed" (if that is what you mean), and that you provide links in the install section to one of:

What to install instead
What document I should read to understand that "what should I install instead?" is a nonsensical question
If you're going to suggest using the "libp2p-ipfs-nodejs" or "libp2p-ipfs-browser" "bundles", you should say what package(s) to install to use those two "bundles".

"Type: Very Low - Translation or documentation mistake. Something that won't give anyone a bad day." My day is ok so far
(Maybe this is redundant with #231. But that issue is over a year old so maybe resolving #231 is hard and it's worth addressing the smaller problem that you have a "install" section that is not actionable.)

@mcclure thank you for the write up, it's very helpful hearing your experience attempting to get up and running. We are currently finishing up work on the async/await refactor and part of this is rewriting the readme. I would like to include a Getting Started section / standalone readme that covers what modules to install and how to use them for both (Node.js and the Browser).
We are targeting to have a pre release of the refactor early this week, which we will have initial docs ready for.
As the final release of the refactor is likely a few weeks out, I think it would still be valuable to do a quick pass to remove the confusing language and give more direction on how to install modules needed for creating your own bundle

Thanks!
This is the wrong place to ask this, but while I have your attention, a minor related question— are the files in examples/ covered by the same LICENSE as the library?

Yes, they're under the same license.

@mcclure I created a PR where I go into detail regarding libp2p configuration.
Could you please have a look and provide feedback? 😄
Other than this, I will be creating a getting started guide, where I will go through this doc, and talk about what to install among other important introductory stuff

With the docs mentioned during this issue done, this should be improved.


sketch 53 fail to export with symbols and marks

I try the only way to export successfully is to not only del the marks but all the symbols, including iOS UI kit and my symbols created. Now waiting for the updating

Got the same issue

Got the same issue

Summary - Export fails with symbols on the Artboard.
Steps to recreate - 1. Create a new Artboard. 2. Import / create a new symbol. 3. Export specs in Sketch Measure.
Expected Result - Spect export successful.
Actual Result - 1. Export crashes on symbol name. 2. Duplicate affected symbol in layer list.

Same here

@allisonguag @Milan9x @PrakashArjunan @pixelize https://github.com/utom/sketch-measure/issues/536

Same issue. Please fix :)

same here 53.2

@saherwafai @bklaydman  please give this a try:
Remember to uninstall the plugin, restart sketch and install the downloaded version, just to make sure there's no cached plugin information.
Also, make sure you're using Sketch v53.2 (72643).
Get the Fork version (v2.8.0)
Download from sketch-measure-latest
Still not working?
Follow the steps below:

[ ] Uninstall the plugin
[ ] Quit Sketch
[ ] Follow the steps bellow to remove the PluginsWarehouse folder
[ ] Download the latest zip file from the fork
[ ] Reinstall the plugin
[ ] Test the Mark Properties / Spec Export again

Remove the PluginsWarehouse folder that lives in ~/Library/Application Support/com.bohemiancoding.sketch3/. This is where we cache plugin downloads, and if you’ve been testing different versions of your appcast, you probably have some old stuff there that’s worth cleaning.

Go to the Finder of Mac OS
From the “Go” menu navigate down to “Go to Folder” or...
Hit Command+Shift+G from the Mac OS X desktop or a Finder window
Paste the folder location ~/Library/Application Support/com.bohemiancoding.sketch3/
Remove/Delete the PluginsWarehouse folder


How to iterate?

Sorry, if I was just not able to find the relevant documentation entry.
I have something like this:
[p.a]
some = "hey"
[p.bla]
some = "some val"

In a shell script I like to iterate over [p] and work on the values.

Without knowing what you want to do it's hard to help, but here's a sample script where we loop through the a and bla keys and access some within them.
#!/bin/sh

for key in $(dasel -f ./file.toml -w - 'p.keys().all()')
do
        some=$(dasel -f ./file.toml -w - "p.${key}.some")
        echo "found ${some} in ${key}"
done

$ ./do.sh
found hey in a
found some val in bla

Yes, that was what I was after. Thanks a lot and sorry for not seeing it myself.


Backend tools do not work in Windows when started from UNC path

CD command if workraft.bat cannot change directory to a UNC path (those started with \).
As a result the relative path to the backend tools are incorrect.
A solution is to use PUSHD command to change directory - it creates a temporary network drive in case of UNC path. POPD command should be used to release the network drive.

Startup script windows/workcraft.bat is modified in workcraft-dist-template repo.


Required positionals unless flag specified?

The interface I'd like for this command is that it requires all its arguments, unless you specify the optional --interactive flag, in which case you should specify none of them.
foo <a> <b> <c>
foo -i/--interactive

I'm guessing the best way here is to just set up 3 positional arguments and the flag all as optional and do my own validation inside my own method, but then override the entire usage text?  Opening issue in case there is a better way I'm missing.

After struggling with this for a while, I think I've come up with the best solution, which is:

In your DSL, use <blah>, that's what the user will see.
In a params block, override required to false.
Add a check handler, and mimic the errors that would sywac would normally display.

An example:
const bakeImage = {
  aliases: 'bake-image <instance-id> <image-name>',
  params: [
    { required: false, desc: 'Instance to use as the new image' },
    { required: false, desc: 'Name to assign to the new image' },
  ],
  setup: sywac => {
    sywac.boolean('-i, --interactive', {
      desc: 'Use interactive mode'
    });
    sywac.check((argv, context) => {
      if (!argv.interactive && !argv['instance-id'])
        return context.cliMessage('Missing required argument: instance-id');

      if (!argv.interactive && !argv['image-name'])
        return context.cliMessage('Missing required argument: image-name');
    });
  },
  run: argv => { /* etc */ }
};

sywac
  .command(bakeImage)
  .help('-h, --help')
  .showHelpByDefault()
  .parseAndExit();

This will give you the functionality I wanted (either use -i, or specify all arguments).  Sywac will not say the word "required" in the right-hand floater for the positional arguments, but they still look required due to convention, so I'm pretty pleased with the result!

Sorry, just now seeing this. I am AFK but what you came up with is probably what I'd recommend.
If you still want the positionals to display as required, you can also override the hints string in each param object.
The only other thing that comes to mind is the ignore property for your command (tell sywac to ignore certain positionals), but I don't think that's what you want here.
Next time I'm sitting at a computer I'll play a bit and see if I can come up with any other alternatives, but otherwise nice job! And thanks for sharing!


[Bug] Parameter Update API update_weights Fails in DP=2, TP=1 Configuration

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[X] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[X] 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[X] 5. Please use English, otherwise it will be closed.

Describe the bug
I am using sglang==0.3.2, and want to call update_weights in my RLHF training.
However, the model parameter update API call update_weights fails when deploying model with Data Parallel (DP=2) and Tensor Parallel (TP=1)
When trying to deploy the model with data parallelism set to 2 (DP=2) and tensor parallelism set to 1 (TP=1), the API call for updating model parameters fails. This occurs during the parameter update process in the distributed training setup.
The requests call in the sglang http server show:
[14:26:31] Invalid object: UpdateWeightReqInput(model_path='/mnt/data/huggingface/models/Meta-Llama-3-8B', load_format='auto')

Reproduction
python -m sglang.launch_server --model-path /mnt/data/huggingface/models/Meta-Llama-3-8B --host <IP_ADDRESS> --tp 1 --dp 2 --port 11226 --mem-fraction-static 0.9

import requests
import json

model_path = "/mnt/data/huggingface/models/Meta-Llama-3-8B"
def run_update_weights(model_path):
    base_url = "http://<IP_ADDRESS>:11226"
    response = requests.post(
        base_url + "/update_weights",
        json={"model_path": model_path},
    )
    ret = response.json()
    print(json.dumps(response.json()))
    return ret
run_update_weights(model_path)

Environment
WARNING 10-27 14:30:05 cuda.py:22] You are using a deprecated pynvml package. Please install nvidia-ml-py instead. See https://pypi.org/project/pynvml for more information.
Python: 3.10.14 (main, May 29 2024, 23:47:02) [GCC 11.4.0]
CUDA available: True
GPU 0,1: NVIDIA A100-SXM4-80GB
GPU 0,1 Compute Capability: 8.0
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 12.1, V12.1.105
CUDA Driver Version: 535.54.03
PyTorch: 2.4.0+cu121
flashinfer: 0.1.6+cu121torch2.4
triton: 3.0.0
transformers: 4.44.2
requests: 2.32.3
tqdm: 4.66.4
numpy: 1.26.3
aiohttp: 3.9.5
fastapi: 0.111.1
hf_transfer: 0.1.8
huggingface_hub: 0.24.2
interegular: 0.3.3
packaging: 24.0
PIL: 10.4.0
psutil: 6.0.0
pydantic: 2.9.1
uvicorn: 0.30.3
uvloop: 0.19.0
zmq: 26.0.3
vllm: 0.5.5
multipart: 0.0.9
openai: 1.47.0
anthropic: 0.34.2
NVIDIA Topology:
GPU0    GPU1    NIC0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      NV2     PHB     0-31            N/A             N/A
GPU1    NV2      X      PHB     0-31            N/A             N/A
NIC0    PHB     PHB      X
Legend:
X    = Self
SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX  = Connection traversing at most a single PCIe bridge
NV#  = Connection traversing a bonded set of # NVLinks
NIC Legend:
NIC0: mlx5_0
ulimit soft: 102400

Thank you for such a quick pull request to my issue.

https://github.com/sgl-project/sglang/pull/1825

I really appreciate the work of the sglang team! Thanks a lot!

NP. Can you test the PR?

No problem, I will test it with versions 0.3.2 and 0.3.4.

Oh I mean pull the PR and build Sglang locally

Oh I mean pull my PR and build Sglang locally

Oh, got it!
I will test both scenarios: a locally build and also try running version 0.3.2 with only the tokenizer manager file modified.

Oh I mean pull my PR and build Sglang locally

I test this PR with local install. it works:
[2024-10-28 15:38:50 DP1 TP0] Update weights begin. avail mem=5.08 GB
[2024-10-28 15:38:50 DP0 TP0] Update weights begin. avail mem=5.08 GB
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:00<00:02,  1.31it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:00<00:02,  1.30it/s]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:01<00:01,  1.23it/s]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:01<00:01,  1.21it/s]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:02<00:00,  1.24it/s]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:02<00:00,  1.21it/s]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:02<00:00,  1.74it/s]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:02<00:00,  1.52it/s]
[2024-10-28 15:38:53 DP1 TP0] Update weights end.
[2024-10-28 15:38:53 DP1 TP0] Cache flushed successfully!
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:02<00:00,  1.69it/s]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:02<00:00,  1.49it/s]
[2024-10-28 15:38:53 DP0 TP0] Update weights end.
[2024-10-28 15:38:53 DP0 TP0] Cache flushed successfully!
[2024-10-28 15:38:53] INFO:     <IP_ADDRESS>:47156 - "POST /update_weights HTTP/1.1" 200 OK
However, I modify the code in 0.3.2 and it still raise the same error response.

Glad to hear it works on the main. For 0.3.2, it might have other issues since it is quite behind. cc @merrymercy

The PR is merged and will be included in the next release. To unblock yourself now, you can local build sglang on main HEAD.


KAFKA-4641: Add more unit test for stream thread

Before the patch, jacoco coverage test:

Element
Missed Instructions
Cov.
Missed Branches
Cov.
Missed
Cxty
Missed
Lines
Missed
Methods
Missed
Classes

Total
3,386 of 22,177
84%
336 of 1,639
79%
350
1,589
526
4,451
103
768
1
102

StreamThread

77%

76%
27
102
48
299
1
31
0
1

After the patch:
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@bbejeck

left some minor comments


clientv3: how to call public methods of healthBalancer?

i read source codes of clientv3. healthBalancer has some public methods, such as Start, UP, Notify, ConnectNotify, Close etc. but it uses only in Client struct and healthBalancer is private in Client struct, how to call public methods of healthBalancer?

Those public methods were to implement gRPC Balancer interface, so not meant be consumed by etcd client users.

thanks.


Reading file is non-standard

I'm using the "ab+" option when reading the file. This seems to work on debian but NOT on macOS - need to reapproach reading file contents in a more standard way.

resolved in 2b2e7f8eba6eee952c059d0477a310d6f6c5e77d


Change jss version in peer dependencies (+ small fixes)

All changes described in commits
Fix for jsstyles/jss#249

also take a look at https://github.com/jsstyles/jss/issues/219