79470709

Date: 2025-02-26 18:22:00
Score: 1
Natty:
Report link

I got chrome and google maps to stop adding in the links to google maps by using the format detection meta tag.

<meta name="format-detection" content="address=no">

I also added some css for any links within my itemised div to stop any injected links becoming clickable with pointer-events: none;.

Now there is no accidently opening of google maps search on addresses.

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

79470708

Date: 2025-02-26 18:19:59
Score: 3
Natty:
Report link

Successful businesses thrive on adaptability and strategic execution. One key tip is to foster a culture of continuous learning and innovation, ensuring your team stays ahead of market shifts. At MetaResults, we empower leaders with the tools and insights needed to refine strategies, enhance decision-making, and drive sustainable growth. Investing in leadership development and agile business practices positions your organization for long-term success in an evolving marketplace.

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

79470707

Date: 2025-02-26 18:19:59
Score: 2.5
Natty:
Report link

I had this problem and the only thing that helped was the section at the bottom 'Additionally, if you use Windows you must perform an additional configuration' of this page : Anypoint Studio v7.19 - Not able to authenticate

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

79470704

Date: 2025-02-26 18:18:59
Score: 12 🚩
Natty: 5.5
Report link

I'm also facing pretty much the same issue on my mac M2. Have you found any solution to this?

rviz window shows up, and then it crashes...

Please help

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (2.5): Have you found any solution to this
  • RegEx Blacklisted phrase (2): any solution to this?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gunjan Siddharth

79470696

Date: 2025-02-26 18:13:57
Score: 0.5
Natty:
Report link

The function torch.nn.utils.rnn.pad_sequence now supports left-padding, so you can just use:

torch.nn.utils.rnn.pad_sequence(
    [torch.tensor(t) for t in f], batch_first=True, padding_side='left'
)

to get what you're looking for.

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

79470693

Date: 2025-02-26 18:12:57
Score: 1.5
Natty:
Report link

This would back up on the first day of every 6 months.

0 0 16 1 */6 ? *

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alephпτ1

79470690

Date: 2025-02-26 18:11:57
Score: 1.5
Natty:
Report link

In your AWS Console > Amplify, select your app, select Hosting > Rewrites and redirects. If there is a redirect for <*> to /index.html with type 400, that is the issue.

For non-SPAs change the type to 200.

For SPAs, can remove the 404 rewrite, and it is recommended to use:

Source: </^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>

Target: /index.html

Type: 200 (Rewrite)


Source: https://docs.aws.amazon.com/amplify/latest/userguide/redirect-rewrite-examples.html

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

79470689

Date: 2025-02-26 18:11:57
Score: 0.5
Natty:
Report link
default Class<T> getEntityClass() {
    return (Class<T>) ResolvableType.forClass(getClass())
        .as(VersionedRepository.class)
        .getGeneric(0)
        .resolve();
}

This would work

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stalin Gino

79470687

Date: 2025-02-26 18:10:56
Score: 2
Natty:
Report link

I got this error while I was trying to connect to a database from my IDE, SSL was supposed to be required, so I had to enable trust server certificate to true after enabling the SSL to 'required' and it solved it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Cheruiyot A Kirui

79470673

Date: 2025-02-26 18:05:55
Score: 1.5
Natty:
Report link

MUI V6

<Grid
  container
  direction="flex-end"
  sx={{
    justifyContent: "center",
    alignItems: "center",
  }}
>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: eleventhaus

79470667

Date: 2025-02-26 18:01:55
Score: 3
Natty:
Report link

Figured it out. By using form elements small, it was taking the font below 16 (1REM), and that is the smallest to be used on mobile devices like the iPhone, so the browsers were automatically increasing it. I'm going to use different sizes at the smaller breakpoint.

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

79470663

Date: 2025-02-26 18:00:54
Score: 2.5
Natty:
Report link

The answer by Rafael is actually using the clue package, not clues. Clues does not exist but clue does.

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

79470655

Date: 2025-02-26 17:59:54
Score: 1
Natty:
Report link

There seem to be a lot of good alternatives here, but all seem to rely on running curl and potentially host directly from a shell. Please be aware that if you're intending to call all of the application instances (e.g. web application) from within one of the application instances (not just in the pod, but from within the application code itself), spawning a shell to execute script commands is absolutely not a good practice - any time you spawn a command shell from inside your app, you leave an exploitable attack surface that can allow a clever hacker to potentially escalate privileges or at least run malicious code (https://attack.mitre.org/techniques/T1059/003/ speaks about Windows, but the same theory applies to Linux). Do yourself a favor and make a call to an OS function to connect to an external resource instead of spawning a shell to use curl.

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

79470650

Date: 2025-02-26 17:58:54
Score: 1.5
Natty:
Report link

I got a very similar issue when working with kafka_2.12-2.2.0 Neither my Zookeeper client nor any of my Kafka brokers were able to connect to the Zookeeper server. (issue relating to some internal authentication)

I was using JDK 23 by default set by my Mac. So, instead of rolling back to JDK 11, I used the latest Kafka version available on their website https://kafka.apache.org/quickstart It now works perfectly with the latest JDK and the latest Kafka version.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: satya ashok dowluri

79470646

Date: 2025-02-26 17:56:53
Score: 1.5
Natty:
Report link

You say that your Legacy App Signing Certificate is no longer in use. In fact if you upgraded your app's signing key in Google Play as explained here, your Legacy App Signing Certificate is still used on Android 12L and below. This is because Google Play applies the v3.1 signature scheme when rotating the signing key, which is explained here:

Hence when you implement Google Sign-in, you should still declare in your OAuth Client ID the SHA-1 fingerprint of your Legacy Certificate. Authentication to Google APIs will still work on Android 13 and above thanks to the proof of rotation included in the v3.1 signature -> it allows the new signing key to be recognized as valid for the OAuth Client ID associated to the Legacy Certificate.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Xavier R

79470642

Date: 2025-02-26 17:55:53
Score: 1.5
Natty:
Report link

If you are using an old version of plotly, then running pip install --upgrade plotly should fix this issue.

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

79470640

Date: 2025-02-26 17:55:53
Score: 2.5
Natty:
Report link

It appears that bcrypt is not being maintained, despite getting ~ 2M downloads a week on NPM...

https://github.com/kelektiv/node.bcrypt.js/issues/1038

https://github.com/kelektiv/node.bcrypt.js/issues/1189

@mapbox/node-pre-gyp has a newer version out, but this hasn't been adopted by bcrypt (at the time of this writing at least).

I'm considering using this instead: https://github.com/uswriting/bcrypt

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

79470625

Date: 2025-02-26 17:47:52
Score: 2
Natty:
Report link

somewhere in your classpath you have a javax.transaction.xa package defined in a jar most likely in a geronimo-jta jar or a javaEE transaction-api jar

you need to be using the jakarta transaction api jar instead.

the jakarta transaction jar DOES not have the javax.transaction.xa package. And the javax.transaction package needs to be updated to jakarta.transaction in your code

note: the javax.transaction.xa package is now part of the JDK/JRE whereas javax.transaction is not

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rick Brown

79470612

Date: 2025-02-26 17:42:51
Score: 1
Natty:
Report link

The solution for me has been using the go 1.21 runtime instead of the go 1.22 runtime in gcloud functions deploy:

gcloud functions deploy my-gcloud-function \
    --runtime=go121 \
    ...

It seems to me a gcloud bug, but nevertheless I share the problem and my solution, maybe it was helpful for somebody else.

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

79470609

Date: 2025-02-26 17:42:51
Score: 1.5
Natty:
Report link

Solution without loop, sleep and extra process:

exec 3<> <(:)
read <&3
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: koct9i

79470607

Date: 2025-02-26 17:41:50
Score: 2.5
Natty:
Report link

Steps:

  1. Check if the C: have tmp folder or not? If not create one.

  2. Move the ".csv" file to the C:\tmp\ folder

  3. Now try in pgAdmin using path 'C:\tmp\your_file_name.csv'

This will work!

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

79470606

Date: 2025-02-26 17:40:50
Score: 0.5
Natty:
Report link

I have just struggled with this same issue. As of Feb. 26th, 2025, TensorFlow is in version 2.18.0. To call the method in this question your valid import will be:

from tensorflow.python.keras.utils import layer_utils

And then:

...
layer_utils.convert_all_kernels_in_model(model)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aureliano Buendia

79470596

Date: 2025-02-26 17:36:49
Score: 1.5
Natty:
Report link

From the error message it looks your maven-metadata.xml file is corrupteed. so if you open this file C:\Users\NOKIA_ADMIN.m2\repository\us\nok\mic\hrm\portal\portlet\basic-details-nok-form-portlet\maven-metadata-local.xml you should find \u0 at the start of the first line. that is not allowed as it is outside the start tag. you may just remove these additional characters then try again, or delete the whole maven-metadata-local.xml file as it is inside .m2 folder and will be auto generated when you run your mvn command again.

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

79470592

Date: 2025-02-26 17:35:49
Score: 0.5
Natty:
Report link

I had the same issue. Noticed in AWS Console > Hosting > Rewrites and redirects, by default there was a redirect for <*> to /index.html, with type 404.

I simply changed the type to 200 and this fixed the issue.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: rw_

79470590

Date: 2025-02-26 17:35:48
Score: 8 🚩
Natty:
Report link

I am getting the same error - but it is not related to an Optimization Experiment. In my case that is somehow related to the space configuration in a Pedestrian model. My guess is that the space pre-processing has difficulties with walls / obstacles. Or the latter have some inconsistencies?..

Reasons:
  • RegEx Blacklisted phrase (1): I am getting the same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ishkhanyantz

79470589

Date: 2025-02-26 17:34:48
Score: 0.5
Natty:
Report link

Apparently I didn't read enough of the documentation. You can give applymap any kwargs used by the formatting function:

def condFormat(s, dic=None):
    dcolors = {"GREEN": "rgb(146, 208, 80)",
               "YELLOW": "rgb(255, 255, 153)",
               "RED": "rgb(218, 150, 148)",
               None: "rgb(255, 255, 255)"}
    return f'background-color: {dcolors.get(dic.get(s), "")}'

dic = dfdefs.set_index('STATUS')['COLOR'].to_dict()
dfhealth.style.applymap(condFormat, dic=dic)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kes Perron

79470587

Date: 2025-02-26 17:33:47
Score: 1.5
Natty:
Report link

Settings -> Components and remove all the platforms!

enter image description here

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

79470586

Date: 2025-02-26 17:33:47
Score: 2.5
Natty:
Report link

I had a similar problem and the solution was to find if the component that announced this error was declared somewhere else. Apparently it was declared in some unit test files of some other components. Deleting it from there fixed the issue.

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

79470584

Date: 2025-02-26 17:33:47
Score: 2.5
Natty:
Report link

A really smart answer would be that Tailwind always need a compilation step for CSS to make this example operate. This is what the frameworks are responsible for doing (vite, react, ...)

Without a framework, it is necessary to use the Cli and therefore launch a built before each throw.

Thank you: Wongjn

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: guillaumearnx

79470581

Date: 2025-02-26 17:31:47
Score: 2
Natty:
Report link
this is how the error for my spark application looks like ->

User class threw exception: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 3.0 failed 1 times, most recent failure: Lost task 0.0 in stage 3.0 (TID 31) (hludlx54.dns21.socgen executor 2): org.apache.spark.sql.execution.QueryExecutionException: Parquet column cannot be converted in file hdfs://HDFS-LUDH01/fhml/uv/ibi_a8411/effect_calculation/uv_results_test/closingDate=20240630/frequency=Q/batchId=M-20240630-INIT_RWA-00607-P0001/part-00001-c41ee3a2-5ada-47c9-8e7d-fbb9b180ab81.c000.snappy.parquet. Column: [allocTakeoverEffect], Expected: float, Found: DOUBLE
    at org.apache.spark.sql.errors.QueryExecutionErrors$.unsupportedSchemaColumnConvertError(QueryExecutionErrors.scala:570)
    at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.nextIterator(FileScanRDD.scala:195)
    at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:104)
    at org.apache.spark.sql.execution.FileSourceScanExec$$anon$1.hasNext(DataSourceScanExec.scala:522)

##############################

here's the function in scala for it ->

  def pushToResultsSQL(ResultsDf: DataFrame): Unit = {
    val resultsTable = config.getString("ibi.db.stage_ec_sql_results_table")

    try {
      stmt = conn.createStatement()
      stmt.executeUpdate(truncateTable(resultsTable))

      EffectCalcLogger.info(
        s" TABLE $resultsTable TRUNCATE  ****",
        this.getClass.getName
      )

      val String_format_list = List( "accounttype", "baseliiaggregategrosscarryoffbalance", "baseliiaggregategrosscarryonbalance", "baseliiaggregateprovoffbalance", "baseliiaggregateprovonbalance", "closingbatchid", "closingclosingdate", "closingifrs9eligibilityflaggrosscarrying", "closingifrs9eligibilityflagprovision", "closingifrs9provisioningstage", "contractid", "contractprimarycurrency", "effectivedate", "exposurenature", "fxsituation", "groupproduct", "indtypprod", "issuingapplicationcode", "openingbatchid", "openingclosingdate", "openingifrs9eligibilityflaggrosscarrying", "openingifrs9eligibilityflagprovision", "openingifrs9provisioningstage", "reportingentitymagnitudecode", "transfert", "closingdate", "frequency", "batchid"
      )

      val Decimal_format_list = List( "alloctakeovereffect", "closinggrosscarryingamounteur", "closingprovisionamounteur", "exchangeeureffect", "expireddealseffect", "expireddealseffect2", "newproductioneffect", "openinggrosscarryingamounteur", "openingprovisionamounteur", "overallstageeffect", "stages1s2effect", "stages1s3effect", "stages2s1effect", "stages2s3effect", "stages3s1effect", "stages3s2effect"
      )

      val selectWithCast = ResultsDf.columns.map(column => {
        if (String_format_list.contains(column.toLowerCase))
          col(column).cast(StringType)
        else if (Decimal_format_list.contains(column.toLowerCase))
          col(column).cast(DecimalType(30, 2))
        else col(column)
      })

      val ResultsDfWithLoadDateTime =
        ResultsDf.withColumn("loaddatetime", current_timestamp())

      print(
        s"this is ResultsDfWithLoadDateTime: \n ${ResultsDfWithLoadDateTime.show(false) }"
      )

      val orderOfColumnsInSQL = getTableColumns(resultsTable, conn)

      print(s"This is order of columns for results table: $orderOfColumnsInSQL")

      EffectCalcLogger.info(
        s" Starting writing to $resultsTable table ",
        this.getClass.getName
      )

      ResultsDfWithLoadDateTime.select(selectWithCast: _*).select(orderOfColumnsInSQL.map(col): _*).coalesce(numPartitions).write.mode(org.apache.spark.sql.SaveMode.Append).format(microsoftSqlserverJDBCSpark).options(dfMsqlWriteOptions.configMap ++ Map("dbTable" -> resultsTable)).save()

      EffectCalcLogger.info(
        s"Writing to $resultsTable table completed ",
        this.getClass.getName
      )
      conn.close()
    } catch {
      case e: Exception =>
        EffectCalcLogger.error(
          s"Exception has been raised while pushing to $resultsTable:" + e
            .printStackTrace(),
          this.getClass.getName
        )
        throw e
    }

  }

###################################

and I'll give you the hive create table statement (source side) ->

CREATE EXTERNAL TABLE `uv_results_test`(
  `accounttype` string, 
  `alloctakeovereffect` float, 
  `baseliiaggregategrosscarryoffbalance` string, 
  `baseliiaggregategrosscarryonbalance` string, 
  `baseliiaggregateprovoffbalance` string, 
    ...... rest of the similar columns
  `stages3s2effect` float, 
  `transfert` string)
PARTITIONED BY ( 
  `closingdate` string, 
  `frequency` string, 
  `batchid` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
LOCATION
  'hdfs://HDFS-LUDH01/fhml/uv/ibi_a8411/effect_calculation/uv_results_test'

#############################

and this is the schema in the SQL side (sink) ->

CREATE TABLE [dbo].[effect_calculation_results](
    [fxsituation] [varchar](500) NULL,
    [openingclosingdate] [varchar](500) NULL,
    [closingclosingdate] [varchar](500) NULL,
    [contractid] [varchar](500) NULL,
    [issuingApplicationCode] [varchar](500) NULL,
    [exposureNature] [varchar](500) NULL,
    [groupProduct] [varchar](500) NULL,
    [contractPrimaryCurrency] [varchar](500) NULL,
    [IndTypProd] [varchar](500) NULL,
    [reportingentitymagnitudecode] [varchar](500) NULL,
    [openingIfrs9EligibilityFlagGrossCarrying] [varchar](500) NULL,
    [openingIfrs9EligibilityFlagProvision] [varchar](500) NULL,
    [closingIfrs9EligibilityFlagGrossCarrying] [varchar](500) NULL,
    [closingIfrs9EligibilityFlagProvision] [varchar](500) NULL,
    [openingprovisionAmountEur] [decimal](30, 2) NULL,
    [openinggrossCarryingAmountEur] [decimal](30, 2) NULL,
    [closingprovisionAmountEur] [decimal](30, 2) NULL,
    [closinggrossCarryingAmountEur] [decimal](30, 2) NULL,
    [openingIfrs9ProvisioningStage] [varchar](500) NULL,
    [closingifrs9ProvisioningStage] [varchar](500) NULL,
    [effectiveDate] [varchar](500) NULL,
    [baseliiAggregateGrossCarryOnBalance] [varchar](500) NULL,
    [baseliiAggregateGrossCarryOffBalance] [varchar](500) NULL,
    [baseliiAggregateProvOnBalance] [varchar](500) NULL,
    [baseliiAggregateProvOffBalance] [varchar](500) NULL,
    [Transfert] [varchar](500) NULL,
    [exchangeEurEffect] [decimal](30, 2) NULL,
    [newProductionEffect] [decimal](30, 2) NULL,
    [expiredDealsEffect] [decimal](30, 2) NULL,
    [allocTakeoverEffect] [decimal](30, 2) NULL,
    [stageS1S2Effect] [decimal](30, 2) NULL,
    [stageS2S1Effect] [decimal](30, 2) NULL,
    [stageS1S3Effect] [decimal](30, 2) NULL,
    [stageS3S1Effect] [decimal](30, 2) NULL,
    [stageS2S3Effect] [decimal](30, 2) NULL,
    [stageS3S2Effect] [decimal](30, 2) NULL,
    [overallStageEffect] [decimal](30, 2) NULL,
    [expiredDealsEffect2] [decimal](30, 2) NULL,
    [loaddatetime] [datetime] NULL,
    [openingbatchid] [varchar](500) NULL,
    [closingbatchid] [varchar](500) NULL,
    [accountType] [varchar](500) NULL
) ON [PRIMARY]
GO

so basically If I have to say, the job is taking the data from hive table and writing it to the SQL side table, but I am not sure why there's this error popping up which I have given in the beginning

I looked at the parquet schema of the data lying underneath hdfs path for column allocTakeoverEffect, its of the type double

please let me know how this issue can be fixed

I tried running this 
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know how
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arun Rathod

79470580

Date: 2025-02-26 17:31:47
Score: 0.5
Natty:
Report link

If you are still facing this problem. Probably your _config.yml file is in the wrong location. Since your GitHub Pages is set up to use the docs folder, the _config.yml file should be inside the docs folder, not in the root of the repository. As example you can visit repository here :- https://github.com/jakbin/pcdt-scraper . Now in my repository remote theme is working properly.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jak bin

79470571

Date: 2025-02-26 17:28:46
Score: 1
Natty:
Report link

I had the same issue and it was caused by asking for the latest API version. When I used the 1 month earlier version eg. in this case 202208, it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sgdthfdyjugi

79470566

Date: 2025-02-26 17:27:45
Score: 14 🚩
Natty: 5.5
Report link

I have the same issue, did you fix it ?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): did you fix it
  • RegEx Blacklisted phrase (1.5): fix it ?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kahel

79470539

Date: 2025-02-26 17:17:43
Score: 0.5
Natty:
Report link

Solved it by replacing the currency symbol all together with a custom option inside an ACF radio button:

function cambiar_currency_symbol( $currency_symbol, $currency ) {
    $currencyacffield = get_field('moneda');
    switch ( $currency ) {
        case 'USD': $currency_symbol = $currencyacffield; break;
    }
    return $currency_symbol;
}
add_filter( 'woocommerce_currency_symbol', 'cambiar_currency_symbol', 10, 2 );

Tested and working.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ñako

79470517

Date: 2025-02-26 17:09:41
Score: 2.5
Natty:
Report link

There is a NumPy function that does these sorts of transformation

numpy.interp(value, [input_start, input_end], [output_start, output_end])

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hossein dvz

79470513

Date: 2025-02-26 17:08:41
Score: 2.5
Natty:
Report link

To reduce the false positive rate in fraud detection:

Adjust the Decision Threshold: Instead of the default 0.5, optimize it based on the ROC/PR curve. Use Weighted Loss Functions: Penalize false positives more heavily. Try a More Robust Model: XGBoost, Random Forest, or Anomaly Detection methods may improve performance. Apply Post-Processing: Reevaluate fraud cases with low confidence scores. For a detailed explanation: https://youtube.com/shorts/FfL_IwPWZqE?si=dSjN6eOgHNKG1Y3x 🚀

Reasons:
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stacy Martin

79470506

Date: 2025-02-26 17:06:40
Score: 2
Natty:
Report link

This won't work, you'll get "Attribute value must be constant" error.

Reason: Annotations in Java are processed at compile-time, and their attribute values must be resolvable without executing runtime logic.

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

79470500

Date: 2025-02-26 17:05:40
Score: 2
Natty:
Report link

Login to CMOD Administrator. Select Application Group > Update > Permissions. In permissions tab, Select user id or group in which user is added and verify that user has "Add" permission checked out.

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

79470495

Date: 2025-02-26 17:02:40
Score: 3
Natty:
Report link

This may be a user setting on that individual Computer or permissions differences within the files for each user.

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

79470484

Date: 2025-02-26 16:56:38
Score: 2.5
Natty:
Report link

Using Shell Script

  1. You can install Yarn by running the following code in your terminal:

curl -o- -L https://yarnpkg.com/install.sh | bash

  1. Open a new terminal and verify version. yarn --version
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sanjeedha shriya

79470476

Date: 2025-02-26 16:54:38
Score: 2.5
Natty:
Report link

You can try a third party tool like GitHub Tree to generate directory structure and simply copy it into your markdown.

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

79470474

Date: 2025-02-26 16:52:37
Score: 3.5
Natty:
Report link

Hi you want convert it to indicator, I have done many times . [email protected]

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

79470472

Date: 2025-02-26 16:51:36
Score: 6 🚩
Natty:
Report link

I did not do this problem. Did you do this? Do you have a repo rate for example of the number of steps and in the question is to be done with the name of a question about the probability of the day of my life is the same

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have a
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Asim Ahmed

79470439

Date: 2025-02-26 16:39:34
Score: 1
Natty:
Report link

I solved it creating a parameter group an changing rds.force_ssl from 1 to 0,then associate it with the RDS instance. Finally, creating inbound rules to the VPC and adding PostgreSQL to it, giving access anywhere with IPv4.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oscar RoAh

79470434

Date: 2025-02-26 16:37:34
Score: 1.5
Natty:
Report link

I don't think you want to add DEST to the URL you are retrieving. Instead the call should look something like:

urllib.request.urlretrieve(message, DEST)

Also, look at https://docs.python.org/3/library/stdtypes.html#str.rjust and https://docs.python-requests.org/en/latest/index.html.

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

79470432

Date: 2025-02-26 16:36:33
Score: 3
Natty:
Report link

The initial tests were made with rust 1.80 (where it seems to indeed be an issue). However it works fine with rust 1.85.

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

79470429

Date: 2025-02-26 16:36:33
Score: 2.5
Natty:
Report link

Update: I have downloaded an archived version of the package from here: https://cran.r-project.org/src/contrib/Archive/biomod2/ And installed it successfully on my R through Tools>>Install Packages>>Install from package archive.

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

79470427

Date: 2025-02-26 16:35:33
Score: 3.5
Natty:
Report link

I don't really understand the downvotes for user1418199's answer. It doesn't answer the original question directly, but gives more than enough information to do what the OP is trying to do.

AFAIK the OP tries to avoid copy-pasting code, as suggested at the end by this answer.

If I were him, I'd follow this approach:

  1. Code an abstract BaseUser that is NOT annotated as AutoValue. Nor its builder. Put this all common fields.
  2. Code an AutoValue User class extending from BaseUser. Make its builder extend from BaseUser.Builder (for this, see the aforementioned correct answer from user1418199). This class will be mostly empty, only a few "builder" methods needed.
  3. Finally, add another AutoValue Customer class extending also from BaseUser. Add here the extra fields applicable only to Customer. Make its builder extend from BaseUser.Builder and add builder methods for the extra fields.

With this approach, no, we're not extending an AutoValue class, as requested by the OP, but we're successfully using AutoValue while avoiding copy-pasting.

Reasons:
  • RegEx Blacklisted phrase (2): downvote
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): user1418199
  • Low reputation (1):
Posted by: victama

79470419

Date: 2025-02-26 16:32:32
Score: 3.5
Natty:
Report link

I'm facing a similar problem in Vuetify 3 - I need to style an entire row based on the data of an item. The proposed solutions with :row-props don't work, and overriding the whole row template doesn't work for me as I already have a lot of custom cell templates and the code would be bloated. The developers also seem to have no plans to make a solution for the issue.

In the end, I settled the problem in a slightly crutchy, but compact and quite flexible way. We simply add a hidden element with the custom class (ie, .highlight_parent_row) inside any cell in the row, and then use the tr:has() construct to set the styles we need.

<template>
  <VDataTable
      :headers="headers"
      :items="filteredLotsList"
  >
    <template #item.controls="{ item }">
        <div class="processed-item d-none" v-if="item.processed_time"><!-- just for flagging --></div>
  
        <VToolbar>
          <VBtn :icon="'tabler-clipboard-copy'" @click="copyToClipboard" />
          <VBtn :icon="'tabler-eye-off'" @click="markItemProcessed" />
        </VToolbar>
    </template>
    // rest of the code
  </VDataTable>
</template>

<style>
tr:has(.processed-item) {
  background-color: #e5f8e5;
}
</style>

Hopefully this necroposting will save someone some time and nerves :)

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing a similar problem
Posted by: Denis O.

79470413

Date: 2025-02-26 16:29:31
Score: 0.5
Natty:
Report link

If the reference is from another project, right click on the project you want to add the reference to and select "Edit Project File". Then add the ProjectReference line inside ItemGroup in the following format:

  <ItemGroup>
    ...
    <ProjectReference Include="..\Proj1\proj1.csproj" />
  </ItemGroup>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ahmed

79470409

Date: 2025-02-26 16:28:31
Score: 0.5
Natty:
Report link

Here is the edited version of the description with the addition of the appropriate version check:


I encountered the same error and fixed it by checking my Node.js version. You can follow these steps to fix this issue:

  1. Check the current Node.js version:
node -v
  1. Install and switch Node.js versions using nvm:
nvm install <version> # Replace <version> with the appropriate version (e.g. 18)
nvm use <version>

This description gives you more flexibility in choosing the right version needed. Is it okay? 😊

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Hùng Đinh

79470407

Date: 2025-02-26 16:27:31
Score: 2
Natty:
Report link

Lacking reputation to upvote Michael Wagner's elegant answer, I offer a slight improvement.

public class PropertyCastExtension<T>(T value) : MarkupExtension
{
  [ConstructorArgument("value")]
  public T Value { get; } = value;

  public override object ProvideValue(IServiceProvider serviceProvider) => Value!;
}

[MarkupExtensionReturnType(typeof(int))]
public class IntExtension(int value) : PropertyCastExtension<int>(value) { }

[MarkupExtensionReturnType(typeof(double))]
public class DoubleExtension(double value) : PropertyCastExtension<double>(value) { }
Reasons:
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jack Skate

79470404

Date: 2025-02-26 16:26:31
Score: 2.5
Natty:
Report link

Run this, then retry your installation: new-item "HKLM:\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v4.0.30319\SKUs.NETFramework,Version=v4.7.2" -force

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jon Ellison

79470399

Date: 2025-02-26 16:24:30
Score: 3
Natty:
Report link

is because the layout is re-rendered, and the context used in the layout is recreated. It's seems a bug in app router

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

79470392

Date: 2025-02-26 16:22:29
Score: 8 🚩
Natty: 6
Report link

Its not working.. for drupal 10 .. please help

Reasons:
  • Blacklisted phrase (1): Its not working
  • RegEx Blacklisted phrase (3): please help
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Inc

79470386

Date: 2025-02-26 16:21:28
Score: 1
Natty:
Report link

As mentioned above, use contextlib.nullcontext

import contextlib

with contextlib.nullcontext():
    do_stuff()

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Russell

79470359

Date: 2025-02-26 16:12:27
Score: 3.5
Natty:
Report link

Ricardo Gonçalves I get the following error.

jq: error (at :5): Cannot index string with string "name"

Reasons:
  • RegEx Blacklisted phrase (1): I get the following error
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abu Sina

79470354

Date: 2025-02-26 16:11:26
Score: 5
Natty:
Report link

trying using a different reputation or crosscheck your work

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leonie Jacob

79470353

Date: 2025-02-26 16:11:26
Score: 1.5
Natty:
Report link

Ensure that your services are not causing circular dependencies. If your SubjectService depends on SubSubjectService and vice versa, you might need to use forwardRef in the service providers as well. Have you tried this?

@Injectable()
export class SubjectService {
  constructor(
    @Inject(forwardRef(() => SubSubjectService))
    private readonly subSubjectService: SubSubjectService,
  ) {}
}
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Illia Haponov

79470349

Date: 2025-02-26 16:09:25
Score: 4.5
Natty: 5
Report link

I would very much like to do the same thing. Would it be possible to get a copy of the information?

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

79470347

Date: 2025-02-26 16:08:25
Score: 2.5
Natty:
Report link

I encountered this problem and later realized my code was doing the delete as part of a transaction that wasn't getting committed 😆

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

79470330

Date: 2025-02-26 16:01:23
Score: 0.5
Natty:
Report link

Thanks this helped. But adding a list with sets as argument in the example would make it complete.

let

...

in

recursiveMerge [
  { a = "x"; c = "m"; list = [1]; }
  { a = "y"; b = "z"; list = [2]; }
]
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: mipmip

79470328

Date: 2025-02-26 16:00:23
Score: 2
Natty:
Report link

What also can help in this case is the following package: https://www.npmjs.com/package/body-scroll-lock

It basically locks all scrolling functions on the body element

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What also can help in this
Posted by: kenny

79470321

Date: 2025-02-26 15:58:22
Score: 1
Natty:
Report link
UPDATE wp_posts 
SET post_status = 'wc-completed' 
WHERE post_status IN ('wc-processing') 
AND post_type = 'shop_order';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Voltaki

79470320

Date: 2025-02-26 15:58:22
Score: 3
Natty:
Report link

The same error has been occurring all day since 2:00 PM GMT.

Error 500 - 38189

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md.J

79470319

Date: 2025-02-26 15:58:22
Score: 2
Natty:
Report link
CachedNetworkImageProvider(
  pictureUrl,
  cacheKey: pictureUrl.split("?")[0]
)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abo

79470311

Date: 2025-02-26 15:55:22
Score: 1.5
Natty:
Report link

A common gotcha is python3 versus python. Ensure you are calling the correct one when running your install command ('pip install torch' v. 'pip3 install torch').

You can verify which you are running my with 'python3 --version' v. 'python --version'

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

79470309

Date: 2025-02-26 15:54:21
Score: 3
Natty:
Report link

This functionality is possible , its documented here https://docs.sqlalchemy.org/en/14/core/defaults.html#context-sensitive-default-functions

You are supposed to use the context object but it seems happy to accept values thrown back at it

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

79470306

Date: 2025-02-26 15:53:21
Score: 3
Natty:
Report link

I hate xcode, I hate android studio I wish flutter didn't depend directly on these tools

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Victor Flores

79470301

Date: 2025-02-26 15:51:21
Score: 0.5
Natty:
Report link

The solution for me is to add the following line to my htaccess:

RewriteRule ^sitemap$ /sitemap.xml [L,R=301]

Good luck

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

79470291

Date: 2025-02-26 15:48:20
Score: 1.5
Natty:
Report link

Why not use Spring Profiles instead of configuring both database connections in a single application.yml file? You can create separate application.yml files for each profile and assign each profile to a different database connection.

By using profiles, you can easily manage different environments (e.g., development, testing, production) with their respective configurations. For example:

Create separate configuration files for each environment:

application-dev.yml for development application-prod.yml for production Activate the profile you need in your main application.yml or as a command-line argument when running your application.

Example: application.yml:

yaml spring: profiles: active: dev application-dev.yml:

yaml spring: datasource: url: jdbc:postgresql://localhost:5432/dev_db username: dev_user password: dev_password application-prod.yml:

yaml spring: datasource: url: jdbc:postgresql://localhost:5432/prod_db username: prod_user password: prod_password This way, you can cleanly separate your database configurations for each profile without cluttering a single file.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not use
  • Low reputation (1):
Posted by: Marcos Pozzobon

79470284

Date: 2025-02-26 15:44:19
Score: 5
Natty:
Report link

enter image description here

enter image description here

Here you can see the difference in tag content with and without USPS

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adeeb Hassi

79470282

Date: 2025-02-26 15:44:19
Score: 2.5
Natty:
Report link

If you are getting errors during the Cloud Build phase, then you can either add the environment variables during the Build phase (e.g., using /cloudbuild.yaml) or you can change your application such that it does not try to initialize during the build phase.

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

79470275

Date: 2025-02-26 15:42:19
Score: 1.5
Natty:
Report link

I solved it by enabling the FIFO mode for the target UART.

See: https://community.st.com/t5/stm32-mcus-products/hal-uart-receive-timeout-issue/td-p/403387

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: carles.sole.grau

79470274

Date: 2025-02-26 15:42:18
Score: 2.5
Natty:
Report link

You can set queue priorities, once higher priority queue jobs are clear, then it runs the lower priority queue jobs

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

79470270

Date: 2025-02-26 15:41:18
Score: 4
Natty:
Report link

I had same issue and look this official troubleshooting page.
I have tried all of the solutions but could not succeed. Finally I set the server project as startup project then start the project with "https" option and it gives the port that I could use for the frontend.

enter image description here

P.S. Other start options (Docker, IIS, http) did not work for me.

Reasons:
  • Blacklisted phrase (1): did not work
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: eray

79470265

Date: 2025-02-26 15:38:17
Score: 3
Natty:
Report link

This is not possible in Telegram. You can't detect what Device they are using.

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

79470251

Date: 2025-02-26 15:32:16
Score: 2
Natty:
Report link

I found the bug. One of my variables should actually be:

DBUS_INTERFACE="org.freedesktop.DBus.Properties"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ano

79470247

Date: 2025-02-26 15:30:15
Score: 10 🚩
Natty:
Report link

Recientemente enfrenté un problema al intentar verificar si un archivo era legible usando la función is_readable() en PHP. Originalmente, movía el archivo desde su ubicación original a la carpeta donde mi script intentaba leerlo. Sin embargo, esto no resultaba efectivo.

Descubrí que la solución era copiar el archivo en lugar de moverlo. Al hacer una copia del archivo en la carpeta de destino, la función is_readable() comenzó a funcionar como se esperaba y pudo verificar correctamente el acceso al archivo.

Espero que este enfoque también pueda ayudar a otros que enfrenten situaciones similares.

Saludos

Reasons:
  • Blacklisted phrase (2): ayuda
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (3): solución
  • Blacklisted phrase (1.5): Saludos
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Karjedon

79470238

Date: 2025-02-26 15:26:14
Score: 4.5
Natty:
Report link

So after a load of very useful info in the comments after running the query suggested by @AlanSchofield and noting the PK column error "No identity column defined", I requested help from our DBA who has created a cloned table and defined the PK column as an identity column and now my bulk upload is working with the whole file uploading in one run.

Thanks again to everyone for the help, much appreciated.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • No code block (0.5):
  • User mentioned (1): @AlanSchofield
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Geetarman

79470234

Date: 2025-02-26 15:25:13
Score: 4.5
Natty:
Report link

You guys are awesome.

I do not know how to thank you!

Many thanks! I truly appreciate it!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pedro Suarez

79470233

Date: 2025-02-26 15:23:13
Score: 0.5
Natty:
Report link

This is fully expected behavior, in my opinion, because you has basically the line where exactly in file the error happens, so jump to the line and see it. And if you'd catch it inside or outside the interpreter, you'd also get the full info there in the -errorinfo of the result dict. The frame info collected in a backtrace (call-stack) is basically provided from every frame (file, namespace, eval/catch, proc/apply, etc).

it creates difficulties in the context of implementing something like a plugin system that interp evals scripts, as the writers of the plugin scripts would receive less useful information than might be desired.

Well normally nobody (even not plugin interface writers) developing everything at global level, one would rather use namespaces/procs, which then would provide the line number relative the proc.

is there a way to write this code differently that could provide better error messages in scripts run in child interpreters?

Sure, if you need the info of the code evaluating in child-interp only, here you go:

#!/usr/bin/env tclsh

interp create -safe i

set code {
  # multi-line code
  # more comments
  expr {1/0}; # this is line 4 in code
}

if { [ i eval [list catch $code res opt] ] } {
  lassign [i eval {list $res $opt}] res opt
  puts stderr "ERROR: Plug-in code failed in line [dict get $opt -errorline]:\n[dict get $opt -errorinfo]
    while executing plug-in\n\"code-content [list [string range $code 0 255]...]\"
   (\"eval\" body line [dict get $opt -errorline])"
}

interp delete i

Output:

$ example.tcl
ERROR: Plug-in code failed in line 4:
divide by zero
    invoked from within
"expr {1/0}"
    while executing plug-in
"code-content {
  # multi-line code
  # more comments
  expr {1/0}; # this is line 4 in code
...}"
   ("eval" body line 4)   <-- line in code

If you rather don't want catch the error in the code, but rather rethrow it (e. g. from proc evaluating some safe code), it is also very simple:

#!/usr/bin/env tclsh

interp create -safe i

proc safe_eval {code} {
  if { [ i eval [list catch $code res opt] ] } {
    lassign [i eval {list $res $opt}] res opt
    # add the line (info of catch) into stack trace:
    dict append opt -errorinfo "\n   (\"eval\" body line [dict get $opt -errorline])"
    return {*}$opt -level 2 $res
  }
}

safe_eval {
  # multi-line code
  # more comments
  expr {1/0}; # this is line 4 in code
}

interp delete i

Output:

$ example.tcl
divide by zero
    invoked from within
"expr {1/0}"
   ("eval" body line 4)   <-- line in code
    invoked from within
"safe_eval {
  # multi-line code
  # more comments
  expr {1/0}; # this is line 4 in code
}"
    (file "example.tcl" line 14)
Reasons:
  • Blacklisted phrase (1): is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: sebres

79470231

Date: 2025-02-26 15:23:13
Score: 1.5
Natty:
Report link

What if you add a route without exact like

<Switch>
            <Route  path="/"  exact component={Home} />
            <Route  path="/film" component={Films} />
            <Route  path="/tv" component={TVseries} />
</Switch>

this may explicitly match home

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What if you add a
  • Low reputation (1):
Posted by: PRATHEESHA BENEDICT

79470229

Date: 2025-02-26 15:21:12
Score: 0.5
Natty:
Report link

I was able to get my page to work by type checking my items array.

export function getCollection(name) {
    let collection;
    if(name === "all"){
        collection = getAllProducts();
    } else {
        collection = collections[name];
    }
    const type = typeof collection.items[0];
    if (type === "string") {
        const items = collection.items;
        const map = items.map((x) => getImage(x));
        collection.items = map;
    }
    return collection;

The page works but I'm still baffled by this.
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christopher Cardea

79470216

Date: 2025-02-26 15:18:11
Score: 3
Natty:
Report link

Thanks for the answer and it worked like 95% success

I am facing a slight issue

when integration test is running, only 1st topic is shown which is healthchecks-topic but not 2nd topic dnd-pit-dev-act-outage-topic

it is taking some more time to show 2nd topic which eventually is failing test

any way can we ask kafka to wait until expected topic is shown ?

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: AbdulQASDET

79470210

Date: 2025-02-26 15:17:11
Score: 1
Natty:
Report link

The correct way to compare distances between pointers to different objects is to convert them to integers.

I read this once on Raymond Chen's blog, but I can't find the article now.
Raymond Chen's blog has a lot of C++ and Win32 knowledge. Although you won’t find the answers to all your questions on his blog, if you can find the answer there, it will definitely be an easy-to-understand answer.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: 許恩嘉

79470191

Date: 2025-02-26 15:12:10
Score: 2
Natty:
Report link

I had been stuck and frustrated on this issue myself as well. Just changing the env for dart from sdk:'3.7.0' to sdk:'>=3.1.3 <4.0.0' in the pubspec.yaml fixed it for me.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tek Raj Ojha

79470186

Date: 2025-02-26 15:11:09
Score: 4.5
Natty:
Report link

Unfortunately, the output isn't telling us much, although if it the app is always getting killed after sending in your command, then the kernel likely killed it for some reason. Perhaps memory.. scrypt, AFAICT, is one of those memory heavy key derivation functions, it might have been that.

To resolve the issue you would need to find why the kernel killed the app and address the resource issue What killed my process and why?

Reasons:
  • Blacklisted phrase (0.5): why?
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: karimkorun

79470184

Date: 2025-02-26 15:10:09
Score: 0.5
Natty:
Report link

Implementing a Content Security Policy (CSP) with nonces in an Electron application enhances security by mitigating risks associated with inline scripts and styles. Here's how you can achieve this:

  1. Generate a Unique Nonce for Each Request:

A nonce (number used once) should be unique for every request to ensure security. In Node.js, you can generate a 16-byte (128-bit) nonce and encode it in base64

  1. Construct the CSP Header with the Nonce:

In your Electron application's main process, intercept HTTP responses to append the CSP header.

Replace YOUR_GENERATED_NONCE with the actual nonce value generated in your main process. Ensure that this value is securely passed from the main process to the renderer process, possibly through context bridging or preload scripts.

Important Considerations:

Avoid Using 'unsafe-inline': Including 'unsafe-inline' in your CSP allows the execution of inline scripts and styles, which can be a security risk. Instead, rely on nonces to permit specific inline code.

Consistent Nonce Usage: The nonce value must match between the CSP header and the nonce attributes in your HTML. Ensure that the nonce is generated once per request and applied consistently.

By following these steps, you can implement a robust CSP with nonces in your Electron application, enhancing its security posture.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Usman Zia Full Stack Developer

79470176

Date: 2025-02-26 15:07:08
Score: 1.5
Natty:
Report link

After upgrading to 24.04 I ran into a problem resulting in this error: ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'gtk3' is currently running.

After testing with various ways of import of mathplotlib I ended up with this which work for my program:

import matplotlib.pyplot as plt


import matplotlib as mpl print ("matplot-versjon: ", mpl.version)

tekst = mpl.get_backend() print("Backend = ", tekst)

from matplotlib import image as mpimg

plt.switch_backend('TkAgg') # This line seems to be the one that made the difference.

(I seem to have no control over the formatting of this text. Everything is there, but linefeeds are missing here and there.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Olav Baadsvik

79470173

Date: 2025-02-26 15:05:08
Score: 1.5
Natty:
Report link

Dlang is a multi-paradigm programming language. Besides functional programming and imperative programming, it supports SQL programming. In SQL, the right end of the between operator is inclusive. In order to follow the convention of SQL, the pair of Dlang in between is right closed.

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

79470168

Date: 2025-02-26 15:04:07
Score: 3
Natty:
Report link

Ok I have finally fixed the issue, the issue was that my textboxes where not formatting the string correctly, after trimming the string it now works flawlessly, I also, for good measure, replaced with regex invalid characters, but I would say that this is a bit overkill, anyways, problem solved.

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

79470159

Date: 2025-02-26 15:00:07
Score: 0.5
Natty:
Report link

The issue you're experiencing—where the child page automatically scrolls to the same position as the parent page—is primarily caused by how browsers and React Router handle navigation and scroll positions. Here's a detailed explanation of the possible causes:

  1. Browser's Default Scroll Behavior Browsers are designed to remember the scroll position of a page when you navigate away and return to it. This behavior is intended to improve user experience by maintaining context during navigation. When you navigate from one route to another (e.g., from a parent page to a child page), the browser might retain the scroll position of the parent page and apply it to the child page, especially if the child page has similar content or structure.

  2. React Router's Scroll Handling React Router v5 and Below: React Router does not automatically reset the scroll position when navigating between routes. If the parent page was scrolled down, the child page might inherit that scroll position unless explicitly reset. React Router v6+: While React Router v6 introduced better support for scroll restoration, it still relies on the browser's default behavior unless you use the ScrollRestoration component or manually handle scrolling.

  3. Scrollable Containers If your application uses a scrollable container (e.g., a with overflow-y: auto or overflow-y: scroll) instead of relying on the window's scroll, the scroll position of that container might persist between route changes. For example, if the parent page has a scrollable container scrolled to a specific position, the same container in the child page might start at that position unless explicitly reset.

  4. CSS or Layout Issues If the child page has a similar layout or structure to the parent page, the browser might assume the scroll position should be the same. For example, if both pages have a long list or a large block of content, the browser might scroll the child page to match the parent page's scroll position.

  5. useEffect or Scroll Reset Logic If you're using useEffect to reset the scroll position, ensure it runs at the correct time. For example: If the useEffect dependency array is missing or incorrect, the scroll reset might not trigger. If the useEffect runs after the page renders, there might be a slight delay, causing the scroll position to persist briefly.

  6. Dynamic Content Loading If your child page loads content dynamically (e.g., via an API call), the scroll position might be applied before the content is fully loaded. This can cause the page to appear scrolled down even if you intended it to start at the top.

  7. Hash Routing or Anchors If your application uses hash-based routing (e.g., #section) or anchor links, the browser might scroll to a specific section of the page automatically, overriding any scroll reset logic.

Summary of Causes

Browser's default scroll restoration behavior.

React Router not resetting scroll positions by default.

Scrollable containers retaining their scroll positions.

Similar layouts or structures between parent and child pages.

Improper timing or implementation of scroll reset logic.

Dynamic content loading causing scroll position shifts.

Hash routing or anchor links influencing scroll behavior.

How to Debug

Check if the issue occurs with window scrolling or a specific scrollable container.

Verify if the useEffect or scroll reset logic is running correctly.

Inspect the layout and structure of both the parent and child pages to identify similarities.

Test with static content to rule out dynamic loading issues

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

79470158

Date: 2025-02-26 15:00:07
Score: 1.5
Natty:
Report link

By test, at least 3.8 and 3.7 is plausible, for error in VSCode block, just implement pip install jupyter in terminal.

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

79470145

Date: 2025-02-26 14:55:06
Score: 3
Natty:
Report link

Actually, if we look closely at the doc that @jggp1094 linked

We can notice that these flags are defined to be sent under the '--experiments' flag (NOT --additional-experiments) These flags are passed to the PipelineOptions as part of the beam args, and should be parsed correctly in this manner .

doc screenshot

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @jggp1094
  • Low reputation (1):
Posted by: Stav Nahum

79470138

Date: 2025-02-26 14:53:05
Score: 1.5
Natty:
Report link

I know this post is old, but I can add something important to this discussion that is not been mentioned. It happened to me today.

On Windows, when running a composer package install, the "vendor" folder location was relative to where I ran the command from. So:

C:\Users\User>composer require wolfcast/browser-detection

composer created the "vendor" folder in C:\Users\User\ - relative to the where I ran the command from.

Composer version 2.2.25

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: h82bsogood

79470129

Date: 2025-02-26 14:51:05
Score: 1
Natty:
Report link

the author of the package here. This was mostly an experiment to see how to upload packages to PyPi myself. I am unsure why it broke or if it ever even worked properly in the first place. Regardless, I took the time to fix it and reupload it to PyPi.

You should now be able to pip install isacalc and use the library as-is. I also did some refactoring.

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lrdewaal

79470128

Date: 2025-02-26 14:50:03
Score: 8.5 🚩
Natty: 4.5
Report link

Has anyone found a better solution to this? I see that it's been 8 years. I really want to be able to select a bunch of placemarks in a certain area of the map. I'm using Google Earth Pro

Reasons:
  • Blacklisted phrase (2): anyone found
  • RegEx Blacklisted phrase (3): Has anyone found
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29810349

79470125

Date: 2025-02-26 14:50:03
Score: 3
Natty:
Report link

It was our dev env in docker that was not cloning our database so database was blank - doh

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

79470113

Date: 2025-02-26 14:47:03
Score: 1.5
Natty:
Report link

Try this Extension. It works for me for the same task

Reasons:
  • Whitelisted phrase (-1): Try this
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Krukozyaka