问:
One factor CFA Negative Variance
I am working with a dataset with 21 variables and 3119 observations that I am interested in doing CFA, I am having issues with convergence. So in order to try to get some conceptual understanding I just took a subset of 4 variables that correspond to one domain/factor and only analyzed it by itself. I get a negative variance error and the model fit is very bad and TLI, CFI, RMSEA, values indicate this, but I don't know if this is dependent on the negative variance case or vice versa? (I have always been told not to trust results of neg variance)

Data can be found here, although I doubt it's necessary for the questions I have. https://github.com/mlowery36/dataexample/blob/main/dataCon.xlsx

Here is the correlation table corrtable

```<code>cfe <-
'
Consumption=~Cost.of.Living+Sustainable.Consumption+Discretionary.Spending+Goods.and.Services
'
fit <- cfa(cfe, data=dataCon, estimator="MLM",std.lv=TRUE)
summary(fit, standardized=TRUE, fit.measures=TRUE, rsquare=TRUE)
</code>```

Warning message:
In lav_object_post_check(object) :
lavaan WARNING: some estimated ov variances are negative

summary(fit, standardized=TRUE, fit.measures=TRUE, rsquare=TRUE)
lavaan 0.6-12 ended normally after 33 iterations

Estimator                                         ML
Optimization method                           NLMINB
Number of model parameters                         8

Number of observations                          3119

```<code>Model Test User Model:
                                              Standard      Robust
  Test Statistic                              2749.411    2619.253
  Degrees of freedom                                 2           2
  P-value (Chi-square)                           0.000       0.000
  Scaling correction factor                                  1.050
    Satorra-Bentler correction

Model Test Baseline Model:

  Test statistic                              7664.214    5243.567
  Degrees of freedom                                 6           6
  P-value                                        0.000       0.000
  Scaling correction factor                                  1.462

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.641       0.500
  Tucker-Lewis Index (TLI)                      -0.076      -0.499

  Robust Comparative Fit Index (CFI)                         0.641
  Robust Tucker-Lewis Index (TLI)                           -0.077

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)               3096.127    3096.127
  Loglikelihood unrestricted model (H1)       4470.833    4470.833

  Akaike (AIC)                               -6176.255   -6176.255
  Bayesian (BIC)                             -6127.892   -6127.892
  Sample-size adjusted Bayesian (BIC)        -6153.312   -6153.312

Root Mean Square Error of Approximation:

  RMSEA                                          0.664       0.648
  90 Percent confidence interval - lower         0.643       0.628
  90 Percent confidence interval - upper         0.685       0.668
  P-value RMSEA <= 0.05                          0.000       0.000

  Robust RMSEA                                               0.664
  90 Percent confidence interval - lower                     0.642
  90 Percent confidence interval - upper                     0.685

Standardized Root Mean Square Residual:

  SRMR                                           0.198       0.198

Parameter Estimates:

  Standard errors                           Robust.sem
  Information                                 Expected
  Information saturated (h1) model          Structured

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  Consumption =~
    Cost.of.Living    1.000                               0.245    1.118
    Sstnbl.Cnsmptn   -0.615    0.019  -31.928    0.000   -0.151   -0.715
    Dscrtnry.Spndn    0.040    0.022    1.795    0.073    0.010    0.033
    Goods.nd.Srvcs   -0.472    0.015  -31.863    0.000   -0.116   -0.565

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .Cost.of.Living   -0.012    0.001  -10.639    0.000   -0.012   -0.249
   .Sstnbl.Cnsmptn    0.022    0.001   17.463    0.000    0.022    0.489
   .Dscrtnry.Spndn    0.087    0.002   46.997    0.000    0.087    0.999
   .Goods.nd.Srvcs    0.028    0.001   47.716    0.000    0.028    0.680
    Consumption       0.060    0.002   35.411    0.000    1.000    1.000

</code>```

Title: One factor CFA Negative Variance

Body:
I am working with a dataset with 21 variables and 3119 observations that I am interested in doing CFA, I am having issues with convergence. So in order to try to get some conceptual understanding I just took a subset of 4 variables that correspond to one domain/factor and only analyzed it by itself. I get a negative variance error and the model fit is very bad and TLI, CFI, RMSEA, values indicate this, but I don't know if this is dependent on the negative variance case or vice versa? (I have always been told not to trust results of neg variance)

Data can be found here, although I doubt it's necessary for the questions I have. https://github.com/mlowery36/dataexample/blob/main/dataCon.xlsx

Here is the correlation table corrtable

cfe <-
'
Consumption=~Cost.of.Living+Sustainable.Consumption+Discretionary.Spending+Goods.and.Services
'
fit <- cfa(cfe, data=dataCon, estimator="MLM",std.lv=TRUE)
summary(fit, standardized=TRUE, fit.measures=TRUE, rsquare=TRUE)

Warning message:
In lav_object_post_check(object) :
lavaan WARNING: some estimated ov variances are negative

summary(fit, standardized=TRUE, fit.measures=TRUE, rsquare=TRUE)
lavaan 0.6-12 ended normally after 33 iterations

Estimator                                         ML
Optimization method                           NLMINB
Number of model parameters                         8

Number of observations                          3119

Model Test User Model:
                                              Standard      Robust
  Test Statistic                              2749.411    2619.253
  Degrees of freedom                                 2           2
  P-value (Chi-square)                           0.000       0.000
  Scaling correction factor                                  1.050
    Satorra-Bentler correction

Model Test Baseline Model:

  Test statistic                              7664.214    5243.567
  Degrees of freedom                                 6           6
  P-value                                        0.000       0.000
  Scaling correction factor                                  1.462

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.641       0.500
  Tucker-Lewis Index (TLI)                      -0.076      -0.499

  Robust Comparative Fit Index (CFI)                         0.641
  Robust Tucker-Lewis Index (TLI)                           -0.077

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)               3096.127    3096.127
  Loglikelihood unrestricted model (H1)       4470.833    4470.833

  Akaike (AIC)                               -6176.255   -6176.255
  Bayesian (BIC)                             -6127.892   -6127.892
  Sample-size adjusted Bayesian (BIC)        -6153.312   -6153.312

Root Mean Square Error of Approximation:

  RMSEA                                          0.664       0.648
  90 Percent confidence interval - lower         0.643       0.628
  90 Percent confidence interval - upper         0.685       0.668
  P-value RMSEA <= 0.05                          0.000       0.000

  Robust RMSEA                                               0.664
  90 Percent confidence interval - lower                     0.642
  90 Percent confidence interval - upper                     0.685

Standardized Root Mean Square Residual:

  SRMR                                           0.198       0.198

Parameter Estimates:

  Standard errors                           Robust.sem
  Information                                 Expected
  Information saturated (h1) model          Structured

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  Consumption =~
    Cost.of.Living    1.000                               0.245    1.118
    Sstnbl.Cnsmptn   -0.615    0.019  -31.928    0.000   -0.151   -0.715
    Dscrtnry.Spndn    0.040    0.022    1.795    0.073    0.010    0.033
    Goods.nd.Srvcs   -0.472    0.015  -31.863    0.000   -0.116   -0.565

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .Cost.of.Living   -0.012    0.001  -10.639    0.000   -0.012   -0.249
   .Sstnbl.Cnsmptn    0.022    0.001   17.463    0.000    0.022    0.489
   .Dscrtnry.Spndn    0.087    0.002   46.997    0.000    0.087    0.999
   .Goods.nd.Srvcs    0.028    0.001   47.716    0.000    0.028    0.680
    Consumption       0.060    0.002   35.411    0.000    1.000    1.000


来源: stackexchange

问:
blackberry "Error Starting Module not found" adding external jar to eclipse plugin
Help

I'm using BlackBerry Java Plug-in for Eclipse Version: 1.3.0

Simulator 9800

I'm trying to run a Midlet that sucessfully runs on j2me emulator(tested).

The project compiles fine, but when I run it in the BB simulator it gives me the error:

"error starting MyApp: Module J4ME not found.

I added a jar file of J4ME as an external jar file. it seems actual j4me jar is not added to the project which
is loaded on BB simulator.

Anyway, the major problem is that it cannot run in the simulator.

I found several posts with the same problem, but the solutions they gave are for JDE, not for eclipse plugin,

or

add jar to project with "add file to project" option but that option is missing in my eclipse plug-in.

or

to add jar to other new project and then add this project to main project as dependent project(this option is also missing in eclipse)

plz kindly help me out as am new in this blackberry environmnt.

thanks in advance

ContentLicense: CC BY-SA 3.0


问:
How to add entity_effects to correspond to variable?
I wanted to add entity_effects that correspond with my column host_id, and add drop_absorbed = True to define the data.

panel_data

This is what I tried:

panel.reset_index(inplace = True)

modFE = PanelOLS(panel.price_USD2, panel[['bedrooms','beds','number_of_reviews','review_scores_rating','host_is_superhost2_x','n_listings','centrococo_d','basilica_d']], entity_effects = panel.host_id, time_effects = False, drop_absorbed = True)

resFE = modFE.fit(cov_type = 'unadjusted')

print(resFE)

However, it returned "ValueError: series can only be used with a 2-level MultiIndex" in modFE

ContentLicense: CC BY-SA 4.0


问:
Flutter: "Error: Method not found: 'allowInterop'"
I've made a Flutter Web App 9 months ago, and today when i open the code again to fix an issue i can't run it on web.

I've updated Flutter/Dart version and all the package dependencies.

When i try to run it on Web i get this errors related with 'allowInterop' method:

```<code>../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:73:23: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var nextWrapper = allowInterop((Object? noValue) {
                      ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:100:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var updateFunctionWrap = allowInterop((transaction) =>
                             ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:178:11: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((firestore_interop.LoadBundleTaskProgressJsImpl data) {
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:188:21: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      jsObject.then(allowInterop((value) {
                    ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:190:11: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      }), allowInterop((error) {
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:331:9: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:335:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    final errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:420:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:423:26: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    final errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:626:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
 - 'QuerySnapshot' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:378:27: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((auth_interop.UserJsImpl? user) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:382:28: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) => _changeController!.addError(e));
                           ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:417:27: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((auth_interop.UserJsImpl? user) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:422:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((e) => _idTokenChangedController!.addError(e));
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart:64:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase_messaging_web/src/interop/messaging.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart:67:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase_messaging_web/src/interop/messaging.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
    getPath: allowInterop(strategy.getPath),
             ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
    getState: allowInterop(strategy.getState),
              ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
    addPopStateListener: allowInterop(strategy.addPopStateListener),
                         ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
    prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
                        ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
    pushState: allowInterop(strategy.pushState),
               ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
    replaceState: allowInterop(strategy.replaceState),
                  ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
    go: allowInterop(strategy.go),
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.0.1/lib/src/interop/utils/utils.dart:89:12: Error: Method not found: 'allowInterop'.
    return allowInterop(dartObject);
           ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.0.1/lib/src/interop/utils/utils.dart:124:27: Error: Method not found: 'allowInterop'.
  return PromiseJsImpl<S>(allowInterop((
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/utils/utils.dart:69:14: Error: Method not found: 'allowInterop'.
      return allowInterop(object);
             ^^^^^^^^^^^^
Failed to compile application.
</code>```

My 'Flutter doctor -v':

```<code>[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-x64, locale en-PT)
    • Flutter version 3.3.9 on channel stable at /Users/tiago/Code/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (13 days ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tiago/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/tiago/Android/Sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.72.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 107.0.5304.121

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
</code>```

Any advice on this?

Body:
I've made a Flutter Web App 9 months ago, and today when i open the code again to fix an issue i can't run it on web.

I've updated Flutter/Dart version and all the package dependencies.

When i try to run it on Web i get this errors related with 'allowInterop' method:

../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:73:23: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var nextWrapper = allowInterop((Object? noValue) {
                      ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:100:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var updateFunctionWrap = allowInterop((transaction) =>
                             ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:178:11: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((firestore_interop.LoadBundleTaskProgressJsImpl data) {
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:188:21: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      jsObject.then(allowInterop((value) {
                    ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:190:11: Error: The method 'allowInterop' isn't defined for the class 'LoadBundleTask'.
 - 'LoadBundleTask' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      }), allowInterop((error) {
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:331:9: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:335:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    final errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:420:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:423:26: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    final errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart:626:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
 - 'QuerySnapshot' is from 'package:cloud_firestore_web/src/interop/firestore.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:378:27: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((auth_interop.UserJsImpl? user) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:382:28: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) => _changeController!.addError(e));
                           ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:417:27: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((auth_interop.UserJsImpl? user) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart:422:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.1.3/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((e) => _idTokenChangedController!.addError(e));
          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart:64:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase_messaging_web/src/interop/messaging.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart:67:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase_messaging_web/src/interop/messaging.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-3.2.8/lib/src/interop/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
    getPath: allowInterop(strategy.getPath),
             ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
    getState: allowInterop(strategy.getState),
              ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
    addPopStateListener: allowInterop(strategy.addPopStateListener),
                         ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
    prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
                        ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
    pushState: allowInterop(strategy.pushState),
               ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
    replaceState: allowInterop(strategy.replaceState),
                  ^^^^^^^^^^^^
../../flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
    go: allowInterop(strategy.go),
        ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.0.1/lib/src/interop/utils/utils.dart:89:12: Error: Method not found: 'allowInterop'.
    return allowInterop(dartObject);
           ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.0.1/lib/src/interop/utils/utils.dart:124:27: Error: Method not found: 'allowInterop'.
  return PromiseJsImpl<S>(allowInterop((
                          ^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-3.1.0/lib/src/interop/utils/utils.dart:69:14: Error: Method not found: 'allowInterop'.
      return allowInterop(object);
             ^^^^^^^^^^^^
Failed to compile application.

My 'Flutter doctor -v':

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-x64, locale en-PT)
    • Flutter version 3.3.9 on channel stable at /Users/tiago/Code/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (13 days ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tiago/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/tiago/Android/Sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.72.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 107.0.5304.121

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Any advice on this?


问:
Checking proxy on protocols ['HTTP', 'CONNECT:80', 'Sis disabled
Hello when i try to run my vs code project .py i got this error , what ineed to do?

```<code>NotImplementedError:
Exception ignored from cffi callback <function _sock_state_cb at 0x0000019B9F6B95E0>:
Traceback (most recent call last):
  File "C:\Users\Andrada\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pycares\__init__.py", line 99, in _sock_state_cb
    sock_state_cb(socket_fd, readable, writable)
  File "C:\Users\Andrada\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\aiodns\__init__.py", line 111, in _sock_state_cb
    self.loop.add_reader(fd, self._handle_event, fd, READ)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError:
</code>```
```<code>AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\proxybroker\checker.py:100: UserWarning: Not found judges for the ['HTTP', 'HTTPS'] protocol.
Checking proxy on protocols ['HTTP', 'CONNECT:80', 'SOCKS4', 'SOCKS5', 'HTTPS', 'SMTP'] is disabled.
  warnings.warn(

</code>```

nothing. i hope some-one help me

3.8.10 py version and tryed on newest last version same - error

Body:
Hello when i try to run my vs code project .py i got this error , what ineed to do?

NotImplementedError:
Exception ignored from cffi callback <function _sock_state_cb at 0x0000019B9F6B95E0>:
Traceback (most recent call last):
  File "C:\Users\Andrada\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pycares\__init__.py", line 99, in _sock_state_cb
    sock_state_cb(socket_fd, readable, writable)
  File "C:\Users\Andrada\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\aiodns\__init__.py", line 111, in _sock_state_cb
    self.loop.add_reader(fd, self._handle_event, fd, READ)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError:

AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\proxybroker\checker.py:100: UserWarning: Not found judges for the ['HTTP', 'HTTPS'] protocol.
Checking proxy on protocols ['HTTP', 'CONNECT:80', 'SOCKS4', 'SOCKS5', 'HTTPS', 'SMTP'] is disabled.
  warnings.warn(

nothing. i hope some-one help me

3.8.10 py version and tryed on newest last version same - error


问:
Tomcat deploy error: Cannot invoke Tomcat manager: Connection refused: connect
Project in ZK Framework.

with my pom.xml I am trying to: mvn tomcat7:deploy

But catching this error: Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project gettingStarted-master: Cannot invoke Tomcat manager: Connection refused: connect

```<code>            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <url>http://localhost:8080/manager/text</url>
                    <server>TomcatServer</server>
                    <path>/gettingStarted-master</path>
                </configuration>
            </plugin>
</code>```

`

tomcat-users.xml

```<code><tomcat-users\>
    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <user username="admin" password="admin" roles="manager-gui,manager-script" />
</tomcat-users\>
</code>```

settings.xml

```<code>        <server>
            <id>TomcatServer</id>
            <username>admin</username>
            <password>admin</password>
        </server>
</code>```

my workspace (think it will be need)enter image description here

Body:
Project in ZK Framework.

with my pom.xml I am trying to: mvn tomcat7:deploy

But catching this error: Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project gettingStarted-master: Cannot invoke Tomcat manager: Connection refused: connect

            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <url>http://localhost:8080/manager/text</url>
                    <server>TomcatServer</server>
                    <path>/gettingStarted-master</path>
                </configuration>
            </plugin>

`

tomcat-users.xml

<tomcat-users\>
    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <user username="admin" password="admin" roles="manager-gui,manager-script" />
</tomcat-users\>

settings.xml

        <server>
            <id>TomcatServer</id>
            <username>admin</username>
            <password>admin</password>
        </server>

my workspace (think it will be need)enter image description here


问:
WsSource OUT of Range
Have this code working initially but when I run it again it gave me this error "ThisWorkbook.Sheets("AccountsAuditlogReview")=< SUbscript out of range>. Thanks

```<code>Dim wsSource, wsExtract As Worksheets

    Set wsSource = ThisWorkbook.Sheets("AccountsAuditLogReview")* This one errors out "SUbscript out of range"
    Set wsExtract = ThisWorkbook.Sheets("IndvAcctReview")

    Rows("5:5").Select
    Selection.AutoFilter
    Selection.AutoFilter
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=4, Criteria1:="*GRP*"
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=5, Criteria1:="No"
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=7, Criteria1:="Prior"

    wsSource.Range("A6:CD300000").SpecialCells(xlCellTypeVisible).Copy
    wsExtract.Cells(2, 1).PasteSpecial

    ActiveSheet.AutoFilterMode = False
</code>```

Tried starting a new workbook with the same code but still not working.

Title: WsSource OUT of Range

Body:
Have this code working initially but when I run it again it gave me this error "ThisWorkbook.Sheets("AccountsAuditlogReview")=< SUbscript out of range>. Thanks

Dim wsSource, wsExtract As Worksheets

    Set wsSource = ThisWorkbook.Sheets("AccountsAuditLogReview")* This one errors out "SUbscript out of range"
    Set wsExtract = ThisWorkbook.Sheets("IndvAcctReview")

    Rows("5:5").Select
    Selection.AutoFilter
    Selection.AutoFilter
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=4, Criteria1:="*GRP*"
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=5, Criteria1:="No"
    ActiveSheet.Range("$A$5:$JO$100000").AutoFilter Field:=7, Criteria1:="Prior"

    wsSource.Range("A6:CD300000").SpecialCells(xlCellTypeVisible).Copy
    wsExtract.Cells(2, 1).PasteSpecial

    ActiveSheet.AutoFilterMode = False

Tried starting a new workbook with the same code but still not working.


问:
Huggingface: Fine-tuning (not enough values to unpack (expected 2, got 1))
I'm trying to fine-tune erfan226/persian-t5-paraphraser paraphrase generator model for Persian sentences. I used the Persian dataset of tapaco and reformatted it to match the glue (mrpc) dataset which is used in the fine-tuning documentation. I have uploaded my dataset in alighasemi/farsi_paraphrase_detection.

I followed every step of the Trainer video (Tokenization, ComputerMetrics, TrainingArgs, ...). However, when I run trainer.train() I get the following error:

```<code>---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-28-3435b262f1ae> in <module>
----> 1 trainer.train()

7 frames
/usr/local/lib/python3.8/dist-packages/transformers/models/t5/modeling_t5.py in forward(self, input_ids, attention_mask, encoder_hidden_states, encoder_attention_mask, inputs_embeds, head_mask, cross_attn_head_mask, past_key_values, use_cache, output_attentions, output_hidden_states, return_dict)
    941             inputs_embeds = self.embed_tokens(input_ids)
    942
--> 943         batch_size, seq_length = input_shape
    944
    945         # required mask seq length can be calculated via length of past

ValueError: not enough values to unpack (expected 2, got 1)
</code>```

Here's my code:

```<code>dataset = load_dataset("alighasemi/farsi_paraphrase_detection")
</code>```
```<code>tokenizer = AutoTokenizer.from_pretrained("erfan226/persian-t5-paraphraser")
</code>```
```<code>def tokenize_function(examples):
    return tokenizer(examples["sentence1"], examples["sentence2"], truncation=True)
</code>```
```<code>tokenized_dataset = dataset.map(tokenize_function, batched=True)
data_collator = DataCollatorWithPadding(tokenizer)
</code>```
```<code>model = AutoModelForSeq2SeqLM.from_pretrained("erfan226/persian-t5-paraphraser", num_labels=2)
</code>```

I could not use the AutoModelForSequenceClassification to load the model since I would get this error:

```<code>---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-29-5650b38a14f3> in <module>
----> 1 model = AutoModelForSequenceClassification.from_pretrained("erfan226/persian-t5-paraphraser", num_labels=2)

/usr/local/lib/python3.8/dist-packages/transformers/models/auto/auto_factory.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
    464                 pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs
    465             )
--> 466         raise ValueError(
    467             f"Unrecognized configuration class {config.__class__} for this kind of AutoModel: {cls.__name__}.\n"
    468             f"Model type should be one of {', '.join(c.__name__ for c in cls._model_mapping.keys())}."

ValueError: Unrecognized configuration class <class 'transformers.models.t5.configuration_t5.T5Config'> for this kind of AutoModel: AutoModelForSequenceClassification.
Model type should be one of AlbertConfig, BartConfig, BertConfig, BigBirdConfig, BigBirdPegasusConfig, BloomConfig, CamembertConfig, CanineConfig, ConvBertConfig, CTRLConfig, Data2VecTextConfig, DebertaConfig, DebertaV2Config, DistilBertConfig, ElectraConfig, ErnieConfig, EsmConfig, FlaubertConfig, FNetConfig, FunnelConfig, GPT2Config, GPTNeoConfig, GPTJConfig, IBertConfig, LayoutLMConfig, LayoutLMv2Config, LayoutLMv3Config, LEDConfig, LiltConfig, LongformerConfig, LukeConfig, MarkupLMConfig, MBartConfig, MegatronBertConfig, MobileBertConfig, MPNetConfig, MvpConfig, NezhaConfig, NystromformerConfig, OpenAIGPTConfig, OPTConfig, PerceiverConfig, PLBartConfig, QDQBertConfig, ReformerConfig, RemBertConfig, RobertaConfig, RoCBertConfig, RoFormerConfig, SqueezeBertConfig, TapasConfig, TransfoXLConfig, XLMConfig, XLMRobertaConfig, XLMRobertaXLConfig, XLNetConfig, YosoConfig.
</code>```
```<code>training_args = TrainingArguments(
    "farsi_paraphraser",
    num_train_epochs=5,
    evaluation_strategy="epoch"
)
</code>```
```<code>trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_dataset["train"],
    eval_dataset=tokenized_dataset["validation"],
    data_collator=data_collator,
    tokenizer=tokenizer,
)
</code>```
```<code>trainer.train()
</code>```

I would be happy if you could help me

Body:
I'm trying to fine-tune erfan226/persian-t5-paraphraser paraphrase generator model for Persian sentences. I used the Persian dataset of tapaco and reformatted it to match the glue (mrpc) dataset which is used in the fine-tuning documentation. I have uploaded my dataset in alighasemi/farsi_paraphrase_detection.

I followed every step of the Trainer video (Tokenization, ComputerMetrics, TrainingArgs, ...). However, when I run trainer.train() I get the following error:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-28-3435b262f1ae> in <module>
----> 1 trainer.train()

7 frames
/usr/local/lib/python3.8/dist-packages/transformers/models/t5/modeling_t5.py in forward(self, input_ids, attention_mask, encoder_hidden_states, encoder_attention_mask, inputs_embeds, head_mask, cross_attn_head_mask, past_key_values, use_cache, output_attentions, output_hidden_states, return_dict)
    941             inputs_embeds = self.embed_tokens(input_ids)
    942
--> 943         batch_size, seq_length = input_shape
    944
    945         # required mask seq length can be calculated via length of past

ValueError: not enough values to unpack (expected 2, got 1)

Here's my code:

dataset = load_dataset("alighasemi/farsi_paraphrase_detection")

tokenizer = AutoTokenizer.from_pretrained("erfan226/persian-t5-paraphraser")

def tokenize_function(examples):
    return tokenizer(examples["sentence1"], examples["sentence2"], truncation=True)

tokenized_dataset = dataset.map(tokenize_function, batched=True)
data_collator = DataCollatorWithPadding(tokenizer)

model = AutoModelForSeq2SeqLM.from_pretrained("erfan226/persian-t5-paraphraser", num_labels=2)

I could not use the AutoModelForSequenceClassification to load the model since I would get this error:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-29-5650b38a14f3> in <module>
----> 1 model = AutoModelForSequenceClassification.from_pretrained("erfan226/persian-t5-paraphraser", num_labels=2)

/usr/local/lib/python3.8/dist-packages/transformers/models/auto/auto_factory.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
    464                 pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs
    465             )
--> 466         raise ValueError(
    467             f"Unrecognized configuration class {config.__class__} for this kind of AutoModel: {cls.__name__}.\n"
    468             f"Model type should be one of {', '.join(c.__name__ for c in cls._model_mapping.keys())}."

ValueError: Unrecognized configuration class <class 'transformers.models.t5.configuration_t5.T5Config'> for this kind of AutoModel: AutoModelForSequenceClassification.
Model type should be one of AlbertConfig, BartConfig, BertConfig, BigBirdConfig, BigBirdPegasusConfig, BloomConfig, CamembertConfig, CanineConfig, ConvBertConfig, CTRLConfig, Data2VecTextConfig, DebertaConfig, DebertaV2Config, DistilBertConfig, ElectraConfig, ErnieConfig, EsmConfig, FlaubertConfig, FNetConfig, FunnelConfig, GPT2Config, GPTNeoConfig, GPTJConfig, IBertConfig, LayoutLMConfig, LayoutLMv2Config, LayoutLMv3Config, LEDConfig, LiltConfig, LongformerConfig, LukeConfig, MarkupLMConfig, MBartConfig, MegatronBertConfig, MobileBertConfig, MPNetConfig, MvpConfig, NezhaConfig, NystromformerConfig, OpenAIGPTConfig, OPTConfig, PerceiverConfig, PLBartConfig, QDQBertConfig, ReformerConfig, RemBertConfig, RobertaConfig, RoCBertConfig, RoFormerConfig, SqueezeBertConfig, TapasConfig, TransfoXLConfig, XLMConfig, XLMRobertaConfig, XLMRobertaXLConfig, XLNetConfig, YosoConfig.

training_args = TrainingArguments(
    "farsi_paraphraser",
    num_train_epochs=5,
    evaluation_strategy="epoch"
)

trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_dataset["train"],
    eval_dataset=tokenized_dataset["validation"],
    data_collator=data_collator,
    tokenizer=tokenizer,
)

trainer.train()

I would be happy if you could help me


问:
Firebase v9 Auth / is there's a way to make auth instant?
```<code>    import {
      initializeApp
    } from "firebase/app";
    import {
      browserLocalPersistence,
      getAuth,
      setPersistence,
    } from "firebase/auth";
    import {
      getFirestore
    } from "firebase/firestore";
    import {
      getStorage
    } from "firebase/storage";

    // TODO: Replace the following with your app's Firebase project configuration

    const firebaseConfig = {
            //
};
    export const app = initializeApp(firebaseConfig);
    export const auth = getAuth(app);
    setPersistence(auth, browserLocalPersistence);
    export const storage = getStorage(app);
    export const db = getFirestore();
</code>```

This is my firebase SDK with initialization with AuthPersistence

```<code>import { useState, useEffect } from "react";
import { onAuthStateChanged } from "firebase/auth";
import { auth } from "./firebase";
import { useRouter } from "next/router";
import { useContext, createContext } from "react";
const Context = createContext();
export const UseAuth = ({ children }) => {
  const [currentUser, setCurrentUser] = useState([]);
  const router = useRouter();
  useEffect(() => {
    const unsub = onAuthStateChanged(auth, (user) => {
      if (user) {
        setCurrentUser(user);
        router.push("/panel");
      }
    });
    console.log(currentUser);
    return unsub;
  }, []);

  return (
    <Context.Provider value={{ currentUser }}>{children}</Context.Provider>
  );
};

export const useStateContext = () => useContext(Context);
</code>```

This is my UseAuth Context.The biggest problem is that authorization is not instantaneous. I have the user interface load first, and then the authorization happens. And the whole user side has to redraw itself again. This makes the user experience disgusting. Why does it have to take another couple of seconds for authorization to happen when the page loads? Are there any ways to make authorization instantaneous?

Body:
    import {
      initializeApp
    } from "firebase/app";
    import {
      browserLocalPersistence,
      getAuth,
      setPersistence,
    } from "firebase/auth";
    import {
      getFirestore
    } from "firebase/firestore";
    import {
      getStorage
    } from "firebase/storage";

    // TODO: Replace the following with your app's Firebase project configuration

    const firebaseConfig = {
            //
};
    export const app = initializeApp(firebaseConfig);
    export const auth = getAuth(app);
    setPersistence(auth, browserLocalPersistence);
    export const storage = getStorage(app);
    export const db = getFirestore();

This is my firebase SDK with initialization with AuthPersistence

import { useState, useEffect } from "react";
import { onAuthStateChanged } from "firebase/auth";
import { auth } from "./firebase";
import { useRouter } from "next/router";
import { useContext, createContext } from "react";
const Context = createContext();
export const UseAuth = ({ children }) => {
  const [currentUser, setCurrentUser] = useState([]);
  const router = useRouter();
  useEffect(() => {
    const unsub = onAuthStateChanged(auth, (user) => {
      if (user) {
        setCurrentUser(user);
        router.push("/panel");
      }
    });
    console.log(currentUser);
    return unsub;
  }, []);

  return (
    <Context.Provider value={{ currentUser }}>{children}</Context.Provider>
  );
};

export const useStateContext = () => useContext(Context);

This is my UseAuth Context.The biggest problem is that authorization is not instantaneous. I have the user interface load first, and then the authorization happens. And the whole user side has to redraw itself again. This makes the user experience disgusting. Why does it have to take another couple of seconds for authorization to happen when the page loads? Are there any ways to make authorization instantaneous?


问:
How to refresh a Spring Boot bean without losing data?
I'm currently working on an application and I need to keep track of some of data. For the moment, the data is being stored in a priority queue because is the most suitable data structure for the purpose I'm interesting on. I've read that creating a bean for the priority queue is nice because the instance of the data structure is just created at the same moment the app runs so that you only instantiate the data structure once. My question is the following: My priority queue needs to know today's date so as to prioritize the elements into it so, how can I configure this bean to keep updating today's date every day?

I tried to create another bean to handle today's date so that I can make a call to this bean in every controller in which there's a insertion into the priority queue, but I don't know if this bean updates automatically or if I have to do something else to configure it.

The structure of the @Configuration class is the following:

```<code>@Configuration
public class Prioritization{

    @Bean("current_date")
    public LocalDateTime get_current_date(){
        return LocalDateTime.now().withHour(0).withMinute(0).withSecond(0);
    }

    @Bean("prioritized_queue")
    public PriorityQueue<MyClass> prioritized_queue(){
        return new PriorityQueue<>(new Comparator<MyClass>(
           // Internal structure for comparing two objects of my class.
        ));
    }

}
</code>```

Body:
I'm currently working on an application and I need to keep track of some of data. For the moment, the data is being stored in a priority queue because is the most suitable data structure for the purpose I'm interesting on. I've read that creating a bean for the priority queue is nice because the instance of the data structure is just created at the same moment the app runs so that you only instantiate the data structure once. My question is the following: My priority queue needs to know today's date so as to prioritize the elements into it so, how can I configure this bean to keep updating today's date every day?

I tried to create another bean to handle today's date so that I can make a call to this bean in every controller in which there's a insertion into the priority queue, but I don't know if this bean updates automatically or if I have to do something else to configure it.

The structure of the @Configuration class is the following:

@Configuration
public class Prioritization{

    @Bean("current_date")
    public LocalDateTime get_current_date(){
        return LocalDateTime.now().withHour(0).withMinute(0).withSecond(0);
    }

    @Bean("prioritized_queue")
    public PriorityQueue<MyClass> prioritized_queue(){
        return new PriorityQueue<>(new Comparator<MyClass>(
           // Internal structure for comparing two objects of my class.
        ));
    }

}


问:
How to get an absolute path in ASP.NET Core MVC app from an ApiController?
I'm attempting to re-write an old .Net framework 4.5 web app to an ASP.NET Core MVP app. The existing code can access an absolute path like so and can pass it to a web view.

page.cshtml:

```<code><head>
    @{
        var version = new VersionController().Get();
    }
</head>
</code>```

VersionController.cs:

```<code>public class VersionController : ApiController
{
    public IEnumerable<string> Get()
    {
        var results = new List<string>();

        FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(HostingEnvironment.MapPath("~") + @"\bin\Application.Common.dll");
        results.Add(string.Format("{0} ({1})", fileVersionInfo.FileDescription, fileVersionInfo.FileVersion));

        return results;
    }
}
</code>```

How can this be achieved in a .NET 6 MVC app?

I think I could create a controller like so but I'm unsure how to create the constructor in the .cshtml page.

```<code>public class VersionController : ApiController
{
    private readonly IWebHostEnvironment _webHostEnvironment;

    public VersionController(IWebHostEnvironment webHostEnvironment)
    {
        _webHostEnvironment = webHostEnvironment;
    }

    public IEnumerable<string> Get()
    {
        var results = new List<string>();

        string webRootPath = _webHostEnvironment.WebRootPath;

        FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(Path.Combine(webRootPath, @"\bin\Application.Common.dll"));
        results.Add(string.Format("{0} ({1})", fileVersionInfo.FileDescription, fileVersionInfo.FileVersion));

        return results;
    }
}
</code>```

Body:
I'm attempting to re-write an old .Net framework 4.5 web app to an ASP.NET Core MVP app. The existing code can access an absolute path like so and can pass it to a web view.

page.cshtml:

    @{
        var version = new VersionController().Get();
    }

VersionController.cs:

public class VersionController : ApiController
{
    public IEnumerable<string> Get()
    {
        var results = new List<string>();

        FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(HostingEnvironment.MapPath("~") + @"\bin\Application.Common.dll");
        results.Add(string.Format("{0} ({1})", fileVersionInfo.FileDescription, fileVersionInfo.FileVersion));

        return results;
    }
}

How can this be achieved in a .NET 6 MVC app?

I think I could create a controller like so but I'm unsure how to create the constructor in the .cshtml page.

public class VersionController : ApiController
{
    private readonly IWebHostEnvironment _webHostEnvironment;

    public VersionController(IWebHostEnvironment webHostEnvironment)
    {
        _webHostEnvironment = webHostEnvironment;
    }

    public IEnumerable<string> Get()
    {
        var results = new List<string>();

        string webRootPath = _webHostEnvironment.WebRootPath;

        FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(Path.Combine(webRootPath, @"\bin\Application.Common.dll"));
        results.Add(string.Format("{0} ({1})", fileVersionInfo.FileDescription, fileVersionInfo.FileVersion));

        return results;
    }
}


问:
How to Explode array in a Dataframe that are of different lengths at different indexes of the Dataframe?
DataFrame image

Focus on the 'Image_data' column. I want to split the arrays present at each index into different columns.
The arrays are of different length at each index. So, I need to split according to the longest array. If one array is smaller than the longest array, it should place '0.0' in that extra column for smaller array.

Methods I have tried:

I have tried Padding the arrays using the length of the longest array.

pd.DataFrame(df.iloc[:,0].to_list())

Errors:

pad_width must be of integral type.

Error of no type (tells me ErrorType '')

Can someone help me split the arrays into different columns??


问:
How to update notification text only when notification is visible?
I want to implement a persistent notification that displays some text, and the text changes every few seconds. But, to conserve resources, the text should only change when it is  visible on the screen. For example, when the OS top status bar is pulled down revealing all notifications, or when the lock screen is shown (for non-private notifications). How can we detect these conditions to know to update the notification text?</p>


问:
get RStudio to run an entire script on save from external source
I am editing r scripts in an external editor and then running them in RStudio. I have "Source on Save" selected, so the script does update in RStudio, but I still have to run the script using cmd-enter or cmd-opt-R as a separate step every time I save.

Is there a way to get RStudio to not only update the script but run the whole thing on external save?


问:
How to assign a group of students to different courses based on preferences and capacity?
A university wants help with assigning students to courses. The different courses have capacity restrictions and since there is capacity restrictions the university offers multiple timeslots for the popular courses. If a student register for more than one course, only one of the courses should be assigned. Additionally to the assignment, the university is also interesting on measuring the quality of it.
Hence, I have to provide a report on how many students got all the curses they requested, how
many did not get any course assign, and the average of the proportion of fulfillment of the students
requests.
How can I model this using OOP? I must create one student class and one courses class.
I am a bit stuck here. Need some help to get me started.</p>


问:
How can I add Qt icon resource in a makefile?
I have the following makefile:

CXX = "gcc-11.1.0-mingw-w64-9.0.0-r2\mingw64\bin\g++.exe"
CC = "gcc-11.1.0-mingw-w64-9.0.0-r2\mingw64\bin\gcc.exe"
CFLAGS = -Wall
CXXFLAGS = -Wall -D__STDC_LIMIT_MACROS

CDEFINES = \
    -D SOMETHING_HERE

CXXDEFINES = \
    -DQT_NO_VERSION_TAGGING

CXXINCDIRS = \
    -I "C:\Qt\6.4.1\mingw_64\include\QtGui" \
    -I "C:\Qt\6.4.1\mingw_64\include\QtCore" \
    -I "C:\Qt\6.4.1\mingw_64\include\QtWidgets" \
    -I "C:\Qt\6.4.1\mingw_64\include"

CXXLIBS = \
    -L"C:\Qt\6.4.1\mingw_64\lib" \
    -L"C:\Qt\6.4.1\mingw_64\bin" \
    -lQt6Core \
    -lQt6Gui \
    -lQt6Widgets

OUTPUTDIR = build

CSOURCES=${wildcard *.c ../Print/*.c CallPrint/*.c}
COBJECTS=${patsubst %.c,$(OUTPUTDIR)/%.o,${CSOURCES}}

CXXSOURCES=${wildcard *.cpp src/*.cpp }
CXXOBJECTS=${patsubst %.cpp,$(OUTPUTDIR)/%.o,${CXXSOURCES}}

EXECUTABLE=myapp

all: $(OUTPUTDIR)/$(EXECUTABLE)

$(OUTPUTDIR)/$(EXECUTABLE): $(COBJECTS) $(CXXOBJECTS)
    $(CXX) ${CXXINCDIRS} ${CXXLIBS} ${CXXDEFINES} $(OUTPUTDIR)/*.o -o $@

$(OUTPUTDIR)/%.o : %.c
    @if not exist $(OUTPUTDIR) mkdir $(subst /,\, $(OUTPUTDIR))
    ${CC} -o $(OUTPUTDIR)/$(@F) $< -c ${CFLAGS}

$(OUTPUTDIR)/%.o : %.cpp
    @if not exist $(OUTPUTDIR) mkdir $(subst /,\, $(OUTPUTDIR))
    ${CXX} -o $(OUTPUTDIR)/$(@F) $< -c ${CXXFLAGS} ${CXXINCDIRS} ${CXXLIBS} ${CXXDEFINES}

clean:
    @if exist $(OUTPUTDIR) rmdir /S /Q $(OUTPUTDIR)
```

The thing is that it is an existing project and I cannot change it to a cmake file.
How can I add an icon to a windows makefile? and what is the corresponding line of code to call it?

Body:
I have the following makefile:

CXX = "gcc-11.1.0-mingw-w64-9.0.0-r2\mingw64\bin\g++.exe"
CC = "gcc-11.1.0-mingw-w64-9.0.0-r2\mingw64\bin\gcc.exe"
CFLAGS = -Wall
CXXFLAGS = -Wall -D__STDC_LIMIT_MACROS

CDEFINES = \
    -D SOMETHING_HERE

CXXDEFINES = \
    -DQT_NO_VERSION_TAGGING

CXXINCDIRS = \
    -I "C:\Qt\6.4.1\mingw_64\include\QtGui" \
    -I "C:\Qt\6.4.1\mingw_64\include\QtCore" \
    -I "C:\Qt\6.4.1\mingw_64\include\QtWidgets" \
    -I "C:\Qt\6.4.1\mingw_64\include"

CXXLIBS = \
    -L"C:\Qt\6.4.1\mingw_64\lib" \
    -L"C:\Qt\6.4.1\mingw_64\bin" \
    -lQt6Core \
    -lQt6Gui \
    -lQt6Widgets

OUTPUTDIR = build

CSOURCES=${wildcard *.c ../Print/*.c CallPrint/*.c}
COBJECTS=${patsubst %.c,$(OUTPUTDIR)/%.o,${CSOURCES}}

CXXSOURCES=${wildcard *.cpp src/*.cpp }
CXXOBJECTS=${patsubst %.cpp,$(OUTPUTDIR)/%.o,${CXXSOURCES}}

EXECUTABLE=myapp

all: $(OUTPUTDIR)/$(EXECUTABLE)

$(OUTPUTDIR)/$(EXECUTABLE): $(COBJECTS) $(CXXOBJECTS)
    $(CXX) ${CXXINCDIRS} ${CXXLIBS} ${CXXDEFINES} $(OUTPUTDIR)/*.o -o $@

$(OUTPUTDIR)/%.o : %.c
    @if not exist $(OUTPUTDIR) mkdir $(subst /,\, $(OUTPUTDIR))
    ${CC} -o $(OUTPUTDIR)/$(@F) $< -c ${CFLAGS}

$(OUTPUTDIR)/%.o : %.cpp
    @if not exist $(OUTPUTDIR) mkdir $(subst /,\, $(OUTPUTDIR))
    ${CXX} -o $(OUTPUTDIR)/$(@F) $< -c ${CXXFLAGS} ${CXXINCDIRS} ${CXXLIBS} ${CXXDEFINES}

clean:
    @if exist $(OUTPUTDIR) rmdir /S /Q $(OUTPUTDIR)

The thing is that it is an existing project and I cannot change it to a cmake file.
How can I add an icon to a windows makefile? and what is the corresponding line of code to call it?


问:
How to restrict user printscreen and copy text, refresh the browser when attending online coding test using javascript?
I tired toobar = o and addressbar = 0 function. Page open in new window without toolbar and addressbar but the page will refresh and time also refresh I want to restrict page refresh when timer is on because if user click f5 key or refresh the timer also refreshed.</p>


问:
How to get AWS Aurora Maintenance notification
Wanted to see if there is a service in AWS which can notify us (in advance) whenever an Aurora hardware/OS maintenance is scheduled?

I checked Eventbridge service and could not find any Aurora maintenance related event. So can someone please suggest how to get email notifications whenever Aurora Maintenance is schduled?

Thanks


问:
how to make rigidbody slide on diagonal wall collision
I'm struggling a lot with moving Rigidbodies, currently I have this method to move player:

```<code>private void SimpleMove()
        {
            var scaledMovementSpeed = movementSpeed;
            _isRunning = false;
            if (Run)
            {
                scaledMovementSpeed *= runMultiplier;
                _isRunning = true;
            }
            var trans = transform;
            var forward = trans.forward;
            var newDirection = Vector3.RotateTowards(forward, SimpleMoveVector, Time.fixedDeltaTime * rotationSpeed, 0.0f);
            trans.rotation = Quaternion.LookRotation(newDirection, trans.up);
            var velocity = _rigidbody.velocity;
            var velocityChange = new Vector3(forward.x * scaledMovementSpeed, velocity.y, forward.z * scaledMovementSpeed) - velocity;
            _rigidbody.AddForce(velocityChange, ForceMode.VelocityChange);
            _isMoving = true;
        }
</code>```

Map is build out of simple cubes right now and the player has capsule collider on him with freeze rotation on all axes.

By tweaking force values a little bit I managed to get it to work properly without the need to check for collisions myself
but

expected behavior of player going diagonally into wall is to slide perpendicular to its surface. When I get close to cube's corner character slides across but when I'm going diagonally into a wall character just stops. Haven't tried it with analog input yet.

Is there a way to properly make character slide (fe. put proper physics material on him, or the wall?) or do I need to explicitly check and manage these collisions myself for that?

I thought that my turn-and-then-go-forward method might be messing with proper colliding, but I made the turn instant and the behavior was exactly the same.

Body:
I'm struggling a lot with moving Rigidbodies, currently I have this method to move player:

private void SimpleMove()
        {
            var scaledMovementSpeed = movementSpeed;
            _isRunning = false;
            if (Run)
            {
                scaledMovementSpeed *= runMultiplier;
                _isRunning = true;
            }
            var trans = transform;
            var forward = trans.forward;
            var newDirection = Vector3.RotateTowards(forward, SimpleMoveVector, Time.fixedDeltaTime * rotationSpeed, 0.0f);
            trans.rotation = Quaternion.LookRotation(newDirection, trans.up);
            var velocity = _rigidbody.velocity;
            var velocityChange = new Vector3(forward.x * scaledMovementSpeed, velocity.y, forward.z * scaledMovementSpeed) - velocity;
            _rigidbody.AddForce(velocityChange, ForceMode.VelocityChange);
            _isMoving = true;
        }

Map is build out of simple cubes right now and the player has capsule collider on him with freeze rotation on all axes.

By tweaking force values a little bit I managed to get it to work properly without the need to check for collisions myself
but

expected behavior of player going diagonally into wall is to slide perpendicular to its surface. When I get close to cube's corner character slides across but when I'm going diagonally into a wall character just stops. Haven't tried it with analog input yet.

Is there a way to properly make character slide (fe. put proper physics material on him, or the wall?) or do I need to explicitly check and manage these collisions myself for that?

I thought that my turn-and-then-go-forward method might be messing with proper colliding, but I made the turn instant and the behavior was exactly the same.


问:
Python library to encrypt files with a GnuPG v1.2.1 Elgamal key
I'm developping an Azure function that can encrypt/decrypt PGP messages given a key and a message.

It works fine for most keys using pgpy library but I have a public key Version: GnuPG v1.2.1 (GNU/Linux) that I can't use with pgpy since it returns :

```<code>NotImplementedError: PubKeyAlgorithm.ElGamal
</code>```

I searched for library that would support this and could not find one, so I decided to implement it on my own, as it did not look too difficult and the algorithm is well described on multiple places. (I can even use the elgamal python lib)

My problem is the key format is

```<code>-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (GNU/Linux)

mQGiBEAGBfgR...4gjeSOrg5udxZPAY=
=DeVs
-----END PGP PUBLIC KEY BLOCK-----
</code>```

And I need parse it to get the base values for the elgamal algorithm:

```<code>p is an n bit prime.  The probability that p is actually prime is 1-(2^-t)
g is the square of a primitive root mod p
h = g^x mod p; x is randomly chosen, 1 <= x < p
</code>```

So what I have tried this far is to b64decode the key, then encode the bytes to utf8, some informations are readable most stay gibberish ..

And also I'm struggling to return ASCII armored data once I'm done encrypting my message I will have something like this :

```<code>41155426744616094260320646117097177014417149694981800076578614840250750912799 21847662953868369697518400876143332991536427661010013455083791071327058182726 25533970261208196790800768492397193896597431865219430397358207004668354954697 98474109913310069178222115337497647685706488829152682996028960479235003620264 45737203823163192128318007724696648616950141941868449765480536839812674490077 75421156343349776013489675322340893073631187437555299960920254302344648207981 109276522387603521366364233791986000982319400223147578897126930221436966076170 18488401135401021688982958133975082823772861068940759564364820322251740709188 90827265910982362637936753464357413123014385175560975236907746789761396065512 26765031632882957792087095719232883256771264945602713064106822591208103463697 5564468107973560028527296626687480799230695290490266959809792867232976049666 71244794049103052356092181781178951887799420583195494031510496299648642048011 97413323791458315049498899102961692661892266857994849672602511682865645282605 71465106552027587076817289250198631699837182375059034449765014072810202331202 97056406518631644075542549218057999306283588715133100119527104765778879761699 110485038492534789098488263918059645033722124555228757157121582934391248102132 82139266370810299307518275070745017159045416343382734826251477396790862859930 109150852725244251194053374807744808523920933876515828341771567293006328719174 97953680579504996947384453783557976134604995097882075015898175236326262555884 7295684970455413822681788097881898822060140399584227196856446892730212890655
</code>```

Should I just base64encode it ?

Body:
I'm developping an Azure function that can encrypt/decrypt PGP messages given a key and a message.

It works fine for most keys using pgpy library but I have a public key Version: GnuPG v1.2.1 (GNU/Linux) that I can't use with pgpy since it returns :

NotImplementedError: PubKeyAlgorithm.ElGamal

I searched for library that would support this and could not find one, so I decided to implement it on my own, as it did not look too difficult and the algorithm is well described on multiple places. (I can even use the elgamal python lib)

My problem is the key format is

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (GNU/Linux)

mQGiBEAGBfgR...4gjeSOrg5udxZPAY=
=DeVs
-----END PGP PUBLIC KEY BLOCK-----

And I need parse it to get the base values for the elgamal algorithm:

p is an n bit prime.  The probability that p is actually prime is 1-(2^-t)
g is the square of a primitive root mod p
h = g^x mod p; x is randomly chosen, 1 <= x < p

So what I have tried this far is to b64decode the key, then encode the bytes to utf8, some informations are readable most stay gibberish ..

And also I'm struggling to return ASCII armored data once I'm done encrypting my message I will have something like this :

41155426744616094260320646117097177014417149694981800076578614840250750912799 21847662953868369697518400876143332991536427661010013455083791071327058182726 25533970261208196790800768492397193896597431865219430397358207004668354954697 98474109913310069178222115337497647685706488829152682996028960479235003620264 45737203823163192128318007724696648616950141941868449765480536839812674490077 75421156343349776013489675322340893073631187437555299960920254302344648207981 109276522387603521366364233791986000982319400223147578897126930221436966076170 18488401135401021688982958133975082823772861068940759564364820322251740709188 90827265910982362637936753464357413123014385175560975236907746789761396065512 26765031632882957792087095719232883256771264945602713064106822591208103463697 5564468107973560028527296626687480799230695290490266959809792867232976049666 71244794049103052356092181781178951887799420583195494031510496299648642048011 97413323791458315049498899102961692661892266857994849672602511682865645282605 71465106552027587076817289250198631699837182375059034449765014072810202331202 97056406518631644075542549218057999306283588715133100119527104765778879761699 110485038492534789098488263918059645033722124555228757157121582934391248102132 82139266370810299307518275070745017159045416343382734826251477396790862859930 109150852725244251194053374807744808523920933876515828341771567293006328719174 97953680579504996947384453783557976134604995097882075015898175236326262555884 7295684970455413822681788097881898822060140399584227196856446892730212890655

Should I just base64encode it ?


问:
Random Prelight / OPTIONS requests hanging
Around November 17th we noticed in our production application that some of our IOS users we're experiencing HTTP requests that were hanging for sometimes 10-20 minutes before they would fail.

Example request:

```<code>curl 'https://api.example.com/api/' -H 'Accept: application/json, text/plain, */*' -H 'X-Custom-Header: accesstoken' -H 'timezone: America/Toronto' -H 'authorization: auth' --compressed
</code>```

Example Response:

Headers: None

status: [0]

Current environment

React: 17.0.2

Axios: 1.2.0

Node: 16.3.0

react-query: 4.2.1

aws-amplify: 5.0.2

API:

ExpressJS: 4.18.2

Node: 14.20.1

Cognito-express: 2.0.19

Cors: 2.8.5

Our React application build is hosted on an AWS S3 bucket with Cloudfront. Our DNS provider is Cloudflare. The API is hosted on AWS through elastic beanstalk. The API is served on NginX.

As far as we can tell, nothing significant has changed in the last several weeks that would cause this issue. (configuration as well as code)

Our API headers:

```<code>  res.setHeader(
    'Access-Control-Allow-Methods',
    'GET, POST, OPTIONS, PUT, PATCH, DELETE'
  );

  res.setHeader(
    'Access-Control-Allow-Headers',
    'origin,X-Requested-With,content-type'
  );

  res.setHeader('Access-Control-Allow-Credentials', true);
</code>```

Our cors settings:

```<code>app.use(
  cors({
    origin: [
      'https://examplewebapp1.com',
      'https://examplewebapp2.com',
      'https://examplewebapp3.com',
    ],
  })
);
</code>```

React Axios instance:

```<code>const instance = axios.create({
  baseURL: apiURL,
  timeout: 30000,
  headers: { 'X-Custom-Header': 'accesstoken', 'timezone': timezone},
});
</code>```

React Axios request interceptor:

```<code>instance.interceptors.request.use(
  async (config) => {
    try {
      const session = await Auth.currentSession();
      const accessToken = session.accessToken.jwtToken;
      config.headers.authorization = accessToken;
      return config;
    } catch (err) {
      if (err === "No current user")
      {
        console.log("There is no longer a user.")
        handleInactiveUser()
      }
      captureException(err);
      throw err;
    }
  },
  (error) => {
    return Promise.reject(error);
  },
);
</code>```

React Axios response interceptor:

```<code>instance.interceptors.response.use(
  async (resp) => {
    // irrelevant code
    return resp;
  },
  (error) => {
    // check if the preflight failed
    if (typeof error.response === 'undefined') {
      // preflight failed
    }
    if (error.response && error.response.data && error.response.data === 'No Active Account') {
      // irrelevant code
    }
    return Promise.reject(error);
  },
);
</code>```

The actual endpoints that fail are seemingly random. There are quite a few endpoints with failing preflights - we don't see a pattern. (Mostly GET requests).

During debugging on safari with the MacOS debugging tools we've seen this error a few times when we were able to replicate the issue.

```<code>[Error] XMLHttpRequest cannot load https://api.example.com due to access control checks.
</code>```

Here's what we know so far:

The users having these problems are users on IOS (versions 15.3.0 to 16.1.2)

Users are on LTE connection (doesn't occur on Wifi)

Chrome browser and Safari are both having the issue

Occurring on both PWA application and regular browsers

Areas we've looked into:

Removed DDOS protection on Cloudflare (thought Cloudflare was blocking requests)

Verified SSL certificates

Updated Axios from 0.27.2 to 1.2.0

Verified CORS settings

Added origin to the access-control-allow-headers

We've recently added react-query (2 months ago)

Updated our aws-amplify to 5.0.2

Verified our cognito user pool on aws is not rate limiting our authentications

Body:
Around November 17th we noticed in our production application that some of our IOS users we're experiencing HTTP requests that were hanging for sometimes 10-20 minutes before they would fail.

Example request:

curl 'https://api.example.com/api/' -H 'Accept: application/json, text/plain, */*' -H 'X-Custom-Header: accesstoken' -H 'timezone: America/Toronto' -H 'authorization: auth' --compressed

Example Response:

Headers: None

status: [0]

Current environment

React: 17.0.2

Axios: 1.2.0

Node: 16.3.0

react-query: 4.2.1

aws-amplify: 5.0.2

API:

ExpressJS: 4.18.2

Node: 14.20.1

Cognito-express: 2.0.19

Cors: 2.8.5

Our React application build is hosted on an AWS S3 bucket with Cloudfront. Our DNS provider is Cloudflare. The API is hosted on AWS through elastic beanstalk. The API is served on NginX.

As far as we can tell, nothing significant has changed in the last several weeks that would cause this issue. (configuration as well as code)

Our API headers:

  res.setHeader(
    'Access-Control-Allow-Methods',
    'GET, POST, OPTIONS, PUT, PATCH, DELETE'
  );

  res.setHeader(
    'Access-Control-Allow-Headers',
    'origin,X-Requested-With,content-type'
  );

  res.setHeader('Access-Control-Allow-Credentials', true);

Our cors settings:

app.use(
  cors({
    origin: [
      'https://examplewebapp1.com',
      'https://examplewebapp2.com',
      'https://examplewebapp3.com',
    ],
  })
);

React Axios instance:

const instance = axios.create({
  baseURL: apiURL,
  timeout: 30000,
  headers: { 'X-Custom-Header': 'accesstoken', 'timezone': timezone},
});

React Axios request interceptor:

instance.interceptors.request.use(
  async (config) => {
    try {
      const session = await Auth.currentSession();
      const accessToken = session.accessToken.jwtToken;
      config.headers.authorization = accessToken;
      return config;
    } catch (err) {
      if (err === "No current user")
      {
        console.log("There is no longer a user.")
        handleInactiveUser()
      }
      captureException(err);
      throw err;
    }
  },
  (error) => {
    return Promise.reject(error);
  },
);

React Axios response interceptor:

instance.interceptors.response.use(
  async (resp) => {
    // irrelevant code
    return resp;
  },
  (error) => {
    // check if the preflight failed
    if (typeof error.response === 'undefined') {
      // preflight failed
    }
    if (error.response && error.response.data && error.response.data === 'No Active Account') {
      // irrelevant code
    }
    return Promise.reject(error);
  },
);

The actual endpoints that fail are seemingly random. There are quite a few endpoints with failing preflights - we don't see a pattern. (Mostly GET requests).

During debugging on safari with the MacOS debugging tools we've seen this error a few times when we were able to replicate the issue.

[Error] XMLHttpRequest cannot load https://api.example.com due to access control checks.

Here's what we know so far:

The users having these problems are users on IOS (versions 15.3.0 to 16.1.2)

Users are on LTE connection (doesn't occur on Wifi)

Chrome browser and Safari are both having the issue

Occurring on both PWA application and regular browsers

Areas we've looked into:

Removed DDOS protection on Cloudflare (thought Cloudflare was blocking requests)

Verified SSL certificates

Updated Axios from 0.27.2 to 1.2.0

Verified CORS settings

Added origin to the access-control-allow-headers

We've recently added react-query (2 months ago)

Updated our aws-amplify to 5.0.2

Verified our cognito user pool on aws is not rate limiting our authentications


问:
How do I access a shared asset via Angular mdule federation?
I'm using Angular 14 and module federation.  In my remote app, I have this file structure

```<code>- package.json
- webpack.config.js
+ src
    - settings.json
    + app
        + services
            - app.service.ts
</code>```

In my app.service.ts file, I access a static JSON file like so

```<code>@Injectable({
  providedIn: 'root'
})
export class AppService {
    ...
     public init() {
        const request = new XMLHttpRequest();
        request.open('GET', this.configUrl, false);
        request.send(null);
        ...
    }
</code>```

In my webpack.config.js file I attempt to expose my module and file like so

```<code>module.exports = withModuleFederationPlugin({

  name: 'productlist',

  exposes: {
    './Component': './src/app/app.component.ts',
    './dashboard':'./src/app/my-product-list/my-product-list.module.ts'
  },

  shared: {
    '.settings.json': {
      singleton: true,
      eager: true,
      import: './src/settings.json',
      requiredVersion: 'auto',
    },
    ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
  },

});
</code>```

Problem is, when I access my remote via a shell application, the "settings.json" file can no longer be found.  How do I reference it from, or share it with my shell?  I have this in my shell's webpack.config.js file

```<code>module.exports = withModuleFederationPlugin({

  name: 'shellapp',

  remotes: {
    "productlist": "http://localhost:4204/remoteEntry.js",
    "settings.json": "http://localhost:4202/settings.json",
  },
    ...

  shared: {
    ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
  },

});
</code>```

Body:
I'm using Angular 14 and module federation.  In my remote app, I have this file structure

- package.json
- webpack.config.js
+ src
    - settings.json
    + app
        + services
            - app.service.ts

In my app.service.ts file, I access a static JSON file like so

@Injectable({
  providedIn: 'root'
})
export class AppService {
    ...
     public init() {
        const request = new XMLHttpRequest();
        request.open('GET', this.configUrl, false);
        request.send(null);
        ...
    }

In my webpack.config.js file I attempt to expose my module and file like so

module.exports = withModuleFederationPlugin({

  name: 'productlist',

  exposes: {
    './Component': './src/app/app.component.ts',
    './dashboard':'./src/app/my-product-list/my-product-list.module.ts'
  },

  shared: {
    '.settings.json': {
      singleton: true,
      eager: true,
      import: './src/settings.json',
      requiredVersion: 'auto',
    },
    ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
  },

});

Problem is, when I access my remote via a shell application, the "settings.json" file can no longer be found.  How do I reference it from, or share it with my shell?  I have this in my shell's webpack.config.js file

module.exports = withModuleFederationPlugin({

  name: 'shellapp',

  remotes: {
    "productlist": "http://localhost:4204/remoteEntry.js",
    "settings.json": "http://localhost:4202/settings.json",
  },
    ...

  shared: {
    ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
  },

});


问:
Add character to all nodes in phylogenetic tree
My goal is to add a double underscore ("__") at all nodes (internal and branches) or at least to the internal nodes of a tree in Newick format.

The tree looks like this:

```<code>(EP00698_Gefionella_okellyi,(EP00699_Malawimonas_sp_californiana,EP00700_Malawimonas_jakobiformis)),((EP00004_Rigifila_ramosa,(EP00001_Collodictyon_triciliatum,EP00002_Diphylleia_rotans)),EP00003_Mantamonas_plastica)
</code>```

I tried to add them with perl:

```<code>#!/usr/bin/perl
 use Bio::Phylo::IO 'parse';

 my $newick = '(EP00698_Gefionella_okellyi,(EP00699_Malawimonas_sp_californiana,EP00700_Malawimonas_jakobiformis)),((EP00004_Rigifila_ramosa,(EP00001_Collodictyon_triciliatum,EP00002_Diphylleia_rotans)),EP00003_Mantamonas_plastica);';
 my $tree = parse( '-format' => 'newick', '-string' => $newick )->first;

 $tree->visit(
    sub {
        my $node = shift;
        $node->set_name( __ ) if $node->is_internal;
    }
 );

 print $tree->to_newick();;

</code>```

As a result, it gives me the exact same tree, without the modifications that I am trying to get.

Body:
My goal is to add a double underscore ("__") at all nodes (internal and branches) or at least to the internal nodes of a tree in Newick format.

The tree looks like this:

(EP00698_Gefionella_okellyi,(EP00699_Malawimonas_sp_californiana,EP00700_Malawimonas_jakobiformis)),((EP00004_Rigifila_ramosa,(EP00001_Collodictyon_triciliatum,EP00002_Diphylleia_rotans)),EP00003_Mantamonas_plastica)

I tried to add them with perl:

#!/usr/bin/perl
 use Bio::Phylo::IO 'parse';

 my $newick = '(EP00698_Gefionella_okellyi,(EP00699_Malawimonas_sp_californiana,EP00700_Malawimonas_jakobiformis)),((EP00004_Rigifila_ramosa,(EP00001_Collodictyon_triciliatum,EP00002_Diphylleia_rotans)),EP00003_Mantamonas_plastica);';
 my $tree = parse( '-format' => 'newick', '-string' => $newick )->first;

 $tree->visit(
    sub {
        my $node = shift;
        $node->set_name( __ ) if $node->is_internal;
    }
 );

 print $tree->to_newick();;

As a result, it gives me the exact same tree, without the modifications that I am trying to get.


问:
NodeJS require doesn't work. Cannot import downloaded npm modules
I have a slight problem with a basic Node.JS method. When I'm trying to use "require()' method to import any downloaded (with 'npm install ..) module/library, I get a Visual Studio Code message that asks 'to convert 'require'(which is a Common JS module) into ES. If I do it, it transforms 'require()' into 'import..' though I want keep using 'require()'. Why is it so ? I read somewhere that Common JS is already included in the Node.JS environment though.

Then, when trying to compile my index.js file (with 'node index.js'), I obviously get an error about 'require' not recognized method.

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users...index.js from C:\Users...index.js not supported.

I tried then to install Webpack to fix this issue, but nothing change. I also kind of installed CommonJS (npm i common-js)..

Another common answer was to remove 'type':'module' from package.json file which normally should allow to use 'require', but I don't even have such a line in the file.

On top of that I've recently read that 'require' is not compatible with browser development tools (it's ok). But I'm trying to import a downloaded module/npm package in VSC terminal, not even in a browser.

As you understand I'm new to Node.JS, but I don't really get what's going on in this case...


问:
Define setuptools path for each import module
Given the following project structure:

```<code>root
 └── dir1
      ├─ setup.py
      ├─ script1.py
      ├── processor
      │   ├─ preprocessor.py
      │   └─ postprocessor.py
      │
      ├──src_dir
      │   ├─ predictor.py
      │   └─ script2.py
      │
</code>```

I would like the custom package to ONLY contain the two scripts inside the processor folder and the predictor.pyscript. Moreover, the scripts should be accessible via from processor.preprocessor import ... while the predictor to be in the main root and therefore importable as from predictor import ....

I I should then run the following setup script: python setup.py sdist --formats=gztar:

```<code>from setuptools import setup

setup(name="processors",
      version="0.1",
      ...
      )

</code>```

Body:
Given the following project structure:

root
 └── dir1
      ├─ setup.py
      ├─ script1.py
      ├── processor
      │   ├─ preprocessor.py
      │   └─ postprocessor.py
      │
      ├──src_dir
      │   ├─ predictor.py
      │   └─ script2.py
      │

I would like the custom package to ONLY contain the two scripts inside the processor folder and the predictor.pyscript. Moreover, the scripts should be accessible via from processor.preprocessor import ... while the predictor to be in the main root and therefore importable as from predictor import ....

I I should then run the following setup script: python setup.py sdist --formats=gztar:

from setuptools import setup

setup(name="processors",
      version="0.1",
      ...
      )


问:
CompletableFuture with api call
I am trying to use CompletableFuture with lambda api call. I receive a set of inputs that I need to process via my lambda in batches of 5 and then display them. I am using CompletableFuture for the first time and want to understand if i am using it correctly to help parallel process my code. I want to call the api in paralleling for every 5 inputs.</p>
```<code>List<Info> listOfInputs = new LinkedList<>();

List<CompletableFuture<List<Info>>> futures = new ArrayList<>();
try {
    for (int iterator = 0; iterator < inputs.length; iterator = iterator + 5)) {
        int finalIterator = iterator;
        CompletableFuture<List<Info>> future = CompletableFuture.supplyAsync(() -> {
            return getAllInputs(Arrays.copyOfRange(inputs, finalIterator,
                                    Math.min(inputs.length, finalIterator + 5)));
        });
        futures.add(future);
    }
    CompletableFuture<Void> allFutures = CompletableFuture.allOf(
            futures.toArray(new CompletableFuture[0]));
    allFutures.join();

    for (CompletableFuture<List<Info>> future : futures) {
        List<Info> info = future.get();
        for (int i = 0; i < info.size(); i++) {
            listOfInputs.add(info.get(i));
        }
    }

    listOfInputs.stream().map(infoEntry -> {
            sout("Hello" + infoEntry) });
}
</code>```

Title: CompletableFuture with api call

Body:
I am trying to use CompletableFuture with lambda api call. I receive a set of inputs that I need to process via my lambda in batches of 5 and then display them. I am using CompletableFuture for the first time and want to understand if i am using it correctly to help parallel process my code. I want to call the api in paralleling for every 5 inputs.

List<Info> listOfInputs = new LinkedList<>();

List<CompletableFuture<List<Info>>> futures = new ArrayList<>();
try {
    for (int iterator = 0; iterator < inputs.length; iterator = iterator + 5)) {
        int finalIterator = iterator;
        CompletableFuture<List<Info>> future = CompletableFuture.supplyAsync(() -> {
            return getAllInputs(Arrays.copyOfRange(inputs, finalIterator,
                                    Math.min(inputs.length, finalIterator + 5)));
        });
        futures.add(future);
    }
    CompletableFuture<Void> allFutures = CompletableFuture.allOf(
            futures.toArray(new CompletableFuture[0]));
    allFutures.join();

    for (CompletableFuture<List<Info>> future : futures) {
        List<Info> info = future.get();
        for (int i = 0; i < info.size(); i++) {
            listOfInputs.add(info.get(i));
        }
    }

    listOfInputs.stream().map(infoEntry -> {
            sout("Hello" + infoEntry) });
}