79483626

Date: 2025-03-04 12:04:02
Score: 1.5
Natty:
Report link

Try to remove the proxyConfig and try to change the url you want to visit also if you are using an OS with a visual GUI try to inspect using your eyes the behavior and the breaking points. Because the provided information are not enough for debugging

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

79483625

Date: 2025-03-04 12:04:02
Score: 0.5
Natty:
Report link

Brackets do multiple things in JavaScript.

What you want to do is add elements to indexes in the Array object called fileData. Brackets can be used to add elements to indexes.

Because in JavaScript an Array is a descendant of an object, you can actually add properties to it as well. If

data["uniquePropertyName"]

were equal to something like 3, bracket notation would allow you to make an assignment to fileData[3].

If however, data["uniquePropertyName"] makes reference to something like a string, you will create a property on fileData.

let array = [];

console.log(typeof array);
//OUTPUT: object

let data = { my_object_key: "my object value", value: "my 2nd object value" };

array[data["value"]] = "something that I am trying to insert into array";

console.log(array);
//OUTPUT: [ 'my 2nd object value': 'something that I am trying to insert into array' ]

console.log(array['my 2nd object value']);
//OUTPUT: something that I am trying to insert into array

array[0] = "Another array insertion";
array[1] = "2nd array insertion";
array[2] = "Third array insertion";

console.log(array);
//OUTPUT:
// [
//   'Another array insertion',
//   '2nd array insertion',
//   'Third array insertion',
//   'my 2nd object value': 'something that I am trying to insert into array'
// ]

But if data["uniquePropertyName"] makes reference to an object:

let evil_deed = { do_not: { try_this: "at home" } };

array[evil_deed["do_not"]] = "Why, you ask?";

console.log(array)
//OUPUT:
// [
//   'Another array insertion',
//   '2nd array insertion',
//   'Third array insertion',
//   'my 2nd object value': 'something that I am trying to insert into array',
//   '[object Object]': 'Why, you ask?'
// ]

That's all fun and games, until you are trying to access that property:

console.log(array[evil_deed["do_not"]])
//OUPUT: Why, you ask?

In the second example

You are creating an object with a single property name, and then pushing that object into an Array. That will place the elements into indexes.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jay Harrison Crawford

79483624

Date: 2025-03-04 12:04:02
Score: 1.5
Natty:
Report link

Without using @namespace in any .razor files, I got past this by modifying my MainPage.xaml code (in project with name "test_only") to include an extra namespace declaration "componentsNamespace".

It would appear that the x:Type Markup Extension syntax

<object property="{x:Type prefix:typeNameValue}" .../>

(as per this) doesn't like dot notation in the "typeNameValue". Also successfully tested with a project that has a dot-delimited longer name.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:test_only"
         xmlns:componentsNamespace="clr-namespace:test_only.Components"
         x:Class="test_only.MainPage">

<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
    <BlazorWebView.RootComponents>
        <RootComponent Selector="#app" ComponentType="{x:Type componentsNamespace:Routes}" />
    </BlazorWebView.RootComponents>
</BlazorWebView>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @namespace
  • Low reputation (1):
Posted by: f_r

79483623

Date: 2025-03-04 12:03:01
Score: 1
Natty:
Report link

When I was trying to save jupyter notebook as PDF Below commands works for me:

pip install nbconvert

then:

sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic

Taken reference from:

https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: amrita yadav

79483614

Date: 2025-03-04 12:00:01
Score: 1.5
Natty:
Report link

I had the same error and spent a few hours solving it. I created a demo repository with the solution steps: https://github.com/gindemit/TerraformGCPAuth

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

79483596

Date: 2025-03-04 11:54:59
Score: 5.5
Natty:
Report link

enter image description hereThere will be a missing field, just fill this field.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sadiq husaini

79483584

Date: 2025-03-04 11:50:58
Score: 0.5
Natty:
Report link
Based on furas answer,I discovered that not only body must be included, but also the parameters. So the create_withdrawal must be implemented like this:

def create_withdrawal(self, ccy, amount):
  clientId = self.create_client_id()
  endpoint = f'/api/v5/fiat/create-withdrawal?paymentAcctId=my-account?ccy={ccy}?amt={amount}?paymentMethod=PIX?clientId={clientId}'
  body = {
      "paymentAcctId": "my-account",
      "ccy": ccy,
      "amt": amount,
      "paymentMethod": "PIX",
      "clientId": clientId,
  }
  url = self.baseURL + endpoint
  request = 'POST'
  header = self.get_header(request, endpoint, body = json.dumps(body))
  response = requests.post(url, headers = header, data = json.dumps(body))
  return response.json()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nilson Cesar

79483580

Date: 2025-03-04 11:49:58
Score: 3
Natty:
Report link

use

import fs from "fs/promises"; import path from "path";

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

79483573

Date: 2025-03-04 11:47:57
Score: 6 🚩
Natty:
Report link

enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: peachnice

79483567

Date: 2025-03-04 11:43:56
Score: 0.5
Natty:
Report link

The PathRegexp function is supported as of Traefik v3.1.0 (commit).

So if you got an unsupported function: PathRegexp error, chances are you are using Traefik v2.

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

79483560

Date: 2025-03-04 11:41:55
Score: 1.5
Natty:
Report link

Answer from spring-data github issues:

The referenced fragment points to the commons part of the documentation with limited applicability. Is-New detection for all modules but JPA works that way, assuming that the initial value of a primitive version is zero and zero indicates a state before it has been inserted into the database. Once inserted in the database, the value is one.

However, with JPA, we're building on top of Hibernate and we have to align with Hibernates mechanism that considers zero as first version number and so we cannot use primitive version columns to detect the is-new state.

The Spring Data JPA Entity-State detection uses a slightly different wording at https://docs.spring.io/spring-data/jpa/reference/jpa/entity-persistence.html#jpa.entity-persistence.saving-entities.strategies, however, it doesn't point out that primitive version properties are not considered so I'm going to update the docs.

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

79483555

Date: 2025-03-04 11:40:55
Score: 2
Natty:
Report link

I solved this problem re-installing all dependencies again –

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

79483549

Date: 2025-03-04 11:39:55
Score: 1.5
Natty:
Report link

use this method

  signal_handle  = getattr(dut, "slaves[0]", None)
   signal_data   = signal_handle.internal_data.value
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mahmed ahmed El adawy

79483536

Date: 2025-03-04 11:35:54
Score: 3
Natty:
Report link

Many developers and programmers experience sciatica pain due to prolonged sitting and poor posture. Sitting for long hours can put pressure on the lower spine, leading to nerve compression and pain that radiates down the leg. One effective way to relieve sciatica pain is through targeted exercises and stretches that help improve posture and spinal alignment.

I found this helpful resource on chiropractic care and pain relief: https://meadechiropractic.com/

If you’re dealing with sciatica pain, consider using an ergonomic chair, standing desk, and taking frequent breaks to stretch. Has anyone else here struggled with this issue while coding for long hours? What solutions have worked for you?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Meade Chiropractic

79483526

Date: 2025-03-04 11:30:53
Score: 1
Natty:
Report link
//add this inside application tag in manifest

  <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dhruv Sakariya

79483521

Date: 2025-03-04 11:29:52
Score: 5
Natty:
Report link

Ok solved @Superbuilder is unusefull...

Reasons:
  • Low length (2):
  • No code block (0.5):
  • User mentioned (1): @Superbuilder
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SkyBlackHawk

79483519

Date: 2025-03-04 11:29:52
Score: 3
Natty:
Report link

Solved. It really was an old and forgotten Gitlab plugin. I disabled the plugin and the icon disappeared afterwards.

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

79483507

Date: 2025-03-04 11:23:51
Score: 1
Natty:
Report link

Simply useing direct cell reference:

SELECT [Value]
FROM [Sheet1$]
WHERE [ClientID] = T1

or

SELECT [Value]
FROM [Sheet1$]
WHERE [ClientID] = [T1]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Qian

79483503

Date: 2025-03-04 11:21:51
Score: 1.5
Natty:
Report link

It's because that app might have splitTypes parameter. If the app has splitTypes parameter there will be more than one apks built and required and you can't just simply share the app to telegram from your phone and decompile it. It won't be full, when you share apk from your phone it extracts base.apk and sends it anywhere you want. In order to get libflutter.so you would need arm64_v8a.apk and you will need all split apks to decompile normally and make it work after recompiling.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Wodota ML

79483458

Date: 2025-03-04 11:03:47
Score: 0.5
Natty:
Report link

What solved it for me was using Dio with native IO plugin.

Example

import 'package:native_dio_adapter/native_dio_adapter.dart';
import 'package:dio/dio.dart';

Dio client = Dio();
client.httpClientAdapter = NativeAdapter(
      createCupertinoConfiguration: () => URLSessionConfiguration.ephemeralSessionConfiguration()
        ..allowsCellularAccess = true
        ..allowsConstrainedNetworkAccess = true
        ..allowsExpensiveNetworkAccess = true,
    );

var request = await client.post<Map<String, dynamic>>(Uri.parse(baseUrl + path).toString(),
 data: convert.jsonEncode(body),
 options: Options(
 headers: {"Content-Type": "application/json"},
));

It works because on Appclip, dart IO is blocked from accessing internet, don't know why, but if requests go though native platform it works fine.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What solve
  • Low reputation (0.5):
Posted by: Tonis

79483456

Date: 2025-03-04 11:03:47
Score: 3
Natty:
Report link
this is how my code looks like ->

package org.socgen.ibi.effectCalc.jdbcConn

import com.typesafe.config.Config
import org.apache.spark.sql.types._
import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.functions._
import java.sql.{Connection, DriverManager, Statement}
import org.socgen.ibi.effectCalc.logger.EffectCalcLogger
import org.socgen.ibi.effectCalc.common.MsSqlJdbcConnectionInfo

class EffectCalcJdbcConnection(config: Config) {

  private val microsoftSqlserverJDBCSpark = "com.microsoft.sqlserver.jdbc.spark"
  val url: String = config.getString("ibi.db.jdbcURL")
  val user: String = config.getString("ibi.db.user")
  private val pwd: String = config.getString("ibi.db.password")
  private val driverClassName: String = config.getString("ibi.db.driverClass")
  private val databaseName: String = config.getString("ibi.db.stage_ec_sql")
  private val dburl = s"${url};databasename=${databaseName}"

  private val dfMsqlWriteOptions = new MsSqlJdbcConnectionInfo(dburl, user, pwd)

  private val connectionProperties = new java.util.Properties()
  connectionProperties.setProperty("Driver", s"${driverClassName}")
  connectionProperties.setProperty("AutoCommit", "true")
  connectionProperties.put("user", s"${user}")
  connectionProperties.put("password", s"${pwd}")
  Class.forName(s"${driverClassName}")
  private val conn: Connection = DriverManager.getConnection(dburl, user, pwd)
  private var stmt: Statement = null

  private def truncateTable(table: String): String = { "TRUNCATE TABLE " + table + ";" }

  private def getTableColumns( table: String, connection: Connection ): List[String] = {
    val columnStartingIndex = 1
    val statement = s"SELECT TOP 0 * FROM $table"
    val resultSetMetaData = connection.createStatement().executeQuery(statement).getMetaData
    println("Metadata" + resultSetMetaData)
    val columnToFilter = List("loaddatetime")
    (columnStartingIndex to resultSetMetaData.getColumnCount).toList.map(resultSetMetaData.getColumnName).filterNot(columnToFilter.contains(_))
  }

  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 numExecutors = ResultsDf.sparkSession.conf.get("spark.executor.instances").toInt
      val numExecutorsCores = ResultsDf.sparkSession.conf.get("spark.executor.cores").toInt
      val numPartitions = numExecutors * numExecutorsCores
      EffectCalcLogger.info( s"coalesce($numPartitions)  <---> (numExecutors = $numExecutors) * (numExecutorsCores = $numExecutorsCores)", 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(DoubleType).cast(DecimalType(30, 2))
        else col(column)
      })

      val orderOfColumnsInSQL = getTableColumns(resultsTable, conn)

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

      ResultsDf.select(selectWithCast: _*).select(orderOfColumnsInSQL.map(col): _*).coalesce(numPartitions).write.mode(org.apache.spark.sql.SaveMode.Append).format("jdbc").options(dfMsqlWriteOptions.configMap ++ Map("dbTable" -> resultsTable, "batchsize" -> "10000")).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
    }
  }

  def pushToStockSQL(StockDf: DataFrame): Unit = {
    val stockTable = config.getString("ibi.db.stage_ec_sql_stocks_table")

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

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

      val numExecutors = StockDf.sparkSession.conf.get("spark.executor.instances").toInt
      val numExecutorsCores = StockDf.sparkSession.conf.get("spark.executor.cores").toInt
      val numPartitions = numExecutors * numExecutorsCores
      EffectCalcLogger.info( s"coalesce($numPartitions)  <---> (numExecutors = $numExecutors) * (numExecutorsCores = $numExecutorsCores)", this.getClass.getName)

      val Integer_format_list = List( "forbearancetype", "ifrs9eligibilityflaggrosscarrying", "ifrs9eligibilityflagprovision", "intercompanygroupid", "closingdate" )

      val String_format_list = List( "accountaggregategrosscarryoffbalance", "accountaggregategrosscarryonbalance", "accountaggregateprovoffbalance", "accountaggregateprovonbalance", "accounttype", "assetlocationcountryiso2code", "baseliiaggregategrosscarryoffbalance", "baseliiaggregategrosscarryoffbalancefinrep", "baseliiaggregategrosscarryoffbalancenote38", "baseliiaggregategrosscarryonbalance", "baseliiaggregategrosscarryonbalancefinrep", "baseliiaggregategrosscarryonbalancenote38", "baseliiaggregateprovoffbalance", "baseliiaggregateprovoffbalancefinrep", "baseliiaggregateprovoffbalancenote38", "baseliiaggregateprovonbalance", "baseliiaggregateprovonbalancefinrep", "baseliiaggregateprovonbalancenote38", "baselptfcode", "baselptfcodelabel", "businessunit", "businessunitlabel", "capitalisticgsname", "companyname", "contractid", "contractlineid", "contractprimarycurrency", "counterpartinternalratinglegalentity", "counterpartsectorfinrep", "countryinitialriskiso2code", "economicamountcurrencyprovision", "effectivedate", "essacc", "exposurenature", "forbonecontractindication", "groupproduct", "groupproductlabel", "groupthirdpartyid", "ifrs9implementationmethod", "ifrs9provisioningstage", "investmentcategorygrouping", "issuingapplicationcode", "libcountryriskgroup", "localthirdpartyid", "lreentitycountryiso2code", "lreid", "lreusualname", "monitoringstructuressbu", "monitoringstructuressbulabel", "nacecode", "natureoftherealeconomicactivitynaer", "originindication", "pole", "polelabel", "portfoliocode", "portfoliolabel", "reportingentitymagnitudecode", "situationtechnicalid", "stage", "subbusinessunit", "subbusinessunitlabel", "subpole", "subpolelabel", "subportfoliocode", "subportfoliolabel", "watchlist", "closingdate", "frequency", "batchid", "exchangerate", "ifrseligibilityflag" )

      val Decimal_format_list = List( "grosscarryingamounteur", "provisionamounteur")

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

      val StockDfWithLoadDateTime =
        StockDf.withColumn("loaddatetime", current_timestamp())

      val orderOfColumnsInSQL = getTableColumns(stockTable, conn)

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

      StockDfWithLoadDateTime.select(selectWithCast: _*).select(orderOfColumnsInSQL.map(col): _*).coalesce(numPartitions).write.mode(org.apache.spark.sql.SaveMode.Append).format("jdbc").options(dfMsqlWriteOptions.configMap ++ Map("dbTable" -> stockTable, "batchsize" -> "10000")).save()

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

######

now what the above code is basically trying to do is read the data from two different hive external tables (results and stock) and overwrite this data to their corresponding tables in mysql. now what I want you to do is restructure the code a bit because I see pushToResultsSQL and pushToStockSQL have lot of common code (try to create a function which makes there's a common peice of code and these two functions use this new function ), make sure the functionality doesn't change but the functions are efficient enough and follow all of the latest scala coding standards. overall, you need to make this code a standard code.

please give me the complete updated code (you can only if needed skip the column names in the vals, this is to ensure that I get everything from the updated code.)
Reasons:
  • RegEx Blacklisted phrase (2.5): please give me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arun Rathod

79483430

Date: 2025-03-04 10:53:45
Score: 3
Natty:
Report link

J'ai bien coché la case et le problème est résolu. Je recommande de suivre la démarche de rex wang.

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

79483427

Date: 2025-03-04 10:52:44
Score: 0.5
Natty:
Report link

I was unable to recreate this same exact issue for another website; for other websites when you screenshot using driver.execute_cdp_cmd("Page.printToPDF", params) the screenshot stores the entire webpage with no need to scroll - so not sure why it didn't work for Coursera.

So to resolve, I changed the params being passed into this call and the zoom:

driver.execute_script("document.body.style.zoom='90%'")
params = {'landscape': False, 'paperWidth': 12, 'paperHeight': 25}
data = driver.execute_cdp_cmd("Page.printToPDF", params)

This seemed to do the trick.

Code: https://github.com/psymbio/math_ml/blob/main/coursera_pdf_maker.ipynb

PDF: https://github.com/psymbio/math_ml/blob/main/course_1/week_1/practical_quiz_1.pdf

It's sad this doesn't render on GitHub.

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

79483425

Date: 2025-03-04 10:51:44
Score: 4.5
Natty:
Report link

After allowing the performance counter, ncu correctly profiles my program.

If you have same problem, follow this page

  1. Open the NVIDIA Control Panel in your window 11
  2. Check "Enable Developer Settings"
  3. Under 'Developer' > 'Manage GPU Performance Counters', select 'Allow access to the GPU performance counter to all users'

Why do I have to set these settings in "Window", even if I profile CUDA programs in Ubuntu-18.04, WSL2?

Following this page, this page says:

Once a Windows NVIDIA GPU driver is installed on the system, CUDA becomes available within WSL 2. The CUDA driver installed on Windows host will be stubbed inside the WSL 2 as libcuda.so, therefore users must not install any NVIDIA GPU Linux driver within WSL 2.

I think this is the reason why I need to check the driver in Window. The point is I was not in the native linux, I was in the linux with the WSL

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): have same problem
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kdh

79483421

Date: 2025-03-04 10:50:44
Score: 1
Natty:
Report link

I think you can also do MyMap::iterator::reference it .

auto f = [](MyMap::iterator::reference it) {std::cout << it.first + it.second << std::endl; };
std::for_each(mymap.begin(), mymap.end(), f);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anand Rathi

79483408

Date: 2025-03-04 10:47:43
Score: 3
Natty:
Report link

The error Cannot read property 'back' of undefined probably means the camera facing attribute is not declared. First Check the states

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

79483407

Date: 2025-03-04 10:47:43
Score: 0.5
Natty:
Report link

The packagist requirements for laravel/homestead do state that this is not supported. There is some mention that this version of the package will not be updated, notably in this reddit thread.

There is, however, a fork of the package from the original creator - svpernova09/homestead - that does indeed support php 8.4. Relevant packagist specification.

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

79483394

Date: 2025-03-04 10:43:40
Score: 6 🚩
Natty:
Report link

Have you been able to resolve your issue ? I am having same problem I tried with javascript incetion but it did not work.

 ModelViewer(
              src: 'assets/model.glb', // Your model path
              id: 'myModelViewer',
              ar: true,
              cameraControls: true,
              onModelViewerCreated: (controller) {
                controller.runJavaScript("""
                  let points = [];
                  const modelViewer = document.querySelector("#myModelViewer");

                  modelViewer.addEventListener('scene-graph-ready', () => {
                    modelViewer.addEventListener("click", async (event) => {
                      const hit = await modelViewer.positionAndNormalFromPoint(event.clientX, event.clientY);
                      if (hit) {
                        points.push(hit.position);
                        if (points.length === 2) {
                          let dx = points[0].x - points[1].x;
                          let dy = points[0].y - points[1].y;
                          let dz = points[0].z - points[1].z;
                          let distance = Math.sqrt(dx * dx + dy * dy + dz * dz);
                          // Send the calculated distance to Flutter
                          window.flutter_inappwebview.callHandler('distanceCalculated', distance);
                          points = [];  // Reset after measuring
                        }
                      }
                    });
                  });
                """);
              },
            ),

Since onModelViewerCreated is not invoking

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (1.5): resolve your issue ?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Przemo

79483383

Date: 2025-03-04 10:37:39
Score: 0.5
Natty:
Report link

If running composer global require laravel/installer isn't updating the installer for you, you can be explicit about the major version by, for example, running :

composer global require "laravel/installer:^5.x" -W

to force composer to bump up to the latest version.

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

79483382

Date: 2025-03-04 10:36:38
Score: 0.5
Natty:
Report link

Resolved it myself

OnInitializedAsync() was trying to call an API that wasn't async. This resulted in the JSON object I returned was empty when it mattered.

Before:

app.MapGet("/api/blob", (IBlobService blobService) => blobService.GetStrings());
app.MapGet("/api/sql", (ISqlService repo) =>
{
    var sqlDiners =  repo.GetLastestDiners();
    return sqlDiners is not null
        ? Results.Ok(sqlDiners)
        : Results.NotFound("No customers found.");
});

After:

app.MapGet("/api/blob", async (IBlobService blobService) => await blobService.GetStrings());
app.MapGet("/api/sql", async (ISqlService repo) =>
{
    var sqlDiners =  await repo.GetLastestDiners();
    return sqlDiners is not null
        ? Results.Ok(sqlDiners)
        : Results.NotFound("No customers found.");
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mikkel Rohde Glerup

79483381

Date: 2025-03-04 10:36:38
Score: 2.5
Natty:
Report link

you may use variables --width33: round(33vw, 1px); width: calc((var(--width33) - 10px)/2); ...or whatever you want

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Андрей Павлов

79483374

Date: 2025-03-04 10:34:37
Score: 4
Natty:
Report link

Your questions are scattered among multiple topics, so I will be focusing on the one in the title; for other questions please research them first ("what is parallel computing vs. parallel processing?").

I'm focusing on the questions: "Is there any parallel computing involved in scipy.linalg.solve?" and "Does it necessarily need all the matrice elements at once?".

Question 1: "Is there any parallel computing involved in scipy.linalg.solve?"

SciPy's linalg.solve itself does not directly handle parallelization, but it relies on optimized libraries for linear algebra operations like LAPACK (Linear Algebra PACKage), which can make use of parallelization internally (i.e. when running on multi-core processors). Whenever the installed libraries are compiled with parallelism or not depends on your system, of course, so the answer would depend on your installation.

For example, PLASMA is optimized for multi-core processors, since it is it's key feature.

Question 2: "Does it necessarily need all the matrice elements at once?".

When you use scipy.linalg.solve, you are solving the system Ax=b for x, and this function requires the matrix A and vector b as inputs. You need the entire matrix, yes.

If you have a sparse matrix, you should use scipy.sparse.linalg.spsolve instead, but if you need to solve for x or calculate the full inverse, SciPy expects access to all the elements of the matrix A at the start.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1.5): solve?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sobek Sage

79483360

Date: 2025-03-04 10:29:36
Score: 0.5
Natty:
Report link

Resilience4j v2.3.0 contains some fixes to address virtual-thread-pinning issue: https://github.com/resilience4j/resilience4j/commit/ab0b708cd29d3828fbc645a0242ef048cc20978d

I would definitely consider options to reconfigure Resilience4j internal thread pool to a pseudo-thread-pool that uses virtual threads.

Please note that as of now even latest Spring Cloud (2024.0.0) still references resilience4j-bom 2.2.0, so one needs to manually define dependency on version 2.3.0.

Reasons:
  • No code block (0.5):
Posted by: Krzysztof Tomaszewski

79483343

Date: 2025-03-04 10:23:35
Score: 5.5
Natty: 6.5
Report link

can shap values be generated using model built on pyspark or do we necessarily need to convert to pandas?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: Sudeshna Dutta

79483341

Date: 2025-03-04 10:22:34
Score: 1
Natty:
Report link

def do_GET(self):

with open('index.html', 'rb') as file:
    html = file.read()
self.do_HEAD()
self.wfile.write(html)

I now need to adapt the HTML-Python communication so that my HTML actually interacts with the GPIO. My main issues are:

I suck at Python (big time) My buttons are SVGs that were previously used to trigger JS functions using the onmousedown and onmouseup events (but JS doesn't work so...) I need to GPIO to be equal to 1 when the button is pressed and 0 when released Have I mentioned that I suck at Python? Jokes aside, here's a sample of my HTML:

`
  1. Heading

=======

`

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Idris idris abdullahi

79483340

Date: 2025-03-04 10:22:34
Score: 0.5
Natty:
Report link

The issue with your grid toggle button not working properly is primarily caused by theblit parameter.

The Fix:

ani = FuncAnimation(fig, animate, frames=100, interval=50, blit=False)

And make sure your toggle function forces a complete redraw:

def grid_lines(event):
    global grid_visible
    grid_visible = not grid_visible
    
    if grid_visible:
        ax.grid(True, color='white')
    else:
        ax.grid(False)
    
    # Force immediate redraw
    fig.canvas.draw()

Why This Works:

  1. The main issue is that with blit=True, Matplotlib only redraws the what are returned from the animation function for optimization. Grid lines aren't included in these, so they don't update.

  2. Setting blit=False forces a complete redraw of the figure with each animation frame.

  3. Using fig.canvas.draw() instead of fig.canvas.draw_idle() forces a redraw when the button is clicked. enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: EuanG

79483339

Date: 2025-03-04 10:22:34
Score: 1.5
Natty:
Report link
<TextInput 
  multiline={true} 
  keyboardType="default" 
  textContentType="none"
/>`

Check multiline and textContentType

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

79483338

Date: 2025-03-04 10:22:34
Score: 1
Natty:
Report link

Similar to prabhakaran's answer, in my case the problem was that I had created a form which had a LOT of logic in it (probably a symptom of bad design but there you go). To tame that complexity i had moved related sections of the code out into their own partial class files e.g. I had:

etc

Somehow Visual Studio generated .resx files for each of the partial class files as well as the primary file e.g. I had

etc

All of these partial class files all related to the same class 'MyForm', so all these .resx files all related to that same class, hence the message "The item was specified more than once in the "Resources" parameter."

All i had to do was delete all the extra .resx files leaving just 'MyForm.resx' and the problem was resolved.

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

79483333

Date: 2025-03-04 10:20:34
Score: 3.5
Natty:
Report link

OK got it! Console in AppService told me the truth. The NuGet package Serilog.Sinks.AzureApp was missing. Works like a charm now with appsettings. Thanks for your support!

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

79483293

Date: 2025-03-04 10:08:31
Score: 3.5
Natty:
Report link

Good work brotha Nevermind bad work brotha

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jksdf

79483288

Date: 2025-03-04 10:04:30
Score: 0.5
Natty:
Report link

For Angular material >18, the below code works fine.

:host ::ng-deep .mat-mdc-form-field .mdc-line-ripple {
    display: none !important;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Arash

79483287

Date: 2025-03-04 10:03:30
Score: 1
Natty:
Report link

for anyone using appRouter (next.js 13+), use window.history.replaceState instead.

from the docs:

Next.js allows you to use the native window.history.pushState and window.history.replaceState methods to update the browser's history stack without reloading the page.

window.history.replaceState({}, '', `/products?sort=xxx`)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gigigimay

79483286

Date: 2025-03-04 10:03:30
Score: 0.5
Natty:
Report link
/**
 * 
 * @param {Element} utubeAnchorElt -utube imposing as DOM elt;
 * @param {string} scriptUtubeId - your script id
 * @param {string} videoHeight -desired height of utube;
 * @param {string} videoWidth -desired width of utube;
 * @param {string} videoId - output <video id="videoId">
 */
async function youTubeIframeManagaer(
    utubeAnchorElt,
    scriptUtubeId,
    videoHeight,
    videoWidth,
    videoId
) {
    var utubeScriptTag = document.getElementById(`${scriptUtubeId}`);
    utubeScriptTag.src = "https://www.youtube.com/iframe_api";
    utubeScriptTag.defer = true;
    utubeAnchorElt.appendChild(utubeScriptTag);

    var player;

    function onYouTubeIframeAPIReady() {
        player = new YT.Player(`${utubeAnchorElt.id}`, {
            height: `${videoHeight}`,
            width: `${videoWidth}`,
            videoId: `${videoId}`,
            playerVars: {
                'playsinline': 1
            },
            events: {
                'onReady': onPlayerReady,
                'onStateChange': onPlayerStateChange
            }
        });
    }
    // 4. The API will call this function when the video player is ready.
    function onPlayerReady(event) {
        event.target.playVideo();
    }
    var done = false;
    function onPlayerStateChange(event) {
        if (event.data == YT.PlayerState.PLAYING && !done) {
            setTimeout(stopVideo, 6000);
            done = true;
        }
    }
    function stopVideo() {
        player.stopVideo();
    }
}
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KolivaDev

79483277

Date: 2025-03-04 09:58:29
Score: 0.5
Natty:
Report link

As mentioned by @cardamom, linux command lscpu returns a lot of interesting information. Note that their is an option (-J, --json) to get the output in the JSON format. This make it much easier to parse in python.

import json
import subprocess

cpu_info = json.loads(subprocess.check_output("lscpu -J", shell=True))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Remi Cuingnet

79483272

Date: 2025-03-04 09:55:28
Score: 3.5
Natty:
Report link

The Template Literal Editor extension works for both VSCode and Open-VSX at the moment.

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

79483270

Date: 2025-03-04 09:53:28
Score: 0.5
Natty:
Report link

I have taken some times to understand that, but :

simply rename config.sample.inc.php to config.inc.php.

If needed, ensure that the configuration inside the new config.inc.php is equivalent to the configuration of the former config.inc.php in the previous version.

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

79483268

Date: 2025-03-04 09:52:27
Score: 3
Natty:
Report link

You probably already found the problem here, but the column "Latitude" should be named "x" and the column "Longitude" "y".

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

79483263

Date: 2025-03-04 09:50:27
Score: 0.5
Natty:
Report link

I looked at the correct answer and it explains the case very well.

For those who are looking for short answers, simply use the following:

// Not the best performance but it kills the reference
$new = unserialize(serialize($original));

Instead of using $new = clone $original; in the question code.

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

79483261

Date: 2025-03-04 09:50:27
Score: 0.5
Natty:
Report link

Got the same issue.

Did you try to tweak the preferences?

Preferences → Editors → SQL Editor → Code Completion → "Insert table name (or alias) with column names" = Disabled (N/A)

As per my own feedback, I didn't see any change after disabling it. It looks like the v.24.3.5 has a different behaviour.

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ch0

79483254

Date: 2025-03-04 09:47:26
Score: 0.5
Natty:
Report link
<script>
  // 2. This code loads the IFrame Player API code asynchronously.
  var tag = document.createElement('script');

  tag.src = "https://www.youtube.com/iframe_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // 3. This function creates an <iframe> (and YouTube player)
  //    after the API code downloads.
  var player;
  function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
      height: '390',
      width: '640',
      videoId: 'M7lc1UVf-VE',
      playerVars: {
        'playsinline': 1
      },
      events: {
        'onReady': onPlayerReady,
        'onStateChange': onPlayerStateChange
      }
    });
  }

  // 4. The API will call this function when the video player is ready.
  function onPlayerReady(event) {
    event.target.playVideo();
  }

  // 5. The API calls this function when the player's state changes.
  //    The function indicates that when playing a video (state=1),
  //    the player should play for six seconds and then stop.
  var done = false;
  function onPlayerStateChange(event) {
    if (event.data == YT.PlayerState.PLAYING && !done) {
      setTimeout(stopVideo, 6000);
      done = true;
    }
  }
  function stopVideo() {
    player.stopVideo();
  }
</script>
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KolivaDev

79483252

Date: 2025-03-04 09:46:26
Score: 2
Natty:
Report link

It shows you're successfully logging into the Garmin API in Rails. But could not receive any data. This could be due to missing API permissions. Or it might be an incorrect request formats, or expired tokens.

If you're facing issues with your Garmin device and searching with "Should I Sell My Garmin Watch instead?", platforms like Musicmagpie, Recyclepro make it easy to Sell Garmin Watch models for the best price.

However, if you'd prefer troubleshooting the issue, feel free to discuss your API error logs. I am available all the time.

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

79483248

Date: 2025-03-04 09:44:26
Score: 1.5
Natty:
Report link

You still have a 10px margin at this spot.

#header{margin-right: 10px; margin-left: 10px; font-size: xx-large;}

So

 #header{font-size: xx-large;}

That should solve your problem.

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

79483244

Date: 2025-03-04 09:43:26
Score: 3
Natty:
Report link

For those using Azure SQL, regular expression functions are now available as a preview.

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

79483239

Date: 2025-03-04 09:40:25
Score: 1.5
Natty:
Report link

If your aim is to use it like a cache there are several options:

  1. Service with a singleton lifetime containing that ConcurrentDictionary. It would mean that your controller uses the same service instance on every request.
  2. Making your ConcurrentDictionary a static field.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jaroslav

79483233

Date: 2025-03-04 09:39:25
Score: 1
Natty:
Report link

Resident evil 4

10101

  1. Package name: jjp.co.capcom.android.googleplay.Evil5 Launch Activity: jjp.co.capcom.android.googleplay.Evil5.Bio4PreActivity Signature SHA-1: test signature App path: /data/app/~~mbBki89q_Jg87m2R8cWetw==/jjp.co.capcom.android.googleplay.Evil5-rHBDenysWfBKL8GwSy_ZYA==/base.apk App's data path: /data/user/0/jjp.co.capcom.android.googleplay.Evil5/ Version: 1.01.01 ~ www.androidoyun.club Build: 10000 minSDK: 8 TargetSDK: 8 User ID: 10332 Installed from: Package installer Install date: 2025-03-04 14:55

APK size: 77.388 Mb Dalvik-cache size: 0.020 Mb

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

79483229

Date: 2025-03-04 09:38:25
Score: 2.5
Natty:
Report link

The issue is likely due to the type of release you are using. Play Integrity won't function with Debug or Internal App Sharing, only with a valid Google Play release. Once your app is published on Google Play, reCaptcha will no longer be used, and your user will receive the message immediately.

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

79483226

Date: 2025-03-04 09:37:24
Score: 2
Natty:
Report link

I tried this by creating a separate globals.d.ts file with the declaration in it, and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael

79483223

Date: 2025-03-04 09:36:24
Score: 1
Natty:
Report link

With Xpath you can add order if you need a certain element with the same attributes. In this case, of course as a pseudocode it would be like this:

"//form[0]/button"

This will only select the button in the first <form> element

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

79483209

Date: 2025-03-04 09:31:23
Score: 1
Natty:
Report link

Updated way to find the textField from searchBar and hide the “x” symbol rather than “cancel” button :

your_SearchBar.searchTextField.clearButtonMode = UITextFieldViewModeNever;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikas Saini

79483206

Date: 2025-03-04 09:29:22
Score: 1.5
Natty:
Report link

This works for me:

  1. Pin VS Code
  2. Unpin VS Code
  3. Pin VS Code
  4. Unpin VS Code

And now it works!

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 128ticks

79483204

Date: 2025-03-04 09:27:22
Score: 3
Natty:
Report link

For those looking for innovative space-saving solutions, we optimized our UX and SEO at InvisFurniture. Implementing structured data really helped with visibility!

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

79483203

Date: 2025-03-04 09:26:22
Score: 1.5
Natty:
Report link

I do it in a simple way.

'DIRS': ['templates']

Then I create a templates folder in root directory or in any app directory. It works perfectly fine.

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

79483196

Date: 2025-03-04 09:24:21
Score: 5
Natty: 5
Report link

same error for me, on RN 0.76.7

Reasons:
  • RegEx Blacklisted phrase (1): same error
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jules

79483195

Date: 2025-03-04 09:23:20
Score: 1.5
Natty:
Report link

Remove the @Component or @Service annotation frome here:

public class JwtRequestFilter extends OncePerRequestFilter {

    private final MyUserDetailsService userDetailsService;

    private final JwtUtil jwtUtil;

    public JwtRequestFilter(MyUserDetailsService userDetailsService, JwtUtil jwtUtil) {
        this.userDetailsService = userDetailsService;
        this.jwtUtil = jwtUtil;
    }

In your SecurityConfig:

@Configuration
@EnableWebSecurity
public class SecurityConfig {

    private final MyUserDetailsService myUserDetailsService;
    private final JwtUtil jwtUtil;

    @Autowired
    public SecurityConfig(MyUserDetailsService myUserDetailsService, JwtUtil jwtUtil) {
        this.myUserDetailsService = myUserDetailsService;
        this.jwtUtil = jwtUtil;
    }

@Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
        JwtRequestFilter jwtRequestFilter = new JwtRequestFilter(myUserDetailsService, jwtUtil);
    

... remaining code
}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • User mentioned (0): @Service
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aucta Dev

79483188

Date: 2025-03-04 09:19:19
Score: 2.5
Natty:
Report link

Have you checked if your custom backend is properly set up for production? Sometimes CORS issues or incorrect API URLs can cause problems when deploying. Also, ensure that your app has all the necessary permissions, especially for network access

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: SonTL

79483186

Date: 2025-03-04 09:19:19
Score: 1
Natty:
Report link

Use assets/applepay.json as your paymentConfigurationAsset for Apple Pay. You can save the file path to a variable the reference it in the paymentConfigurationAsset field. Do the same for google pay . Here is is referenced in the docs you linked https://github.com/google-pay/flutter-plugin/blob/main/pay/example/lib/payment_configurations.dart

ApplePayButton(
              paymentConfigurationAsset:PaymentConfiguration.fromJsonString(
 applepayJsonReferenceToAssets)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yonko Kilasi

79483184

Date: 2025-03-04 09:17:19
Score: 1
Natty:
Report link

Pure dart dtls implementation: https://github.com/KellyKinyama/dartls/tree/master/lib/src/dtls/examples/server You can it currently support 3 ciphers and dtls servers. You can use use it implement dtls servers, dtls clients.Kindly check the example folder to see the use cases

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kelly Kinyama

79483175

Date: 2025-03-04 09:12:18
Score: 1
Natty:
Report link

I would suggest in whatever environment/language you are in to just write a quick test where you spawn a bunch of threads writing and reading from the global, and see what happens.

Sorry no one actually answered your question, and just assumed your case would never happen.

I actually ran into this case recently, when trying to diagnose the impact of a bug in the wild (eg I can obviously fix it in a later release, but understanding the impact of the bug here was also very critical!)

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

79483169

Date: 2025-03-04 09:11:18
Score: 3
Natty:
Report link

REGEXP_INSTR is now available as a preview in Azure SQL and SQL Database in Microsoft Fabric

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

79483165

Date: 2025-03-04 09:09:17
Score: 0.5
Natty:
Report link

I tried tried convolve2d (https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html). But the results as obtained from the original method in the question. @nils-werner The code was not possible to add in the comments section so I added here.

import numpy as np
from scipy.signal import convolve2d

def kernel_convolution_V3(matrix, kernel):
    if not isinstance(matrix, np.ndarray):
        matrix = np.array(matrix)
    n, m = matrix.shape

    if not isinstance(kernel, np.ndarray):
        kernel = np.array(kernel)
    k = kernel.shape

    assert n >= k[0] and m >= k[1], 'Kernel can\'t be bigger than matrix in terms of shape.'

    stride = (1, 1)
    dilation = (1, 1)
    
    h_out = np.floor((n - (k[0] - 1) - 1) / stride[0] + 1).astype(int)
    w_out = np.floor((m - (k[1] - 1) - 1) / stride[1] + 1).astype(int)
    assert h_out > 0 and w_out > 0, 'Can\'t apply input parameters, one of resulting output dimension is non-positive.'

    # Flip the kernel for convolution
    flipped_kernel = np.flip(kernel)
    
    # Perform the convolution
    convolved = convolve2d(matrix, flipped_kernel, mode='valid')
    
    # Calculate the Euclidean distance
    matrix_out = np.sqrt(convolved)

    return matrix_out[:h_out, :w_out]
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @nils-werner
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aleph

79483150

Date: 2025-03-04 09:05:17
Score: 1
Natty:
Report link

I have it working with "google_maps_cluster_manager-3.1.0", but I needed to hide Cluster and ClusterManager in both the plugin code and my own.

import 'package:google_maps_flutter/google_maps_flutter.dart' hide Cluster;

import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart' hide Cluster;
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dennis Hilmar

79483134

Date: 2025-03-04 09:00:15
Score: 0.5
Natty:
Report link

@Lawrence Cherone answer is the case when you have installed node|electron|bun|deno|whatever. But if you want to know the ABI version before you install anything, then here is an abi_version_registry.json which provides more details about it. At the time of writing this answer, the list looks like following:

    {
  "NODE_MODULE_VERSION": [
    { "modules": 135,"runtime": "electron", "variant": "electron",             "versions": "36" },
    { "modules": 134,"runtime": "node",     "variant": "v8_13.0",              "versions": "24.0.0-pre" },
    { "modules": 133,"runtime": "electron", "variant": "electron",             "versions": "35" },
    { "modules": 132,"runtime": "electron", "variant": "electron",             "versions": "34" },
    { "modules": 131,"runtime": "node",     "variant": "v8_12.9",              "versions": "23.0.0" },
    { "modules": 130,"runtime": "electron", "variant": "electron",             "versions": "33" },
    { "modules": 129,"runtime": "node",     "variant": "v8_12.8",              "versions": "23.0.0-pre" },
    { "modules": 128,"runtime": "electron", "variant": "electron",             "versions": "32" },
    { "modules": 127,"runtime": "node",     "variant": "v8_12.4",              "versions": "22.0.0" },
    { "modules": 126,"runtime": "node",     "variant": "v8_12.3",              "versions": "22.0.0-pre" },
    { "modules": 125,"runtime": "electron", "variant": "electron",             "versions": "31" },
    { "modules": 124,"runtime": "node",     "variant": "v8_12.2",              "versions": "22.0.0-pre" },
    { "modules": 123,"runtime": "electron", "variant": "electron",             "versions": "30" },
    { "modules": 122,"runtime": "node",     "variant": "v8_11.9",              "versions": "22.0.0-pre" },
    { "modules": 121,"runtime": "electron", "variant": "electron",             "versions": "29" },
    { "modules": 120,"runtime": "node",     "variant": "v8_11.8",              "versions": "21.0.0" },
    { "modules": 119,"runtime": "electron", "variant": "electron",             "versions": "28" },
    { "modules": 118,"runtime": "electron", "variant": "electron",             "versions": "27" },
    { "modules": 117,"runtime": "electron", "variant": "electron",             "versions": "26" },
    { "modules": 116,"runtime": "electron", "variant": "electron",             "versions": "25" },
    { "modules": 115,"runtime": "node",     "variant": "v8_11.3",              "versions": "20.0.0" },
    { "modules": 114,"runtime": "electron", "variant": "electron",             "versions": "24" },
    { "modules": 113,"runtime": "electron", "variant": "electron",             "versions": "23" },
    { "modules": 112,"runtime": "node",     "variant": "v8_10.9",              "versions": "20.0.0-pre" },
    { "modules": 111,"runtime": "node",     "variant": "v8_10.7",              "versions": "19.0.0" },
    { "modules": 110,"runtime": "electron", "variant": "electron",             "versions": "22" },
    { "modules": 109,"runtime": "electron", "variant": "electron",             "versions": "21" },
    { "modules": 108,"runtime": "node",     "variant": "v8_10.1",              "versions": "18.0.0" },
    { "modules": 107,"runtime": "electron", "variant": "electron",             "versions": "20" },
    { "modules": 106,"runtime": "electron", "variant": "electron",             "versions": "19" },
    { "modules": 105,"runtime": "node",     "variant": "v8_9.8",               "versions": "18.0.0-pre" },
    { "modules": 104,"runtime": "node",     "variant": "v8_9.7",               "versions": "18.0.0-pre" },
    { "modules": 103,"runtime": "electron", "variant": "electron",             "versions": "18" },
    { "modules": 102,"runtime": "node",     "variant": "v8_9.5",               "versions": "17.0.0" },
    { "modules": 101,"runtime": "electron", "variant": "electron",             "versions": "17" },
    { "modules": 100,"runtime": "node",     "variant": "v8_9.4",               "versions": "17.0.0-pre" },
    { "modules": 99, "runtime": "electron", "variant": "electron",             "versions": "16" },
    { "modules": 98, "runtime": "electron", "variant": "electron",             "versions": "15" },
    { "modules": 97, "runtime": "electron", "variant": "electron",             "versions": "14" },
    { "modules": 96, "runtime": "node",     "variant": "v8_9.3",               "versions": "17.0.0-pre" },
    { "modules": 95, "runtime": "node",     "variant": "v8_9.2",               "versions": "17.0.0-pre" },
    { "modules": 94, "runtime": "node",     "variant": "v8_9.1",               "versions": "17.0.0-pre" },
    { "modules": 93, "runtime": "node",     "variant": "v8_9.0",               "versions": "16.0.0" },
    { "modules": 92, "runtime": "node",     "variant": "v8_8.9",               "versions": "16.0.0-pre" },
    { "modules": 91, "runtime": "node",     "variant": "v8_8.8",               "versions": "16.0.0-pre" },
    { "modules": 90, "runtime": "node",     "variant": "v8_8.7",               "versions": "16.0.0-pre" },
    { "modules": 89, "runtime": "electron", "variant": "electron",             "versions": "13" },
    { "modules": 88, "runtime": "node",     "variant": "v8_8.6",               "versions": "15.0.0" },
    { "modules": 87, "runtime": "electron", "variant": "electron",             "versions": "12" },
    { "modules": 86, "runtime": "node",     "variant": "v8_8.4",               "versions": "15.0.0-pre" },
    { "modules": 85, "runtime": "electron", "variant": "electron",             "versions": "11" },
    { "modules": 84, "runtime": "node",     "variant": "v8_8.3",               "versions": "15.0.0-pre" },
    { "modules": 83, "runtime": "node",     "variant": "v8_8.1",               "versions": "14.0.0" },
    { "modules": 82, "runtime": "electron", "variant": "electron",             "versions": "10" },
    { "modules": 81, "runtime": "node",     "variant": "v8_7.9",               "versions": "14.0.0-pre" },
    { "modules": 80, "runtime": "electron", "variant": "electron",             "versions": "9" },
    { "modules": 79, "runtime": "node",     "variant": "v8_7.8",               "versions": "13" },
    { "modules": 78, "runtime": "node",     "variant": "v8_7.7",               "versions": "13.0.0-pre" },
    { "modules": 77, "runtime": "node",     "variant": "v8_7.6",               "versions": "13.0.0-pre" },
    { "modules": 76, "runtime": "electron", "variant": "electron",             "versions": "8" },
    { "modules": 75, "runtime": "electron", "variant": "electron",             "versions": "7" },
    { "modules": 74, "runtime": "node",     "variant": "v8_7.5",               "versions": "13.0.0-pre" },
    { "modules": 73, "runtime": "electron", "variant": "electron",             "versions": "6" },
    { "modules": 72, "runtime": "node",     "variant": "node",                 "versions": "12" },
    { "modules": 71, "runtime": "node",     "variant": "v8_7.3",               "versions": "12.0.0-pre" },
    { "modules": 70, "runtime": "electron", "variant": "electron",             "versions": "5" },
    { "modules": 69, "runtime": "electron", "variant": "electron",             "versions": "^4.0.4" },
    { "modules": 68, "runtime": "node",     "variant": "v8_7.1",               "versions": "12.0.0-pre" },
    { "modules": 67, "runtime": "node",     "variant": "node",                 "versions": "11" },
    { "modules": 66, "runtime": "node",     "variant": "v8_6.9",               "versions": "11.0.0-pre" },
    { "modules": 65, "runtime": "node",     "variant": "v8_6.8",               "versions": "11.0.0-pre" },
    { "modules": 65, "runtime": "node",     "variant": "debian-openssl_1.1.1", "versions": "10" },
    { "modules": 64, "runtime": "node",     "variant": "node",                 "versions": "10" },
    { "modules": 64, "runtime": "electron", "variant": "electron",             "versions": ">=3 <4.0.4" },
    { "modules": 63, "runtime": "node",     "variant": "v8_6.6",               "versions": "10.0.0-pre" },
    { "modules": 62, "runtime": "node",     "variant": "v8_6.5",               "versions": "10.0.0-pre" },
    { "modules": 61, "runtime": "node",     "variant": "v8_6.4",               "versions": "10.0.0-pre" },
    { "modules": 60, "runtime": "node",     "variant": "v8_6.3",               "versions": "10.0.0-pre" },
    { "modules": 59, "runtime": "node",     "variant": "node",                 "versions": "9" },
    { "modules": 59, "runtime": "nw.js",    "variant": "nw.js",                "versions": "~0.26.5" },
    { "modules": 58, "runtime": "node",     "variant": "v8_6.1",               "versions": "9.0.0-pre" },
    { "modules": 58, "runtime": "node",     "variant": "debian-openssl_1.1.1", "versions": "8" },
    { "modules": 57, "runtime": "node",     "variant": "node",                 "versions": "8" },
    { "modules": 57, "runtime": "electron", "variant": "electron",             "versions": ">=1.8 <3" },
    { "modules": 57, "runtime": "nw.js",    "variant": "nw.js",                "versions": ">=0.23 <0.26.5" },
    { "modules": 56, "runtime": "node",     "variant": "v8_5.9",               "versions": "8.0.0-pre" },
    { "modules": 55, "runtime": "node",     "variant": "v8_5.8",               "versions": "8.0.0-pre" },
    { "modules": 54, "runtime": "node",     "variant": "v8_5.7",               "versions": "8.0.0-pre" },
    { "modules": 54, "runtime": "electron", "variant": "electron",             "versions": "1.7" },
    { "modules": 53, "runtime": "node",     "variant": "v8_5.6",               "versions": "8.0.0-pre" },
    { "modules": 53, "runtime": "electron", "variant": "electron",             "versions": "1.6" },
    { "modules": 52, "runtime": "node",     "variant": "v8_5.5",               "versions": "8.0.0-pre" },
    { "modules": 51, "runtime": "node",     "variant": "node",                 "versions": "7" },
    { "modules": 51, "runtime": "electron", "variant": "electron",             "versions": "1.5" },
    { "modules": 51, "runtime": "nw.js",    "variant": "nw.js",                "versions": ">=0.18.3 <0.24" },
    { "modules": 50, "runtime": "electron", "variant": "electron",             "versions": "1.4" },
    { "modules": 49, "runtime": "electron", "variant": "electron",             "versions": "1.3" },
    { "modules": 48, "runtime": "node",     "variant": "node",                 "versions": "6" },
    { "modules": 48, "runtime": "electron", "variant": "electron",             "versions": ">1.1 <1.3" },
    { "modules": 48, "runtime": "nw.js",    "variant": "nw.js",                "versions": "6" },
    { "modules": 47, "runtime": "node",     "variant": "node",                 "versions": "5" },
    { "modules": 47, "runtime": "electron", "variant": "electron",             "versions": "0.36" },
    { "modules": 47, "runtime": "nw.js",    "variant": "nw.js",                "versions": "0.13" },
    { "modules": 46, "runtime": "node",     "variant": "node",                 "versions": "4" },
    { "modules": 46, "runtime": "electron", "variant": "electron",             "versions": ">=0.33 <0.36" },
    { "modules": 45, "runtime": "node",     "variant": "io.js",                "versions": "3" },
    { "modules": 45, "runtime": "electron", "variant": "electron",             "versions": ">=0.31 <0.33" },
    { "modules": 44, "runtime": "node",     "variant": "io.js",                "versions": "2" },
    { "modules": 44, "runtime": "electron", "variant": "electron",             "versions": "0.30" },
    { "modules": 43, "runtime": "node",     "variant": "io.js",                "versions": ">=1.1 <2" },
    { "modules": 42, "runtime": "node",     "variant": "io.js",                "versions": "1.0" },
    { "modules": 14, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.11 <0.13" },
    { "modules": 13, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.8 <0.11.11" },
    { "modules": 12, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.0 <0.11.8" },
    { "modules": 11, "runtime": "node",     "variant": "node",                 "versions": ">=0.9.9 <0.11" },
    { "modules": 10, "runtime": "node",     "variant": "node",                 "versions": ">=0.9.1 <0.9.9" },
    { "modules": 1,  "runtime": "node",     "variant": "node",                 "versions": ">=0.2.0 <0.9.8" }
  ]
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Michał Grzegorzewski

79483131

Date: 2025-03-04 09:00:15
Score: 1
Natty:
Report link

i think you can use AJAX request from ExtJS to retrieve an authentication token or session. Then set the token in the session and load the iframe without passing sensitive data in the URL.

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

79483113

Date: 2025-03-04 08:55:14
Score: 9.5 🚩
Natty: 6
Report link

Is the problem solved? If the app is in the background, I want to start the Intent(Settings.ACTION_MANAGE_ALL_SIM_PROFILES_SETTINGS) in the action button of the notification. It cannot send the broadcast and start the Activity at the same time. Is there any way to solve this?

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1.5): solved?
  • RegEx Blacklisted phrase (1.5): solve this?
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: Ericer

79483111

Date: 2025-03-04 08:54:13
Score: 2
Natty:
Report link

So, go to your visual studio folder, grab the msvsmon.exe (plus files), copy it over and happy debugging ;)

(for example "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Remote Debugger\x64*"

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

79483105

Date: 2025-03-04 08:50:12
Score: 4
Natty:
Report link

try this package : google_navigation_flutter 0.5.1

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: LiChen Lee

79483101

Date: 2025-03-04 08:49:12
Score: 3
Natty:
Report link

Did you tried with WebView's onDraw() method?

val bitmap = Bitmap.createBitmap(webView.width, webView.height, Bitmap.Config.ARGB_8888) val canvas = Canvas(bitmap) webView.draw(canvas)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Krishna

79483083

Date: 2025-03-04 08:42:11
Score: 0.5
Natty:
Report link

I am having the same file problem with my App. The app directory is not showing up in the Files app - Location On My iPhone. There should be a folder with my App name listed. I am running iOS 18.3.1 on iPhone 15. I have restarted the iPhone and it did not fix the issue. I have also tried running it on the iPhone 16 simulator with the same negative results. I have added the three keys as suggested.

<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>UISupportsDocumentBrowser</key>
<true/>

` I can write files to Apps Document directory. Any other ideas why the App file directory is not visible? An alternative solution, it should be possible to write the files directly to iCloud? I will keep testing.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user3880897

79483079

Date: 2025-03-04 08:41:10
Score: 4.5
Natty:
Report link

I got the same issue i was using js to open custom link to open the app since we rely on messenger to send our link to users to claim something in the app it was working a month ago but not anymore i did everything even setup meta tags as mentioned in facebook docs but nothing seem to work i had made an arrow pointing to the right bottom of the screen to open the safari which will open the app like i want please if any one has a solution just let us know thank you !!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (1): i want
  • RegEx Blacklisted phrase (1): I got the same issue i was using js to open custom link to open the app since we rely on messenger to send our link to users to claim something in the app it was working a month ago but not anymore i did everything even setup meta tags as mentioned in facebook docs but nothing seem to work i had made an arrow pointing to the right bottom of the screen to open the safari which will open the app like i want please
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anoir

79483078

Date: 2025-03-04 08:41:10
Score: 2
Natty:
Report link

In our case, the certificate simply had expired. I created a new one through Xcode (Xcode > Settings > Accounts) and added it to our provisioning profile at https://developer.apple.com/account/resources/profiles/review/, which solved the issue.

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

79483077

Date: 2025-03-04 08:41:09
Score: 5
Natty: 4.5
Report link

I encountered this same problem. I searched everywhere until I discovered that Linux enviroment is case sensitive.

I changed {% include "partials/partial_add_Initiative.html" %} to {% include "partials/partial_add_initiative.html" %}. Just because of capital letter "I" in initiative, it did not work until I changed it to small letter "i". Windows allows the different letters. Or is there anywhere in the setting one can escape the case sensitivity? I will check.

Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): is there any
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Bioscom

79483071

Date: 2025-03-04 08:38:09
Score: 2.5
Natty:
Report link

Search event is non-standard and there's no more compatibility for Safari event search compatibility.

You can use the input event to fix this.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: André Gálvez

79483066

Date: 2025-03-04 08:35:08
Score: 1
Natty:
Report link
 request = self.context.get("request")
 http_param = request.GET.get("param",None)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Colateral

79483065

Date: 2025-03-04 08:35:08
Score: 2.5
Natty:
Report link

A Markdown viewer is very useful for formatting Markdown files as it renders them into neatly laid out text. It enables content creators to visually inspect how their writing would look like without converting it to HTML or other formats. This is especially useful for quick edits. Simple and efficient!

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

79483056

Date: 2025-03-04 08:28:07
Score: 1
Natty:
Report link

I would recommend becoming familiar with go mod tidy. The help text from go itself is more informative than my transcription would be:

$ go help mod tidy
usage: go mod tidy [-e] [-v] [-x] [-diff] [-go=version] [-compat=version]

Tidy makes sure go.mod matches the source code in the module.
It adds any missing modules necessary to build the current module's
packages and dependencies, and it removes unused modules that
don't provide any relevant packages. It also adds any missing entries
to go.sum and removes any unnecessary ones.
...

SRC: https://go.dev/src/cmd/go/internal/modcmd/tidy.go
(archive.org mirror)

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

79483047

Date: 2025-03-04 08:26:06
Score: 1.5
Natty:
Report link

asking for clarification

Yes.

I haven't tried it, but this might help ... Since with this prop not set, Quarkus uses "old" plain gRPC server, with this set to "false", it uses Vert.x based gRPC server -- running on existing HTTP server.

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

79483045

Date: 2025-03-04 08:25:06
Score: 0.5
Natty:
Report link

Just use a hack with columns.

col1, _ = st.columns([.2, .8])
with col1:
    st.pyplot(fig)

It will set the with of the figure to 20% of the total with of the streamlit page.

If you need to center the figure:

col1, col2, _ = st.columns([.4, .2, .4])
with col2:
    st.pyplot(fig)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SergeyR

79483036

Date: 2025-03-04 08:20:05
Score: 3
Natty:
Report link

Based on @nneonneo's comment, I reformat my D disk as NTFS instead of FAT. and it just work perfectly.

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

79483035

Date: 2025-03-04 08:20:05
Score: 1
Natty:
Report link
  1. Delete all the recordings inside the folder.
  2. Right click the folder, give read access to tomcat and click yes for applying it recursively or you can do this via command line (the one you did above).
  3. The owner must be root, group tomcat must have read access. Make sure you have placed the history recording storage plugin in /etc/guacamole/extensions (Download link).
  4. Configure a new connection with the name under screen recording as ${HISTORY_PATH}/${HISTORY_UUID}, enable "Automatically create path" and save.
  5. Restart guacd(/etc/init.d/guacd restart) and tomcat(systemctl restart tomcat), check again.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Learner

79483034

Date: 2025-03-04 08:19:05
Score: 3
Natty:
Report link

My resolution is Sign out the account in VSCode. Do a Git Push and it will ask you to log in the GitHub, either using browser or a PAT. Log in and it works.

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

79483027

Date: 2025-03-04 08:17:04
Score: 4
Natty:
Report link

enter image description here

У меня была такая ситуация: что lbl_style подсвечивался желтым цветом вместо красного. Нужно просто установить настройки по умолчанию:

Settings > Editor > Inspections > Python

Profile > ... > Restore Defaults

И моя проблема ушла.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Stepan Belopolsky

79483017

Date: 2025-03-04 08:14:03
Score: 2.5
Natty:
Report link

I faced the same problem. The problem was with the my java version mismatch. I developed my code in java version 8 and after that compile that by JDK remote 17 and it could not be run. set all java versions in the same version and then run.

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

79483016

Date: 2025-03-04 08:13:02
Score: 9 🚩
Natty: 6.5
Report link

Have you solved this problem? I have the same problem now.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): solved this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Enchanter

79483015

Date: 2025-03-04 08:12:02
Score: 0.5
Natty:
Report link

You can keep the original form of input, textarea and select elements but direct browser to render them with dark mode assets.

Option element rendered in iOS Safari in dark mode iOS Safari

Option element rendered in Mac Safari in dark mode Mac Safari

Safari automatically renders those elements with dark mode assets; if your site reports to browser that it supports dark mode. To report support; set color-scheme property on :root. Such as:

:root {
    color-scheme: dark;
}

If your site supports both modes:

:root {
    color-scheme: light dark;
}

This works for both Mac and iOS version of Safari in version 18.

MDN: color-scheme

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

79483001

Date: 2025-03-04 08:06:01
Score: 2
Natty:
Report link

Flutter Web on Apache - "Unexpected token '<'" Error Solution

This error usually occurs when Apache does not properly serve .js files or incorrectly redirects requests, causing the browser to receive an HTML file (often a 404 error page or index.html) instead of the expected JavaScript file. Follow these steps to resolve the issue.

1. Check if the File Exists on the Server

First, make sure the flutter_bootstrap.js file actually exists by running:

ls -l /var/www/html/flweb/flutter_bootstrap.js

If the file is missing, you may not have copied the build files correctly. After running flutter build web, move all contents from the build/web/ directory to /var/www/html/flweb/:

cp -r build/web/* /var/www/html/flweb/

Then, check again to ensure the files are present on the server.

2. Ensure Apache Serves the Correct MIME Types

Apache needs to correctly serve .js, .wasm, .json, and other required file types. Edit your Apache configuration file (/etc/httpd/conf/httpd.conf or /etc/httpd/conf.d/flweb.conf) and add the following lines:

<Directory "/var/www/html/flweb">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

# Required MIME types for Flutter Web
AddType application/wasm .wasm
AddType application/javascript .js
AddType application/json .json
AddType text/css .css
AddType application/octet-stream .blob

Then restart Apache:

sudo systemctl restart httpd

This ensures Apache serves the necessary file types properly.

3. Enable URL Rewriting for Flutter Web Routing Flutter Web relies on URL rewriting for proper navigation. If you're getting errors when refreshing the page, ensure that Apache redirects all requests to index.html. Create or edit /var/www/html/flweb/.htaccess:

nano /var/www/html/flweb/.htaccess

Add the following content and save the file:

RewriteEngine On
# Redirect all requests to index.html unless the file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]

Then restart Apache again:

sudo systemctl restart httpd

4. Check File Permissions and Ownership

sudo chown -R apache:apache /var/www/html/flweb
sudo chmod -R 755 /var/www/html/flweb

This allows Apache to read and serve the files correctly.

5. Check if the Browser is Receiving the Correct File

Sometimes, the browser may be loading an HTML error page instead of the expected JavaScript file. Test the response type using:

curl -I http://your-server-ip/flweb/flutter_bootstrap.js

You should see:

Content-Type: application/javascript

If it returns Content-Type: text/html, Apache is incorrectly serving the .js file. Double-check the MIME type settings in Step 2.

6. Clear Browser Cache and Reload

After restarting Apache, clear your browser cache to ensure it's not loading old files. In Google Chrome:

  1. Open Developer Tools (F12 or Ctrl + Shift + I).
  2. Go to the "Network" tab.
  3. Enable "Disable cache".
  4. Force reload the page with "Ctrl + Shift + R".

If you still get the same error, check the "Network" tab in Developer Tools to see which files are failing to load.

Conclusion Once you've completed these steps, try accessing http://your-server-ip/flweb/ and test if your Flutter Web app works correctly. If you’re still having issues:

If the issue persists, let me know which step you got stuck on, and we’ll troubleshoot it together!

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Eda Özdemir

79482991

Date: 2025-03-04 07:57:59
Score: 1.5
Natty:
Report link

My way:

declare let process: Omit<NodeJS.Process, 'env'> & {
  env: {
    NODE_ENV: 'development' | 'production';
    // Your variables goes here
  };
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Super Hero

79482989

Date: 2025-03-04 07:57:58
Score: 11 🚩
Natty: 4.5
Report link

I’m actually facing the same issue as well. Have you found any updates on it? Let me know!

Reasons:
  • Blacklisted phrase (1): any updates on
  • RegEx Blacklisted phrase (2.5): Have you found any updates on it
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Parag Yelonde

79482986

Date: 2025-03-04 07:55:58
Score: 2
Natty:
Report link

Most implementations record the entire size of the allocated block (size including the header, padding). This info is used internally for operations like free, etc. However, this can vary by your C library implementation, so go look it up.

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

79482976

Date: 2025-03-04 07:52:57
Score: 1.5
Natty:
Report link

The correct format for date type in informix is:

2022-11-21 -> (YEAR-MONTH-DAY) -> (YYYY-MM-DD)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mi2830

79482970

Date: 2025-03-04 07:50:56
Score: 2
Natty:
Report link

to serialize wrapped unmanaged types, use Unsafe.AsPointer() for conversion and handle memory allocation manually. Consider using StructLayout for precise control.

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