79472062

Date: 2025-02-27 08:52:14
Score: 1
Natty:
Report link

Quite old, but still I had a hard time finding the answer:

sacct -j <jobid> -o submitline -P is the magic you are looking for!

Example for one of my jobs sacct -j 13809705 -o submitline -P

SubmitLine
sbatch run_sim.sh data/data.csv sim_results/ 1.05 110 sim_results.ag 1740607046958 1000
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Theo

79472055

Date: 2025-02-27 08:50:14
Score: 1
Natty:
Report link

What URL are you trying to access? In case of Xampp, it searches for index file in root directory. And laravel's index is present in public.

So either you need to configure apache to point public directory of your folder. Or simply try using public when accessing localhost. http://localhost/project-name/public/{route}

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Zaid Malek

79472053

Date: 2025-02-27 08:49:13
Score: 3
Natty:
Report link

On the Component-Level, did you try this Event?

https://v16.angular.io/api/core/AfterViewInit

Reasons:
  • Whitelisted phrase (-1): try this
  • Whitelisted phrase (-2): did you try
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: frontendnils

79472045

Date: 2025-02-27 08:48:13
Score: 5.5
Natty: 5
Report link

when I use the same way to test in Storekit2, it works in testfight, but I can't get callback from apple online. Did u counter this problem?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): when I use the
  • Low reputation (1):
Posted by: 心怡熊

79472040

Date: 2025-02-27 08:47:12
Score: 0.5
Natty:
Report link

ok, after a deep dive I think I got what's happening here (haven't used mongoose in almost a year! so I had to refresh)

First: getQuery() is deprecated and the new equivalent is getFilter(). mongoose docs say:

You should use getFilter() instead of getQuery() where possible. getQuery() will likely be deprecated in a future release.

Second: you want to get the updated document to calculate the review right? then what you have to do is only accepting the updated document in the post hook since it's one of the accepted parameters:

reviewSchema.post(/^findOneAnd/, async function(updatedReviewdDoc){
    await updatedReviewdDoc.constructor.calculateAvgRatings(updatedReviewdDoc.tour);
});

your post hook didn't work because you must have thought that the this keyword is shared or inherited between both the pre and the post right? but that is not the case.

let's break it down, you're using one of the Query middleware/hook so this keyword is referring to the query itself not to the document, that's why your post is not working as you might think it would. you can't call constructor.calculateAvgRatings on a query instance! constructor property belongs to a Mongoose document.

yes you fetched the document here:

reviewSchema.pre(/^findOneAnd/, async function (next) {
    this.r = await this.model.findOne(this.getQuery());
    next();
});

but as I mentioned this is not shared or inherited.

Finally, you can safely remove the pre hook you don't need it since the post can get the updated doc without any help from it.

I hope my answer makes all the sense and helped you

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Marya

79472039

Date: 2025-02-27 08:46:12
Score: 2.5
Natty:
Report link

https://github.com/Kozea/WeasyPrint/issues/2205 The issue on GitHub is similar to this question, and they have had a commit to solve it. Hope you find it helpful.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Qian

79472034

Date: 2025-02-27 08:43:12
Score: 0.5
Natty:
Report link
@Override
public void onDisabled(Context context, Intent intent) {
    super.onDisabled(context, intent);

    // Lock the device as soon as admin is being disabled
    DevicePolicyManager devicePolicyManager = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
    devicePolicyManager.lockNow(); // This will lock the device when disabling the admin
}

and in main activity::

// Initialize DevicePolicyManager and ComponentName mDPM = (DevicePolicyManager) getSystemService(DEVICE_POLICY_SERVICE); mDeviceAdmin = new ComponentName(this, MyDeviceAdminReceiver.class);

    // Check if the app is a device administrator
    if (mDPM.isAdminActive(mDeviceAdmin)) {
        // If the app is a device admin, display a message and provide a way to disable it
        Toast.makeText(this, "App is a device admin", Toast.LENGTH_SHORT).show();
        // Provide option to disable
        // This would ideally be a button that calls removeDeviceAdmin()
    } else {
        // If the app is not a device admin, display a message and provide a way to enable it
        Toast.makeText(this, "App is not a device admin", Toast.LENGTH_SHORT).show();
        // Provide option to enable
        // This would ideally be a button that calls enableDeviceAdmin()
    }
}



@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == REQUEST_CODE_ENABLE_ADMIN) {
        if (resultCode == RESULT_OK) {
            // Successfully added as device admin
            Toast.makeText(this, "Device admin enabled", Toast.LENGTH_SHORT).show();
        } else {
            // Failed to add as device admin
            Toast.makeText(this, "Failed to enable device admin", Toast.LENGTH_SHORT).show();
        }
    } else if (requestCode == REQUEST_CODE_REMOVE_ADMIN) {
        if (resultCode == RESULT_OK) {
            // Successfully removed as device admin
            Toast.makeText(this, "Device admin removed", Toast.LENGTH_SHORT).show();
        } else {
            // Failed to remove device admin
            Toast.makeText(this, "Failed to remove device admin", Toast.LENGTH_SHORT).show();
        }
    }
}

}

i did lock the screen while deactivate is there any system set manual our passowrd

Reasons:
  • Blacklisted phrase (1): is there any
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RakibulHasan

79472033

Date: 2025-02-27 08:43:12
Score: 1
Natty:
Report link
@pytest_asyncio.fixture(scope="session", autouse=True)
async def init_test_db():
    db_url = "sqlite://:memory:"
    await Tortoise.init(db_url=db_url, modules={"modules": ["app.models"]})
    await Tortoise.generate_schemas()
    yield
    await Tortoise._drop_databases()

I did it like this

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adrian Makridenko

79472032

Date: 2025-02-27 08:42:11
Score: 5.5
Natty: 6
Report link

This is exaclty what you need: https://schedule.readthedocs.io/en/stable/timezones.html

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29820405

79472031

Date: 2025-02-27 08:42:11
Score: 3
Natty:
Report link

If there is a way to see iphone app network without proxy by connecting iphone to mac with cable? In my case, I cant configure proxy at Iphone,because I already use my work proxy at Iphone in order to be able to access our test environment, I can't swicth this proxy to Charles proxy or something else.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maria

79472027

Date: 2025-02-27 08:41:11
Score: 9.5
Natty: 7.5
Report link

I have the same problem, Any idea...?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Y H

79472007

Date: 2025-02-27 08:34:09
Score: 2
Natty:
Report link

try the getTables function,below is the demo:

 getTables(database("dfs://mydb"))
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wale

79472001

Date: 2025-02-27 08:32:09
Score: 2
Natty:
Report link

There is a beta functionality that has been available since version 1.22 where you can add the annotation controller.kubernetes.io/pod-deletion-cost with a value in the range [-2147483647, 2147483647] and this will cause pods with lower value to be killed first. Default is 0, so anything negative on one pod will cause a pod to get killed during downscaling. Refer to this documentation for more details on Pod deletion cost.

Check this github Scale down a deployment by removing specific pods (PodDeletionCost) #2255 to know more information about this feature.

However there are a few concerns while using this pod deletion cost, though, such as the fact that it must be done by manually and that the pod-deletion-cost annotation needs to be updated before the replica count is reduced. This implies that any system wishing to use pod-deletion-cost must clear out any outdated pod-deletion-cost annotations. Refer to this github link for more information on this.

On the other hand, Cluster Autoscaler help us to adjust the number of nodes in a cluster based on pod scaling which can be essential for handling empty nodes efficiently. While it doesn't directly control pod removal from all nodes,it ensures that the number of nodes is managed in such a way that empty nodes are removed. Refer to this official GCP documentation for more details on cluster autoscaler.

Reasons:
  • Blacklisted phrase (1): this document
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Imran Premnawaz

79471999

Date: 2025-02-27 08:31:08
Score: 5.5
Natty: 5.5
Report link

you can check the new page! https://www.karamshaar.com/ar/official-and-black-market-exchange-rates i'm interested though why are you trying to scrpa karam shaar api?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Kareem ahmad

79471984

Date: 2025-02-27 08:26:07
Score: 1
Natty:
Report link

Just make ESLint ignore your module which import from module federation.

{
  "rules": {
    "import/no-unresolved": [
      "error",
      {
        "ignore": ["^module-federation-module-name$"]
      }
    ]
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 炒米粉

79471973

Date: 2025-02-27 08:21:06
Score: 3.5
Natty:
Report link

1. Ultimately it is because then some instructions can execute with one less stall (no-op).

Think about the following example: ADD R5, R2, R1 SW R5, 32(R1) SUB R3, R5, R0 Let's try out the status quo, write first, read second:

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    table {
      border-collapse: collapse;
      width: 100%;
      margin-top: 20px;
    }
    th, td {
      border: 1px solid #000;
      padding: 8px;
      text-align: center;
      min-width: 60px;
      position: relative;
    }
    th {
      background-color: #ddd;
    }
    .bubble {
      background-color: #fdd;
      font-style: italic;
    }
    .circle {
      display: inline-block;
      padding: 5px;
      border: 2px solid red;
      border-radius: 50%;
      font-weight: bold;
    }
  </style>
</head>
<body>
  <table>
    <tr>
      <th>Instruction</th>
      <th>Cycle 1</th>
      <th>Cycle 2</th>
      <th>Cycle 3</th>
      <th>Cycle 4</th>
      <th>Cycle 5</th>
      <th>Cycle 6</th>
      <th>Cycle 7</th>
      <th>Cycle 8</th>
      <th>Cycle 9</th>
    </tr>
    <tr>
      <td>ADD R5, R2, R1</td>
      <td>IF</td>
      <td>ID</td>
      <td>EX</td>
      <td>MEM</td>
      <!-- Wrap WB in a span to circle it -->
      <td><span class="circle">WB</span></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <!-- Two stall cycles (bubbles) inserted after ADD -->
    <tr class="bubble">
      <td>Stall</td>
      <td></td>
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr class="bubble">
      <td>Stall</td>
      <td></td>
      <td></td>
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>SW R5, 32(R1)</td>
      <td></td>
      <td></td>
      <td></td>
      <td>IF</td>
      <!-- Wrap ID in a span to circle it -->
      <td><span class="circle">ID</span></td>
      <td>EX</td>
      <td>MEM</td>
      <td>WB</td>
      <td></td>
    </tr>
    <tr>
      <td>SUB R3, R5, R0</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>IF</td>
      <td>ID</td>
      <td>EX</td>
      <td>MEM</td>
      <td>WB</td>
    </tr>
  </table>
</body>
</html>

Notice how ADD's WB (in red circle) is executed in the same clock cycle with SW's ID (also in red circle)? This is possible since the register file writes ADD instruction's result of R2+R1 into R5 first, then SW instruction fetches data in register R5, ensuring no data hazard.

Then, let's do read first, write second. Since we need to read after r5 is updated to avoid data hazard, we need to make sure ADD instruction finishes WB (writeback) and then SW can fetch the register r5's data:

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    table {
      border-collapse: collapse;
      width: 100%;
      margin-top: 20px;
    }
    th, td {
      border: 1px solid #000;
      padding: 8px;
      text-align: center;
      min-width: 60px;
      position: relative;
    }
    th {
      background-color: #ddd;
    }
    .bubble {
      background-color: #fdd;
      font-style: italic;
    }
    .circle {
      display: inline-block;
      padding: 5px;
      border: 2px solid red;
      border-radius: 50%;
      font-weight: bold;
    }
  </style>
</head>
<body>
  <table>
    <tr>
      <th>Instruction</th>
      <th>Cycle 1</th>
      <th>Cycle 2</th>
      <th>Cycle 3</th>
      <th>Cycle 4</th>
      <th>Cycle 5</th>
      <th>Cycle 6</th>
      <th>Cycle 7</th>
      <th>Cycle 8</th>
      <th>Cycle 9</th>
    </tr>
    <tr>
      <td>ADD R5, R2, R1</td>
      <td>IF</td>
      <td>ID</td>
      <td>EX</td>
      <td>MEM</td>
      <!-- Wrap WB in a span to circle it -->
      <td><span class="circle">WB</span></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <!-- Two stall cycles (bubbles) inserted after ADD -->
    <tr class="bubble">
      <td>Stall</td>
      <td></td>
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr class="bubble">
      <td>Stall</td>
      <td></td>
      <td></td>
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
        <tr class="bubble">
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td>Stall</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>SW R5, 32(R1)</td>
      <td></td>
      <td></td>
      <td></td>
       <td></td>
      <td>IF</td>
      <!-- Wrap ID in a span to circle it -->
      <td><span class="circle">ID</span></td>
      <td>EX</td>
      <td>MEM</td>
      <td>WB</td>
    </tr>
    <tr>
      <td>SUB R3, R5, R0</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>IF</td>
      <td>ID</td>
      <td>EX</td>
      <td>MEM</td>
    </tr>
  </table>
</body>
</html>

Notice how this time, we have to execute SW's ID one clock cycle later, since the register(r5) will not be written first, pushing an extra stall to read the register in the next clock cycle

2. Let's look at the implementation of a register file.

Implementation of a 2^2 x 5 Register File

This implementation is from a lab of UC Riverside.

Let's look at the circuit. We can see that there are generally 2 paths: write and read. at clock edge, both write and read lines will pass in their current values (both data and addresses, if enabled).

Let's look at read first. The data from the desired registers will pass through driver and passed onto the 32 bit bus. Then let's look at write. The data will load the corresponding registers. But if you follow that bus, you will see the data will follow the bus unto the same path as the read data. Therefore, even if the read was passed through first, the write data will over write that in the databus of the register file.

However, you can see that this design does not handle clock, hence I could not really fully answer your question. Please let me know if you find a circuit of a register file that has clock. But I can imagine a and logic between the clock and write_enable or read_enable, like you mentioned in your question. I will do more research as well on how register file is implemented in real life, especially synchronously.

I have found this website that animates the data path to better understand what the pipeline does at each instruction.

Also, your textbook is very detailed, especially on this topic in chapter seven. Pity that it doesn't show a schematic of a register file anywhere in the book.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jer

79471971

Date: 2025-02-27 08:20:06
Score: 1.5
Natty:
Report link

Quite old, but still I had a hard time finding the answer:

sacct -j <jobid> -o submitline -P

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Theo

79471964

Date: 2025-02-27 08:15:05
Score: 3
Natty:
Report link

php 8.2 still not work with SQLSRV for me

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: S IT

79471961

Date: 2025-02-27 08:14:05
Score: 2.5
Natty:
Report link

I am facing the same issue with a fork of openCV. So far the only solution I found is to first install the packages that depends on the original package and then force reinstall my custom version. In my case I am building a docker image so it is easy to do but it might be way harder or even impossible in some scenarios.

pip install foo-manager
pip --force-reinstall other-foo
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): I am facing the same issue
  • Low reputation (0.5):
Posted by: MajorTom

79471958

Date: 2025-02-27 08:13:04
Score: 0.5
Natty:
Report link

Seems that it was probably my understanding of cats-effect Resource (or cats-effect in general) that was lacking.

moving the .allocated.unsafeRunSync()._1 to an object in Test and using that in the test classes worked.

import cats.effect.unsafe.implicits.global

object TransactorProvider {
  lazy val transactor = DatabaseConfig.transactor.allocated.unsafeRunSync()._1
}
class DAOTest1 extends AsyncFlatSpec with AsyncIOSpec with IOChecker {

  def transactor = TransactorProvider.transactor
...
...
...
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Björn Pedersen

79471956

Date: 2025-02-27 08:12:04
Score: 4.5
Natty:
Report link

Thanks, this was so long ago, that I don't remember it :-P

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tomasz Chyra

79471950

Date: 2025-02-27 08:07:03
Score: 0.5
Natty:
Report link

Turns out I need to include both libraries.

    <dependency>
      <groupId>org.simplejavamail</groupId>
      <artifactId>simple-java-mail</artifactId>
      <version>8.12.4</version>
    </dependency>
    <dependency>
      <groupId>com.sun.mail</groupId>
      <artifactId>jakarta.mail</artifactId>
      <version>2.0.1</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.angus</groupId>
      <artifactId>angus-mail</artifactId>
      <version>2.0.3</version>
    </dependency>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Minh Long Vu

79471947

Date: 2025-02-27 08:06:02
Score: 2.5
Natty:
Report link

I don't have enough reputation to comment but accepted answer is incorrect. It cannot be AUC because AUC is non-negative.

Many things have changed in XGBoost since this question was posted but the values of the leaves are their weights and are actually part of the final prediction resulting from this tree. Final prediction is calculated via log-odds (which are additive) and are calculated as follows:

log_odds = leaf_value_tree_0 + leaf_value_tree_1 +...+ logit(base_score)

where leaf_value_tree_x is a leaf value in a tree x for given instance and base_score is initial probability of a target.

From this you can calculate probability (or score) as:

p = expit(log_odds)

Therefore log_odds and leaf_value_tree_x can be negative, while final probability p is between 0 and 1, as it should be.

More details on how leaf weights are calculated can be found in the documentation

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kpatucha

79471946

Date: 2025-02-27 08:06:02
Score: 4
Natty:
Report link

Try a package / SDK like this to handle health / lifestyle data https://github.com/sahha-ai/sahha_flutter

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: aleks

79471944

Date: 2025-02-27 08:06:01
Score: 6 🚩
Natty:
Report link

So there're multiple answers possible thanks to Ben Grossmann and user19077881, let me summarize it here (I'm new so I can't upvote Ben Grossmann's answer):

row = df.query("t == 3").astype(object).squeeze()
row = df.loc[df["t"] == 3].astype(object).squeeze()

The order is important:

  1. Convert the whole result of the query to "object" so pandas will not convert ints to floats and keep a global "object" type
  2. Use squeeze() to transform the queried row to a Series

And if there are multiple rows matching the query then extract the wanted row by using iloc between astype and squeeze:

row = df.query("t == 3").astype(object).iloc[wanted_idx].squeeze()
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (1.5): I'm new
  • RegEx Blacklisted phrase (2): can't upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): user19077881
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Damien

79471940

Date: 2025-02-27 08:03:01
Score: 2
Natty:
Report link

Addition to @Johnny Metz Answer: If you prefer to not use ::ng-deep, and want / don't mind the style to be added globally, you can add the following code to any global stylesheet (styles.scss for example):

.pdfViewer .page .canvasWrapper {
    margin-top: 10px;
    border: 1px solid #ccc;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Johnny
  • Low reputation (1):
Posted by: Mario Soller

79471937

Date: 2025-02-27 08:02:01
Score: 3.5
Natty:
Report link

This question from 2017 was very much still relevant for me in 2025 and I thought I'd recap what happened to my app and how I finally got to approval.


TLDR: 7 years old @l-l suggestion to leave a note to the app reviewer still does the trick.


Long version with every step taken, including those that are very specific to my SwiftUI multiplatform app (for which, much like Catalyst, you have to send two separate submissions) that will hardly be relevant to most, but can be ignored:


To be clear, there were mistakes on my part that lead to two appropriate rejections from app review (the metadata and menu item one).

Nevertheless, communication from app review is still barebones to say the least, some automated messages are downright wrong on top of confusing (I'm thinking about the one which started this SO post 8 years ago), the fact that there are moments in which you need to ask them something and can't because the app is not rejected is downright frustrating, and the App Store Connect UI for attaching IAPs to builds is a ghost you only get to see once.


So, if you find yourself in a similar scenario, reject your app yourself, put the IAP back in the yellow state, and resubmit with a love letter to the app reviewer asking to also look at the IAP that is sitting in their queue.

Hope that knowing this is still relevant in 2025 saves a few hours to others.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @l-l
  • User mentioned (0): @gerbil
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: cdf1982

79471936

Date: 2025-02-27 08:02:01
Score: 0.5
Natty:
Report link
import git

repo = git.Repo("/my/repo/folder")

# OPTIONAL: discard any current changes
repo.git.reset('--hard')

# discard untracked changes
repo.git.clean("-xdf")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Dorin

79471929

Date: 2025-02-27 08:00:00
Score: 3.5
Natty:
Report link

As @Jannis mentioned, the problem lies in the SilenceWarden class. When digging into the problem, I realized that something was wrong with the constructor. So I tried the plugin without said constructor to no avail. Then I realized that SilenceWarden extended JavaPlugin for some reason, something that only the main class may do. So I deleted that extension and presto! I don't know how that happened, maybe ChatGPT didn't know what it was doing. Thanks for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • No code block (0.5):
  • User mentioned (1): @Jannis
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andysepp

79471928

Date: 2025-02-27 07:59:00
Score: 1.5
Natty:
Report link

As by @kostix, GOROOT= go env -w GOROOT=/usr/local/go definitely does.

It also works for Windows platform.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Linus Deng

79471924

Date: 2025-02-27 07:55:59
Score: 2
Natty:
Report link

You can update the code as follows to prevents the payment screen opening multiple times. Please let me know if this works.

bool _isPaymentProcessing = false;

void openCheckout(int varTotalValue, String? razorpayOrderId) async {
  if (_isPaymentProcessing) return; // Prevent multiple triggers
  _isPaymentProcessing = true; // Set flag early

  try {
    String varUserLoginValue =
        await Utils().funcGetSession(ConstantSession.KeyUserLoginValue);
    log("varTotalValue ==: $varTotalValue");

    bool isUserLoggedInThroughEmailId =
        Validations.isValidEmail(varUserLoginValue);
    String emailId = _userController.userResponseModel.data?.email ?? varUserLoginValue;
    String name = _userController.userResponseModel.data?.firstName ?? varUserLoginValue;
    String contactNo = _userController.userResponseModel.data?.contactNo ?? varUserLoginValue;

    var options = {
      'key': varWebRazorPayKey,
      'amount': ((varTotalValue) * 100).toInt(),
      'send_sms_hash': true,
      'name': name.capitalizeFirstofEach,
      'description': '',
      'order_id': razorpayOrderId,
      'theme': {'color': '#FFC300'},
      'prefill': {'contact': contactNo, 'email': emailId},
      "notify": {"sms": true, "email": true},
    };

    _razorpay?.open(options);
    log('_razorpayPayments');
  } catch (e) {
    debugPrint('Error: $e');
    _isPaymentProcessing = false; // Reset flag if Razorpay fails
  }
}

// Reset flag in event handlers
void _handlePaymentSuccess(PaymentSuccessResponse response) {
  log("Payment Successful: ${response.paymentId}");
  _isPaymentProcessing = false;
}

void _handlePaymentError(PaymentFailureResponse response) {
  log("Payment Failed: ${response.message}");
  _isPaymentProcessing = false;
}

void _handleExternalWallet(ExternalWalletResponse response) {
  log("External Wallet Selected: ${response.walletName}");
  _isPaymentProcessing = false;
}

Key Fixes in This Code

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jeban_antony

79471922

Date: 2025-02-27 07:53:59
Score: 0.5
Natty:
Report link

Without custom merge driver,

union seems viable option in this case

include the following in .gitattributes

*.txt merge=union
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: KH Kim

79471918

Date: 2025-02-27 07:50:58
Score: 1
Natty:
Report link

Just in case: RESTful API Endpoint Naming Conventions

1. Use Lowercase Letters Use lowercase letters in all API URLs for consistency, ease of typing, and to minimize confusion in case-sensitive systems, which improves SEO and user experience. Example: '/api/v1/users', '/api/v3/orders'

2. Use Nouns, Avoid Verbs (CRUD Functions) Design APIs as resource-oriented, using nouns to represent resources (e.g., '/users', '/products') rather than verbs (e.g., '/getUsers', '/updateProducts'). Let HTTP methods (GET, POST, PUT, DELETE) define actions. Correct: '/users', '/products' Avoid: '/get-users', '/update-products'

3. Use Singular and Intuitive Names for URI Hierarchy Use singular nouns for document resource archetypes (e.g., a single entity) to create clear, concise, and SEO-friendly URLs that are easy for both developers/QAs and search engines to understand. Example: '/rest-api/v1/users', '/api/v1/orders' Be clear and descriptive in your naming. Avoid slang or abbreviations that may be unclear to others. Example: use 'order-history' instead of 'ord-hist' or 'prod-cat' to make it clear.

4. Use Forward Slash (/) to Indicate URI Hierarchy Organize your URIs using forward slashes to create a clear hierarchy (e.g., '/users', '/users/{id}', '/orders'). Avoid trailing slashes (e.g., should not be '/users/', should be '/users') to prevent ambiguity, ensure consistency, and avoid duplicate content issues in SEO. Example: '/users', '/users/123', '/orders'

5. Use Hyphens (-) to Separate Words for Readability Use hyphens to separate words in endpoint names for better readability and search engine optimization (e.g., '/users-profile', '/order-history'). Avoid underscores (_) and camelCase, as they are less readable and less SEO-friendly. Example: '/users-profile', '/order-history', '/product-category'

6. Use Query Parameters to Filter and Provide Details Use query parameters to filter, sort, or provide specific subsets of data from the server (e.g., '/products?category=electronics&sort=price'). These parameters can include sorting, filtering, and pagination to enhance flexibility. Represent complex filtering as query parameters (e.g., '/products?price>100&sort=desc'). Ensure special characters are URL-encoded for robustness. Example: '/products?category=electronics&sort=price', '/users?role=admin&limit=5'

7. Enable Filtering, Sorting, and Pagination Implement pagination using limit and offset or page parameters (e.g., '/products?limit=10&offset=20', '/products?page=1&limit=5') to manage large datasets and prevent overwhelming clients or servers. Enable filtering and sorting via query parameters (e.g., '/products?category=electronics&sort=brand'). Example: '/products?limit=10&offset=20', '/products?page=1&limit=5', '/users?role=admin&limit=5'

8. Avoid Using URL/URI Escape Characters Avoid characters like space (%20), $, &, <, >, [], |, ", ', ^ in your URIs. These characters can lead to confusion or be problematic in certain environments, so it's best to avoid them entirely in your endpoint paths.

9. Do Not Use File Extensions Avoid appending file extensions like .json, .xml, or .html to API routes. Use HTTP headers (Accept and Content-Type) for content negotiation. Example: '/rest-api/v1/users' (not '/rest-api/v1/users.json' or '/rest-api/v1/users.xml')

10. Use API Versioning Control for SEO and Scalability Implement API versioning in URLs to maintain backward compatibility as your API evolves. Include version numbers clearly in the URL for clarity and discoverability. Example: '/rest-api/v1/users', '/api/v2/users', 'rest-api.company.com/v1/users'

11. Be Consistent Across Endpoints for SEO and Usability Maintain consistent naming conventions, sorting, filtering, and pagination patterns across all API endpoints to create an intuitive, SEO-friendly structure that search engines and developers can easily navigate and index. Example: '/rest-api/v1/products?sort=name', '/rest-api/v1/products?sort=price', '/rest-api/v1/products?sort=desc'

12. Use Descriptive Parameter Names Ensure query parameters are descriptive and consistent across your API. Use common terms like status, type, id, category, and sort for clarity. Example: '/api/v1/products?category=electronics&sort=name', '/rest-api/v1/users?id=123'

13. Consider Resource Relationships for Hierarchies Use nested resources to represent relationships between entities, creating hierarchical, SEO-friendly URLs that are easy for search engines to crawl and developers to understand. Example: '/api/v1/users/123/orders', '/rest-api/v1/products/456/reviews'

14. Use HTTP Status Codes and Error Handling Use standard HTTP status codes to indicate API request outcomes, improving SEO and usability for developers/QAs searching for documentation: '200 OK' - Successful GET, PUT, or POST request '201 Created' - New resource successfully created '400 Bad Request' - Invalid request parameters, with clear error messages '404 Not Found' - Requested resource not found '500 Server Error' - Server-side issue, with detailed error responses for troubleshooting Provide clear, descriptive error messages in the response body (e.g., message, code, details) to enhance searchability and user experience for API documentation. { "status": 400, "message": "Invalid parameter value", "details": "User ID must be a positive integer", "code": "INVALID_PARAMETER" }

15. Secure Your REST API with Authentication Use Bearer tokens for API authentication (e.g., 'Authorization: Bearer '). Consider using standard authentication protocols like OAuth 2.0 for better security management. Example header: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Security best practices:

  1. Always use HTTPS
  2. Implement rate limiting
  3. Set token expiration
  4. Validate all inputs
  5. Use secure headers
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vlad Jeman

79471913

Date: 2025-02-27 07:46:58
Score: 1.5
Natty:
Report link

Did you try ref()?

this.knex("Customers").where(this.knex.ref("Delete"), false).select()
Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
Posted by: Guillaume Outters

79471904

Date: 2025-02-27 07:44:57
Score: 0.5
Natty:
Report link

Creating resident keys, which the question you linked to requires a pin as per the CTAP 2.1 specification step 10 and step 11 in makeCredential.

You also have that Chrome on assertion for example is implemented in such a way to block you from being able to use the device without some sort of user verification, which in the case of the Yubikey 5 is a pin and a user presence check. This isn't exactly required by the specifications, but given that using a resident key without any type of validation is a bit of a niche case it isn't unreasonable. There have been complaints Google does this though for example this bug

So no, I don't think you can expect being able to use it without pin input.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Asthor

79471901

Date: 2025-02-27 07:43:57
Score: 1
Natty:
Report link

For anyone encountering a similar issue: when using @golevelup/nestjs-rabbitmq in a multi-instance microservices setup, your consumer instance must be configured as an HTTP server. Using RMQ transport in NestJS will not work as expected.

This is because RabbitMQ's Pub/Sub pattern operates over TCP, requiring a different approach for handling multiple instances.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joseph Akayesi

79471898

Date: 2025-02-27 07:42:56
Score: 1.5
Natty:
Report link
import pandas as pd


df = pd.read_excel('file.xlsx', usecols='A:C,E:G')


df = pd.read_excel('file.xlsx', header=1)


df = pd.read_excel('file.xlsx', sheet_name='Sheet1')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wale

79471896

Date: 2025-02-27 07:42:56
Score: 2
Natty:
Report link

APIs are generally designed to be language-agnostic. We can get around using APIs by themselves but to get it to do a specific task, we might have to tinker around with it a bit. That is where Client-Libraries come in handy. They make the API experience better. They are abstraction layers over the API that is specific to a language. The purpose of Client Libraries are to break the language-agnostic principle of API design to make the developer experience better.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lk9895

79471892

Date: 2025-02-27 07:38:55
Score: 0.5
Natty:
Report link

If anyone facing such issue again in future. Setting following solved for me.

git config --global url."[email protected]:".insteadOf "https://github.com/"

It replaces https with git.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tashi Dendup

79471888

Date: 2025-02-27 07:34:54
Score: 5
Natty:
Report link

Sure! Regarding your question: If the email is not available in the session, can you still retrieve error or success from the session?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user21561603

79471880

Date: 2025-02-27 07:30:53
Score: 4
Natty:
Report link

Welcome to Australian Concept Karachi, the premier IVF center in the city. We are dedicated to providing exceptional infertility care. https://australianconceptkarachi.com/

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Australian Concept karachi

79471876

Date: 2025-02-27 07:28:53
Score: 1.5
Natty:
Report link

It ain't working because Discord doesn't recognize your redirect link. Go to the Discord Dev Portal and add infinitea://auth under Redirects. Make sure your redirectUri in the code is exactly the same.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Quantum Sc

79471875

Date: 2025-02-27 07:28:53
Score: 2.5
Natty:
Report link

It worked for me with adding "py -m " as prefixenter image description here

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user13875967

79471869

Date: 2025-02-27 07:25:52
Score: 3
Natty:
Report link

I have use .setHeader(Exchange.HTTP_PATH).simple(LOOKUP_PATHSTRING) and my issue is get resolved.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: bateda

79471866

Date: 2025-02-27 07:23:51
Score: 2.5
Natty:
Report link

I have resolved this issue. Answering here to help newbies of revolut. The issue was at the time i am getting oauth token from revolut i didn't add the permission to pay. Just add the scope read,write,pay all in the url of consent screen of revolut while generating oauth and enter. Now get access token from oauth token and you ll be able to pay

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: python nessovo

79471862

Date: 2025-02-27 07:22:51
Score: 1.5
Natty:
Report link

a for android

and

i for ios

options are now removed from the version 0.77.0 onwards. use npm run android instead

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shaheer Khalid

79471845

Date: 2025-02-27 07:12:49
Score: 2.5
Natty:
Report link

I think the fundamental question to answer is what does each row represent? If ItemCodes are static, you can create a lookup table, and place the associated score at the right index. If you provide more code/details, I can likely help you with this.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pritam Dodeja

79471844

Date: 2025-02-27 07:12:49
Score: 3.5
Natty:
Report link

You need to point your manifest url to a proper one

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ejeh Obiaob Emmaneul

79471843

Date: 2025-02-27 07:12:49
Score: 6 🚩
Natty:
Report link

Are you using a repo like react-native-health or are you using an SDK like sahha.ai https://github.com/sahha-ai/sahha-react-native ?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: aleks

79471833

Date: 2025-02-27 07:06:47
Score: 1
Natty:
Report link

In my opinion, tensorflow transform is likely not the right tool for this job. What would clarify it is if the two datasets are two independent streams that come in at inference time, and need to be merged somehow, an also need to be done in the tensor graph. The last part is the reason I'm saying transform is likely not the right tool, because a group by is not a tensor operation. Tensorflow transform encodes tensor operations into a tensor graph similar to the fit method in sklearn.preprocessing. Tensorflow transform is for things that require a full pass over the training dataset (e.g. compute and store mean, variance etc). Hope this clarifies things, let me know if you need further help with this.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pritam Dodeja

79471828

Date: 2025-02-27 07:03:47
Score: 1
Natty:
Report link

You could do something like this:

import {router} from '@inertiajs/vue3'

const paginateClick = (page) => {
    const currentUrl = window.location.pathname;

    const query = new URLSearchParams(window.location.search);

    query.set('page', page);

    router.get(`${currentUrl}?${query.toString()}`)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hoang

79471812

Date: 2025-02-27 06:57:46
Score: 1
Natty:
Report link

Faced with the same problem. It helped to update the modem firmware. Old version: AT+CGMR +CGMR: LE11B08SIM7600M22 New version: AT+CGMR +CGMR: LE11B14SIM7600M22_221022 Flashing Instructions: To update the module's software, you will need the following files:

  1. Drivers

Connecting a modem (or debugging) directly via USB:

for all Windows versions: https://drive.google.com/file/d/18d37YLOOnDrlxSXq2aQwQAMinHPGMLBk/view?usp=sharing

for Linux: https://drive.google.com/file/d/1LqArVeNvR3CpOOMfrEGL999W7W-TxGIg/view?usp=sharing

  1. Utility

Available for download via the link:

https://drive.google.com/file/d/1t4O6gTTZkQGW6CEIo9JCpMjjQwqoZaTL/view?usp=sharing

  1. Module software

Current Software (S2-107EQ / S2-10CYG):

B14_221022 - https://drive.google.com/file/d/10zjUvN5rEJ8viTxraa2jvV1fkjzmAiml/view?usp=sharing


The firmware update process is divided into stages:

  1. Connect the module via USB to the PC

  2. Download and unpack the archives using the links above

  3. Install the drivers

  4. Download and install QPST:

https://drive.google.com/file/d/1K5DxiYI6Ah3ygFKLkLt_xe-94qXrWEeB/view?usp=sharing

  1. Turn on the module (apply power and clamp the PWRKEY to the ground)

  2. Make sure that there are no unidentified devices in the Device Manager.

  3. Move the unpacked firmware folder and the utility folder to the root of any disk.

  4. Open the utility; Status field=grey

7.1. In the utility, click "Load" and select "MDM9x07(SIM7500&SIM7600 Series)"

7.2. In the window that opens, select the path to the firmware folder and after the utility detects all the files that make up the firmware (the lines will turn green), close the window.

7.3. Click "Start"

  1. The firmware process will start (Status=blue field), you can control the process by watching the progress bar in the utility. If the process stops by 1-2% during the update, check the Task Manager for unknown devices during the update (use the driver above)

  2. Upon completion, the green label "Update Success!" will appear (Status field=green).

  3. Press "Stop" in the top menu of the utility and turn off the module CORRECTLY (via PWRKEY or 'AT+CPOWD=1').

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Владислав

79471801

Date: 2025-02-27 06:51:44
Score: 6.5 🚩
Natty:
Report link

I am allso facing same problem

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): facing same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Amit Kumar

79471793

Date: 2025-02-27 06:48:43
Score: 0.5
Natty:
Report link

It was my mistake. I tried the solution before, but made a syntax error:

Now it works without any problems. I forgot editLesson in inside the sheet syntax. Thank you for your comment.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user2836375

79471791

Date: 2025-02-27 06:47:43
Score: 1
Natty:
Report link

Because you are not export myFunc as object, you should call test2(), in test2.js

const test2 = require('./test1.js');
console.log(test2());

or you can export myFunc as object, in test1.js

const myFunc = () => {
    return "Hello World!";
};
module.exports = {myFunc};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chandalen Teang

79471790

Date: 2025-02-27 06:47:43
Score: 0.5
Natty:
Report link

if you're on Next.js, you might want to do it like this,

you might want to import fs like this,

import { promises as fs } from 'fs';
.
.
.

await fs.readFile(process.cwd() + "/lib/db-schema.md");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Seng Wee

79471788

Date: 2025-02-27 06:46:42
Score: 2
Natty:
Report link

Is there a way to share information between value converters ?

I initially thought about binding all the object and update the property once (I mean the Enum) inside the value converter, but I prefer binding only the property (string) and revaluate the Enum locally, but if I could share it, that's would be great.

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
    var fieldDescriptionPattern = FieldHelpers.GetDescriptionPattern((string)value); // <- Can I share it in multiple value converters : font weight, foreground, etc.?

    if (_fieldDescriptionBrushes.TryGetValue(fieldDescriptionPattern, out Brush brush))
    {
        return brush;
    }

    return Brushes.Transparent;
}
Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: Ludovic Wagner

79471787

Date: 2025-02-27 06:46:42
Score: 3.5
Natty:
Report link

There is no connection between innodb_page_size and RDS instance size.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Puran Kaurav

79471785

Date: 2025-02-27 06:44:42
Score: 2.5
Natty:
Report link

I believe you're wanting https://hexdocs.pm/ecto/Ecto.Multi.html and haven't bumped into it yet in the docs.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Jason

79471778

Date: 2025-02-27 06:40:41
Score: 2.5
Natty:
Report link

The correct order is Catch and then Prefetch. The reason is cache stores the dataset in fast memory and then prefetch prepares the next batch while the model is training on the current batch. In this manner model works on data stored in catch and after that we prepare next batch.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Khush patel

79471769

Date: 2025-02-27 06:33:39
Score: 1
Natty:
Report link

You can make use of a tally table and with substring()

declare @str  varchar(100) = 'AaaaaBbbbbCccccDdddd';
declare @m    int = 5,
        @n    int = 4

select t.i, op = substring(@str, (t.i * @m) + 1, @m)
from   tally t
where  t.i >= 0 
  and  t.i <  @n
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hkt

79471762

Date: 2025-02-27 06:29:39
Score: 1
Natty:
Report link

When you define module.exports as myFunc, you are defining the export object to be the function itself, but you were expecting the function to be a part of the object. The following would be correct:

console.log(test2());

Alternatively, define the function as a part of the export but not the export itself.

module.exports = {myFunc};
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: 2603003199

79471760

Date: 2025-02-27 06:29:39
Score: 0.5
Natty:
Report link

I highly recommend you to check the return value of the HAL_UART_Receive function. In case of any error, check UART specific error using HAL_UART_GetError function. I could not get it how you get the timeout error without checking function status. I can give you more accurate answers after you check the function status. Maybe try to enable UART interrupts and put a breakpoint to the interrupt function and check if code reaches the breakpoint. If not reach there, you might have some other problems rather than a coding problem.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Doğukan Arat

79471752

Date: 2025-02-27 06:21:37
Score: 1.5
Natty:
Report link

Try this:

https://www.openplayerjs.com/

I used it when I ran across a station called The Lot, out of Brooklyn, NY. It seems well engineered, and works well. I have yet to find many other internet radio stations using "video/mp2t" -- I'm not sure why. If anyone has any other examples of real radio, with real DJs, using this format, please let me know.

Reasons:
  • Whitelisted phrase (-2): Try this:
  • RegEx Blacklisted phrase (2.5): please let me know
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: monist

79471749

Date: 2025-02-27 06:20:37
Score: 8 🚩
Natty: 5
Report link

maybe you can try out this notebook:

https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/yolov11-optimization/yolov11-object-detection.ipynb

yolov11 object detection

or could you share the steps to reproduce this error?

Reasons:
  • RegEx Blacklisted phrase (2.5): could you share
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: iamworking

79471746

Date: 2025-02-27 06:19:36
Score: 1.5
Natty:
Report link

Load pykd.pyd as ext requires certain pythonXY.dll found by pykd.pyd.

Suggest use pykd bootstrapper (pykd.dll) as WinDbg ext, and install pykd as wheel. The bootstrapper will found pykd.pyd via import.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ivellios

79471744

Date: 2025-02-27 06:18:36
Score: 2
Natty:
Report link

Leaving comment as answer as low on rep. Is your site actually using it? Checked network tab for any failed requests? When you publish do you see them in the output? Is your site using the correct version of that CSS file that loads the fonts?

The sources tab doesn't show what is on the server, it shows what has been loaded from the server(s).

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: iron_spark

79471739

Date: 2025-02-27 06:16:35
Score: 4.5
Natty: 7.5
Report link

It is working thanks for your help

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-0.5): thanks for your help
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vishal

79471737

Date: 2025-02-27 06:14:35
Score: 2.5
Natty:
Report link

Your CSS style is written incorrectly. When adding the class name, it was added to the same element, and there is an extra space in the middle of your style. container. lakisa menu+nav li. The correct example should be

/*  big blue SPINNER */
.container.lakisa-menu .circle {
transform: rotate(-70deg);
}

.container.lakisa-menu+nav li {
transform: translateX(0);
transition-delay: 0.3s;
}

Is this the effect you want to achieve by clicking and rotating?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: zhimali597

79471734

Date: 2025-02-27 06:13:34
Score: 1
Natty:
Report link

1. Data Structure: List: square brackets [] indicate that players is a list.

Dictionary: Each element of the list is a dictionary, which is indicated by curly brackets {}.

Key-Value Pairs: Each dictionary has key-value pairs. For example, {"name": "Rolf", "numbers": {1, 3, 5, 7, 9, 11}} where "name" is a key, and "Rolf" is its value; "numbers" is a key, and {1, 3, 5, 7, 9, 11} is its value.

2. Accessing Elements:

To access the "numbers" of a player, you can index into the list and use the keys. For example, players[0]["numbers"] will give you {1, 3, 5, 7, 9, 11}.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sarthkee waghchaure

79471726

Date: 2025-02-27 06:10:34
Score: 3
Natty:
Report link

I had the same problem and all ran the flutter clean command and it did not work. All i had to do was to manually delete the build\flutter_assets.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nah Cassie

79471722

Date: 2025-02-27 06:09:33
Score: 4.5
Natty:
Report link

Please, can you share your Laravel version?

Please try creating the virtual host because I was facing the same issue. After creating the virtual host, it worked fine.

Reasons:
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (2.5): can you share your
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Muhammad Waqas

79471706

Date: 2025-02-27 05:58:31
Score: 2
Natty:
Report link

Incentit offers a robust solution for managing rebates, channel incentives, and spiffs. Our software streamlines rebate tracking and administration, from energy efficiency rebates and load growth incentives to installer spiffs and instant discounts. With features like centralized grant administration, net metering agreements, and load controller deployment, Incentit supports various utility and energy services programs. Enhance your channel partner incentives and streamline rebate management with our comprehensive platform. For a complete solution to optimize your incentive programs, visit https://incentit.com/.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29818401

79471705

Date: 2025-02-27 05:58:31
Score: 0.5
Natty:
Report link

Looks like it has to come as options in the second argument when using the listBy* queries.

E.g.

client.model.Messages.listByTimestamp({
  // fields you need
}, {
  limit: 10,
  nextToken: nextToken,
  sortDirection: "DESC"
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Evgeny Urubkov

79471700

Date: 2025-02-27 05:57:31
Score: 5
Natty:
Report link

I just solved that problem on a repository I am currently developing. Check out my repo, and please give me a star. I would greatly appreciate everyone's support. A review would be nice. The section you want to view is my "Tech Stack," particularly "Adobe Creative Cloud." https://github.com/supercodingninja/ePortfolio/tree/385cea841d16fe6f53fab895e2d48073df3283fa

Reasons:
  • RegEx Blacklisted phrase (2.5): please give me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: The Super Coding Ninja

79471695

Date: 2025-02-27 05:53:30
Score: 1
Natty:
Report link

In my case, I added that option and the error disappeared.

-Dspring.devtools.restart.enabled=false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: daesoo9200

79471690

Date: 2025-02-27 05:50:30
Score: 3
Natty:
Report link

for deployment groups, azure devops deployment group installation script assumes x64 architecutre but the new graviton instances on ec2 are arm64, so the script has to be tweaked a little

from https://vstsagentpackage.azureedge.net/agent/4.251.0/vsts-agent-linux-x64-4.251.0.tar.gz

to https://vstsagentpackage.azureedge.net/agent/4.251.0/vsts-agent-linux-arm64-4.251.0.tar.gz

replace agent versions with the latest agent versions available

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ewin

79471686

Date: 2025-02-27 05:48:29
Score: 2
Natty:
Report link

you can use chatgpt you can you the ai tool to find the problem

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hassan raza

79471667

Date: 2025-02-27 05:31:26
Score: 0.5
Natty:
Report link

If rest contains dynamic objects, but changes are rare, you can use a useRef to store the last value and detect changes manually:

You can also use lodash for deep and equal comparison

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anant Jindal

79471665

Date: 2025-02-27 05:30:26
Score: 4
Natty:
Report link

set the below configuration to retrieve the null values
SET date_time_overflow_behavior= 'saturate'

reference
https://clickhouse.com/docs/operations/settings/formats#date_time_overflow_behavior

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hemanth Kumar N R

79471664

Date: 2025-02-27 05:27:25
Score: 1
Natty:
Report link

The answer to this question is here

Add &pageHistory=0,1,2 to the prefilled link to let the form know you will use all sections (pages). In this example suppose you have three sections and one of them is the hidden one.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sebastian Giambastiani

79471662

Date: 2025-02-27 05:23:24
Score: 0.5
Natty:
Report link

[RESTful API - Naming convention - 15 Key Guidelines ][1]

Abbs:

Use Lowercase Letters Use Nouns, Avoid Verbs (CRUD Functions) Use Singular and Intuitive Names for URI Hierarchy Use Forward Slash (/) to Indicate URI Hierarchy Use Hyphens (-) to Separate Words for Readability Use Query Parameters to Filter and Provide Details Use a Limit Parameter for Pagination Avoid Using URL/URI Escape Characters Do Not Use File Extensions Use API Versioning Control for SEO and Scalability Be Consistent Across Endpoints for SEO and Usability Use Descriptive Parameter Names Consider Resource Relationships for Hierarchies HTTP Status Codes and Error Handling Secure Your API with Authentication

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlad Jeman

79471661

Date: 2025-02-27 05:22:24
Score: 0.5
Natty:
Report link
const arrayColumn = (array, column_key, index_key = null) => {
    if (index_key !== null) {
       return array.reduce((a, b) => Object.assign(a, {[b[index_key ]]: column_key ? b[column_key] : b}))
    } else {
       return array.map(a => column_key ? a[column_key] : a)
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Chesnakov

79471660

Date: 2025-02-27 05:22:24
Score: 1.5
Natty:
Report link
SELECT column_a ,REGEXP_SUBSTR(column_b, '[^,]+', 1, LEVEL) AS split_value
FROM abc CONNECT BY LEVEL <= REGEXP_COUNT(column_b, ',') + 1 ORDER BY 
column_a;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: longmiumiu

79471658

Date: 2025-02-27 05:22:24
Score: 2
Natty:
Report link

folders in Browsers devtool dont show folder like visual studio folders. i must check link for checking serving static files. for this question i must check url http://host/Fonts/BTitrBold.TTF.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: abbas-h

79471657

Date: 2025-02-27 05:21:24
Score: 2.5
Natty:
Report link

You can choose TestFlight for selected users and can access the app for the peoples we permit using apple id or choose Unlisted app distribution if need to be download using a link.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anandu K Dev

79471653

Date: 2025-02-27 05:18:23
Score: 1
Natty:
Report link
jq --arg date "$(date '+%Y-%m-%dT%H:%M')" '
  select(.time | startswith($date)) | .log
' logs.json

This Filters logs where time matches the current minute and Extracts only the log field

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Quantum Sc

79471647

Date: 2025-02-27 05:15:23
Score: 1
Natty:
Report link

Try raw windbg commands first:

kd> !sym noisy  
kd> .reload /f nt  
kd> dt nt!_UNICODE_STRING  
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ivellios

79471644

Date: 2025-02-27 05:13:22
Score: 1.5
Natty:
Report link

Alt + U => Undo
Alt + R => Redo

Reasons:
  • Low length (2):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Md Shahriar

79471637

Date: 2025-02-27 05:05:20
Score: 5
Natty:
Report link

Is there any prompt which we can add that will make copilot not to use public code

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Divyam

79471635

Date: 2025-02-27 05:03:19
Score: 5
Natty: 5
Report link

Adding 'react/jsx-runtime' to rollup external array saved my day. I think it might be a bug of rollup since react/jsx-runtime is included in react.

Reasons:
  • Blacklisted phrase (2): saved my day
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Xingdi Tan

79471619

Date: 2025-02-27 04:50:17
Score: 2
Natty:
Report link

fixed: changed naming to be correct with my files:

<Stack screenOptions={{ headerShown: false }}>
  <Stack.Screen name="onboarding" />
  <Stack.Screen name="(tabs)" />
</Stack>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: fbablu

79471615

Date: 2025-02-27 04:48:16
Score: 2.5
Natty:
Report link

You should create a formula column for each column where you want to display the value instead of the id, and use #display to pull the display value. For instance {status#display}

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: cesar parra

79471612

Date: 2025-02-27 04:46:16
Score: 2.5
Natty:
Report link

Seem like SearchableRelation is on nova 4 or higher. Not for v3.

V4 release note: https://nova.laravel.com/docs/v4/releases#search-improvements

V3 docs: https://github.com/laravel/nova-orion-docs/tree/main/3.x

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hoang

79471594

Date: 2025-02-27 04:33:14
Score: 1.5
Natty:
Report link

"Clean Core" refers to a way of designing or managing a system or business that focuses on keeping things simple, efficient, and organized.

These five dimensions are:

  1. Processes: The methods or steps you use to get things done.
  2. Extensions: The extra features or add-ons that improve or expand the system.
  3. Data: The information that is used or processed in the system.
  4. Integrations: How different systems or tools work together.
  5. Operations: The day-to-day activities that keep everything running smoothly.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Heisenberg

79471592

Date: 2025-02-27 04:31:13
Score: 2.5
Natty:
Report link

The configuration option is micronaut.http.services.*.allow-block-event-loop=true. I also set micronaut.server.thread-selection=AUTO. (Syntax will vary depending on whether you're using application.yml or application.properties, etc.)

There appears to be additional configuration needed, however. Maybe specifying a separate thread pool? Because this change alone does not appear to resolve the 500 error

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Lena

79471589

Date: 2025-02-27 04:28:13
Score: 2
Natty:
Report link

Now there is a restrictSearchableAttributes feature that allows changing the searchable attributes on each request

$results = $index->search('query', [
  'restrictSearchableAttributes' => [
    'name',
  ]
]);

https://www.algolia.com/doc/api-reference/api-parameters/restrictSearchableAttributes/?client=php#how-to-use

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wattsy2020

79471582

Date: 2025-02-27 04:18:11
Score: 0.5
Natty:
Report link

This should be work:

  1. Don't load the current record module: Avoid loading unnecessary modules to improve performance.
  2. Use the context to retrieve the fieldId ( see https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4410692508.html )
  3. Use the right methods parameters for setters and getters ( see https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4637582256.html, https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4637577499.html )

/**
 *@NApiVersion 2.x
 *@NScriptType ClientScript
 */
 define([],
    function() {
        function fieldChanged(context) {
            var fieldName = context.fieldId;
            //return if not one of these fields
            if (fieldName !== 'custrecord_am_ehir_emp_prem_percent' &&
                fieldName !== 'custrecord_am_ehir_dep_prem_percent' &&
                fieldName !== 'custrecord_am_ehir_total_month_prem') {
                return false;
            } else {
                //get premium and percent values
                var totalPremium = context.currentRecord.getValue({
                    fieldId: 'custrecord_am_ehir_total_month_prem'
                });
                var employeeOnlyPremium = context.currentRecord.getValue({
                    fieldId: 'custrecord_am_ehir_emp_only_prem'
                });
                var employeePercent = context.currentRecord.getValue({
                    fieldId: 'custrecord_am_ehir_emp_prem_percent'
                });
                var dependentPercent = context.currentRecord.getValue({
                    fieldId: 'custrecord_am_ehir_dep_prem_percent'
                });
                var employeePremium = totalPremium * employeePercent;
                var dependentPremium = (totalPremium - employeeOnlyPremium) * dependentPercent;
                var companyPremium = totalPremium - employeePremium - dependentPremium;
                //set field values
                context.currentRecord.setValue({
                    fieldId: 'custrecord_am_ehir_emp_month_prem',
                    value: employeePremium
                });
                context.currentRecord.setValue({
                    fieldId: 'custrecord_am_ehir_dep_month_prem',
                    value: dependentPremium
                });
                context.currentRecord.setValue({
                    fieldId: 'custrecord_am_ehir_co_month_prem',
                    value: companyPremium
                });
            }
        }
        return { fieldChanged: fieldChanged };
    }
);

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cesar parra

79471579

Date: 2025-02-27 04:18:11
Score: 1.5
Natty:
Report link

i was able to fix it by using this string

$Model = ([System.Text.Encoding]::ASCII.GetString($Monitor.UserFriendlyName)).Replace("$([char]0x0000)","")

using [char] is the best option

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: shoober420

79471571

Date: 2025-02-27 04:09:09
Score: 2
Natty:
Report link

Well thought to share an answer on how I dealt with this problem.

I created a flow chart on the process of Authentication and what I was missing is the state which checks whether the checkAuthAction call is completed or not. Only after that do I need to check the isAuthenticated state to navigate to the login screen.

I have shared the flow chart for better understanding.

Hope this makes sense.

Thanks!

Flow Chart

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Keyur