how work with child dom for example image gallery thumbnail

This is:

how work with child dom for example image gallery thumbnail?

Question
Idea

Specifications

AOS version:
OS:
Browser:

Expected Behavior

Actual Behavior

Steps to Reproduce the Problem

Detailed Description

Possible Solution

Could you clarify why you would do that?
Why not just add the data-aos attributes in that specific element?


slow processing of input events

I'm currently working on improving joystick handling, and noticed that going wild on the analog sticks dramatically reduces performance due to parsing a large number of input events.
On low end devices (2006 laptop and xperia z2) this can drop fps down to zero with even just a single gamepad.
In my code, I'm filtering out events below a user set threshold from the hardware stream. But still, having multiple devices sending out axis events can impact performance quite a bit.
According to callgrind most of the work comes from call_group() in SceneTree::input_event()

this was brought in recently, seems accumulation of input events must be
performed to improve performance
On Tue, Jun 30, 2015 at 11:58 AM, Hondres<EMAIL_ADDRESS>wrote:

I'm currently working on improving joystick handling, and noticed that
going wild on the analog sticks dramatically reduces performance due to
parsing a large number of input events.
On low end devices (2006 laptop and xperia z2) this can drop fps down to
zero with even just a single gamepad.
In my code, I'm filtering out events below a user set threshold from the
hardware stream. But still, having multiple devices sending out axis events
can impact performance quite a bit.
According to callgrind most of the work comes from call_group() in
SceneTree::input_event()
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/2219.

--
OkamStudio

Did the sitatuation change in the current master branch, or is it still the same?

More or less of duplicate of #2209.


Test fixes, error handling improvements, and linter fixes

This PR contains:

General linter warning (found with gometalinter) fixes
Test HTTP requests are now created correctly with the http package
More errors are checked and handled instead of panicing in a non-main package

Thank you for your contribution @Zacho2 !


[Service Bus] Perf tests should dynamically create queue

The Service Bus perf tests (both service-bus and rhea-promise) should be updated to dynamically create and delete the queue used for testing, similar to the functional tests (and using the same environment variables).
@HarshaNalluru
Related: https://github.com/Azure/azure-sdk-for-net/issues/5950

Closing this issue in favor of re-visiting the stress and perf tests for Service Bus in the coming months.
Now that we have the management features as part of @azure/service-bus it will be trivial to dynamically create the queue


DSFE 4 - Apply new auth to FE

After the completion of #824, the API changes have to be included to the FE.

[ ] Use the new routes
[ ] Handle new auth for BE and storage
[ ] Implement challenge-response for expired tokens

Implement the methods from lib http with the ones used in the connector.

[ ] Look for deliveryServiceToken imports and remove methods imported there with the new one from the DeliveryServiceConnector/BackenConnector
[ ] The BackendConnector is already completed, but the DeliveryServiceConnector might lack some methods from the old lib package.  Add those methods like the others
[ ] Migrate WS related files (Alex)

Estimation:  3 days


Display savegame path

Contains
Fix for #2566
How to test
1.Open Game
2. Go to Create/Load World screens
3.The Save Game Path is displayed

Can one of the admins please verify this patch?

I have made the required changes and integrated it with the translation system.

i have changed the UI and added the Save Game Path: label

Thanks for the contribution, merged! 🙂 Also added you to the game credits.


Create secret action is failing randomly upon re-running the workflow.

The create secret action is failing randomly upon re-running the workflow with error:
Error from server (AlreadyExists): secrets "bugbash1622dockerauth" already exists
Failed workflow link: https://github.com/anuragc617/acr-build-helloworld-node/runs/450381384#step:7:13

Closing stale issue. Feel free to reopen if it recurs.


Specify minimum compatible Python 3.5 in setup.py

Fixes: #47

Running this with Python 2 gives
termtosvg requires Python '>=3.5' but the running Python is 2.7.15


reset

Hi, I've noticed that your code runs reset () after each epoch, but this function is only for CEIL data, and there is no reset for real20. I'd like to ask a related question about this.
If I use all my data, just like real20, it has been synthesized in a fixed order, whether it is necessary to reset(), whether it is necessary or optional.
@Vandermode

Hi, sorry for the late reply. The reset flag is only used for synthetic data to select different sources of transmission and reflection layer, so you should ignore the reset flag when using real data


N/A in every cell in every row, with error codes this time

Same issue as before but I did the Ctrl Shift I like you asked and got this

The only difference I can find is that I just did a withdrawl of some bitcoin today, it was working fine before that. Not sure if that would make a difference or not.

Same as #9, the extension is working fine, but the browser is unable to connect to Poloniex in all channels. It's a server-side capacity issue, Poloniex is known to have scaling issues and spikes all round.


Update trial.json TSO ID for NPSP 3.171

Critical Changes
Changes
Issues Closed
Community Ideas Delivered
New Metadata
Deleted Metadata

Branch should've been named consistent with 3.171 but there should be no impact.

**lurch: attach W-039871

Tracking W-039871


Remove the gorilla/mux instrumentation

Follow up to #261
After release v0.3.0-alpha is made, the following need to be removed:

[ ] The pkg/instrumentors/bpf/github.com/gorilla/mux package
[ ] The test/e2e/gorillamux module
[ ] The inclusion of the instrumentation in the manager:
https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/e8143065033300c2b87d74a97b512a2b6e506df3/pkg/instrumentors/manager.go#L119
[ ] The kube test:
https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/e8143065033300c2b87d74a97b512a2b6e506df3/.github/workflows/kind.yml#L16
[ ] The make file references:

https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/e8143065033300c2b87d74a97b512a2b6e506df3/Makefile#L121
https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/e8143065033300c2b87d74a97b512a2b6e506df3/Makefile#L123

[ ] versions.yaml
https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/e8143065033300c2b87d74a97b512a2b6e506df3/versions.yaml#L23

Resolved by #303


[v4.0.0-beta.12] When platform hardware backButton subscribed, router.goBack should not be triggered

Feature Request
Ionic Info
Ionic Angular v4.0.0-beta.12
Describe the Feature Request
In my app, I've got many pages where the back action is overridden. For example, I've got a wizard build on top of ion-slides. There, when the user click "back", he/she don't necessarily want to go back in the navigation but rather want to go back the previous slide
In Ionic v3 registerBackButtonAction allowed me to override the hardware back button. When I was doing so, no extra back action where triggered
In Ionic v4 backButton allows me to override the hardware back button, but doing so, an extra back action is automatically triggered (see the @Listen('document:ionBackButton') in https://github.com/ionic-team/ionic/blob/7d50305b7f6c48392dd278b55824e4c712890214/core/src/components/router/router.tsx and win.document.dispatchEvent(ev); in https://github.com/ionic-team/ionic/blob/c49d896e085278a4ece521a22d983a4fa745adc2/core/src/utils/hardware-back-button.ts)
Summarized of the behavior:
Ionic v3 = Subscribe to back button = custom code/back is executed
Ionic v4 = Subscribe to back button = custom code/back is executed + general back executed too
Describe Preferred Solution
I see two solutions:

hardware-back-button.ts should not trigger anymore the event ionBackButton letting users implement their own navigation

a new feature or option should be implemented in order to specify, while subscribing to the hardware back button, that the automatic back navigation should not be triggered

Describe Alternatives
Don't know maybe there are other solutions workarounds? What I could say is that it's a core need for my app in order to be able to unleash my app on Android
Related Code
Ionic v3
     this.unregisterCustomBackActionFunction = this.platform.registerBackButtonAction(() => {
            if (this.something) {
                this.slider.slidePrev();
            } else {
                this.navController.pop();
            }
        });

Ionic v4
  this.customBackActionSubscription = this.platform.backButton.subscribe(async ($event) => {
          if (this.something) {
             await this.slider.slidePrev();
         else {
             await this.navCtrl.navigateBack('/somewhere');
    });

Additional Context
There is a discussion started on the Ionic Forum: https://forum.ionicframework.com/t/ionic-4-prevent-backbutton-from-closing-page
A bit ugly workaround
I need this option because my page contains a slider and I want to navigate back with the hardware back button to the previous slide. The trick which seems to work, is to add state in the history, therefore, the automatic back action (see goBack or the ion-router https://github.com/ionic-team/ionic/blob/7d50305b7f6c48392dd278b55824e4c712890214/core/src/components/router/router.tsx) will go back in the navigation history by first popping the states I added
Like
<ion-slides (ionSlideNextEnd)="pushHistoryState()">

async pushHistoryState() {
        const sliderIndex: number = await this.slider.getActiveIndex();
        history.pushState({newAd: sliderIndex}, document.title);
    }
}

also of course you should do the same for the action which would slide to previous slide by poping the state
history.back(1);

Update
Just noticed another use case where having an automatic navigation is not well suited: in case for example you would close a modal with in any case a value. With an automatic navigation executed with the hardware back button, the modal just gonna always be dismissed with no values. So far I noticed 8 modals in my app which are impacted by this

Personally i wish we could override the back button per button since we already have to put them manually in there. Adding [backAction]="customFunction()" or something similar would be great. This function should also be triggered when using the hardware button (or even an option to disable the hardware button but this probably isn't a great idea ?)

awesome, thx @manucorporat ❤

With this fix, Whats the best practise to go about implementing custom back button functionality now ?

@RHinderiks here you go for v4-beta.12, credit @manucorporat too:
@HostListener('document:ionBackButton', ['$event'])
private overrideHardwareBackAction($event: any) {
   // Do what you want
}

@RHinderiks I've updated my previous answer, furthermore to the listener, the $event.detail.register is important

There is a way to register a custom function to hardware back button and stop the default event / propagation?
I have the following scenario, i have a modal that i need to call a function and dismiss with some data, when i touch the hardware back button, the function, obviously, are not being called. I need to call this function but i need also to prevent the default event.

private handleHardwareBackButton(): void {
    const sub = this.platform.backButton.subscribe((event: Event) => {
      event.stopImmediatePropagation();
      event.stopPropagation();
      event.preventDefault();
      this.dismiss();
    });
    this.subscriptions.push(sub);
  }

  ngOnInit() {
    this.handleHardwareBackButton();
  }

  ngOnDestroy() {
    unsubscribeSubscriptions(this.subscriptions);
  }

The function is called, but the event is not stopped.

@peterpeterparker Thanks, the following code works for me.
 private handleHardwareBackButton(): void {
    const sub = this.platform.backButton.subscribeWithPriority(9999, () => {
      console.log('called');
      this.dismiss();
    });
    this.subscriptions.push(sub);
  }

  ngOnInit() {
    this.getStates(this.payload);
    this.handleHardwareBackButton();
  }

  ngOnDestroy() {
    unsubscribeSubscriptions(this.subscriptions);
  }

I used 9999 as the priority because it doesn't work with 1. I don't know witch is the highest priority inside the framework.

@RHinderiks here you go for v4-beta.12, credit @manucorporat too:
@HostListener('document:ionBackButton', ['$event'])
private overrideHardwareBackAction($event: any) {
    $event.detail.register(100, async () => {
          // Do what you want
    });
}

It's useful in the App，but what should I use on the web page？

Is there also a way to override the function on a regular ion-back-button inside a ion-toolbar ? Right now you can give it a href but i would like to show a confirmation dialog first


WIP: Updated support for radare2

This branch is rebased on top of the current master, but picks the code from https://github.com/worawit/blutter/pull/67, as well as the fixes introduced by @cryptax in https://github.com/worawit/blutter/pull/88 and extends the logic to also flag all the constant pool data, there are few more fixes to be done in r2 to get all the string references to work without depending on the blutter analysis.
Note that this PR also includes the build fix from https://github.com/worawit/blutter/pull/103 otherwise it was failing to compile.
I have also patches for the Dockerfile that i submitted half a year ago but as long as nothing was merged, i'm quite tempted to just contribute to the @AbhiTheModder fork instead.

before merging i want to cleanup some code but having a feedback on this will would be good

@trufae thank you for adding the flag all the constant pool data it's a great help, @worawit please consider reviewing it once

hey @worawit can you merge this pr? lots of people use Radare2, not IDA Pro. Including me and all termux users.
Thanks.

try again, should be good now

When I got this message:

I checked the commit message (to use latest r2 from git) and commit in r2 repo for this and fetched it:

But now too many Errors of invalid number (#) 😬 during import while at the same time using it manually doesn't gives any errors inside r2shell

You are not using latest commit rebuild again pls

You are not using latest commit rebuild again pls

Ah, yes, thank you for pointing that out. I missed it, but after testing it now, it works perfectly. Awesome, thank you!

Should be good to merge now


I am facing compilation error please help me out.

C:\Users\hrita\OneDrive\Desktop\3rd year 5th SEMISTER ALL BOOKS\Arduino Project II\ESP32_Cam_based_Motion_Triggered_Image_Capturing_Device\ESP32_Cam_based_Motion_Triggered_Image_Capturing_Device.ino:7:10: fatal error: ESP32_MailClient.h: No such file or directory
7 | #include "ESP32_MailClient.h"
|          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Alternatives for ESP32_MailClient.h: []
ResolveLibrary(ESP32_MailClient.h)
-> candidates: []
exit status 1
Compilation error: ESP32_MailClient.h: No such file or directory

That library is deprecatedvand end of life.


Problem during building a rustc Project

🐛 Bug description
I followed many example in order to use WASM-binden to  glue my rust codes to html pages using a javascript code, I followed all the guideline.
but during building the project with simple command
wasm-pack build --target no-modules
I receive the following strange errors
error[E0432]: unresolved import crate::sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:5:12
|
5 | use crate::sys::{
|            ^^^ could not find sys in the crate root
error[E0432]: unresolved imports crate::sys, crate::sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:21:12
|
21 | use crate::sys::{self, c_int, getsockopt, setsockopt, Bool};
|            ^^^   ^^^^ no sys in the root
|            |
|            could not find sys in the crate root
error[E0432]: unresolved import sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:129:5
|
129 | use sys::c_int;
|     ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: could not find sys in the crate root
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:169:29
|
169 |             let ip = crate::sys::from_in_addr(addr.sin_addr);
|                             ^^^ could not find sys in the crate root
error[E0433]: failed to resolve: could not find sys in the crate root
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:176:29
|
176 |             let ip = crate::sys::from_in6_addr(addr.sin6_addr);
|                             ^^^ could not find sys in the crate root
error[E0433]: failed to resolve: could not find sys in the crate root
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:227:30
|
227 |             sin_addr: crate::sys::to_in_addr(&addr.ip()),
|                              ^^^ could not find sys in the crate root
error[E0433]: failed to resolve: could not find sys in the crate root
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:262:31
|
262 |             sin6_addr: crate::sys::to_in6_addr(addr.ip()),
|                               ^^^ could not find sys in the crate root
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:149:37
|
149 |     pub const IPV4: Domain = Domain(sys::AF_INET);
|                                     ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:152:37
|
152 |     pub const IPV6: Domain = Domain(sys::AF_INET6);
|                                     ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:191:35
|
191 |     pub const STREAM: Type = Type(sys::SOCK_STREAM);
|                                   ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:196:34
|
196 |     pub const DGRAM: Type = Type(sys::SOCK_DGRAM);
|                                  ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:233:43
|
233 |     pub const ICMPV4: Protocol = Protocol(sys::IPPROTO_ICMP);
|                                           ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:236:43
|
236 |     pub const ICMPV6: Protocol = Protocol(sys::IPPROTO_ICMPV6);
|                                           ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:239:40
|
239 |     pub const TCP: Protocol = Protocol(sys::IPPROTO_TCP);
|                                        ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:242:40
|
242 |     pub const UDP: Protocol = Protocol(sys::IPPROTO_UDP);
|                                        ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:275:18
|
275 |         self.0 & sys::MSG_TRUNC != 0
|                  ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:283:33
|
283 | pub struct MaybeUninitSlice<'a>(sys::MaybeUninitSlice<'a>);
|                                 ^^^ use of undeclared crate or module sys
error[E0433]: failed to resolve: use of undeclared crate or module sys
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:302:31
|
302 |         MaybeUninitSlice(sys::MaybeUninitSlice::new(buf))
|                               ^^^^^^^^^^^^^^^^ not found in sys
|
help: consider importing this struct
|
62  | use crate::socket::MaybeUninitSlice;
|
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1659:23
|
1659 | from!(net::TcpStream, Socket);
|                       ^^^^^^ expected struct Socket, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1660:25
|
1660 | from!(net::TcpListener, Socket);
|                         ^^^^^^ expected struct Socket, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1661:23
|
1661 | from!(net::UdpSocket, Socket);
|                       ^^^^^^ expected struct Socket, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1662:15
|
1662 | from!(Socket, net::TcpStream);
|               ^^^^^^^^^^^^^^ expected struct TcpStream, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1663:15
|
1663 | from!(Socket, net::TcpListener);
|               ^^^^^^^^^^^^^^^^ expected struct TcpListener, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0308]: mismatched types
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/socket.rs:1664:15
|
1664 | from!(Socket, net::UdpSocket);
|               ^^^^^^^^^^^^^^ expected struct UdpSocket, found ()
|
::: xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/lib.rs:104:16
|
104  |             fn from(socket: $from) -> $for {
|                ---- implicitly returns () as its body has no tail or return expression
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> xxx.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.2/src/sockaddr.rs:178:33
|
178 |             Some(SocketAddr::V6(SocketAddrV6::new(
|                                 ^^^^^^^^^^^^^^^^^ expected 4 arguments
179 |                 ip,
|                 --
180 |                 port,
|                 ----
181 |                 addr.sin6_flowinfo,
|                 ------------------ supplied 3 arguments
|
note: associated function defined here
--> xxx.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/net/addr.rs:371:12
|
371 |     pub fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV6 {
|            ^^^
Some errors have detailed explanations: E0061, E0308, E0432, E0433.
For more information about an error, try rustc --explain E0061.
error: could not compile socket2 due to 25 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute cargo build: exited with exit status: 101
full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
👟 Steps to reproduce
1- I created a rustc project via eclipse
2- I created a database project and tested it by calling the lib in main.rs
3- I compiled the project and received no error in eclipse and I had the files rlib and so
4- in command line I went to the same workspace of the project
project name/
5- I ran the command
wasm-pack build --target no-modules
6- it creates a folder in target of my project but then not complete the task and stop with error compiling as stated above
🌍 Your environment
I have fedora versio 32
wasm-pack version:wasm-pack 0.10.1
rustc version:rustc 1.55.0 (c8dfcfe04 2021-09-06)
my cargo.toml file information
[dependencies]
mysql = "*"
diesel = { version = "1.4.0", features = ["mysql"] }
dotenv = "0.10"
#to call from html form the rustc codes
#wasm-bindgen = "0.2"
wasm-bindgen = "0.2.70"
#targetting javascript in WASM
getrandom = { version = "0.2", features = ["js"] }
[lib]
#create static or dynamic WASM library
crate-type = ["cdylib","rlib"]
the cdylib can cause error for extern crate
#path = "src/lib.rs"
[dependencies.web-sys]
version = "0.3.4"
features = [
'Document',
'Element',
'HtmlElement',
'Node',
'Window',
]

I had a similar issue. This link made me realize my problem.
https://users.rust-lang.org/t/webassembly-with-rust-problem-compiling-wasm/29575


fix: add extension to the request

This address the issue when using CRA 5.x or other Webpack module resolution
See: https://nodejs.org/api/esm.html#esm_mandatory_file_extensions
Compiled with problems:

ERROR in<EMAIL_ADDRESS>66:0-68

Module not found: Error: Can't resolve 'use-sync-external-store/shim' in '/xxx/node_modules/@slate-yjs/react/dist'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'use-sync-external-store/shim' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in<EMAIL_ADDRESS>67:0-94

Module not found: Error: Can't resolve 'use-sync-external-store/shim/with-selector' in '/xxx/node_modules/@slate-yjs/react/dist'
Did you mean 'with-selector.js'?
BREAKING CHANGE: The request 'use-sync-external-store/shim/with-selector' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

I've added the extension as required. I don't believe this would generate any backward compatibility issue but I'm can't guarantee it.

@BitPhinix I suspect the linter config would have to be updated to accept extensions on these imports


Data hydration caching

Doctrine's hydration becomes bottleneck when database returns lot of data. We're reluctant to enable query result cache, because our queries spit out results quick enough and we would have to manage cache invalidation.
Instead, I propose to implement caching in hydrateRowData() (or somewhere around this place). Just generate hash of the array returned from the database and use it as cache id. Then deserialize the data from the cache. Great thing about this approach is that as long as entity class has not been changed, we don't have to worry about cache invalidation. Correct me if I'm wrong.

Looks like you are talking about second level cache that already implemented

No, second level cache generates hash of input sql query. Cache I'm talking about generates hash of database output. It doesn't skip database call. Purpose of that is to speed up this process:

Interesting idea, hashing the SQL does mean if the data changes you are stale. Hashing the back from the database scalar only means the hydration process is out of date (which likely won't change without code change).
Im not sure how possible this is, but sounds like a good performance increase for those who do not want/cant cache the database query.

Ocramius Have already played around with some ideas for making hydration faster
https://ocramius.github.io/blog/doctrine-orm-optimization-hydration/
https://github.com/Ocramius/GeneratedHydrator

The fact that hydration is a bottleneck is a known fact. We cannot fix it now, but we are trying to come up with solutions for 3.x (or later, depending on what we will be able to do).
As @kimhemsoe said, research on this is already happening.
For 2.x, this is not going to change. You can use the hydration cache at your own risk though: https://github.com/doctrine/doctrine2/blob/31a0c02b066764ec7b55eedc5f3cab78235a4e4b/lib/Doctrine/ORM/AbstractQuery.php#L479-L519
Meanwhile, a glimpse of what is going to happen (hopefully):

come up with a "hydration DSL" which says how you get from record -> object
convert that "hydration DSL" into a closure
write a code inliner that can integrate the generated closure into callers
generate custom hydrators on a per-DQL or per-record-structure basis

Note that hydration will always remain an O(n) or greater operation: what we can do is just reduce the cost of every single operation.
Closing here. No resolution path until we figured out all the bits.


Bug/map identities put cert

PUT /certificate/{id} incorrectly doesn't map identities into aliases in the response. This fixes that. I've also bumped our node version to 20.x.x now that's LTS

Works on testing


English KJV Judges Chapter 5 has 32 verses instead of 31

In the English KJV bible, in JSON format (i.e., this file https://github.com/thiagobodruk/bible/blob/master/json/en_kjv.json), there is an extra verse at the end of Judges chapter 5.
The extra verse is "And the land had rest forty years."
I checked online in a couple of places, and it appears there should be 31 verses.  E.g., see
https://www.biblegateway.com/passage/?search=Judges+5&version=KJV

Revelation 22:18 😬

@artsandmetaphysics please, feel free to submit a fix.

@thiagobodruk Hello.  The fix is in this PR here already: https://github.com/thiagobodruk/bible/pull/10


As a Data/Web manager I want to ensure that data are stored and processed appropriately and that there is an appropriate privacy notice on the site ..so that I comply with GDPR

original id#68

Does the database have "personal data"?


Exclude Concierge from IOU flows (2nd attempt)

cc @Luke9389 @roryabraham
Details
This is a duplicate of https://github.com/Expensify/Expensify.cash/pull/2740 and I'm using _.contains() to avoid crashing the app if this.props.report.participant is undefined.
Fixed Issues
Fixes https://github.com/Expensify/Expensify.cash/issues/2698
Tests

Tested manually and made sure that users cannot initiate IOU request with Concierge.
Tested group creation and verified it's not crashing as described in https://github.com/Expensify/Expensify.cash/issues/2809

QA Steps
- Open 1:1 and group chat with Concierge
- Press `+` icon next to chat composer
- Observe that there is no `Request Money` or `Split Bill` option on menu

- Open 1:1 and group chat without Concierge
- Press `+` icon next to chat composer
- Observe that there is a `Request Money` or `Split Bill` option on menu

- Press big green `+` icon on the sidebar
- Select `Request Money` or `Split Bill`
- Enter a random amount and press `Next`
- Search Concierge
- Observe that Concierge doesn't appear among results

Q&A steps for group creation issue https://github.com/Expensify/Expensify.cash/issues/2809
* Launch the app and login
* Create a group with 2 or more users
* Focus on the input field to type

Tested On

[X] Web
[X] Mobile Web
[X] Desktop
[X] iOS
[X] Android

Screenshots
Web

Merging this. Thanks for the fix here @tugbadogan, and @thienlnam & @Luke9389 for the reviews.

🚀 Deployed to staging in version: 1.0.45-2🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production in version: 1.0.46-0🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Fix Go version

This should fix the golanci-lint failures.
From the npm semver specification the caret (^) allows changes that do not modify the left-most non-zero element in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above.
https://github.com/npm/node-semver#caret-ranges-123-025-004
That means specifying ^1.19 we were going to pick the latest Go 1.20 version. And it seems that golangci-lint has some issues with this version (https://github.com/golangci/golangci-lint/pull/3414).
Using the tilde (~) instead will gives us the latest patch without actually updating the minor (what we were supposed to have).

Codecov Report
Patch coverage has no change and project coverage change: -27.75 :warning:

Comparison is base (007abcb) 60.12% compared to head (061336f) 32.37%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2128       +/-   ##
===========================================
- Coverage   60.12%   32.37%   -27.75%
===========================================
  Files         181      181
  Lines       14603    14603
===========================================
- Hits         8780     4728     -4052
- Misses       4739     9208     +4469
+ Partials     1084      667      -417

Flag
Coverage Δ

acceptance-api
?

acceptance-apps
?

acceptance-cli
30.54% <ø> (-25.20%)
:arrow_down:

unittests
8.46% <ø> (ø)

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

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Failed websocket authentication crashes the whole process

Hello,
I would like to report small issue in your wonderful library. The issue is following - when you attempt to authenticate websocket with invalid credentials your library panics and causes crash of the whole application. Example:
[2020-04-10T16:10:12Z INFO  runner::bitmex] InfoMessage { info: "Welcome to the BitMEX Realtime API.", version: 2020-03-25T22:49:58Z, timestamp: 2020-04-10T16:10:12.328Z, docs: "https://www.bitmex.com/app/wsAPI", limit: Limit { remaining: 39 } }
[2020-04-10T16:10:12Z ERROR runner::bitmex] ws error: ErrorMessage { status: 401, error: "Invalid API Key.", request: Some(Authenticate("aaa",<PHONE_NUMBER>, "9a9cb91322df0a64c22ea9123949e320c62a55bd27a9b32e44f04adfaeaefa3e")), meta: Object({}) }
[2020-04-10T16:10:12Z DEBUG tungstenite::protocol] Received close frame: None
[2020-04-10T16:10:12Z DEBUG tungstenite::protocol] Replying to close with Frame { header: FrameHeader { is_final: true, rsv1: false, rsv2: false, rsv3: false, opcode: Control(Close), mask: None }, payload: [] }
thread 'main' panicked at 'internal error: entered unreachable code', /home/carloss/.cargo/registry/src/github.com-1ecc6299db9ec823/bitmex-0.2.2/src/websocket.rs:102:14

The issue is that you use unreachable!() macros in parse_message:
fn parse_message(msg: WSMessage) -> BitMEXWsMessage {
    match msg {
        WSMessage::Text(message) => match message.as_str() {
            "pong" => BitMEXWsMessage::Pong,
            others => match from_str(others) {
                Ok(r) => r,
                Err(_) => unreachable!("Received message from BitMEX: '{}'", others),
            },
        },
        _ => unreachable!(),
    }
}

I think this is a bad practice; library should not really crash the entire application due to unexpected response of remote service. It should just handle the issue gracefully without panicking. These macros should be used only where unreachable code is result of application malfunction.
Library version used: 0.2.2

Hi quantverse, I really appreciate your suggestion! I just did a push to the master branch, and you can check the fix here: https://github.com/dovahcrow/bitmex-rs/blob/5177ac0e2740a502ac3c685daf474731c984d103/src/websocket.rs#L100.
You can use the git version of the library for now and this fix will be included in the next release.

Great, thanks!


Simplify testing script

I have this block in test_heroku_deployment.sh:
# Heroku (and assume other platforms) needs a copy of requirements with
#   the same django-simple-deploy we're testing against.
#   Modify django-simple-deploy to match install_address.
#   This is important to verify, so we'll routinely include it in the test output.
#   This is only needed if we're testing against a GitHub repo.
#   Note: Pipenv and Poetry specify install address, so this modification is
#     not necessary for either of those approaches.
if [ "$target" = 'current_branch' ]; then
    if [ "$dep_man_approach" = 'req_txt' ]; then
        echo "\nOriginal requirements.txt; should see django-simple-deploy:"
        cat requirements.txt

        echo "  Modifying requirements.txt to require the current branch version on Heroku..."
        sed -i "" "s|django-simple-deploy|$install_address|" requirements.txt

        echo "\nModified requirements.txt; should see django-simple-deploy address you're trying to test:"
        cat requirements.txt
    fi
fi

I don't think this is necessary at all, because simple_deploy is never used on the deployed version. The testing script needs to install from the current branch, but the deployed project just needs to be able to install django-simple-deploy. It's in INSTALLED_APPS, so it needs to be present, but it's never called. So I believe this block can be entirely removed. I think this originally came about when I hadn't made a release at all yet.

[x] Remove this block from testing script.
[x] Might want a comment somewhere specifying that the version installed on the deployed project may differ from the version that's being tested.
[x] Figure out if this means we can test locally, rather than having to test against the latest push on the current branch.

Yes. There's no reason I can see at this point to install from GitHub; just install the local development version, and let the deployed version pull from pypi.

[ ] In tmp directory, install django-simple-deploy from local development project.

Installing locally for testing

There's no longer any reason to install from Github when testing. I did that initially because I had to install on Heroku before having a pypi release. I also was unfamiliar with using pip to install from a local directory.
But I think we can install from the current local project, regardless of whether changes have been committed or pushed, and test the local version of django-simple-deploy. This should significantly simplify the testing script.

Task list

[ ] Install from local project.

[x] Try with existing infrastructure.
[ ] Then move all logic about install_address to section where dsd is installed to tmp sample project.

[ ] Remove anything referencing branches.
[ ] Use # --- blah --- style comments to delineate sections of test script.
[ ] Update default target value from current_branch to development_version.
[ ] Run tests:

[ ] local req_txt
[ ] pypi req_txt
[ ] local pipenv
[ ] pypi pipenv
[ ] local poetry
[ ] pypi poetry

[ ] Update documentation in main testing script.
[ ] Update documentation in test_heroku_deployment.sh
[ ] Update documentation in testing readme; tests should be run from root project folder.
[ ] Make PR, and pull changes to local main.

This was a very good PR to close.


RRect is worthless

Features to consider adding to RRect:

[ ] static zero
[ ] left
[ ] top
[ ] right
[ ] bottom
[ ] xRadius
[ ] yRadius
[ ] width
[ ] height
[ ] shortestSide
[ ] outerRect (bounding box)
[ ] safeInnerRect (biggest rect entirely inscribed in rounded rect)
[ ] somethingSomethingRect (the rect you get if you only use the flat sides of the rounded rect)
[ ] size
[ ] isEmpty
[ ] isStadium (one or both sides has a radius half that side's dimension)
[ ] isCircle (width and height are the same, both radii are greater than half the width or height)
[ ] contains
[ ] center
[ ] inflate
[ ] deflate
[ ] lerp
[ ] operator ==, hashCode
[ ] toString

If I'm not mistaken, safeInnerRect is
   const double kCosPiOverFour = ...;
   Rect safeInnerRect() {
      return new Rect.fromTLBR(
        top + radiusY * kCosPiOverFour,
        left + radiusX * kCosPiOverFour,
        bottom - radiusY * kCosPiOverFour,
        right - radiusX * kCosPiOverFour
      );
   }

How is somethingSomethingRect different from outerRect?

Another way to describe it would be the rect formed from the centers of the ellipses that form the corners.

somethingSomethingRect could be "middleRect".

[ ] wideMiddleRect
[ ] tallMiddelRect
[ ] isEllipse
[ ] fromLTRBXY


Debugger seems to disconnect instantly

Hi, I'm trying to switch to vscode and found this debugger recommended. However I am not able to make it work -- while it starts, vscode seems to connect and disconnect immediately, after which I'm unable to set breakpoints.
cd /Users/diego/code/portal/backend
rdbg --command --open --stop-at-load --sock-path=/var/folders/gt/hx3zr_715_j2bfp04xk8lvjr0000gn/T/ruby-debug-sock-501/ruby-debug-diego-30431 -- rails server

# diego @ kepler in ~/code/portal/backend [12:35:08]
$ cd /Users/diego/code/portal/backend
chruby: unknown Ruby: 3.0.4

# diego @ kepler in ~/code/portal/backend [12:35:08]
$ rdbg --command --open --stop-at-load --sock-path=/var/folders/gt/hx3zr_715_j2bfp04xk8lvjr0000gn/T/ruby-debug-sock-501/ruby-debug-diego-30431 -- rails server
DEBUGGER: Debugger can attach via UNIX domain socket (/var/folders/gt/hx3zr_715_j2bfp04xk8lvjr0000gn/T/ruby-debug-sock-501/ruby-debug-diego-30431)
DEBUGGER: wait for debugger connection...
DEBUGGER: Connected.
=> Booting Puma
=> Rails <IP_ADDRESS> application starting in development
=> Run `bin/rails server --help` for more startup options
[30596] Puma starting in cluster mode...
[30596] * Puma version: 5.6.4 (ruby 3.0.4-p208) ("Birdie's Version")
[30596] *  Min threads: 1
[30596] *  Max threads: 1
[30596] *  Environment: development
[30596] *   Master PID: 30596
[30596] *      Workers: 3
[30596] *     Restarts: (✔) hot (✖) phased
[30596] * Preloading application
[30596] * Listening on http://<IP_ADDRESS>:3000
[30596] * Listening on http://[::1]:3000
[30596] Use Ctrl-C to stop
[30596] - Worker 0 (PID: 30667) booted in 0.0s, phase: 0
[30596] - Worker 1 (PID: 30668) booted in 0.0s, phase: 0
[30596] - Worker 2 (PID: 30669) booted in 0.0s, phase: 0

I tried manually starting the rails server from a console using rdbg --open --command bundle exec rails s, then connecting from vscode using rdbg attach, at which point I get a breakpoint in the first line, but after I click continue it disconnects as well. Am I missing anything trivial? Thanks in advance!

Hmm so this worked for me when I was testing things out, not sure if this is just me though but thought I'd share here:
Launch.json:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "rdbg",
            "name": "Debug current file with rdbg",
            "request": "launch",
            "script": "${cwd}/msfconsole",
            "args": [],
            "askParameters": true,
        },
        {
            "type": "rdbg",
            "name": "Attach with rdbg",
            "request": "attach",
            "debugPort": "34334"
        }
    ]
}

Then in the terminal of VSCode I did this:
rdbg --open --port=34334 -- msfconsole

And finally I ran the Attach with rdbg action. This worked fine and I could hit breakpoints multiple times with Ruby 3.0.2.
Unfortunately still haven't figured out a way to get this working with the "Debug current file with rdbg". I imagine an option to change the launch parameters might be needed in order to get that to work.

I am having this exact same issue with Ruby 3.1.2 and the Rails example blog project. The issue for me at least appears to happen with attaching to a remote debugging instance (in my case from within a container).
I've been starting the rails server thusly: rdbg -O --nonstop --host <IP_ADDRESS> --port 1234 -c -- rails s -b <IP_ADDRESS>
From within code I have been using the following launch.json:
{     "type": "rdbg",     "name": "Attach with rdbg (tcp 1234)",     "request": "attach",     "debugPort": "localhost:1234",     "localfsMap": "/opt/blog:${workspaceFolder}" }
The experience is seemingly identical to OP. Regardless if I wait for the debugger or not, the ending is roughly the same in that the code debugger disconnects. What is more uniquely interesting however is when waiting for the debugger before resuming the process (in this case a Rails server), it does break at the first line of the initial bundle/bin/rails file, just like OP. There is NO breakpoint set here, and upon continuing the debugger disconnects.
From what little debug output I could gain I have the following error noted:
[Start session] {"_debugServiceProxy":{},"_id":"35ef5167-975f-427c-a7d0-c87690ad022e","_type":"rdbg","_name":"Attach with rdbg","_workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/username/Desktop/blog","external":"file:///Users/username/Desktop/blog","path":"/Users/username/Desktop/blog","scheme":"file"},"name":"blog","index":0},"_configuration":{"type":"rdbg","name":"Attach with rdbg","request":"attach","debugPort":"1234","__configurationTarget":6}} [Error on seession] Error: connection closed e: {}
This has become incredibly frustrating as I'd very much like to move away from ruby-debug-ide, however that is at least working. At the very least some additional logging to troubleshoot with would be very helpful. Any thoughts?

same with bin/rails for launching the server?

Having the same issue,
My setup:
Ruby 3.1.2
debug gem 1.6.2
rails 7.0.4
Running in a docker container, startup command:
rdbg --open --nonstop --port=9220 -c -- bin/rails s -p 3000 -b <IP_ADDRESS>
Upon start up I get:
DEBUGGER: Debugger can attach via TCP/IP (<IP_ADDRESS>:9220)
docker port is exposed
My launch.json configuration:
{
            "type": "rdbg",
            "name": "library",
            "request": "attach",
            "debugPort": "9220",
            "localfsMap": "/usr/app:${workspaceFolder}\\library"
}

vscode launch error:
[Start session]
{"_debugServiceProxy":{},"_id":"f26bd574-7d9e-437a-9e2c-0c9db90e0e9a","_type":"rdbg","_name":"library","_workspaceFolder":{"uri":{"$mid":1,"fsPath":"c:\\Users\\User\\Projects\\myproject","_sep":1,"external":"file:///c%3A/Users/User/Projects/myproject","path":"/c:/Users/User/Projects/myproject","scheme":"file"},"name":"myproject","index":0},"_configuration":{"type":"rdbg","name":"api","request":"attach","debugPort":"9220","localfsMap":"/usr/app:C:\\Users\\User\\Projects\\myproject\\api","__configurationTarget":6}}
[Error on seession]
Error: connection closed
e: {}

Some things I have tried:

with / without --nonstop flag
starting rails with bundle exec rails server
downgrading to ruby 3.0.4
upgrading to ruby 3.2.0
downgrading to debug gem 1.5.0
many other things I don't remember, I spent a good couple of days on this already.

Found my issue
In the docker start command you need to bind the rdbg process to <IP_ADDRESS>
rdbg --open --port=9220 --host=<IP_ADDRESS> --nonstop -c -- bin/rails s -p 3000 -b <IP_ADDRESS>
this solved it for me at least

Ah, I see. I close it and please ping me if I misunderstood.


A Note Of  'jwt'  Run

A Note Of  'jwt'  Run

Codecov Report

Merging #12 (3a9f44d) into main (e0deec0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage   10.71%   10.71%
=======================================
  Files           2        2
  Lines          28       28
=======================================
  Hits            3        3
  Misses         25       25

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 e0deec0...3a9f44d. Read the comment docs.


feature: cri support update container runtime spec annotations

Ⅰ. Describe what this PR did
cri support update container runtime spec annotations.
CRI proto changes:
message UpdateContainerResourcesRequest {
   ......
    // Annotations contains arbitrary metadata for the container.
    // Note: spec_annotations is the metadata for container runtime, such as runc. Not
    // the 'annotations' for Kubernetes objects.
    map<string, string> spec_annotations = 3;
}

Ⅱ. Does this pull request fix one issue?

fixes #2730
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

LGTM

@rudyfly cc. ready to merge

lgtm


ACCURACY

may I ask you what is the accuracy of your implementation ,please

may I ask you what the accuracy of your implementation is ,please.

@zxs1995 accuracy = number of correct predictions / all predictions

i have try to run test.py but i got this error
(tf15) E:\Fajar\Programming\Python\Deep Learning\TextClassification\TextClassification-master>python test.py --test_data_file=./data/data.csv --run_dir=./runs/1530085310/ --checkpoi
nt=clf-10000

C:\Users\FajarSukma\Anaconda3\envs\tf15\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprec
ated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Building dataset ...
Traceback (most recent call last):
  File "test.py", line 38, in <module>
    shuffle=False)
  File "E:\Fajar\Programming\Python\Deep Learning\TextClassification\TextClassification-master\data_helper.py", line 38, in load_data
    sw = _stop_words(sw_path)
  File "E:\Fajar\Programming\Python\Deep Learning\TextClassification\TextClassification-master\data_helper.py", line 149, in _stop_words
    with open(path, 'r', encoding='utf-8') as f:
TypeError: expected str, bytes or os.PathLike object, not Flag

Could you help me,please?

@FajarSukma If you don't have a stop word file, try assigning the sw_path at line 33 to None and see if this works.


[AMORO-2330] Improve major plan

Why are the changes needed?
Close #2330 .
Brief change log

Add self-optimizing.segment-ratio default 0.875
Add rewrite complete segment logic
Add new binpack logic for segment file

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

 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.

Hi, what does the segment_ratio means?
Previous concepts only use fragment_ratio to distinguish fragment files and segment files. Do you mean we shall add a type of file like fragment and segment?

Hi, what does the segment_ratio means?
Previous concepts only use fragment_ratio to distinguish fragment files and segment files. Do you mean we shall add a type of file like fragment and segment?

The segment_ratio is distinguish which segment files need to be merged.
https://docs.google.com/document/d/1U4WkFYuOWKJafwxhW2CVA5MXO2_SUW3omThmi9IvzZ8/edit?usp=sharing

Previous concepts only use fragment_ratio to distinguish fragment files and segment files. Do you mean we shall add a type of file like fragment and segment?

I have disscussed this with @zhongqishang and @zhoujinsong, and we agree on that we should introduce a type for the files whoes size is close to the target size(>110+MB), and this is a special type of segment files.
The main difficulty is coming up with a name for this type of files and not breaking the previous concept. The name I recommend is complete segment files or large segment files.
After dintinguishing the common segment files(16MB ~ 110+MB) and the large segment files(>110+MB)，we can introduce a new trigger condition for major optimizing, that is if the total size of common segment files is bigger than 128MB, they can be optimized. We can alse find similar trigger condition for Iceberg rewriting data files.

Resolved conflicts and merged commits, PTAL. @zhoujinsong @wangtaohz
Regarding the complete segment threshold, I found the same parameters in iceberg : MIN_FILE_SIZE_BYTES

@wangtaohz Thank you for your detailed and patient review and help on mixed format. ❤


From the last update, a moon icon appears instead of a sun,

From the last update, a moon icon appears instead of a sun,

@meni123, please update to release 0.1.2 and verify it's fixed

Corrected in the latest release, thanks


[Feature Request] Adding decoder for CLIP encoder

Dear authors,
Thank you for the amazing works!
I think it would also be a good idea to also include a decoding functionality for the CLIP Tokenizer since the datasets only provide token (without original text). For example, other research might want to use a different tokenizer such as BPE in GPT series. Then it would make sense to decode the instructions in the datasets back to text, then encode the same text using GPT's BPE.

Oh, I just found the decode instruction functionality in the notebook, for anyone who cannot find it:
def decode_inst(inst):
  """Utility to decode encoded language instruction"""
  return bytes(inst[np.where(inst != 0)].tolist()).decode("utf-8")


pull request for e2e test at 01/30/2017 02:26:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


rootScroller shouldn't be a readonly property

This API shouldn't use a readonly property and introduce a setRootScroller method, it should instead have a writable property.

I've since replaced setRootScroller with a writable document.rootScroller.


Unauthorized Error 401

I get the following error when trying to push the notifications:
RubyPushNotifications::GCM::GCMAuthError:

<TITLE>Unauthorized</TITLE>

Unauthorized

Error 401

Ok I was using a wrong server key from FCM...


terragrunt: 0.27.0 -> 0.27.1

Motivation for this change
Bump terragrunt version to 0.27.1
Things done

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

[X] NixOS (x86_64)
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

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

1 package built:

terragrunt

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

1 package built:

terragrunt

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 109264 run on x86_64-darwin 1

1 package built:

terragrunt

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 109264 run on x86_64-darwin 1

1 package built:

terragrunt


Use character name by default if no custom file name is given

Currently the application forces the user to choose a file name in order to save the card. If no file name is given, the name of the exported JSON file consists of just the extension. A generic file name is filled when creating a new card, which can be tedious for the users as they often end up having to input the character name twice in 2 separate places.
The goal of this task is to change this behavior to the following:

File name should be optional and not filled with any value.
If no custom file name is given, character name is used instead for card saving and export.
If the file name (Krosmaster ID) matches the character name, the file name input is cleared after loading and importing. If the file name is different, it is copied into the file name input instead (same as it works right now).
If no custom file name is given and the character name is empty, it is impossible to save the card and the exported JSON file name defaults to a generic Krosmaker.json.

Entered file name should also apply to the downloaded PNG image.


Add manifest for support of the data processing cloudant use case.

There is a manifest that mostly works for the Cloudant use case. However, it may miss the package binding step.

Done!
Deploying rule echo-images ... Done!

Deployment completed successfully.

And here is my env. variables:
$ env | grep CLOUDANT
CLOUDANT_PASSWORD=<password>
CLOUDANT_USERNAME=<username>
CLOUDANT_HOST=<host>
CLOUDANT_INSTANCE=openwhisk-cloudant
CLOUDANT_DATABASE=<database>

I am using latest wskdeploy from master and manifest from master branch as well.
What kind of error do you see?

I also tried it and it works. I tried Step 3 and the last activation I get is:
Activation: write-to-cloudant (fcc07b33939e442b95aef5368cfd7ce2)
[
    "2017-05-10T14:38:44.147583303Z stdout: Success with file insert."
]

all good.

@krook Can you please confirm this issue is fixed?

@mrutkows Yes, just tested and this works. It can be closed now.

Close it because it is fixed


I get exceptions no matter what I run

Does this work with Indirect CSPs?
Do Indirect CSPs need their Direct CSPs to enable something?

PS C:\WINDOWS\system32> Get-PartnerAgreementDetail -AgreementType All
Get-PartnerAgreementDetail : Exception of type 'Microsoft.Store.PartnerCenter.Exceptions.PartnerException' was thrown.
At line:1 char:1

Get-PartnerAgreementDetail -AgreementType All

  + CategoryInfo          : CloseError: (:) [Get-PartnerAgreementDetail], PartnerException
  + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.GetPartnerAgreementDetail

PS C:\WINDOWS\system32> Get-PartnerCustomerSubscriptionUtilization -CustomerId $customerid -SubscriptionId $subscriptionid -StartDate $dateoffset -Granularity Hourly -ShowDetails
Get-PartnerCustomerSubscriptionUtilization : Exception of type 'Microsoft.Store.PartnerCenter.Exceptions.PartnerException' was
thrown.
At line:1 char:1

Get-PartnerCustomerSubscriptionUtilization -CustomerId 329e833f-820b- ...

  + CategoryInfo          : CloseError: (:) [Get-PartnerCust...tionUtilization], PartnerException
  + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.GetPartnerCustomerSubscriptionUtilization

@mpt-austin thank you for opening this issue. This module leverages the Partner Center API to perform almost all of the operations. Since you are an indirect reseller there currently only one operation, that I am aware of, that will work for you. That is the operation to list customers. All others will fail because the Partner Center API currently does not support indirect resellers. This feedback has been shared with the product team responsible for the API.
Right I do not have any details to share regarding if this support will be added. Currently you best option is to work with your indirect provider to see if they have API that you can interact with.

Thanks for the quick response and info
Sent from my iPhone
On Jun 6, 2020, at 3:28 PM, Isaiah Williams <notifications<EMAIL_ADDRESS>wrote:
@mpt-austinhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmpt-austin&data=01|01|michael.lavallee%40micropulsetech.com|6b3d237cb9c84357eefe08d80a583753|137c7cc39d5043dbb32560e3a8b4e7ff|0&sdata=yv%2FAIl53VQzd4HwBftdjYQA16GTK3NzQqbBU%2F6zuGdc%3D&reserved=0 thank you for opening this issue. This module leverages the Partner Center API to perform almost all of the operations. Since you are an indirect reseller there currently only one operation, that I am aware of, that will work for you. That is the operation to list customers. All others will fail because the Partner Center API currently does not support indirect resellers. This feedback has been shared with the product team responsible for the API.
Right I do not have any details to share regarding if this support will be added. Currently you best option is to work with your indirect provider to see if they have API that you can interact with.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPartner-Center-PowerShell%2Fissues%2F310%23issuecomment-640114219&data=01|01|michael.lavallee%40micropulsetech.com|6b3d237cb9c84357eefe08d80a583753|137c7cc39d5043dbb32560e3a8b4e7ff|0&sdata=aLmGPSh5009rrQjnqr9HeB2j7sqEvb82LtOfAvPj1AA%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP3KIVPVXZJLWPG4H72SJMLRVKRHZANCNFSM4NVGI7WA&data=01|01|michael.lavallee%40micropulsetech.com|6b3d237cb9c84357eefe08d80a583753|137c7cc39d5043dbb32560e3a8b4e7ff|0&sdata=GCojiKp8HX5y7xZDzRg8YNGQI%2BJFzZPVndsvPj7bYFM%3D&reserved=0.


use https for google font injection

updates google font injection to use https if it's current protocol. h/t @TimbisLopez in #141

:+1:


fix(version): fixed get version function

Codecov Report

Merging #159 (c344014) into main (936856b) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
- Coverage   81.40%   81.36%   -0.05%
==========================================
  Files          19       19
  Lines         796      794       -2
  Branches      159      159
==========================================
- Hits          648      646       -2
  Misses        148      148

Impacted Files
Coverage Δ

packages/cisco-sdk-node/src/tracing.ts
85.29% <100.00%> (-0.82%)
:arrow_down:


Only able to freeze a single character

$ pyftfeatfreeze  -f 'smcp' "D:\Desktop\LibertinusSerif-Bold.otf" "D:\Desktop\LibertinusSerif-SmallCaps.ttf" -n
i.sc

-v output:
INFO: [RemapByOTL] Running with options: Namespace(inpath='D:\\Desktop\\LibertinusSerif-Bold.otf', outpath='D:\\Desktop\\LibertinusSerif-SmallCaps.ttf', features='smcp', script=None, lang=None, zapnames=False, suffix=False, usesuffix='', replacenames='', info=False, report=False, names=False, verbose=True)
INFO: [openFont] Opened font: D:\Desktop\LibertinusSerif-Bold.otf
INFO: [filterFeatureIndex] FeatureIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
INFO: [filterLookupList] Features to apply: ['smcp']
INFO: [filterLookupList] Lookups: [8, 9]
INFO: [applySubstitutions] Remap: 'i' -> 'i.sc'
INFO: [saveFont] Saved font: D:\Desktop\LibertinusSerif-SmallCaps.ttf
INFO: Finished processing.

Libertinus Serif 7.020 (which does support smcp)
opentype-feature-freezer 1.32.2

Sounds related: https://github.com/alerque/libertinus/issues/434#issuecomment-765610599

@j4nw I made a new app that can handle your needs. Please check it out: https://mutsuntsai.github.io/fontfreeze/


celo-org merge master issue

cc: @kobigurk
A few questions (for arkworks team):

Serialize: What happened to impl_prime_field_serializer and impl_.._curve_serializer? If they have now been migrated to derive, then why wasn't derive used previously? If so, how does it work for prime fields, since arrays are not structs?

impl_prime_field_serializer is here: https://github.com/arkworks-rs/algebra/blob/3e5802db76d851640439c113d723305b32d18b3a/ff/src/fields/macros.rs#L1
the curve serialization macros were no longer necessary once we eliminated sw_curve_projective, as there was only one curve of each type.


[Bug]:  Path in bin/jest.js file crash when there's a single "Single quote" in the path

Version
29.7.0
Steps to reproduce
when I run npm jest, in node_modules/jest/bin/  the file jest.js is generated.
the file in  my case is located in :C:\Users*Gorrito's Laptop*\Documents\Development\Jest Tutorials\JavaScript Testing with Jest - Crash Course\node_modules\jest\bin\jest.js
but as my user has a single quote it crashes.
The file looks like this:
#!/usr/bin/env node
/* build-hook-start *//*00001*/try { require('c:\\Users\\Gorrito's Laptop\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.324\\out\\buildHook\\index.js').default({tool: 'jest'}); } catch(cjsError) { try { import('file:///c:/Users/Gorrito's%20Laptop/.vscode/extensions/wallabyjs.console-ninja-1.0.324/out/buildHook/index.js').then(m => m.default.default({tool: 'jest'})).catch(esmError => {}) } catch(esmError) {}}/* build-hook-end */

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

const importLocal = require('import-local');

if (!importLocal(__filename)) {
  require('jest-cli/bin/jest');
}

I have tried to use template strings and double quotes to escape the bug manually, but it leads to a waterfall of crashing systems.
Expected behavior
I expected to execute as it does on my other machine. The problem it's not in my repo, but in the relationship the repo has with my computer's name.
Actual behavior
My computer name happens to be an edge case in the ways the routes are set in Jest, and prevents the normal execution of the software
Additional context
No response
Environment
No "jest." preset found.
PS C:\Users\Gorrito's Laptop\Documents\Development\Jest Tutorials\JavaScript Testing with Jest - Crash Course>

Processor	Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz   2.90 GHz
Installed RAM	12.0 GB
System type	64-bit operating system, x64-based processor

You should report this issue to wallabyjs. The second line of the binary is added by them. This is not the original code shipped by Jest.

Oh Thank you! I'll take he issue there!


[Feature] Transaction call indexing

Ponder could support call handlers:
ponder.on("Contract:mint()", async ({ event, context }) => {
  console.log(event.input.tokenId)
})

This feature would only be available when using a node/RPC provider that implements the non-standard trace_filter method. Currently, this method is supported by:

Alchemy
Quicknode (with Trace Mode add-on)
OpenEthereum and Erigon nodes

It is NOT supported by:

Anvil
Hardhat Network
Infura (Supported as of 6/8/23)
Moralis

Hey @0xOlias, I see this got added to the roadmap back in September. Was wondering if there's any time estimate for it? Any current workarounds? We're pretty excited about Ponder but unfortunately I think this is a blocker for us.


fix(query): generate different similarity id for each unpinned package #3675

Closes #3675
I submit this contribution under the Apache-2.0 license.

using searchValue to produce distinct results in this scenario


Laravel dd(request->all()) empty

My route api looks like this
$api->get('{uuid}', ['uses' =>  'Api\v1\ConversationController@getConversationMessages']);

And when i do Validator it give me this outupt:
{
  "message": "Could not get user conversations.",
  "errors": {
    "uuid": [
      "The uuid field is required."
    ]
  },
  "status_code": 422
}

here how i validate the request:
        $validator = \Validator::make($request->all(),[
            'uuid' => 'required|alpha_dash'
        ]);

        if($validator->fails()) {
            throw new \Dingo\Api\Exception\ResourceException('Could not get user conversations.', $validator->errors());
        }

Also,
whenever i use $request->uuid, i do retrieve the value, but not in $request->all(),
I'm using postman api, do i need to setup additional settings?

@TwinLight That is because Laravel's all() method only pulls from the input, but {uuid} is a path or route parameter. $request->uuid works because the Request object's __get method tries to get the property from the inputs, and if that fails, tries to get the value from the route associated with the request.


Git-it Pull Never Out Of Date challenge fails due to 128 return from git.exe

So, I've worked my way down to the git challenge called Pull Never Out Of Date.  I believe the pull was successful (I saw my username in the fancy ASCII art letters), and now when I do the fetch --dry-run it comes back without any further output, so I assume it is satisfied that all is up to date.
However when I try the Verify step it tells me:
X Error: Command failed: "C:\Greg\WebDev\JavaScript\NodeSchool\Git\Git-it-Win-ia32\resources\app\assets\PortableGit\bin\git.exe" fetch --dry-run
So I've found that if I execute:  git fetch --dry-run
I get no output (I assume indicating no differences) and if I then execute: echo $?
I get a 0.
However if I type that whole path to git (directly from the error message) with the fetch --dry-run options I still get no output, but when I echo $? it return 128.
I ran a "which git" command and it tells me that it is getting git from the /cmd directory.  So, if I explicitly specify the path /cmd/get.exe and give fetch --dry-run options $? is 0.  So my first instinct was to replace the version of git.exe down that lengthy path with the copy from /cmd.  However when I then specify the long path down to that git.exe (with fetch --dry-run) it also returns 128.  Replacing the original version of git.exe in that lengthy directory, and then copying it up to /cmd and running /cmd/git.exe (with fetch --dry-run) now returns a 0.
So, apparently for some reason when git.exe is down that long path it's exit code becomes 128 instead of 0, regardless of which of the two versions of git.exe are there (I seem to have at least 2 versions - the sizes of the one in /cmd and the other down that lengthy path are different).  In the mean time they both work (returning a 0 exit code) when executed from /cmd.
So, it would seem that this challenge won't be able to pass unless I can somehow convince the verify step to look in /cmd for the git.exe command, or (less likely) convince the git.exe to stop returning 128 when it is down that lengthy path).
If someone has a brilliant suggestion as to how to overcome this it would be appreciated.  For now I'm stuck.
Thanks,
GYoungdahl

So, I'm still stuck.  I have found that if I execute:
C:/Greg/WebDev/JavaScript/NodeSchool/Git/Git-it-Win-ia32/resources/app/assets/PortableGit/bin/git.exe status
I get a result of:
On branch add-gyoungdahl
nothing to commit, working directory clean

And then echo $? produces a return code of 0.
So apparently git.exe down that path is functional to some degree, but for whatever reason it decides to return 128 when fetch --dry-run is the command line options, which appears to result in the verification failing for this challenge.
Thanks
GYoungdahl

So apparently git.exe down that path is functional to some degree, but for whatever reason it decides to return 128 when fetch --dry-run is the command line options

Hmm, off the top of my head I'm not sure what's going on. I've been without my Windows environment so I can't test it myself right now.
But maybe someone else has ideas 💡

Hi jlord,
Is there a way for me to relocate where the tools/files for the course are installed?  Perhaps a config file tells it what directory to use that I could modify to a location with a shorter path and then copy all the files to that location?
So for example it is currently using this path:
C:/Greg/WebDev/JavaScript/NodeSchool/Git/Git-it-Win-ia32/resources/app/assets/PortableGit/bin/git.exe
Perhaps if I just make a Git-it-Win-ia32 directory directly under my Greg directory, and then move the resources directory (and sub directories) under that directory?  I guess there are several files that are directly in the Git-it-Win-ia32 directory, so perhaps I'd need to copy those into place as well?
Maybe just a modification of my PATH to be able to locate the git.exe file once I move things would be sufficient?

It occurs to me that if GIT is an open source project (I assume so), then if I knew how/where to access the source code for git.exe (presumably I git it from somewhere?), I ought to be able to try and figure out where it exits with a 128 exit code.  If not an explicit "exit( 128 );" statement, it may be that it is falling into code that exits without specifying an exit code and coincidentally whatever value is there (presumably 128) becomes the exit code.  Or perhaps some buffer that is getting a copy of that path is too small to contain it, resulting in some sort of corruption that ends up producing an exit code of 128 somehow.


Podfile change

Not sure what triggered this, and why the file was not changed on the machine that introduced that change, but since I keep seeing this I created a PR :)
I guess this is relevant for other mac users

bors r+


go.sum error

Describe the bug
A clear and concise description of what the bug is.
$ kafka-operator-0.14.0 % go mod vendor
verifying<EMAIL_ADDRESS>checksum mismatch
	downloaded: h1:GfRoy7NHsuR/ogmZtbExdJXUwbfwcxPrS9xzkyy2J/c=
	go.sum:     h1:tLY05v1tC+sfeeE6DF8RAC/MGw4gflomYfA28b4VULw=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

go version go1.15.4 darwin/amd64

Hi @lengrongfu,
unfortunately I wasn't able to reproduce your reported issue.
I've tested go mod vendor with golang 1.14.13 as well as with 1.15.6. I'd suggest to clear the appropriate part of your go env GOCACHE

Hi @lengrongfu,
unfortunately I wasn't able to reproduce your reported issue.
I've tested go mod vendor with golang 1.14.13 as well as with 1.15.6. I'd suggest to clear the appropriate part of your go env GOCACHE

Thanks , I found the problem, it is caused by Go GOPROXY and GOSUMDB ENV.

Thanks , I found the problem, it is caused by Go GOPROXY and GOSUMDB ENV.


Support git worktrees in recording test framework

API change check
API changes are not detected in this pull request.


Should we disable hotswap when scanning for bindings with a source filter enabled?

fixed mode from hotswap seems ok?
mixed and multidevice might need a look; source swap from m+kb to or from gamepad should reject in case of filter, but between gamepads should not (may already work this way)

Thanks from what I see:
When in hotswap.mode and filtering input_binding_scan_start() only on KeyBoard+Mouse, the scan will stop if you use Gamepad (I guess it return an error code). I would have expected that the scan would just ignore input from gamepads when filtered on KB+M

https://github.com/JujuAdams/Input/commit/9977f4ad0f25ff444f51d4fc025f6ff5964d9d77


Link to donate for requests for py3 isn't working

Summary.
link to support requests for py3 isn't working at the top of
http://docs.python-requests.org/en/master/
leads to https://www.kennethreitz.org/requests3
What you expected.
a website
What happened instead.
404
import requests

System Information
$ python -m requests.help

404

Thanks

@kennethreitz this is a bug in your website redesign and URL routing

Need to bring the death clock back — or remove the banner entirely.
Sent from my iPhone

On Jul 20, 2018, at 11:09 AM, Ian Stapleton Cordasco<EMAIL_ADDRESS>wrote:
@kennethreitz this is a bug in your website redesign and URL routing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@kennethreitz #4767 because people are still looking for that page. I've also received emails asking for updates on the progress and spend of that money. I can't answer to either of those. Please either bring the page back and add updates or figure something else out.


Issues with Cart Address Validation

Summary
Deployed a new saleor, dashboard and react-storefront container to my new site and spent some days configuring and understanding whats going on.  Finally got past some build and  configuration issues and now I can add items to the cart and its the checkout checkout process address validation that is broken.  Here are my notes:

Saving a Billing Address: Silently fails and clears out the form data
The phone number has to have a + prefix in front of it, so for example +1206555555 and not<PHONE_NUMBER>, or 206555555 or any other attempt at formatting that with out the +1 country code.  No validation errors on screen, address clears,
The form data in the network tab defaults the country to PL so I edited it in  my fork to default to US.
Despite changing the country code the backend continues to fail to validate the zip code -- it seems the form needs to collect the country_area field on the form which is the users state.  I haven't tried adding this to see what the next issue might be, yet.

As such I cannot get past adding the Billing address to the cart and the end user has no idea about why the address is clearing after each attempt, without debugging the application.
Steps to reproduce
Here is a demo, visit: https://mattscoinage.com/default-channel/en-US/products/test-stripe
add the product to cart and attempt to start checkout.
A link to a reproduction repository
https://github.com/matteius/react-storefront
What OS are you using?
Linux
Your next.config.js file
This is the default next.config.js file

`next.config.js`
const withBundleAnalyzer = require("@next/bundle-analyzer")({
  enabled: process.env.ANALYZE === "true",
});

const apiURL = new URL(process.env.NEXT_PUBLIC_API_URI);
const allowedImageDomains = process.env.NEXT_PUBLIC_ALLOWED_IMAGE_DOMAINS
  ? process.env.NEXT_PUBLIC_ALLOWED_IMAGE_DOMAINS.split(",")
  : [];
const imageConversionFormats = process.env.NEXT_PUBLIC_IMAGE_CONVERSION_FORMATS
  ? process.env.NEXT_PUBLIC_IMAGE_CONVERSION_FORMATS.split(",")
  : [];

module.exports = withBundleAnalyzer({
  reactStrictMode: true,
  swcMinify: true,
  images: {
    domains: [apiURL.hostname, ...allowedImageDomains],
    formats: imageConversionFormats,
  },
  async headers() {
    return [
      {
        source: "/(.*)",
        headers: [
          {
            key: "x-content-type-options",
            value: "nosniff",
          },
          { key: "x-xss-protection", value: "1" },
          { key: "x-frame-options", value: "DENY" },
          {
            key: "strict-transport-security",
            value: "max-age=31536000; includeSubDomains",
          },
        ],
      },
    ];
  },
  experimental: {
    reactRoot: true,
  },
});

Builds logs (or link to your logs)
FROM docker.io/node:16
WORKDIR /app
RUN npm install -g<EMAIL_ADDRESS>COPY . .
RUN pnpm i

ARG NEXT_PUBLIC_API_URI
ARG NEXT_PUBLIC_DEFAULT_CHANNEL
ARG NEXT_PUBLIC_VERCEL_URL

ENV NEXT_PUBLIC_API_URI ${NEXT_PUBLIC_API_URI:-https://api.mattscoinage.com/graphql/}
ENV NEXT_PUBLIC_DEFAULT_CHANNEL ${NEXT_PUBLIC_DEFAULT_CHANNEL:-default-channel}

# export failed with this:
# Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
# RUN pnpm run export

# This is to prevent this error:
#   http://mynewreactstorefront.example.com/_next/image?url=http%3A%2F%2Fmysaleorapi.example.com%2Fmedia%2Fproducts%2Fsaleordemoproduct_cl_boot07_1.png&w=828&q=75
#   400 Bad Request
#   data:text/plain,"url" parameter is not allowed
# which seems to come from this Next.js source file:
#  https://github.com/vercel/next.js/blob/canary/packages/next/server/image-optimizer.ts
#if (!domains.includes(hrefParsed.hostname)) {
#  res.statusCode = 400
#  res.end('"url" parameter is not allowed')
#  return { finished: true }
#}
# RUN sed -i 's/"img.youtube.com"/"img.youtube.com", "mysaleorapi.example.com"/g' next.config.js

# Then as an alternative to the failed "pnpm run export" attempt, we will directly
# run the Node application in production mode, exposing its default port 3000.
# see https://nextjs.org/docs/api-reference/cli#production
# see https://github.com/saleor/react-storefront/issues/84#issuecomment-966874104
expose 3010
RUN pnpm run build
CMD PORT=3010 pnpm run start

Function logs
No response

I've made some improvements in my branch for US address check out, fighting with the stripe integration next as the checkout simply doesn't show any errors or order confirmation when I try to check out.

Following. Stuck on this.

No, I am not familiar with it other than reading it's name in another thread that sounded like it was going to be released soon.  Any additional details?

No, I am not familiar with it other than reading it's name in another thread that sounded like it was going to be released soon. Any additional details?

I haven't got it to work yet but I have seen it working from the PR previews, it fixes and streamlines the checkout from the storefront. I've been trying to get it configured but haven't made any major headway. Added some issues on it though. Hopefully we can get it working soon.

I had the same problem with the country code and phone number. I'm just rewriting the field inputs on the post so that it can be entered naturally. I was going to do the same thing you are doing and fixing the issues myself until I saw the checkout.

I opened a discussion with instructions on how to run the checkout and storefront if you're interested. React-storefront & checkout integration #209

@wileyknight I have fixed this is my react-storefront branch -- what advantage would using the separate checkout repository?  It seems like more overhead to me and would require deploying now a 4th docker container to run the site -- I am pretty happy without going in this direction and using the checkout code that is in this repository that I have modified in my fork to fix a few bugs.

Yes the current react-storefront checkout user experience isn't great with strict phone and address validation and no error messages displaying.  It definitely could be better to provide a better testing experience.
However I was able to successfully complete the checkout without modifying the code by providing an international phone number eg. +48123456789 and entering in an address in Poland. eg.
Address:
Tęczowa 7
City:
Wrocław
Postal code:
53-601

@simon-online In my fork I added the form validation errors to the output on the screen.   I also changed my defaults to US and added the countryRegion (state) field.  Checkout works, but no organic sales yet.

@matteius
This will help with the phone number validation:
Above the return on AddressForm.tsx
const phoneFormatHandler = (arg0: any): string => {

    const reformatted = `+1${arg0}`;

    if (arg0.slice(0,1) !== "+") {
      if (arg0.slice(1,2) !== "1") {
        return reformatted;
      }
      return reformatted;
    }

    if (arg0.slice(0,1) !== "1") {
      return reformatted;
    }

    return arg0;
  }

and in the phone input:
{...registerAddress("phone", {
  required: true,
  pattern: /^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9])+$/i,
  setValueAs: e => phoneFormatHandler(e),
})}

Now customers wont have to add the + or the 1 for the phone number to go thru.

@matteius
I made that way too complicated... I was testing and realized that this works just but adding
setValueAs: e => 1${e},
to the input.

I think this was fixed recently when I merged upstream into my branch -- I can enter my number with area-code only and it gets saved with the +1 -- the only real issue I am having with the address flow right now is that my form defaults the countryArea (state) field to be United States instead of my billing state -- seems less than ideal, but also wasn't why I opened this issue originally.

@matteius
I was still having problems with my form when saving so I made the aforementioned change... I am not using the most updated backend, yet, but this fixed it from the frontend side.
I had the same problems as you with the State and had to make the changes to include countryArea as State to get it working. I am not having trouble with it defaulting to to the country though. It looks like we have the exact same fixes for the country area except your description in translations.ts still says country area. description: "Country area field label.", description: "State field label.",
Maybe convert that to a selector with options for the abbreviated state names. Amazon is using that type of input, not to say it's the best, but it's familiar.

Why this is closed as completed? I tested this on latest backend+storefront and all the issues OP described are still there.

This isn't the first time this has happened. Many issues have been closed as completed that have not.

@wileyknight @gleniat please use saleor-checkout repo, we are in process of merging both projects, checkout page in this repository would be dropped

I will give it a try. Am I supposed to run 5 separate apps instead of 3? Backend + react-storefront + checkout + checkout-app + dashboard? That seems a bit complicated. Dockerfiles are missing in checkout and checkout-app so I will probably need to create them myself.
merging both projects which projects are you going to merge? react-storefront + checkout-app? Thanks!

@gleniat None of the front end projects need docker, they are next.js projects and can be easily deployed to Vercel. Dashboard is a react SPA which can be served as a static files. I strongly recommend you not to use docker for local development and specially for production.
I agree that the setup is a bit complicated, but there are good reasons and advantages of separated packages. Storefront is meant to be modified while checkout is quite complex to maintain and can be convenient to upgrade as we ship improvements.
We provide CLI tool to automate development and deployment process as well as free saleor cloud accounts to run dashboard and backend.

What is the difference between checkout and checkout-app?  For those of us not deploying to Vercel, probably those other projects do require Docker or at least that is the most obvious way outside of Vercel, or are they like Dashboard in that they can be deployed as static files?  I think it would be nice, even if they are separate repositories, to be able to include the frontend in a single Docker container running behind a single pnpm server.

@matteius checkout app is a saleor app for managing checkout theme and processing payments. Checkout is a static SPA, checkout app is a next js application


Cherry pick request FullAccess on iOS17+ (#497)

Cherry-pick referencing this issue.

Hello, I'm looking forward to having this PR merged and the plugin working :)
Do you know by any chance when you will be able to review this PR @thomassth?

Any news about merging this mandatory fix for iOS 17+?
Thanks :)

@LeonardoCaracho thanks for creating this PR. Sorry for not looking at this sooner.
Please also change the version in pubspec.yaml and add a new entry in the CHANGELOG.md.
Then I can merge this PR to get the fix published. Without the version change, we cannot publish to pub.dev.

@LeonardoCaracho thanks for creating this PR. Sorry for not looking at this sooner. Please also change the version in pubspec.yaml and add a new entry in the CHANGELOG.md. Then I can merge this PR to get the fix published. Without the version change, we cannot publish to pub.dev.

@LeonardoCaracho thanks for creating this PR. Sorry for not looking at this sooner. Please also change the version in pubspec.yaml and add a new entry in the CHANGELOG.md. Then I can merge this PR to get the fix published. Without the version change, we cannot publish to pub.dev.

Done! thanks for the reply ;)

@LeonardoCaracho I think you will need to change file device_calendar/example/lib/presentation/pages/calendar_event.dart line 867.
Change with:
style: ElevatedButton.styleFrom(
  foregroundColor: Colors.white,
  backgroundColor: Colors.red),
)

I'm afraid, my write access is not sufficient to merge this PR… the master branch has some extra protection.
We will need @thomassth to do the merge.

Release pipeline doesn't work (again)
While I got the permission to renew the pub key, GitHub cred access is still locked from me
Paging @nickrandolph

Thanks guys for your speed!

Hello guys, @thomassth and @IVLIVS-III , you forgot to add the new recommended namespace value in the android block so as to support Gradle 8.0 and consequently, newer android versions.
https://developer.android.com/build/configure-app-module#set-namespace
it is supposed to go into the
`android {

namespace: 'your-namespace-here'
}block  of yourmodeule/build.gradle` file.


callback

hello
how can i use Callbacks functions with sample?
thank's

See https://github.com/Gargron/fileupload/blob/master/tests/FileUpload/FileNameGenerator/CustomTest.php#L43 and https://github.com/Gargron/fileupload/blob/master/tests/FileUpload/FileNameGenerator/CustomTest.php#L76


I can`t use the css imported in my component , but use link is well .

I used import to use my css file , but the html element can`t use the style I defined , when I used link to import my css file , all is well, would you please tell me the reason. Thank you!

I find in my css , code wrote like this
.anticon-inbox:before {
content: "\E67B";
}
But in the css packaged by webpack it changed to
.index__anticon-inbox___3i9qX:before{
content:"\E67B"
}
The prefix and suffix was added, what should i do?

It sounds like you're using CSS Modules in your loader, which is hashing your CSS class names. To use that, you would want to use something like:
import styles from './myStyles.css'
And then use those styles on a component like:

I want to write code like this

what should I do?

You recommend you read about webpack css-loader using css-modules https://github.com/webpack/css-loader#css-modules to get an understanding what is involved. It's a different way of thinking so I'd read more about before starting

@eisisig You solved my problem perfectly, Thank you !


[New game]: Adding Maze game

🎮 Game Request
Game logic and basic description:-there will be maze and with the help of the arrow key player have to reach at the end point of that maze by finding out the path
Point down the features
Game points
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @1911aditi !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @1911aditi!
We are already having a similar game request in #3493 👀
Make sure you come up with a cool unique idea 😀
Waiting for your new game idea 💗.

Hey @1911aditi ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Can't fetch gems or ping rails-assets.org

Hi. Thanks for the amazing work.
This might not even be a rails-assets issue, but I'd really appreciate some help because I'm lost, and google didn't help me. (Oh my)
I have the following in my Gemfile:
source 'https://rails-assets.org' do
  gem 'rails-assets-chosen'
  gem 'rails-assets-bootstrap-tagsinput'
  gem 'rails-assets-switchery'
end

I have two servers in which I deploy the same app. In one of them everything is working like a charm, and in the other, everything worked fine until yesterday.
When I try to deploy the app to this last server it just stops when trying to fetch from rails-assets.org and after a while it exists failing.
I logged in into the server with ssh and tried to ping rails-assets.org and there is no response (from the other server I do get a response).  I also tried to ping rails-assets.tenex.tech and still no response. 100% packet loss.
When I ping google, or any other page I do get a reply.
Thank you!

Investigating.

Can you try again? If that doesn't work, please contact me at<EMAIL_ADDRESS>with what IP address the server has (try curl -4 icanhazip.com)

Still same result. I'm emailing you what you requested.

Thanks for getting me the IP address off the thread. When you first mentioned this, I had a hunch that maybe this had something to do with a firewall (I had been using fail2ban earlier, but disabled it and reset the rules). I grepped through the firewall logs and nothing was blocked from that IP address. Are you sure you're using IPv4?
What does getent hosts rails-assets.org give on both servers?

Yes, I'm sure is IPV4.
Both servers give the same output:
<IP_ADDRESS>   rails-assets.org

Maybe there's problem with missing certificates. If you're using ubuntu, you might try "sudo apt-get upgrade".

@sheerun that would not cause the problem with not being able to ping. Frankly, I'm puzzled here.
@AldanaQuintana can you please run mtr or traceroute to figure out what's going on here? Where are the packets stopping? If you can give me a login on one of these servers I can also try to assist. Keys are at https://github.com/hut8.keys

Hmm. You're right ping should work with or without certificates..

Traceroute gives the following output:
traceroute to rails-assets.org (<IP_ADDRESS>), 30 hops max, 60 byte packets
 1  <IP_ADDRESS> (<IP_ADDRESS>)  0.646 ms  15.114 ms  0.614 ms

Understandable about not being able to give access. I just want to help :+1:
This is quite bizarre :smiley: I can ping the IP address from the production server to your server with no problem, and traceroute works fine.
It just occured to me that you may very well be on the same ISP, and probably even in the datacenter.  Are you in DigitalOcean's NYC3 datacenter? To quote the 1979 cult classic film When a Stranger Calls,

We've traced the call... it's coming from inside the house.

What happens when you ping <IP_ADDRESS> ? Can you also try <IP_ADDRESS> ?

Lol, we are neighbors. I don't see why that might be an issue though, the other server is in the same region too.
I'm stuck with no internet for a while (I made a hotspot with my cellphone but still is not enough to connect to ssh), when it comes back I will try pinging  <IP_ADDRESS> and  <IP_ADDRESS>

Are you sure it's actually NYC3 and not NYC1 or NYC2?
Tip: On bad mobile connections, instead of SSH you should try mosh. It's unbelievably great.
I'm 98% sure now that it's because of something to do with this:
https://www.digitalocean.com/community/tutorials/how-to-use-floating-ips-on-digitalocean
Thanks so much for your bug report and information. I'm opening a support ticket with Digital Ocean, since they're really awesome and can provide some insight.

Yeap. Sure. (Although the other server has an ip that's quite different, I don't know if it can have something to do with it.)
Thanks for the tip, I'll give mosh a try.
And thank you again for your readiness and support.
I'll post here any updates on the subject just in case someone else stumbles upon something similar.

Support ticket opened. I will reply when they do.

We've been talking back and forth and Digital Ocean said that this is the result of a known (but rarely occurring) but involving floating IPs in the same data center. Can you please try to ping <IP_ADDRESS> from the machine having connectivity issues, then try again?
From DO:

... two Droplets in the same datacenter won't be able to reach each other by floating IP, until the ARP table is populated by pinging the public IP (your public IP would be <IP_ADDRESS>). After they ping that address, they should be able to access your floating IP address.

I did what you said and ping is working now!
I'll try to deploy tomorrow and I'll let you know what happens.

Success! Thank you!

Just FYI, in case anyone made this a part of their build process, it's no longer necessary as we no longer use the floating IP that Digital Ocean provides.


added all except google sheets and stripe

Stripe is the only one I could not get to work when testing this morning. @carloseberhardt if you could take a look at stripe in the imports of experimental that would be great.  @stepr-hw seeking your name approval for merge.

Made the copy edit for the trial of StepZen @stepr-hw

i think we can kill this pr? I didn't understand the conflicting files (I do now) so did a different PR to get the signup message into the readme. I think everything is good on this.


add information about Zaraz JSONata support

This adds a new page in the Zaraz docs about our JSONata support

Added you to a new GH team that should give you permissions to merge, but if not let me know and I can push the button.