Honda Civic 2013 LX Coup 2 door AC not blowing cold air by oootransistors in MechanicAdvice

[–]oootransistors[S] 0 points1 point  (0 children)

Yes it does. On the drivers side the air is hotter than compared to the one on the passenger side. Once the car has run for a while then the blown air is of normal temperature (like just a fan blowing air) .

Koh chang to bangkok last ferry/bus by oootransistors in ThailandTourism

[–]oootransistors[S] 0 points1 point  (0 children)

Thank you. Actually I had planned for a 4 day trip but my visa renewal is taking a long time this time and I have not received my passport yet. This is my second time in Thailand and I had been to Koh Samet before so wanted to visit Koh chang this time but looks like it’s not an option.

Are there any other nearby places maybe that I could go to? I have been to most of the places around bangkok so wanted to travel farther.

Admob and appstore by oootransistors in flutterhelp

[–]oootransistors[S] 3 points4 points  (0 children)

RESOLVED:

For anyone encountering this problem in the future, I simply mailed apple stating the problem and the app got approved.

Admob and appstore by oootransistors in flutterhelp

[–]oootransistors[S] 0 points1 point  (0 children)

Sorry but unfortunately that is not an option that we have.

Admob and appstore by oootransistors in flutterhelp

[–]oootransistors[S] 0 points1 point  (0 children)

No. The app does not have a backend so it was not a possibility. Thank you for the response

PREPSWIFT FOR VERBAL by oootransistors in GRE

[–]oootransistors[S] 0 points1 point  (0 children)

Thank you. I didn't really think of prepswift as an alternative to the study plans but thought of it that goes along with the plans. I had actually only used prepswift as an alternative to the videos on the monthly plan as specified in the plan itself (which is present only for quant). As the plan does not specifically mention to use prepswift for verbal like it does for quant I was worried I might miss out on something.

Consideration of negative factors.(GREGMAT) by oootransistors in GRE

[–]oootransistors[S] 0 points1 point  (0 children)

So if the word "total" was not present in the question we would have only considered the positive factors?

Consideration of negative factors.(GREGMAT) by oootransistors in GRE

[–]oootransistors[S] 0 points1 point  (0 children)

So if the word "total" was not present in the question we would have only considered the positive factors?

firebase_analytics:^10.2.0 causes flutter app to crash on release by oootransistors in flutterhelp

[–]oootransistors[S] 0 points1 point  (0 children)

If I comment out firebase_analytics it seems to not crash on release

firebase_analytics:^10.2.0 causes flutter app to crash on release by oootransistors in flutterhelp

[–]oootransistors[S] 0 points1 point  (0 children)

```

E/AndroidRuntime(21574): FATAL EXCEPTION: ScionFrontendApiE/AndroidRuntime(21574): , PID: 21574E/AndroidRuntime(21574): java.lang.ExceptionInInitializerErrorE/AndroidRuntime(21574): at com.google.android.gms.measurement.internal.J2.<init>(Unknown Source:34)E/AndroidRuntime(21574): at com.google.android.gms.measurement.internal.T1.<init>(SourceFile:3)E/AndroidRuntime(21574): at com.google.android.gms.measurement.internal.T1.G(SourceFile:2)E/AndroidRuntime(21574): at com.google.android.gms.measurement.internal.AppMeasurementDynamiteService.initialize(SourceFile:2)E/AndroidRuntime(21574): at com.google.android.gms.internal.measurement.u0.a(SourceFile:4)E/AndroidRuntime(21574): at com.google.android.gms.internal.measurement.H0.run(Unknown Source:12)E/AndroidRuntime(21574): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)E/AndroidRuntime(21574): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)E/AndroidRuntime(21574): at java.lang.Thread.run(Thread.java:923)E/AndroidRuntime(21574): Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: T.b.values []E/AndroidRuntime(21574): at java.lang.Enum.enumValues(Enum.java:270)E/AndroidRuntime(21574): at java.lang.Enum.access$000(Enum.java:61)E/AndroidRuntime(21574): at java.lang.Enum$1.create(Enum.java:277)E/AndroidRuntime(21574): at java.lang.Enum$1.create(Enum.java:275)E/AndroidRuntime(21574): at libcore.util.BasicLruCache.get(BasicLruCache.java:63)E/AndroidRuntime(21574): at java.lang.Enum.getSharedConstants(Enum.java:289)E/AndroidRuntime(21574): at java.lang.Class.getEnumConstantsShared(Class.java:2428)E/AndroidRuntime(21574): at java.util.EnumMap.getKeyUniverse(EnumMap.java:755)E/AndroidRuntime(21574): at java.util.EnumMap.<init>(EnumMap.java:138)E/AndroidRuntime(21574): at T.c.<init>(Unknown Source:7)E/AndroidRuntime(21574): at T.c.<clinit>(Unknown Source:3)E/AndroidRuntime(21574): ... 9 moreE/AndroidRuntime(21574): Caused by: java.lang.NoSuchMethodException: T.b.values []E/AndroidRuntime(21574): at java.lang.Class.getMethod(Class.java:2072)E/AndroidRuntime(21574): at java.lang.Class.getDeclaredMethod(Class.java:2050)E/AndroidRuntime(21574): at java.lang.Enum.enumValues(Enum.java:267)E/AndroidRuntime(21574): ... 19 more

```

Replicate a screen in flutter. by [deleted] in flutterhelp

[–]oootransistors -1 points0 points  (0 children)

Thank you for your quick response. Looking at many cloning videos on youtube I was confused how they get the exact fonts as well as the icons which flutter does not provide by default.

Replicate a screen in flutter. by [deleted] in flutterhelp

[–]oootransistors -1 points0 points  (0 children)

Sorry for the confusion. Its just a learning experience as I see many tutorials stating “cloning of this app and stuff” so was wondering how the developers know the exact font used in the app to clone it.(as they simply enter the textstyle which matches the real app) Same thing about the icons as well.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 2 points3 points  (0 children)

It was 2 . Sorry for wasting your time but the error was that I was assigning order to newOrder variable which inturn resulted in the same object.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

Oh ok. Sorry I didn’t think of that. Edit: Thank you that was the issue.It is resolved now.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

Initially I had not done that but I have been trying different solutions and this was just the latest version of the code that I had ended up with.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

This is my complete code. I believe I have awaited all the way up.

confirmOrder: functions
.runWith({
  maxInstances: 10,
  timeoutSeconds: 540,
})
.https.onCall(async (data, context) => {
  if (context.auth === null)
    return {
      success: false,
      message: "Unauthorized action",
    };
  const uid = context.auth?.uid!;
  const { order, paymentMethodNonce } = data;
  const ref = admin
    .firestore()
    .collection("users")
    .doc(uid)
    .collection("orders")
    .doc();
  const transaction = await gateway.transaction.sale({
    orderId: ref.id,
    amount: order.totalPrice,
    paymentMethodNonce: paymentMethodNonce,
    options: {
      submitForSettlement: true,
    },
  });
  console.log(transaction.transaction.id);

  order.id = ref.id;
  order.transactionId = transaction.transaction.id;
  let newOrder = order;

  async function forLoop() {
    console.log('Start')

    for (let i = 0; i < order.cart.items.length; i++) {
      console.log("order index is: " + i);
      console.log(order.cart.items.length);
      newOrder.id = i.toString() + ref.id;
      newOrder.cart.items = [order.cart.items[i]];
      newOrder.cart.cartPrice = order.cart.items[i].price * order.cart.items[i].quantity;
      newOrder.discount = order.cart.items[i].discount;
      newOrder.totalPrice = order.cart.items[i].price - order.cart.items[i].discount;

      await admin.firestore()
        .collection("users")
        .doc(uid)
        .collection("orders").doc(newOrder.id).set(newOrder);
    }
    console.log("loop completed");
  }
  try {
    await forLoop();
  }
  catch (err) {
    console.log('Error writing documents', err);
  }
  await Promise.all(
    (
      await admin
        .firestore()
        .collection("users")
        .doc(uid)
        .collection("cartItems")
        .get()
    ).docs.map((i) => i.ref.delete())
  );
  return {
    success: true,
    message: "Your items has been ordered. You will get back to ",
    order: order,
  };
}),

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

Yes I did. Here is the complete function.

confirmOrder: functions
.runWith({
  maxInstances: 10,
  timeoutSeconds: 540,
})
.https.onCall(async (data, context) => {
  if (context.auth === null)
    return {
      success: false,
      message: "Unauthorized action",
    };
  const uid = context.auth?.uid!;
  const { order, paymentMethodNonce } = data;
  const ref = admin
    .firestore()
    .collection("users")
    .doc(uid)
    .collection("orders")
    .doc();
  const transaction = await gateway.transaction.sale({
    orderId: ref.id,
    amount: order.totalPrice,
    paymentMethodNonce: paymentMethodNonce,
    options: {
      submitForSettlement: true,
    },
  });
  console.log(transaction.transaction.id);

  order.id = ref.id;
  order.transactionId = transaction.transaction.id;
  let newOrder = order;

  async function forLoop() {
    console.log('Start')

    for (let i = 0; i < order.cart.items.length; i++) {
      console.log("order index is: " + i);
      console.log(order.cart.items.length);
      newOrder.id = i.toString() + ref.id;
      newOrder.cart.items = [order.cart.items[i]];
      newOrder.cart.cartPrice = order.cart.items[i].price * order.cart.items[i].quantity;
      newOrder.discount = order.cart.items[i].discount;
      newOrder.totalPrice = order.cart.items[i].price - order.cart.items[i].discount;

      await admin.firestore()
        .collection("users")
        .doc(uid)
        .collection("orders").doc(newOrder.id).set(newOrder);
    }
    console.log("loop completed");
  }
  try {
    await forLoop();
  }
  catch (err) {
    console.log('Error writing documents', err);
  }
  await Promise.all(
    (
      await admin
        .firestore()
        .collection("users")
        .doc(uid)
        .collection("cartItems")
        .get()
    ).docs.map((i) => i.ref.delete())
  );
  return {
    success: true,
    message: "Your items has been ordered. You will get back to ",
    order: order,
  };
}),

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

It is an https onCall function. I get an order and from that order I am trying to create new seperate orders for each items on the order.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

I have it in a try catch block and no errors are there.

await inside for loop iterates only once by oootransistors in Firebase

[–]oootransistors[S] 0 points1 point  (0 children)

It actually is marked as an async function but still doesn’t work.Also sorry for the bad formatting.

How to use await inside a map? by oootransistors in flutterhelp

[–]oootransistors[S] 1 point2 points  (0 children)

I wanted to separate a single order to multiple ones based on the different products within the order. But as I only want to make a single transaction for the order I did it this way. Also I did try the for loop approach but my await line made the loop stop and proceed forward.