79269758

Date: 2024-12-10 20:52:21
Score: 1
Natty:
Report link

Check which profile your project is running on, such as dev, prod, or test, to find the correct configuration file.

For more information, please change the log level of the application and edit your question with more details.

logging.level.org.springframework=DEBUG
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mehrdad Bozorgmehr

79269748

Date: 2024-12-10 20:49:20
Score: 1
Natty:
Report link

This is SQL query to add a table to your DB which can store a photo.

create table if not exists testphoto(
id bigint auto_increment primary key,
file_name varchar(255),
content_type varchar(255),
data binary
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MisterCoder

79269741

Date: 2024-12-10 20:48:20
Score: 1.5
Natty:
Report link

Complement to @BOC's answer.

If you are behind some company vpn, you probably need to set it to:

pluginManagement {
  repositories {
    maven {
      url <local_repository_url>
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @BOC's
  • Low reputation (0.5):
Posted by: Q. Qiao

79269734

Date: 2024-12-10 20:42:19
Score: 3.5
Natty:
Report link

The role for the information button is button. The role for the tooltip pop-up is tooltip.

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

79269729

Date: 2024-12-10 20:40:18
Score: 0.5
Natty:
Report link

Another idea is to use the builtin filter function:

>>> d = {'a':1, 'b':2, 'c':3}
>>> dict(filter(lambda x: x[0] != 'c', d.items()))
{'a': 1, 'b': 2}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Chris Flesher

79269725

Date: 2024-12-10 20:39:18
Score: 1.5
Natty:
Report link

I wish I could give a more satisfying, thorough conclusion to this question but the problem quite simply stopped occurring. I don't know how, I don't know why, but when I went to do a sanity check just now it is as though this problem were never a problem in the first place. Now, any one of my plug-ins require ALL the DLLs they are dependent upon & referential to present as siblings in the directory of that plug-in. I consistently was getting results otherwise previously which is what prompted me to post the question, but now all is well I guess.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Spring E. Thing

79269715

Date: 2024-12-10 20:35:16
Score: 4
Natty:
Report link

I just found the solution of my problem! yey 😊 but it took me a week to solve this problem here is my error message :-

superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x131f42e1) cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.main to unnamed module @0x131f42e1

I was like why is this happening all of sudden but after a freakking week 😑 I found out that android team abandoned the kapt and want us to migrate to the ksp no matter what happen to your projects 😪. I was like really ? And this all happens after I updated my android studio to Ladybug | 2024.2.1 .

So just migrate to the Ksp and enjoy the life! Here is the link for the migration. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Here is the link
  • RegEx Blacklisted phrase (0.5): why is this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @0x131f42e1
  • User mentioned (0): @0x131f42e1
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: heet kanabar

79269714

Date: 2024-12-10 20:35:16
Score: 1.5
Natty:
Report link

As of late 2017, Java has evolved to include some basic shell/script type of capabilities via jshell.

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

79269710

Date: 2024-12-10 20:34:16
Score: 0.5
Natty:
Report link

I think this might also refer to the case when fonts are used (through CSS inside an svg which is than embedded into an image () tag.

In this case only embedded fonts will work (encoded w/ base64):

<style><![CDATA[@font-face {font-family: 'eEgji1HZxKV1:::Concert One';font-style: normal;font-weight: 400;src: url(data:font/ttf;charset=utf-8;base64,AAEAAAAOAIAAAwBgT1MvMpYAauMAAAIIAAAAYGNtYXABpQJnAAACaAAAAHRjdnQgAD8H1AAAAQgAAAASZnBnbZJB2voAAALcAAABYWdhc3AAAAAQAAAA7AAAAAhnbHlm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AZ3LTZGekZAl1AGwgZGBkoGTgZSBlYGWgZeBmIGZgZqBm4GcgZDV0wMRM0PgIzMh4CFREUDgIjIi4CNQEUBiMiJjU0NjMyFpoJIDwzMzwgCQkgPDMzPCAJATJQSEhQUEhNSwMIKlA/Jyc/UCr92CpRPyYmP1EqBABNS0tNUEhIAAEAlv/+A5gFeAAzADWyCgADK7AKELAo0ACwAEVYsAUvG7EFBz5ZsABFWLAhLxuxIQE+WbAARViwLi8bsS4BPlkwMRM0PgIzMh4CFREzNzY2MzIeAhUUBwcTFhYVFA4CIyIuAicnIxUUDgIjIi4CNZYGHDkzNDkbBhDOEjAaGTMnGRy0xBIaHC03GiE0Jx4KcDgGGzk0MzkcBgSaKlA+JiY+UCr+dvIVExMjMR8oItT+iiRJISAyIREgLzYX7qgqUT8mJj9RKgAAAQCMAAABvAV4ABUAKLIKAAMrsAoQsBfcALAARViwBS8bsQUHPlmwAEVYsBAvG7EQAT5ZMDETND4CMzIeAhURFA4CIyIuAjWMCSA8MzQ8HwkJHzw0MzwgCQSaKlA+JiY+UCr8RipRPyYmP1EqAAABAIQAAAPGA+gANQBTsDYvsAovsADcsDYQsCDQsCAvsBbcsCvQsAoQsDDQsAAQsDfcALAARViwBS8bsQUBPlmwAEVYsBsvG7EbAT5ZsjAQAyuwMBCwJtCyKxAwERI5MDElFA4CIyIuAjURNC4CIyIOAhUVFA4CIyIuAjURND4CMzIeAhU+AzMyHgIVA8YKIT00MzwgCQUSIx4pMh0KCiE9NDM8IAkGHj03Nz4fCAgiNUoxN25YN+QrUkAnJ0BSKwGGHDYpGTZef0m+K1JAJydAUisCIitRPyclNDoVHTwwHyRUiGQA) format('truetype');}

]]>

vs referred as an external source:

<style>@font-face {font-family: 'egXPseElB0p1:::Concert One';font-style: normal;font-weight: 400;src: url(https://fonts.gstatic.com/l/font?kit=VEM1Ro9xs5PjtzCu-srDqRTlnveq-hxGBHL1kVp35ZE&skey=1285a0576bf2d826&v=v22) format('truetype');}</style>

B/c an image cannot initiate another network request.

See more here.

Reasons:
  • Blacklisted phrase (1): Thx
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lorand Zudor

79269708

Date: 2024-12-10 20:33:15
Score: 0.5
Natty:
Report link

The issue is solved. I added a new Action method in Controller:

public ActionResult GetImage(int id)
{
    string conStr = "Data Source=.\\SQLEXPRESS; Initial Catalog=Nettbutikk; Integrated Security=True";
    SqlConnection con = new SqlConnection(conStr);
    con.Open();

    SqlDataAdapter dataAdapter = new SqlDataAdapter(new SqlCommand("select * from products", con));
    DataSet dataSet = new DataSet();
    dataAdapter.Fill(dataSet);

    
    Byte[] data = new Byte[0];
    data = (Byte[])(dataSet.Tables[0].Rows[0]["picture"]);
       
    return File(data, "image/jpg");
}

and then calling this method in View:

<img src="@Url.Action("GetImage", new { id = 1 })" alt="Northern Lights" width="600" height="400">
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: javed

79269701

Date: 2024-12-10 20:31:15
Score: 0.5
Natty:
Report link

for this question the library flutter_recorder has the solution, check this simple snipped code

/project/pubspec.yaml

dependencies:

  ...

  flutter_recorder: ^0.9.2

/project/lib/main.dart

import 'package:flutter_recorder/flutter_recorder.dart';

....

class _YourWiget extends State<MainWidget>{
  final _recorder = Recorder.instance
  
  ...

  void dispose() async {
    super.dispose();

    // Good practices, stop the recording when the widget isn't showing
    _recorder.stop();
    
    ...

  }

  void initState(){
    super.initState();
    // init recorder library
    _recorder.init();
    // start recording
    _recorder.start();
    
   ...

  }
}

see the pub.dev page to configure the android, ios and macos permissions : https://pub.dev/packages/flutter_recorder

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sr. Coffe

79269695

Date: 2024-12-10 20:29:14
Score: 0.5
Natty:
Report link

I found the solution. The terraform consider all the .tf files as a single file when processing so we can create new tf files in same folder with different module name to divide a single module into multiple files. The down side is the tables will be destroyed and recreated. One way to avoid that is by using "terraform state mv" command and change meta data from old module to new module.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: anandu Menon

79269691

Date: 2024-12-10 20:28:14
Score: 2.5
Natty:
Report link

If you check the Beanie documentation, you'll see that the parameter "document_model" is incorrect, and the correct parameter is actually "document_models". I believe that if you try it this way, your code will run correctly.

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

79269688

Date: 2024-12-10 20:26:13
Score: 0.5
Natty:
Report link

After 64 minutes the dataflow had processed 106 million rows. (so, now it's using storage capacity that the broken Fabric Metrics capacity app won't show me?) Once that was completed, I could create a new Power BI report using the dataflow. When I select the tables and click Load, I can select Import or Direct query. If I select the tables and Transform Data, once I select Close and Apply and wait for a bit for Power BI to process who knows what, I can select Import or Direct Query for each table. At this point, Power BI has not produced anything to help me make that choice, so I don't know what value it thought it was adding during the delay.

As for the report I created from the dataflow before I followed the instructions in the question: I don't see any way to choose Import or Direct Query and when I click Refresh I see it wants to load data (so it's in Import mode). So that's a complete do-over.

Overall, my Power BI journey has been less than pleasant so far. But that's OK. I'm sure the product will get a complete overhaul soon (like it has every month) so the problems I'm having today will be replaced by completely different problems.

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: dougp

79269671

Date: 2024-12-10 20:21:12
Score: 3
Natty:
Report link

Check your version of Lombok, and ensure that the plugin configuration in the pom.xml file remains unchanged. Sometimes invalidating caches in IntelliJ is ineffective.

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

79269654

Date: 2024-12-10 20:16:10
Score: 3.5
Natty:
Report link

Try adding the Microsoft.Extensions.Localization extension by nuget in your project

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Matheus G. P. S.

79269647

Date: 2024-12-10 20:13:08
Score: 7.5
Natty: 7
Report link

How did a complete beginner manage to get banned from Stackoverflow??

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How did a
  • Low reputation (1):
Posted by: Hopey

79269641

Date: 2024-12-10 20:12:08
Score: 1
Natty:
Report link

using import instead of require solved the issue for me:

import tailwindAnimate from "tailwindcss-animate";
import tailwindTypography from "@tailwindcss/typography";

const Config = {
  ...
  plugins: [tailwindAnimate, tailwindTypography],
};

export default Config;

This is the proper way to do this when using ES Modules

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

79269640

Date: 2024-12-10 20:12:07
Score: 6.5 🚩
Natty: 4.5
Report link

I am actually trying the same with a filesystem attached running on shared disk attached to both master and slave. Both the instances have the shared disk mounted formated with ext4 with the data folder shared and added as volume at /data-volume/artemis/data. The broker and artemis.profile config settings point to this shared directory for journal, paging, bindings and large-messages. I am not seeing the slave getting active when master is shutdown. Can someone share some insight?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone share some
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: thedevopsguy

79269638

Date: 2024-12-10 20:11:06
Score: 0.5
Natty:
Report link

I don't think that <HourHand>, etc, can contain <Rectangle>. Check the doco to see what inner elements are allowed in each outer element.

The XSD tools here are also useful for finding errors in the XML.

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

79269632

Date: 2024-12-10 20:08:05
Score: 2.5
Natty:
Report link

Adding this in case it helps anyone - I deployed the same executable to 2 servers and one of them started throwing these errors. I ended up re-copying the same file and it went away, so I believe it was something in the file corrupted in the clipboard.

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

79269609

Date: 2024-12-10 20:00:03
Score: 3.5
Natty:
Report link

I actually solved the problem by adding x:DataType="x:String" in the <DataTemplate> tag instead of what @BhavaneshN suggested and it works now!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @BhavaneshN
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dan the not so handyman

79269604

Date: 2024-12-10 19:57:03
Score: 1
Natty:
Report link

This error might be happening because you have a space in the path, Storage SSD in this case. Try renaming the problem directory to Storage-SSD or something without a space.

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

79269602

Date: 2024-12-10 19:57:03
Score: 3
Natty:
Report link

Change the runtime to CPU and run the same code. It will clearly mention what the issue is. Then you can fix the issue and change the runtime to GPU again. It will work.

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

79269601

Date: 2024-12-10 19:56:02
Score: 1.5
Natty:
Report link

Maybe, I should make the whole block aria-hidden and add a visually hidden element instead?

Yes, remove the svg from the accessibility tree and add the word "and" as visually hidden text.

<h2>
  <span class="first-line">
    Deadpool
    <svg width="53" height="64" class="inline" aria-hidden="true">
      <use href="#oleo-ampersand"></use>
    </svg>
    <span class="sr-only">and&nbsp;</span> 
    Wolverine:
  </span> 
  A StackOverflow Example
</h2>
.first-line {
  display: block;
}

Also, notice that I removed the br element after "Wolverine" and instead wrapped they first line of content in a span and gave it a display of block to get the line break you want. In browse mode, some screen readers will announce the heading as if it were two separate headings if you use the br element to force a line break, so this is a courtesy to prevent that.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Roland McLeod

79269596

Date: 2024-12-10 19:55:02
Score: 0.5
Natty:
Report link

It seems the Tomcat kills the JVM before JaCoCo agent has a chance to download the results. To avoid this and to get the whole report, can use the command line interface:

java -jar <jacococli> dump --port <port> --destfile <dump-file>

Additional optional parameter --reset would empty internal data after dumping the report.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: C.A.B.

79269593

Date: 2024-12-10 19:54:01
Score: 4
Natty: 4
Report link

@echo off

chcp 1251>nul

MSHTA.EXE vbscript:Close(CreateObject("WScript.Shell").Popup("Привет",60,"Внимание!",64))

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: Dmitry

79269592

Date: 2024-12-10 19:54:01
Score: 2
Natty:
Report link

My tsconfig.json file references tsconfig.app.json. I didn't notice the tsconfig.app.json file, so that file overrode my tsconfig.json.

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

79269591

Date: 2024-12-10 19:54:01
Score: 1.5
Natty:
Report link

I faced with the same problem, edit the id declaration, eg. id INTEGER PRIMARY KEY AUTOINCREMENT,

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

79269574

Date: 2024-12-10 19:49:59
Score: 1.5
Natty:
Report link

I have found a solution. I have replaced "N" with "-1" by using this code:

df2 = df2[df2['Model Year'] != 'N/']  # Filter out rows where 'Model Year' is 'N/'

for col in cols:
    df2[col] = df2[col].replace('N/', -1)
    le.fit(df2[col])
    df2[col] = le.transform(df2[col]) 
    print(le.classes_)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Steve Austin

79269564

Date: 2024-12-10 19:46:59
Score: 1.5
Natty:
Report link

I am not sure if you have this resolved as yet but to fix it you need to go to page settings, under the advanced section you will see reload on submit option, then select only for success. Ensure your grid has a primary key assigned.

Page Settings -> Advanced -> Reload on Submit (Only For Success)

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

79269562

Date: 2024-12-10 19:46:58
Score: 4
Natty: 4
Report link

i have done this but i still cannot find the file i have saved it like 10 times

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

79269558

Date: 2024-12-10 19:45:57
Score: 0.5
Natty:
Report link

After a lot of debugging, I found the issue!

The Issue

This code did not work as intended because LoggedModelManager.__init__ fails when provided no parameters.

I made the assumption that mycustom manager is only instantiated when my model B is defined:

class B(models.Model):
    objects = LoggedModelManager(logging_model='BLog') # I thought this was the only place the constructor was called.

However, this is not the case. When resolving related model sets, the ModelSerializer class from the Django Rest Framework library will instantiate a manager for the related model. This instantiation is done with none of the parameters I expected, therefore an exception was raised and the related set ignored. Sadly, this error is not reported by the serializer, making it very hard to debug.

The Solution

Make sure your custom manager can be instantiated at a later time with no parameters. I did this by returning the default QuerySet if this was the case:

# Defining the Manager
class LoggedModelManager(models.Manager):

     # Save the name of the logging model, which are `ALog` and `BLog` in our example.
    def __init__(self, *args, **kwargs):
        if 'logging_model' in kwargs:
            logging_model = kwargs.pop('logging_model')
            self.logging_model_name = logging_model.lower()
        else:
            self.logging_model_name = None
        super().__init__(*args, **kwargs)

    # Here we filter out the logs from the logged instances.
    def get_queryset(self) -> models.QuerySet:
        if self.logging_model_name is None:
            return super().get_queryset()
        return super().get_queryset().filter(**{self.logging_model_name+"__isnull": True})

Hope this was helpful! I wonder if this is worth a ticket to ensure the Django Rest Framework serializers actually raise an error instead of silencing it.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Clement Faisandier

79269557

Date: 2024-12-10 19:44:55
Score: 4
Natty:
Report link

I’ve just upgraded my InProcess .Net 6 Function app to Isolated .Net 8. I’m facing the same issue. I was previously declaring object like configuration in local.settings.json below Values property. It is correctly loaded by the configuration builder but can’t be used within trigger bindings using % MyBlock:MyParam% expressions. The only workaround is to flatten those expressions within the Values property : MyBlock__MyParam. Is there already a GitHub issue referencing this problem or do you have other workaround to provide ? I haven’t deployed yet on Azure but I guess it won’t work also as the source configuration is coming from AppConfiguration.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nakah

79269551

Date: 2024-12-10 19:43:55
Score: 0.5
Natty:
Report link

Replace

ReactDOM.render(<App />, document.getElementById('root'))

with

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<App />)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Sanushi Salgado

79269549

Date: 2024-12-10 19:42:55
Score: 1
Natty:
Report link

Current SSE session implementation (e.g. OkHttpSSESession) might not propagate exceptions to the flow collectors. Use "client.prepareGet.execute" chain to properly catch exceptions.

In my case socket timeout was the reason OkHttp: Socket timeouts without timeout configured

Setting socketTimeoutMillis = Long.MAX_VALUE solved the issue for me.

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

79269543

Date: 2024-12-10 19:40:54
Score: 1
Natty:
Report link

That is probably because <ag-grid-vue :rowData="toRawDeep(rowData)" /> will rerun toRawDeep(rowData) every time an update is made to props.rowData. Whereas const r = toRawDeep(props.rowData) is only run once when the component is first loaded.

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

79269537

Date: 2024-12-10 19:36:52
Score: 4
Natty:
Report link

For recent versions of JavaScript, use Number.isSafeInteger

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

79269536

Date: 2024-12-10 19:36:52
Score: 3.5
Natty:
Report link

Mera 2 year karesult nhi khulrha ro220809112782

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

79269526

Date: 2024-12-10 19:33:51
Score: 0.5
Natty:
Report link

Try this everything has changed: https://proton-native.js.org/#/quickstart

# install the cli app
npx proton-native-cli init my-app
# move to your project directory
cd my-app
npm install

# run your app
npm run start
# OR to run with hot reloading
npm run dev
Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan

79269523

Date: 2024-12-10 19:32:51
Score: 2.5
Natty:
Report link

Just install with

pip install iqoption
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luiz Henrique Sousa

79269517

Date: 2024-12-10 19:31:50
Score: 4
Natty:
Report link

This may be a good use case for container copy for Azure Cosmos DB. You can find documentation at the link above as well as Create and manage container copy jobs in Azure Cosmos DB (Preview).

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

79269510

Date: 2024-12-10 19:27:49
Score: 0.5
Natty:
Report link

Found solution.

Simple example:

   const propertyName = 'color';
   const propertyValue = 'red';
   const dynamicObject = {
     [propertyName]: propertyValue,
   };

   console.log(dynamicObject); 
   <Text style={dynamicObject}>test</Text>

More complex:

  const properties: string[] = ['color', 'fontSize', 'padding'];
  const values: (string | number)[] = ['red', 35, 10];

  const dynamicStyle: { [key: string]: string | number } = properties.reduce((style, property: string, index: number) => {
    style[property] = values[index];
    return style;
  }, {} as { [key: string]: string | number });

  console.log(dynamicStyle); 
  <Text style={dynamicStyle}>test</Text>

So key is that inside [ ] can be property name.

styles: Record<string, string | number> = {};

and now can add as many key-value pairs as needed.

styles[propName] = value;

Thank you!

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

79269504

Date: 2024-12-10 19:25:49
Score: 1
Natty:
Report link

Here's a modified version of @artem-selivanov's answer that I think is a bit cleaner. It uses only dunder methods:

import asyncio

class AsyncObj:
    def __init__(self, name):
        self.name = name

    async def __aenter__(self):
        await asyncio.sleep(1)
        print(f"Hello {self.name}!")
        return self

    async def __aexit__(self, *exc):
        await asyncio.sleep(1)

    def __await__(self):
        return self.__aenter__().__await__()

obj1 = await AsyncObj("Bob")
print(obj1)
async with AsyncObj("Fred") as obj2:
    print(obj2)

This makes it possible to simply await the object and use the constructor normally, which is great! Note that __await__ itself is NOT async, which threw me for a loop!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @artem-selivanov's
  • Low reputation (1):
Posted by: Graeme Holliday

79269502

Date: 2024-12-10 19:24:48
Score: 2
Natty:
Report link

Prp-tip, for the entire range of cells you're messing with, just have a separate rule that is set to have default no-fill and automatic font settings for cells containing blank values, then set that as the top rule in the order of operations, and select "stop if true".

All the rest of your formatting will be SO MUCH EASIER.

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

79269498

Date: 2024-12-10 19:23:47
Score: 5
Natty:
Report link

productOptions was your problem - I don't have that tag at all and see the same error. I think this stuff is really poorly documented and coded... by Shopify...

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): see the same error
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Scott

79269496

Date: 2024-12-10 19:23:47
Score: 1
Natty:
Report link

I had the same problem when using Keras on my MacBook Pro M1 Pro. Downgrading the Keras version to 3.4 worked for me.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: anh khoa nguyễn

79269495

Date: 2024-12-10 19:22:47
Score: 0.5
Natty:
Report link

Try this one:

class DegreeCtoFahrenheit {

public static void main (String[] args)
{
    double tempInDegC = 30.2;
    var  tempInF = tempInDegC * (9/5) +32;
    System.out.println("Temperature in Fahrenheit is" + tempInF);
}
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Yordan Petkov

79269480

Date: 2024-12-10 19:16:45
Score: 0.5
Natty:
Report link

I have a very similar instance here, and it happens on some of my pages, not all, so it's confusing as to how to address it. I have an search bar where I want to fetch results from the back end and display them in a pop-up div under the search bar. If I use document.addEventListener('alpine:init'... it just doesn't work, whereas if I place the object directly into the x-data property in html (and avoiding use of appState), it works fine. I'm confused because using the appState approach that is initialized in javascript works fine on several of my other pages. Is there a known issue with Alpine being inconsistent in its initiazation or scope access?

I also ended up just leaving it inside the x-data, even those this feels verbose and messy (and you lose the formatting on the js code).

  <!-- SEARCH BAR AND RESULTS -->
  <div x-data="appState" class="relative mx-auto flex-1 px-4">

    <!-- Search Input -->
    <input type="text" x-model="queryString" @keydown.enter="handleSearch"
      class="w-full border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-green-400"
      placeholder="Type your query and press Enter" />

    <!-- Results Box -->
    <div x-show="searchResult" class="absolute bg-white border border-gray-200 rounded-lg shadow-lg w-full mt-2 p-3"
      @click.outside="searchResult = null" x-transition>
      <p class="text-gray-800 font-medium">Results:</p>
      <p x-text="searchResult" class="text-green-600 font-mono"></p>
    </div>
  </div>

And in JS:

document.addEventListener('alpine:init', () => {

    Alpine.data('appState', () => ({
    queryString: '',
    searchResult: null,
    async handleSearch() {
      // Validate the query string
      if (this.queryString.trim() === '') {
        console.error('Query is empty.');
        return;
      }

      try {
        // Make the POST request
        const response = await fetch('/api/get-results', {
          method: 'POST',
          headers: {
            'Content-Type': 'application/json',
          },
          body: JSON.stringify({ query: this.queryString }), // Send the query as expected by the server
        });

        // Check for HTTP errors
        if (!response.ok) {
          throw new Error(`HTTP error! status: ${response.status}`);
        }

        // Parse the JSON response
        const data = await response.json();

        // Use the `queryString` property from the response
        if (data && data.responseString) {
          this.searchResult = data.responseString;
        } else {
          console.error('Unexpected response format:', data);
          this.searchResult = null;
        }
      } catch (error) {
        console.error('Error fetching search results:', error);
        this.searchResult = null;
      }
    }
  }))
})
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Jon Haider

79269469

Date: 2024-12-10 19:09:43
Score: 1.5
Natty:
Report link

Here's what I got when solving in PHP, one cycle

enter code here

for ($i=0,$j=1;$j<=100;$i++,$j=$j+$i){

}echo $i;

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Алексей

79269467

Date: 2024-12-10 19:08:43
Score: 1
Natty:
Report link

In C++ to work with object by void pointer the type casting needed. For example:

void *p_void = some_data_or_func();
char *p_ch = (char*)p_void; // C-Style cast
char *p_ch2 = static_cast<char*>(p_void); // CPP-Style cast

And only now you can work with a pointer as a known data type.

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

79269466

Date: 2024-12-10 19:08:43
Score: 5
Natty:
Report link

This is probably the answer

https://stackoverflow.com/a/47965587/14011696

just bind the is required to a check box

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hershy kohn

79269454

Date: 2024-12-10 19:05:42
Score: 1.5
Natty:
Report link

This would be a limitation of SSIS where the metadata would need to remain static and cannot be changed dynamically. You may need to implement a design where the records are conditionally split so that the respective paths perform either an insert or update. The field ‘address1_city’ would be mapped in the CRM Destination with the action Insert and excluded in the Destination component that has the Update action.

If you have any other questions, please reach out to our Support Team at kingswaysoft.com/about-us/contact-us and we will be happy to help or clarify.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: KingswaySoft

79269453

Date: 2024-12-10 19:04:41
Score: 1.5
Natty:
Report link

@brandon, I like your approach using tasks for table locking while inserting.

You can take this step by using Snowflake Pipes to load from the internal stage. CREATE PIPE docs

This way, multiple processes can put files through an internal stage, and Snowflake PIPE will insert data into tables. This approach should have lower latency than the task approach.

CREATE PIPE mypipe2
  AS
  COPY INTO mytable(C1, C2)
  FROM (SELECT $5, $4 FROM @mystage)
  FILE_FORMAT = (TYPE = 'JSON');
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @brandon
  • Low reputation (1):
Posted by: neeru0303

79269449

Date: 2024-12-10 19:03:41
Score: 1
Natty:
Report link

Could you try to separate the SDK initialization from the RevenueCatUI.Paywall. i mean first show to the user a preview like what is your product or just a splash screen in that screen you initialize the SDK and when the user move to next screen, in this new screen you put the RevenueCatUI.Paywall itself without any surround element like:

return (<RevenueCatUI.Paywall ... 
UI Example Navigation

(first screen) -> (paywall screen)

Remember to have the same version in both packages like

"react-native-purchases": "^8.2.6",
"react-native-purchases-ui": "8.2.6",

i hope this help you .

Regards

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): what is your
  • Whitelisted phrase (-1): hope this help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: acronimax

79269446

Date: 2024-12-10 19:02:41
Score: 1.5
Natty:
Report link

You have to request the single user endpoint. The "list users" only returns limited data. But you can iterate over the single user endpoint by using the user ids returned from the user list api call:

Get a single user:

# by ID
user = gl.users.get(user_id)
# by username
user = gl.users.list(username='root')[0]
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hauke

79269445

Date: 2024-12-10 19:02:41
Score: 2
Natty:
Report link

It could be you're not requesting access to any custom scope or a scope that does not exist (in my case I misspelled it). These answers answer 1, answer 2 were very helpful

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

79269442

Date: 2024-12-10 19:01:40
Score: 3.5
Natty:
Report link

Thank you, I was able to get it working by setting up a custom role and assigning the correct role permissions (which were ContactInfo, Basic, and Extension Properties). I then added the app registration to that role and was able to successfully update the business phones for admins.

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

79269441

Date: 2024-12-10 19:01:40
Score: 1.5
Natty:
Report link

To download the subtitles you could use browser plugin like stream detector, from menu select Copy stream URL as: yt-dlp command, install command line program (on Mac brew install yt-dlp) and add this flag to generated command: --write-subs --sub-lang en --convert-subs srt --sub-format txt

In my case I download video and subtitle with no issue.

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

79269432

Date: 2024-12-10 18:59:39
Score: 12 🚩
Natty: 6.5
Report link

I have the same problem with decompression, did you find a solution?

Currently in Win8 or Win10 I solve it by setting Connect55.exe to compatibility with Win98, however in Win11 this works well for decompression but does not allow me to choose printers for any report.

If you know of a solution, I would appreciate your advice...

Regards Juan Roberto García

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): would appreciate
  • RegEx Blacklisted phrase (3): did you find a solution
  • Contains signature (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Juan Roberto García

79269429

Date: 2024-12-10 18:59:38
Score: 2.5
Natty:
Report link

I found a way to (essentially) do this. I am having trouble with the Japanese calendar as of iOS 18.1 and I needed a similar solution. While we can't change what happens with [NSCalendar currentCalendar], I found a way to simply not use it. I made an NSCalendar category and added this:

+ (NSCalendar *)adjustedCalendar {
    
    NSCalendar *cal = [NSCalendar currentCalendar];
    
    if (cal.calendarIdentifier == NSCalendarIdentifierJapanese) {
        cal = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
    }
    
    return cal;
}

Instead of calling currentCalendar, I call adjustedCalendar and it always gives me a Gregorian one.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2): I am having trouble
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: userMJ

79269428

Date: 2024-12-10 18:59:38
Score: 2
Natty:
Report link

It boggles my mind how someone can be condescending and ask "have you Googled this?" while providing what is effectively a non-answer / tautological truth.

Student: "What is the answer to a+b?" Master: "Isn't it obvious? It's A plus B!"

Yes, clamp() has an additional ideal value, but try applying clamp() and minmax() (with the same upper/lower-bounds) to grid-template-columns, and then try resizing the grid. It seems to me there's no difference between the two in that case, at least visually.

Can someone who actually understands help answer this for me?

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

79269426

Date: 2024-12-10 18:58:38
Score: 5.5
Natty: 5
Report link

How to save the image together with the text as a single file?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (0.5):
Posted by: artoniaz

79269415

Date: 2024-12-10 18:53:36
Score: 3
Natty:
Report link

I fixed it. Just enable your Pylance and run it again. As simple as that. Thanks to everyone who tried to help me.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Julie

79269411

Date: 2024-12-10 18:51:36
Score: 1
Natty:
Report link

I 've fixed broadcasting/auth by commenting out channels:... in app.php and putting in AppServiceProvider this

Broadcast::routes(['middleware' => ['auth:sanctum']]);

    Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
        return (int) $user->id === (int) $id;
    });
    Broadcast::channel('user.{toUserId}', function ($user, $toUserId) {
        return $user->id == $toUserId;
    });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eugene B.

79269403

Date: 2024-12-10 18:48:33
Score: 9 🚩
Natty:
Report link

Have you solved this one? Some reason I cannot comment and ask you. I have the exact same problem - and seemingly no way to debug.

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

79269398

Date: 2024-12-10 18:46:32
Score: 3
Natty:
Report link

the correct syntax to get the new macro to trigger is:

Application.Run "'" & newWorkbook.Name & "'!PartEntryFormShow"

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

79269391

Date: 2024-12-10 18:44:32
Score: 3
Natty:
Report link

Regarding the above css script for the button which has an x as check mark - It works, but I struggle to create a value for each check box. I have tried adding a value to the html part as follow which does not seem to work: <input id="demo_box_2" class="css-checkbox" type="checkbox" checked/> <label for="demo_box_2" value="true" name="demo_lbl_2" value="true" class="css-label">Selected Option</label> Please advise as this does not make sense why it should not be working.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please advise
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Schalk Lombard

79269388

Date: 2024-12-10 18:43:31
Score: 0.5
Natty:
Report link

The correct answer, a couple of years later, is to use the reset function.

mutation.reset()

https://tanstack.com/query/v4/docs/framework/react/guides/mutations

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Thomas Hagström

79269387

Date: 2024-12-10 18:43:31
Score: 1
Natty:
Report link

This error can also happen in case of inheritance. If class A inherits from B and you are using

MockedStatic<A> mockAStatic = Mockito.mockStatic(A.class);

and you try to mock a method which is inherited from B, you'll get the above mentioned error. To fix it use the mock for B.

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

79269378

Date: 2024-12-10 18:39:30
Score: 5.5
Natty: 5.5
Report link

Is 500,000 (comma added for human-reading) 5x10^5 kilobytes?

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

79269375

Date: 2024-12-10 18:38:29
Score: 1
Natty:
Report link

I managed to find a solution, just add this to your PodFile, under post_install:

unless target.name == 'Runner'
    config.build_settings['SKIP_INSTALL'] = "YES"
  end

This fixed my problem 100%

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

79269371

Date: 2024-12-10 18:36:28
Score: 1
Natty:
Report link

Add in android/local.properties this line (you can create this file if it not exist):

sdk.dir=C:\\Users\\yourusername\\AppData\\Local\\Android\\Sdk

Or in your custom android sdk path. You can find it in:

Android Studio > More Actions > Sdk Manager > Languages & Frameworks > Android SDK > Android SDK Location

Like this: enter image description here

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

79269369

Date: 2024-12-10 18:35:28
Score: 1
Natty:
Report link

This command worked for me sftp -o PubkeyAcceptedAlgorithms=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o Port=PORTNUMBER -o IdentityFile=IDENTITYFILENAME USER

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pooja Sinha

79269366

Date: 2024-12-10 18:34:28
Score: 0.5
Natty:
Report link

Addition to @Barmar comment and a slight change

install:
    pip install -r requirements.txt

You should use

make install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Barmar
  • High reputation (-1):
Posted by: Bhargav

79269365

Date: 2024-12-10 18:33:25
Score: 4.5
Natty:
Report link

This can work python CLI screenshot

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

79269359

Date: 2024-12-10 18:30:24
Score: 4
Natty:
Report link

Comment of M. Deinum is an answer that helped

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

79269355

Date: 2024-12-10 18:29:23
Score: 1
Natty:
Report link

Maybe you can check as follows

Enable Google Login:

Open Firebase Console. Select your project. Navigate to Authentication > Sign-in method. Enable the Google option in the Sign-in providers section. Check SHA-1 Fingerprint:

Add the SHA-1 Fingerprint of your keystore in Firebase Console at Project Settings > General.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hari Agus W

79269345

Date: 2024-12-10 18:24:22
Score: 2
Natty:
Report link

The editor.stickyScroll.enabled setting introduced in February 2024 (version 1.87) should be set to false.

If you want to disable the same behavior on tree views, there is a separate setting available since January 2024 (version 1.86), where you need to set workbench.tree.enableStickyScroll to false.

Reasons:
  • Blacklisted phrase (1): not an answer
  • Blacklisted phrase (0.5): Why?
  • Blacklisted phrase (1): StackOverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: rozsazoltan

79269323

Date: 2024-12-10 18:16:20
Score: 0.5
Natty:
Report link

It looks like you are trying to create a spider web (or radar) chart using Highcharts in a React component. The fact that it did not work, even inside useEffect, suggests there might be some issues with the setup, especially when initializing Highcharts with additional modules like highcharts-more.

Here are steps to address the issue and ensure compatibility with the latest Highcharts version:

Updated Code Example

  1. Loading HighchartsMore Properly: The HighchartsMore module should be registered before you create the chart. It's generally a good practice to import and integrate your libraries both in the global context and within component lifecycle methods when you need them.

  2. Use Effect Dependencies: Ensure your useEffect has correct dependencies to avoid running it unnecessarily.

  3. Check Data Types: Make sure that your data inputs match expected types for Highcharts.

Here's an updated version of your code; I made a few adjustments to ensure it runs correctly:

import React, { useEffect } from 'react';
import Highcharts from 'highcharts';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsReact from 'highcharts-react-official';
import { spiderWeb } from 'feature/analytics/config';

// Define the props for SpiderWeb component
export type SpiderWebProps = {
    data?: Array<Record<string, string | boolean | number | Array<any>>>;
};

// Initialize HighchartsMore only once
HighchartsMore(Highcharts);

// Configure spider web (radar) options
const options = spiderWeb();

export const SpiderWeb: React.FC<SpiderWebProps> = ({ data }: SpiderWebProps) => {
    // If data is provided, use it, otherwise use dummy data
    const dummyData = data || [
        {
            name: 'Category A',
            data: [80, 90, 70, 85, 60],
            pointPlacement: 'on',
        },
        {
            name: 'Category B',
            data: [70, 85, 60, 75, 95],
            pointPlacement: 'on',
        },
    ];

    // Chart options
    const chartOptions = {
        ...options,
        chart: {
            polar: true,
            type: 'line',
        },
        yAxis: {
            visible: false,
        },
        series: dummyData,
    };

    // Render HighchartsReact component
    return <HighchartsReact highcharts={Highcharts} options={chartOptions} />;
};

Key Changes

  1. Imports: HighchartsMore is now loaded outside of the component, which prevents multiple executions and potential initialization issues.

  2. Data Input: If no data is provided, the component now falls back to dummyData.

  3. No useEffect: In this case, since we are initializing HighchartsMore outside of the component, the useEffect hook isn't needed.

Additional Tips

With these changes, your spider web chart should work as expected with the latest Highcharts version.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michael Allen

79269322

Date: 2024-12-10 18:16:20
Score: 0.5
Natty:
Report link

Requests for token endpoint generated by OpenIddict client differ from those created by Postman. For instance, OpenIddict client includes Accept-Charset: utf-8 header.

In some cases, that particular header might cause the problem. WAF in front of certain identity providers might not expect it, which leads to forbidden requests.

One way to fix it, is to configure OpenIddict client to skip that particular header:

options
    .AddEventHandler<OpenIddictClientEvents.PrepareTokenRequestContext>(builder =>
        builder.UseInlineHandler(context => {
            HttpRequestMessage? r = context.Transaction.GetHttpRequestMessage();
            r?.Headers.Remove("Accept-Charset");
            return default;
        }));
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: u81494

79269314

Date: 2024-12-10 18:15:20
Score: 2
Natty:
Report link

I had this issue too. Today I upgraded deno and found out I had two different installations.

Default Terminal: /Users/userName/.deno/bin/deno (version 2.1.3)

Vscode using homebrew: /opt/homebrew/bin/deno (version 1.44.4)

I know you use windows. But for mac I needed to brew uninstall deno and then the correct version was available in vscode.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Low reputation (1):
Posted by: Buckaroo

79269313

Date: 2024-12-10 18:15:20
Score: 3.5
Natty:
Report link

/(&.+?;)/ig works better. You may have multiple html entities in your string. If so, /(&.+;)/ig will match only once with everything between the first & and the last ; since + is a greedy find and +? is lazy.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergio Leite

79269312

Date: 2024-12-10 18:14:20
Score: 2.5
Natty:
Report link

For me I needed to delete the bin and obj folders and it then started ok. I believe there are some artifacts left behind when switching from in-process that seems to mess up the isolated start-up process.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: David Baker

79269310

Date: 2024-12-10 18:14:20
Score: 0.5
Natty:
Report link

None of the answers really explain the problem. The real issue here is the exception code

} catch (e: Exception) {
    e.message?.let { Log.e(Constants.TAG, e.message!!) }
}

This entire expression evaluates to returning Boolean?. Why? It returns null (not Unit) when e.message is null. Otherwise it returns the Boolean from Log.e() because Log.e() returns a Boolean. Kotlin treats any final expression that evaluates to something other than Unit as a return expression. That means the entire function has an implied Boolean? return value.

There are a number of ways to address this. Calling return after the log expression is the easiest fix. This explicitly tells the compiler that nothing should be returned.

I frequently get caught out by this because the logging functions returns a Boolean value or when using the ?. operator on the last line of a conditional expression.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Colorado.Rob

79269304

Date: 2024-12-10 18:12:19
Score: 5
Natty: 6.5
Report link

What if we create a third component like a mediator (updateService, responsible for reading and writing to db through A, get information from B), that is able to encapsulate the direct interaction between A and B?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What if we
  • Low reputation (1):
Posted by: Shanta Kumar das

79269303

Date: 2024-12-10 18:12:19
Score: 1
Natty:
Report link
total_qty = data_table.select(pl.col("qty").sum())

with pl.Config(
    tbl_cell_numeric_alignment="RIGHT",
    thousands_separator=",",
    decimal_separator=".",
    float_precision=3,
    ):

    print(total_qty)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ubaid Mallah

79269299

Date: 2024-12-10 18:12:18
Score: 3.5
Natty:
Report link

I was able to create a pdf without linking my google drive, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pavn

79269294

Date: 2024-12-10 18:10:17
Score: 4
Natty:
Report link

I also have the same issue . I have been working with the same model and system . Most of the time my kernal will die or the system will hang for longtime . I believe it because of the mac spec and its Gpu Intel UHD Graphics 630 1536 MB is not sufficient for many llama models . To address this I have few suggestions .

  1. Use Quantized llama models . These are lightweight models .
  2. if possible try to get an EGPU for your mac .
  3. upgrade to PC with better specifications .
Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I also have the same issue
  • Low reputation (1):
Posted by: Abishek m

79269292

Date: 2024-12-10 18:08:17
Score: 0.5
Natty:
Report link

As @C3roe mentioned, the error you're getting is apparently because you're using <script type="module" ... for your script.js. You were doing this because on script.js, you imported addtoCart function from another script (cart.js).

script.js

import { addtocart } from "./cart";            // <-- THIS PART
addtocart(quantity, name, price, imgurl);

//for fun
var fun =0
//loading the html file first cus to get empty spans
document.addEventListener('DOMContentLoaded',()=>{

// ...

One quick fix that can be done is to just redeclare that addtoCart function inside your script.js so you don't have to import it.

script.js

// import { addtocart } from "./cart";             // <-- NO LONGER NEEDED
function addtocart(quantity, name, price, imgurl) {
  const li = document.createElement('li');
  li.textContent = `${name} - ${quantity} x ₹${price} - ${imgurl}`;
  cart.appendChild(li);
}

addtocart(quantity, name, price, imgurl);

//for fun
var fun = 0
//loading the html file first cus to get empty spans
document.addEventListener('DOMContentLoaded', () => {
  //getting all span files as ids
  // ....

Now on your index.html, you don't need to specify type='module' for your script.js.

index.html

<script type="module" src="script.js"></script>  <!-- CHANGE THIS PART -->
<script src="script.js"></script>                <!-- TO BE LIKE THIS -->

I've tested this on my local machine and it doesn't throw the error you specified but instead pops up an alert: enter image description here

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Low reputation (1):
Posted by: Daffa' Alexander

79269286

Date: 2024-12-10 18:06:16
Score: 3.5
Natty:
Report link

I was able to create a pdf without linking my google drive, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pavn

79269284

Date: 2024-12-10 18:06:16
Score: 2
Natty:
Report link

You have to define operator==(const A& a0, const A& a1) which IS NOT member of class A:

inline bool operator==(const A& a0, const A& a1) const {
    return a0.isEqual(a1);
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kedan

79269283

Date: 2024-12-10 18:05:16
Score: 3
Natty:
Report link

I was able to create a pdf, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pavn

79269282

Date: 2024-12-10 18:05:16
Score: 3
Natty:
Report link

Slight correction to Doug's answer, cygpath -wa should be cygpath -ua . cygpath -wa converts from unix paths to windows paths. See docs

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

79269279

Date: 2024-12-10 18:04:15
Score: 1
Natty:
Report link

I solved my problem in a strange way. I clicked on the cursor name (Step 3) with the right mouse button, clicked on the repeating resource. I got cursor1, and in the resources there was cursor : byte[] and cursor1 : byte[] (fourth picture). Now I can delete cursor1 and use Properties.Resources.cursor

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

79269278

Date: 2024-12-10 18:04:15
Score: 4
Natty: 5.5
Report link

NOT AN ANSWER, Follow on Question. How would this work if you are remotely connecting to a secured QMGR on an MQ appliance? I don't seem to be able to add credentials to the command line. I am successfully using this user ID to do other MQ operation like remove runmqsc commands and reading queue depths. On those I need to add a -u userName then < the password > save.output.file

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): NOT AN ANSWER
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RayMN

79269273

Date: 2024-12-10 18:03:14
Score: 2.5
Natty:
Report link

So may have found a solution to my own question but please feel free to pick holes in it as the conditional statement for an empty First Name field remains untested.

<#assign firstname=Recipient.contact.firstname[0]!""/><#if firstname=="??">Customer<#else>${"${Recipient.contact.firstname[0]}"?replace("[^\w]|_", "", "r")?capitalize}</#if>

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex

79269270

Date: 2024-12-10 18:03:14
Score: 0.5
Natty:
Report link

I am currently investigating a similar matter and stumbled upon a possible explanation/solution, saying that "required" and "nullable" are different notions in OpenAPI spec. The property "surname" being declared optional (required:false) does not make it nullable, it just allows it to be omitted entirely. To be able to include it but with a null value, you set it as "nullable: true" (and it can still be set to "required: true" even in that case, meaning that it has to be included even it's null).

Haven't tested that yet, though. Neither do I know if Swagger UI will handle this schema correctly, actually emitting the property as null when applicable.

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

79269264

Date: 2024-12-10 18:01:11
Score: 4.5
Natty:
Report link

Which version do you use it ? check the last version you use in project

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Which
  • Low reputation (1):
Posted by: Mehrdad Bozorgmehr

79269263

Date: 2024-12-10 18:01:11
Score: 1.5
Natty:
Report link

I experienced something similar. With gtsave, I think the other calls like vwidth and vheight are not being properly carried into the webshot function. I tried something similar with the webshot2::webshot function and it did not seem to respect any of the calls like vwidth when converting to pdf, as it outputted the same files regardless of what I put in. I had some success using the first version of webshot and converting to pdf. It might take some tinkering with vwidth, vheight, and the zoom function. I have not tried it with png files though.

https://wch.github.io/webshot/index.html

If there is a fix using webshot2::webshot that would be great.

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