[BUG/Help]   ModuleNotFoundError: No module named 'pkg_resources'

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
从本地加载模型
model_path = "D:\project\gpt\chatglm-6b"
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModel.from_pretrained(model_path, trust_remote_code=True).half().cuda()
model = model.eval()
Expected Behavior
No response
Steps To Reproduce
Traceback (most recent call last):
File "D:\project\gpt\chatglm-6b\cli_demo.py", line 11, in
model = AutoModel.from_pretrained(model_path, trust_remote_code=True).half().cuda()
File "C:\Python310\lib\site-packages\transformers\models\auto\auto_factory.py", line 462, in from_pretrained
model_class = get_class_from_dynamic_module(
File "C:\Python310\lib\site-packages\transformers\dynamic_module_utils.py", line 399, in get_class_from_dynamic_module
return get_class_in_module(class_name, final_module.replace(".py", ""))
File "C:\Python310\lib\site-packages\transformers\dynamic_module_utils.py", line 177, in get_class_in_module
module = importlib.import_module(module_path)
File "C:\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\poo00/.cache\huggingface\modules\transformers_modules\chatglm-6b\modeling_chatglm.py", line 28, in
from transformers.modeling_utils import PreTrainedModel
File "C:\Python310\lib\site-packages\transformers\modeling_utils.py", line 83, in
from accelerate import version as accelerate_version
File "C:\Python310\lib\site-packages\accelerate_init.py", line 3, in
from .accelerator import Accelerator
File "C:\Python310\lib\site-packages\accelerate\accelerator.py", line 31, in
from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
File "C:\Python310\lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "C:\Python310\lib\site-packages\accelerate\utils_init.py", line 145, in
from .torch_xla import install_xla
File "C:\Python310\lib\site-packages\accelerate\utils\torch_xla.py", line 18, in
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Environment
- OS: windows11
- Python: 3.10
- Transformers: 4.27.1
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : false

Anything else?
No response

python -m pip install --upgrade pip setuptools wheel即可解决问题


[1.9] GC Invites & GC Bans

Features

[ ] GC Invite Support

[ ] Create Invite
[ ] Delete Invite
[ ] Look at all invites

[x] Ban System

[x] Banning
[x] Unbanning (does not look the best)

closes #197
requires https://github.com/meower-media-co/Meower-Server/pull/208

oops this was meant to be a draft

https://meower-api.showierdata.xyz
wss://meower-ws.showierdata.xyz

Im not updating the client to the newest API change there, this works for my hosted server


Adds TextFormat and usage example

This is a WIP to show how a text format injector adapted from Brave
might be used in census. This is a simplified variant, which can only
use String keys (as opposed to gRPC metadata keys, which are not
strings).
Ex.
HttpURLConnection connection = (HttpURLConnection) new URL("http://myserver").openConnection();

// if using a method reference, you just do it directly
textFormat.putContext(spanContext, connection, URLConnection::setRequestProperty);

// if you can't use a method reference or lambda, you should save off
// a setter instead of allocating one for each request like below does
textFormat.putContext(spanContext, connection, new Setter<HttpURLConnection>() {
  @Override
  public void put(HttpURLConnection carrier, String field, String value) {
    carrier.setRequestProperty(field, value);
  }
});

closed in favor of #724


cloudflare_page_rule: Unsupported argument smart_errors

Confirmation

[X] My issue isn't already found on the issue tracker.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
Terraform v1.1.7
on windows_amd64

provider registry.terraform.io/cloudflare/cloudflare v3.11.0

Affected resource(s)

cloudflare_page_rule

Terraform configuration files
terraform {
  required_version = ">= 0.15.0"

  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = ">= 3.11.0"
    }
  }
}

variable "cloudflare_api_token" {
  type      = string
  sensitive = true
}

provider "cloudflare" {
  api_token = var.cloudflare_api_token
}

resource "cloudflare_zone" "acme_com" {
  zone = "acme.com"
}

resource "cloudflare_page_rule" "page" {
  zone_id = cloudflare_zone.acme_com.id
  target  = "acme.com"

  actions {
    smart_errors = "on"
  }
}

Debug output
$ terraform plan
2022-04-01T21:46:22.738+0300 [INFO]  Terraform version: 1.1.7
2022-04-01T21:46:22.760+0300 [INFO]  Go runtime version: go1.17.2
2022-04-01T21:46:22.760+0300 [INFO]  CLI args: []string{"C:\\Program Files\\CLI\\terraform.exe", "plan"}

The full output is here.
Panic output
No response
Expected output
The creation of a resource of cloudflare_page_rule type with the smart_errors argument in the actions block must be planed. smart_errors argument in the actions block must be supported.
Actual output
╷
│ Error: Unsupported argument
│
│   on main.tf line 30, in resource "cloudflare_page_rule" "page":
│   30:     smart_errors = "on"
│
│ An argument named "smart_errors" is not expected here.
╵

Steps to reproduce

Use the configuration above.
Run terraform plan.

Additional factoids
No response
References
No response

hi, this isn't a bug but an enhancement as it is a new feature.

I assumed that if the argument is present in the official documentation for the resource, then it is already supported. It turns out that the documentation is simply irrelevant?

the documentation isn't irrelevant but it is also isn't the only factor.
for the differentiation check out the GitHub new issue page - https://github.com/cloudflare/terraform-provider-cloudflare/issues/new/choose

Bugs: When something isn't working as expected or documented
Feature request: Suggest a new feature or other enhancement

this is the latter as despite it being the in the documentation, it doesn't yet exist so cannot have bugs but instead is actually an addition to what we already have.

i also can't answer why it is included in the documentation; i'll have to dig internally why it was put here but not included in the functionality itself.

Okay, I just didn't know this feature didn't exist, I was thinking that if it's been in the documentation for 2 years, then it's supported.

closing this out as smart_errors isn't something that is supported anymore (looks to be a very old key).
page rules is on the way out however, the documentation will get an update once we swap it to be automatically generated from the schema in future PRs.


Publish on Open-VSX

Any chance to get this extension published in the https://open-vsx.org registry? This would be great for VSCodium users :)

I'll see if I can get this set up.

It has now been published: https://open-vsx.org/extension/samgiz/vscode-kanbn-boards.

Thank you!


No confirmation message shown when user info modified in settings/users tab

When an admin updates user information through the settings/users tab an appropriate message should be displayed, informing the admin that the data has been successfully changed. As of now, no message is displayed.

@zulipbot claim

I am currently working on this issue. Thanks.

I haven't tried reproducing yet, but I assume there's a bug here.  We should use our existing conventions for showing success/error feedback elsewhere in the settings UI.


Arm64macos

It's still a bit ugly as I used Dunham tricks to rename the .dylib in a .so, but it's now working on my machine and its still passing the build.
I'm not sure if it's mature enough for a merge but we're getting closer to it at least.

Thanks a lot for this. Just tell me once you think this is ready. I'll also ping @dunhamsteve , because you discussed this on discord.

Thank you for pack actually! Noe thing I still have to check with @dunhamsteve is his comment about the different Mac architecture. I think the use of lipo is not needed as the right dylib/so is actually generated at build time but I may have missed something.
If he thinks it's okay, we can probably merge it.

Before merging this it would be great if you could also add a note to the installation instructions. I'd probably get this all wrong if I tried to do it myself.

The lipo thing would only be needed if we were distributing binaries and wanted a single binary that worked on both macos architectures. I didn’t know if the end goal here was a binary distribution of micropack.

I'm going to merge this, then. Thanks a lot for adding this (and updating the docs).


sea-orm-migration - Compile error using most recent version of rc2

Description
Compiling with most recent version of sea-orm-migration 1.0.0-rc.2 causes a compiler error.
Steps to Reproduce
(not the best reproduction, apologies)

Create a new cargo project and add this to the Cargo.toml dependencies:

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }

[dependencies.sea-orm-migration]
version = "1.0.0-rc.2"
features = ["runtime-tokio-rustls"]

Then add this to the src/main.rs file

use sea_orm_migration::prelude::*;

#[async_std::main]
fn main() {
    let manager = SchemaManager::new("");
}

run cargo run and see a compiler error complaining about argument arity.

Expected Behavior
The program should fail to compile because the IntoSchemaManagerConnection trait is not implemented for &str, not because of argument arity.
I it's a bad reproduction and I know it, sorry.
Actual Behavior
It produces the error:
error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-migration-1.0.0-rc.2/src/migrator.rs:444:29
    |
444 |         DbBackend::MySql => MySql::query_tables(),
    |                             ^^^^^^^^^^^^^^^^^^^-- an argument of type `&sea_schema::mysql::MySql` is missing
    |
note: method defined here
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-schema-0.15.0-rc.4/src/probe.rs:6:8
    |
6   |     fn query_tables(&self) -> SelectStatement;
    |        ^^^^^^^^^^^^
help: provide the argument
    |
444 |         DbBackend::MySql => MySql::query_tables(/* &sea_schema::mysql::MySql */),
    |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-migration-1.0.0-rc.2/src/migrator.rs:445:32
    |
445 |         DbBackend::Postgres => Postgres::query_tables(),
    |                                ^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&sea_schema::postgres::Postgres` is missing
    |
note: method defined here
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-schema-0.15.0-rc.4/src/probe.rs:6:8
    |
6   |     fn query_tables(&self) -> SelectStatement;
    |        ^^^^^^^^^^^^
help: provide the argument
    |
445 |         DbBackend::Postgres => Postgres::query_tables(/* &sea_schema::postgres::Postgres */),
    |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-migration-1.0.0-rc.2/src/migrator.rs:446:30
    |
446 |         DbBackend::Sqlite => Sqlite::query_tables(),
    |                              ^^^^^^^^^^^^^^^^^^^^-- an argument of type `&sea_schema::sqlite::Sqlite` is missing
    |
note: method defined here
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-schema-0.15.0-rc.4/src/probe.rs:6:8
    |
6   |     fn query_tables(&self) -> SelectStatement;
    |        ^^^^^^^^^^^^
help: provide the argument
    |
446 |         DbBackend::Sqlite => Sqlite::query_tables(/* &sea_schema::sqlite::Sqlite */),
    |                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0061`.
error: could not compile `sea-orm-migration` (lib) due to 3 previous errors

Workarounds
Changing the Cargo.lock entry for sea-schema from
[[package]]
name = "sea-schema"
version = "0.15.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20ed3975863149bdc9dcc19007d55c16255e9805ab85c1e9792d4bb5d2a694d6"
dependencies = [
 "futures",
 "sea-query",
 "sea-schema-derive",
]

to
[[package]]
name = "sea-schema"
version = "0.15.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a72566ad1d27181ea2aff75394600491c12a32ee87cc4d50381bc577ce63a33"
dependencies = [
 "futures",
 "sea-query",
 "sea-schema-derive",
]

Reproducible Example
Example above
Versions
sea-orm-migration -> 1.0.0-rc.2
sea-schema -> 0.15.0-rc4

To add to this, I believe this is the commit when the version of the sea-schema dependency was bumped: https://github.com/SeaQL/sea-orm/commit/5d78e56f8c511544315eb76d894c2afb5a5dd16a
And it might be because in this sea-schema commit the number of arguments passed to the query_tables function changed: https://github.com/SeaQL/sea-schema/commit/9e148660774dc2a71a74154b80166312290b8d6a

Facing the same issue...
Hopefully there will be a fix soon

@DenuxPlays, if this is a showstopper for you then you can use the workaround I mentioned above and it should work fine for the time being (replace the entry for sea-scheme in the Cargo.lock)

@DenuxPlays, if this is a showstopper for you then you can use the workaround I mentioned above and it should work fine for the time being (replace the entry for sea-scheme in the Cargo.lock)

Yeah I just downgraded to the 0.12.15 or so
I am not a huge fan of editing generated files as the doesn't end well

But this issue has been open for 19h and still no reaction this is kinda sad

But this issue has been open for 19h and still no reaction this is kinda sad

0.12.15 is the stable release and 1.0.0-rc2 is the release candidate, so by using it you might encounter issues that you wouldn't find on the stable branch (like this one). Granted, not being able to compile is quite a big problem, but 19h is not a long time to be away from a computer

Hey everyone, thanks for raising this issue. The root cause is that we released 1.0.0-rc.2 before this https://github.com/SeaQL/sea-orm/commit/a321f0a566eade8bbfe9a105db1f6f974b662de2 commit.
I will be releasing 1.0.0-rc.3 in a few hours!

Released https://crates.io/crates/sea-orm/1.0.0-rc.3

Released https://crates.io/crates/sea-orm/1.0.0-rc.3

Thank you for letting us know about the update, also thanks for your assistance!

Thanks for getting out a new update quickly, appreciate it 😄 !

Thanks everyone


De-nest isBlade and isVersor for readability, and add comments from Dorst

Travis passed, merging...


Is still maintained?

@seejohnrun @avit
Is this gem still maintained? The latest stable release and the latest commit are from 2018.
Thanks! :+1: :handshake:

cc @willradi @marciojg

I use this gem and I also would like to know if is this gem still maintained ?
@seejohnrun if you need some help to maintain this gem, I will be very happy to become a maintainer. Let me know.

Hello! I could also help out if needed - not currently using this gem anymore, but did so for years and would like to give something back :)

Hi @seejohnrun @avit totally understand if you now have other commitments, but we need to keep the ball rolling with this gem as we're reliant on it! Would it be possible to open it up to additional community members? Thanks!

I've just stumbled on this gem and it looks great but the maintenance issue is a problem
Perhaps it'd make sense for the folks here to get together and build excitement around a fork. And so we don't have maintainer burnout, it'd be good to develop policies around how people cycle in and out of the maintainer roles.

Let's create a github repo, and for anyone who want to be a maintainer, feel free to comment on this thread

I'm aggree and I will be there to help :)
Who create the organization and the fork ?

May be we can send a email to @seejohnrun to transfert the projet to the organization and have the access to rubygems.

Having recently been involved in a community fork of the fast_jsonapi repo due to the maintainers becoming unresponsive, I would MUCH prefer keeping this original repo alive somehow. The main thing is to prevent a gem split. If @avit or @seejohnrun could somehow be involved and either allow additional trusted maintainers or officially hand over to the community then that would be amazing.

Let's create a github organization, and for anyone who want to be a maintainer, feel free to comment on this thread

We are using this gem in our app. I'd like to help in supporting

I just send a email to @seejohnrun to request the access of the github repository.

I appreciate all of you, and apologize for the delays on changes to this repository. I'm looking through issues & PRs now

Was @fwininger still interested in maintaining this? Or what happened there?

I still use this gem in a project so I'm still interested in becoming a maintainer rather than letting this project die.
@seejohnrun can I have access to this repo ?

@seejohnrun Can you reopen this issue, please?

would love to see a new release cut 👍

@seejohnrun - I'd be happy to help maintain this gem. If you can respond by the end of this month allowing myself and @fwininger to become maintainers that would be great. Otherwise I think we'll just need to fork the project.

@seejohnrun - I'd be happy to help maintain this gem. If you can respond by the end of this month allowing myself and @fwininger to become maintainers that would be great. Otherwise I think we'll just need to fork the project.

I second this. @seejohnrun - please select additional maintainers to help. It would be much better than a fork. Thank you as always for all your hard work on this gem over the years. 💎

I send an email to @seejohnrun, I hope I have an answer quickly to be maintainer, otherwise I fork a FireCube project :)

Alright ... the fork is dead and I'm now a co-maintainer on this repo helping @seejohnrun keep this thing alive and kicking :)
John has already pushed out a new build (version 0.16.4) which includes everything already in master.


Example not working anymore

Hi there,
The example given on the main page doesn't work anymore. Python 3.11
Any reasons why? Installed right the module..

It works just fine for me with Python 3.11.2 on Debian Sid with KDE Plasma 5.27.2
Can you share details about your system and describe the error you get?

Macbook with M1 pro chip.
Python 3.11
_tkinter.TclError: dlopen(/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib, 0x0006): tried: '/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (no such file), '/Users/~/Desktop/Python/Programming/CV - Projects/Watermark App/venv/lib/python3.11/site-packages/tkinterDnD/mac/libtkdnd2.9.2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
What I understand is: there is an incompatibility between the architecture of the library file and the python interpreter: The library file may have been compiled for a different architecture (arm64) than the one used by the python interpreter (x86_64).

Ok, I see. TkinterDnD doesn't (yet) have binaries compiled for arm platforms. There was a project called tkinterdnd2-universal, that had binaries for mac M1, but both the repo and the Github user seems to be deleted now :((


Added CodeBeam.GoogleApis.Blazor

A GoogleApi Utility package (specified for Blazor) added.

Thanks.


ENH: future API development for cov methods and behavior of 'auto' option

To be discussed.
I'd like to get rid of regularize in our examples. We could do this by shipping a precomputed regularized covariance.
The second thing to consider is the fine tuning of 'auto'. When would it include more than 'shrunk' and 'empirical', and so on.
Finally it would be nice to have an example that shows the impact of the noise cov on the leadfield, similar to SSS sensitivity.

For 0.9 or 0.10?

... we need to at least act upon the regularize instances. Either exaplain why they are used or implement my proposed fix for 0.9. The rest might be rather 0.10

If we deprecate regularize then we need to allow compute_raw_data_covariance to accept a method parameter as well...

Not necessariyl, I'm not sure you would need to regularize if you have 50k samples.

The difference will be neglegible.

Ahh, okay. I guess that would mean even a 1-minute empty room @ 1 kHz would be enough, assuming enough epochs are kept. Maybe we just update the docstring of compute_raw_data_covariance to say that you shouldn't need to regularize in most cases...?

Yep.

And on top of that you only have grads and mags.

We can see later if a method param could make sense.

sounds like a plan

@dengemann would it be enough for now to replace the cov w/regularize in examples with a new cov comptutation that just uses shrunk?

...that seems to add ~50 seconds of computation on my machine just for using method='shrunk', so maybe it's not such a great plan.

I'm going to close this, but feel free to reopen if anyone feels we should reconsider mode option for compute_covariance


feat: Provide support for Python 3.9 for OS-dependent libraries

Issue number:
ADDON-73695
Summary
Provide support for Python 3.9 for OS-dependent libraries
Changes

Please provide a summary of what's being changed

Add validation of python version for os dependent libraries in global_config.json [schema]
Add validation of conflicting target paths of os dependent libraries
Extend sys path depending also on python version

User experience
--

Please describe what the user experience looks like before and after this change
--

Checklist
If your change doesn't seem to apply, please leave them unchecked.

[x] I have performed a self-review of this change
[x] Changes have been tested
[x] Changes are documented
[x] PR title follows conventional commit semantics

Ready for review - tested on MS security


List should be updated or removed.

Missing some devices here that are certified, Teams Panels from Yealink and Logitech should be added.

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

ID: 344ac314-e98e-ab21-ef47-fb0da80ec884
Version Independent ID: 8f3d2fe8-5d96-4298-f875-fb3e64688afc
Content: Remote provisioning and sign in for Teams Android devices - Microsoft Teams
Content Source: Teams/devices/remote-provision-remote-login.md
Service: msteams
GitHub Login: @cazawideh
Microsoft Alias: czawideh

Hi @lcansby, thank you for your feedback.
This issue is the same as:
https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/8639
The message there from the article owner is:
"Yes, there are plans in-progress to update this article soon."


Action ability to request user input during execution

Description
The fact that we are running HTTP server and on the background running the action in a separate process, would allow requesting user input during execution. This is an opportunity.
It can allow things like this
@action
def greeter(name: str) -> str:
    place = request_input(f"Ask from the user: Where are you from {name}?")
    return f"Hello {name} from {place}!"

Describe the solution you'd like
https://github.com/robocorp/actions-cookbook/tree/master/example-user-input
Describe alternatives you've considered
No response

This issue has been moved here, under Sema4AI/actions repository.


Setup sensible default pollingInterval

Proposed solution :
Added a pollingInterval to providers itself of 30sec. This is only set if your are not on local hardhat chain,  using .env.local . Similar to se-1 initialNetwork, here we are using env.local as source...maybe we can move to another config file as mentioned in #9
Fixes #39
Reason / Explanation for current approach :

It seems like wagmi does not have an option of pollTime similar to eth-hooks for each hooks (checkout small explanation about pollTime in se-1 sensible default issue here).

To stay in sync with chain, we need to pass watch:true as an option to each hook, and it under the hood uses useBlockNumber which in turn depends on provider._pollingInterval.

checkout wagmi useBalance hook implementation code here.

It was also suggested here :  https://github.com/wagmi-dev/wagmi/discussions/1252

cacheTime vs staleTime :
It seems like wagmi follows same patters as react-query (it uses react-query under the hood)

cacheTime
staleTime

The duration until inactive queries will be removed from the cache. Queries transition to the inactive state as soon as there are no observers registered, so when all components which use that query have unmounted.
The duration until a query transitions from fresh to stale. As long as the query is fresh, data will always be read from the cache only - no network request will happen! If the query is stale (which per default is: instantly), you will still get data from the cache, but a background refetch can happen under certain conditions.

cacheTime determines for how long a certain response is supposed to stay in cache before it gets garbage collected.
staleTime determines for how long a certain response will still be considered fresh (or not stale), dismissing the need for a new request

This above difference was taken from here. This article really nicely explains the difference b/w both here
Now coming to our case, inorder to keep values updated / in sync we need to mandatory pass watch:true, If we pass cacheTime along with watch it has no effect.
const {
    data: fetchedBalanceData,
    isError,
    isLoading,
  } = useBalance({
    addressOrName: address,
    watch: true,
    cacheTime: 30_000, // <-- No effect, can be removed
  });

No effect, since watch will be making evm_blocknumber call every provider._pollingInterval and if blocknumber is changed irrespective of weather the cacheTime is exceeded or not it will make evm_getBalance call. internal working of useBalance here. checkout useEffect in internal implementation.
Some points to note :
I have commented out webSocketProvider option to wagmiClient :
export const wagmiClient = createClient({
  autoConnect: false,
  connectors: wagmiConnectors,
  provider: appChains.provider,
- webSocketProvider: appChains.webSocketProvider,
+ // webSocketProvider: appChains.webSocketProvider,
});

Explanation :

note that WebSockets are much more intensive on your server resources, as they must manage and maintain the state for each client.For this reason, many services may also charge additional fees for using their WebSocket endpoints. - ethers docs

If you provide a WebSocket provider, it will be used instead of polling in certain instances. - wagmi docs

Confused weather to keep it or not, If people use their own alchemyApiKey then its good to have because, it decreases the rpc calls as mentioned in wagmi docs. If they use our alchemyKey, I think it will get overwhelmed
Below demo, demonstrates that automatically only eth_getBalance calls are made after blocknumber is changed, eth_blocknumber are handled by webSocketProvider internally and hence do not make request in networks tab.

Test Brach :
Created a test branch to test, tinker and dive deeper :  test-sensible-polling-time
Defaults

commented out all the unnecessary components/functions to avoid unknown requests.
pollingInterval is hardcoded to 30_000 for testing on mainnet
webSocketProvider is also commented to see all calls

created a sample example to test cacheTime and staleTime to better utilize wagmi caching :

Created a page cacheDemo which denotes how we can potentially utilize caching with watch option being true
cacheDemo page uses useBlocknumber(This hook basically returns current block number).

  const { data: fetchBlocknumber, isLoading } = useBlockNumber({
    watch: true,
    cacheTime: 40_000,
    staleTime: 5_000,
  });

In the above code, we have used cacheTime, staleTime both with watch option.
So if we omit staleTime, useBlockNumber will make the request everytime component mounts.
If staleTime is being passed it will actually use the cache data the next time you visit the page in b/w 5sec.
https://user-images.githubusercontent.com/80153681/202283892-c92a3ff0-584e-4929-a548-8805cf5ab0eb.mov
In the above video we can see that eth_blocknumber was not made at all, when we go second time on the page.
Conclusion
I was planning to use this pattern for all the hooks(the cacheTime and staleTime can be optimized). Maybe something like this :
const { data: fetchBlocknumber, isLoading } = useBlockNumber({
    watch: true,
    ...getSensibleConfig(currentChain),
  });

Basically getSinsibleConfig will set some sensible values for cacheTime, staleTime depending on the chain choosen.
Please let me know if we should go ahead with the above pattern 🙏.
Alternate possible solution  :
Maybe create our own useOnRepetation hook wrapper and pass it the refetch function, returned from wagmi hooks. If we don't want put pollingInterval and go with the approach followed in https://github.com/scaffold-eth/scaffold-eth/pull/896 i.e is passingpollingTime to each hook

Thanks for the long explanation!
One question (since I'm new to the repo and I didn't see all the code yet): are we using the useBalance from wagmi?

What would be the advantage of using this VS. watch: true + pollingTime in the chainConfiguration? The latter seems to be working fine. It's just about request when mounting components?

Yes, we are only saving a request while mounting....Even I think "watch: true + pollingTime in the chainConfiguration" is better instead of the extra configuration for cacheTime and staleTime which don't have that much effect


cairo: 1.14.10 -> 1.15.8

Motivation for this change
Emojis
Things done

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

[ ] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

This doesn't build, not sure why.. any ideas?
$ nix-build -A cairo -K
these derivations will be built:
  /nix/store/d096bg77p22zv5ciffk199vqqsq7y8x8-cairo.drv
  /nix/store/am09rq9myssrq114n02kkd4697g2rv29-cairo-1.15.8.drv
building path(s) ‘/nix/store/xma5yxnyzz5shd89fam8gi6j4zs8la3l-cairo’
exporting https://anongit.freedesktop.org/git/cairo (rev 1.15.8) into /nix/store/xma5yxnyzz5shd89fam8gi6j4zs8la3l-cairo
Initialized empty Git repository in /nix/store/xma5yxnyzz5shd89fam8gi6j4zs8la3l-cairo/.git/
remote: Counting objects: 3202, done.
remote: Compressing objects: 100% (3134/3134), done.
remote: Total 3202 (delta 383), reused 2125 (delta 59)
Receiving objects: 100% (3202/3202), 31.75 MiB | 259.00 KiB/s, done.
Resolving deltas: 100% (383/383), done.
From https://anongit.freedesktop.org/git/cairo
 * tag               1.15.8     -> FETCH_HEAD
Switched to a new branch 'fetchgit'
removing `.git'...
building path(s) ‘/nix/store/3v7d3mzxmdydp7b70sjk21zkn00msbm7-cairo-1.15.8-dev’, ‘/nix/store/b93yalsc4g5qlfm8033vbs0l6cma96hi-cairo-1.15.8-devdoc’, ‘/nix/store/v91gv17s6lv82yhbabw9d3vj0rg28yzc-cairo-1.15.8’
unpacking sources
unpacking source archive /nix/store/xma5yxnyzz5shd89fam8gi6j4zs8la3l-cairo
source root is cairo
patching sources
applying patch /nix/store/hrvsw11xgc50zix0djc19gi8kds3234s-cairo-CVE-2016-9082.patch
patching file boilerplate/cairo-boilerplate.c
patching file src/cairo-image-compositor.c
patching file src/cairo-image-surface-private.h
patching file src/cairo-mesh-pattern-rasterizer.c
patching file src/cairo-png.c
patching file src/cairo-script-surface.c
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
glibPreInstallPhase
installing
install flags: install pkgconfigdir=/nix/store/3v7d3mzxmdydp7b70sjk21zkn00msbm7-cairo-1.15.8-dev/lib/pkgconfig m4datadir=/nix/store/3v7d3mzxmdydp7b70sjk21zkn00msbm7-cairo-1.15.8-dev/share/aclocal aclocaldir=/nix/store/3v7d3mzxmdydp7b70sjk21zkn00msbm7-cairo-1.15.8-dev/share/aclocal gsettingsschemadir=/nix/store/v91gv17s6lv82yhbabw9d3vj0rg28yzc-cairo-1.15.8/share/gsettings-schemas/cairo-1.15.8/glib-2.0/schemas/
make: *** No rule to make target 'install'.  Stop.
note: keeping build directory ‘/tmp/nix-build-cairo-1.15.8.drv-0’
builder for ‘/nix/store/am09rq9myssrq114n02kkd4697g2rv29-cairo-1.15.8.drv’ failed with exit code 2
error: build of ‘/nix/store/am09rq9myssrq114n02kkd4697g2rv29-cairo-1.15.8.drv’ failed

My understanding is that 1.15.x is an unstable branch.  I'm intentionally keeping gtk/gnome-related packages on stable versions (even minor numbers).

Oh I didn't know that, but I guess that explains why they seem to have two sets of releases. That's fair enough, but I'm curious is there any particular reason for keeping it on the stable 1.14.x, other than just stability? This latest release brings emoji (color glyph) support so I felt that feature was significant enough for an immediate update.
Closing in favour of waiting for a 1.14.x release.

I'm not sure.  I didn't see such things explicitly described around upstream.  It might be easiest to just ask them somewhere.


Add a management console

Shows which Pi's have queries what parameters when, so we can detect 'dead' Pi's

I will look into this as soon. Would integration with cloudwatch be considered viable or should we consider a on pemise solution?

This runs in cloud anyway, so that's no issue.
We should separate monitoring of the Pi's from monitoring the site
On Oct 27, 2015 4:27 PM, "Michele"<EMAIL_ADDRESS>wrote:

I will look into this as soon. Would integration with cloudwatch be
considered viable or should we consider a on pemise solution?
—
Reply to this email directly or view it on GitHub
https://github.com/TweakMunich/metricsinyourface/issues/20#issuecomment-151540149
.

Implemented monitoring of metric request, by adding a special domain system and using dedicated channels with ID = 1 and ID = 2.  The display can monitor the status.


Disable code coverage reporting.

We don't currently have any tests, so this isn't particularly helpful.

This is ok to merge - we're still waiting for kokoro to confirm the org invite.


Accept Puppet-Datatype Sensitive

let the Hash containing the Secrets for the Keystore accept Secrets of Datatype Sensitive
fix a 15-Months-old Typo-Bug

Pull request acceptance prerequisites:

[x] Signed the CLA (if not already signed)
[x] Rebased/up-to-date with base branch
[ ] Tests pass
[ ] Updated CHANGELOG.md with patch notes (if necessary)
[ ] Updated CONTRIBUTORS (if attribution is requested)

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

thanks for the PR! can you add some tests with sensitive data?

thanks for the PR! can you add some tests with sensitive data?

I would like to.  But with this outdated Hiera 3 in use, I won't.
With Hiera 5 one could do something like…
---
lookup_options:
  elasticsearch::api_basic_auth_password:
    convert_to: Sensitive

elasticsearch::api_basic_auth_password: MY_API_BASIC_AUTH_PASSWORD

… to retrieve sensitive Strings from Hiera.
So, if you mind to migrate to Hiera 5?  I could do the Migration, but currently I am quite busy.


Orchestrator: On startup discover already running agents

On startup, check in DB for running SAVE agents and discover corresponding docker containers.
Depends on implementation of repository for agent states in #8.

Orchestrator can look for a specific pattern of container names, for example. But OTOH, running agents will start heartbeating into orchestrator, so after 15 seconds after it boots it should already be aware of all agents.
Another question that arises here is that we should ensure, that orchestartor host name doesn't change and it is still acessible by agents. Orchestrator should connect them to save docker network on creation.

Orchestrator should firstly retrieve agent ids from DB, then ensure they are actually running. FFor ids, that are not running, it should update their status. For agents that are running but not present in the DB - if we can't figure what they are doing (I believe joins in DB are the only way now), we should kill them.


Converted documentationURL & evidenceStandardSupport into FieldArrays

Converted documentationURL & evidenceStandardSupport into arrays using fieldArray component

I have added URL validation to standards[evidenceStandardSupport] field. Changes feature on this commit b58b2f3. @lacabra ready for your review.


Fix the GIF rendering in Adoption Gallery

Q
A

Bug fix?
yes

New feature?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Adjustment to the URL. This time I compared to another sample that does render in adoption.microsoft.com so hopefully last time I need to try to fix this.

Thank you @pkbullock !


chore(deps): update docker/build-push-action digest to 0a97817

This PR contains the following updates:

Package
Type
Update
Change

docker/build-push-action
action
digest
2eb1c19 -> 0a97817

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Will rerun when action attribution fixed


Backend

Hey, is there any backend of this script or you need to hardcode to modify content?

hey @vitviggs
this theme is based on Markdown content. so there is no default backend/CMS provided with this theme. but you can use any git-based CMS like Tina, Decap, Frontmatter etc


Fix issue https://github.com/allure-framework/allure-phpunit/issues/23

Fix Step model and Test

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[vcpkg RFC] initial registries RFC

Hey all! This is the new RFC for CUSTOM REGISTRIES 🥳

/azp run

Ugh, I think the CLA machine went down in the middle of checking.

Thanks for designing this important feature!


🌎 Internationalization

Hey!
When writing in a language other than English, having to add charset=utf-8 on every call of glen.html can get pretty tiring. And since there's no real drawback in making UTF-8 the default, why not?

Seems reasonable to me!

@R0DR160HM published in the latest 2.2.1 version. Sorry for the wait.


merge package template from arlac77/npm-package-template

Updated standard to latest version

Codecov Report

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

@@           Coverage Diff           @@
##           master     #154   +/-   ##
=======================================
  Coverage   93.56%   93.56%
=======================================
  Files          18       18
  Lines         171      171
=======================================
  Hits          160      160
  Misses         11       11

Continue to review full report at Codecov.

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

Coverage remained the same at 93.567% when pulling 9e84fb965b3fcdc8a92c9320a8d98e909b2372b6 on template-sync-1 into 6615354c885775d4b273b5db82f6959bfa70653f on master.


Module not found error after installing

dear @ShaneCreedon,
Thanks a lot for your implemented Library.
This is what I need.
But I have a problem installing and using this Library.
After installing the package with
npm install react-grid-draw-ui
I get the error that said:
Module not found: Can't resolve '../../../../../node_modules/react-grid-draw-ui' in . . .
And when I move the mouse over import {ReactGridDrawUI, useGridData} from "react-grid-draw-ui"; it said Module is not installed
I also tested
yarn add react-grid-draw-ui
but the error persists.
I checked package.json, the library added.
I also checked node_module and the react-grid-draw-ui directory with its files is exists.
my react version is:
"react": "^16.8.6",
and installed react-grid-draw-ui version is:
"react-grid-draw-ui": "^1.0.26",
please help me to solve this problem. I am looking forward to using your implemented library in my Project.

Hi @bodaghialib4
Thanks for your kind words about the library!
Thank you for reporting this - I will look into fixing this issue as soon as I can.

Hi @bodaghialib4
This issue should be fixed now, could you try reinstall the package and let me know the result?
If you have any other issues or questions, please let me know.

Hi @ShaneCreedon
Thanks for your response and for fixing this error. I test it and worked without error.

Your Library is Great. but I need it with some extra features.
so I brought your codes into my project to add my needed extra features.
the result of my changes is shown below:

and also tables can separate by page. and each page has its own tables.
I am not an expert in Typescript and got many errors in debugging. so I converted codes into Javascript.
If you are interested, I will be glad to share my codes with you. and if you like them, we can collaborate and add them to Library.

@bodaghialib4 Your changes look good! They would make a good addition - I quite like the ability to delete the rows/columns and tables specifically. However I'd like to keep the source code in Typescript if we could, so perhaps you can share your JavaScript and I can convert it back to TS for the library.

@bodaghialib4 I've now included these functions in the library, and also the ability to move grid lines along their axis.
Demo : https://shanecreedon.github.io/React-grid-draw-ui/

dear @ShaneCreedon
thanks a lot for your new version. You are the best.
I will check it as soon as possible.
and sorry for the delay in response. I was a little busy.
I will also share my code with you.


Installer is not English

Windows 10 Pro Version 1703 - 64 bits

Hmm I don't know what's going on here 😂

v0.6.7 installer is back to English. 🤔


Automate climb with manual override

Not as reliable as a human watching to see whether it has enough downforce and contact. Possible partial extension to be tested (if time allows) on Thursday.


Support for Capsule Bodies

It would be nice if there was a capsule body.
Bodies.capsule(x, y, width, height, options)

Resulting in a shape like this:

You can get something close using the chamfer feature on a rectangle, check out the rounded corners example.

I have been messing around with that, but as the shapes differ in size, it has been hard for me to find a formula that automatically creates a near perfect capsule.
If you know of a formula, please let me know...

There is a manual way of getting a capsule shape?

Yea there's an approximation, try using the chamfer option on Bodies.rectangle, as used in the rounded corners example.

I have been messing around with that, but as the shapes differ in size, it has been hard for me to find a formula that automatically creates a near perfect capsule.
If you know of a formula, please let me know...

@TheColorRed are capsules any different than rounded corners? When using border-radius in css I set it to 999999999px, and it creates perfect 'capsule's. Maybe you can use something like border-radius: 999999999px but instead of css do the Matter.js equivalant?


Internally support $insert_id

It'd be helpful if the API handled setting or generating an insert id for you automatically like so:
private generate_insert_id() {
    const length = 16;
    let result = '';
    const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    const char_len = characters.length;
    for (let i = 0; i < length; i += 1) {
      result += characters.charAt(Math.floor(Math.random() * char_len));
    }

    return result;
  }

This is useful because it would allow users who may make mistakes or see accidental data inaccuracies to easily get them fixed since otherwise there would be no other recourse until you realized to do this.
If Mixpanel did this, then it would also help reduce possible integration mistakes if customers generated this incorrectly or did so without enough entropy.

If you don't include an $insert_id explicitly, the API server is supposed to generate one internally ("Mixpanel generates the $insert_id at the API for payloads that do not contain $insert_id."), though I don't think that value is exposed to users. Since this library doesn't implement any retry logic internally, it's not clear what the benefit would be of setting it here. Are you talking about using the event deduplication feature as a way to correct historical data?

I don't see any $insert_id if I were to go the product and breakdown by Insert ID. If the API automatically does, that's great -- I just don't see the benefit for some reason.
The best solution seems like Mixpanel handles it on the backend, it's exposed in the UI, and libraries don't need to implement it. I found that I had to since I couldn't segment by Insert ID.

I guess the QBQ is what you're trying to do with $insert_id in your analyses. It's supposed to be for allowing Mixpanel's storage services to deduplicate data accidentally sent multiple times.

We had an accident where we ended a session and it created some significant data inaccuracy. One way to remove that inaccuracy is to filter it out of the data via its $insert_id or to repair it by re-writing it somehow via its $insert_id is my understanding.


Create and Sign Send Native Token Transcation

Prerequisites

give me the Eth Address of your safe, so I can send you some testnet tokens
use this receiver for testing
use goerli as testnet (ID 5)
there is a full working example here: https://github.com/deep-ink-ventures/blend-safe/blob/main/src/blend_safe_frontend/App.tsx#L40-L51

Creating
Show the following dialog when the + sign is used with "Send Native Token":

Where:
receiver should be a valid eth address]
amountInEtherToSend should be a decimal number
chainId should be a dropdown, where we have currently Goerli Testnet - 5, Ropsten Testnet - 3, Rinkeby Testnet - 4, the dropdown is text, you need the id
This should trigger the following:
  const transaction = await safe.prepareSendEthTransaction(
      receiver,
      amountInEtherToSend
 );

 const txHash = safe.getEthTransactionHashFromTransactionObject(transaction, chainId);

 const metadata = {
    transaction: transaction,
    chainId: chainId,
  }
  await safe.propose(txHash);
  await safe.addMetadataToMessage(txHash, JSON.stringify(metadata));

Now the transcation is submitted and the metadata is stored.
Approving
When you query the messages, now as well query the metadata:
const metadataReturned = JSON.parse(await safe.getMetadataForMessage(txHash));

const isValid = txHash == safe.getEthTransactionHashFromTransactionObject(metadataReturned.transaction, metadataReturned.chainId));
const decodedTx = safe.decodeTransaction(metadataReturned.transaction)

Now we are able to fill the fields:

remove updated and created at
show the fields here: https://github.com/deep-ink-ventures/blend-safe/blob/main/src/blend_safe_frontend/blend_safe.ts#L278-L285, note that data is optional

If one of the fields is not there or there is no metadata at all (which would be the case for rawTransaction discussed in #9) just add not available
Edge cases
These apply for all messages, so this should work for raw messages and erc20 (#12) messages as well.

if there is no message data, please create a yellow border around the transaction and add a badge on the top right no metadata
if there is message data but the isValid check above is false, create a red border around the transaction and add a badge on the top right metadata invalid
if there is message data and the isValid check above is true, create a green border around the transaction and add a badge on the top right metadata valid

Signing
const metadataReturned = JSON.parse(await safe.getMetadataForMessage(txHash));
const receipt = await safe.signAndBroadcastTransaction(metadataReturned.transaction, metadataReturned.chainId);
console.log(receipt);

Update: After signing, just display a popup with the receipt's blockhash.


config.md: Sentence modification

Signed-off-by: zhouhao<EMAIL_ADDRESS>

This isn't a binding specification statement.

LGTM

LGTM


Collection approval workflow UI

Issue: AAH-2169

Closing, reworked from scratch in https://github.com/ansible/ansible-hub-ui/pull/3428


Extract documentation from comments in #642

I gave a lot of information in #642 about repairnator architecture and scripts usage. It worth it to put those information in some documentation. At least to extract and organize a bit the comments.

Done in #654


Test: Make cleaner the Flannel skip test.

To make it more declarative make a new helper in Flannel mode to skip
the test if was trigger in flannel mode.
Signed-off-by: Eloy Coto<EMAIL_ADDRESS>

This change is

test-me-please

Coverage decreased (-0.05%) to 43.066% when pulling 033b71f78a97af9a3c60949c16cdd3aacc6b0a26 on eloycoto:SkipFlannel into 5a62d3786f173060b7f8ed91426a45eba538dacd on cilium:master.

test-me-please


Why I get a strange result by method of dateBySet

let now = Date()
let yesterday = now.dateAtStartOf(.day).dateBySet([.hour: -24]) //it‘s right
let yesterdayError = now.dateAtStartOf(.day).dateBySet([.day: -1]) //it's strange
print(yesterday) //Optional(2019-08-26 00:00:00 +0000)
print(yesterdayError) //Optional(2019-07-30 00:00:00 +0000)

When the dict key is set .day , yesterday is error.

You are setting a component neither adding or subtracting value from component (specifically to hour=-24 and day=-1 which clearly does not make sense).
I think you would to use dateByAdding() function instead.


loader: misc fixes

This PR pulls out a couple of fixes from #32059.
pkg/bpf: fix globalData big-endian issues
globalData extracts constants from an array of bytes using BTF. It does this
by copying up to 8 bytes into a temporary buffer and then using
ByteOrder.Uint64 to convert that to a uint64. This only works on little
endian machines.

Fix this by using the correct methods to convert to uint64. Since there are
approximately zero big-endian machines out there this isn't a particularly
critical fix.

Fixes: d10e8ebed3 ("bpf: dynamic-width static data inlining") Signed-off-by:
Lorenz Bauer<EMAIL_ADDRESS>
loader: consistently use wrapped config in objectCache.build
The object cache computes a hash to decide whether a rebuild is necessary.
Use the same wrapped config as we later use for the build to avoid any
inconsistencies.

Signed-off-by: Lorenz Bauer<EMAIL_ADDRESS>
loader: remove unnecessary global variable mangling from test
Signed-off-by: Lorenz Bauer<EMAIL_ADDRESS>

/test


"Dynamic Prompts enabled" at startup creates problems, why can't we choose?

Thank's for your work...

Wait, you can't choose? What's the issue?

normally an extension is off and we choose to activate it, not the opposite ???

I think it's auto's responsible for managing state. It should remember your settings. As a workaround, have a look in ui-config.json, search for '/txt2img/Dynamic Prompts enabled/value"' and change the setting to false. Then restart auto and DP should be disabled by default.


[task #5568] add_to_unixtime_function

Which issue does this PR close?

Closes #5568 .
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Now that @Omega359  started moving the date time functions to datafusion-functions perhaps you can follow the same pattern for to_unixtime 🤔

Now that @Omega359 started moving the date time functions to datafusion-functions perhaps you can follow the same pattern for to_unixtime 🤔

I see that.
I will do this tomorrow

Thank you @Tangruilin

Thank you @Tangruilin

This PR is ready to review

I merged up from main to resolve the CI failures

Thanks again @Tangruilin  and @waynexia


[QUESTION] Tailwind (Nativewind) not working

Tailwind (Nativewind) Css not working with this template, Need Help!

Hello, I'm at this moment updating this template to support latest dependency versions (including RN 0.72) in this PR
I'll try to connect it there and will come back with answe
Check whether you installed NativeWind properly according to this page:
https://www.nativewind.dev/quick-starts/react-native-cli

Hey @svbutko, I hope you will be fine.
Yep, I followed that link's: https://www.nativewind.dev/quick-starts/react-native-cli instructions.
Here are my tailwind and babel config files, I'm following your file structure, and applying nativewind styles in Main.tsx file.
tailwind.config.js
/** @type {import('tailwindcss').Config} */ module.exports = {   content: ["./index.{js,jsx,ts,tsx}", "./src/**/*.{js,jsx,ts,tsx}", "./<custom-folder>/**/*.{js,jsx,ts,tsx}"],   theme: {     extend: {},   },   plugins: [], };
babel.config.js
module.exports = {   presets: ["module:metro-react-native-babel-preset"],   plugins: ["nativewind/babel"],   // env: {   //   test: {   //     plugins: ["react-native-config-node/transform"],   //   },   //   production: {   //     plugins: ["transform-remove-console"],   //   },   // }, };
Main.tsx
`import {NavigationFunctionComponent} from "react-native-navigation";
import {ScrollView, Text, View} from "react-native";
import React from "react";
import {localization} from "../../common/localization/localization";
import {CommonStyles} from "../../core/theme/commonStyles";
export const Main: NavigationFunctionComponent = (): JSX.Element => {
return (
<ScrollView testID={"MainPageID"} contentInsetAdjustmentBehavior={"automatic"}>

Main

);
};
Main.options = {
topBar: {
largeTitle: {
visible: true,
},
title: {
text: localization.pages.main,
},
},
};
`

Am I doing something wrong?

@asiflhr, I tried to connect it and it works without issues:

Added "nativewind": "2.0.11" to dependencies
Added "tailwindcss": "3.3.2" to devDependencies
Modified babel.config.json:

  presets: ['module:metro-react-native-babel-preset'],
  plugins: ['nativewind/babel', 'react-native-reanimated/plugin'],
  env: {
    test: {
      plugins: ['react-native-config-node/transform'],
    },
    production: {
      plugins: ['transform-remove-console'],
    },
  },
};

Generated tailwind.config.js with this content:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./App.{js,jsx,ts,tsx}', './src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {},
  },
  plugins: [],
};

And tested it:

import {styled} from 'nativewind';

const StyledView = styled(View);

export const TvList: NavigationFunctionComponent = () => {
  return <StyledView className={`flex-1 bg-amber-500`} />;
};


Request option that does not include the SQL statement in the tag

Feature
I want an option that does not include the SQL statement in the tag
Rationale and Example Scenario
Currently, when I apply mysql's Tracing Query Interceptor, sql query is included as a span tag.
https://github.com/openzipkin/brave/blob/6ff14281bf94b7285e8e09aed761e27cd25cf72b/instrumentation/mysql8/src/main/java/brave/mysql8/TracingQueryInterceptor.java#L58
While this is very convenient, sql queries often contain sensitive personal information.
For sensitive applications, it would be nice to have an option that doesn't include sql query as a tag.
Prior Art
For example, lettuce (mejor redis client library) also has an option like this.
https://github.com/lettuce-io/lettuce-core/blob/7be77cb8298b456cb68754f71c5eb3fed412c0f9/src/main/java/io/lettuce/core/tracing/BraveTracing.java#L151-L156

It seems good to add the following implementation specifically for the client side prepared statement.
This will get the args part as ?.
e.g. SELECT * FROM test WHERE id = ?
  @Override
  public <T extends Resultset> T preProcess(Supplier<String> sqlSupplier, Query interceptedQuery) {
    // Gets the next span (and places it in scope) so code between here and postProcess can read it
    Span span = ThreadLocalSpan.CURRENT_TRACER.next();
    if (span == null || span.isNoop()) return null;

    String sql = sqlSupplier.get();

    // ↓ THIS
    if (interceptedQuery instanceof ClientPreparedStatement) {
      Query query = ((ClientPreparedStatement) interceptedQuery).getQuery();
      if (query instanceof ClientPreparedQuery) {
        sql = ((ClientPreparedQuery) query).getOriginalSql();
      }
    }
    // ↑ THIS

    int spaceIndex = sql.indexOf(' '); // Allow span names of single-word statements like COMMIT
    span.kind(CLIENT).name(spaceIndex == -1 ? sql : sql.substring(0, spaceIndex));
    span.tag("sql.query", sql);
    parseServerIpAndPort(connection, span);
    span.start();
    return null;
  }

Thanks for detailed use case. Are you up for a PR to fix this?
tor. 12. mai 2022, 05:20 skrev Ryosuke Hasebe @.***>:

Feature
I want an option that does not include the SQL statement in the tag
Rationale and Example Scenario
Currently, when I apply mysql's Tracing Query Interceptor, sql query is
included as a span tag.
https://github.com/openzipkin/brave/blob/6ff14281bf94b7285e8e09aed761e27cd25cf72b/instrumentation/mysql8/src/main/java/brave/mysql8/TracingQueryInterceptor.java#L58
While this is very convenient, sql queries often contain sensitive
personal information.
For sensitive applications, it would be nice to have an option that
doesn't include sql query as a tag.
Prior Art
For example, lettuce (mejor redis client library) also has an option like
this.
https://github.com/lettuce-io/lettuce-core/blob/7be77cb8298b456cb68754f71c5eb3fed412c0f9/src/main/java/io/lettuce/core/tracing/BraveTracing.java#L151-L156
—
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/brave/issues/1329, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYASWHZJIYQPTT2HIFR3VJR2INANCNFSM5VW2OAOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

OK, please wait. :)

Awesome!


[release-0.59] Fix inconsistency between export-server and vmexport status links

What this PR does / why we need it:
Manual backport of https://github.com/kubevirt/kubevirt/pull/9123.
This PR fixes an inconsistency between the links displayed in the vmexport status and the actual path in the export-server when exporting snapshots.
While the links are still generated using the restore PVC name, the volume name displayed in the status matches the original volume as appears in the VM, so users can easily identify their download target.
Release note:

NONE

/retest-required

/lgtm
/approve

/retest

/retest-required

/test pull-kubevirt-e2e-k8s-1.25-sig-compute-migrations-0.59


Read an account from the service

As a User
I need the ability to read and verify customer account details
So that I can ensure accurate information for further processing.
Details and Assumptions

Reading an account involves accessing detailed customer information.

Acceptance Criteria
Given I am logged into the service and have the necessary authorizations,
When I select the customer account
Then The app should display details of that account.

Done and tested


UDP has maximum packet length of 8192 bytes only

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
This may be a feature request. When I use a UDP router to route to a UDP service in the file provider, and send a UDP request larger than 8192 bytes, traefik only reads the first 8192 bytes. Traefik is running in a docker container, which is using UDP routing to route to a UDP service all defined in the file provider. The UDP service is on a separate physical machine than where traefik docker runs.
I would like to treafik to support a higher maximum packet length.
What did you see instead?
I'm supplying a wireshark pcap as an exported csv, and redacting the source and dest IPs with the names of the services/clients. You can see that 8195 is sent to the traefik proxy, yet traefik only forwards 8192.
"No.","Time","Source","Destination","Protocol","Length","Info"
"1","0.000000","CLIENT","PUBLIC_IP","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=0, ID=b14f) [Reassembled in #6]"
"2","0.000028","CLIENT","PUBLIC_IP","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=1480, ID=b14f) [Reassembled in #6]"
"3","0.000033","CLIENT","PUBLIC_IP","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=2960, ID=b14f) [Reassembled in #6]"
"4","0.000037","CLIENT","PUBLIC_IP","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=4440, ID=b14f) [Reassembled in #6]"
"5","0.000042","CLIENT","PUBLIC_IP","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=5920, ID=b14f) [Reassembled in #6]"
**"6","0.000046","CLIENT","PUBLIC_IP","UDP","841","57235  >  30000 Len=8195"**
"7","0.001159","TREAFIK_PROXY","UDP_SERVICE","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=0, ID=7b25) [Reassembled in #12]"
"8","0.001174","TREAFIK_PROXY","UDP_SERVICE","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=1480, ID=7b25) [Reassembled in #12]"
"9","0.001181","TREAFIK_PROXY","UDP_SERVICE","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=2960, ID=7b25) [Reassembled in #12]"
"10","0.001192","TREAFIK_PROXY","UDP_SERVICE","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=4440, ID=7b25) [Reassembled in #12]"
"11","0.001204","TREAFIK_PROXY","UDP_SERVICE","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=5920, ID=7b25) [Reassembled in #12]"
**"12","0.001211","TREAFIK_PROXY","UDP_SERVICE","UDP","838","59378  >  30000 Len=8192"**
"13","0.002360","UDP_SERVICE","TREAFIK_PROXY","IPv4","1454","Fragmented IP protocol (proto=UDP 17, off=0, ID=3ee6) [Reassembled in #18]"
"14","0.002376","UDP_SERVICE","TREAFIK_PROXY","IPv4","1454","Fragmented IP protocol (proto=UDP 17, off=1416, ID=3ee6) [Reassembled in #18]"
"15","0.002381","UDP_SERVICE","TREAFIK_PROXY","IPv4","1454","Fragmented IP protocol (proto=UDP 17, off=2832, ID=3ee6) [Reassembled in #18]"
"16","0.002392","UDP_SERVICE","TREAFIK_PROXY","IPv4","1454","Fragmented IP protocol (proto=UDP 17, off=4248, ID=3ee6) [Reassembled in #18]"
"17","0.002404","UDP_SERVICE","TREAFIK_PROXY","IPv4","1454","Fragmented IP protocol (proto=UDP 17, off=5664, ID=3ee6) [Reassembled in #18]"
"18","0.002413","UDP_SERVICE","TREAFIK_PROXY","UDP","1158","30000  >  59378 Len=8192"
"19","0.003039","TREAFIK_PROXY","CLIENT","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=0, ID=2d6b)"
"20","0.003052","TREAFIK_PROXY","CLIENT","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=1480, ID=2d6b)"
"21","0.003061","TREAFIK_PROXY","CLIENT","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=2960, ID=2d6b)"
"22","0.003072","TREAFIK_PROXY","CLIENT","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=4440, ID=2d6b)"
"23","0.003085","TREAFIK_PROXY","CLIENT","IPv4","1518","Fragmented IP protocol (proto=UDP 17, off=5920, ID=2d6b)"
"24","0.000053","TREAFIK_PROXY","CLIENT","UDP","838","30000  >  57235 Len=8192"

What version of Traefik are you using?
Version:      2.5.3
Codename:     livarot
Go version:   go1.17.1
Built:        2021-09-20T15:43:56Z
OS/Arch:      linux/amd64
What is your environment & configuration?
echoserviceudp is the udp router and service name in question.
Treafik.yml
pilot:
    token: <token>
log:
  level: INFO
api:
  insecure: true
  dashboard: true
  debug: true
entryPoints:
  http:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: https
          scheme: https
  https:
    address: ":443"
  traefik:
    address: ":8080"
  zenohtcp:
    address: ":7447"
  zenohudp:
    address: ":7448/udp"
  echoservicetcp:
    address: ":30000"
  echoserviceudp:
    address: ":30000/udp"
serversTransport:
  insecureSkipVerify: true
providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
  file:
    watch: true
    filename: config.yml
certificatesResolvers:
  myresolver:
    acme:
      email: <email>
      storage: letsencrypt/acme.json
      dnsChallenge:
        provider: cloudflare
        resolvers:
          - "<IP_ADDRESS>:53"
          - "<IP_ADDRESS>:53"

config.yml
http:
  routers:
    work-kube:
      entryPoints:
        - "https"
      rule: "Host(`https://<dns>`)"
      service: work-kube
      tls:
        certResolver: myresolver
  services:
    work-kube:
      loadBalancer:
        servers:
          - url: "https://<ip>:16443"
        passHostHeader: true
udp:
  routers:
    echoserviceudp:
      entryPoints:
        - "echoserviceudp"
      service: "echoserviceudp"
  services:
    echoserviceudp:
      loadBalancer:
        servers:
          - address: "<ip>:30000"
tcp:
  routers:
    echoservicetcp:
      entryPoints:
        - "echoservicetcp"
      rule: "HostSNI(`*`)"
      service: "echoservicetcp"
  services:
    echoservicetcp:
      loadBalancer:
        servers:
          - address: "<ip>:30000"

Add more configuration information here.
If applicable, please paste the log output in DEBUG level
No response

Please let me know if I should open this as a feature request.

Closed by #8560


      Test: Extra Files: Failure
        Info: Loading took 0.000406980514526s
        Info: Programming rate 239028642.718B/s
        Info: MSD transfer rate 239028642.718B/s
        Test: wait_for_remount: Pass
          Info: unmount took 0.110228061676 s
          Info: mount took 6.04239416122 s
        Test: test_fs_contents: Pass
          Info: File /Volumes/DAPLINK 1/MBED.HTM valid
          Info: File /Volumes/DAPLINK 1/DETAILS.TXT valid
          Info: Skipping non file item /Volumes/DAPLINK 1/.fseventsd
          Test: test_details_txt: Pass
            Test: parse_kvp_file: Pass
        Test: test_details_txt: Pass
          Test: parse_kvp_file: Pass
        Info: Expected CRC: 0x8f6ffeb6, actual crc: 0x52dd5f32
        Failure: Data does not match

http://aus-raas-linux-00:8080/view/DAPLink/job/daplink_test_master/3/hosts=mac/artifact/test_results/k20dx_frdmk64f_if FRDM-K64F.txt

Test configuration: APP=kl26z_microbit_if BL=kl26z_bl Board=Microbit Target=Microbit
Board: Name=Microbit Unique ID=9900000031864e45002d1013000000680000000097969901
Application: Name=kl26z_microbit_if
Bootloader: Name=kl26z_bl
Target: Name=Microbit

Test: kl26z_microbit_if Microbit: Failure
(...)

      Test: Extra Files: Failure
        Info: Previous attempts 1
        Info: Loading took 5.72399997711s
        Info: Programming rate 19839.9721269B/s
        Info: MSD transfer rate 50737.2468835B/s
        Test: wait_for_remount: Failure
          Info: unmount took 1.11100006104 s
          Info: mount took 2.49399995804 s
          Failure: Expected remount count of 14 got 1

http://aus-raas-linux-00:8080/view/DAPLink/job/daplink_test_master/14/hosts=win7/artifact/test_results/kl26z_microbit_if Microbit.txt

Test configuration: APP=k20dx_frdmk64f_if BL=k20dx_bl Board=FRDM-K64F Target=FRDM-K64F
Board: Name=FRDM-K64F Unique ID=0240000032044e4500397009997b00556781000097969900
Application: Name=k20dx_frdmk64f_if
Bootloader: Name=k20dx_bl
Target: Name=FRDM-K64F

Test: k20dx_frdmk64f_if FRDM-K64F: Failure
(...)
      Test: Normal Load: Pass
        Info: Loading took 0.000483989715576s
        Info: Programming rate 65588170.53B/s
        Info: MSD transfer rate 65588170.53B/s
        Test: wait_for_remount: Pass
          Info: unmount took 3.20372509956 s
          Info: mount took 5.12375402451 s
        Test: test_fs_contents: Pass
          Info: File /Volumes/DAPLINK 1/MBED.HTM valid
          Info: File /Volumes/DAPLINK 1/DETAILS.TXT valid
          Info: Skipping non file item /Volumes/DAPLINK 1/.fseventsd
          Test: test_details_txt: Pass
            Test: parse_kvp_file: Pass
        Test: test_details_txt: Pass
          Test: parse_kvp_file: Pass
        Info: Expected CRC: 0xb73581be, actual crc: 0xb73581be
        Info: Data matches
      Test: Extra Files: Failure
        Info: Loading took 0.000211954116821s
        Info: Programming rate 149768263.415B/s
        Info: MSD transfer rate 149768263.415B/s
        Test: wait_for_remount: Failure
          Info: unmount took 0.220371961594 s
          Info: mount took 4.80175900459 s
          Failure: Expected remount count of 7 got 0

http://aus-raas-linux-00:8080/view/DAPLink/job/daplink_test_master/34/hosts=mac/artifact/test_results/k20dx_frdmk64f_if FRDM-K64F.txt

Test configuration: APP=k20dx_frdmk64f_if BL=k20dx_bl Board=FRDM-K64F Target=FRDM-K64F
Board: Name=FRDM-K64F Unique ID=0240000032044e4500397009997b00556781000097969900
Application: Name=k20dx_frdmk64f_if
Bootloader: Name=k20dx_bl
Target: Name=FRDM-K64F

Test: k20dx_frdmk64f_if FRDM-K64F: Failure
(...)


Prerequisites

[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

[X] Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 100 stars and/or 50 forks)
[X] English interface (or at least English documentation)
[X] Latest stable version
[X] Full version (i.e. not a trial version)
[X] Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)

Name
PicView
Description
Fast, free and customizable image viewer for Windows 10 and 11.
Homepage
https://picview.org/
Download Link(s)
https://github.com/Ruben2776/PicView/releases/download/2.2.7/PicView-v.2.2.7-win-x64.zip https://github.com/Ruben2776/PicView/releases/download/2.2.7/PicView-v.2.2.7-win-arm64.zip
Some Indication of Popularity/Repute
PicView as of writing has more than 900 stars on GitHub and has several download mirrors such as
FossHub
MajorGeeks
SourceForge
uptodown
The package links the portable version

Closed by #13389.


Mod: hbm nuclear tech

Works somewhat, but a significant number of blocks look strange, like the large poles and the tar sand block

HBMs NTM is one of the mods I really want to support (as it's often referred to as one of the big 1.7.10 mods) but have near zero personal experience with. I did a quick sweep and fixed most blatant problematic worldgen, but I'm aware there are still problems. I saw the antennas, but didn't bother with them as they were "just" invisible and not black holes or such. Did not see the tar sand block, do you know the block ID (ie hbm:tile.sand_tar or something)? I'm also aware of the duds (the unexploded bombs), but they are rendered outside of their blockspace, which GWM can't yet support.
At the moment, I still have a bunch of stuff to do to fix compatibility with the upcoming GTNH 2.6.0 release, but I could perhaps look into some improvements soon-ish. If you (or someone else who cares about this mod) could make a creative superflat world and try to slap down examples of stuff that doesn't work and then share that, that'd be immensely helpful. It's hard for me to fix problems I don't really know about. :)

HBMs NTM is one of the mods I really want to support (as it's often referred to as one of the big 1.7.10 mods) but have near zero personal experience with. I did a quick sweep and fixed most blatant problematic worldgen, but I'm aware there are still problems. I saw the antennas, but didn't bother with them as they were "just" invisible and not black holes or such. Did not see the tar sand block, do you know the block ID (ie hbm:tile.sand_tar or something)? I'm also aware of the duds (the unexploded bombs), but they are rendered outside of their blockspace, which GWM can't yet support.
At the moment, I still have a bunch of stuff to do to fix compatibility with the upcoming GTNH 2.6.0 release, but I could perhaps look into some improvements soon-ish. If you (or someone else who cares about this mod) could make a creative superflat world and try to slap down examples of stuff that doesn't work and then share that, that'd be immensely helpful. It's hard for me to fix problems I don't really know about. :)

hbm:tile.ore_oil_sand

this should show most issues, these are a few multiblocks(like the coker unit) and the substation + large pylons


memory leak

I tried to open picture with 10Mb size around 4K resolution and it took 1GB  in RAM which is Huge.

 I tried opening a 10Mb image myself and it used 228Mb of RAM. Did you maybe open a folder with a lot of images and switched between them? This would probably use more memory. Maybe you could try opening a few other images of about the same size and see if they're also using a lot of memory.

I often load files > 10mb  < 20mb  Cannon 5D mkII. Some folders have over 2000 images.
If I skip between large images my memory also goes to +- 1Gb memory.
I am currently only using Fyne for desktop. Loading large images is slow.
I can load >12 images >12mb each, resize them and display them as thumbnails and this takes about 300mb memory. ie: I load the images and resize to 300 LanczosResampling and then display.
So if you need to keep the memory low and resizing is ok maybe that will help?
If you could tell me what your use case is I could look at other options.

On 2021 May13, at 14:39, Palexer @.***> wrote:
Because Go is a garbage collected language, I can't really improve memory management. I tried opening a 10Mb image myself and it used 228Mb of RAM. Did you maybe open a folder with a lot of images and switched between them? This would probably use more memory. Maybe you could try opening a few other images of about the same size and see if they're also using a lot of memory.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/Palexer/image-viewer/issues/10#issuecomment-840528038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6QUM6IJYFQ2GCERMAJJGDTNPB7JANCNFSM44VWDLDA.


Features/update blacksmith

Update blacksmith + uncommited typing fix

Codecov Report

Merging #7 (8f140e2) into main (e613b2e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          243       244    +1
=========================================
+ Hits           243       244    +1

Impacted Files
Coverage Δ

src/pyramid_blacksmith/binding.py
100.00% <100.00%> (ø)

src/pyramid_blacksmith/middleware.py
100.00% <100.00%> (ø)

src/pyramid_blacksmith/utils.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


How long is too long?

How long did you leave the uninstalling window going for?
Specifically this: https://www.dropbox.com/s/co0lh5jpdjq7ost/Screenshot%202021-02-28%20at%2020.01.48.png?
It says if this process takes too long restart Mac, but how long is too long? In terms of time is that 5 mins, 10 mins, 1 hour? etc...

I tried for 20 mins or so, with no luck of it uninstalling still but if you see: https://github.com/bitgapp/eqMac/issues/462 I solved it here. This can be closed as well as that other issue.


Request using stream hangs for some reason...

Here is the error I'm getting. It may be I'm just using stream wrong.
gulp-0<PHONE_NUMBER>900 - Origin: Worker (PID 29984)
gulp-0    [Error] Error: socket hang up
gulp-0   at createHangUpError (_http_client.js:250:15)
gulp-0   at Socket.socketOnEnd (_http_client.js:342:23)
gulp-0   at emitNone (events.js:85:20)
gulp-0   at Socket.emit (events.js:179:7)
gulp-0   at endReadableNT (_stream_readable.js:913:12)
gulp-0   at _combinedTickCallback (internal/process/next_tick.js:74:11)
gulp-0   at process._tickDomainCallback (internal/process/next_tick.js:122:9)
gulp-0<PHONE_NUMBER>908 - Worker 2 exited - Exit code: 1
gulp-0    >> Worker PID: 431
gulp-0<PHONE_NUMBER>711 - Worker 2 was respawned

Here is the stream
var stream = fs.createReadStream(fullFilePath)
    .on('error',function(err) {
        console.log('Unable to post file to mysql server... ERROR: ',err)
    })
    .on('end',function() {
        setTimeout(function(){
            insertData()
        },2000)
    })
    .pipe(
        request.post('http://'+process.env.DB_HOST+':8080/mysql/carrier_confirmation-'+req.params.order_id+'.pdf')
    )

I am facing the same issue. Gulp worked flawlessly up until yesterday when I say this for the first time. Strange thing is I havent touched my gulpfile since I wrote it a 2 weeks ago. Here is the error:

Error: socket hang up
at createHangUpError (_http_client.js:250:15)
at Socket.socketOnEnd (_http_client.js:342:23)
at emitNone (events.js:85:20)
at Socket.emit (events.js:179:7)
at endReadableNT (_stream_readable.js:913:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

However, I am not using streams. Which leads me to believe this issue is not gulp related.

The socket may hang up for many reasons. Like for example when the server terminates the connection unexpectedly.

I was having a similar issue. For my case, the cause was on the server side. express 4 stopped supporting req.on('close'..) event. I couldn't use 'close' either because it get fired before my streaming actually ends.. I had to use 'close' event from the pipe() which finally worked. FYI


iOS setClickable delay

I am testing this plugin on real iOS device (I added platform<EMAIL_ADDRESS>so the plugin will be compatible). The problem I have is that when i call setClickable(false) on the map I have to wait around 2 seconds for  my UI to become responsive (I am using a sidebar). On android on the other hand it works perfectly.
The idea is when someone opens the sidebar I am setting the menu to setClickable false, and when they close it i set it to true so the map will be alive. How can I improve this delay so on iOS I will be able to get the same results as on Android ?
Thanks in advance,
I really need to find some solution for this

Actually there should be no delay, but you could try map.setWatchDogTimer(1) before changing the setClickable and then, map.setWatchDogTimer(false) when you're done.

Should I set map.setWatchDogTimer(1) before I am setting setClickable to true or to false ?
and map.setWatchDogTimer(false) when I change to the opposite ? or just do this before and after I use setClickable at all ? I tried setting map.setWatchDogTimer(1) before setClickable to true, and map.setWatchDogTimer(false) before setClickable(false) but I no changes, the delay is still the same :(

Should I set map.setWatchDogTimer(1) before I am setting setClickable to true or to false ?
yes
and map.setWatchDogTimer(false) when I change to the opposite
no, just set it to false, after you changed setClickable() (maybe put in some small delay, like 100ms)

When you have a look here:
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/src/ios/GoogleMaps/GoogleMaps.m#L726
you will see, that there is really no delay or any async task.
Same for the JS-Call
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/www/googlemaps-cdv-plugin.js#L598

I just checked function inside of my app and my testapp - no delay at all. It works just as soon as I trigger setClickable true/false. Without changing the watchDog

Ye it seems that Ionic 2 has some problem on iOS devices and it delays. I removed the map completely and the delay is still there so it has nothing to do with the map sorry.


Moving (rolling) average for certain time window in line chart

The example here fl_chart/example/lib/line_chart/samples/line_chart_sample2.dart does indicate the use of aggrevated (and averaged) data. However, it appears this is using dummy data only.
It would be fantastic if you added another option for creating line charts for showing the moving average of the datapoints within a given time window (e.g. rolling average for a window of 10 data points).

upon further thought, this should be done beforehand (data preprocessing) rather than as an option for the line chart.. issue closed

upon further thought, this should be done beforehand (data preprocessing) rather than as an option for the line chart.. issue closed


cannot create directory '/usr/local/airflow/.local': Permission denied

What is your question?
When we try to install airflow using helm, pods are going into crashloopbackoff. After checking logs of scheduler we found below error:
Error: cannot create directory '/usr/local/airflow/.local': Permission denied
We have given -R 777 permission to /usr/local/airflow directory in aws efs and same permission are also given in the code.
Still we are getting Permission denied.
Kubectl logs attached herewith for more details: -
kubectl logs airflow-scheduler-d66f88c8f-kh74twaiting 10s...
executing initdb
Unable to load the config, contains a configuration error.
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/config.py", line 563, in configure
handler = self.configure_handler(handlers[name])
File "/usr/lib/python3.7/logging/config.py", line 736, in configure_handler
result = factory(**kwargs)
File "/usr/local/lib/python3.7/dist-packages/airflow/utils/log/file_processor_handler.py", line 50, in init
os.makedirs(self._get_log_directory())
File "/usr/lib/python3.7/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.7/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/airflow/logs'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 21, in
from airflow import configuration
File "/usr/local/lib/python3.7/dist-packages/airflow/init.py", line 44, in
settings.initialize()
File "/usr/local/lib/python3.7/dist-packages/airflow/settings.py", line 335, in initialize
LOGGING_CLASS_PATH = configure_logging()
File "/usr/local/lib/python3.7/dist-packages/airflow/logging_config.py", line 68, in configure_logging
raise e
File "/usr/local/lib/python3.7/dist-packages/airflow/logging_config.py", line 63, in configure_logging
dictConfig(logging_config)
File "/usr/lib/python3.7/logging/config.py", line 800, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python3.7/logging/config.py", line 571, in configure
'%r' % name) from e
ValueError: Unable to configure handler 'processor'
Where do we have to make changes, so that issue can be rectified?

@sandipamte can you please try with version 8.0.0 of the chart?

@sandipamte any updates?

Still we are getting same error as PermissionError: [Errno 13] Permission denied: '/usr/local/airflow/logs'.
Please let me know any addition information is required form my side.


First iteration of the frontend

This is the first iteration of the frontend. The code hasn't been refactored, so some things are not pretty. The goal right now is to make sure it works and ship it, then iterate on making it better.
Portfolio and Token Transfer

Features:

Balances (native, supported ERC-20, ZRC-20, WZETA, BTC) across all connected chains
Cross-chain fees are displayed (where applicable)
Set custom destination address (where applicable)
Quoter for cross-chain swaps
Multi-functional swap component that supports token transfers and cross-chain swaps:

[x] crossChainZeta
[x] depositZRC20
[x] depositBTC
[x] transferNativeEVM
[x] withdrawBTC
[x] transferERC20EVM
[x] wrapZeta
[x] unwrapZeta
[x] crossChainSwap
[x] crossChainSwapTransfer
[x] crossChainSwapBTC
[x] crossChainSwapBTCTransfer
[x] withdrawZRC20
[x] transferBTC
[ ] singleChainSwap

Cross-Chain Messaging Example

Cross-Chain Transaction Tracking

@SocketSecurity ignore<EMAIL_ADDRESS>

If you check the network tab, there are a lot of unneeded calls to the nodes:

I'm not sure about our agreement with BlockPi but making so many calls can get really expensive.
Since most of them are eth_chainId calls, you can get a big improvement if you use Ethers StaticJsonRpcProvider.

Do we want to put guardrails in place or will that be on the user? (e.g.: preventing transfers of the same asset in the same network.)

It's showing NaN on the fee, probably because convertGasToZeta is throwing a 500 error?

Getting the same on BSC (convertGasToZeta doesn't throw on BSC).

I don't know if RPCs are broken or what's happening, but I also can't send a cross-chain message:

I'm not sure about our agreement with BlockPi but making so many calls can get really expensive.
Since most of them are eth_chainId calls, you can get a big improvement if you use Ethers StaticJsonRpcProvider.

@lucas-janon thanks for the suggestion! I've switched to static https://github.com/zeta-chain/toolkit/pull/79/commits/408e47e6125bd0156537d9da8023045fd6bdebc4 and this reduced the number of requests by 30%. Nice!

Do we want to put guardrails in place or will that be on the user? (e.g.: preventing transfers of the same asset in the same network.)

@lucas-janon This is a feature, not a bug. The goal of this component is to allow user all possible interactions with supported tokens and a simple single chain transfer is one of them. You can change the recipient address, so it's a perfectly valid interaction, I think.

I don't know if RPCs are broken or what's happening, but I also can't send a cross-chain message:

@lucas-janon this should've been fixed in https://github.com/zeta-chain/example-frontend/pull/2/commits/e4675b8fea2ac3d45e164f731d011fe3a0aa7648. The problem was with CCM fees, you needed to know the amount of native gas tokens you need to provide to cover CCM fees denominated in ZETA. I've updated the component to fetch CCM fees and calculate the native gas tokens that you need to cover the fee. It's using Uniswap v2 on Goerli and BSC and v3 on Mumbai.
Right now, you can't send messages from BSC. @andresaiello is aware of this and we're looking into this. Since we can't send messages via the CLI or explorers, the problem is not related to this frontend.

Do we want to put guardrails in place or will that be on the user? (e.g.: preventing transfers of the same asset in the same network.)

@lucas-janon should be fixed in https://github.com/zeta-chain/example-frontend/pull/2/commits/cab0a50de1837e993531ca6bbf4e394926483812

This component is still not feature-complete, though. For example, you can't swap WZETA from a connected chain to WZETA on ZetaChain. The connector automatically unwraps WZETA on ZetaChain (which is a good thing), so this will be handled on the frontend by either removing WZETA as a destination token or showing an alert.

Added more states for the send button.

@lucas-janon please, review again.

Added debounce, reducing the number of API calls to one-third.

Added the WIP pools page. If there is something wrong with it, I can just disable it for now, not a big deal.

Disabled pools for now as they're WIP.

https://github.com/zeta-chain/example-frontend/assets/7400784/79beaff8-3e4d-4160-bd8c-908a127c3a94
There's kind of a race condition when you change network, changing network seems to also trigger the swap, and sometimes (you can see it on the last try) the swap goes first and it asks you for allowance before changing network (or it asks you to swap if you already gave allowance).

Am I supposed to set the fee myself?

Not working for bsc, could be the RPC:

Navigation detail: I'd put the cross-chain messaging button in the header instead of below "portfolio", so it's clearer that it's another page.

There's kind of a race condition when you change network, changing network seems to also trigger the swap, and sometimes (you can see it on the last try) the swap goes first and it asks you for allowance before changing network (or it asks you to swap if you already gave allowance).

Good catch! Should be fixed in 7bbcd8b

Am I supposed to set the fee myself?

The fee is calculated automatically and the field gets pre-filled, but you may set in manually (as a fallback if the calculation for some reason wasn't accurate). If the fee wasn't calculated when you checked it was because the RPC was very slow.

I'll probably revamp the messaging form, but I want to ship something first.

Added depositing supported ERC-20 tokens (currently, only USDC) through the custody contract to ZetaChain as ZRC-20.


Split CLI from index.js

When processing through Webpack, can get the following error:
ERROR in ../~/wtfnode/index.js
Module parse failed: /wtfnode/index.js Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
|
| 'use strict';

Would be good to split the CLI from the index.js code.

I'm not sure you're doing something that makes sense. Why are you bundling wtfnode at all?

Running tests on a webpack package. The process may not make sense, and there's likely a better way around it. Thought I'd make this issue while I'm doing some more research into it.

I think this is a leftover from when I split out the proxy runner anyway, so I have no objection to removing it. There's a good chance it won't work well or correctly at all in this environment, however. Recommend cloning the repo, making the change, and using npm link to get unblocked; I won't be able to update right away

Thanks a lot, @myndzi. Really appreciate your time here.

0.5.4 is published, see if it fixes your problem?


t.resizeWindow() somehow blows away prior set .requestHooks()

I had tests that needed to resize the window, and then make sure certain RequestLogger() calls were made.
Without calling await t.resizeWindow() my .requestHooks(logger) were working.
Calling t.resizeWindow() somehow meant that my requestHooks() never detected any more; logger.requests.length never updated.

Hi @a-rcrawford,
I could not reproduce this on my side. Could you show your full test code and, if it's possible, a public URL to the page you are testing?

I've found a way to work around the problem, and I simply don't have time to go through the several steps to show you that this is indeed a problem.
Perhaps someone with more time will report a similar issue.


Transactions getting rejected due to "UTXO does not exist"

Transactions on the beta network will occasionally be rejected with the following reason "UTXO does not exist".
One possible cause could be that resources_to_spend API is returning coins that have already been included in other transactions they've submitted (due to the delay between submitting a transaction and marking the inputs as spent).
If the cause is confirmed to be the above, we can consider the following solution suggested by @Voxelot:
The SDK should maintain a cache of recently used UTXOs, which are to be excluded calling resources_to_spend. When a transaction is confirmed or rejected, these UTXOs can be removed from the cache. This may require users to wait for their change outputs to become available before making subsequent transactions, but the process can be optimized by spending the change outputs of pending transactions in-flight. The SDK can predict the change outputs of previously submitted transactions during dry-run, which can aid in selecting pending outputs.

Yes, please fix this, I've been running into the same issue I am manually wrapping my calls with a
try {}
catch { try_again }
which is far from ideal

Resolved.


is SnmpEngine thread safe?

I write api use a global SnmpEngine object,but others call my api in multi-thread,so I want to know is SnmpEngine thread safety

You should not share SnmpEngineId object among multiple threads. You should always have each SnmpEngineId instance used within one thread. However you can have multiple SnmpEngineId objects in one thread.


Issue-20: Start progress circle at the top

Added WebkitTransform to the Style of the Circular Progress Material UI object

Thanks @HaganMcPhail. It looks awesome!


feat(Switch): support onClick handler on component

Closes IBM/carbon-components-react#1264
Support onClick handler on the Switch component
Changelog
New
Changed

events tool in DataTable moved to top level tools folder
DataTable now uses updated path to events
ContentSwitcher now composes event handlers for onClick

Removed

cc @lovemecomputer


Added Issue templates

Added issue templates.

Great work

Great work

@all-contributors please add @uttu2 for doc

@all-contributors please add @uttu2 for doc

@all-contributors please add @uttu2 for doc

@all-contributors please add @uttu2 for doc

@uttu2 You contributed as a part of JWoC right? Please respond on the discord channel or comment down your full name here.

Yes. Utkarsh Tyagi
On Thu, 25 Feb, 2021, 11:41 am Pranav<EMAIL_ADDRESS>wrote:

@uttu2 https://github.com/uttu2 You contributed as a part of JWoC
right? Please respond on the discord channel or comment down your full name
here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ALPHAVIO/BlogSite/pull/45#issuecomment-785642496, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALNSNNSLEGXXNCC5O7NW3Z3TAXSXPANCNFSM4WOZQTVQ
.


[CP-stable] when setting up the log reader for a device during flutter run, discard any RPCError thrown due to the device being disconnected

Fixes https://github.com/flutter/flutter/issues/154903
This PR contains some refactoring. To make the actual change easier to figure out, I've tried to separate parts of the change into multiple commits for easier reviewing.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Looking at this 2 weeks later. Honestly, I don't remember why I closed this (and I obviously failed to write down my reasoning—maybe I was confused about when the next stable was planned for cut & release).

Looking at this 2 weeks later. Honestly, I don't remember why I closed this (and I obviously failed to write down my reasoning—maybe I was confused about when the next stable was planned for cut & release).

Ah, I remember why now: https://github.com/flutter/flutter/pull/155049#issuecomment-2346767413


desktop (for mac) remove "button" styling for older release downloads

Only show the latest release download links as a CTA button, and older
releases as regular links.

Removed the UTM codes from download links for older releases


Remove grain and swift templates

These templates are no longer usable due to the deprecation of running uncomponentized modules and issues with componentizing: https://github.com/fermyon/spin/issues/2774

There are some tests in the templates crate that use the installed templates and make assertions by counting.  The const for the expected total count is called TPLS_IN_THIS. https://github.com/fermyon/spin/blob/09de9c38f6c9ca280020cd9afd5eb655651b8766/crates/templates/src/manager.rs#L569