79552111

Date: 2025-04-03 05:59:12
Score: 2
Natty:
Report link

The issue is generally with the extensions, because I have myself tried all of the possible solutions, but didn't work in my case, and restarting the extensions resolved the issue.

VS code really needs to solve this issue, this is really a big one.

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

79552101

Date: 2025-04-03 05:52:10
Score: 4
Natty: 4.5
Report link

for resolve i used this package

https://pub.dev/packages/lehttp_overrides

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

79552100

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

A little more compact formulation would be

import numpy as np
t = np.full(5,2)**np.arange(5)

which gives

t=array([ 1,  2,  4,  8, 16])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manfred Weis

79552098

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

My experience is that you cannot use openpyxl to open an excel file that has been created/modified by spire.xls. I suspect that it is something (purposeful "sabotage") done to the file by spire.xls that breaks the ability of openpyxl to read the file so that you cannot use openpyxl to remove the "Evaluation Warning" that is written by the free version.

I also the warning "TypeError: ColumnDimension._init_() got an unexpected keyword argument 'widthPt'" when I try to access an excel file that has been modified by spire.xls

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

79552097

Date: 2025-04-03 05:50:08
Score: 0.5
Natty:
Report link

1. Decode the JWT Token and Extract the User Role

Use the jwt_decoder package to extract the user's role from the token.

import 'package:jwt_decoder/jwt_decoder.dart';

String getUserRole(String token) {
  Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
  return decodedToken['role'] ?? 'guest'; // Ensure a default role
}

2. Create a Role-Based Route Guard

Define a middleware function that restricts access based on the user's role.

import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:stockhive_mobile/screen/auth/login_page.dart';
import 'package:stockhive_mobile/screen/admin/departements/Departmentad.dart';
import 'package:stockhive_mobile/screen/collaborator/collaborator_dashboard.dart';
import 'package:stockhive_mobile/screen/user/user_dashboard.dart';
import 'package:jwt_decoder/jwt_decoder.dart';

class RoleBasedRoute extends StatelessWidget {
  final Widget adminScreen;
  final Widget collaboratorScreen;
  final Widget userScreen;
  final Widget defaultScreen;

  RoleBasedRoute({
    required this.adminScreen,
    required this.collaboratorScreen,
    required this.userScreen,
    required this.defaultScreen,
  });

  Future<String> _getUserRole() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String? token = prefs.getString('jwtToken');

    if (token == null || JwtDecoder.isExpired(token)) {
      return 'guest';
    }

    Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
    return decodedToken['role'] ?? 'guest';
  }

  @override
  Widget build(BuildContext context) {
    return FutureBuilder<String>(
      future: _getUserRole(),
      builder: (context, snapshot) {
        if (!snapshot.hasData) {
          return Scaffold(body: Center(child: CircularProgressIndicator()));
        }

        String role = snapshot.data!;
        if (role == 'admin') {
          return adminScreen;
        } else if (role == 'collaborator') {
          return collaboratorScreen;
        } else if (role == 'user') {
          return userScreen;
        } else {
          return defaultScreen;
        }
      },
    );
  }
}

3. Modify generateRoute in AppRouter

Now, update the router to check for roles before navigating.

static Route<dynamic> generateRoute(RouteSettings settings) {
  switch (settings.name) {
    case '/admin-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: DepartmentManagementPage(),
          collaboratorScreen: LoginPage(),
          userScreen: LoginPage(),
          defaultScreen: LoginPage(),
        ),
      );

    case '/collaborator-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: LoginPage(),
          collaboratorScreen: CollaboratorDashboard(),
          userScreen: LoginPage(),
          defaultScreen: LoginPage(),
        ),
      );

    case '/user-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: LoginPage(),
          collaboratorScreen: LoginPage(),
          userScreen: UserDashboard(),
          defaultScreen: LoginPage(),
        ),
      );

    default:
      return _errorRoute();
  }
}

4. Save JWT Token After Login

Modify your authentication flow to store the token in SharedPreferences.

import 'package:shared_preferences/shared_preferences.dart';

Future<void> saveToken(String token) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  await prefs.setString('jwtToken', token);
}

5. Auto-Redirect Users Based on Role in SplashScreen

Modify SplashScreen to check the role and redirect accordingly.

import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:jwt_decoder/jwt_decoder.dart';

class SplashScreen extends StatefulWidget {
  @override
  _SplashScreenState createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  void initState() {
    super.initState();
    _navigateToDashboard();
  }

  Future<void> _navigateToDashboard() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String? token = prefs.getString('jwtToken');

    if (token == null || JwtDecoder.isExpired(token)) {
      Navigator.pushReplacementNamed(context, '/login');
      return;
    }

    Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
    String role = decodedToken['role'] ?? 'guest';

    if (role == 'admin') {
      Navigator.pushReplacementNamed(context, '/admin-dashboard');
    } else if (role == 'collaborator') {
      Navigator.pushReplacementNamed(context, '/collaborator-dashboard');
    } else if (role == 'user') {
      Navigator.pushReplacementNamed(context, '/user-dashboard');
    } else {
      Navigator.pushReplacementNamed(context, '/login');
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(child: CircularProgressIndicator()),
    );
  }
}

Conclusion

With this setup:

This method ensures secure role-based authentication in Flutter using JWT tokens.

Reasons:
  • Blacklisted phrase (1): ToDas
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kartik Patadiya

79552095

Date: 2025-04-03 05:50:08
Score: 1.5
Natty:
Report link

Try by removing the node_module folder
then you need to run **npm run install
**
this will add the required package into you new project ie project2

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

79552093

Date: 2025-04-03 05:47:08
Score: 2
Natty:
Report link

You are missing the quote
Try like this

$word = $_GET['word'];

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

79552080

Date: 2025-04-03 05:38:06
Score: 1
Natty:
Report link

As the solution provided here https://community.sonarsource.com/t/sonarqube-publish-quality-gate-result-error-400-api-get-api-ce-task-failed-status-code-was-400/47735/4 is too old and didn't work for me, I have finally succeeded on SonarQube Publish Quality Gate with the below fix:

  1. Generate a new Token from SonarQube on My Account > Security > Generate Tokens > Generate a Token for the Project.

  2. Copy and Paste the Token in your Azure DevOps. Go to Project settings > Service connections > Add the token we have generated.

    Note: for this activity, we need Admin rights for the Project.

  3. Re-run the pipeline.

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

79552078

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

This is automation to find and delete snapshots associated with ami

https://medium.com/me/stats/post/cc492f54efdb

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gandhar khaladkar

79552072

Date: 2025-04-03 05:36:05
Score: 4
Natty: 4.5
Report link

import google play asset delivery to resolve the problem.

Link: https://developer.android.com/guide/playcore/asset-delivery/integrate-unity

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

79552069

Date: 2025-04-03 05:32:03
Score: 0.5
Natty:
Report link

When working with Voyager and Tabs

You can navigate from tab to tab like this: (Bottom Tab bar visible)

val navigator = LocalNavigator.currentOrThrow
navigator.push(NextTabScreen)
You can navigate to the regular screen from the tab ( Bottom Tab bar is not visible) 

val navigator = LocalNavigator.currentOrThrow
navigator.parent.push(NextRegularScreen("some message"))

This navigates to another regular screen that is implemented from the Screen.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Shaxriyor Xusinov

79552066

Date: 2025-04-03 05:31:03
Score: 4.5
Natty:
Report link

Do not create real business users in the system tenant, create a new common tenant for use.

Using oblogproxy's cdc mode, will the error still be reported when changing the tenant?

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

79552059

Date: 2025-04-03 05:25:01
Score: 4.5
Natty:
Report link

I am having the same issue but still not resolved.

What I have tried:

  1. removing .next folder.

  2. deleting the folder and cloning again.

  3. cleared cookies and local data from browser

what I got:

  1. In terminal it gives me complied /src/middleware but in any browser it gives me This page isn't working
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (1):
Posted by: sanjeev gwachha

79552046

Date: 2025-04-03 05:20:00
Score: 1
Natty:
Report link

from PIL import Image

# Load the two images

image_path1 = "/mnt/data/file-4eU7vheg59wcVoAv3NUi9h"

image_path2 = "/mnt/data/file-CjJQqi6bFEV9MkLYFScfF3"

image1 = Image.open(image_path1)

image2 = Image.open(image_path2)

# Determine the new image size

new_width = max(image1.width, image2.width)

new_height = image1.height + image2.height

# Create a blank image with a white background

merged_image = Image.new("RGB", (new_width, new_height))

# Paste the images on top of each other

merged_image.paste(image1, (0, 0))

merged_image.paste(image2, (0, image1.height))

# Save the merged image

merged_image_path = "/mnt/data/merged_image.jpg"

merged_image.save(merged_image_path)

merged_image_path

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

79552044

Date: 2025-04-03 05:15:59
Score: 1
Natty:
Report link

I managed to make it run 25% faster with a few small tweaks. I haven't checked if it still works, you probably have unit tests, right?

public class FixDictionaryBase2
{
    private readonly Dictionary<int, string> _dict;

    protected FixDictionaryBase2()
    {
        _dict = [];
    }

    protected void Parse(ReadOnlySpan<char> inputSpan, out List<Dictionary<int, string>> groups)
    {
        // Algorithm for processing FIX message string:
        // 1. Iterate through the input string and extract key-value pairs based on the splitter character.
        // 2. If the key is RptSeq (83), initialize a new group and add it to the groups list.
        // 3. Assign key-value pairs to the appropriate dictionary:
        //    - If the key is 10 (Checksum), store it in the main _dict.
        //    - If currently inside a group, store it in the dictionary of the current group.
        //    - Otherwise, store it in the main _dict.
        // 4. Continue processing until no more splitter characters are found in the input string.

        groups = [];

        Dictionary<int, string> currentGroup = new();

        // Special characters used to separate data
        const char splitter = '\x01';
        const char equalChar = '=';
        const int rptSeq = 83;

        // Find the first occurrence of the splitter character
        int splitterIndex = inputSpan.IndexOf(splitter);

        while (splitterIndex != -1)
        {
            // Extract the part before the splitter to get the key-value pair
            var leftPart = inputSpan[..splitterIndex];

            // Find the position of '=' to separate key and value
            var equalIndex = leftPart.IndexOf(equalChar);

            // Extract key from the part before '='
            var key = int.Parse(leftPart[..equalIndex]);

            // Extract value from the part after '='
            var value = leftPart.Slice(equalIndex + 1).ToString();

            // If the key is RptSeq (83), start a new group and add it to the groups list

            // Determine the appropriate dictionary to store data
            // - If the key is 10 (Checksum), always store it in the main _dict
            // - If a group has been identified (hasGroup == true), store it in the current group's dictionary
            // - Otherwise, store it in the main _dict
            if (key == rptSeq)
            {
                groups.Add(new());
                if (key == 10)
                {
                    _dict[key] = value;
                }
                else
                {
                    currentGroup[key] = value;
                }
            }
            else
            {
                _dict[key] = value;
            }

            // Remove the processed part and continue searching for the next splitter
            inputSpan = inputSpan.Slice(splitterIndex + 1);
            splitterIndex = inputSpan.IndexOf(splitter);
        }
    }
}

public sealed class FixDictionary2 : FixDictionaryBase2
{
    private readonly string _fixString;

    public FixDictionary2(string fixString) : base()
    {
        _fixString = fixString;
        Parse(fixString, out var groups);
        Groups = groups;
    }

    public IReadOnlyList<Dictionary<int, string>> Groups { get; }

    public string GetFixString() => _fixString;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: HenningNT

79552040

Date: 2025-04-03 05:11:58
Score: 1.5
Natty:
Report link

This is an issue reported in the react-native Github Repo: https://github.com/facebook/react-native/issues/50411

Right now, the solution is to downgrade XCode from 16.3 to 16.2

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Robb Cornwall

79552038

Date: 2025-04-03 05:10:58
Score: 2
Natty:
Report link

Let's break down the second line of code in your Python program:

Given Code:

words = ['Emotan', 'Amina', 'Ibeno', 'Santwala']
new_list = [(word[0], word[-1]) for word in words if len(word) > 5]
print(new_list)

Explanation of Line 2:

new_list = [(word[0], word[-1]) for word in words if len(word) > 5]

Step-by-Step Execution:

  1. 'Emotan' → Length = 6 (greater than 5) → Include → ('E', 'n')

  2. 'Amina' → Length = 5 (not greater than 5) → Excluded

  3. 'Ibeno' → Length = 5 (not greater than 5) → Excluded

  4. 'Santwala' → Length = 8 (greater than 5) → Include → ('S', 'a')

Final Output:

[('E', 'n'), ('S', 'a')]

Would you like me to modify the code or add more explanations?

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

79552030

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

This is one approach of the issue.
Adjust the formula to your actual ranges

The formula in C4 cell

=FILTER(G3:G14,BYROW((H3:K14="Yes")*(H2:K2=D2),LAMBDA(x,SUM(x))))

enter image description here

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

79552014

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

I haven't seen a programming language with native support for this in its standard library, but Unicode does publish a file containing ligature decompositions (including Œ and Æ) at https://www.unicode.org/Public/UCA/latest/decomps.txt

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Ryan Hilbert

79551994

Date: 2025-04-03 04:30:48
Score: 4.5
Natty:
Report link

Am also facing the similar issue, when I debug the individual Microservice its working fine. But in API gateway in Docker its showing the error. I tried with IIS and its working fine.

No idea why its showing "Connection refuse (microservice:80)".

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): also facing the similar issue
  • Low reputation (1):
Posted by: Mustureswara M M Eshwar

79551990

Date: 2025-04-03 04:25:46
Score: 6.5 🚩
Natty: 4.5
Report link

https://script.google.com/a/heromotocorp.com/macros/s/AKfycbz0VKwJ5JLhT078mebIZzOajId-Q2VWKRD3aQNHzBOIPjvsL_4/exec

pls provide upper link script for my coding

Reasons:
  • RegEx Blacklisted phrase (2.5): pls provide
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vagh Harsurbhai

79551982

Date: 2025-04-03 04:19:45
Score: 0.5
Natty:
Report link
#in Makefile.am
BUILT_SOURCES = data.h # or += if is not the first time
CLEANFILES = data.h    # or += if is not the first time
data.h: update_data.pl # if update_data.pl will be modified, the rule will trigger
    perl update_data.pl
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam

79551976

Date: 2025-04-03 04:12:43
Score: 2
Natty:
Report link

Several years later...

... I identified, eventually, that Epi::Ns doesn't obey the inner-product and intercept constraints simultaneously. It also can't be used in predict() I've provided a corrected algorithm (following Carstensen's paper) as a small R package here: stephematician / effectspline - GitLab

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

79551975

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

https://ms-info-app-e4tt.vercel.app/reactNative/webrtc This link is very useful and easy to implement for my peer-to-peer connection💯

Reasons:
  • Blacklisted phrase (1): This link
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mukesh Murugaiyan

79551974

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

2025.04.02, M3 MAX

  1. Install brew first.

  2. brew install cocoapods

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

79551973

Date: 2025-04-03 04:10:42
Score: 6
Natty: 7
Report link

thank you for this script. Can you please also add a threshold with some value?

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: не важно

79551961

Date: 2025-04-03 03:58:39
Score: 1.5
Natty:
Report link
@Mock
Dog dog; // Dog is a record

doReturn(Optional.empty())
    .when(dog).tail()
    .when(dog).paw()
    .when(dog).nose()
    .when(dog).eye();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Huynh.tdt

79551955

Date: 2025-04-03 03:51:38
Score: 3.5
Natty:
Report link

Any update on a solution? I am expereinceing the exact same issue when I started using mysql workbench

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

79551942

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

Yes, you can connect your Power Apps app with data source other than SharePoint and office365 outlook connection. If you specifically want to know how your power app can connect with SQL Server then there are documents on MS Learn explaining steps to connect SQL Server from PowerApps.

If your data source is other than SQL Server then still it can be done by custom connectors.

Reasons:
  • No code block (0.5):
Posted by: Almas Mahfooz

79551934

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

Add the following configuration to settings.json:

"explorer.fileNesting.patterns": {
        "*.dart": "${capture}.g.dart, ${capture}.freezed.dart"
    },
"explorer.fileNesting.enabled": true,
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhamad Raffi Irawan

79551929

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

IDLE doesn’t respond to \r the way a terminal should. You can run it at the command prompt with py yourscript.py or use an IDE that either has an integrated terminal (like VSCode) or one which has a shell that responds to \r and other ANSI terminal control codes (like Thonny). Otherwise your code is quite good.

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

79551923

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

The issue was caused by Firebase dose not use the same instance in both flutter and swift, and Firestore being accessed from Swift before Flutter had finished initializing it.

Since Firestore locks its settings at first access, calling Firestore.firestore() too early in Swift (before Flutter finishes initialization) caused a fatal crash.

To fix it, I made sure Flutter fully initialized Firebase and triggered a dummy Firestore call before any Swift code touched Firestore. In main.dart, I added:

await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
await FirebaseFirestore.instance.collection("initcheck").limit(1).get();

Since my Firestore rules required authentication, I also added:

match /initcheck/{docId} {
  allow read: if request.auth != null;
}

After that, saving data from Swift using the logged-in user worked perfectly.

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

79551922

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

Based on @andrei-stefan answer, you can try also:

environment.getPropertySources()
    .stream()
    .filter(MapPropertySource.class::isInstance)
    .map(MapPropertySource.class::cast)
    .map(MapPropertySource::getPropertyNames)
    .flatMap(Arrays::stream)
    //.anyMatch(propertyName -> propertyName.startsWith(key));
    .anyMatch(propertyName -> propertyName.equal(key));
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @andrei-stefan
  • Low reputation (0.5):
Posted by: kinlhp

79551914

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

I have already solved this issue. The KSP automatically deleting code is due to a bug in KSP's incremental compilation, not a problem with my configuration. Disabling KSP's incremental compilation will resolve the problem.

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

79551908

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

This is because some telegram channels restrict sharing/copying from the channel(there is a channel setting called Content Protection that restricts saving content).

Because of this, you cannot share or open files with another app directly from Telegram, but you can access that file using third-party apps(like file managers that can access root files) or by connecting your phone to your computer and accessing it from Telegram's root files.

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

79551906

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

I came across this question by chance. It's now annotated in the code like below

# Sub-Module Usage on Existing/Separate Cluster

So this submodule is used when there is a cluster not created by the root module but you still want to create and control node group by the terraform code. In most cases, you won’t need this.

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

79551905

Date: 2025-04-03 02:59:26
Score: 2.5
Natty:
Report link

I just updated my Xcode and now my react native app is also giving me this error. no solution yet.

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

79551903

Date: 2025-04-03 02:58:26
Score: 2.5
Natty:
Report link

<?php

$x = 10;

$y = 20;

echo “before swapping, number are: ”;

echo $x;

echo “        ”;

echo $y:

echo “\n”

/*swapping*/

$x = $x  + $y;

$y = $x  + $y;

$x = $x  + $y;

echo “<Br> After swapping, numbers are: ”;

echo $x;

echo “   ”

echo $y;

?>

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

79551899

Date: 2025-04-03 02:55:25
Score: 1
Natty:
Report link

i've run into the same issue on Ubuntu 20.04, the problem is python3.8 is too old for bootstrapping this project.

try to install python3.11 at least:

sudo apt install python3.11 python3.11-dev python3.11-venv

create a virtual environment:

python3 -m venv venv
source .venv/bin/activate

and try to run bootstrap script from there.

P.S. do not update system Python on Ubuntu (leave it 3.8), otherwise it might cause problems in OS housekeeping

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Andrey

79551898

Date: 2025-04-03 02:54:24
Score: 3
Natty:
Report link

Consider trying Total Control. It enables PC-based control of up to 100 Android devices simultaneously

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

79551892

Date: 2025-04-03 02:47:21
Score: 5.5
Natty: 4.5
Report link

import { MapRenderer } from "@web_map/map_view/map_renderer";

Sir, How to install this module?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: BN Quynh

79551887

Date: 2025-04-03 02:42:20
Score: 3.5
Natty:
Report link

You can check this github repository for mobile-mcp
https://github.com/mobile-next/mobile-mcp

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

79551874

Date: 2025-04-03 02:28:16
Score: 2
Natty:
Report link

I had to make a 4 into a 5 on the torch version to get it.

pip install --pre torch==2.8.0.dev20250325+cu128 torchvision==0.22.0.dev20250325+cu128 torchaudio==2.6.0.dev20250325+cu128 --index-url https://download.pytorch.org/whl/nightly/cu128

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

79551872

Date: 2025-04-03 02:27:15
Score: 2.5
Natty:
Report link

Your Cust_PO_Date doesn't convert into a date outside the Cust_Name='ABC' condition.

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

79551868

Date: 2025-04-03 02:20:13
Score: 9 🚩
Natty: 6
Report link

Have you solved your problem? How was it resolved? thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1.5): solved your problem?
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yao Wang

79551864

Date: 2025-04-03 02:17:13
Score: 2.5
Natty:
Report link

Stop server, and re do ng serve --open

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdullah Nurum

79551859

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

You can define a macro like this:

#define BREAKABLE_SCOPE(x) for(int x;x<1;++x)

Then use it:

BREAKABLE_SCOPE(_)
{
    ...
    if (condition)
        break;
    ...
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cairne Douglas

79551852

Date: 2025-04-03 02:07:10
Score: 3
Natty:
Report link

My hosting company verified that the cookie in question was being added by their load-balancing appliance. It has nothing to do with the IIS server.

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

79551845

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

It does indeed seem like adding the IAM roles directly to the federated id principalSet will give the permissions necessary to the application default credentials. This doesn't really answer the question and provide a way to use the service user account to run terraform but it works.

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

79551839

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

I solved it by overriding the Bootstrap CSS turning off the box-shadow that Bootstrap uses and adding an outline with an offset. Is there a more elegant way to do this other than overriding Bootstrap with !important?

   *:focus-visible {
    box-shadow: none !important;
    outline: 3px solid black !important;
    outline-offset: 2px !important;
}
Reasons:
  • Whitelisted phrase (-2): I solved
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luke K

79551838

Date: 2025-04-03 01:58:07
Score: 1.5
Natty:
Report link

Found what I was doing wrong. Now it works when I call the XPath and the Namespace of the node I'm looking for.

for child in xmlRoot.findall(".//{http://www.onvif.org/ver10/schema}NumberRecordings"):        
    NumberRecordings=child.text
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: most.of.a.shark

79551830

Date: 2025-04-03 01:50:05
Score: 2
Natty:
Report link

To get the ID of a Discord user you first need to activate developer mode. Once this has been activated, simply copy the id into the member options.

enter image description here

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

79551828

Date: 2025-04-03 01:49:05
Score: 2
Natty:
Report link

Very late to the party, but this library does exactly what you're looking for: https://github.com/adamhamlin/deep-equality-data-structures

const map = new DeepMap([[{a: 1}, 2]]);
console.log(map.get({a: 1})); // Prints: 2

Full disclosure: I am the library author

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

79551825

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

It seems that you forget to add timescale in your file.

`timescale 1ns / 10ps

add this to the first line of your code

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

79551808

Date: 2025-04-03 01:21:58
Score: 3.5
Natty:
Report link

GA4 Annotations in the Analytics Admin API :

https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/properties.reportingDataAnnotations

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

79551796

Date: 2025-04-03 01:07:55
Score: 3
Natty:
Report link

This file should be unreadable but this says it's just an answer for something absolutely nobody cares about unless this is a trick

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

79551786

Date: 2025-04-03 00:45:50
Score: 3.5
Natty:
Report link

I was building using the WildFly Jboss ToolKit plugin in VS Code. anyways i was able to resolve by editing the config server and removing older deployments. Also forgot I had to use wsimport. Thanks

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

79551785

Date: 2025-04-03 00:45:49
Score: 7.5 🚩
Natty: 5.5
Report link

Pls can anyone help me with php mailer file.. so I can upload in shell

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can anyone help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Don Smythe

79551777

Date: 2025-04-03 00:39:46
Score: 0.5
Natty:
Report link

In my case I just was already authenticated throught firebase with google (the same email as facebook is using). So I had to go to the firebase console and remove the user with such an email. After that I was able to login via Facebook

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

79551774

Date: 2025-04-03 00:36:46
Score: 3.5
Natty:
Report link

I create a fresh new conda environment, install only numpy, swich to the env, no error raised!

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

79551763

Date: 2025-04-03 00:20:42
Score: 0.5
Natty:
Report link

For anyone who comes across this, the file name should correspond to how you import the library. In my case, this seems to work regardless of the testfoo.d.ts file being located in the types directory:

// testfoo.d.ts   
declare module "@/public/assets/scripts/testfoo" {
  export interface ITest {
    disabled: boolean;
  }

  export class TestCl {
    constructor();
    go(): void;
  }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: McCrockett

79551732

Date: 2025-04-02 23:30:31
Score: 8.5 🚩
Natty: 5
Report link

Did you ever get this to work? I've tried this and for some reason whenever I add more than one vm_disks, the rhel iso-image disk never gets attached?

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever get this to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: lighdhftr3456

79551730

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

This is probably because you are using a Python 2.x version. Just put:

from _future_ import print_function

If you don't want to do this, you can go with the latest versions of python.

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

79551720

Date: 2025-04-02 23:14:27
Score: 5.5
Natty: 4.5
Report link

is it possible to use an attribute in this code? I am thinking for defining size attributes and charge the CRV based on size.

Reasons:
  • Blacklisted phrase (1): is it possible to
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is it
  • Low reputation (1):
Posted by: Navi

79551718

Date: 2025-04-02 23:10:26
Score: 2.5
Natty:
Report link

For anyone getting a similar error, I fixed mine using the byte_order parameter.

byte_order='native' fixed my problem, but the options are (‘native’, ‘=’, ‘little’, ‘<’, ‘BIG’, ‘>’) (I'm using scypi 1.7.0).

Docs: https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting a similar error
  • Low reputation (1):
Posted by: Giorgio Rossa

79551712

Date: 2025-04-02 23:06:24
Score: 1.5
Natty:
Report link

Yes, there is a free way to bypass that restriction.

Elementor Pro includes the Role Manager feature, but it's only available in the paid version. However, since Elementor is licensed under GPL, you're allowed to use a GPL-licensed copy for testing or educational purposes.

👉 Download Elementor Pro (GPL version) here:

https://wpnulled.space/elementor-pro-download/

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

79551710

Date: 2025-04-02 22:59:22
Score: 0.5
Natty:
Report link

Further extending the work from @Ferris and @kenske, when using localhost (as this was a local script), I found all the session cookies and redirects kept (trying) to go to https on localhost, which I didn't want. Below is my final solution that allows updating the /embedded endpoint, as well as reading the list of dashboards etc. I'm guessing with the the use of the CSRF token this will not work for long running scripts, but for a one shot script, this is working well:

import json
import logging
import os
import re

import requests

logging.basicConfig(level=logging.INFO)

host = "localhost:8088"
api_base = f"http://{host}/api/v1"
username = "admin"
password = os.getenv("DEFAULT_ADMIN_PASSWORD")
dashboard_configs = []


def get_superset_session() -> requests.Session:
    """
    A requests.session with the cookies set such that the work against the API
    """
    # set up session for auth
    session = requests.Session()
    session.headers.update(
        {
            # With "ENABLE_PROXY_FIX = True" in superset_config.py, we need to set this
            # header to make superset think we are using https
            "X-Forwarded-Proto": "https",
            "Accept": "application/json",
            # CRITICAL: Without this, we don't get the correct real session cookie
            "Referer": f"https://{host}/login/",
        }
    )
    login_form = session.get(
        f"http://{host}/login/",
        # Disable redirects as it'll redirect to https:// on localhost, which won't work
        allow_redirects=False,
    )
    # Force cookies to be http so requests still sends them
    for cookie in session.cookies:
        cookie.secure = False

    # get Cross-Site Request Forgery protection token
    match = re.search(
        r'<input[^>]*id="csrf_token"[^>]*value="([^"]+)"', login_form.text
    )
    if match:
        csrf_token = match.group(1)
    else:
        raise Exception("CSRF token not found")
    data = {"username": username, "password": password, "csrf_token": csrf_token}
    # login the given session
    session.post(
        f"http://{host}/login/",
        data=data,
        allow_redirects=False,
    )
    for cookie in session.cookies:
        cookie.secure = False

    # Set the CSRF token header, without this, some POSTs don't work, eg: "embeded"
    response = session.get(
        f"{api_base}/security/csrf_token/",
        headers={
            "Accept": "application/json",
        },
    )
    csrf_token = response.json()["result"]
    session.headers.update(
        {
            "X-CSRFToken": csrf_token,
        }
    )
    return session


def generate_embed_uuid(session: requests.Session, dashboard_id: int):
    """
    Generate an embed UUID for the given dashboard ID
    """
    response = session.post(
        f"{api_base}/dashboard/{dashboard_id}/embedded",
        json={"allowed_domains": []},
    )
    response.raise_for_status()
    return response.json().get("result", {}).get("uuid")


def main():
    session = get_superset_session()

    dashboard_query = {
        "columns": ["dashboard_title", "id"],
    }

    response = session.get(
        f"{api_base}/dashboard/",
        params={"q": json.dumps(dashboard_query)},
    )

    dashboards = response.json()

    for dashboard in dashboards["result"]:
        dashboard_id = dashboard["id"]
        dashboard_title = dashboard["dashboard_title"]
        response = session.get(f"{api_base}/dashboard/{dashboard['id']}/embedded")
        embed_uuid = response.json().get("result", {}).get("uuid")
        if not embed_uuid:
            print(f"Generating embed UUID for {dashboard_title} ({dashboard_id})...")
            embed_uuid = generate_embed_uuid(session, dashboard_id)
        embed_config = {
            "dashboard_id": dashboard_id,
            "dashboard_title": dashboard_title,
            "embed_uuid": embed_uuid,
        }
        print("Embed Config:", embed_config)
        dashboard_configs.append(embed_config)

    print(dashboard_configs)


if __name__ == "__main__":
    main()
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Ferris
  • User mentioned (0): @kenske
  • Low reputation (1):
Posted by: Sillyfrog

79551707

Date: 2025-04-02 22:57:22
Score: 0.5
Natty:
Report link

You could try the following:

RUN curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s lts && \
    npm install -g npm@latest && \
    npm install -g yarn
Reasons:
  • Whitelisted phrase (-1): try the following
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Numan Ibn Mazid

79551691

Date: 2025-04-02 22:33:16
Score: 1.5
Natty:
Report link

Support for field level security might have been something added after the original question, but to anyone checking this in 2025 or beyond this could be interesting to mitigate exposure to pii information:

https://www.elastic.co/guide/en/elasticsearch/reference/current/field-level-security.html

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

79551682

Date: 2025-04-02 22:26:14
Score: 4
Natty:
Report link

WPRocket is great, but it's paid.

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

79551673

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

Also I know I am being late, but this is what might help:

1. Start cmd as ADMIN
2. Type printmanagement
3. Navigate to your printer, ports
4. It should work to confirm your changes

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

79551672

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

This is not yet definitive. But so far it appears the consensus answer is that this isn't possible.

I believe the text of

https://cplusplus.github.io/LWG/issue2356

acknowledges the need for a container object to be traversable, while deleting parts of it which is why the particular requirements on 'erase'. However, the complete lack of ANY guarantees about iteration ordering (no matter how you work at it) for unordered_map (and unordered cousins) - makes them unsuitable libraries if you wish to use COW (copy-on-write) - because containers might need to 'copy' their data while an iteration is proceeding.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: lewis

79551671

Date: 2025-04-02 22:18:12
Score: 2
Natty:
Report link

You are in a good path if you are already thinking about optimization of your code. I must however point out, that writing good quality code, comes with the cost of spending a lot of time learning your tools, in this case the pandas library. This video is how I was introduced to the topic, and personally I believe it helped me a lot.

If I understand correctly you want to: filter specific crime types, group them by month and add up occurrences, and finally plot monthly crime evolution for each type.

Trying out your code three times back to back I got 4.4346, 3.6758 and 3.9400 s execution time -> mean 4.0168 s (not counting time taken to load dataset, used time.perf_counter()). The data used where taken from NYPD database (please include your data source when posting questions).

crime_counts is what we call, a pivot table, and it handles what you did separately for each crime type, while also saving them in an analysis-friendly pd.DataFrame format.

t1 = time.perf_counter()
# changing string based date to datetime object
df["ARREST_DATE"] = pd.to_datetime(df["ARREST_DATE"], format='%m/%d/%Y')
# create pd.Series object of data on a monthly frequency [length = df length]
df["ARREST_MONTH"] = df["ARREST_DATE"].dt.to_period('M') # no one's stopping you from adding new columns



# Filter the specific crime types
crime_select = ["DANGEROUS DRUGS", "ASSAULT 3 & RELATED OFFENSES", "PETIT LARCENY", "FELONY ASSAULT", "DANGEROUS WEAPONS"]
filtered = df.loc[df["OFNS_DESC"].isin(crime_select), ["ARREST_MONTH", "OFNS_DESC"]]

crime_counts = (filtered
                .groupby(["ARREST_MONTH", "OFNS_DESC"])
                .size()
                .unstack(fill_value=0))  # Converts grouped data into a DataFrame

# Plot results
crime_counts.plot(figsize=(12,6), title="Monthly Crime Evolution")
plt.xlabel("Arrest Month")
plt.ylabel("Number of Arrests")
plt.legend(title="Crime Type")
plt.grid(True)

t2 = time.perf_counter()
print(f"Time taken to complete operations: {t2 - t1:0.4f} s")

plt.show()

Above code completed three runs in 2.5432, 2.6067 and 2.4947 s -> mean 2.5482 s. Adding up to a ~36.56% speed increase.

Note: Did you include the dataset loading time into your execution time measurements? I found that by keeping df loaded and only running the calculations part, yields about 3.35s for your code, and 1.85s for mine.

Reasons:
  • Blacklisted phrase (1): helped me a lot
  • Blacklisted phrase (1): This video
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: John Skounakis

79551663

Date: 2025-04-02 22:14:11
Score: 1
Natty:
Report link

I tried this command:

 dotenv -t .env 

It creates a file and then inside that file I pasted the env variables. Then used them as:

const supabaseUrl = global.env.EXPO_PUBLIC_SUPABASE_URL!;
const supabaseAnonKey = global.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Umar Mahmood

79551659

Date: 2025-04-02 22:10:10
Score: 2.5
Natty:
Report link
docker login -u 'mytenancy/mydomain/[email protected]' ord.ocir.io
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: daniel bascunan

79551658

Date: 2025-04-02 22:10:10
Score: 4
Natty:
Report link

Didn't find an answer to this, but worked around it by making a pymysql session instead that I was able to close when needed.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did
  • Low reputation (1):
Posted by: beepbeepboop

79551655

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

Does no-one use virtual environments?

# Install global pip packages using sudo at your own un-needed risk. 
python3 -m venv ./venv
. ./venv/bin/activate
# OR 
source ./venv/bin/activate
pip3 install google-cloud-pubsub

deactivate # To get out of venv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jason Cox

79551647

Date: 2025-04-02 22:04:07
Score: 5.5
Natty: 4
Report link

I believe you are looking at a view - do you know the difference between a view and a table? they essentially work the same from the user perspective but from a database perspective they are not the same thing

Reasons:
  • RegEx Blacklisted phrase (2.5): do you know the
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mbillion

79551645

Date: 2025-04-02 22:04:07
Score: 0.5
Natty:
Report link

Also I know I am being late, but this is what might help:

1. Start cmd as ADMIN
2. Type printmanagement
3. Navigate to your printer, ports
4. It should work to confirm your changes

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

79551628

Date: 2025-04-02 21:52:04
Score: 0.5
Natty:
Report link

My code below on how to pass the apiKey when using the typescript-fetch OpenAPI generator.

The apiKey is sent in the header.

Make sure your YAML openAPI configuration is set correctly.

import { Configuration, DefaultApi } from "mySDK";
const sdk = new DefaultApi(
    new Configuration({
        apiKey: "myApiKey",
    }),
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user3524762

79551627

Date: 2025-04-02 21:46:02
Score: 1
Natty:
Report link

It's not a perfect substitute, but I like to create a test and add an impossible assertion, e.g. Assert.Equivalent(expected, actual); This functions as a placeholder.

The downside, of course, is that this shows up as a failure, not as a to-do.

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

79551610

Date: 2025-04-02 21:30:58
Score: 1
Natty:
Report link

Instead of allowing everything , we may use "count" mode also. The benefit of this we may see number of requests which crossed the threshold value, still it will allow all the requests.

 rule_action_override {
      name = "SizeRestrictions_BODY"
      action_to_use {
        count {}
      }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shival

79551602

Date: 2025-04-02 21:24:56
Score: 3.5
Natty:
Report link

The constant variable infinity is too large for it to handle. Lowering it to 1,000,000 works fine.

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

79551601

Date: 2025-04-02 21:23:54
Score: 7 🚩
Natty:
Report link

در فایل ادمین به ترتیب دلخواه مدل هارو به پنل مدیریت ادمین معرفی کن.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Mohammad Karimpour

79551597

Date: 2025-04-02 21:19:53
Score: 3
Natty:
Report link

The "Remote Devices" option is not present anymore in current chrome versions. But you can follow the link here to get remote dev tools for your android device: https://developer.chrome.com/docs/devtools/remote-debugging

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

79551594

Date: 2025-04-02 21:18:52
Score: 2.5
Natty:
Report link

The issue was resolved with adding the node buildpack (heroku/nodejs) in the Heroku settings, under buildpacks.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Tony S.

79551592

Date: 2025-04-02 21:17:52
Score: 0.5
Natty:
Report link

When AUTO_IS_NULL is not set the driver changes between zeros and nulls, I think you need to configure the ODBC

"When AUTO_IS_NULL is set, the driver does not change the default value of sql_auto_is_null, leaving it at 1, so you get the MySQL default, not the SQL standard behavior.

When AUTO_IS_NULL is not set, the driver changes the default value of SQL_AUTO_IS_NULL to 0 after connecting, so you get the SQL standard, not the MySQL default behavior.

Thus, omitting the flag disables the compatibility option and forces SQL standard behavior.

See IS NULL. Added in 3.51.13."

Youre seeing zero and thinking its a 0 but its really a default value

https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-connection-parameters.html

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: mbillion

79551589

Date: 2025-04-02 21:14:51
Score: 4.5
Natty: 4
Report link

Any updates on this?
Posted it on PyTorch forums?

If yes, links pls

Reasons:
  • Blacklisted phrase (1): Any updates on
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: rav2n

79551575

Date: 2025-04-02 21:07:49
Score: 2.5
Natty:
Report link

In JavaScript I use [\p{Lo}\p{S}]

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Wilhelm Mauch

79551574

Date: 2025-04-02 21:05:49
Score: 1.5
Natty:
Report link

Its seems that your having dependencies issues, if

rm -rf node_modules package-lock.json .next

doesn't work, maybe try installing the sw/helpers

npm install @swc/helpers
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luis Fernando Montes Blanco

79551573

Date: 2025-04-02 21:04:48
Score: 3
Natty:
Report link

I could solve the issue. The problem was the mistake in Apache/James documnation. On James website, it says that the JDBC driver must be placed under /conf/lib/ while in their github repo, they have mentioned that the JDBC driver must be placed under /root/libs/

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

79551562

Date: 2025-04-02 21:01:47
Score: 2.5
Natty:
Report link

Just curious to know that If we are creating a named call in test environment then what’s the point in override that value via spools instead ourself can we not create the value??

Sorry if this question is silly, as I am working on this for the first time

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

79551533

Date: 2025-04-02 20:41:43
Score: 2
Natty:
Report link

fun consumeFoo() : String {
   val result : String = foo().block()
    }
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matheus Felipe Araújo

79551532

Date: 2025-04-02 20:40:42
Score: 1
Natty:
Report link

If you waited too long to connect GitHub to Slack and the token has timed out the following line when placed in a message on the app page will regenerate a new token and fix the problem:

/github subscribe githubAccount/repo
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dela Torre

79551523

Date: 2025-04-02 20:36:42
Score: 2
Natty:
Report link

Since you are setting a value type to its default value (in this case setting a boolean to false) - it is being interpreted as unset, and as a result not being respected.

I would remove the default value in the modal builder, and set it at the application layer as a default (probably just constructor for the entity)

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

79551519

Date: 2025-04-02 20:33:41
Score: 3
Natty:
Report link

If using Chrome try in incognito mode. this disables all extensions by default. I found that one of my extensions was causing the issue by injecting resetting CSS

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

79551516

Date: 2025-04-02 20:32:40
Score: 3.5
Natty:
Report link

def board

print("Enter a number 1-9")

board()

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

79551513

Date: 2025-04-02 20:30:40
Score: 4
Natty:
Report link

The current best way to check how to setup a local/corporate network setup is using the Git documentation. Specifically, this one - https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server

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

79551502

Date: 2025-04-02 20:23:37
Score: 1
Natty:
Report link

Can't comment directly on above solution but I found that even though it seems like this would work, it doesn't. When the alert() function is called in the example it DOES blocks the processing of the mousedown event but if you remove the alert() and put in some other sort of non-blocking code, the radio button click still fires. This is the simplest solution I could come up with to stop it:

/******************************************************************
This code snippet allows you to Select and Unselect a radio button
******************************************************************/

//Var to store if we should not process
var block = false;

//This handles the mousedown event of the radio button
$(function()
{
        $('input[type=radio][id*="rb_Status"]').mousedown(function(e)
    {
        //If the radio button is already checked, we uncheck it
            if($(this).prop('checked'))      
      {
        //Uncheck radio button
        $(this).prop('checked',false);
        
        //Set the flag to true so click event can see it
        block = true;        
      }
    })
});

//This handles the click event of the radio button
$(function()
{   
    $('input[type=radio][id*="rb_Status"]').click(function(e)
    {
        //If the flag was just set to true in the mousedown event, stop processing 
        if(block)
      {
        //Reset the flag for next time
        block = false;
        
        //Return false to stop the current click event from processing
        // Might need these depending if you have other events attached:
        // e.stopImmediatePropagation() / e.preventDefault() / e.stopPropagation()
        return false;
      }
    })
});
Reasons:
  • RegEx Blacklisted phrase (1): Can't comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can't
  • Low reputation (1):
Posted by: user3899909

79551500

Date: 2025-04-02 20:23:37
Score: 0.5
Natty:
Report link

create a vitest.setup.ts and add

import "@testing-library/jest-dom";

include this file (vitest.setup.ts) in the tsconfig.app.json in the attribute include

"include": ["src", "vitest.setup.ts"]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vipul Dessai