79185688

Date: 2024-11-13 15:57:24
Score: 1
Natty:
Report link

You're right, the new Fair Usage Policy suggests that limits may be imposed especially when many requests are sent to the server. If that was your use case, I would suggest either setting up your own Export Server or using the offline exporting module.

The usage of offline exporting is very simple: https://jsfiddle.net/9cheza5d/

When the module is imported, all the charts get exported without an additional request to the export server by default (BUT not always, here's a chart showing when: https://assets.highcharts.com/images/client-side-export-flow.svg)

Another things worth keeping in mind:

  1. You need to have the same version of Highcharts, exporting.js and offline-exporting.js:
<script src="https://code.highcharts.com/8.0.0/highcharts.js"></script>
<script src="https://code.highcharts.com/8.0.0/modules/exporting.js"></script>
<script src="https://code.highcharts.com/8.0.0/modules/offline-exporting.js"></script>

You can't mix different versions - I would suggest you use 11.4.8 for all the Highcharts packages that you import. That's most likely the culprit of the isSafari issue as I can't reproduce it with either v8 or v11. If you can reproduce it in JSFiddle, please share a link and I will investigate.

  1. Regarding webgrease, I would suggest you clear the cache and re-bundle resources -- if your config is proper, it should help.

  2. If you have some custom JS code in regards to offline exporting, you can use the exportChartLocal method documented here and here's a demo.

Reasons:
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jakub Szuminski

79185682

Date: 2024-11-13 15:55:23
Score: 2
Natty:
Report link

If you use @angular-builders/custom-webpack

Upgrade the version in the package.json file. In my case, even though I used ng update to upgrade angular core and cli from 13 - 18 @angular-builders/custom-webpack is not included in that update.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: A.Mac

79185679

Date: 2024-11-13 15:55:23
Score: 0.5
Natty:
Report link

After a while I found what's going on in my case. Thank you everyone for comment. All of these comments were right about the safe area and its usage. But in my case the problem was in my _layout.tsx file in App directory. In this file there is located Stack by default. What caused the "double" safe area was that the first safe area was created by header of Stack. To fix this issue I simply hide this header like this:

<Stack screenOptions={{ headerShown: false }}> 

After hiding the header, the safe area that was created by me is on the right place and I can customize it.

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

79185677

Date: 2024-11-13 15:54:21
Score: 11 🚩
Natty: 6.5
Report link

having the same issue here, did you solve?, if so how.

Reasons:
  • RegEx Blacklisted phrase (3): did you solve
  • RegEx Blacklisted phrase (1.5): solve?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: maik

79185666

Date: 2024-11-13 15:52:20
Score: 2
Natty:
Report link

Resolved using format_string

dff = df.withColumn("DayofMonthFormatted", when(df.DayofMonth.isin([1,2,3,4,5,6,7,8,9]), format_string("0%d", df.DayofMonth)).otherwise(df.DayofMonth))

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

79185664

Date: 2024-11-13 15:51:20
Score: 3
Natty:
Report link

even if you install scikit learn,you need to import it whenever you are starting ona new file, there after you can import the object elements so as to manipulate them

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

79185662

Date: 2024-11-13 15:51:20
Score: 2.5
Natty:
Report link

I was having the same issues and my bug was that I forgot to include .UseBottomSheet() in my MauiProgram.cs. Everything was working except for the DismissAsync would hang indefinitely. Once I added this call, programmatically calling DismissAsync started working.

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

79185649

Date: 2024-11-13 15:48:19
Score: 4
Natty:
Report link

hi i want to add x and y axis to matplotlib_venn diagram. tried my best with above example with no success

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yogesh Sharma

79185643

Date: 2024-11-13 15:46:18
Score: 1.5
Natty:
Report link

Maybe script being added after the page has already been loaded, which results in the conditions not working until a refresh. Ensure that the script is included in the page before the form is rendered, or use $(document).ready() or window.onload

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

79185642

Date: 2024-11-13 15:46:18
Score: 1
Natty:
Report link

In my case I could create an abstract parent and make a new serialized value when I want to show in Inspector:

abstract class A{
   private int id;
}

class B : A{}

class C : A{
   [SerializeField]
   private new int id;
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Guilherme Muniz

79185638

Date: 2024-11-13 15:46:18
Score: 2.5
Natty:
Report link

Currently, NOT in a position to test on actual iPhone. I would like to first run it successfully in iOS simulator.

you need to test on a real device, no other way around it.

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

79185637

Date: 2024-11-13 15:45:18
Score: 1
Natty:
Report link

Whoever comes across this message, we had a similar problem in our project. The reason was that we were storing UIWindow inside UIViewController object and rootViewController of that UIWindow was self (UIViewController object). So, before removing references to that UIWindow so that ARC could deallocate this object, we needed to do rootViewController = nil and the crash was gone.

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

79185636

Date: 2024-11-13 15:45:18
Score: 0.5
Natty:
Report link

The required formula is very simple (refers ranges depicted below):

[B2]=XLOOKUP(A2:A18,E2:E5,D2:D5,"",-1)

enter image description here

Generaly, upper range limits (Range 2) are not required.

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

79185635

Date: 2024-11-13 15:45:18
Score: 2
Natty:
Report link

I had this issue on System.IO version 9.0.0, I just downgraded to 8.0.0 and it worked fine.

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

79185633

Date: 2024-11-13 15:45:18
Score: 0.5
Natty:
Report link

I looked for the reason why loading a simple page is extremely slow (more than 15s) when the Symfony toolbar is active and Xdebug is activated in step-by-step mode (xdebug.mode=debug).

This happens from the moment Xdebug is enabled on the browser, regardless of whether listening is enabled on the IDE.

It turns out that the Symfony toolbar is loaded using an XHR request which contains the parameter XDEBUG_IGNORE=1 in order to avoid Xdebug slowing down its loading, but this is only taken into account from the version 3.4.0alpha1 of Xdebug which was released on May 31, 2024 (https://xdebug.org/updates).

At the time of writing, there is no stable version of Xdebug that contains this patch, since the latest version available is 3.4.0beta1 was released on October 4, 2024.

With Xdebug >= 3.4.0alpha1, we go from >=15s to around 200ms to load a basic page with the Symfony toolbar active, which is still much more comfortable and efficient for development.

Additional links:

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

79185628

Date: 2024-11-13 15:44:18
Score: 2.5
Natty:
Report link

from docx import Document

doc = Document()

table = doc.add_table(rows=1, cols=len(data[0]))

table.style = 'Table Grid' # This style adds borders to the table

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

79185623

Date: 2024-11-13 15:42:17
Score: 1
Natty:
Report link

In my case I could create an abstract parent and 2 new classes inheriting it and a new serialized value in the one I want to show in Inspector:

abstract class A{
   protected float myFloat;
}

class B : A{
 private new float myFloat = -1f;
}

class C : A{
   [SerializeField]
   private new float myFloat;
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Guilherme Muniz

79185614

Date: 2024-11-13 15:41:16
Score: 2.5
Natty:
Report link

It will be evaluated at compile-time, regardless of whether you declare it inside or outside the function. So there shouldn't be any performance difference.

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

79185612

Date: 2024-11-13 15:40:16
Score: 2.5
Natty:
Report link

You should do the following, this helped me a lot

git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"

I took it from a similar question Git fetch/pull/clone hangs on receiving objects

Reasons:
  • Blacklisted phrase (1): helped me a lot
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: Artem Luzhanovskyi

79185598

Date: 2024-11-13 15:35:15
Score: 1
Natty:
Report link

To do this on mobile / tablet + keyboard, it appears you can hold control + shift to select some lines, then click the plus button.

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

79185596

Date: 2024-11-13 15:35:13
Score: 10.5 🚩
Natty: 4
Report link

were you ever able to get this resolved? I am having the same issue

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • RegEx Blacklisted phrase (3): were you ever
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jeremy Bauman

79185592

Date: 2024-11-13 15:35:12
Score: 4
Natty:
Report link

The answer should be down voted:

The claim in the accepted answer "In the browser, WASM is not allowed to make network connections" IS WRONG ...

look here tinygo ref and here go-compat-matrix

webassembly in a browser is allowed.

Reasons:
  • RegEx Blacklisted phrase (2): down vote
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28281095

79185578

Date: 2024-11-13 15:32:11
Score: 1.5
Natty:
Report link

As per the poetry docs, my slow network connection meant that I needed

poetry config solver.lazy-wheel false
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Captain_Obvious

79185575

Date: 2024-11-13 15:32:11
Score: 1.5
Natty:
Report link

for old versions of Kibana 6.X works this variable

ELASTICSEARCH_URL=http://es:9200
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stas Panyukov

79185574

Date: 2024-11-13 15:31:11
Score: 0.5
Natty:
Report link

It might the default padding of ListView. You could try

ListView.builder(
  padding: EdgeInsets.zero,
  itemBuilder: (BuildContext context, int index) {
    return Text("answers[$index]");
  }),
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PurplePolyhedron

79185573

Date: 2024-11-13 15:31:11
Score: 2.5
Natty:
Report link

To give a precise answer, you'd need to provide the relevant source code (which I would have told you in a comment, if Stackoverflow would allow me to write a comment with my current level of reputation...).

From what I can see from the stacktrace, you have a class Controller that has a reference to a Service which has a reference to Repository, which seams to be dealing with Persons and is complaining that br.com.example.spring_boot_and_kotlin.model.Person is not a managed type.

I guess it is missing an @Entity annotation or something like that, but as said, a precise answer would require the relevant source code.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tonypsilon

79185569

Date: 2024-11-13 15:30:11
Score: 1
Natty:
Report link

{1..10} is a bash feature, it is not defined in POSIX sh.

It seems that subprocess.check_output("./test.sh", shell=True) invokes sh in your second example (Linux) and bash (or another shell which supports this feature) in the first example (macOS).

See:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: mkrieger1

79185563

Date: 2024-11-13 15:29:08
Score: 10 🚩
Natty: 6
Report link

I’m currently working on a similar scenario. Were you able to find a solution? If so, could you share the approach you used? It would be really helpful.

Reasons:
  • RegEx Blacklisted phrase (1): Were you able to find a solution
  • RegEx Blacklisted phrase (2.5): could you share
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Data_Enthusiast

79185553

Date: 2024-11-13 15:27:07
Score: 1
Natty:
Report link

Future pose prediction is done on a best-effort basis. 30 milliseconds may be too long of a future timeframe for the system to calculate an accurate prediction.

You could try with smaller time increments. The results will always vary from platform to platform. It is also possible that your particular system makes no future pose prediction at all.

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

79185549

Date: 2024-11-13 15:26:06
Score: 2
Natty:
Report link

in bash type command: git config --global sequence.editor "code --wait --reuse-window"

then CTRL + SHIFT + P and type "PATH" and pick: "Shell Command: Install 'code' command in PATH"

Here you go

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

79185547

Date: 2024-11-13 15:26:06
Score: 4.5
Natty:
Report link

The answer is that window?.['%hammerhead%'] works. But i need to wait until onMounted in nuxt, because before on mounted the value ist not set.

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: awacode

79185544

Date: 2024-11-13 15:25:06
Score: 0.5
Natty:
Report link

The correct way to resolve plugins and dependencies explictly mentioned in your project is:

mvn dependency:go-offline

Documentation: https://maven.apache.org/plugins/maven-dependency-plugin/usage.html#dependency-go-offline

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

79185538

Date: 2024-11-13 15:23:05
Score: 2
Natty:
Report link

I needed to change an item from Server Name list and I found that I could do that in this file %APPDATA%\Microsoft\SQL Server Management Studio\20.0\UserSettings.xml with SSMS 20.2

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: REEL

79185525

Date: 2024-11-13 15:20:05
Score: 3.5
Natty:
Report link

don't user anchor tag for windows.scrollTo() event

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

79185520

Date: 2024-11-13 15:19:04
Score: 5
Natty: 5
Report link

Does report builder have an interface that we can include in a net project / blazer so that users can create their own report?

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

79185512

Date: 2024-11-13 15:16:03
Score: 1
Natty:
Report link

You could have used your original query listed above by simply adding the [ character before BETWEEN. See updated query below:

<![CDATA[SELECT * FROM table WHERE $X{[BETWEEN, date, BeginDate, EndDate} AND total > 0;]]>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ryan

79185510

Date: 2024-11-13 15:16:03
Score: 1.5
Natty:
Report link

try it with supportAllDrives:

file = service.files().copy(
            fileId=fileID,
            body=file,
            fields='id',
            supportsAllDrives=True).execute()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas Boje

79185506

Date: 2024-11-13 15:14:03
Score: 0.5
Natty:
Report link

This is how i did:

  1. First I stopped docker service and socket.

sudo systemctl stop docker.service

sudo systemctl stop docker.socket

2.Then I went to systemd file of docker and added the location of new directory:

sudo vim /lib/systemd/system/docker.service

We need the edit the line begins like that: ExecStart=/usr/bin/dockerd -H fd://

Edit the line by adding --data-root like :

ExecStart=/usr/bin/dockerd --data-root /mnt/new/docker -H fd:// --containerd=/run/containerd/containerd.sock

(/mnt/new/docker is the new directory I want to use in my case.)

  1. Thenrsync command to sync old with new docker root path :

rsync -avxP /var/lib/docker/ /mnt/new/docker

  1. Restart the deamon:

    sudo systemctl daemon-reload

Now you can restart your docker:

sudo systemctl start docker    

Check if it works as expected:

docker info | grep "Docker Root Dir"  
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: berkayln

79185502

Date: 2024-11-13 15:13:03
Score: 3.5
Natty:
Report link

By the way, in Canada, its provinces and territories. not states

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

79185498

Date: 2024-11-13 15:12:02
Score: 3
Natty:
Report link

= Table.AddColumn(#"Previous step", "Custom", each Text.Combine({Text.Start([Column1], 1), Text.Middle(Text.Lower([Column1]), 1)}), type text)

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

79185496

Date: 2024-11-13 15:11:02
Score: 1.5
Natty:
Report link

I had the same problem with VS Code 1.95.2 for my C Project. I had to rollback version for the 3years ago's version (2 versions back) to get back the small icon.

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

79185483

Date: 2024-11-13 15:08:00
Score: 5.5
Natty: 5
Report link

which flutter version that has the fix for this caching issue?

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): which
  • Low reputation (0.5):
Posted by: Warner

79185474

Date: 2024-11-13 15:04:59
Score: 3.5
Natty:
Report link

remove hidden and in CSS of the embed player add display : none, it will disapear from screen without disturbing property. I don't understand how so many idiots are here

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

79185452

Date: 2024-11-13 14:59:58
Score: 2
Natty:
Report link

In my case i forget @HiltViewModel to add on start of the ViewModel

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

79185451

Date: 2024-11-13 14:59:58
Score: 0.5
Natty:
Report link

To fix this issue, I have added below 2 lines in my local.settings.json file

"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"FUNCTIONS_V2_COMPATIBILITY_MODE": true,
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jaydeep Shil

79185448

Date: 2024-11-13 14:58:58
Score: 1.5
Natty:
Report link

Flutter: Fix Rive Animation Controller Type Casting Error

Problem

When working with Rive animations in Flutter, you might encounter an error when trying to cast inputs using:

trigger = stateMachineController!.inputs.first as SMITrigger;

This error occurs because the type casting is invalid and unsafe.

Solution

Here's a complete working example showing how to properly handle Rive animation inputs:

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:rive/rive.dart';

class BirdAnimation extends StatefulWidget {
  const BirdAnimation({Key? key}) : super(key: key);

  @override
  State<BirdAnimation> createState() => _BirdAnimationState();
}

class _BirdAnimationState extends State<BirdAnimation> {
  Artboard? _birdArtboard;
  SMITrigger? trigger;
  SMIBool? dance;
  StateMachineController? stateMachineController;

  @override
  void initState() {
    super.initState();
    _loadRiveFile();
  }

  Future<void> _loadRiveFile() async {
    try {
      final data = await rootBundle.load('assets/bird.riv');
      final file = RiveFile.import(data);
      final artboard = file.mainArtboard;
      
      // Initialize state machine controller
      stateMachineController = StateMachineController.fromArtboard(
        artboard, 
        "birb"  // Your state machine name
      );
      
      if (stateMachineController != null) {
        artboard.addController(stateMachineController!);
        
        // Properly find and initialize inputs
        trigger = stateMachineController!.findSMI('look up');
        dance = stateMachineController!.findSMI('dance');
      }

      setState(() => _birdArtboard = artboard);
    } catch (e) {
      print('Error loading Rive file: $e');
    }
  }

  void _lookup() {
    if (trigger != null) {
      trigger!.fire();
    }
  }

  void _toggleDance() {
    if (dance != null) {
      dance!.change(!dance!.value);
    }
  }

  @override
  void dispose() {
    stateMachineController?.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Center(
      child: SizedBox(
        height: 400,
        width: 400,
        child: _birdArtboard == null
            ? const CircularProgressIndicator()
            : GestureDetector(
                onTap: _lookup,
                onDoubleTap: _toggleDance,
                child: Rive(
                  artboard: _birdArtboard!,
                  fit: BoxFit.contain,
                ),
              ),
      ),
    );
  }
}

Key Points

  1. Proper Input Initialization
// Instead of unsafe casting:
// trigger = stateMachineController!.inputs.first as SMITrigger;

// Use findSMI to safely get inputs:
trigger = stateMachineController!.findSMI('look up');
dance = stateMachineController!.findSMI('dance');
  1. Error Handling
try {
  // Load and initialize Rive file
} catch (e) {
  print('Error loading Rive file: $e');
}
  1. Null Safety
void _lookup() {
  if (trigger != null) {
    trigger!.fire();
  }
}

Usage Guide

  1. Add Rive Dependency
dependencies:
  rive: ^0.12.4  # Use latest version
  1. Add Asset to pubspec.yaml
flutter:
  assets:
    - assets/bird.riv
  1. Create State Machine in Rive
  1. Implement Interactions
GestureDetector(
  onTap: _lookup,      // Single tap to look up
  onDoubleTap: _toggleDance,  // Double tap to toggle dance
  child: Rive(...),
)

Common Issues & Solutions

  1. Input Not Found
// Check if input exists
final input = stateMachineController!.findSMI('input_name');
if (input == null) {
  print('Input not found in state machine');
}
  1. Controller Disposal
@override
void dispose() {
  stateMachineController?.dispose();
  super.dispose();
}
  1. Loading States
child: _birdArtboard == null
    ? const CircularProgressIndicator()
    : Rive(artboard: _birdArtboard!),

Best Practices

  1. Type-Safe Input Management
class RiveInputs {
  final SMITrigger? lookUp;
  final SMIBool? dance;

  RiveInputs({this.lookUp, this.dance});

  static RiveInputs fromController(StateMachineController controller) {
    return RiveInputs(
      lookUp: controller.findSMI('look up'),
      dance: controller.findSMI('dance'),
    );
  }
}
  1. Resource Management
// Load file once and reuse
late final Future<RiveFile> _riveFile;

@override
void initState() {
  super.initState();
  _riveFile = rootBundle.load('assets/bird.riv')
      .then((data) => RiveFile.import(data));
}
  1. Performance Optimization
// Use const constructor
const BirdAnimation({Key? key}) : super(key: key);

// Cache artboard
final artboard = file.mainArtboard.instance();

Debugging Tips

  1. Check State Machine Name
print('Available state machines: ${file.mainArtboard.stateMachineNames}');
  1. Verify Inputs
stateMachineController?.inputs.forEach((input) {
  print('Input: ${input.name}, Type: ${input.runtimeType}');
});
  1. Monitor State Changes
dance?.addListener(() {
  print('Dance state: ${dance!.value}');
});

Remember to:

Would you like me to explain any specific part in more detail?

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

79185437

Date: 2024-11-13 14:56:57
Score: 1
Natty:
Report link

Apache NiFi allows you to configure environment variables that can be accessed by processors. You can set the server's timezone as an environment variable, for example: bash Copy code export TZ="Asia/Colombo" Then, in your NiFi processor, you can access this environment variable using NiFi Expression Language: text Copy code ${env:TZ} Use NiFi System Properties:

You can pass the timezone as a system property to NiFi by modifying the nifi.properties file or setting a JVM property. Add the following line to nifi.properties or configure it as a JVM parameter:

-Duser.timezone=Asia/Colombo

Then, in a processor, use:

${sys:timezone}

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

79185436

Date: 2024-11-13 14:56:55
Score: 9.5 🚩
Natty: 5
Report link

I'm getting same error as above and keeping it with session storage didn't solve it. Can someone please help. I'm using angular 15 and angular-auth-oidc-client library 15 version.

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1): I'm getting same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm getting same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jatin Gandhi

79185433

Date: 2024-11-13 14:55:54
Score: 0.5
Natty:
Report link
<MenuItem
      value={placeholder}
      disabled
      sx={{
        fontSize: { xs: "10px", sm: "12px", md: "14px", lg: "16px" },
        color: "#ADADAD",
        height: 0,
        visibility: "hidden",
        p: 0,
        minHeight: 0,
      }}
    >
      {placeholder}
    </MenuItem>
    {options.map((option) => (
      <MenuItem
        key={option}
        value={option}
        sx={{
          minHeight: "1rem",
          fontSize: { xs: "10px", sm: "12px", md: "14px", lg: "16px" },
        }}
      >
        {option}
      </MenuItem>
    ))}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28281786

79185431

Date: 2024-11-13 14:55:54
Score: 1.5
Natty:
Report link

enter image description here

My project based on vite,use @vitejs/plugin-react-swc replace @vitejs/plugin-react works for me

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: microJ

79185420

Date: 2024-11-13 14:52:54
Score: 1.5
Natty:
Report link

I ran into the same problem, I want to style the buttons (background, icon etc.). I didn't find a way to do so.

But: with this rule I could disable the scroll buttons which in turn (re)enabled the traditional scrollbars which can be styled rather easily

QComboBox {
  combobox-popup: 0;
}

Found here https://forum.qt.io/topic/152637/qcombobox-unkown-top-and-botton-scrollers

FWIW apparently this depends on the style/theme of the operating system, and also on the window manager on Linux, it seems.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ronso0

79185419

Date: 2024-11-13 14:52:54
Score: 0.5
Natty:
Report link

Dear friend this is my error i tried all the ways you have said but still same error: amir@DESKTOP-97BV8AA:~/storefront$ pipenv install mysqlclient Creating a virtualenv for this project Pipfile: /home/amir/storefront/Pipfile Using /usr/bin/python33.10.12 to create virtualenv... ⠸ Creating virtual environment...created virtual environment CPython3.10.12.final.0-64 in 237ms creator CPython3Posix(dest=/home/amir/.local/share/virtualenvs/storefront-Srl2ZNHg, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/amir/.local/share/virtualenv) added seed packages: pip==24.3.1, setuptools==75.2.0, wheel==0.44.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment! Virtualenv location: /home/amir/.local/share/virtualenvs/storefront-Srl2ZNHg Installing mysqlclient... ✔ Installation Succeeded Installing dependencies from Pipfile.lock (e4eef2)... All dependencies are now up-to-date! Upgrading mysqlclient in dependencies. Building requirements... Resolving dependencies... ✘ Locking Failed! ⠋ Locking packages...False Traceback (most recent call last): File "/home/amir/.local/bin/pipenv", line 8, in sys.exit(cli()) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1157, in call return self.main(*args, **kwargs) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/cli/options.py", line 52, in main return super().main(*args, **kwargs, windows_expand_args=False) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 92, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/cli/command.py", line 207, in install do_install( File "/home/amir/.local/lib/python3.10/site-packages/pipenv/routines/install.py", line 310, in do_install new_packages, _ = handle_new_packages( File "/home/amir/.local/lib/python3.10/site-packages/pipenv/routines/install.py", line 114, in handle_new_packages do_update( File "/home/amir/.local/lib/python3.10/site-packages/pipenv/routines/update.py", line 75, in do_update upgrade( File "/home/amir/.local/lib/python3.10/site-packages/pipenv/routines/update.py", line 364, in upgrade upgrade_lock_data = venv_resolve_deps( File "/home/amir/.local/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 907, in venv_resolve_deps c = resolve(cmd, st, project=project) File "/home/amir/.local/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 771, in resolve raise RuntimeError("Failed to lock Pipfile.lock!") RuntimeError: Failed to lock Pipfile.lock!

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

79185417

Date: 2024-11-13 14:51:53
Score: 2
Natty:
Report link

Apologies, problem was as simple as a missing EOF character to the my_struct.cpp file ! At least the above should work for others interesting in trying out JNA!

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

79185415

Date: 2024-11-13 14:50:53
Score: 0.5
Natty:
Report link

Managed to configure SourceLink + Azure DevOps Symbols Server with the help of this video:

No need for additional project file configurations if .NET version is >= 8

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
    </PropertyGroup>

</Project>

Azure DevOps pipeline YAML file

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pool:
  vmImage: windows-latest

steps:
- task: DotNetCoreCLI@2
  inputs: 
    command: 'pack'
    packagesToPack: '**/*.csproj' 
    versioningScheme: 'byPrereleaseNumber'
    majorVersion: '1'
    minorVersion: '0'
    patchVersion: '0'

- task: DotNetCoreCLI@2
  inputs: 
    command: 'push'
    packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
    nuGetFeedType: 'internal'
    publishVstsFeed: 'c4a7af6d-9593-4a8f-ab27-07194500dea0'

- task: PublishSymbols@2
  inputs:
    SearchPattern: '**/bin/**/*.pdb'
    IndexSources: false
    SymbolServerType: 'TeamServices'

VS Debugging settings

Don't forget to grant the necessary access permissions to your project build service in your feed's settings. I've spent some time until I figured why the Push task was failing all the time.

Artifacts -> YourFeed -> Feed Settings (gear icon) -> Permissions -> Add users/groups. Start typing your project's name, and it will appear there as "YourProjectName Build Service (YourOrgName)". Grant it the Feed Publisher permissions.

Reasons:
  • Blacklisted phrase (1): this video
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: desmondische

79185389

Date: 2024-11-13 14:40:49
Score: 1
Natty:
Report link

in v4 you trigger opening it like:

Fancybox.show([{ src: "#modalForm" }]);

in old versions

$.fancybox.open({src: '#modalForm', type: 'inline'});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hebe

79185388

Date: 2024-11-13 14:39:49
Score: 1
Natty:
Report link

in v4 you trigger opening it like:

Fancybox.show([{ src: "#modalForm" }]);

in old versions

$.fancybox.open({src: '#modalForm', type: 'inline'});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hebe

79185387

Date: 2024-11-13 14:39:49
Score: 2
Natty:
Report link

Came across this issue too and somehow found this - https://en.wikipedia.org/wiki/AltGr_key.

It seems like this is a hack in Windows to support Alt Gr on keyboards without the button (like on netbooks). Windows maps AltGr (right Alt) to Ctrl+Alt, and then maps Ctrl+Alt+[some key] to other characters.

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

79185360

Date: 2024-11-13 14:33:48
Score: 1.5
Natty:
Report link

your problem is the ::continue:: is inside the loop try this.

for i = 1, #backupSource do if i == 2 then goto continue end end ::continue::

Try and let me know

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniel Rodrigues

79185358

Date: 2024-11-13 14:32:47
Score: 2
Natty:
Report link

I had this issue when trying to run configuration from IntelliJ IDEA - reloading the project with maven helped.

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

79185356

Date: 2024-11-13 14:32:47
Score: 4
Natty:
Report link

It was a silly spelling mistake.

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

79185346

Date: 2024-11-13 14:31:47
Score: 3
Natty:
Report link

Checkout this basic package from Go networking packages : https://pkg.go.dev/golang.org/x/net/websocket (though as it's said,this one is more actively maintained : https://pkg.go.dev/github.com/coder/websocket)

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

79185344

Date: 2024-11-13 14:30:47
Score: 2
Natty:
Report link

For anyone facing the same issue:

This error generally means that the service account linked to your Google Cloud Project doesn’t have the necessary permissions to access the DV360 platform.

To fix this, go to DV360 and add your service account as a user with the appropriate access level (e.g., Viewer or Editor).

Reasons:
  • Whitelisted phrase (-2): For anyone facing
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: Orabi

79185342

Date: 2024-11-13 14:30:47
Score: 4.5
Natty:
Report link

I'm working with slashed command, and I want to add autocomplete on arguments.

I created class named "AutoCompleteHandlerGeneral" derived from "AutocompleteHandler", and add an override on "GenerateSuggestionsAsync function".

I create a slashed command with argument like that "[Discord.Commands.Summary("nom_du_paramètre"), Autocomplete(typeof(AutoCompleteHandlerGeneral))]"

I add to the interaction handler this 2 functions :

    private async Task AutocompleteExecuted(SocketAutocompleteInteraction interaction)
    {
        var context = new SocketInteractionContext(_client, interaction);
        _interactionService.
        await _interactionService.ExecuteCommandAsync(context, services: _serviceProvider);
    }


    private async Task InteractionCreated(SocketInteraction interaction)
    {
        if (interaction.Type == InteractionType.ApplicationCommandAutocomplete)
        {
            var context = new SocketInteractionContext(_client, interaction);
            await _interactionService.ExecuteCommandAsync(context, services: _serviceProvider);
        }
    }

During execution, autocomplete window is opening in discord, but stay empty and display "Loading options failed". The 2 functions are called, but the execute commandasync seems to be call ... nothing ...

To help problem solving, I created a public simple bot on github to test it ... AutoCompleteBot ... But proposition window stay empty ....

Please help ! Thanks a lot

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: xNiux

79185335

Date: 2024-11-13 14:29:46
Score: 2.5
Natty:
Report link

Switching from musl to aarch64-unknown-linux-gnu worked.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Twonky

79185327

Date: 2024-11-13 14:27:45
Score: 2.5
Natty:
Report link

I wonder if there is any option to configure the access for each folder? At least to configure on the roles that is able to view each folder.

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

79185321

Date: 2024-11-13 14:26:45
Score: 1.5
Natty:
Report link

Tried with [https://stackoverflow.com/questions/70248087/why-am-i-getting-a-csrf-token-mismatch-with-laravel-and-sanctum][previous posted link]:

Changed variables in my local .env: SESSION_DOMAIN=localhost SANCTUM_STATEFUL_DOMAINS=localhost

Moved back routes from web.php to api.php. Activated EnsureFrontendRequestsAreStateful usage with $middleware->statefulApi(); in app.php:

return Application::configure(basePath: dirname(__DIR__))
    ->withRouting(
        web: __DIR__ . '/../routes/web.php',
        api: __DIR__ . '/../routes/api.php',
        commands: __DIR__ . '/../routes/console.php',
        health: '/up',
    )
    ->withMiddleware(function (Middleware $middleware) {
        $middleware->statefulApi();

When I tried to log in, 401 are returned again: enter image description here

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Renars Kilis

79185312

Date: 2024-11-13 14:25:45
Score: 0.5
Natty:
Report link

For "There is no deobfuscation file associated with this App Bundle. If you use obfuscated code (R8/proguard), uploading a deobfuscation file will make crashes and ANRs easier to analyse and debug. Using R8/proguard can help reduce app size."

On VS2022 Over your proyect goto properties


For "This App Bundle contains native code, and you've not uploaded debug symbols. We recommend that you upload a symbol file to make your crashes and ANRs easier to analyse and debug."

I'm still investigating

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

79185311

Date: 2024-11-13 14:25:45
Score: 0.5
Natty:
Report link

for me terminal icon disappeared only for 1 of my python project upon computer reboot, other project it was still there on bottom left section.

after a while I realised the 'terminal icon' is moved to right bottom on the very edge of pycharm window; which also can be dragged to left if needed but I like it on the right for now.

so, it could still be there in your case,but got re-arranged somehow.

Reasons:
  • Whitelisted phrase (-1): in your case
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tushar

79185309

Date: 2024-11-13 14:24:44
Score: 4
Natty: 5
Report link

you are a genious Janka! thanks you so much I actually forgot that

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

79185305

Date: 2024-11-13 14:24:44
Score: 4.5
Natty:
Report link

Restarting LxssManager in services.msc

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ludo brewbaker

79185298

Date: 2024-11-13 14:21:43
Score: 1
Natty:
Report link

After correcting the import at the begging of the script (by appending my PYTHONPATH), so my module is found by pytest, I faced the issue of: Some test functions worked whereas some other were raising the "ModuleNotFoundError".

The issue was in the @patch("path.to.import.mymodule"): this path was incomplete. It needs the same syntax as the imports in the beggining of the script.

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

79185297

Date: 2024-11-13 14:21:43
Score: 3
Natty:
Report link

In the Debug properties turn OFF the "Enable native code debugging" and the debugging will work in VS. At least it did for me.

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

79185287

Date: 2024-11-13 14:18:42
Score: 2
Natty:
Report link

Thanks to Ash Lander i was able to create image that have everything set-up for minikube

https://hub.docker.com/repository/docker/kemsekov/minikube-1.31/general

It have compatible versions of kube dependencies installed

You just need to create docker-compose file, launch it, attach to container and create cluster.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kemsikov

79185286

Date: 2024-11-13 14:17:41
Score: 5
Natty: 4
Report link

i have the same problem and this happened when i connected the project with firebase and i did this solution but it didnt work and still told me this (If you opt out of telemetry, an opt-out event will be sent, and then no further information will be sent. This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy). )

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Low reputation (1):
Posted by: Marah Shaqqoura

79185283

Date: 2024-11-13 14:16:39
Score: 7.5 🚩
Natty: 6
Report link

also getting these issues with excel docs that have macros, anyone know how resolve?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luke Varns

79185282

Date: 2024-11-13 14:16:39
Score: 1
Natty:
Report link

You need to downgrade to Python 3.11 as suggested in the error message for Kivy 2.3 as it conflicts with Python 3.12

conda install python=3.11

Then reinstall Kivy 2.3

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

79185280

Date: 2024-11-13 14:15:37
Score: 6 🚩
Natty: 5
Report link

I am not sure if this answer above is correct since:

https://pkg.go.dev/github.com/wasmcloud/wasmcloud/examples/golang/components/http-client-tinygo#section-readme

Can expert in tinygo/webassembly revisit the answer as provided by erik258 ?

https://github.com/tinygo-org/tinygo/issues/716

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

79185278

Date: 2024-11-13 14:15:36
Score: 1
Natty:
Report link

You can do this using the new css feature.

color-mix('in xyz', #3F92DF, #fff)

https://developer.chrome.com/docs/css-ui/css-color-mix?hl=tr

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

79185277

Date: 2024-11-13 14:15:36
Score: 1.5
Natty:
Report link

Sure. Let's continue the discussion on the Github issue

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

79185275

Date: 2024-11-13 14:13:36
Score: 2.5
Natty:
Report link

Instead of calling the function inside the onclick property just assign the name of the function to the onclick property onclick="submitFunction"✅ onclick="submitFunction()"❌

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

79185267

Date: 2024-11-13 14:13:36
Score: 1
Natty:
Report link

Just had to solve this myself for version 3.0.x so I thought I would just jot this down to save others some time finding it.

PlayKeys.devSettings += "play.server.http.port" -> "8080"

Source: https://www.playframework.com/documentation/3.0.x/ConfigFile#Using-with-the-run-command

Confirmed as working for me on Version 3.0.5 running Java 11.0.15

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

79185264

Date: 2024-11-13 14:12:33
Score: 8 🚩
Natty:
Report link

Did any of you fixed this? I spent my whole day but still can't find the solution I'm using prisma for db and ngrok to make clerk secret, No matter what I do the route.ts file is not found

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed this?
  • RegEx Blacklisted phrase (1.5): can't find the solution
  • RegEx Blacklisted phrase (2): can't find the solution
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did any of you fix
  • Low reputation (1):
Posted by: Mah Rukh

79185258

Date: 2024-11-13 14:11:33
Score: 1.5
Natty:
Report link

Thanks to @elMaczete (see answer above) following lines can be added to a Dockerfile (Ubuntu based)

# Modify the CPU_FLAGS matching your project (in this case a STM32L4xxx)
ARG CPU_FLAGS="-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16"
RUN nosys=$(arm-none-eabi-g++ ${CPU_FLAGS} -print-file-name=libnosys.a) && \
    arm-none-eabi-objcopy --wildcard --remove-section .gnu.warning.* $nosys
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @elMaczete
  • Low reputation (0.5):
Posted by: ge45mue

79185251

Date: 2024-11-13 14:10:32
Score: 1.5
Natty:
Report link

Here's how to implement page navigation with your Rive-powered bottom navigation bar.

1. First, Create Your Pages

Create separate page widgets for each tab:

// chat_page.dart
class ChatPage extends StatelessWidget {
  const ChatPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text('Chat Page'),
    );
  }
}

// Similar for other pages
class SearchPage extends StatelessWidget {...}
class TimerPage extends StatelessWidget {...}
class NotificationsPage extends StatelessWidget {...}
class ProfilePage extends StatelessWidget {...}

2. Modify TabItem Class

Add a title and page widget to your TabItem class:

class TabItem {
  TabItem({
    required this.stateMachine,
    required this.artboard,
    required this.title,
    required this.page,
    this.status,
  });

  UniqueKey? id = UniqueKey();
  String stateMachine;
  String artboard;
  String title;
  Widget page;
  late SMIBool? status;

  static List<TabItem> tabItemsList = [
    TabItem(
      stateMachine: "CHAT_Interactivity",
      artboard: "CHAT",
      title: "Chat",
      page: const ChatPage(),
    ),
    TabItem(
      stateMachine: "SEARCH_Interactivity",
      artboard: "SEARCH",
      title: "Search",
      page: const SearchPage(),
    ),
    TabItem(
      stateMachine: "TIMER_Interactivity", 
      artboard: "TIMER",
      title: "Timer",
      page: const TimerPage(),
    ),
    TabItem(
      stateMachine: "BELL_Interactivity", 
      artboard: "BELL",
      title: "Notifications",
      page: const NotificationsPage(),
    ),
    TabItem(
      stateMachine: "USER_Interactivity", 
      artboard: "USER",
      title: "Profile",
      page: const ProfilePage(),
    ),
  ];
}

3. Create a Main Navigation Screen

class MainScreen extends StatefulWidget {
  const MainScreen({Key? key}) : super(key: key);

  @override
  State<MainScreen> createState() => _MainScreenState();
}

class _MainScreenState extends State<MainScreen> {
  final PageController _pageController = PageController();
  int _selectedIndex = 0;

  @override
  void dispose() {
    _pageController.dispose();
    super.dispose();
  }

  void _onTabChange(int index) {
    setState(() {
      _selectedIndex = index;
    });
    _pageController.animateToPage(
      index,
      duration: const Duration(milliseconds: 300),
      curve: Curves.easeInOut,
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: [
          // Pages
          PageView(
            controller: _pageController,
            physics: const NeverScrollableScrollPhysics(), // Disable swipe
            children: TabItem.tabItemsList.map((tab) => tab.page).toList(),
          ),
          // Custom Tab Bar
          Positioned(
            bottom: 0,
            left: 0,
            right: 0,
            child: CustomTabBar(
              onTabChange: _onTabChange,
            ),
          ),
        ],
      ),
    );
  }
}

4. Update CustomTabBar to Show Titles

Modify your CustomTabBar widget to include text labels:

class _CustomTabBarState extends State<CustomTabBar> {
  // ... existing code ...

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Container(
        margin: const EdgeInsets.fromLTRB(24, 0, 24, 8),
        padding: const EdgeInsets.all(1),
        constraints: const BoxConstraints(maxWidth: 768),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(24),
          gradient: LinearGradient(colors: [
            Colors.white.withOpacity(0.5),
            Colors.white.withOpacity(0)
          ]),
        ),
        child: Container(
          clipBehavior: Clip.hardEdge,
          decoration: BoxDecoration(
            color: RiveAppTheme.background2.withOpacity(0.8),
            borderRadius: BorderRadius.circular(24),
            boxShadow: [
              BoxShadow(
                color: RiveAppTheme.background2.withOpacity(0.3),
                blurRadius: 20,
                offset: const Offset(0, 20),
              )
            ],
          ),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: List.generate(_icons.length, (index) {
              TabItem icon = _icons[index];

              return Expanded(
                key: icon.id,
                child: CupertinoButton(
                  padding: const EdgeInsets.all(12),
                  child: AnimatedOpacity(
                    opacity: _selectedTab == index ? 1 : 0.5,
                    duration: const Duration(milliseconds: 200),
                    child: Column(
                      mainAxisSize: MainAxisSize.min,
                      children: [
                        Stack(
                          clipBehavior: Clip.none,
                          alignment: Alignment.center,
                          children: [
                            Positioned(
                              top: -4,
                              child: AnimatedContainer(
                                duration: const Duration(milliseconds: 200),
                                height: 4,
                                width: _selectedTab == index ? 20 : 0,
                                decoration: BoxDecoration(
                                  color: RiveAppTheme.accentColor,
                                  borderRadius: BorderRadius.circular(2),
                                ),
                              ),
                            ),
                            SizedBox(
                              height: 36,
                              width: 36,
                              child: RiveAnimation.asset(
                                app_assets.iconsRiv,
                                stateMachines: [icon.stateMachine],
                                artboard: icon.artboard,
                                onInit: (artboard) {
                                  _onRiveIconInit(artboard, index);
                                },
                              ),
                            ),
                          ],
                        ),
                        const SizedBox(height: 4),
                        Text(
                          icon.title,
                          style: TextStyle(
                            fontSize: 12,
                            color: _selectedTab == index
                                ? RiveAppTheme.accentColor
                                : Colors.grey,
                          ),
                        ),
                      ],
                    ),
                  ),
                  onPressed: () {
                    onTabPress(index);
                  },
                ),
              );
            }),
          ),
        ),
      ),
    );
  }
}

5. Usage

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Rive Navigation Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MainScreen(),
    );
  }
}

Key Features

  1. Smooth Page Transitions

    • Uses PageView for smooth transitions between pages
    • Animated page changes
    • Disabled swipe navigation for better control
  2. State Management

    • Maintains selected tab state
    • Synchronizes page and tab selections
    • Proper disposal of controllers
  3. UI Customization

    • Animated tab indicators
    • Custom text styling for selected/unselected states
    • Smooth opacity transitions

Additional Tips

  1. Page State Persistence If you want to maintain page states when switching tabs:
PageView(
  controller: _pageController,
  physics: const NeverScrollableScrollPhysics(),
  children: TabItem.tabItemsList.map((tab) {
    return KeyedSubtree(
      key: ValueKey(tab.title),
      child: tab.page,
    );
  }).toList(),
)
  1. Adding Bottom Padding for iPhone
SafeArea(
  bottom: true,
  child: CustomTabBar(...),
)
  1. Handling Deep Links
void navigateToTab(String tabName) {
  final index = TabItem.tabItemsList.indexWhere((tab) => tab.title == tabName);
  if (index != -1) {
    _onTabChange(index);
  }
}

Common Issues and Solutions

  1. Page Not Updating

    • Ensure PageController is properly initialized and disposed
    • Verify onTabChange is being called
    • Check page widgets are properly rebuilt
  2. Animation Issues

    • Make sure Rive assets are properly loaded
    • Verify state machine names match exactly
    • Check animation controllers are properly initialized
  3. Memory Leaks

    • Dispose of controllers in dispose method
    • Clean up any subscriptions or listeners
    • Use StatefulWidgets appropriately

Remember to:

Would you like me to explain any part in more detail or show how to implement specific features?

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

79185229

Date: 2024-11-13 14:02:31
Score: 3
Natty:
Report link

wait from 2 to 8 hours to active your records

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

79185219

Date: 2024-11-13 14:00:30
Score: 1
Natty:
Report link

Had a similar problem, but it must be said that I was working with an external folder where I kept the file I was trying to get the icon to work on and kept the node_modules/react-native-vector-icons for it.

In my case the solution was adding some assets/fonts folders to myProject/android/app/src/main and put the MaterialCommunityIcons.ttf file from the myExternalFolder/node_modules/react-native-vector-icons folder.

Before that I had installed react-native-vector-icons on my actual project (which used the file from the external folder) but when I removed it (the react-native-vector-icons module) again the icons still worked.

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

79185211

Date: 2024-11-13 13:59:30
Score: 3
Natty:
Report link

use template literal Instead of using "Bearer ${token}", use ` (backtick) symbol

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

79185190

Date: 2024-11-13 13:51:28
Score: 1
Natty:
Report link

This worked for what I wanted:

git log --no-walk

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Trevor de Koekkoek

79185178

Date: 2024-11-13 13:47:27
Score: 2
Natty:
Report link
SELECT CATALOG_LEVEL FROM SYSIBM.SYSDUMMY1;

from https://thehelpfuldba.com/identify-the-current-version-level-of-db2-z-os-via-an-sql-statement/

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

79185167

Date: 2024-11-13 13:46:27
Score: 2
Natty:
Report link

Using setStyle you have to set a layout like GridPane as the Content of the ScrollPane, set its' size and do something like

yourGridPane.setPrefSize(100, 100);

yourGridPane.setStyle("-fx-background-image: url('DungeonRoomImage.png')");

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

79185154

Date: 2024-11-13 13:44:24
Score: 12.5 🚩
Natty:
Report link

Have same issue after new xCode update. Did you fix it already?

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

79185141

Date: 2024-11-13 13:41:23
Score: 3.5
Natty:
Report link

In Symfony 7.1 needed attribute above handler

#[AsMessageHandler]

https://symfony.com/doc/current/messenger.html#creating-a-message-handler

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Darius.V

79185139

Date: 2024-11-13 13:41:23
Score: 2
Natty:
Report link

to follow up on what bogey jammer wrote, i got sdk 35 working by setting gradle.properties to

android.aapt2FromMavenOverride=/data/data/com.termux/files/home/bin/aapt2

after following these steps (with an extra copy of both files to the dir above) https://www.reddit.com/r/termux/comments/1g83cyg/how_i_ran_unmodified_apktool_in_arm64_termux/

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

79185134

Date: 2024-11-13 13:39:22
Score: 1.5
Natty:
Report link

I am going to debug further to understand what's going on, but by simply changing the name of the parent python module from app to fastapp, the import worked in the Cloud Run environment.

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

79185123

Date: 2024-11-13 13:37:22
Score: 5.5
Natty: 4
Report link

Is there any way to do this without converting the .json? I'm templating .json files that need to stay unchanged.

Would post this as a comment, but stackoverflow wont let me log in for some reason

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: user28280413

79185117

Date: 2024-11-13 13:36:21
Score: 0.5
Natty:
Report link

In Excel you can use Data | Get Data | From Other Sources | From ODBC to retrieve from any database (including Snowflake) using ODBC

enter image description here

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Dave Welden

79185116

Date: 2024-11-13 13:36:21
Score: 2
Natty:
Report link

I did this and voila it got accepted. I dont know what is wrong with it. I wrote the entire code correct, still it didnt accept :|

UPDATE "meteorites_temp" SET
    "mass" = NULLIF("mass", ''),
    "year" = NULLIF("year", ''),
    "lat" = NULLIF("lat", ''),
    "long" = NULLIF("long", '');
Reasons:
  • Blacklisted phrase (1): know what is wrong
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Prasad Jadhav

79185110

Date: 2024-11-13 13:35:21
Score: 2
Natty:
Report link

My name is Ritu. I do tiktok I have a Facebook page. By profession I am a student studying in class five. I love to sing. I sing Amin sometimes. And I love one he is sujan sir of my school. I always dream that I am happily married to him. I am thinking about the exam ahead of me, this time I will take the exam first. Everyone will love me.

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

79185108

Date: 2024-11-13 13:34:20
Score: 0.5
Natty:
Report link

I was facing the same issue, but I needed to display it directly in the user's browser rather than prompting for a download.

so here is how I handled it:

$body = Http::withHeaders(['Content-Type' => 'application/pdf'])
  ->get('https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf')
  ->body();

$headers = [
        "Content-type" => "application/pdf",
        "Content-Disposition" => "inline; filename=the-file.pdf",
        "Access-Control-Expose-Headers" => "Content-Disposition",
        "Pragma" => "no-cache",
        "Cache-Control" => "must-revalidate, post-check=0, pre-check=0",
        "Expires" => "0"
    ];

return response()->stream(function() use($body){
        $file = fopen('php://output', 'w');
        fwrite($file, $body);
        fclose($file);
    }, 200, $headers);
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mazen Bassiouni

79185096

Date: 2024-11-13 13:32:20
Score: 2.5
Natty:
Report link

Moving routes from api.php to web.php was special for using csrf checking.

At first I make sanctum csrf cookie GET call and take returned cookie value in header (this is done by axios) and send to backend.

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