Rename Fatman to Job in database models

This image is changed, but not degreased. It still says fatman.

This image is changed, but not degreased. It still says fatman.

@LookACastle  What do you mean? dashboard-meowmeow.jpg has been removed in this Pull Request and it's replaced by https://github.com/TheRacetrack/racetrack/blob/92d89c601f6e63356c9207a1cdd3e5121059b88a/docs/assets/dashboard-example.png

The github UI confused me, you are right.


feat: manager support mysql ssl connection

Signed-off-by: Gaius<EMAIL_ADDRESS>
Description

Manager support mysql ssl connection.

Related Issue
Fixes #1012

Motivation and Context

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #1015 (fa50ede) into main (432a58f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1015   +/-   ##
=======================================
  Coverage   45.60%   45.60%
=======================================
  Files         128      128
  Lines        9122     9122
=======================================
  Hits         4160     4160
  Misses       4489     4489
  Partials      473      473

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
45.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


When I try to put record organizer on a record page I get an error

Is there an existing issue for this?

[X] I have searched the existing issues

Version of Corteza
2022.9.6
Current Behavior
Receive error and forever loading
Expected Behavior
Properly filter records
Steps To Reproduce

Add record organizer to record page
User ${recordID} in prefilter conditions

Environment and versions
No response
Anything else?

vue.esm.js:1906 Error: Can not use ${record...} variable in non-record pages
    at a.expandFilter (RecordOrganizerBase.vue:338:17)
    at a.handler (RecordOrganizerBase.vue:237:49)
    at ot (vue.esm.js:1872:26)
    at e.$watch (vue.esm.js:4974:7)
    at br (vue.esm.js:4930:13)
    at yr (vue.esm.js:4912:7)
    at cr (vue.esm.js:4670:5)
    at e._init (vue.esm.js:5029:5)
    at new a (vue.esm.js:5177:12)
    at ln (vue.esm.js:3313:10)

Fixed

What: Record organizer did not properly load when used on record pages while using ${recordID} in prefilter. If used on a record page, the values also now get properly prefilled.
How: By properly fetching once the record object becomes available and providing the reference record so values can be prefilled.

Changed

What: The record organizer now gets filtered based on the key field and key value.
Why: To avoid putting the knowledge on how to set up the prefilter and make the record organizer work on the user.
How: By generating a filter based on the key field and value and "AND-ing" it with the prefilter

@skamensky
Was fixed and will be released with 2022.9.7
Please note that the error itself is not the issue here, it is intended so certain blocks don't need to wait for the record object to get loaded before displaying them. Other blocks are dependant on the record object so therefore they need to be fetched once the record object becomes available

Thanks! Looking forward to the release :-D

Tested and confirming that this is now resolved. CL entry has been also added. Moving the card to Done.


Proper Eng/Fr Translations + various lang fixes

Spelling and menus display consistancies
Fix menus Uppercases for Fr/Eng
Properly show action of Keep screen On options (+rename the variable in source code)
ru language resource (google translate) and fr (native lang) for "Network Adnaced Options" menu

Hope you merge these
Note: I followed code to verify the keep screen on actions for both settings
I renamed settingScreenOnIfScreenOnAtStartOfSync variable to  settingForceScreenOnAtStartOfSync in source code for clarity
Best regards


Add support for Propshaft

Hello.
I added support for Rails 7 apps using Propshaft instead of Sprokets, fixing NameError: uninitialized constant Debugbar::Engine::Sprockets.
Thanks for this project.

Thank you! I can't believe I didn't see this one coming.

Thank you @mmx900 for your contribution. In the end, I removed reference to Sprocket and Propshaft and inserted the second middleware right after the first one: https://github.com/julienbourdeau/debugbar/commit/e3f8818abba8d0da67eeedbdf5ad265e6233842c


Ubuntu 21.04 - realesrgan executable doesn't work and crashes txt2imghd.py

So apparently realesrgan binaries are not supported on newer Ubuntus, they crash and txt2imghd doesn't work.
Is there a way to use realesrgan python libraries instead of executable?

realesrgan-ncnn-vulkan works fine on 22.04

I find it doesn't work on Ubuntu 18.04. As referenced here. You need to install libvulkan-dev and GLIBC_2.29, which can be done manually, but can easily break your system if you are not sure exactly what you are doing.
I can use the python libraries to run realesrgan, no problem. But Vulcan binary is no-go for ubuntu 18 or 16.

If anyone wonders how the workaround looks like;
Clone this fork into SD: https://github.com/ai-forever/Real-ESRGAN
Download their weights.
Replace the realesrgan2x function with the Class of the cloned realesrgan. You have to do a little tinkering but it works nicely.


Race Condition

I'm using the Java API with Selenium-WebDriver 2 to test against Opera. My setup:

Mac OSX Lion
OperaDriver 0.9
Selenium-WebDriver 2.16.0
Opera 11.6

When I find a link using XPath, click on it, and then check the current URL of the driver, I get different results. By default, I get the URL of the driver before I clicked on the link. If I add a Thread sleep call in my code (e.g., for 1000 milliseconds), then OperaDriver returns the correct URL of the page after the link is clicked.
I have not seen this issue with Firefox or Chrome drivers.

Do you have a reproducible test case?


update description about recommanded open kownledge license

For supporting open source knowledge projects, we provide six related license as suggestion. This pr will Add the official link of these licenses,

Related PR of Chinese version is : https://github.com/summer-ospp/help/pull/1

/lgtm


Alternative to Atom is VSCodium

VSCodium is VS Code, without the telemetry. Check it out at https://github.com/VSCodium.

Repository itself: https://github.com/VSCodium/vscodium


migrate config settings correctly

from old config name to new jupyter_nbextensions_configurator
fixes #667
also addresses the rename issue mentioned in https://github.com/ipython-contrib/IPython-notebook-extensions/issues/653#issuecomment-229820353 (although doesn't fix the bulk of #653)

I think this PR looks good.
The one thing I am unsure about is the dependency on  jupyter_nbextensions_configurator in configure_nbextension.py generally. IMO we should separate extensions and the configurator.

we should separate extensions and the configurator

yes, I guess we could, it hadn't really occurred to me. In that case we'd need to edit more docs to reflect the change, as a lot of things refer to the config extension provided by this repo. Tbh, this PR is a bit redundant given #671, anyway (since 671 already does this migration).

I think if we move the repository together with #671 to jupyter-contrib, we might leave this repo in a retired state (with links to the new repo). In this case it would make sense to decouple this repo from others, I believe.

we might leave this repo in a retired state (with links to the new repo)

Yes, that sounds like a reasonable plan.
One slight issue (ha!) is that if we leave this repo here, we'll have to think of some way to sensibly migrate any outstanding issues to the new repo, and get people to add new ones in the correct place, etc. - perhaps asking github to migrate to jupyter-contrib might make that simpler?

Yes, I guess migrating the complete repo is better in the end and will save us some headache.

Closed after restructuring of repo


Libraries should not include a composer.lock file

Remving composer.lock as that is bad style for a library

Will fail until #112 is merged

Gaaaahh, ironic that a composer.lock merge conflict is now disabling the merge button on this 😆

rebased :)

nice 👌


IPs endpoint update

Specifically, the ipv6_ranges key was renamed to just ipv6 I think.

I believe the return has been restructured a bit.


Memory Bug in Test

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[ ] Foundryup

What version of Foundry are you on?
forge 0.2.0 (0e33b3e 2023-07-26T07:07:06.336177323Z)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
Bug Description:
I encountered a memory bug while writing a test case using the Foundry framework. The error message indicates an invalid type for an argument in a function call, specifically an invalid implicit conversion from enum CoinType to enum CoinType requested. The relevant code snippet is as follows:
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import {Test, console2} from "forge-std/Test.sol";
import { ZRC20 } from "../../contracts/zevm/ZRC20.sol";
import { SystemContractMock } from "../../contracts/zevm/testing/SystemContractMock.sol";
import "./Interfaces.sol";

contract zrc20_interface is Test {
    ZRC20 public zrc20;
    SystemContractMock public systemContract;
    CoinType cointype;

    function setUp() public {
        cointype = CoinType.Zeta;
        systemContract = new SystemContractMock(address(0), address(0), address(0));
        zrc20 = new ZRC20("TOKEN","TKN",18,1,cointype,0,address(systemContract));
    }
}

Explanation:
If contract A imports B, and when you write a contract that imports the same context in B but in a different file C. There issue will occur.
The enum CoinType is defined in Interfaces.sol, and it seems there might be an issue with how it is imported in the test case.

import {Test, console2} from "forge-std/Test.sol";
-- import { ZRC20 } from "../../contracts/zevm/ZRC20.sol";
++ import { ZRC20, CoinType } from "../../contracts/zevm/ZRC20.sol";
import { SystemContractMock } from "../../contracts/zevm/testing/SystemContractMock.sol";
-- import "./Interfaces.sol";

The error:
Error (9553): Invalid type for argument in function call. Invalid implicit conversion from enum CoinType to enum CoinType requested.
  --> test/foundry/zrc20_interface.t.sol:16:46:
   |
16 |         zrc20 = new ZRC20("TOKEN","TKN",18,1,cointype,0,address(systemContract));
   |

Expected Behavior:
The contract should compile successfully without any memory-related errors.
Actual Behavior:
The compiler throws an error related to an invalid type for an argument in a function call.
Recommendation:
Create a new error log that specify the issue correctly to increase efficiency in debugging.

Got similiar error but using structs in storage when i try use that as memory it give me that error.
Error (9553): Invalid type for argument in function call. Invalid implicit conversion from struct Metadata storage ref to struct Metadata memory requested.

Got similiar error but using structs in storage when i try use that as memory it give me that error.
Error (9553): Invalid type for argument in function call. Invalid implicit conversion from struct Metadata storage ref to struct Metadata memory requested.

Do show the codes for clarity thanks

Marking as resolved, most errors are related to the Solidity compiler throwing errors
Remappings can be spotty and sometimes require manual mapping


Bug: Support for Google Cloud Logging on GKE

What are you trying to achieve?
Have Saleor logging get properly captured by Google Cloud Logging on GKE.
Currently when running Saleor as a container on GKE all logged messages including INFO messages are given the ERROR severity level and are not getting set to the correct severity level.

In the saleor/settings.py file I see there is some logging config:
https://github.com/saleor/saleor/blob/0db6c4bd18fbba5e5f812826ed8d41634a5c24a2/saleor/settings.py#L296
Is the issue to do with the configuration or formatting of the messages not being compatible with Google Cloud Logging?
Steps to reproduce the problem
Follow the set up steps detailed here and deploy to GKE on Google Cloud Platform:
https://docs.saleor.io/docs/3.x/setup/docker-images
Observe that all the logged messages in Google Cloud Logging for the GKE container is giving all logged messages the ERROR severity level.
What did you expect to happen?
Expected the severity level for all logged messages to be preserved.
Logs
No response
Environment
Saleor version: v3.15.2
OS and version: Docker container on GKE

So I was able to get this working by making the following changes.
Add the google-cloud-logging package to both requirements.txt and requirements_dev.txt.  For example:
google-cloud-logging==3.6.0 ; python_version >= "3.9" and python_version < "3.10"
Then make the following changes to the LOGGING config in the saleor/saleor/settings.py file:
Change every "class": "logging.StreamHandler", line to:
"class": "google.cloud.logging.handlers.StructuredLogHandler",
Comment out every "formatter":... line for example:
#"formatter": "verbose" if DEBUG else "json",


Try avoid conflicting jquery installs

Lots of other packages install jquery in bower, but use the "jquery" label.  Calling it jQuery confuses bower and tries to make it install multiple versions.

Thanks for pointing this out .. and for the fix!
I'll bump the version number shortly

.. and .. done! 1.0.4 is now in bower. Thanks once again for the contribution :)


Application name is not set

is:issue is:open Application name is not set. Call Builder#setApplicationName.

Provide more information so that someone can help you.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don’t hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Option to auto commit offsets on first join - Resolves #886

Record offsets at their current position, so that consumers are properly
registered to the topic.

@hyperlink is there any concerns with this PR?

@hyperlink any update on this?


"Condition  '!id_map.has(p_rid.get_data()) ' is true. returned: 0" unstoppable error spam

Godot version:
29c557a
OS/device including version:
Win10
Issue description:
There is unstoppable error spam, under certain circumstanses
Its probably related to new "Toggle split mode" button because it spam only after its pressed no matter activate or unactivate
Steps to reproduce:
-Click "Toggle split mode" button
-Click on Output window - After few seconds the spam will begin(or not if something wrong)

cc @groud

I can't reproduce on my side, can you try with latest master or provide a sample project ?

Also, maybe try deleting your cache (it is in /home/username/.cache/godot on linux but I don't know on windows, sorry)

Also, maybe try deleting your cache (it is in /home/username/.cache/godot on linux but I don't know on windows, sorry)

Yeah, deleting cache helps, bug can still happened but rarely than before. I need to observe it more precious to found the source.. (and build an example project)

Looks like its fixed, I close it for now

Nah.. its still happens. under certain circumstanses, linked to "Toggle split mode" button

Hmm.. its still not happened for a long time.. I will close it again

I'm getting the same error when:
        var Pixel = preload("res://Graphics/pixel.otf")

        var font = DynamicFont.new()
	font.size = 15
	font.font_data = Pixel
	draw_string(font, Vector2(20.0, 40.0), "Hello World!", "#000000")

E 0:00:00:0548   Condition ' !id_map.has(p_rid.get_data()) ' is true. returned: __null
     ./core/rid.h:164 @ getornull()

I'm getting the same error when:
        var Pixel = preload("res://Graphics/pixel.otf")

        var font = DynamicFont.new()
	font.size = 15
	font.font_data = Pixel
	draw_string(font, Vector2(20.0, 40.0), "Hello World!", "#000000")

E 0:00:00:0548   Condition ' !id_map.has(p_rid.get_data()) ' is true. returned: __null
     ./core/rid.h:164 @ getornull()

Ok, found it!!
https://github.com/godotengine/godot/issues/15023

This error continues to occur for several versions but the problem is closed?.


Working docker option

As @ingben pointed out in the PR #62, the docker option needed some corrections.
This new PR wraps up:

its changes in the documentation
a clean solution for seeding the database (see comment: https://github.com/OWASP/NodeGoat/pull/62#issuecomment-177604042).

@Pamplemousse Thanks for the PR. Your work is much appreciated. I will try it out as soon as I get  a chance and merge it.


scaffolder-backend-module-utils is not passing options to npm yaml package correctly

See this issue that was closed as stale. The underlying yaml library was changed from js-yaml to yaml but the interfaces are different and options are being passed incorrectly to yaml since the yamlOptionsSchema is unchanged.
Specifically, this is breaking noArrayIndent since yaml expects this to be passed as the option { indentSeq: false }
Expected Behavior
Should expose indentSeq via yamlOptionsSchema such that providing indentSeq: false results in:
my_array:
- item 1
- item 2
- item 3

Current Behavior
noArrayIndent is ignored, since it's not a valid option for yaml, and the default indent value of 2 is used.
my_array:
  - item 1
  - item 2
  - item 3

Steps to Reproduce
Use the roadiehq:utils:jsonata:yaml:transform action when scaffolding a template to transform some yaml array with the noArrayIndent option set to true. It will still indent the entries.
Possible Solution

Update yamlOptionsSchema yamlOptionsSchema to use the correct options from yaml
Update this assertion or add another test to validate the output vs. just the options passed

Context
We use roadiehq:utils:jsonata:yaml:transform to open PRs against another team's repository, and this bug violates their YAML style guide, causing organizational friction and rework.


Windows thinks the linux distribution is a trojan

I tried to download the latest (3.0.0) releases on Windows 11 machine.
I can download easly the Windows  and Mac distributions, but Windows defender found  a trojan on "hwi-3.0.0-linux-x86_64.tar.gz" file (Trojan:Script/Wacatac.B!ml).

Its gone.


Need Help to remove world name in chat prefix!

I need help with the world name next to the owner role i don't know how to disable it.

Execute ‘/pr config removeworldtag’ to remove the world name.


Integrate existing tests

Description
Port existing tests to work with tendermint.
Issues This PR Fixes
Fixes #1892

Codecov Report

Merging #1908 into tendermint will increase coverage by 8.69%.
The diff coverage is n/a.

@@              Coverage Diff               @@
##           tendermint    #1908      +/-   ##
==============================================
+ Coverage        45.6%   54.29%   +8.69%
==============================================
  Files              68       68
  Lines            3221     3221
==============================================
+ Hits             1469     1749     +280
+ Misses           1752     1472     -280

I would much prefer that we clarify the future of BigchainDB with respect to the FT and BFT versions. Will they be 2 products, a single one?
I have nevertheless approved the PR.


Add Interactive to Highlight Full Paths of Links

Dependent on this issue: https://github.com/jonobr1/force-directed-graph/issues/6


Oops, forgot to rename the directory.

That sounds good! Not sure how to do that on top of my head, but I'm sure we can figure it out 😆 👌


list files in advance for existence checks

When running the pipeline on 000s of samples, the existence checks alone are taking almost an hour (edit: taking over an hour: batch), before starting the pipeline. In other settings (e.g. here in the CellRegMap workflow) we've seen repeated single-file existence checks with cloudpathlib taking silly amounts of time, whilst a glob/listdir of the current content ahead of time, followed by a "was my file seen in that list of files" can take seconds. This PR is an attempt to get things up and running much faster:
At the sample Stage, before running existence checks on all SampleStage outputs individually:

find all per-sample output files using the expected_outputs call
find all unique directories containing those files
list all contents in all those directories (here using iterdir, previously I've used glob to do the same thing. I've done a little check and it produces the same output)
pass this as a [optional] set of Paths to _get_action, forwarded to _is_reusable
if a set of existing Paths was given as an argument, instead of doing existence checks, check for existence in the list of files
the rest of the does-the-output-exist logic is unaffected

e.g.
@StageMakeABC

samples CPG1, CPG2

CPG1 expected files: [gs://cpg-test/folder1/foo.txt, gs://cpg-test/folder1/folder2/bar.txt]
CPG2 expected files: [gs://cpg-test/folder1/homer.txt, gs://cpg-test/folder1/folder2/bart.txt]

unique parents: {gs://cpg-test/folder1, gs://cpg-test/folder1/folder2}
listdir on all parents: {
    gs://cpg-test/folder1/foo.txt,
    gs://cpg-test/folder1/homer.txt,
    gs://cpg-test/folder1/folder2/bar.txt
}

gs://cpg-test/folder1/folder2/bart.txt will be identified as 'not in current file list'
without having to run exists() on all files

That's not a very succinct example is it...

Some other tweaks I spotted that I don't feel strongly about:

name/description/analysis dataset is handled so weirdly... These are the relevant lines in main

analysis_dataset = get_config()['workflow']['dataset']
name = get_config()['workflow'].get('name')
description = get_config()['workflow'].get('description')
...
name = name or description or analysis_dataset
...
description = description or name

This is just a weird way of processing these 3 values, each capable of overwriting any other value. I've replaced this with
analysis_dataset = get_config()['workflow']['dataset']
name = get_config()['workflow'].get('name', analysis_dataset)
description = get_config()['workflow'].get('description', name)

Which might not achieve the exact same result under all circumstances, but isn't ridiculous to look at.

I fired the pipeline up (on a single stage workflow where the output was already completed): https://batch.hail.populationgenomics.org.au/batches/424560/jobs/1
Pros: The code looks like it works alright, is producing the same result as the version on main
Negs: I doubt this will achieve the time saving I'm looking for. Looking at that long running batch I referenced in the top-level description, the timestamps in the logging suggest that the 20-minute chunks of time passing occur when submitting the jobs, rather than assessing them (in this instance it looks like ~17500 Genotyping jobs took 20 minutes to submit)
2023-06-07 01:09:18 INFO (root 1104): ************************************************************
2023-06-07 01:09:18 INFO (root 1105): Stage #3: JointGenotyping <- [Genotype]
2023-06-07 01:09:20 INFO (root 668): JointGenotyping: Cohort("seqr", 24 datasets) [QUEUE]
2023-06-07 01:27:02 INFO (root 69): Submitting joint-calling jobs
2023-06-07 01:28:30 INFO (root 170): Queueing gather VCFs job
2023-06-07 01:28:30 INFO (root 182): Queueing gather site-only VCFs job
2023-06-07 01:41:36 INFO (root 1113):
2023-06-07 01:41:36 INFO (root 1104): ************************************************************
2023-06-07 01:41:36 INFO (root 1105): Stage #4: Vqsr <- [JointGenotyping]
2023-06-07 01:41:37 INFO (root 668): Vqsr: Cohort("seqr", 24 datasets) [QUEUE]
2023-06-07 01:42:28 INFO (root 1113):

I've updated this PR with change from #377  - that change is specifically aimed at removing 'placeholder' jobs from the Hail Batch workflow dependency graph. In recent workflows like the one linked in this PR's description, 90% of the jobs would not be scheduled at all, which should make pipeline startup much quicker.
When a pipeline runs for the first time on new samples, and 000s of jobs are actually required, this won't improve the time taken to get started.


[Bug Report] hook_resid_pre doesn't match hidden_states

Describe the bug
cache[f"blocks.{x}.hook_resid_pre"] doesn't match hidden states (or only up to a set decimal place).
Hidden states is from transformer's model(tokens, output_hidden_states=True). I've checked if it matches post layer norm, but it does not. Plus it's odd that they match within a set number of decimal place for the first few layers, but not the last few.
I do expect both of these to show the state of the residual stream, but could be misunderstanding either of them.
Code example
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_name = "EleutherAI/pythia-70m-deduped"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
tl_model = HookedTransformer.from_pretrained(model_name, device=device)
text = "The quick brown fox jumps over the lazy dog"
tokens = tokenizer(text, return_tensors="pt").input_ids.to(device)
output = model(tokens, output_hidden_states=True)
hidden_states = output.hidden_states
_, cache = tl_model.run_with_cache(tokens)

for x in range(tl_model.cfg.n_layers):
    for y in range(5, -1, -1):
        if(torch.allclose(cache[f"blocks.{x}.hook_resid_pre"], hidden_states[x], atol=10**-y)):
            print(f"blocks.{x}.hook_resid_pre matches hidden_states[{x}] to {y} decimal places")
            break

System Info
Python 3.10.11
pip install -r requirements.txt w/ (transformer-lens @ git+https://github.com/neelnanda-io/TransformerLens@ae32fa54ad40cb2c3f3a60f1837d0b4899c8daae) as a line
Checklist

[X] I have checked that there is no similar issue in the repo (required)

I've been facing the same issue. I suspect there is a tiny mismatch of GPTNeoX config and HookedTransformerConfig. I'm trying to figure it out and also looking forward to your solution!

Thanks for pointing out the config. So I noticed two things:

It messes up at the very beginning
cache["hook_embed"], hidden_states[0], model.gpt_neox.embed_in(tokens)
The cache is different than the other two.

The initializer range is wrong
for transformer lens it's 0.035355...
for pythia-70m-deduped it's 0.02

I changed the config to match the initializer range, & re-ran it, but it didn't work. Maybe required on init or something else is wrong.

Use HookedTransformer.from_pretrained_no_processing(model_name, device=device) . I get errors of at most 3 decimal places which I think is within the range of normal floating point errors in float32 computation (?)
The library makes changes to weight matrices (such as removing the Layer Norm bias and gain from the forward pass altogether!) to make things much easier for interoperability.
You should read https://github.com/neelnanda-io/TransformerLens/blob/main/further_comments.md

Thanks for the link & code! I am able to replicate & also get an exact match for the embedding if I subtract the embedding-weights by the mean as suggested in your link.
For my task, I'm creating reconstructions of the residual stream to find interpretable directions for model steering. I'm unsure if the original HookedTransformer.from_pretrained() is functionally equivalent, but the no_processing one does seem so since it's at most 3 decimal places different.

I believe that there will be an extra term parallel to the (1, 1, ... , 1) direction in the non-preprocessed model because TL removes this (as do LayerNorms). So theoretically I expect TL to perform very slightly better but neural nets are weird, I'm not confident


input text color not working

Hi i new for native base user, and i love your project so much, However i facing one issue.I want to change the input text color to white. But it seem like not working, Can anyone please give some guide?
` <Item
                                    regular
                                    style={{
                                    borderColor: '#a5843e',
                                    marginTop: 20,
                                    marginLeft: 20,

                                    marginRight: 20
                                }}>

                                    <Input
                                        Color="#FFF"
                                        tintColor="#FFF"
                                        placeholder='Username'
                                        placeholderTextColor="#a5843e"
                                        onChangeText={username => this.setState({username})}/>
                                </Item>`

you can change the color of the input text by adding it in style
<Input style={{ color: "#fff" }} />

Hello @akhil-geekyants ,
I have this as a code snippet, but the color doesn't change
<Input
    returnKeyType="next"
    autoCapitalize="none"
    keyboardType="email-address"
    onChangeText={value => setFieldValue('username', value)}
    onBlur={() => setFieldTouched('username')}
    value={values.username}
    editable={!isSubmitting}
    style={{ color: '#FFF' }} />


Use "Command" instead of "Meta" for macOS (#1619)

This is a work-in-progress; not covered are translation strings. I don't know how Godot's translation system works, but ideally the key names should be translated separately using placeholders, and not included literally in the strings.

I made a union in InputEvent and put Command as linked to either Meta or Control depending on the platform. I am not sure what the cleanest solution is, given Meta probably does not exist on mac.

Please advise how to fix translation strings. For example, there are parts of code that look like TRR("Meta+"); this should be translated as "Command+" on mac.

I guess it should be like this? https://github.com/godotengine/godot/pull/4812#issuecomment-222353391

Please advise how to fix translation strings. For example, there are parts of code that look like TTR("Meta+"); this should be translated as "Command+" on mac.

You can use vformat, or an #ifdef OSX_ENABLED.

Great; one last thing, if I do something like TTR(vformat(TTR("Press %s to foo the bar"), find_keycode_name(KEY_META))), the key name itself won't be translated, right? How should it be translated? Can the string literals in keyboard.cpp itself be translated, e.g. {KEY_META, TTR("Meta")}? Or is there a translation function that can take a variable, like TTR(find_keycode_name(KEY_META))? Or should key names not be translated at all?

Sorry for the delay - I haven't forgotten about this one but I want to give it a thorough check before merging and haven't gotten to it yet.


Added HACS config

As per https://hacs.xyz/docs/publish/integration/ and https://hacs.xyz/docs/publish/start/#hacsjson this should be everything that would be required to serve this integration via hacs

+1

It's a bit more complicated since the whole directory structure of the repository needs to change for HACS. I am working on the changes and will release a new version when ready.


Remove java.security.manager=allow from JDK 24

In JEP 486 for Java 24 any attempt to enable a security manager (such as -Djava.security.manager=allow) will result in an error.
I'm opening this as a draft so I can work on disabling system tests that will fail with this change.

The remaining failures are due to use of the SecurityManager library in the system test framework. I opened https://github.com/adoptium/STF/issues/142 and will temporarily disable the failing tests.

This is ready for review fyi @llxia


Example not working on Chrome/Arc v.124(M1 Mac)

System Info
M1 Mac
Sonoma
Using the example code.
Environment/Platform

[X] Website/web-app
[ ] Browser extension
[ ] Server-side (e.g., Node.js, Deno, Bun)
[ ] Desktop app (e.g., Electron)
[ ] Other (e.g., VSCode extension)

Description
Using the repository from : https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat and "@xenova/transformers": "github:xenova/transformers.js#v3", it gets stuck on ..loading model..
On the huggingface demo here is the output on the console:

Meanwhile on the local page, here is how the output looks like:

Reproduction

Clone repo from https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat
npm i and do npm run dev;
Go to url
Load Model
Model gets stuck on ...loading...

Duplicate of https://github.com/xenova/transformers.js/issues/748.

It should now work (commits: here and here)!

Thanks! Do you have a page where there's documentation on how to convert ONNX models to ONNX-Web models by any chance

Sure, we use Optimum, and you can find additional information there.
You can also use our helper conversion script for helping with quantization.

Sure, we use Optimum, and you can find additional information there.
You can also use our helper conversion script for helping with quantization.

Thanks Joshua!


Value: nil is both present AND nil

[2] pry(main)> guest = GuestAccount.new(id: session["guest_account_id"])
=> #<GuestAccount:0x0000562914c00560 @created_at=#<Redis::Value nil>, @id="1e858f26-f22c-4a12-9c99-d9a938964fe7">
[3] pry(main)> guest.created_at.nil?
=> true
[4] pry(main)> guest.created_at.present?
=> true

guest is an object store a nil value
use guest.value  instead


CUDA test failing

Out of the box I'm seeing ptest.lua in asyncsgd fail when I set:
local usecuda = true

I get the following:
$ mpiexec -np 2 luajit ptest.lua

rank 1 is client.
rank 0 is server.
0	use cpu
1	use gpu	1

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 30740 RUNNING AT code13
=   EXIT CODE: 139
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

It looks like the problem is that the storages that are referenced in the asynchronous send/receives are actually CudaStorages which point to GPU memory. Should they in fact be FloatStorages? If I hack each CudaTensor to have a corresponding FloatStorage then it seems to work.
Thanks.

You might not install the mpi correctly, maybe you can try to install the lastest openmpi with the following:
./configure --prefix=$POME/exe/$MPI --with-cuda=$POME/exe/cuda
Sixin


Different Appbar with same bottomNavigatioBar without nesting Scaffolds

If you want to have a bottom navigation bar(CircularNotchedRectangle) with a nice floatingActionButton on all your app sections(pages) but different appBar the only solution is to use nested Scaffolds.
Based on some observations and comments (https://github.com/flutter/flutter/issues/23106#issue-370255150) nesting scaffolds is not so good strategy.
The comment (https://github.com/flutter/flutter/issues/23106#issuecomment-452689090) didn't get the attention that deserved.
Here is my situation, I have Scaffold without appBar with bottom navigation bar and the body is a TabController.
Main Page(HomePage)
Scaffold(
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
      floatingActionButton: FloatingActionButton(...),
      bottomNavigationBar: BottomAppBar(...),
      body: TabBarView(
        physics: NeverScrollableScrollPhysics(),
        controller: _tabController,
        children: _tabList,
      ),

Every section use (fancy appBar if needed):
@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Settings"),
      ),
      body:....

I think in iOS the bottom navigationBar is a controller of its own. On Android, BottomAppBar in MainActivity (???). Maybe Scaffold is doing too many things.
A widget that wraps bottomNavigationBar should be something usefull and from there you cand have independent Scaffolds.

Until then, based on the documentation I used
_tabController.addListener(() {
      if (_tabController.indexIsChanging) {}}))

to change the appBar properties, the benefit is that the appBar is in place.
I would preferred to have the appBar on my section and there to have all my logic but then the appBar would also slide in/out when tabController changes.

Separating out the scaffold components (AppBar, bottomNavigationBar) would be useful for me also. In my scenario I want to create a tablet layout where the screen is split in two, list on the left with a bottomNavigationBar and on the right detailed view that could navigate between different pages, across the top of both would be the AppBar.

@HansMuller I still am not seeing how nested Scaffolds works to solve the bottom navigation problem as in #23106, in part because it still doesn't seem like you actually can use nested Scaffolds without breaking basic features: it really just seems like Scaffold is coupled together with essentially every single UI feature; the class should be broken apart.
Here is the situation, which to me seems like it should be really simple: a material design app with a drawer and a bottom navigation bar, with actions; the actions are different depending on your destination (of course, as the destinations are by definition unrelated) and there is at least one destination whose set of actions (or title) changes based on state.
First off, it is trivial to disprove nesting Scaffolds: the AppBar must be passed to the same Scaffold as the Drawer, or the hamburger menu button doesn't appear; meanwhile, the Drawer must be on the same level as the BottomNavigationBar, as otherwise the drawer appears under the bottom navigation bar. This logics out to "only one Scaffold".
Note that we haven't even gotten to the point of messing with the actions or the app bar or the state issues: the inability to nest Scaffolds happened simply due to the addition of Drawer. Many material applications use bottom navigation bars and drawers: as soon as you have both of these features you can no longer use the nested Scaffold tricks.
If we want to configure the title and actions of the AppBar based on the Widget, so far this isn't that bad: we can have the Widget for the individual destinations provide the title and action with methods on some interface or subclass (returning null if there should not be an action, otherwise it makes a button). I did that and here is an example:
class _OrcHome extends State<OrcHome> {
  var index_ = 0;

  @override
  Widget build(BuildContext context) {
    final destination = widget.destinations[index_].builder(context);
    final action = destination.action(context);

    return Scaffold(
      appBar: AppBar(
        title: Text(destination.title(context)),
        actions: action == null ? null : [
          IconButton(icon: Icon(action.icon), onPressed: action.onTap),
        ],
      ),
      body: page,
      bottomNavigationBar: BottomNavigationBar(
        type: BottomNavigationBarType.fixed,
        items: widget.destinations,
        currentIndex: index_,
        onTap: (index) { setState(() { index_ = index; }); },
      ),
      drawer: Drawer(child: OrcDrawer()),
    );
  }
}

The Widget which created this State contains a List "destinations", which contains objects that are each a subclass of BottomNavigationBarItem which adds a builder so you can create the Widget for that destination. The code for using this same list with a CupertinoTabScaffold is pretty obvious, and so we now have Material and Cupertino UIs.
Except, this actually requires that the actions be immutable data associated with the Widget that represents the destination, and does not allow the action to be controlled by the state of the destination. FWIW, with Cupertino this is trivial, as the CupertinoNavigationBar is part of the destination, but we must hoist it up to this level for Material.
We could try to hoist the state for the destination up above the entire Scaffold, but that is going to get really awkward if we have more than one destination with state and is causing even more tight coupling: the way I got here is that my UI person was complaining that every time we moved a feature from a tab to the drawer or back it required him to rewire massive parts of the app, and it turns out he was right due to how he was being forced to put all of the AppBar state into a giant ball of state associated with the Scaffold and then rip it out if we moved it into its own Scaffold by putting the route inside of the drawer. Really, the code for the actual destination shouldn't need to change if we change how you get to the content for that destination.
I so far have spent an entire day staring at this scenario and haven't figured out how to get past this point :(. I do this kind of UI a lot in native apps--I'll have something like a toggle button in the upper-right hand corner, or change the title of the app bar based on stuff happening inside of the destination--but Flutter's Material Scaffold is all jumbled together.
(I guess my next strategy is going to be to try to build a general framework for hoisting state so I can hoist arbitrary amounts of destination state--effectively all of my state...--to the top of the widget tree, but that really seems super wrong as it seems to undermine the entire ability to keep state close to the widgets that truly care about that state.)
Ideas?

(I'm actually managing to come up with a scheme that involves assigning all destinations--and all pages in general: anything that would end up sitting inside of a Scaffold and need to manipulate the AppBar--a GlobalKey, and it is feeling somewhat reasonable? But this would still be much easier and you could just do "the obvious thing" without crazy State hacks if Scaffold were more modular.)

For me, it also takes away the capability to push independent page widgets to the navigator. As a result, it takes more code to handle dynamic links and routing to specific destinations when a user taps on some random notification item. Also, as different views need different types of actions in appbar, the code becomes a bit coupled and more error-prone as everything is in one place. Also, you might need to lift your view models up to make complex appbar actions work. This does not feel good.

It should definitely be decoupled, but not only that, the whole concept of navigation in flutter should be put back on drawing board. You should come up with a standard of some sort on how to navigate between pages, screens, tabs and so on. I'd propose taking others' work as basis.
Currently, using BottomNavigationBar to navigate via named routes is extremely hacky as you're basically getting into chicken and egg problem where route builder returns a scaffold+appbar that was supposed to already contain navbar that builds the scaffold that requires it. It's a circular dependency and shows the deficiency of design. I'm not mentioning the great extremes that people have to go in order to make navigation transitions adequate when using MaterialRoutes and navbar+appbar.
I started reading an article from HansMuller that was working around all these bugs in order to make destination switching with btmnavbar proper, but I stopped at half of the article as it was outrageously complex&hacky.
Also, all these transitions with animation controllers for navbars, these should really be incorporated into navigation controls, pre-built, pre-defined. Only after that you should consider allowing user to modify or adjust them in any way. If someone wants something custom-built, they should go canvas.

@celesteking I definitely agree that it currently seems unnecessarily complex. Especially regarding pushing navigation within specific tabs.
Hopefully the new Navigator in #45938 (PR #60299) helps with this.
I'd rather not have to deal with the current mess of nested Navigators that I currently have to use for handling navigation within different tabs.

this is what I did
main scaffold class
`
int selectedindex = 0;
bool actiononappbar = false;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
actions: actiononappbar == true ? [Text("data")] : null,
),
bottomNavigationBar: ConvexAppBar(
style: TabStyle.fixedCircle,
items: [
TabItem(icon: FontAwesomeIcons.home, title: 'Option1'),
TabItem(icon: FontAwesomeIcons.heart, title: 'Option2'),
TabItem(icon: FontAwesomeIcons.gem, title: 'Option3'),
TabItem(icon: FontAwesomeIcons.shoppingBag, title: 'Option4'),
TabItem(icon: FontAwesomeIcons.user, title: 'Option5'),
],
initialActiveIndex: 0, //optional, default as 0
onTap: (int i) {
setState(() {
selectedindex = i;
if (i == 2) {
actiononappbar = true;
} else {
actiononappbar = false;
}
});
},
),
drawer: CustomDrawer(),
body: showPage(),
);
}
Widget showPage() {
List wList = [Option1(), Option2(), Option3(), Option4(), Option5()];
return wList[selectedindex];
}
`

this is what I did
main scaffold class
`
  class Class extends StatefulWidget {
  Class({Key key}) : super(key: key);

  @override
  _ClassState createState() => _ClassState();
  }
  class _ClassState extends State {int selectedindex = 0;
  bool actiononappbar = false;
  @override
  Widget build(BuildContext context) {
  return Scaffold(
  appBar: AppBar(
  actions: actiononappbar == true ? [Text("data")] : null,
  ),
  bottomNavigationBar: ConvexAppBar(
  style: TabStyle.fixedCircle,
  items: [
  TabItem(icon: FontAwesomeIcons.home, title: 'Option1'),
  TabItem(icon: FontAwesomeIcons.heart, title: 'Option2'),
  TabItem(icon: FontAwesomeIcons.gem, title: 'Option3'),
  TabItem(icon: FontAwesomeIcons.shoppingBag, title: 'Option4'),
  TabItem(icon: FontAwesomeIcons.user, title: 'Option5'),
  ],
  initialActiveIndex: 0, //optional, default as 0
  onTap: (int i) {
  setState(() {
  selectedindex = i;
  if (i == 2) {
  actiononappbar = true;
  } else {
  actiononappbar = false;
  }
  });
  },
  ),
  drawer: CustomDrawer(),
  body: showPage(),
  );
  }
  Widget showPage() {
  List wList = [Option1(), Option2(), Option3(), Option4(), Option5()];
  return wList[selectedindex];
  }
  }`

this is what I did
main scaffold class
import 'package:flutter/material.dart';
class Class extends StatefulWidget {
Class({Key key}) : super(key: key);
@override
_ClassState createState() => _ClassState();

}
class _ClassState extends State {int selectedindex = 0;
bool actiononappbar = false;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
actions: actiononappbar == true ? [Text("data")] : null,
),
bottomNavigationBar: ConvexAppBar(
style: TabStyle.fixedCircle,
items: [
TabItem(icon: FontAwesomeIcons.home, title: 'Option1'),
TabItem(icon: FontAwesomeIcons.heart, title: 'Option2'),
TabItem(icon: FontAwesomeIcons.gem, title: 'Option3'),
TabItem(icon: FontAwesomeIcons.shoppingBag, title: 'Option4'),
TabItem(icon: FontAwesomeIcons.user, title: 'Option5'),
],
initialActiveIndex: 0, //optional, default as 0
onTap: (int i) {
setState(() {
selectedindex = i;
if (i == 2) {
actiononappbar = true;
} else {
actiononappbar = false;
}
        });
      },
    ),
    drawer: CustomDrawer(),
    body: showPage(),
);
}

Widget showPage() {
List wList = [Option1(), Option2(), Option3(), Option4(), Option5()];
return wList[selectedindex];
}
}

this is what I did
main scaffold class
class Class extends StatefulWidget {
  Class({Key key}) : super(key: key);

  @override
  _ClassState createState() => _ClassState();
}

class _ClassState extends State<Class> {int selectedindex = 0;
bool actiononappbar = false;

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        actions: actiononappbar == true ? [Text("data")] : null,
      ),
      bottomNavigationBar: ConvexAppBar(
        style: TabStyle.fixedCircle,
        items: [
          TabItem(icon: FontAwesomeIcons.home, title: 'Option1'),
          TabItem(icon: FontAwesomeIcons.heart, title: 'Option2'),
          TabItem(icon: FontAwesomeIcons.gem, title: 'Option3'),
          TabItem(icon: FontAwesomeIcons.shoppingBag, title: 'Option4'),
          TabItem(icon: FontAwesomeIcons.user, title: 'Option5'),
        ],
        initialActiveIndex: 0, //optional, default as 0
        onTap: (int i) {
          setState(() {
            selectedindex = i;
          if (i == 2) {
              actiononappbar = true;
            } else {
              actiononappbar = false;
            }

          });
        },
      ),
      drawer: CustomDrawer(),
      body: showPage(),
  );
  }

Widget showPage() {
    List<Widget> wList = [Option1(), Option2(), Option3(), Option4(), Option5()];
    return wList[selectedindex];
  }
}

I am very disappointed of the fact that the navigation concept is so complex. I mean, the use case is pretty common: having a bottom navigation bar that navigates screens which have different app bars. What's the big deal? Also, what if you want to have a FAB on one of the screens? It's coupled to the Scaffold widget.
Essentially, the problem is that the Scaffold tries to solve UI issues like placing an app bar and a FAB, but also navigation issues like having a bottom navigation bar. It's very cumbersome. And it's not unsolvable - have a look at React Native.
Flutter performs so well in so many regards but this is a huge problem in my opinion. And Navigator 2.0 hasn't changed anything, it only provides a declarative API with the same flaws.

It is said that nesting scaffolds actually works?
https://github.com/flutter/flutter/issues/7036#issuecomment-462990599
I'm having this same problem where I have bottom navigation and then I want to use different app bars in those views which requires Scaffolds, but I'm not 100% sure is it good to nest them.

I am very disappointed of the fact that the navigation concept is so complex. I mean, the use case is pretty common: having a bottom navigation bar that navigates screens which have different app bars. What's the big deal? Also, what if you want to have a FAB on one of the screens? It's coupled to the Scaffold widget.
Essentially, the problem is that the Scaffold tries to solve UI issues like placing an app bar and a FAB, but also navigation issues like having a bottom navigation bar. It's very cumbersome. And it's not unsolvable - have a look at React Native.
Flutter performs so well in so many regards but this is a huge problem in my opinion. And Navigator 2.0 hasn't changed anything, it only provides a declarative API with the same flaws.

I just smashed into that issue myself...

I just smashed into that same issue myself...

It is okay to nest scaffold's if that's the issue you are facing

I've been nesting scaffolds until I needed a drawer. When this happens, the drawer appears below the BottomNavigationBar. I tried to hack it by having the drawer in the parent Scaffold. But then I have 2 AppBars appearing to stack on top of each other in a row.
Right now pretty much I have to lift the state up to accommodate this issue. Which means that each tabbed page is not modular! It is tied directly to the parent screen. So updating one page, will require updating the parent screen as well. This coupling makes it hard to code the sub screen in a modular way in the case where you want it to be available on another page or as a standalone page.
If I do want to sub page to be available elsewhere, I would need to duplicate the code. Ewww...

@henk-lim Ok, so yeah then: it sounds like the situation is the same mess as it was when I left my long analysis of this here two years ago (when I started investigating why our UI engineer kept insisting that re-parenting a page in our app's flow was a task that for some reason required messing with tons of code and state despite my mental model that that level of coupling couldn't possibly be required), which included this drawer layering issue explicitly.

First off, it is trivial to disprove nesting Scaffolds: the AppBar must be passed to the same Scaffold as the Drawer, or the hamburger menu button doesn't appear; meanwhile, the Drawer must be on the same level as the BottomNavigationBar, as otherwise the drawer appears under the bottom navigation bar. This logics out to "only one Scaffold".

FWIW, I ended up doing something ridiculous for one of my apps wherein I created a new interface for getting scaffold-level information about a "page"--including at least titles and upper-right-corner buttons--and then I built my app shell around working with "pages"... but frankly the result was still a finicky mess as I never spent the time (partly as the pandemic really got to me and that entire project task got put off) to ensure that when state changed the correct parts of the scene hierarchy would automatically update (as this added an awkward dependency down through the tree).

I encountered the same problem writing my app...
Is it still unresolved? Do you guys found some valid work-around?

I also run into the same issue, paired with GoRouter.
Any new ideas here?

same issue here.
nesting scaffolds is really not recommended.
a valid workaround is to navigate per named route w/ KeepAlive, still not a clean solution.

in the last few years mobile apps have converged on the (bottom) navigation bar pattern. flutter should make it easy to handle this with routing and scaffolds and appbars etc.
as of now it seems there's no "right way" to do it.

I have the same problem with the following use case:
a bottom navigation bar with 4 pages, where every page has a different app bar.
e.g. page 1 even has an app bar with search functionality and tab bar, while the other pages don't


parents: cannot read property 'reverse' of null

Describe the bug
Calling parents sequentially on two different sibling nodes breaks. I'm on:

enzyme 3.4.4
enzyme-adapter-react-16 1.2.0

TypeError: Cannot read property 'reverse' of null
    at parentsOfNode (http://localhost:9876/base/frontend/react-specs.js:41255:32)
    at ShallowWrapper.<anonymous> (http://localhost:9876/base/frontend/react-specs.js:62256:50)
    at ShallowWrapper.single (http://localhost:9876/base/frontend/react-specs.js:62811:25)
    at ShallowWrapper.parents (http://localhost:9876/base/frontend/react-specs.js:62255:41)
    at UserContext.<anonymous> (http://localhost:9876/base/frontend/react-specs.js:248367:18)
    at attempt (http://localhost:9876/base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4289:46)
    at QueueRunner.run (http://localhost:9876/base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4217:20)
    at QueueRunner.execute (http://localhost:9876/base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4199:10)
    at Spec.queueRunnerFactory (http://localhost:9876/base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:909:35)
    at Spec.execute (http://localhost:9876/base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:526:10)

To Reproduce
The following test will reproduce the issue:
it('breaks', () => {
  class Test extends React.Component {
    render() {
      return (

A child

B child

      );
    }
  }

  const wrapper = shallow(<Test />);

  const aChild = wrapper.find({ children: 'A child' });
  const bChild = wrapper.find({ children: 'B child' });

  aChild.parents({ className: 'a' });
  bChild.parents({ className: 'b' });
});

Expected behavior
It should not throw an error.
Desktop (please complete the following information):

OS: macOS 10.13.6
Browser Chrome
Version 68.0.3440.106 (Official Build) (64-bit)

Additional context
In the above example, changing the order of accessing parents works:
const aChild = wrapper.find({ children: 'A child' });
aChild.parents({ className: 'a' });

const bChild = wrapper.find({ children: 'B child' });
bChild.parents({ className: 'b' });

Related to #410; thanks for the report.

Your test case was very helpful; there's something very worrying going on here.
I've put up #1781 to track a fix.

Thanks for digging into it! @juanca and I may look into your PR, as well, and see if we can help


fix convolution compute_binary build issue

This PR is about fix the compute_binary API build issue that calling a wrong do_prepare API, and also removing the INT8 path which we don't enable it now.

@jgong5 @XiaobingSuper @Guobing-Chen

Add Weiwen for INT8. @Xia-Weiwen

Please do not remove the int8 path. I think we will use it for conv-add-relu fusion for int8 in stock pytorch in the future.

I think we can first remove the INT8 path, because it has not been tested, we can't make sure it works.

I think we can first remove the INT8 path, because it has not been tested, we can't make sure it works.

OK


[Bug] Server is double-sending all chat and server messages

Checks

[X] I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting.
[X] I confirm that I followed the MCDC Docs and read the Changelog, but this problem still exists.
[X] I confirm that I noted that if I don't follow the instructions, the issue may be closed directly.

Minecraft Version
1.18.2
MC-Discord-Chat Version
Latest Build
Description
It seems there is an extra Server webhook send that is duplicating everything that should be sent to the channel. I'm not sure how to fix this.

Oh sorry, I thought I downloaded the latest version from curseforge. Do I not have the latest version?

Latest build is not equivalent to Latest Release

CurseForge requires manual review before publishing, so there is a delay on new releases. Current latest is 2.2.3.
But do not download it, cuz 2.2.3 does not work on 1.18.2 at all. Fixing

MC-Discord-Chat-2.2.3.jar.zip
You may use this as a temporary fix.
This also proves that there are very few people using the old version of MC, otherwise such a serious problem should have been reported long ago. Thanks for reporting :)

This issue's related feature (console <> discord messaging) has been removed in versions 1.18.2 and below due to compatibility issues.

This issue's related feature (console <> discord messaging) has been removed in versions 1.18.2 and below due to compatibility issues.

Changed the method of how the server process /say commands, and restored the feature in version 1.18.2 and below.


[lit-next] Give private exports unique names

Renames the private object export _$private to have non-conflicting names, since lit-element re-exports all of lit-html:

lit-html.ts: _$private → _$lhPrivate
lit-element.ts: _$private → _$lePrivate

Fixes #1505

how about instead of le and lh, we use the same greek symbols we use for prefixes?


python3Packages.aiosenz: init at 1.0.0

Motivation for this change
Python wrapper for the nVent Raychem SENZ RestAPI
https://github.com/milanmeu/aiosenz
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] 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.05 Release Notes (or backporting 21.11 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.

Result of nixpkgs-review pr 151226 run on x86_64-linux 1

2 packages built:

python38Packages.aiosenz
python39Packages.aiosenz


OCPBUGS-26977: Added docs to get other sdn providers deployed with agent provider

What this PR does / why we need it:
This PR adds docs to the agent provider section on how to get other SDN providers (Calico and Cilium) deployed in a HostedCluster.
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
None
Checklist

[X] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[X] This change includes docs.
[ ] This change includes unit tests.

Handing this PR over meanwhile @mvazquezc is OoO.

/title OCPBUGS-26977,OCPBUGS-28538: Added docs to get other sdn providers deployed with agent provider

/retitle OCPBUGS-28538: Added docs to get other sdn providers deployed with agent provider

/jira refresh

/jira refresh

/approve

/lgtm

The backport is not needed because it's only documentation, but the affectation it's also covering 4.14 OCP versions.


remove the beep sound before and after recording

Is this something we could do on the plugin or it is something forced by android ?

This is not an issue with plugin. Check this out if you want to add this custom behaviour:
https://github.com/galrom/ContinuesVoiceRecognition

Hi, is this issue closed?
I'm using this plugin in an Ionic v.3 app, working very well on both platform (IOS,Android).
I've the same "problem" of @mathieu21, on Android i'd like to remove thee beep sound on start and end recognition (same sound of Google Assistant).
On the other hand on IOS no sounds is played automatically that is the behaviour that i expect.
I've read the @apuravchauhan workaround, so we need to write Java code? There's no solution to remove beep sound with this PhoneGap plugin?
Thanks

It's been 2 years... How can one fix this?

It's not a bug, it's a "feature", sorry, we can't do anything about it


Add validating webhook

and validate worker group names are unique.
Much of the code was generated by running the command below as documented in
kubebuilder.
kubebuilder create webhook \
  --group ray \
  --version v1 \
  --kind RayCluster \
  --defaulting \
  --programmatic-validation`

Example RayCluster that has duplicate worker group names
cat dupe-worker-group-name.yaml

apiVersion: ray.io/v1
kind: RayCluster
metadata:
  name: dupe-worker-group-name
spec:
  headGroupSpec:
    rayStartParams:
      dashboard-host: '<IP_ADDRESS>'
    template:
      spec:
        containers:
        - name: ray-head
          image: rayproject/ray:2.7.0
  workerGroupSpecs:
  - replicas: 1
    minReplicas: 1
    maxReplicas: 10
    groupName: group1
    rayStartParams: {}
    template:
      spec:
        containers:
        - name: ray-worker
          image: rayproject/ray:2.7.0
  - replicas: 1
    minReplicas: 1
    maxReplicas: 10
    groupName: group1
    rayStartParams: {}
    template:
      spec:
        containers:
        - name: ray-worker
          image: rayproject/ray:2.7.0

Before
kubectl apply -f dupe-worker-group-name.yaml
raycluster.ray.io/raycluster-dupe-worker-name created

After
kubectl --context kind-kind apply -f config/samples/ray-cluster-dupe-worker-name.yaml                                                                                (base)
The RayCluster "raycluster-dupe-worker-name" is invalid: spec.workerGroupSpecs[1]: Invalid value: v1.WorkerGroupSpec{GroupName:"group1", Replicas:(*int32)(0x40006e63cc), MinReplicas:(*int32)(0x40006e63c8), MaxReplicas:(*int32)(0x40006e63c0), RayStartParams:map[string]string{}, Template:v1.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:"", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v1.PodSpec{Volumes:[]v1.Volume(nil), InitContainers:[]v1.Container(nil), Containers:[]v1.Container{v1.Container{Name:"ray-worker", Image:"rayproject/ray:2.7.0", Command:[]string(nil), Args:[]string(nil), WorkingDir:"", Ports:[]v1.ContainerPort(nil), EnvFrom:[]v1.EnvFromSource(nil), Env:[]v1.EnvVar(nil), Resources:v1.ResourceRequirements{Limits:v1.ResourceList(nil), Requests:v1.ResourceList(nil)}, VolumeMounts:[]v1.VolumeMount(nil), VolumeDevices:[]v1.VolumeDevice(nil), LivenessProbe:(*v1.Probe)(nil), ReadinessProbe:(*v1.Probe)(nil), StartupProbe:(*v1.Probe)(nil), Lifecycle:(*v1.Lifecycle)(nil), TerminationMessagePath:"", TerminationMessagePolicy:"", ImagePullPolicy:"", SecurityContext:(*v1.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]v1.EphemeralContainer(nil), RestartPolicy:"", TerminationGracePeriodSeconds:(*int64)(nil), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:"", NodeSelector:map[string]string(nil), ServiceAccountName:"", DeprecatedServiceAccount:"", AutomountServiceAccountToken:(*bool)(nil), NodeName:"", HostNetwork:false, HostPID:false, HostIPC:false, ShareProcessNamespace:(*bool)(nil), SecurityContext:(*v1.PodSecurityContext)(nil), ImagePullSecrets:[]v1.LocalObjectReference(nil), Hostname:"", Subdomain:"", Affinity:(*v1.Affinity)(nil), SchedulerName:"", Tolerations:[]v1.Toleration(nil), HostAliases:[]v1.HostAlias(nil), PriorityClassName:"", Priority:(*int32)(nil), DNSConfig:(*v1.PodDNSConfig)(nil), ReadinessGates:[]v1.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), EnableServiceLinks:(*bool)(nil), PreemptionPolicy:(*v1.PreemptionPolicy)(nil), Overhead:v1.ResourceList(nil), TopologySpreadConstraints:[]v1.TopologySpreadConstraint(nil), SetHostnameAsFQDN:(*bool)(nil), OS:(*v1.PodOS)(nil)}}, ScaleStrategy:v1.ScaleStrategy{WorkersToDelete:[]string(nil)}}: worker group names must be unique

Related issue number
closes #718
closes #736
Checks

[ ] I've made sure the tests are passing.
Testing Strategy

[ ] Unit tests
[ ] Manual tests
[ ] This PR is not tested :(

Cool! Can users determine whether to install this webhook or not?

I need to find a way to make it opt-in. Lmk if you have some examples.

Why does the Go-build-and-test / Lint (pull_request) check fail when it has no files to analyze?
run golangci-lint
  Running [/home/runner/golangci-lint-1.54.1-linux-amd64/golangci-lint run --out-format=github-actions --path-prefix=./apiserver --timeout=3m] in [/home/runner/work/kuberay/kuberay/apiserver] ...
  level=error msg="Running error: context loading failed: no go files to analyze"

  Error: golangci-lint exit with code 5
  Ran golangci-lint in 6317ms

@davidxia Would you mind fixing the CI errors? Thanks!

The lint check in CI keeps failing.

The lint check in CI keeps failing.

should be fixed now!

Should I update docs here in a subsequent PR?

Should I update docs here in a subsequent PR?

We currently move almost all docs to the Ray website. Maybe we can add a doc for webhook under User Guides instead?

Thanks, I will merge it after I manually test it.

Manual tests include

make install-with-webhooks && make uninstall-with-webhooks exits 0
make deploy-with-webhooks && make undeploy-with-webhooks exits 0
make install && make install-with-webhooks exits 0
make deploy && make deploy-with-webhooks exits 0
make install-with-webhooks deploy-with-webhooks && kubectl apply -f dupe-worker-group-name.yaml (see above for file) results in error with message worker group names must be unique

Should we write proper tests for these? Is it easy to do so?

I tested this PR manually by running the following
kind create cluster --image=kindest/node:v1.26.0
IMG=kuberay/operator:test make docker-image
kind load docker-image kuberay/operator:test

# If this command reports any errors, rerun it.
IMG=kuberay/operator:test make deploy-with-webhooks

kubectl apply -f dupe-worker-group-name.yaml
# The RayCluster "dupe-worker-group-name" is invalid: spec.workerGroupSpecs[1]: Invalid value: ...... : worker group names must be unique

The command make deploy-with-webhooks always reports errors about cert-manager in the first run. I need to rerun the command when the cert-manager Pods are ready. Is there any way to make the first try succeed?

Do serving-cert and selfsigned-issuer take some time to appear on the cluster?

Do serving-cert and selfsigned-issuer take some time to appear on the cluster?

No. I do not dig into the root cause, but, in my observation, both serving-cert and selfsigned-issuer can only be created after cert-manager Pods are ready. If I do not rerun the command, the KubeRay operator Pod will hang forever because  Warning  FailedMount  11s (x6 over 27s)  kubelet            MountVolume.SetUp failed for volume "cert" : secret "webhook-server-cert" not found. After I run the command again, the certificate will be created immediately.

Compatibility:

cert-manager v1.13.2 supports Kubernetes 1.23 - 1.28. (https://github.com/ray-project/kuberay/pull/1584#discussion_r1403618840)
KubeRay currently supports Kubernetes 1.20 and above. However, it would be acceptable to only support versions 1.23 and higher, as the Kubernetes community has not supported version 1.23 since February 2023. (https://endoflife.date/kubernetes).
I tried to test this PR with webhook disabled on Kubernetes 1.20.7. It works.

To conclude, it is fine for KubeRay to support v1.23+.

Open an issue to track the progress: https://github.com/ray-project/kuberay/issues/1692

thanks so much for merging, i'll take a look at that new issue when I get a chance.
I'll first make a doc PR to the User Guides. I'm guessing you'd like a new page and item in that list for it?

Good work! I have one question: it seems that helm chart installation is inconsistent with this pr and only kustomize installation for webhook is supported?

@cermeng yes we didn't add that yet. But I think PRs are welcome.


user/rfa/ralaunch/sources/documentation

[x] You've read the Contributor Guide and Code of Conduct.
[x] You've included unit or integration tests for your change, where applicable.
[x] You've included inline docs for your change, where applicable.
[x] There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

{Summary of the changes}
Description
{Detail}
Fixes #{issue number}

changed screenshot and is descripon below, deleted dead link to product description


Table: Add support for wrapping text

Description
The table should allow for the text to wrap, instead of being truncated. Since the current table is setup to truncate by default, we should leave that. My suggestion is to add a wrap-text property that defaults to false. When enabled, it will remove the css that currently causes the body text to be truncated with ellipsis. I do not expect this setting to affect the header or the footer.
References #1998
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

How Has This Been Tested?

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

Feedback from UX:
Here are the expectations

The checkboxes should be top aligned
The Text/anything in all the cells should be top aligned
Hyperlinks also have to be truncated.

@bradley-eb fix the following issues (per ux)

[ ]  The checkboxes should be top aligned

[ ] The Text/anything in all the cells should be top aligned

[ ] Hyperlinks also have to be truncated.

Validated test scenarios after feedback, working as expected.
Pre-conditions: wrapText control set to true, columnResize control set to true
Scenario 1: Resize a column which text’s length exceeds the min width to min width, text should wrap (no truncation) and all other field in the row also resize
Scenario 2: Resize a column which text’s length exceeds the max width to max width, text should wrap (no truncation) and all other field in the row also resize
Scenario 3: Validate that columns that have text with special characters are able to wrap (&, %, “, ')
Scenario 4: Validate that a column whose text is wrapping does not affect the size of other columns
Scenario 5: Checkboxes
Scenario 6: Badges
Scenario 7: Column Resize
Scenario 8: Hyperlinks
Scenario 9: Borderless table
Scenario 10: Value Formatter
Scenario 11: Pagination
Scenario 12: Expandable rows
Scenario 13: Densities

Make sure this pr only has your changes (i see a change to the readme of modus-icons). I would like to avoid adding classes to every cell of tbody.

@cjwinsor Thanks for your review. I have removed unnecessary changes, fixed all lint issues as well, and got rid of align-top.

Validated scenarios against latest changes, working as expected.
Pre-conditions: wrapText control set to true, columnResize control set to true
Scenario 1: Resize a column which text’s length exceeds the min width to min width, text should wrap (no truncation) and all other field in the row also resize
Scenario 2: Resize a column which text’s length exceeds the max width to max width, text should wrap (no truncation) and all other field in the row also resize
Scenario 3: Validate that columns that have text with special characters are able to wrap (&, %, “, ')
Scenario 4: Validate that a column whose text is wrapping does not affect the size of other columns
Scenario 5: Checkboxes
Scenario 6: Badges
Scenario 7: Column Resize
Scenario 8: Hyperlinks
Scenario 9: Borderless table
Scenario 10: Value Formatter
Scenario 11: Pagination
Scenario 12: Expandable rows
Scenario 13: Densities


Incorrect readme

Can I route traffic from machines on my local network to Tailscale endpoints automatically?
Currently we are not aware of any supported means of achieving this. Tailscale's subnet routing is intended for Tailscale-to-subnet connections and doesn't provide explicit support for subnet-to-Tailscale connections.

Each device automatically gets a routable (over Tailscale) IP. So my guess is that if you have a device in your local network and you want to connect to a device on the tailscale network, this packet will reach your UDM, and the UDM (connected to Tailscale) will know the route to this <IP_ADDRESS>/10 network, which won't be reachable over the regular internet. Because they use this specific range, this route can easily be added to the UDM routing table (if that did not happen automatically when you connected to the tailscale network).
See this page for details.

In theory, yes - however because we're using user space networking for the Tailscale agent, it is not currently (to the best of my knowledge and based on the testing I've done) possible to configure a functional network route to Tailscale from your UDM.
If you're able to get this working, please let me know how and I'll ensure we have that updated in the README.


account for alternate ss -nlp output syntax on linux

Hi,
I'm running ubuntu 15.04. node-phantom-simple fails to parse out phantomjs entry from ss -nlp output due to bad grep pattern.
On my machine ss -nlp produces output:
tcp    LISTEN     0      20                                                                              <IP_ADDRESS>:58225                                                                                *:*      users:(("phantomjs",pid=10175,fd=9))

And so grep ",%d," failes to match it due to = preceeding the pid.
Updated the grep cmd to allow either , or =

wow, that was fast. thanks!

Thank you! Didn't knew they changed format - i stay on LTS releases.
It's also possible to add lsof support for linux, but i don't know is it needed or not. What do you think?

Sorry, don't know enough about the topic to offer any insight

released 2.0.1


✨Feature: Allows random endpoints to return multiple items

This addresses #433
Important notes

Refactors limit usage a bit so the default 25 is not set if no limit property is in query
The max limit for Random endpoints is 5 to test the waters. There is a performance drop associated with a large sample size. Larger datasets like Users response slower compared to Anime.
Fixes a bug in MaxResultsPerPageRule and allows override from the MaxLimitWithFallback trait

Additional notes

It was discovered that applying the $defaultLimit override does not work in DTOs

    if (property_exists(static::class, "limit") && !$properties->has("limit")) {
    $properties->put("limit", max_results_per_page(
    property_exists(static::class, "defaultLimit") ? static::$defaultLimit : null));
}

max_results_per_page(property_exists(static::class, "defaultLimit") ? static::$defaultLimit : null))
max_results_per_page does not override with $defaultLimit`. The return value will always be what's in the config. We'll need to approach this differently in case we need to allow for dynamic overrides per DTO command.
I've commented out this part. We should probably check for $limit instanceof Spatie\LaravelData\Optional within the Handler.

Also resolves https://github.com/jikan-me/jikan-rest/issues/490

These changes seem to break the anime filtering and anime season logic. See tests for details. :worried:

Woops, missing this. Looking into.

Can you also add tests for the new endpoints please? :smile: I don't want to break them in the future :smile:


Value conversion

I had many cups of coffee ;-) ... but no solution.
The other end of application use buffer.readUInt8(0) node.js javascript function, and I read, this function needs "BLEUnsignedCharCharacteristic" (seems to be the other project CurieBLE, so not usable for ESP32).
I had many  coffees to get characteristic->setValue() running with an unsigned char - no luck.
I got all the time buffer.readUInt8(0) "index out of range error".
I just need to inform the other application side about 0 or 1 - but as unsigned char.
Could anybody give me a help.

forget it .... using std::string  and precise data length solved it (do not sizeof()!!) It seems sizeof(9 leads into issues with node.js buffer.readXXX (--> Range out of index)


Autodetection of Power Measurement Device

Thanks for that great adapter.
It would be awesome to scan the iobroker itself for power measurement devices.
If a device is found in iobroker the adapter will autolog it.
Greetings Flexer

I created an adapter which interfaces with a power measurement device: https://github.com/raintonr/ioBroker.legrand-ecocompteur.
TBH I think it's asking too much to have sourceanalytix auto create configuration for all such devices. What could be useful though, is that sourceanalytix could supply a library that foreign adapters (such as mine I mention above) could utilise to generate configuration.
For example, my legrand-ecocompteur adapter actually performs it's own kWh calculations. I could create a config setting that disables those in favour of using sourceanalytix. Such a setting would also trigger a call to the sourceanalytix library I mention would be required which would enable correct sourceanalytix config settings for all the states legrand-ecocompteur writes to.
The call would need simply need to pass full state ID with it's type and units. However... that could become tricky because I notice type is actually user configurable in the price definitions. So either they would need to be standardised or this could all become a little problematic :(


chore(snapshots): update all prefixes to c4d

Description
Update all Dotcom prefixes to c4d.
Changelog
New

{{new thing}}

Changed

{{changed thing}}

Removed

{{removed thing}}

LGTM! Seems like this file is the only one missing:


Problem when extracting Opus

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.07.02

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-x', u'-v', u'--audio-format', u'opus', u'https://www.youtube.com/watch?v=2ciLHgyzGbs']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.01
[debug] Python version 2.7.10 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8.2-tessus, ffprobe 3.3.2-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 2ciLHgyzGbs: Downloading webpage
[youtube] 2ciLHgyzGbs: Downloading video info webpage
[youtube] 2ciLHgyzGbs: Extracting video information
[youtube] 2ciLHgyzGbs: Downloading MPD manifest
[debug] Invoking downloader on u'https://r6---sn-nv47lned.googlevideo.com/videoplayback?requiressl=yes&clen=4036743&signature=AD058CE83266F4EADF3F232F0196992BDE498F38.891079CE440592BF29F7DEB8EFC0BDA8B162518C&id=o-AP0intEVsh17HPppoTKDRSsphCk7cFeiXpF-h_2Z-rbX&mn=sn-nv47lned&mm=31&pl=21&dur=219.999&lmt=1493903630021379&ip=<IP_ADDRESS>&ms=au&ei=g4hbWdzDK4usco7QqaAI&keepalive=yes&mv=m&source=youtube&expire=1499192547&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&key=yt6&gir=yes&ipbits=0&mime=audio%2Fwebm&initcwndbps=1972500&itag=171&mt=1499170834&ratebypass=yes'
[download] Destination: videoname.webm
[download] 100% of 3.85MiB in 00:00
[debug] ffmpeg command line: ffprobe -show_streams 'file:videoname.webm'
[ffmpeg] Destination: videoname.opus
[debug] ffmpeg command line: ffmpeg -y -i 'file:videoname.webm' -vn -acodec opus -b:a 5k 'file:videoname.opus'
Deleting original file videoname.webm (pass -k to keep)
...
<end of log>

Description of your issue, suggested solution and other information
Hello.
I just noticed something. I'm using this command:
youtube-dl -x --audio-format opus $1;
In most videos its downloading the correct opus file.
But in some videos is "Downloading MPD manifest" and than on "[ffmpeg] Destination:" freeze for a bit, and than the opus file is limited with lowpass to 5khz and the file is like 200kb instead of 4mb.
The video that i'm having problem with downloading good Opus is: https://www.youtube.com/watch?v=2ciLHgyzGbs
PS: i tried: --youtube-skip-dash-manifest, but it doesn't help

You are converting bestaudio format that is vorbis to opus with default --audio-quality.

You didn't get my point... The problem is existing only one some videos. + I have another browser extension, that downloads the full opus, as supposed to be...

What browser extension?
Is that something you are trying to use together with youtube-dl?
I don't really get what you are describing, to be honest.

This is the extension http://en.savefrom.net (sorry for the ad...)

youtube-dl has downloading opus, but just in SOME videos doesn't download it with the proper size.
just to be sure, i try to download the opus of the same video with that extension, and i download it correctly.
the video that i have problem with downloading the correct opus file is noted above.
I tried to download the source as "best" not "opus" and youtube-dl download .ogg, but still if this is the best audio, why the browser extension can extract opus?

It downloads exactly what you ask it to download - bestaudio. bestaudio is not always opus.
You ask it to convert to opus - you get bestaudio that is vorbis converted to opus.
If you want it to download opus, ask it to download opus: -f bestaudio[acodec=opus].
Bother to read FAQ already.


Isn't Enum better for WorkingKeys?

It looks like WorkingKeys can be an Enum.
And so state.working_keys can be a simple array, or if you insist for the uniqueness, it can be a BTreeSet.

We need to iterate on them in here so that's why we make them iterable here.
We also need to make some keys active/inactive (if any error occurs) here and that's why I preferred struct.
Do you have any suggestion?

IMHO, WorkingKeys.to_info_list should actually return an array of a struct like this:
struct Key {
  shortcut: String,
  description: String,
  key: KeyEnum,
}

and then KeyEnum can be:
enum KeyEnum {
  Q,
  Up,
  Down,
...
}

I'm not so familiar with the source code.
But if you need to keep the enabled ones somewhere, maybe a Vec<&Key> can do the job.
PS: then it'll be better to impl PartialEq manually for Key.


Cross 6750 6755

#6750 + #6755

The typeguard fail is fixed by #6751 the osx test is failing due to a missing build from the Anaconda internal build farm.

#6750 and #6755 are both merged, closing.


onScroll for Dialog?

Is there a plan for adding onScroll to components?  Would something like this work?

Are you thinking something like this?
<Scrollable
  onScroll={this.props.onScroll}
  enabled={this.props.autoScrollBodyContent}
>

    {children}

</Scrollable>

Are you thinking something like this?
<Scrollable
  onScroll={this.props.onScroll}
  enabled={this.props.autoScrollBodyContent}
>

    {children}

</Scrollable>

What I mean is, can this problem be solved on the user side of material-ui instead of in the internal of material-ui?
We should aim for an API as simple as possible.
Here, I don't see the value of adding onScroll.

What I mean is, can this problem be solved on the user side of material-ui instead of in the internal of material-ui?
We should aim for an API as simple as possible.
Here, I don't see the value of adding onScroll.

Agreed, that would be ideal.  Is there an example of this somewhere or do you know how this can be done?  I wasn't having any luck trying the following:
<Dialog>

 console.log('scrolled')}>
    ...tall scrollable content...

</Dialog>

@justinmc You should be able to implement this on the userside so I agree with @oliviertassinari that we should keep this component simple. I was able to have some success using code like this:
<Dialog>

 console.log('scrolling')}>

Some Content

</Dialog>

If you're having any other issues, feel free to reach out to us on Gitter or Stack Overflow!
I'm going to close this PR. Thanks so much for contributing. Please continue to do so, it's really appreciated! :smile:

Can we specify onScroll prop on <List> component ? If not, what is the way to attach onScroll to List., considering the React is used for SSR (Server Side Rendering). window.addEventListener() wont work for SSR.
List is the key component that by nature is scroll-able, so I believe its good to onScroll prop on List.


Add a way to configure how queues are declared to handle complex scen…

…ario.
It's now possible to pass an implementation of IRabbitMQQueueDefinitionFactory
to a trigger so when the queue is declared, it will use the definition returned
by the methods.
This allow to configure Durable Queue (fixes: #68)
This may help with #76 since it allow to fully configure queue
This allow scenario like in the new Sample: where we may want to have 3 queue
chained together to handle error nicely, when the first queue fail to process
a message, it goes to the second queue, this allow to handle error after all
retry. And if this failed again, it can go to another queue that may be handle
manually and that will contains unexpetected errors.
Queue => Queue-Failed => Queue-Error
Also, I would like to rework RabbitMQService to move the logic of how the queue is created somewhere else so I can write unit tests. If you have any indication how this should be done, if you have any preference ?

@yojagad - is this PR valid as we recently removed support to create non-existing queues?


[Bug]: image-embedding cannot process png image

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When trying example in homepage example, png file cannot be loaded
Expected Behavior
Png image loaded successfully or specify image support type
Steps To Reproduce
Use `image-embedding` on png image

Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

Python cannot recognize "~/", you can use an absolute path.
This line will failed:
img0_embedding = embedding_pipeline('~/Pictures/Selection_142.png')
RuntimeError: Read image ~/Pictures/Selection_142.png failed
This line can work:
img0_embedding = embedding_pipeline('/home/xxx/Pictures/Selection_142.png')

Please remove ~/.towhee and retry, then it will update the pipeline. We will update the pipeline atomically in the future version.

Found the problem: the png file was corrupted, I think the error message could be more clear

Found the problem: the png file was corrupted, I think the error message could be more clear

Ok, closing this issue. #347


Found 2 Bugs and a fix in Adjust Cell  ( Increase and Decrease ) Functions

Describe the bug
The Adjust Cell worked for "set", but not "Increase" or "Decrease".
My page was called Sheet 1; Set worked, Increase/Decrease did not
Created another page called 180; Set worked, Increase/Decrease did not
Created another page and DID NOT change the name, Sheet5; Set/Increase/Decrease worked.
Created another page Sheet73, Set/Increase/Decrease worked
If you rename the sheet with a space or just numbers Increase/Decrease will not work.
To Reproduce
Steps to reproduce the behaviour:

go to google sheets
add a new sheet and rename it with spaces in the name or just numbers
then create a new sheet and with no spaces and characters and numbers
instance(Google Sheets): Error executing action: Cannot read property 'values' of undefined

Expected behaviour
Increase/Decrease functions will not work in SHEETS with spaces or with no numeric only.
System (please complete the following information):

OS: Win 11
Browser: Chrome Version 113.0.5672.93 (Official Build) (64-bit)
Companion Version: (2.4.2+4911-v2-4.2-fcb5a863)

Great to hear, hopefully I was helpfulHave a nice week!JeffSent from my iPhoneOn May 15, 2023, at 10:49 AM, Jeff Martin @.***> wrote:
Closed #15 as completed.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


Issue #9 Create /random-phrase/ API endpoint & Issue  #15 Create and use a MethodDescription Pydantic model

The model used for the response in the API /methods endpoint is declared.

I think, if we install new external library "loremipsum" we need upgrade dependencies in the project. But, unfortunately, i don't know how do this?


Add CI job to detect Frontend's Codegen issues

See https://github.com/opencollective/opencollective-frontend/pull/9103
If something goes wrong with npm run graphql:update, CI is not detecting it. We should add a job in the frontend that starts the API, runs the command and fails if there's any error.

What online API npm run graphql:update requires to be up? I haven't heard of code generators that need accessible API service, but I am coming from C/Python.

@techtonik It requires our API (https://github.com/opencollective/opencollective-api) to be up since it serves the GraphQL schema.


Revert "Merge pull request #1245 from sanchezl/webhook-degraded-service"

This reverts commit b98a6f401009e7d97ec7294b948df494c57087e6, reversing
changes made to c99ed7b607f3e8fbe205430ff0552f09174a8261.
https://github.com/openshift/cluster-kube-apiserver-operator/pull/1245 was merged before finding all the offending webhooks that already exist.  Adding validation like this is a good idea, but like other tightening behaviors, the existing product needs to be brought into line before merging.
Since these problems appear to be intermittent (weird, but it wasn't a 100% failures), the runs for CI payloads from last night will provide hundreds of runs to locate failures with to address before unreverting.  See https://amd64.ocp.releases.ci.openshift.org/#4.10.0-0.ci

/lgtm

installed and upgraded.  this is the last commit in the repo.  Manually forcign the revert.


Adding some quick references for learning Python

Adding some quick references for learning Python

You can't just add this to the end of a Python file -- it isn't valid Python syntax.
These types of links, if desired in the project, should go in documentation (such as a getting started markdown file).


Handling multiple tab at once

Could you consider adding the functionality to select multiple tabs like with checkboxes using control+ click  and shift + click for quick selection to do stuff to them like deleting and re arranging?
Something like this

I see similar actions a lot in my development! But with multiple actions.
I would suggest using a "With Selected" dropdown button with multiple actions like ...

Open / Restore
Open in New Window
Create new list
Copy Links
Delete
Move

I edited the html on the github dropdown to show an example of what I mean...

I usually see this action button at the bottom, under the checkboxes


CKAN API response is truncated and we cannot access the count value

Thank you for your work, I am trying to build a web application to connect to CKAN with your library.
For my application, I need to get the count result for each search in order to build a pagination component.
Unfortunately, in all the available methods (all based on the action method) the output is only limited to the result part of the CKAN API response and some field such as count are not made available.

merged commits and published new version


DOCAPI-6423: leastSqr description.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Category (leave one):

Documentation for https://github.com/yandex/ClickHouse/pull/4917

The parameters are actually "column x and y." Arrays are transformed in arrayReduce function

Thanx. I've changed text a bit.


Wrong normalization on Kitti?

Around https://github.com/chenfengxu714/SqueezeSegV3/blob/master/src/tasks/semantic/dataset/kitti/parser.py#L171:
proj = torch.cat([proj_range.unsqueeze(0).clone(),
                      proj_xyz.clone().permute(2,0,1),
                      proj_remission.unsqueeze(0).clone()])
proj = (proj - self.sensor_img_means[:, None, None]) / self.sensor_img_stds[:, None, None]

The order of channels in proj is (range, z, x, y, remission), but sensor_image_means is in the order of (range,x,y,z,signal)  or something else (based if it's V321 or V353)?
So I guess here's something wrong?

Sorry for my late reply, I did't notice the issue recently. Yes, I made a small mistake here, while we also find the normalization on the KITTI doesn't have much influence and just slight drops the performance. It is true that right normalization with accurate mean and std are better. We will update this soon.


koordlet: fix lscpu for arm64

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/lgtm
/approve


Speech Commands Example URL broken

Found here:
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/speech_commands#speech-commands-example
http://tensorflow.org/tutorials/audio_recognition is broken

The audio recognition tutorial has only been added recently:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/tutorials/audio_recognition.md
I think the link will show up once http://tensorflow.org has been updated (from rebuilding docs_src).

That makes sense. Thanks @yongtang.