python310Packages.pylint: 2.14.5 -> 2.15.5

Description of changes
https://github.com/PyCQA/pylint/releases/tag/v2.15.5
https://github.com/PyCQA/pylint/releases/tag/v2.15.4
https://github.com/PyCQA/pylint/releases/tag/v2.15.3
https://github.com/PyCQA/pylint/releases/tag/v2.15.2
https://github.com/PyCQA/pylint/releases/tag/v2.15.1
https://github.com/PyCQA/pylint/releases/tag/v2.15.0
and
https://github.com/PyCQA/astroid/releases/tag/v2.12.12
https://github.com/PyCQA/astroid/releases/tag/v2.12.11
https://github.com/PyCQA/astroid/releases/tag/v2.12.10
https://github.com/PyCQA/astroid/releases/tag/v2.12.9
https://github.com/PyCQA/astroid/releases/tag/v2.12.8
https://github.com/PyCQA/astroid/releases/tag/v2.12.7
https://github.com/PyCQA/astroid/releases/tag/v2.12.6
https://github.com/PyCQA/astroid/releases/tag/v2.12.5
https://github.com/PyCQA/astroid/releases/tag/v2.12.4
https://github.com/PyCQA/astroid/releases/tag/v2.12.3
https://github.com/PyCQA/astroid/releases/tag/v2.12.2
https://github.com/PyCQA/astroid/releases/tag/v2.12.1
https://github.com/PyCQA/astroid/releases/tag/v2.12.0
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg build python39Packages.pylint python310Packages.pylint

The astroid change is necessary for Python 3.11 and is needed by https://github.com/NixOS/nixpkgs/issues/198533.

If there are any packages which fail to build after merging this because of new pylint checks, we should remove type checking from those packages.


Implement Selection Sort in C

Algorithm/Data Structure: Selection Sort
Programming Language: C
Difficulty: ⭐⭐
Issue Details
Description:
Implement the Selection Sort algorithm in C. Selection Sort is a simple comparison-based sorting algorithm that repeatedly selects the minimum element from an unsorted portion of the array and swaps it with the first element in that unsorted portion. Your task is to correctly sort a given array of elements in ascending order using Selection Sort in C.
Additional Information:
If you are new to Selection Sort or need guidance on implementing it in C, feel free to ask questions or seek help in the comments. This is a great opportunity for contributors to gain experience in sorting algorithms and algorithmic optimizations in C.
Note:
Before starting to work on this issue, please comment below to express your interest and let us know if you have any questions or need clarification on the task.

yes i'm learning DSA with c/c++ so that selection sort i already did. So i'm doing selection sort using C.

You have been assigned this issue. Do mention this issue while opening a PR.
Good Luck!

I am a beginner. I have recently learned selection sort in C++, and I also know the C language. I would like to use selection sort in C. Please assign this issue to me.


Add support for 'AND' logical operator for multiple conditions of the same property

What does this PR do?
Add support for AND logical operator for multiple conditions of the same property.
Useful for  using != or <> e.g.
filters:
  - Name:
     - ["!=", "foo"]
     - ["!=, "bar"]

where above results to WHERE Name != 'foo' OR Name != 'bar'  which returns Names foo and bar still. Desired is WHERE Name != 'foo' AND Name != 'bar'
Motivation

AGENT-6778

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Would it make sense to let the user specify a WQL query string directly, instead of creating a custom yaml representation for it?


Added functions to convert word array into numerical array

Added functions to convert word array into numerical array, based on the word's position in YourListOfWords.txt. YourListOfWords.txt is a text file with a word at each line. Users should feel free to add words to the text file manually (through Notepad) or through the function "AddWordToDictionary." Numerical arrays are important for machine learning as natural language neural networks can only understand numerical values.

@therealproprogrammer: sorry, this is not a suitable submission to NLTK.


update password confirmation modal to auto-submit form

submit form after password confirmation is entered on Profile page #533

added ids to buttons on modal
added JS to submit form on 'Continue' click

@jollopre updated that one line. The others though need to be explicit and include the form identifier otherwise #user_password would effect both this confirmation modal and the login/create modals

removed unused import from JS file that was causing linter failure


Update bug_report.yaml to 1.3.1

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

/azp run


Test pre-tested commit

This is testing pre-tested commit.

@bot-gradle test and merge

Error occurs when starting pre-tested commit, please contact administrator.


minimal-regression not working

Device
Minnowbaord Turbot
RTE version
v0.5.3
OSFV version
develop (1a5e1bdd3bdc34427c8e0c114eab13de5fc0ccb3)
Affected component(s) or functionality
minimal-regression
Brief summary
minimal-regression throws errors
How reproducible
Always
How to reproduce
README says that $TEST_SUITE variable can be a uefi-shell.robot but it clearly doesn't work with minimal-regression:
DEVICE_IP=<IP_ADDRESS> RTE_IP=<IP_ADDRESS> CONFIG=minnowboard-turbot ./scripts/run.sh dasharo-compatibility/uefi-shell.robot -- --include "minimal-regression"
robot -L TRACE -l logs/minnowboard-turbot/2024_07_26_12_18_41/uefi-shell.robot_log.html -r logs/minnowboard-turbot/2024_07_26_12_18_41/uefi-shell.robot_report.html -o logs/minnowboard-turbot/2024_07_26_12_18_41/uefi-shell.robot_out.xml -b logs/minnowboard-turbot/2024_07_26_12_18_41/uefi-shell.robot_debug.log -v rte_ip:<IP_ADDRESS> -v config:minnowboard-turbot -v device_ip:<IP_ADDRESS> --include minimal-regression dasharo-compatibility/uefi-shell.robot
[ ERROR ] Suite 'Uefi-Shell' contains no tests matching tag 'minimal-regression'.

Try --help for usage information.

I think it should be $TEST_MODULE?
Then we have a complaint on missing FW_FILE, which also isn;t documented in README:
DEVICE_IP=<IP_ADDRESS> RTE_IP=<IP_ADDRESS> CONFIG=minnowboard-turbot ./scripts/run.sh dasharo-compatibility -- --include "minimal-regression"
robot -L TRACE -l logs/minnowboard-turbot/2024_07_26_12_20_27/dasharo-compatibility_log.html -r logs/minnowboard-turbot/2024_07_26_12_20_27/dasharo-compatibility_report.html -o logs/minnowboard-turbot/2024_07_26_12_20_27/dasharo-compatibility_out.xml -b logs/minnowboard-turbot/2024_07_26_12_20_27/dasharo-compatibility_debug.log -v rte_ip:<IP_ADDRESS> -v config:minnowboard-turbot -v device_ip:<IP_ADDRESS> --include minimal-regression dasharo-compatibility
==============================================================================
Dasharo-Compatibility
==============================================================================
Dasharo-Compatibility.Auto-Boot-Time-Out
==============================================================================
BMM002.001 F9 resets Auto Boot Time-out to default value :: Check ... | FAIL |
Parent suite setup failed:
Variable '${FW_FILE}' does not exist.

If we pass a valid FW_FILE, then we have another error:
FW_FILE=/home/miczyg/Projects/Dasharo/coreboot/intel_minnowmax_v0.9.0-rc1.rom DEVICE_IP=<IP_ADDRESS> RTE_IP=<IP_ADDRESS> CONFIG=minnowboard-turbot ./scripts/run.sh dasharo-compatibility -- --include "minimal-regression"
robot -L TRACE -l logs/minnowboard-turbot/2024_07_26_12_21_07/dasharo-compatibility_log.html -r logs/minnowboard-turbot/2024_07_26_12_21_07/dasharo-compatibility_report.html -o logs/minnowboard-turbot/2024_07_26_12_21_07/dasharo-compatibility_out.xml -b logs/minnowboard-turbot/2024_07_26_12_21_07/dasharo-compatibility_debug.log -v rte_ip:<IP_ADDRESS> -v config:minnowboard-turbot -v device_ip:<IP_ADDRESS> -v fw_file:/home/miczyg/Projects/Dasharo/coreboot/intel_minnowmax_v0.9.0-rc1.rom --include minimal-regression dasharo-compatibility
==============================================================================
Dasharo-Compatibility
==============================================================================
Dasharo-Compatibility.Auto-Boot-Time-Out
==============================================================================
BMM002.001 F9 resets Auto Boot Time-out to default value :: Check ... | FAIL |
Parent suite setup failed:
Initializing library 'osfv.rf.rte_robot.RobotRTE' with arguments [ <IP_ADDRESS> | True ] failed: Failed to retrieve model name from Snipe-IT. Check again arguments, or try providing model manually.
Traceback (most recent call last):
  File "/home/miczyg/Projects/Dasharo/open-source-firmware-validation/venv/lib/python3.12/site-packages/osfv/rf/rte_robot.py", line 42, in __init__
    raise AssertionError(
AssertionError: Failed to retrieve model name from Snipe-IT. Check again arguments, or try providing model manually.

At this point I gave up...
Expected behavior
README is giving good instructions how to run minimal-regression
The minimal-regression is supposed to work on boards supported by OSFV
Actual behavior
README is inaccurate how to run minimal-regression
The minimal-regression throws errors
Link to screenshots or logs
Logs in the reproducibility section
Additional context
No response
Solutions you've tried
No response

README says that $TEST_SUITE variable can be a uefi-shell.robot but it clearly doesn't work with minimal-regression:

It can and it works. It simply says that in this suite does not have such tags. Not each suite will have such tags.

Then we have a complaint on missing FW_FILE, which also isn;t documented in README:

It is in several places, especially the one on running regression.
Some suites need firmware for flashing, some not.

If we pass a valid FW_FILE, then we have another error:

Either in your command, or in snipeit we have an error.
In snipeit the RTE_IP is <IP_ADDRESS>. Which is the correct one?

@philipandag Based on feedback from this issue, can you try to improve readme? My conrete suggesions:

[ ] provide a better example here: https://github.com/Dasharo/open-source-firmware-validation/tree/develop?tab=readme-ov-file#running-tests-with-additional-arguments - maybe add another robot argument, as test case name?
[ ] Document the minimal regression to work with regression.sh under this section: https://github.com/Dasharo/open-source-firmware-validation/tree/develop?tab=readme-ov-file#running-regression-tests

I have refreshed the osfv_cli and reinstalled it, however getting an error when executing make i nthe osfv-scripts/osfv_cli directory:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyopenssl 24.1.0 requires cryptography<43,>=41.0.5, but you have cryptography 43.0.0 which is incompatible.

With the newer osfv_cli I got it working.

I think i added an example of using the additional args in regression.sh but it must have got lost during rebasing :(

@miczyg1 do you consider the issue solved? Please close it if so.


Fix ability to set Enforcer Group's type

Fix the ability to set the type parameter for an Enforcer Group. This requires adding a code block to the expandEnforcerGroup function, which sets enforcerGroup.Type.
Since there is a limited set of inputs that the type parameter can accept, the input is validated via a ValidateFunc function. Also, since the type value cannot be changed once it has been set for an Enforcer Group, ForceNew: true is used to allow recreation of the Enforcer Group resource if the type needs to change (e.g. if the wrong type was initially set for a particular group_id, and the implementer wants to change it).
Since certain Enforcer Group types require that an explicit runtime_type is set (in fact, the only current case is that setting type="kube_enforcer" also requires that runtime_type="docker" is explicitly set), the ability to specify a runtime_type parameter has also been enabled. All Enforcer Group types except kube_enforcer are actually able to accept any passed runtime_type parameter without throwing an error; however, it seems that the agent type (the "Aqua Enforcer" Enforcer Group type) is the only Enforcer Group type that actually makes use of alternate runtime_type parameter values (meaning, those other than docker, e.g. crio, containerd, and garden). Accordingly, since there is a limited set of inputs that the runtime_type parameter should accept, the input is validated via a ValidateFunc function.
It is possible to enable the ability to explicitly set the parameter runtime_type, while also accounting for the fact that it may be omitted from the configuration. Per the terraform-plugin-sdk package, it is possible to set both Computed: true and Optional: true at the same time (ref: https://github.com/hashicorp/terraform-plugin-sdk/blob/v2.14.0/helper/schema/schema.go#L41-L43). The result is that the Optional value will be used (if provided), and if not provided, then a default value will be Computed. In this particular case, the Aqua Server does not actually compute a default runtime_type value; if it is not set in the resource configuration, the value will generally be an empty string (""). However, to account for the fact that the kube_enforcer Enforcer Group type must always have its runtime_type set to docker (regardless of what may have been explicitly set via the runtime_type parameter in the resource configuration), this requirement has been accounted for in the code block that sets the value of enforcerGroup.Type (within the expandEnforcerGroup function). The reason for doing this is that failing to set runtime_type=docker for the kube_enforcer Enforcer Group type would otherwise result in an error (and fail to create the resource), but the actual reason for the failure is not present in the provider's error output. The true cause of the failure is only clear when using another tool for troubleshooting, to hit the API directly (e.g. Postman), in which the following error would be shown:
"Currently  container runtime is not supported, supported container runtime is only docker for kube enforcer"

Codifying runtime_type=docker for the kube_enforcer Enforcer Group type prevents the possibility of ever encountering this otherwise confusion failure condition.
Note: there are duplicate occurrences of d.Set("type", group.Type) in both aquasec/data_enforcer_group.go and aquasec/resource_enforcer_group.go, which have accordingly been removed.
Fix #115

Fixed by #117


Are these actually supported?

We currently use libolm in Jitsi Meet and since it got deprecated I was considering upgrading to vodozemac but:

There is no published package that I can find
These bindings are pinned to a vodozemac version which is over 2 years old
There is zero tests or documentation
No updates for 2 yuears in this repo

What is the path forward here, for those of us using libolm in JS, from a browser?

In a case it helps, this is how the lib can be connected to Web project:

Go to matrix-org/vodozemac-bindings and run the following command wasm-pack build --target web --dev
Move the generated files from the pkg folder to the vendors/vodozemac folder in YOUR project
Declare the folder in package.json as a built-in library: "vodozemac-javascript": "file:vendors/vodozemac"
Import everything from the library, call it to initialize it in the project, and now you can use it anywhere in the project

import initVodozemac, { Account } from "vodozemac-javascript";

initVodozemac().then((res) => {
    const a = new Account();
});

For what its worth, we're going to discuss this tomorrow in a meeting.

For what its worth, we're going to discuss this tomorrow in a meeting.

Thank you!

Sadly the answer is, no, these are not supported.
I kinda expected this situation and pulled the Python bindings, which I'm personally invested in, into a separate repo: https://github.com/matrix-nio/vodozemac-python.
Some other folks seem to have pulled the c++ bindings out as well: https://github.com/matrix-nio/vodozemac-python.
It would probably make most sense to do the same with the WASM bindings.
Sorry.

Opened https://github.com/matrix-org/vodozemac-bindings/pull/10 to make this more prominent and official.

I appreciate the honesty.


Remove error when there are no files to process

This is a problem for me in combination with metalsmith-watch.
The reason is because metalsmith-watch is watching for file changes, and if one of the files in my pipeline changes that doesn't need to be rendered by metalsmith-in-place, metalsmith-in-place is still stopping the whole show with an error, so none of my other file updates get rebuilt.
The proposal here is to not throw an error if there are no files to render. Just consider the process done(). If there are no files to change, we can log that out via the debug.
This should make metalsmith-in-place support partial rebuilds (instead of only full rebuilds).

Ah yeah, that seems annoying. We could add a flag that allows you to suppress the error. Would that work for you?
That way we can release it as a new minor version, and optionally decide to change the behavior for the next major version.

Ah, yes, a flag is probably a better idea. Then we don't have to break anything. Got any good names for such an option? Something like dontFailIfThereAreNoFilesToProcess: true :)

That’s a great name actually, very descriptive 😋
But maybe suppressNoFilesError? Not necessarily the best of names, but wouldn’t know a better one atm.

Love the name.
I went ahead and made these changes and added notes in the README. Tests are failing but doesn't seem to be related to my change.
Let me know what you think.

Thanks for the PR!

Published in 4.2.0


GEOMESA-753 GeoMesa tools REPL

Added 'repl' command to the tools, which drops you into the interactive scalding repl
Repl includes scalding repl, with support for running scalding commands interactively
Repl can be run in 'local' or 'hdfs' mode - only relevant for scalding operations
Added local taps for accessing Accumulo and GeoMesa in local mode

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>

I've removed jline and added a script to install it.

Committed as 7e44d7e8acb297e572baaca45f654c67ed050582 on accumulo1.5.


Different signatures in function setTexture (sf::Sprite and sf::Shape classes)

Hello! This is what we have now:
void sf::Sprite::setTexture	(const Texture & texture, bool resetRect = false) — texture as reference
void sf::Shape::setTexture	(const Texture *  texture, bool resetRect = false) — pointer on texture
Let us assume we have a pointer on some sf::Drawable object and want write a nice function for setting object's texture:
template<typename DRAWABLE>
void setTexture(sf::Drawable* l_drawable, const sf::Texture* l_texture) {
			l_drawable = dynamic_cast<DRAWABLE*>(itr->second);
			drawable->setTexture(l_texture);
			return true;
}

Unfortunately this function will work only for object type sf::Shape.
If we try use it for sf::Sprite like this:
setTexture<sf::Sprite>(l_drawable, &l_texture) our compiler will thow an error:

cannot convert argument 1 from 'const sf::Texture *' to 'const sf::Texture &'

We can solve this by writing an overload version:
void setTexture(sf::Drawable* l_drawable, const sf::Texture& l_texture)
But still it would be nice to have a similar interference for sf::Shape and sf::Sprite.
Besides implementation of that function is very similar for both cases:
void Sprite::setTexture(const Texture& texture, bool resetRect)
{
    // Recompute the texture area if requested, or if there was no valid texture & rect before
    if (resetRect || (!m_texture && (m_textureRect == sf::IntRect())))
        setTextureRect(IntRect(0, 0, texture.getSize().x, texture.getSize().y));

    // Assign the new texture
    m_texture = &texture;
}

and
void Shape::setTexture(const Texture* texture, bool resetRect)
{
    if (texture)
    {
        // Recompute the texture area if requested, or if there was no texture & rect before
        if (resetRect || (!m_texture && (m_textureRect == IntRect())))
            setTextureRect(IntRect(0, 0, texture->getSize().x, texture->getSize().y));
    }

    // Assign the new texture
    m_texture = texture;
}

Note, that privat member m_texture is a pointer to sf::Texture in both classes.
Thanks!

The texture in sf::Shape is optional, not in sf::Sprite. That's the reason.
Next time please discuss this on the forum, this tracker is for confirmed bugs and features.


Universal Router Encoder Doesn't Seem to Work

Versions:
uniswap-universal-router-decoder 0.8.0
web3                             6.0.0b11

I've tried using this encoder a thousand ways. Using a tester blockchain with eth-tester. On Goerli. On Ethereum. Only doing a V2 swap. Only doing a V3 swap. Swapping through WETH with wrap_eth, and swapping between two ERC-20 tokens without it. Not even once have I gotten this encoder to actually work. Sometimes the revert message is stack underflow (0 <=> 1). Other times it's TRANSFER_FAILED. Other times, there's no feedback at all. Please help.
Reproducible Example:
from web3 import Web3
from web3.providers.rpc import HTTPProvider
from uniswap_universal_router_decoder import FunctionRecipient, RouterCodec

rpc_url = ...

w3 = Web3(HTTPProvider(rpc_url))

account_address = Web3.to_checksum_address("0x01DCDb24406CB31C7eC7FcaD7766F6a584D25DE2")

weth_abi = '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"},{"name":"wad","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"guy","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"}]'  # noqa

weth_address = Web3.to_checksum_address("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2")
usdc_address = Web3.to_checksum_address("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48")
weth_contract = w3.eth.contract(address=weth_address, abi=weth_abi)

ur_address = Web3.to_checksum_address("0xEf1c6E67703c7BD7107eed8303Fbe6EC2554BF6B")

# Verify account has allowances of weth and usdc
weth_allowance = weth_contract.functions.allowance(account_address, ur_address).call()
assert weth_allowance >= 1000

v2_path = [weth_address, usdc_address]
v2_in_amount = 500
v2_out_amount = 0
v3_path = [weth_address, 500, usdc_address]
v3_in_amount = 500
v3_out_amount = 0
total_in_amount = v2_in_amount + v3_in_amount

codec = RouterCodec()

encoded_data = (
    codec
    .encode
    .chain()
    .wrap_eth(FunctionRecipient.ROUTER, total_in_amount)
    .v2_swap_exact_in(FunctionRecipient.SENDER, v2_in_amount, v2_out_amount, v2_path, payer_is_sender=False)
    .v3_swap_exact_in(FunctionRecipient.SENDER, v3_in_amount, v3_out_amount, v3_path, payer_is_sender=False)
    .build(codec.get_default_deadline())
)

tx_params = {
    "from": account_address,
    "to": ur_address,
    "gas": 800_000,
    "maxPriorityFeePerGas": w3.eth.max_priority_fee,
    "maxFeePerGas": int(w3.eth.gas_price * 1.1),
    "type": '0x2',
    "chainId": w3.eth.chain_id,
    "value": total_in_amount,
    "nonce": w3.eth.get_transaction_count(account_address),
    "data": encoded_data,
}

# ContractLogicError
w3.eth.estimate_gas(tx_params)

This example uses a throwaway account without much gas money, but you can always use a different account, as I have, and I assume you'd get the same result. I've never been able to get this encoder to actually work. If I'm missing something obvious, I'd be happy for it to be shown to me.

Hello @ariel-simnegar and thank you for your interest in this lib! :)
You have a ContractLogicError here:
# ContractLogicError
w3.eth.estimate_gas(tx_params)

because the weth amount you want to swap is way too low. Keep in mind it is a wei amount. So you try to swap 500 wei of eth  (decimals = 18) into usdc (decimals = 6), but this would not even be 1 wei of usdc , which is the lowest possible value,
So at this step, I would suggest you try either:

with a higher in_amount (maybe something like<PHONE_NUMBER>777778 wei of eth (~$5))
or with dai (decimals=18) i/o usdc

and let me know how it goes.

 Sadly, the suggested higher in_amount still resulted in a transaction revert. I tried in_amounts on the order of 10**18 wei, which should certainly have worked. I also tried it on other wallets which had a >1 ETH balance, but the transaction still reverted. I also tried it with other tokens, on wallets where I had a large enough approved in_amount such that the transactions should have gone through, but they still reverted.
Please feel free to try running the example code yourself, with whatever in_amount you like, and you should get the same result. You can also switch the wallet address I used to any other wallet address with different amounts/approvals, and I'd expect you'd get the same result. I've tried several different wallets with different amounts of ETH, USDC, and other tokens, but the transaction always reverts.

I did run the example code on Mainnet and it succeeded: I got a correct gas estimate.
But, if you try on Goerli without changing any of the addresses, it is normal that your transaction fails.
Here is a code that I just ran on Goerli and it succeeded, see: https://goerli.etherscan.io/tx/0x825ba5dca416b13475b626ca8057591b5c66b70f7abeb4130e7ee1e1b1d20934
Please note the UR and weth addresses are different from Mainnet. Also I swapped link i/o usdc as I know there is some liquidity for this token on both Goerli V2 and V3 pools.
import os
from web3 import Web3
from uniswap_universal_router_decoder import FunctionRecipient, RouterCodec
from eth_account import Account

rpc_url = os.environ["WEB3_HTTP_PROVIDER_URL_ETHEREUM_GORLI"]

w3 = Web3(Web3.HTTPProvider(rpc_url))

assert w3.eth.chain_id == 5

acc = Account.from_key(os.environ["PRIVATE_KEY"])
assert acc.address == Web3.to_checksum_address("0x41E2517af3E6c6447377971c2BA0878D5d35a467")

weth_address = Web3.to_checksum_address("0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6")  # Goerli address
link_address = Web3.to_checksum_address("0x326C977E6efc84E512bB9C30f76E30c160eD06FB")  # Goerli address

ur_address = Web3.to_checksum_address("0x4648a43B2C14Da09FdF82B161150d3F634f40491")  # Goerli address

v2_path = [weth_address, link_address]
v2_in_amount = int(0.001 * 10**18)
v2_out_amount = 0
v3_path = [weth_address, 3000, link_address]
v3_in_amount = int(0.002 * 10**18)
v3_out_amount = 0
total_in_amount = v2_in_amount + v3_in_amount

codec = RouterCodec()

encoded_data = (
    codec
    .encode
    .chain()
    .wrap_eth(FunctionRecipient.ROUTER, total_in_amount)
    .v2_swap_exact_in(FunctionRecipient.SENDER, v2_in_amount, v2_out_amount, v2_path, payer_is_sender=False)
    .v3_swap_exact_in(FunctionRecipient.SENDER, v3_in_amount, v3_out_amount, v3_path, payer_is_sender=False)
    .build(codec.get_default_deadline())
)

tx_params = {
    "from": acc.address,
    "to": ur_address,
    "gas": 300_000,
    "maxPriorityFeePerGas": w3.eth.max_priority_fee,
    "maxFeePerGas": int(w3.eth.gas_price * 1.1),
    "type": '0x2',
    "chainId": w3.eth.chain_id,
    "value": total_in_amount,
    "nonce": w3.eth.get_transaction_count(acc.address),
    "data": encoded_data,
}

e = w3.eth.estimate_gas(tx_params)
print(e)

raw_transaction = w3.eth.account.sign_transaction(tx_params, acc.key).rawTransaction
trx_hash = w3.eth.send_raw_transaction(raw_transaction)
print(trx_hash.hex())

I'm going to close this issue as the problem does not come from the lib.

As an update for potential future readers, the issue was that my system clock had drifted out of sync. (This is a known issue with Windows Subsystem for Linux.) As a result, the get_default_deadline() call gave the wrong deadline. I recommend that users be very careful that their system clock is in sync, or else, the default deadline will be wrong.
Thanks for your help Elnaril, and so sorry for the bother!

You very welcome ! :) And thank you for your feedback, that is indeed very interesting to know! 👍


Expand README.md Requirements

I am trying to setup neovide on my windows machine I think the README.md lacks requirements, like the VULKAN SDK for windows.

Can you give more details as to what is going wrong? On modern windows systems with a supported gpu, the vulkan drivers should be automatically available

Okay this may seem to be a problem of my own.
I tried to setup neovide in a virtual machine which runs Windows 7 (host is windows 10). The skulpin docu mentions that the LunarG Vulkan SDK is required, which I tried to install unsuccessfuly.

Lunarg vulkan sdk is only necessary on Linux. The issue is likely the virtual machine because it requires gpu support which is handled poorly on VM setups
Sent with GitHawk

In the future we may add support for opengl but I'm fairly confident that even then it won't work in a vm
Sent with GitHawk

I'm going to close this as out of scope.


Fix radians and degrees conversion macros

There's a bug in the distanceBetween and courseTo because radians doesn't include its argument in parentheses.
When doing radians(long1-long2) the macro was expanded to long1-long2*M_PI/180.0.

Thanks

Yikes!  Thanks.  I'll fix this in the original...!


Why does the number of templates differ between languages?

Hello, thank you for your inspiring work!
I assumed for xP3mt, all languages would have the same number of templates within a dataset, as they are all machine translated from the English templates. However, while I was taking a look at xP3mt, I noticed that the number of templates differ between languages within the same dataset.
For example, XCOPA has 12, 10 and 5 templates for English, Chinese and Italian, respectively.
It seems like,

Not all English templates were MT'd to other languages. For XCOPA, only 5 out of 12 were MT'd from English to other languages.
Some languages have paraphrased duplicates. For  XCOPA-zh, each template has a paraphrased version, resulting in 10 (5x2) templates.

I checked that  XQuAD is also like this.
Your paper explains the experiments in great detail, however I believe the above detail was not mentioned. Could you please provide some additional information about this decision? Thank you in advance.

Thanks for your detailed investigation!
For evaluation datasets (XCOPA, XNLI, XWinograd, XStoryCloze), we select 5 English templates at random. We then machine-translated them for all language splits. We also human-translated them for language splits that are part of the 46 xP3 languages. They are indicated by the prompt name of the template having either an "mt" (=machine-translated) or "ht" (=human-translated) suffix.
E.g. XCOPA-ZH is a xP3 / BLOOM language, hence it has both machine- & human-translated variants i.e. 5 * 2.
XCOPA-IT is not a xP3 language, hence it has only machine-translated variants i.e. 5 * 1.
I agree that it could be clearer - I've rephrased part of the beginning of Section 4.3 from:
"
...To investigate performance on non-English prompts, we additionally human- and machine-translated the English prompts used for evaluation. In Table 1, we report performance when prompting in non-English languages. BLOOMZ performs...
"
to
"
...To investigate performance on non-English prompts, we additionally human- and machine-translated the English evaluation prompts from Figure~\ref{fig:taskgen}. In Table~\ref{tab:promptlangl1}, we report performance on these. Results on machine-translated prompts in languages that are not part of the fine-tuning corpus, such as those in Figure \ref{fig:langgen}, are in Appendix \S\ref{sec:fullresults}. Table~\ref{tab:promptlangl1} shows that BLOOMZ performs...
"
Let me know if this doesn't make it clearer!

Thank you so much for your clear explanation!
Now I fully understand why the validation sets have different amount of prompts between languages.
However, I was a bit confused because XQuAD, which is a fine-tuning set, has 14, 7 and 9 prompts for Arabic, Chinese and others, respectively.

May I ask if this was unintentional? Thank you.

Yeah it seems like xp3longcontext_zhmt & xp3longchar_zhmt were unintentionally skipped.
The folder here https://huggingface.co/datasets/bigscience/xP3mt/tree/main/ar should contain all files that were used for Arabic.

I see! Thank you so much for the detailed explanation!


ValueError: Invalid checkpoint state loaded from

Running Tensorflow 1.13.0  through Anaconda on Ubuntu 16.04 (Full install on external SSD)
Python 3.6.11
import tensorflow as tf
result = tf.train.get_checkpoint_state('')

I booted to Ubuntu 16.04 installed on external SSD from my Windows PC. When I run the above commands in my PC Internal drive path in anaconda environment, I get a warning
WARNING:tensorflow:FailedPreconditionError: checkpoint; Is a directory
WARNING:tensorflow:checkpoint: Checkpoint ignored

But when I run the exact commands in my external SSD drive path in the same anaconda environment, I get a ValueError: Invalid checkpoint state loaded from
What's the cause for this and how can I fix it?

@JohnG0024,
TensorFlow 1.x is not actively supported. Could you please update TensorFlow to the latest stable version v2.4 and check if you are facing the same issue. Thanks!

@JohnG0024,
TensorFlow 1.x is not actively supported. Could you please update TensorFlow to the latest stable version v2.4 and check if you are facing the same issue. Thanks!

It's the same with latest tensorflow. I found the problem, something to do with the - in Ubuntu path, somehow tensorflow is able to recognize '-' in Windows path, but not in Ubuntu path. Not sure why.

It's the same with latest tensorflow. I found the problem, something to do with the - in Ubuntu path, somehow tensorflow is able to recognize '-' in Windows path, but not in Ubuntu path. Not sure why.

@JohnG0024
In order to expedite the trouble-shooting process, could you please provide a minimal code snippet to reproduce the issue reported here and also the files required to run the code. Thanks!

@JohnG0024
In order to expedite the trouble-shooting process, could you please provide a minimal code snippet to reproduce the issue reported here and also the files required to run the code. Thanks!

import tensorflow as tf
result = tf.train.get_checkpoint_state('')

I've already quoted the code in the first comment.

import tensorflow as tf
result = tf.train.get_checkpoint_state('')

I've already quoted the code in the first comment.


Push docker image directly to cloud foundry

I am trying to use the cf resource to push a docker image to CF but that seem to be not supported by this resource. Do you think you will have a update on it?

Apparently, this upgrade doesn't need a lot of new code:
https://github.com/Logimethods/cf-resource/commit/319eb580bfccb062a40fb3afa03f35ae23b11d05
However I don't know how to test that code, nor how to build the associated Docker Image (Build failed: ADD failed: stat /var/lib/docker/tmp/docker-builder473524230/cf: no such file or directory).
Any help would be welcome.

@laugimethods we are working on making it easier for people to test and build with these docker images. I assure, it is happening, we've done it with a number of resources so far.
I will update this issue once we do! 👍

We've updated the README with build instructions! We'd accept a PR with tests.

I believe if the docker image were just rebuilt pulling in the latest binary, that would fix this issue.  Allowing you specify a "docker.image:" in the manifest.  This was apparently added in 6.31 of the client.


Problems when building tensorflow with CUDA

When I built tensorflow from source with CUDA using bazel,I got the following errors:
external/com_google_absl/absl/strings/string_view.h(496): warning: expression has no effect
external/com_google_absl/absl/strings/str_cat.h(259): error: expression must have a constant value
external/com_google_absl/absl/strings/str_cat.h(259): error: expression must have a constant value

I add some codes like std::cout<<"using cpu for Launch<Device>"<<std::endl;.Is there anything wrong? Thanks for any help.

also met this problem when compiling tensorflow serving with GPU：
OS: CentOS 7.5.1804
Bazel: 0.18.0
CUDA: 8.0
cuDNN: 7.1.3 for CUDA 8.0

You can try to install tensorflow-gpu from anaconda

We want to install from source rather than anaconda. Still, I have exactly the same errors when compiling on centos7 too.  @wt-huang

I also have same issue...
OS: ubuntu 16.04
Bazel: 0.16.0
CUDA: 8.0
cuDNN: 7.1.3 for CUDA 8.0
GCC: 4.9

Also for me:
OS: ubuntu 16.04
Bazel: 0.19.2
CUDA: 8.0
cuDNN: 7.1.3 for CUDA 8.0
GCC: 5.4
building inside a nvidia/cuda:8.0-cudnn7-devel container.

i met same issue. I use cuda8.0. Is it due to cuda8.0?

Why closing... The bug is here for sure and it's probably not that hard to fix....

Yes, I still meet this bug.
OS:gentoo
command:emerge  1.12.0
CUDA:cuda 8.0
CUDNN:6.0
gcc:4.9

Yes, I still meet this bug.
OS:gentoo
command:emerge  1.12.0
CUDA:cuda 8.0
CUDNN:6.0
gcc:4.9
bazel: 0.20.0
I can cmake the abseil-cpp , there is no error. maybe someone can help to fix it.

I have no problem building tensorflow_model_server with only cpu support, but gpu (--config=cuda) fails at link time.
Build Command:
export TF_NCCL_VERSION=1.3
export TF_NEED_CUDA=1
export NCCL_INSTALL_PATH=/usr/local/cuda
bazel clean --expunge &&  bazel build -c opt --config=cuda --action_env PYTHON_BIN_PATH=~/tf/bin/python tensorflow_serving/model_servers/...
Also tried building tensorflow_serving/model_servers:tensorflow_model_server alone, and got the same error below.
Here is an excerpt of the linking error:
Linking of rule '//tfs/tensorflow_serving/model_servers:tensorflow_model_server' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
...
/usr/bin/ld: external/com_3rd_party/zlib/lib/libz.a(inflate.o): relocation R_X86_64_32S against `zcfree' can not be used when making a shared object; recompile with -fPIC
external/com_3rd_party/zlib/lib/libz.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Target //tfs/tensorflow_serving/model_servers:tensorflow_model_server failed to build
INFO: Elapsed time: 1.149s, Critical Path: 0.15s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
My environment:
OS: Centos 7
CUDA: 9.0
Cudnn: 7.0
gcc 4.8.5
bazel: 0.16.1

@yunjiangster try clean previous build and add --copt="-fPIC" and then build again.

@troycheng thank you for the thorough advice, very helpful for future reference.  I think the problem was due to other third-party dependencies we added to the build rule, like com_3rd_party/zlib/lib/libz.a. I tried --copt="-fPIC" in the past and that resulted in similar error.

@yunjiangster It's a pleasure. Since the libz.a is compiled standalone, just add -fPIC and recompile zlib again. It's a common problem when building shared/static library.  There are some explanations here, https://stackoverflow.com/questions/5311515/gcc-fpic-option


V3 rollback and use new roslib

Fixes Polymer 1 support and roslib version.

Sounds good, that's what I'd do if I had write access :+1:

Sounds good, that's what I'd do if I had write access +1

Maybe @chapulina can make the magic happen :grimacing:

Created branch polymer1/2 for the lack of a better name. Feel free to make a new PR targeting that branch, and it may be worth it adding a couple lines to the README explaining how the branches are related to the tagged versions.


EISDIR Error When Building the Website on Windows 10

When attempting to build the website with yarn build on Windows, the following error is output:
Error: EISDIR: illegal operation on a directory, open 'E:\Projects\jest\website\ build\jest\docs\en\CLI.html'
Investigating reveals that the fileCLI.html has indeed been created as a directory for some reason.

That's weird... We just use docusaurus, are you able to reproduce it in their repo? https://github.com/facebook/Docusaurus
If yes, can you open up an issue there? If not we can investigate if we're doing weird stuff here

I'll close it as we don't get more reports like this. Happy to reopen and discuss if that's something on our or Docusaurus side, when someone is able to repro.


Cannot run under the Vite

When I try to use vite to start the server, it errs:
__vite-browser-external:url:3  Uncaught Error: Module "url" has been externalized for browser compatibility. Cannot access "url.pathToFileURL" in client code.  See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
    at Object.get (__vite-browser-external:url:3:11)
    at index.mjs:70936:9

And I saw the offical documentation, I discover:

Could you mind let it become a ESMoudle?

Thanks for opening the issue @sheepbox8646. Can you provide a reproducible example?

Thanks for opening the issue @sheepbox8646. Can you provide a reproducible example?

https://github.com/dromara/newcar
you can see it in ./mods/mod-math/tex.ts
Vite seems do not support this way

And... you can find the example in ./examples

Thanks! I'll try to find some time to take a look this weekend

Thanks! I'll try to find some time to take a look this weekend

thanks！

@sheepbox8646 I created a StackBlitz demo and it seems like this may not be possible since this library uses mathjax as a dependency and that's where the Vite error comes from.

ok，thanks for your trying, i'll find other ways

closed


Add link to Sample project to README.

Most folks will land on this project directly and may not take the time to explore the other repositories in the XWebView "Organization". This addition to the README helps nudge people who are looking to write code as quickly as possible to explore a working sample.

Thanks for the PR


Campaign stuck at loading screen

Same bug is back, as soon as i try to load the campaign it just stays at the beginning loading screen, no errors in the console, and im just stuck there, the only way out i can do is closing the game completely

Same bug is back

Can you reference the previous GitHub issue please? <3

Looks like this was a problem with old code, campaign nowdays works fine. Closing issue.


strident crisis feature

What feature do you want to get added on the base engine?
can you add a special thing in freeplay where if you put (week name)-freeplay into the week folder will make the free play look different it'll make it look like the strident crisis free play menu which is basically sorting out all of this stuff in each category
To test your sight, and reliability, please select the option of what should NOT be requested.
A good idea

no, just a useless feature

no

Bro how did you failed the test


Joining Microsoft account for business

I have used the base unattended file to make a couple machines i was hoping to use for work. We do, however, have a need to join these machines to our AzureAD. When i try to join the machine to the AD it just hangs and after awhile errors out. Can you point me in the right direction as to what might need to be commented out for that to work?

Okay that could be a little tricky because I'm removing a lot of the telemetry stuff that's most probably needed for that to work.
What I would suggest is that you take some time to generate your own file using this generator https://schneegans.de/windows/unattend-generator/
You'll have more control over what gets removed and it will probably a lot better in a work environment.


Overlapping Edges

Is there any way to fix the issue of the overlapping edges? In my graphs, I have a lot of overlapping edges from the same source and destination. The labels are not readable.

Hi
Can you provide a screenshot? It would make it easier for me to see the issue.
/Allan

I don't how how to attach screenshot here. I uploaded to google drive:
https://docs.google.com/drawings/d/1L4O2MmVmR-cgybj-3v2dcd-XKmqsxgGa7e5JswpjdAs/edit?usp=sharing
The label between State1 and State2 are overallping.
I have this my dgml:
    <Link Source='PImplementation.Client.State1' Target='PImplementation.Client.State2' Label='SUCCESS' Index='0' EventId='PImplementation.SUCCESS'/>
    <Link Source='PImplementation.Client.State2' Target='PImplementation.Client.State1' Label='BEAT' Index='0' EventId='PImplementation.BEAT' HandledBy='State2'/>

Thanks for the input.
I will see what I can do about the issue.
/Allan

@roohitavaf The issue should now be fixed. I have released version 1.3.3 with the fix.
Thanks for reporting the issue.


feat(core): Use prettier v1, update babel configs

(deps) updates pretter-eslint to v5+ (prettier v1 engine)
(feature) use prettier AST formatter for handling semi and single-quotes
(babel) replace preset-node-module with preset-env
(babel) use fast-async promise for async/await control flow in node v4 LTS
(babel) remove unnecessary runtime dependencies (ie regeneratorRuntime)

resolves #3
shouldn't be any breaking changes, could ship a patch release :)

This PR does much more than updating prettier to 1.0. If you'd like other to introduce other changes I'm open for discussion. For now I'm committing prettier upgrade directly to master. btw. this is a breaking change as shown by changed src/format-files.test.js so major bump is necessary

Thank you, by the way! :) Feel free to add yourself to contributors list and send another PR

@sheerun cheers dude—happy to see v1 integrated!


ippevesubmit doesn't seem to be detecting finishing options

A printer that reports many finishing options is not recording those options in the generated JSON file when ippevesubmit is run. Need to determine why...

OK, it looks like the program is looking at the 9th of the IPP tests (I-9: Identify-Printer Operation) instead of the 10th test (I-10: Get-Printer-Attributes Operation (default)).

Hi Michael,
Is there is a target date for this issue?  I have some finishing products that I would like to complete testing on soon.  Thanks!

Hi Michael,
Is there is a target date for this issue?  I have some finishing products that I would like to complete testing on soon.  Thanks!

@jacobsb I just need to schedule some time for this. The actual fix is extremely simple so once I have a full day to devote to the build/test cycle I'll be able to get a beta out quickly.

@jacobsb I just need to schedule some time for this. The actual fix is extremely simple so once I have a full day to devote to the build/test cycle I'll be able to get a beta out quickly.

[master faffcf9] Fix reporting of finishing features by ippevesubmit (Issue #67)


Async/Await Support?

Do you plan to add asynchronous functions to the library? This makes sense for network IO.
If it's not planned, would you accept a pull request provided it was of reasonable quality?

Hi,
I haven't added any async support because neither Artemis nor Aurora (which is why i wrote this library in the first place) would use it. I don't have anything against this in principle. How would you expect such an API to look like? Send and SendAsync versions of the same thing, in the same class? Maybe a constructor parameter to set async mode on the socket? I don't mind writing this myself as some of the code directly related to async reading could use some cleanup, just unsure how to design this API.


Is there any performance comparison with clovaai/deep-text-recognition-benchmark

Hi, I trained two text recognition models (my own data) using following repos:
[1] clovaai/deep-text-recognition-benchmark
[2] roatienza/deep-text-recognition-benchmark
but [1] got better accuracy ([1] accuracy: 0.94, [2] accuracy: 0.85)
Is there any performance comparison with [1] on open dataset?
Is there any suggestion that I need to aware?
Thanks a lot.

There are various techniques that can be used to improve the performance of transformer based models. The simplest is training on a large dataset to overcome the lack of inductive bias in transformers. There are many large synthetic STR datasets that you can use to do this.


Fixed typo on URL (broken link)

Noticed a link was broken (typo on username).

Please sign Scala CLA.

Sorry @densh I had only completed step one of the process (grant access to my account) and failed to repeat the steps so that the actual signing happened. Should be fixed by now.

Thanks! :sparkles:


c++/9/thread:126: undefined reference to `pthread_create'

Hello! Adam. Thanks so much for the [fast_matrix_market] project you created.
I try to cmake the example. However, there is an issue showing  /9/thread:126: undefined reference to `pthread_create'.
I fix it by target_link_libraries(simple1 fast_matrix_market::fast_matrix_market pthread).
Though, I think, the pthread libraries should be linked by the [fast_matrix_market] market itself.
I want to verify it.
wishes!

Interesting.
What version of compiler and OS are you running? What command printed that error?
FMM does not use pthreads, only native C++11 threads. These may be internally implemented using pthreads by some compilers, but do not require additional link arguments.

@chriszhao13 I tried some additional platforms and compiler versions and was able to reproduce your issue. I believe your issue is fixed, would you mind retesting the latest main on your platform?

Closed by #56


Fix optional laravel route parameters

Update laravel-routes.js to fix having optional route parameters

Fix for optional parameters in the laravel route "/teams/{team}/dashboard/{style?}"
uri = uri.replace(
     new RegExp(`{${parameter}[^}]*}`),
     parameters[parameter]
);

In this example, the regular expression /{style[^}]*}/ will match {style} or {style?} in the string variable.
The [^}] part of the regular expression matches any character that is not a closing curly bracket (}), and the * character matches zero or more of the preceding character or group. This allows the regular expression to match any characters between the {style and } parts of the string.

I just ran into this myself, but the regex I came up with is a little different. The problem I see with the one proposed here is that it will also match for example {styleName}. Here's my version, which only adds support for an optional ? after the parameter name: https://github.com/laracasts/cypress/pull/83


[Hacktoberfest]: Add Wenli Zhang to the Mentors Section

🆕🐥☝ Beginners Only:
This issue is reserved for people who are new to Open Source. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
To do:

Add Wenli Zhang to the Mentors section
See below for link to step-by-step tutorial
Go down to Mentors section - it starts at around line 83
Paste the following information underneath the last row in the table, ensuring there is still an empty row before the next table.

| [Ovilia](https://github.com/ovilia) | Wenli Zhang | 4 | Passionate Dataviz Developer & Creative Designer; PPMC of Apache ECharts (incubating) |

Add your details in the contributors section at the bottom of the page using the same formatting as the last one

📋 Step by Step
Step-By-Step Tutorial
Remember to observe the Code of Conduct - by which we mean, in short - Be Kind, Be Positive, Be Helpful

Hi, I would like to work on this.

@msandfor Hi. Can I take this issue?


feat: add ruff_organize_imports formatter

This adds another ruff based formatter which tells it to organize imports. Useful for replacing isort with ruff. Neither the ruff_fix nor ruff_format cover this case or include it in their formatting.
Thanks in advance!

LGTM thanks!


feature: climc add storage-ceph-run to ease ceph diag

What this PR does / why we need it:
feature: climc add storage-ceph-run command

Does this PR need to be backport to the previous release branch?:
NONE

/cc @zexi @ioito

/lgtm


Update Docker Python to 3.10

What this does
Updates Python to 3.10 to match what the Pipefile expects, this was causing issues since the pipfile.lock is created with 3.10 but then the Docker env was using 3.7
closes
Checklist

[ ] Todo 1
[ ] Todo 2
[ ] Todo 3

How to test
Add user steps to achieve desired functionality for this feature.

Another PR implemented this that was approved, but no one merged


[10.x] Replace goto structure by while loop inside retry helper function

Since goto structure is considered to be kind of "deprecated", some people wish to avoid using it (me as well).
Seeing no reason to use it when we have loops

See: https://github.com/igorw/retry/issues/3#issuecomment-56448334


Close client to exit process gracefully

Thanks a lot for this example, it's very useful.
I thought I'd mention something I noticed when using this, which is that the process doesn't exit because the client created with new SubscriptionClient keeps the socket connection open.
To exit gracefully the client needs to be closed, for example by invoking its close() method. It may be worth adding to the docs or the examples.

Hi, were you able to end subscription gracefully? I tried invoking close() method on subscriptionClient but it doesn't work. Any solution?
`    subscriptionClient.subscribe( eventData => {
console.log("Received event: ");
console.log(JSON.stringify(eventData, null, 4))
}, (error) => {
console.log("error: ", error)
});
subscriptionClient.close();`


I2S PDM micro on ESP32-S3 has only very low amplitude (IDFGH-7043)

We are trying to run the IS2 recorder example on an ESP32-S3 connected to a Vesper VM3011 PDM microphone.
Issue is that we only get a VERY small amplitude from the I2S port although the mic is set to max gain.
No chance to improve the behaviour with changing I2S parameters like sampling rate etc.
We suspect a lack of S3 support for this specific I2S - PDM functionality.

Hi @BitSalat ,
Could you please provide more information? Like the IDF version, I2S configuration, how it is recorded and played, does same issue appear on ESP32?

Hi @L-KAYA
we are using IDF-Version: 4.4.
Base is derived from examples/peripherals/i2s/i2s_audio_recorder_sdcard/,
We've changed it to sdmmc mode instead of SPI mode.
i2s_config_t i2s_config = {
    .mode = I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM,
    .sample_rate = 96000,
    .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
    .channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT,
    .communication_format =I2S_COMM_FORMAT_STAND_MSB,
    .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
    .dma_buf_count = 8,
    .dma_buf_len = 200,
};

The same issue appears on ESP32.
The sample rate has no influence on the amplitude.

The configuration looks good.
There are indeed some PDM configurations that not public in v4.4 due to the driver limitation, but those configurations are related to the filters of PDM TX mode.
The only configurable parameter for PDM RX is down-sampling rate, you can set it to I2S_PDM_DSR_16S by i2s_set_pdm_rx_down_sample, but I'm not sure if it can affect the amplitude.

Thanx for investigating however variations of down-sampling rate does not change anything on the amplitude.
As we intend to use the Vesper VM3011 which is the only mems mic with wakeup trigger we need the PDM ifce working.
Can u propose any further tests we could do?

Another feature on ESP-S3 is PCM compress mode, since the input PDM signal will be transferred to PCM format in hardware, choose a PCM compress mode may help to zoom in the small signal, a-law and u-law can be selected by i2s_pcm_config.
If it not works, the only way might be applying the gain to the data that I2S read.

ok, we tried this and have a quite different result. Our setup is:
i2s_config_t i2s_config = {
.mode = I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM,
.sample_rate = 16000,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT,
.communication_format =I2S_COMM_FORMAT_STAND_PCM_SHORT,
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.dma_buf_count = 8,
.dma_buf_len = 200,
.fixed_mclk = 768000,
};
i2s_pcm_cfg_t pcm_config = {
.pcm_type = I2S_PCM_A_COMPRESS,
};
Signal inside the PCM file now is much higher, indeed it's clipping and extremly distorted and hard
to understand what was said ("test, test ...")

Accidentially closed

No need to set communication_format to PCM_SHORT, a MSB format should be OK.
And also not suggest to set a fixed_mclk, PDM has its own rule to output the clock.

@L-KAYA thanx again for your investigations. We finally found an issue with the file header which led to a wrong sample rate when opening the file with Audacity. For any reason we had to set the sample rate to 32kHz while had to write 16kHz into the file header. However it's working now for our needs and VM3011 PDM micro is ok.
For those running in similar issues here's our setup:
const` char set_wav_header[] = {
        'R','I','F','F', // ChunkID
        file_size, file_size >> 8, file_size >> 16, file_size >> 24, // ChunkSize
        'W','A','V','E', // Format
        'f','m','t',' ', // Subchunk1ID
        0x10, 0x00, 0x00, 0x00, // Subchunk1Size (16 for PCM)
        0x01, 0x00, // AudioFormat (1 for PCM)
        0x01, 0x00, // NumChannels (1 channel)
        16000, 16000 >> 8, 16000 >> 16, 16000 >> 24, // SampleRate
        byte_rate, byte_rate >> 8, byte_rate >> 16, byte_rate >> 24, // ByteRate
        0x02, 0x00, // BlockAlign
        0x10, 0x00, // BitsPerSample (16 bits)
        'd','a','t','a', // Subchunk2ID
        wav_size, wav_size >> 8, wav_size >> 16, wav_size >> 24, // Subchunk2Size
    };

  i2s_config_t i2s_config = {
        .mode = I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM,
        .sample_rate = 32000,
        .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
        .channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT,
        .communication_format = I2S_COMM_FORMAT_STAND_MSB,
        .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
        .dma_buf_count = 8,
        .dma_buf_len = 200,
//.fixed_mclk = 768000,
    `};

Hi I had the problem after an update (Use espidf 5) that my recordings with the VM3011 were 2x. Had to add i2s_set_pdm_rx_down_sample(I2S_NUM_0,I2S_PDM_DSR_8S);
If I analyze the recordings, the gain looks like very small. Understood I can't use PCM compress mode on a regular ESP32.

@BitSalat the esp32 isn't able to use these modes. Even when i shout loudly in front of the VM3011 it is not able to show enough gain. Also I have a +/- 11000 khz noise peak.
Yesterday I installed the updated (beta) version of the i2s lib (idf master branch, i2s_pdm) and I noticed a better noise peak, but maybe an even (slightly) lower amplitude. But I didn't measure it yet.

@remyhx - many thanx for your support, just did not find constant WOS_PGA_GAIN, can u please link me to the right driver?
We came to a similar conclusion and did the multiplication just this way:
// Start recording
while (flash_wr_size < flash_rec_time) {
// Read the RAW samples from the microphone
i2s_read(CONFIG_EXAMPLE_I2S_CH,i2s_readraw_buff, SAMPLE_SIZE, &bytes_read, 100);
// scale the data (otherwise the sound is too quiet)
for (int x = 0; x < SAMPLE_SIZE/2; x++) {
i2s_readraw_buff[x] = (i2s_readraw_buff[x]) * 8;
}
// Write the samples to the WAV file
fwrite(i2s_readraw_buff, 1, bytes_read, f);
flash_wr_size += bytes_read;
}
//
ESP_LOGI(TAG, "Recording done!");
fclose(f);
ESP_LOGI(TAG, "File written on SDCard");
This works fairy well although I think we could increase the multiply to 10 or 12.

@BitSalat no problem and also my thanx, because problems/experience on the VM3011 is scarce at the moment.
I use this function:
`void varyGain(uint8_t * buf, int16_t gain)
{
int16_t tempIS, tempUS;
float value;
for (int i = 0; i<(READ_BUFF_SIZE/2); i++) {
    tempIS = buf[i*2+1] << 8 | buf[i*2];
    value = tempIS/32768.00000;
    value = value*gain;
    if (value>1) value = 1;                   //clipping
    if (value<-1) value = -1;
    tempUS = value*32768;

    buf[i*2] = 0x00FF&tempUS;
    buf[i*2+1] = tempUS>>8;
}

}`
The chosen gain can be 1-40 easily, VERY depending the background noise level. That's where the WOS_PGA_GAIN comes in. Currently I am in the process of making a y = ax + b like function to adapt to that WOS_PGA_GAIN number. This number can be found in the VM3011 datasheet, page 12 in the table at address 0x1 bit B0-B4. (You can also determine which levels it may use address 0x2) The only drawback is the I2C com is hearable as a short tick. So you want to use it as much as possible, without disturbing the audio too much.

@remyhx Although we can achieve a nice amplitude with multiplying samples I am still wondering why it isn't possible to see a full amplitude without that "trick". We will now check first if the PDM mics (we are using Adafruit as well as VM3011) really come up to full PDM pulse widths to see if something is wrong there or at the point of digitizing inside the I2S ifce.
We need sound samples for inferenceing against a TFLite model and therefore need every bit of the sound with as less as possible noise floor. I am afraid that just pushing up the gain will also push the noise which would be not ideal.
BTW we are still on IDF version 4.4.1 as 5xx still has some issue.

I just send Vesper a message, hopefully they will reply to the small user :) (although I think this mic could become very popular for adafruit etc development boards / esp32 boards)
For my case noise is ok, but it feels like repairing a brand new product by software. Seen how they developed this product I think improvement should be possible and I just do something wrong.
I have to say sound quality for me is better with the new master branch, but temporarily I have to record in stereo to access the left mic channel (know bug at this moment, only right channel for mono). But because it's in development stage it's a small issue for now.

Update. Second question I asked to Vesper; they appear to not care or read their mail...

@remyhx - does not sound very responsive from Vesper but anyway we have also tested the Adafruit PDM micro which yields similar results. So most likely the issue is inside the PDM converter on ESP32 not on the mic side. We consider to use an external PDM to I2S converter like the ADAU7002 which also has a power down mode so we can use in our planned battery powered device.

We are using a Vesper VM3000 MEMS microphone with ESP32-S3.
We find the same issue with the clock being 2x too slow with the v4.4 I2S. It does work properly in the v5.0 IDF. But, there is clearly a bug in the I2S driver with the sample rate using the ESP32-S3 and PDM microphones.
The signal levels we see with the VM3000 are adequate for speech level sounds, and I don't think what you are seeing is an ESP32 issue or even a microphone issue. It is just the sensitivity of the microphone. The spec sheet for the VM3000 shows -26dB full scale for a 94 dB signal, and a 120 dB acoustic overload point. 120 dB is quite loud, and with a 16-bit microphone you theoretically can record sounds 96dB below that. But, you start running into electrical noise issues if you want to record sounds around 40-50 dB.
If you record in stereo you can also do things like average the two channels together to reduce the noise floor a bit.

@david thank you! Just curious: what is the sampling problem you encounter in v5.0?
Outlook voor iOShttps://aka.ms/o0ukef downloaden

Van: David Mann @.>
Verzonden: Thursday, July 14, 2022 12:28:35 AM
Aan: espressif/esp-idf @.>
CC: Remy Hurx @.>; Mention @.>
Onderwerp: Re: [espressif/esp-idf] I2S PDM micro on ESP32-S3 has only very low amplitude (IDFGH-7043) (Issue #8660)
We are using a Vesper VM3000 MEMS microphone with ESP32-S3.
We find the same issue with the clock being 2x too slow with the v4.4 I2S. It does work properly in the v5.0 IDF. But, there is clearly a bug in the I2S driver with the sample rate using the ESP32-S3 and PDM microphones.
The signal levels we see with the VM3000 are adequate for speech level sounds, and I don't think what you are seeing is an ESP32 issue or even a microphone issue. It is just the sensitivity of the microphone. The spec sheet for the VM3000 shows -26dB full scale for a 94 dB signal, and a 120 dB acoustic overload point. 120 dB is quite loud, and with a 16-bit microphone you theoretically can record sounds 96dB below that. But, you start running into electrical noise issues if you want to record sounds around 40-50 dB.
If you record in stereo you can also do things like average the two channels together to reduce the noise floor a bit.
—
Reply to this email directly, view it on GitHubhttps://github.com/espressif/esp-idf/issues/8660#issuecomment-1183744562, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR3JADPHBXG4Q5KX7LTOM53VT47JHANCNFSM5RTWF5DA.
You are receiving this because you were mentioned.Message ID: @.***>

@davidallenmann Thanx a lot for your input, helps me to understand the amplitude issue. In fact I have totally missed to check sensitivity but now it's clear that with -26dBFS at 94dBspl we will never get a higher amplitude with a normal speech signal.
As we need more amplitude I am just considerung to use an mic array or electret mic to achieve this.

I2S in v4.4 with PDM microphone has an exact 2x pitch shift in the recording. @BitSalat mentioned this where they had to change wav file sample rate to 16 kHz when they told I2S to use 32 kHz.

Found the bug, rx_conf.rx_mono and rx_conf.rx_mono_fst_vld should be 0, but they are 1 on v4.4

The bug has been fixed on release/v4.4 in commit 53a5d51a

Thanks for reporting, feel free to reopen.

@BItSalat can u send the full code once please.


Remove Config\App session items

Description
Supersedes #7000
Session should not depends on Config\App. See https://github.com/codeigniter4/CodeIgniter4/issues/4297#issuecomment-813110373

remove Config\App session items
add property for Config\Session in Session

Checklist:

[x] Securely signed commits
[x] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

Shall we add default config properties in system/Session/Session.php to avoid breaking app?, what if the developer removed some properties from app/Config/Session.php?

what if the developer removed some properties from app/Config/Session.php?

It breaks.
If a dev removes Config\App::$baseURL now, the framework does not work.
It is not designed to work by removing necessary Config properties.
I don't see the significance of adding properties that just copies the properties of the Config class.

Rebased to resolve conflicts.
Can anyone review?

Rebased.

This PR tries to get rid of the dependency on Config\App in Services::session() to prevent an infinite loop if the Config\App constructor is accessing a session.
But Services::session() depends on Services::request() which depends on Config\App.

Oh, I must have missed that comment. My bad.

Rebased to resolve conflicts.

I would like to merge this. Review, please.


DO NOT MERGE

https://github.com/Sunbird-Ed/SunbirdEd-portal/pull/7815

https://github.com/Sunbird-Ed/SunbirdEd-portal/pull/7827


Getting java.lang.UnsupportedOperationException: null when trying to run sbt it:test from databricks cluster

Can anyone please tell me what it is missing?
[error] !
[error]  java.lang.UnsupportedOperationException: null (DeltaTable.scala:626)
[error] io.delta.tables.DeltaTable$.forPath(DeltaTable.scala:626)
[error] com.activision.etl.allspark.DimUserMergeWriterTest.testSetup(DimUserMergeWriterTest.scala:85)
[error] com.activision.etl.allspark.DimUserMergeWriterTest.beforeAll(DimUserMergeWriterTest.scala:29)
Here is my code
DeltaTable.forPath(spark,
tablePath )
.as("dim_user")
.merge(
df_with_timestamp.as("updates"),
"dim_user.key == updates.key")
.whenMatched("updates.last_activity_date > dim_user.last_activity_date")
.updateAll()
.whenNotMatched
.insertAll()
.execute()
I am using
"com.databricks" %% "dbutils-api" % "0.0.4" % "provided" version databricks

Hey @spachari  are you running open source delta lake or Delta Lake on Databricks

I agree with @rahulsmahadev your set up sounds very confusing. Are running sbt in a Databricks cluster or running it locally, but trying to run Spark jobs on a Databricks cluster? For the second one, you have to use DBConnect - https://docs.databricks.com/dev-tools/databricks-connect.html

Closing the stale ticket.


Automatic unlocking in Lockable.cs

Move the responsibility of automatic unlocking from the dependency (i.e., down the chain) to the dependents (i.e., up the chain).
This issue is dependent on #3, otherwise it causes a softlock.

This feature should be removed; it was implemented as a temporary fix, before Breaker.cs was added.


Updated reqwest to use async libraries

I realize not everyone needs to jump on the async bandwagon, but this was the only library I have still using synchronous requests, so I made it async for my own purposes. Figured I'd throw up the pull request and let you decide whether you want it or not. 😄

Thanks! I haven't been able to get around to this, but this is pretty much what I wanted ;)


"serialize cyclic structures"

Trying to console.log an object and I just get:
TypeError: JSON.stringify cannot serialize cyclic structures.

@:
at mocha-phantomjs/core_extensions.js:28
at mocha-phantomjs/core_extensions.js:58

We're using MooTools and I think it might be something to do with trying to stringify a MooTools Class.

+1

@tiagodll mocha-phantomjs has been able to handle circular structures for 4 months now.

@nathanboktae Is that capability in the version published on npm? I installed mocha-phantomjs today and encountered this when trying to log out a non-DOM object that has circular references by design.

Yes it is.


Dark mode for the dashboard

Feature Description
Add dark mode to dashboard

@jerebtw thank you for reporting it.
First I would like to add dark mode and themes to app since that is user facing. And then my plan is to add to dashboard

If I am deciding to adopt this auth solution for the majority of my projects going forward, this feature is actually really helpful for my eyes

I need a dark theme but its not available.


Update plan-work-folders.md

Performance Considerations for Work Folders URL is pointing to the wrong target

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


Fix netavark compilation issues #1

Initial changes
Needs cleaning
Needs adding support for FreeBSD 13 and 15 as netlink support was first released in FreeBSD 13.2

Looks good so far. Maybe re-word the commit message, e.g. 'Add limited support for netlink on FreeBSD 13 and later, initially aiming to support functionality required by the netavark container networking manager'


Summary page for PF history usage report

See #267 and #73
Count how many record and notes are created and save them to datastore.

Change the width and padding for admin/dashboard page to make it looks better

LGTM. Merged. Thanks!


[regression - 43.1.0] Injected js broken, with app error "Cannot find module loglevel"

Homework

[ ] I looked at nativefier --help and https://github.com/nativefier/nativefier/blob/master/docs/api.md
[ ] I checked the Troubleshooting section of the README.
[ ] I searched existing issues, open & closed. Yes, my bug is new.
[x] I'm using the latest version available at https://github.com/nativefier/nativefier/releases

Bug description
Injected js does not work after updating to nativefier 43.1.0.
This might have something to do with #1162
@TheCleric @ronjouch
Steps to reproduce
$ cd /tmp
$ echo 'alert("test");' > injecttest.js
$ nativefier "https://example.com" --inject injecttest.js --verbose
Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.

Performing async options post-processing.
Inferring user agent for electron 12.0.6 / darwin
Grabbing electron<->chrome versions file from https://atom.io/download/atom-shell/index.json
Inferring icon for https://example.com/ on darwin
Inferring icon from store for https://example.com/ on darwin
Allowed icon formats when building for darwin: [ '.icns', '.png', '.ico' ]
Inferring name for https://example.com/
Fetched 1.2 kb page at https://example.com/
Inferred title: Example Domain
Sanitized filename for Example Domain : Example Domain
Got 249 icons from gitcloud
Max icon match score: 0
No relevant icon in store.
Trying to extract a .png icon from the page.
Associated electron v12.0.6 to chrome v89.0.4389.128
Given chrome 89.0.4389.128 on darwin, using user agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
options {
  packager: {
    appCopyright: undefined,
    appVersion: undefined,
    arch: 'x64',
    asar: false,
    buildVersion: undefined,
    darwinDarkModeSupport: false,
    dir: '/Users/USER/.n/lib/node_modules/nativefier/app',
    electronVersion: '12.0.6',
    icon: undefined,
    name: 'Example Domain',
    out: '/private/tmp',
    overwrite: true,
    platform: 'darwin',
    portable: false,
    targetUrl: 'https://example.com/',
    tmpdir: false,
    upgrade: false,
    upgradeFrom: undefined,
    win32metadata: {
      ProductName: undefined,
      InternalName: undefined,
      FileDescription: undefined
    }
  },
  nativefier: {
    accessibilityPrompt: true,
    alwaysOnTop: false,
    backgroundColor: null,
    basicAuthPassword: null,
    basicAuthUsername: null,
    blockExternalUrls: false,
    bookmarksMenu: null,
    bounce: false,
    browserwindowOptions: undefined,
    clearCache: false,
    counter: false,
    crashReporter: undefined,
    disableContextMenu: undefined,
    disableDevTools: undefined,
    disableGpu: false,
    diskCacheSize: null,
    disableOldBuildWarning: false,
    enableEs3Apis: false,
    fastQuit: false,
    fileDownloadOptions: undefined,
    flashPluginDir: null,
    fullScreen: false,
    globalShortcuts: null,
    hideWindowFrame: undefined,
    ignoreCertificate: false,
    ignoreGpuBlacklist: false,
    inject: [ 'injecttest.js' ],
    insecure: false,
    internalUrls: null,
    lang: undefined,
    maximize: false,
    nativefierVersion: '43.1.0',
    processEnvs: undefined,
    proxyRules: null,
    showMenuBar: false,
    singleInstance: false,
    titleBarStyle: null,
    tray: false,
    userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36',
    userAgentOverriden: false,
    verbose: true,
    versionString: undefined,
    width: 1280,
    height: 800,
    minWidth: undefined,
    minHeight: undefined,
    maxWidth: undefined,
    maxHeight: undefined,
    widevine: false,
    x: undefined,
    y: undefined,
    zoom: 1
  }
}

Preparing Electron app...
Copying electron app from /Users/USER/.n/lib/node_modules/nativefier/app to /var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG
Writing app config to /var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG/nativefier.json
Copying 1 files to inject in app.
Copying injection file "injecttest.js" to "/var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG/inject/inject-34fd6a..js"
Updating /var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG/package.json 'name' field to example-domain-nativefier-944894

Converting icons...
Option "icon" not set, skipping icon conversion.
Copying icons if necessary
No icon specified in options; aborting

Packaging... This will take a few seconds, maybe minutes if the requested Electron isn't cached yet...
  electron-packager Electron Packager 15.2.0
  electron-packager Node v16.0.0
  electron-packager Host Operating system: darwin 17.7.0 (x64) +0ms
  electron-packager Packager Options: {"arch":"x64","asar":false,"darwinDarkModeSupport":false,"dir":"/var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG","electronVersion":"12.0.6","name":"Example Domain","out":"/private/tmp","overwrite":true,"platform":"darwin","portable":false,"targetUrl":"https://example.com/","tmpdir":false,"upgrade":false,"win32metadata":{}} +0ms
  electron-packager Target Platforms: darwin +1ms
  electron-packager Target Architectures: x64 +0ms
  electron-packager Inferring appVersion from version in /var/folders/x4/d6xhrn615_15s2bdvqp7rtw80000gr/T/nativefier-10-50-47-app--80069-HCGnxGhTGTLG/package.json +0ms
  electron-packager Application name: Example Domain +9ms
  electron-packager Target Electron version: 12.0.6 +0ms
  electron-packager Ignored path regular expressions: [
  '/package-lock\\.json$',
  '/yarn\\.lock$',
  '/\\.git($|/)',
  '/node_modules/\\.bin($|/)',
  '\\.o(bj)?$'
] +0ms
  electron-packager Downloading Electron with options {"platform":"darwin","arch":"x64","version":"12.0.6","artifactName":"electron"} +0ms
Packaging app for platform darwin x64 using electron v12.0.6
  electron-packager Creating /private/tmp/darwin-x64-template +4ms
  electron-packager Extracting /Users/USER/Library/Caches/electron/739809e58a9d0011b22ab70d11516a49a099dadf81ec40aabf349af3c1154da6/electron-v12.0.6-darwin-x64.zip to /private/tmp/darwin-x64-template +0ms
  electron-packager Initializing app in /private/tmp/Example Domain-darwin-x64 from /private/tmp/darwin-x64-template template +0ms
  electron-packager Ignored paths based on the out param: [
  '/private/tmp/Example Domain-darwin-x64',
  '/private/tmp/Example Domain-darwin-arm64',
  '/private/tmp/Example Domain-linux-ia32',
  '/private/tmp/Example Domain-linux-x64',
  '/private/tmp/Example Domain-linux-armv7l',
  '/private/tmp/Example Domain-linux-arm64',
  '/private/tmp/Example Domain-linux-mips64el',
  '/private/tmp/Example Domain-mas-x64',
  '/private/tmp/Example Domain-mas-arm64',
  '/private/tmp/Example Domain-win32-ia32',
  '/private/tmp/Example Domain-win32-x64',
  '/private/tmp/Example Domain-win32-arm64'
] +10s
  electron-packager Renaming Electron to Example Domain in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/MacOS +160ms
  electron-packager Renaming Electron Helper to Example Domain Helper in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS +1ms
  electron-packager Renaming Electron Helper (Renderer) to Example Domain Helper (Renderer) in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper (Plugin) to Example Domain Helper (Plugin) in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper (Plugin).app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper (GPU) to Example Domain Helper (GPU) in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper (GPU).app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper.app to Example Domain Helper.app in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks +1ms
  electron-packager Renaming Electron Helper (Renderer).app to Example Domain Helper (Renderer).app in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Renaming Electron Helper (Plugin).app to Example Domain Helper (Plugin).app in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Renaming Electron Helper (GPU).app to Example Domain Helper (GPU).app in /private/tmp/Example Domain-darwin-x64/Electron.app/Contents/Frameworks +0ms

Finalizing build...
App built to /private/tmp/Example Domain-darwin-x64, move to wherever it makes sense for you and run the app bundle.

Expected behavior
<EMAIL_ADDRESS>
Actual behavior
<EMAIL_ADDRESS>
Debug info

Console logs of your nativefier build command, with --verbose flag
If the bug happens at app run time, the in-app DevTools console logs (open it with F12)
Error messages
Screenshots
Anything else relevant!

Context

Nativefier: 43.1.0
Node.js: v16.0.0
Npm: 7.10.0
OS: macOS 10.13.6
Is it a regression? Yes<EMAIL_ADDRESS>worked
Additional context: (for example: "I'm behind a proxy, with configuration X and protocol Y")

@TheCleric I confirm that --injecting js worked in my pre-release smoke test. Looking at the error message about loglevel not found, this may look like packaging / webpack trouble.

@TheCleric I confirm that --injecting js worked in my pre-release smoke test. Looking at the error message about loglevel not found, this may look like packaging / webpack trouble.

I put loglevel in the app package.json. Was there more I should have done?

I put loglevel in the app package.json. Was there more I should have done?

@TheCleric not that I know, webpack is supposed to make a bundle of all our app code & deps. This vaguely reminds me of https://github.com/nativefier/nativefier/commit/cde5c1e13bdc2739604cab04bac64eae0d719ed1 , but this might be a false lead. I'll look at this tomorrow, if you haven't figured it out by then.

I put loglevel in the app package.json. Was there more I should have done?

@TheCleric not that I know, webpack is supposed to make a bundle of all our app code & deps. This vaguely reminds me of https://github.com/nativefier/nativefier/commit/cde5c1e13bdc2739604cab04bac64eae0d719ed1 , but this might be a false lead. I'll look at this tomorrow, if you haven't figured it out by then.

Generating a local app with this release, I notice the generated app does not have a node_modules directory. Strange.

@mattruzzi 43.1.1, now on npm (you might have to wait for it to appear, npm's caching is aggressive) should fix the issue. Thaaaaaaaaaaanks for the feedback.


xbox not working

How would I unblacklist the Xbox app cuz I know the debloater blocked it

Indeed it is quite unclear what the Blacklist is: are marked checkboxes whitelist the app or mark it for deletion? Having confirmation dialogue with what will be removed would help.

i tried this out, and now my 1080p screen recording via gamebar got canned. I have to check now what to do regarding how to get it back to recording normally. Or else i have to adjust and record in 768p


OS X setup error

bash-3.2$ ./bin/setup-osx.sh
== Updating Homebrew ==
error: The following untracked working tree files would be overwritten by merge:
	Library/Formula/ldid.rb
	Library/Formula/mosml.rb
	Library/Formula/pdf2svg.rb
	Library/Formula/ppl.rb
	Library/Formula/smpeg.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

Hi Phil, Bernhard joined us new and is looking at getting the project to fly. Could you help him out?

@bernhardvogler: seems like you have some manual changes to files in the homebrew directory. Homebrew uses git under the hood to keep track of formula updates and seems there are conflicts with some manual changes. Take a look at these links:

http://stackoverflow.com/questions/10762859/brew-update-the-following-untracked-working-tree-files-would-be-overwritten-by
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Common-Issues.md#brew-update-complains-about-untracked-working-tree-files

@phil-monroe Thanks for the quick help! This fixed it:
$ cd /usr/local
$ git fetch origin
$ git reset --hard origin/master

(see http://stackoverflow.com/a/12031907/2858480)
Is there a place to document this fix, like in some technical FAQ or so?

BTW, I had to install bundler using gem install bundler before I was able to successfully run bundle install -j8 --path .bundle.
(see http://stackoverflow.com/a/32123466/2858480)

Next issue I run into:
$ bin/rake db:init
2015-11-05 11:17:34.163065 +0100  INFO [PID-46102] [TID-owiswyv3s] logger initialized (level: INFO, lograge: true)
rake aborted!
KeyError: key not found: "SMTP_ADDRESS"
/Users/bernhard/dev/lale-help/config/application.rb:21:in `fetch'
/Users/bernhard/dev/lale-help/config/application.rb:21:in `<class:Application>'
/Users/bernhard/dev/lale-help/config/application.rb:8:in `<module:LaleHelp>'
/Users/bernhard/dev/lale-help/config/application.rb:7:in `<top (required)>'
/Users/bernhard/dev/lale-help/Rakefile:4:in `require'
/Users/bernhard/dev/lale-help/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

I'm working with Bernhard to solve it.

Assigned to Enrico...thanks!

The project uses a file called .env that holds environment variables to be used when loading dynamic configuration. I've updated the example file .env.example with a list of required environment variables.

Closed as I reproduced and fixed this using the given example .env file.


Check source maps

Sources seem to be duplicated with the !eval trick that was added, so I'm not sure if this is really the best thing to be doing, but it does seem to help source map displays.
It is worth looking into this again.

The main issue seems to be that if there is just a sourceMappingURL, immediate execution doesn't seem to have loaded the source map yet so line debugging doesn't work.
If we add a sourceURL with the same name, all sources then become the transpiled source, not the original source.
So we need to create an indirect source with the !eval thing.
Not ideal, but I guess this is actually a browser bug? Definitely for re-evaluating as Browsers change.

Thanks for the explanation @guybedford. I guess people can get traces pointing to the original files in most cases by wrapping their main entry point with
window.setTimeout(() => { entry point code here}, 0)

in development.

The traces for sync exceptions in Firefox are kind of useless (they don't link to the !eval file).
"Potentially unhandled rejection [2] .execute<EMAIL_ADDRESS>line 1 > eval:12:1
g@https://jspm.io/es6-module-loader@0.16.5.js:1:20458
w@https://jspm.io/es6-module-loader@0.16.5.js:1:20850
b@https://jspm.io/es6-module-loader@0.16.5.js:1:20526
_@https://jspm.io/es6-module-loader@0.16.5.js:1:20407
x.prototype.import/</<@https://jspm.io/es6-module-loader@0.16.5.js:1:22734
D@https://jspm.io/es6-module-loader@0.16.5.js:1:7437
I@https://jspm.io/es6-module-loader@0.16.5.js:1:7071
[7]</</</</O.prototype.when@https://jspm.io/es6-module-loader@0.16.5.js:1:10745
[7]</</</</w.prototype.run@https://jspm.io/es6-module-loader@0.16.5.js:1:9779
[3]</</</e.prototype._drain@https://jspm.io/es6-module-loader@0.16.5.js:1:1725
e/this.drain@https://jspm.io/es6-module-loader@0.16.5.js:1:1392
t@https://jspm.io/es6-module-loader@0.16.5.js:1:3302
"```

The trick is unavoidable. It's the difference between transpiled and untranspiled source.


saving parameters into yml / CSV file

we should save the input parameters into a separate "config.ym" file that gets read at each step.
We should save the parameters as a data frame and into a CSV file.
we should remove the checkpoints that are saved into single files and save them into a separate CSV file that can track the progress to start again from that step, but only in a single csv file.

Taking a look at this ...

This has been implemented through the load_yaml and save_yaml function in ConfigParameters. See https://github.com/mdenolle/NoisePy/blob/948d95f68d8120f23866c6442b502b4ae7e271af/src/noisepy/seis/datatypes.py#L216-L227


buttons for start collsboration are broken

Issue Type: Bug
they dont do anything
Extension version: 1.0.1783
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:57:51.166Z)
OS version: Darwin x64 18.7.0
Remote OS version: Linux x64 3.10.0-1062.9.1.el7.x86_64

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz (4 x 3100)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
8.00GB (0.09GB free)

Process Argv

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: homework.cs.tufts.edu

OS
Linux x64 3.10.0-1062.9.1.el7.x86_64

CPUs
Intel(R) Xeon(R) Silver 4214Y CPU @ 2.20GHz (6 x 2194)

Memory (System)
9.61GB (2.73GB free)

VM
100%

Thanks for reporting this issue.
Live Share buttons are unresponsive if Live Share extension is installed but has not activated yet. Check for the extension activation status in the status bar. Normally, it may take several seconds on startup.
It is possible that Live Share extension doesn't activate because of corrupted installation. Re-installing Live Share should help in this case.
If Live Share doesn't activate, please check out Visual Studio Live Share output window and Live Share logs in $TEMP/VSFeedbackVSRTCLogs. Attaching these logs to this issue will help us investigate.

Closing this due to inactivity. Please reopen it if you’re still encountering the issue. Thanks!


Get @rid and @class attributes for records in projection

OrientDB Version: 3.0.14
Java Version:
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
OS:
MacOS 10.14.2
Expected behavior
Expect the nested records to contain @rid and @class attributes
Actual behavior
The records returned included all other attributes but not the @rid, @class , @version, etc. attributes
Steps to reproduce
Using the default demodb distributed with 3.0.14
select in_IsFromCountry:{*} from countries

result
{
    "result": [
        {
            "in_IsFromCountry": [
                {
                    "in": "#33:1",
                    "out": "#122:46"
                }
            ]
        },
      ...

Is there a way to force the returned edges (or linked records, etc). To retain their @rid and @class fields? Previously using the fetchplans in v2 the equivalent query would return these

Hi @creisle
Yes, you just have to declare them explicitly:
select in_IsFromCountry:{*, @rid, @class, @version} from countries

Thanks
Luigi

Yup! that works, I thought I tried that but I must have missed it. Thanks for the quick reply!


Add vcpkg installation instructions

yajl is available as a port in VCPKG , documenting the install process here will help users get started by providing a single set of commands to build yajl, ready to be included in their projects.
VCPKG is a C++ library manager that simplifies installation for yajl and other project dependencies, we also test whether our library ports build in various configurations (dynamic, static) on various platforms (OSX, Linux, Windows: x86, x64, UWP, ARM) to keep a wide coverage for users.
I'm a maintainer for vcpkg, and here is what the port script looks like. We try to keep the library maintained as close as possible to the original library.

hi, @PhoebeHui!
i try to use vcpkg in cmake for yajl
find_package(yajl CONFIG REQUIRED)
target_link_libraries(my_project PRIVATE yajl_s)
but it is cant find package. Do you have some instructions to use yajl  with cmake ?

@CreatorSergey, sorry for late response!
Yajl doesn't export cmake config and target file, so you can't find the package via find_package, you can use find_path and find_library instead. See https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/installing-and-using-packages.md?plain=1#LL183C1-L183C1


“SAH” in code comment, what does it mean?

if (a==b.source) outgoing[b.target]=n;		//SAH
else if (a==b.target) incoming[b.source]=n;		//SAH
.........
if (groupByDirection) {
//SAH - Compute intersection for mutual and remove these from incoming/outgoing
for (e in outgoing) {
//name=outgoing[e];
if (e in incoming) {
mutual[e]=outgoing[e];
delete incoming[e];
delete outgoing[e];
}
}
}
I see this SAH in the code of main.js of the js/main.js file https://github.com/oxfordinternetinstitute/InteractiveVis/tree/master/network
Anyone knows what does this abbreviation means? I'm very confused by it and I recommend that every abbr.(abbreviation) is explained by its full notation in the code comment.

I think those are just the initials of one of the devs behind that plugin (Scott A. Hale).
By the way, that plugin is based on an old version of sigma.js - I believe 0.1.

Thanks @AVermeij !, I asked the same question in the issues of the concerned plug-in project and here is the answer link, FYI(for your information), oxfordinternetinstitute/InteractiveVis.


Pass the commit object along to metric parsers

This would allow one to write metrics based on date (part of the Commit object)

Coverage remained the same at 100.0% when pulling fab8cd8a168ca7d9d00b8c4f6750fef283d13b15 on add_commit_to_diff_parsers into 6187facf04a6101bf5e9353db767d88e2079a823 on master.

This'll be a breaking change when I bump the version (it changes the api of things directly extending the base metric parser


How to prevent inserting the selected suggestion into the buffer before confirming it?

I'm looking to get the same behavior as in VSCode:
https://github.com/hrsh7th/nvim-cmp/assets/67281212/72e5e073-a2e9-451c-aac9-793f68f633c4
The reason I don't want to insert the selected suggestion before confirming it is because if there's no suggestion that I need and I close the completion menu, I don't want to have the last selected suggestion inserted into the buffer.
Haven't found any options that allow me to do that. Any help?
I'm using the latest version (commit 04e0ca3)
Here's my current nvim-cmp config:
return {
  "hrsh7th/nvim-cmp",
  event = "InsertEnter",
  dependencies = {
    "hrsh7th/cmp-buffer",           -- completion source for text in buffer
    "hrsh7th/cmp-path",             -- completion source for file system paths
    "hrsh7th/cmp-nvim-lsp",         -- completion source for lsp
    "saadparwaiz1/cmp_luasnip",     -- completion source for snippets
    "L3MON4D3/LuaSnip",             -- snippet engine
    "rafamadriz/friendly-snippets", -- set of useful snippets
    "onsails/lspkind.nvim",         -- vs-code like pictograms
  },
  config = function()
    local cmp = require("cmp")
    local luasnip = require("luasnip")
    local lspkind = require("lspkind")

    -- loads vscode style snippets from installed plugins (e.g. friendly-snippets)
    -- you can also specify a custom directory to load them from a non-standard location
    -- see https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#add-snippets
    require("luasnip.loaders.from_vscode").lazy_load()
    -- load snipmate snippets (from ~/.config/nvim/snippets)
    require("luasnip.loaders.from_snipmate").lazy_load()

    cmp.setup({
      snippet = { -- configure nvim-cmp to use luasnip for expanding snippets
        expand = function(args)
          luasnip.lsp_expand(args.body)
        end,
      },
      mapping = cmp.mapping.preset.insert({
        ["<C-j>"] = cmp.mapping.scroll_docs(-4),
        ["<C-k>"] = cmp.mapping.scroll_docs(4),
        ["<Tab>"] = cmp.mapping.confirm({
          behavior = cmp.ConfirmBehavior.Insert,
          select = true
        }),
      }),
      -- sources for autocompletion
      sources = cmp.config.sources({
        { name = "nvim_lsp" }, -- lsp
        { name = "luasnip" },  -- snippets
        { name = "path" },     -- file system paths
        { name = "buffer" }    -- buffer
      }),
      -- configure lspkind for vs-code like pictograms in completion menu
      formatting = {
        format = lspkind.cmp_format({ maxwidth = 50, ellipsis_char = "..." }),
      },
    })
  end,
}

You should use ``cmp.mapping.select_next_item instead.
https://github.com/hrsh7th/nvim-cmp/blob/main/doc/cmp.txt#L176

I ended up going with this:
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),

Works perfectly now. Thank you!