79505664

Date: 2025-03-13 07:20:14
Score: 4.5
Natty:
Report link

Maybe you can try to see if your video stream is normal, https://edgeone.ai/tools/hls-player

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

79505661

Date: 2025-03-13 07:19:13
Score: 2.5
Natty:
Report link

I have also face the same issue in my Nextjs project. So what i have done - instead of using this

@tailwind base;
@tailwind components; 
@tailwind utilities;

i use this in global.css

    @import "tailwindcss/preflight";
    @import "tailwindcss/utilities";
    @import 'tailwindcss';

then =>install tailwind css

npm install -D tailwindcss postcss autoprefixer

=>check postcss.config for correct configuration

const config = {
  plugins: ["@tailwindcss/postcss"],
};
export default config;

If tailwind.config.js is missing, generate it using:

npx tailwindcss init

Now import the css file into your main page

import './globals.css';

Add tailwind classes for demo purpose

<p className="text-blue-600 dark:text-sky-400">The quick brown fox...</p>

run it

npm run dev
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): also face the same issue
  • Low reputation (1):
Posted by: utpanna pradhan

79505654

Date: 2025-03-13 07:15:12
Score: 4.5
Natty:
Report link

Are you able to resolve the issue?

I am facing the same issue.
I ran Headed playwright in WSL ubuntu using xLaunch. The browser was launched successfully but failed at page.goto step
I tried to use page.keyboard.press('F5') but it's still failed.
I tried to get some logs and everything is ok:

await world.page.waitForSelector('body', { state: 'attached' });  // Wait for the body element to be attached
console.log('Page is ready for navigation');
// Wait until the page is fully loaded
await world.page.waitForLoadState('load');
console.log('Page is fully loaded and interactive.');

Except I can not interact with the browser.
The test runs ok in Headless mode.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve the issue?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Quy Tran

79505634

Date: 2025-03-13 07:03:10
Score: 1.5
Natty:
Report link

I fixed the issue of not being able to pan when zoomed in by using alignment top left, the only issue left is maybe the logic that I'm using to paint the paths.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Angelo Heide

79505631

Date: 2025-03-13 07:01:09
Score: 8
Natty: 7
Report link

I used this last command successfully, however when I export the value (float) fields to the excel sheet they are always formatted as text? Is there a solution?

Thanks

Share

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (3): Is there a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Dino bartoletti

79505630

Date: 2025-03-13 07:01:09
Score: 4
Natty:
Report link

Added my fix to the Question section.

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

79505627

Date: 2025-03-13 06:58:08
Score: 3.5
Natty:
Report link

Thanks for the answers and inputs and sorry for late reply...

In my setup Java is used so solution with capture group of sln did the trick. Thanks a lot!

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

79505624

Date: 2025-03-13 06:56:08
Score: 1
Natty:
Report link

Qt's internal documentation is now available at https://contribute.qt-project.org/doc/. For example, here is The V4 Garbage Collector: https://contribute.qt-project.org/doc/d3/d9f/v4-garbage-collector.html.

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

79505608

Date: 2025-03-13 06:47:05
Score: 1
Natty:
Report link
import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
pdfjsLib.GlobalWorkerOptions.workerSrc = new URL(
   "pdfjs-dist/build/pdf.worker.min.mjs",
    import.meta.url
).toString();

I am currently working with pdfjs-dist, and this did the trick for me

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

79505601

Date: 2025-03-13 06:44:04
Score: 2
Natty:
Report link

There are basically 3 ways in spring to inject a dependency to the target class. You need to understand the difference first to understand what you need to achieve.

  1. Field Injection:

    @Service
    public class StudentService {
      @Autowired
      private StudentRepository studentRepo;
       // complete service code using studentRepo
    }
    

    Field injection can be achieved using Spring by adding the @Autowired annotation to a class field. And what does @Autowired do? @Autowired is an annotation provided by Spring that allows the automatic wiring of the dependency. When applied to a field, method, or constructor, Spring will try to find a suitable dependency of the required type and inject it into the target class.

  2. Setter Injection:

    @Service
    @Transactional
    public class UserService {
        private UserRepository userRepository;        
    
        @Autowired // Setter Injection
        public void setUserRepository(UserRepository userRepository) {
            this.userRepository = userRepository;
        }
    
        ...
    } 
    

    One more method to do Dependency Injection using Spring is by using setter methods to inject an instance of the dependency.

  3. Constructor Injection:

    @Service
    @Transactional
    public class StudentService {
        private final StudentRepository studentRepo;
    
         // Dependency being injected through constructor
        public StudentService(StudentRepository studentRepo) {
                 this.studentRepo = studentRepo;
        }
         ...
    }
    

    The final one is Constructor Injection. In OOP we create an object by calling its constructor. If the constructor expects all required dependencies as parameters, then we can be 100% sure that the class will never be instantiated without having its dependencies injected.

Now the confusing part for you is the @AllArgsConstructor annotation provided by the Lombok library. What this annotation does is that it simply creates a constructor of the class with all the available member fields of that class. So basically this annotation does the same thing what can be achieved by the constructor injection with a simple annotation. But remember the Field injection, Setter injection & Constructor injection are not the same & used on different scenarios. you can refer this link for more details - https://docs.spring.io/spring-framework/reference/core/beans/dependencies/factory-collaborators.html#beans-constructor-vs-setter-injection

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Autowired
  • User mentioned (0): @Autowired
  • User mentioned (0): @Autowired
  • User mentioned (0): @AllArgsConstructor
  • Low reputation (1):
Posted by: Rudi009

79505597

Date: 2025-03-13 06:42:04
Score: 3
Natty:
Report link

May I provide my own experience on how I tackled the problem on Windows 11 on Oracle VM? I was unable to resolve the problem on installing the latest versions or old versions. Then I installed miniconda instead and installed those packages I needed with conda. It works.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SBMVNO

79505593

Date: 2025-03-13 06:41:04
Score: 1
Natty:
Report link

This happens when trying to send data to the Zapier webhooks from inside a web browser and altering the Content-Type header during the process. Because of Cross Browser Security restrictions, your browser will reject these requests. To combat this, do not set a custom Content-Type header in the request.

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

79505592

Date: 2025-03-13 06:40:03
Score: 3
Natty:
Report link

related:

How do I get the total CPU usage of an application from /proc/pid/stat?

The calculation is too intrusive/complex. So top own process hit %1-3 ish load:)

I wish kernel to provide this stuff more straitforward and programmaticaly, easy to machine parse.Maybe already exists i dont know.

I am not sure cgroups subsystem exposed something related.

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: postala

79505590

Date: 2025-03-13 06:39:03
Score: 1.5
Natty:
Report link

Actually I found in the docs, that stimulus_controller() helper function escapes all non-scalar values, thus it is better to declare values in a straight forward attribute style.

data-controller="url-manager"
data-url-manager-prototype-value="{{ form_row(prototype)|e('html_attr') }}"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Max

79505589

Date: 2025-03-13 06:39:03
Score: 0.5
Natty:
Report link

The driver is trying to capture the previous result before starting the new screen recording. You can disable this with the following (docs):

driver.start_recording_screen(forcedRestart=True)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Max

79505580

Date: 2025-03-13 06:34:02
Score: 3
Natty:
Report link

The response shows that the model answers directly instead of calling the function, meaning it does not recognize that tool use is required. Try adjusting the system prompt

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

79505578

Date: 2025-03-13 06:31:01
Score: 4
Natty: 4
Report link

could you please share your experience, i thought of trying the same.
i have a awx 17 is running fine, recently i have upgraded the Postgres as well.

But i really want to upgrade the awx task/web containers

Reasons:
  • RegEx Blacklisted phrase (2.5): could you please share your
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: bentech4u

79505548

Date: 2025-03-13 06:14:57
Score: 1.5
Natty:
Report link

I'd like to know what causes this error. I have it too. In Luke's answer from Jan 19th, I fail to see how switching the installation sequence to ghcup solves the problem because we don't know the root cause. The error message suggests a configuration error, but that is very hard to diagnose if you're on the user side of the stack install.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Stef Joosten

79505539

Date: 2025-03-13 06:13:57
Score: 0.5
Natty:
Report link

Here's something i just came up with:



def permute(elements):
        permutations=[]
        for i in range(999999):
            tmp_elements = elements.copy()
            candidate = []
            while len(tmp_elements)>0:
                index = random.randint(0,len(tmp_elements)-1)
                candidate.append(tmp_elements[index])
                tmp_elements.pop(index)
            if candidate not in permutations:
                permutations.append(candidate)
        permutations.sort()
        return permutations
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: ck13

79505534

Date: 2025-03-13 06:11:56
Score: 4
Natty:
Report link

Here remove borderWidth from menu style

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

79505527

Date: 2025-03-13 06:09:56
Score: 1
Natty:
Report link

I've also faced this problem, so basically you can add the devTools manually to your react native app by just adding:

import { NativeModules } from 'react-native';
NativeModules.DevSettings.setIsDebuggingRemotely(true);

And if it is not fixed, then try another browser like chrome.

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

79505526

Date: 2025-03-13 06:09:56
Score: 2
Natty:
Report link

Turns out I forgot I had enabled a new feature (dynamic firewall) on my Turris router a while back. I feel like I did this long enough ago it wasn't a problem at the last renewal, but people are reporting issues with it blocking Let's Encrypt. I removed the feature and certbot succeeded. All is good now.

https://forum.turris.cz/t/dynamic-firewall-blocks-lets-encrypt-renewals/16876

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

79505513

Date: 2025-03-13 06:02:55
Score: 1
Natty:
Report link
/ Grid Container /
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); / Automatically adjusts columns based on screen size /
    gap: 20px;
    padding: 20px;
}
/ Content Styling /
.content {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/ Video Styling /
.video iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; / Maintains a 16:9 aspect ratio for the video /
    border-radius: 8px;
}
/ Make sure the video container has a defined height /
.video {
    background-color: #000;
    border-radius: 8px;
}
<div class="grid-container">
        <div class="content">
            <h1>Responsive YouTube Video with CSS Grid</h1>
            <p>This is an example of embedding a YouTube video inside a CSS Grid layout.</p>
        </div>
        
        <div class="video">
            <iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
    </div>

Responsive layout using CSS Grid w/ embedded YouTube video

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Milan Gohel

79505512

Date: 2025-03-13 06:01:54
Score: 1
Natty:
Report link

It looks like the extra read is your best option - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Syntax says that the grammar only supports comparator operators, not arithmetic operators.

I don't know if there's an underlying technical reason for this though - hopefully not, and hopefully one day DynamoDB supports this.

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

79505511

Date: 2025-03-13 06:01:54
Score: 0.5
Natty:
Report link

In PIXI 8, you need to use the App variable created at the beginning

    //created at start
    import {Application, Sprite, Container} from "pixi.js";
    let App = new Application();

    //use inside your application   
    let sprite = Sprite.from(App.renderer.generateTexture(container));

Where container is a variable of type `Container` that has the other sprites in it that you want to be part of the mask. Basically, exactly like @Zyie's answer, but updated for Pixi 8.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Zyie's
Posted by: shieldgenerator7

79505498

Date: 2025-03-13 05:45:51
Score: 0.5
Natty:
Report link

Use a while to check if the button is pressed. The if statement wil evaluate to False, so it will just skip over it and continue. Your code should be like this:

import streamlit as st

btn = st.button("Click here")

while not btn:
    pass

# modal code here
"modal"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user5127

79505494

Date: 2025-03-13 05:43:51
Score: 1
Natty:
Report link

Creating groups and adding users to them won't grant access to the Azure subscription or allow users to create resources. To enable a user to perform any actions within the subscription, you must specifically assign access to the Azure subscription.

If you want to prevent users from accessing any information within Entra ID as well, you can enable a setting within Entra ID. Go to Entra ID > User Settings > Restrict access to Microsoft Entra admin center, and click Enable.

Once enabled, normal users won’t be able to view Entra ID. However, if they are granted access to the Azure subscription, they can still access the subscription, while the restriction on Entra ID remains in place.

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

79505484

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

This menu-maker came from following a discussion about how to force a response to an input statement. It is the only code I have ever written that I thought might be of use to others. Years too late to help Milan :(

def make_menu(alist, columns=3, prompt='Choose an item > '):

    # adds an item number to each element of [alist] ([menu_items]).
    # pop and concatenate [menu_items] elements
    # according to number of columns,
    # and append to [menu].
    # join [menu] elements to form input prompt


    alist.append('Quit')
    menu_items = [f'[{i}] {j}' for i, j in enumerate(alist, 1)]
    choices = [str(i + 1) for i in range(len(alist))]
    menu_row = ''
    count = 0
    menu_items.reverse()
    col_width = len(max(menu_items, key = len))
    menu =[]
    # build the final menu until no more menu_items
    while menu_items:
        count += 1
        menu_row = menu_row + menu_items.pop().ljust(col_width + 3)
        if count == columns or not menu_items:
            menu.append(menu_row)
            count = 0
            menu_row = ''

    menu.append(f'\n{prompt}')
    mn = 1
    mx = len(alist)
    while True:
        choice = input('\n'.join(menu))
        if choice in choices:
            break
        else:
            print(f'Enter a number between {mn} and {mx}\n')
    ch = int(choice)

    if ch == len(alist):
        print("\n\nQuit")
        exit()
    return choice, alist[ch - 1]

if __name__ == "__main__":
    mylist = 'cat dog monkey turkey ocelot bigfoot drop-bear triantewontegongalope'.split()
    mychoice,  item = make_menu(mylist, columns=3)
    print(f'\nYou chose item [{mychoice}] \nwhich was {item}')
Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ceilingcat

79505475

Date: 2025-03-13 05:18:43
Score: 3.5
Natty:
Report link

In my case, after 2 days of struggling , I installed the simulation component of Xcode and boom the problem's gone away. Open Xcode-> Settings -> Components -> install simulator

enter image description here

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

79505474

Date: 2025-03-13 05:17:42
Score: 1
Natty:
Report link

All I have to do is wrap the entity in org.springframework.hateoas.EntityModel and the URI will be perfectly converted

    @RequestMapping(method = { RequestMethod.PUT }, path = "/{pos}", consumes = {MediaType.APPLICATION_JSON_VALUE, "application/hal+json"})
    public ResponseEntity<Activity> edit(@PathVariable("pos") long pos, @RequestBody    EntityModel<Activity> activity) {

        // custom logic...

        Activity updated = repository.save(activity);
    
        return ResponseEntity.ok(updated);
    }
Reasons:
  • Blacklisted phrase (1): I have to do
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Meini

79505473

Date: 2025-03-13 05:17:42
Score: 3.5
Natty:
Report link

In my case, after 2 days of struggling , I installed the simulation component of Xcode and boom the problem's gone away. Open Xcode-> Settings -> Components -> install simulator

enter image description here

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

79505470

Date: 2025-03-13 05:13:41
Score: 1
Natty:
Report link

I use this shape

- ssh -i $SSH_PRIVATE_KEY_GITLAB -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "source ~/.nvm/nvm.sh && cd $DEPLOY_PATH && npm install && npm run build:pm2"

source ~/.nvm/nvm.sh - would be the part that solves missing path to pm2

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

79505462

Date: 2025-03-13 05:08:40
Score: 3.5
Natty:
Report link

If your text contains multiple HTML tags, this library NativeHTML can be very helpful.

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

79505457

Date: 2025-03-13 05:04:40
Score: 1
Natty:
Report link

Just install pandas in your enviroment or root Python by using

pip install pandas

I'd advise you to start using virtual enviroments or a package manager like Anaconda.

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

79505455

Date: 2025-03-13 05:01:39
Score: 1
Natty:
Report link

== Quest 6 received. Add an src/matrix_sort.c program that sorts the given

matrix, putting rows with the minimum sum of elements first, followed by rows

with the maximum sum of elements. Input data for the program are numbers N

and M – matrix dimensions, and NxM of the numbers – matrix elements. The memory

for the matrix must be allocated dynamically using one of the 3 methods. And it

has to be cleared at the end of the program. In case of any error, output "n/a".==

Input

Output

13 34 3 19 0 55-4 7 -10

-4 7 -104 3 19 0 55

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

79505453

Date: 2025-03-13 05:00:39
Score: 3.5
Natty:
Report link

I have the following excel VBA, which finds files based on an excel list and copies then from the source folder to the destination folder.

But, I need to be able to copy the file based on a file containing certain text, i.e. my excel list has QTMP-1 as a file name but I want it to identify and copy all files (there may be more than one) that contain QTMP-1 before moving to the next search item in my list.

The code below is based on an exact match (and assumes 1 list item to 1 file). What do I need to change?

Sub copyfiles()
'Updateby http://www.hardipdabhi.wordpress.com
'Copies files from one folder to another based on a list in excel
    Dim xRg As Range, xCell As Range
    Dim xSFileDlg As FileDialog, xDFileDlg As FileDialog
    Dim xSPathStr As Variant, xDPathStr As Variant
    Dim xVal As String
    On Error Resume Next
    Set xRg = Application.InputBox("Please select the file names:", "www.hardipdabhi.wordpress.com", ActiveWindow.RangeSelection.Address, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    Set xSFileDlg = Application.FileDialog(msoFileDialogFolderPicker)
    xSFileDlg.Title = "Please select the original folder:"
    If xSFileDlg.Show <> -1 Then Exit Sub
    xSPathStr = xSFileDlg.SelectedItems.Item(1) & "\"
    Set xDFileDlg = Application.FileDialog(msoFileDialogFolderPicker)
    xDFileDlg.Title = "Please select the destination folder:"
    If xDFileDlg.Show <> -1 Then Exit Sub
    xDPathStr = xDFileDlg.SelectedItems.Item(1) & "\"
    For Each xCell In xRg
        xVal = xCell.Value
        If TypeName(xVal) = "String" And xVal <> "" Then
            FileCopy xSPathStr & xVal, xDPathStr & xVal
        End If
    Next
End Sub
Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Andrew

79505451

Date: 2025-03-13 04:59:39
Score: 3.5
Natty:
Report link

Brother, I followed all the steps, but the issue is still not resolved. I checked the zip module in PHP CLI using (php -m | grep zip), but the error persists. I also uncommented extension=zip in php.ini and restarted the server. I cleared Laravel cache, reinstalled Composer, and tried everything, but I'm still getting the Class 'ZipArchive' not found error. I'm using [OS name], and my PHP version is [PHP version]. What should I do next?"

Reasons:
  • Blacklisted phrase (2): What should I do
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mokaddes Ali

79505449

Date: 2025-03-13 04:58:38
Score: 4.5
Natty: 6
Report link

I'm having this trouble too

for me, I use react native and background color is darker than the on I have set

any advice on this??

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

79505443

Date: 2025-03-13 04:55:37
Score: 2.5
Natty:
Report link

You can try Client instead of User as below

await _hubContext.Clients.Client(loginResponseDto.User.Id).SendAsync("SessionExpiryTime", tokenExpiry);

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

79505438

Date: 2025-03-13 04:50:36
Score: 1
Natty:
Report link

soon, we won't even need to add anything to + reference anything from the HTML - instead we can accomplish this completely within just a few lines of CSS using the sibling-count() and/or sibling-index() functions!

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

79505436

Date: 2025-03-13 04:49:36
Score: 1.5
Natty:
Report link
Just a simple code  
   $video_url = 'https://www.youtube.com/watch?v=2nO8KRtAqjA&t=3s';
    $video_id = '';

    // Extract the YouTube video ID
    if (preg_match('/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/]+\/.+\/|       (?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i', $video_url, $matches)) {
        $video_id = $matches[1];
    }

    $card_image = $video_id ? "https://img.youtube.com/vi/{$video_id}/hqdefault.jpg"
   
  echo $card_image;
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mukesh Techhive

79505435

Date: 2025-03-13 04:48:36
Score: 1
Natty:
Report link

as of node version 23

const EventEmitter = require('node:events');

class MyEmitter extends EventEmitter {}

const myEmitter = new MyEmitter();
myEmitter.on('event', () => {
  console.log('an event occurred!');
});
myEmitter.emit('event');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hari Nair

79505422

Date: 2025-03-13 04:35:33
Score: 1
Natty:
Report link
Thanks for TheMaster reply.
I add Slides service and test. I understand. 

but i rewrite my app to use advanced slides service is difficult...
Publish add-on script is very difficult.


function createPresentation() {
  try {
    const presentation =
      Slides.Presentations.create({'title': 'MyNewPresentation'});
    console.log('Created presentation with ID: ' + presentation.presentationId);
    return presentation.presentationId;
  } catch (e) {
    // TODO (developer) - Handle exception
    console.log('Failed with error %s', e.message);
  }
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Toshiyuki Kawashima

79505414

Date: 2025-03-13 04:30:32
Score: 2
Natty:
Report link

Save it as test_pandas.py in your computer.

If you are on Windows and have Python installed, go to that folder, right click the file, "Edit with IDLE > Edit with IDLE..."

enter image description here

Then click "Run > Run Module"

enter image description here

If you are on Linux, just open a terminal to that folder and run:

python3 test_pandas.py
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LastDuckStanding

79505413

Date: 2025-03-13 04:30:32
Score: 1.5
Natty:
Report link

\> trigger alert when any queue in the storage has messages not processed

You used the “Queue Message Count” measure with the “Average” aggregation type.

To obtain the alert using the Log Analytics workspace and queue metrics, we can

enable the transaction by going to metrics and then enable storage read, write, delete under the Diagnostics settings by keeping destination as log analytics workspace.

To retrieve the unprocessed queue messages from storage, use the KQL query below.

\> trigger alert when any queue in the storage has messages not processed

You used the “Queue Message Count” measure with the “Average” aggregation type.

To obtain the alert using the Log Analytics workspace and queue metrics, we can

enable the transaction by going to metrics and then enable storage read, write, delete under the Diagnostics settings by keeping destination as log analytics workspace.

To retrieve the unprocessed queue messages from storage, use the KQL query below.

```kql

AzureMetrics

| where TimeGenerated > ago(7d)

| where MetricName == "QueueMessageCount"

| where Total > 0

| summarize Count=count() by bin(TimeGenerated, 1h), ResourceId

| where Count == X

| order by TimeGenerated desc

```

created the alert rule while utilizing the dynamic threshold.

![enter image description here](https://i.imgur.com/Jpx1eBL.png)

![enter image description here](https://i.imgur.com/43oUYNJ.png)

Created the Action groups

![enter image description here](https://i.imgur.com/rwlvXcl.png)

The Alert had been triggered to the mail as I had connected to the Action group of the alerts

![enter image description here](https://i.imgur.com/zfLdebu.png)

**References:**

[Create an Azure Monitor metric alert with dynamic thresholds - Azure Monitor](https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-dynamic-thresholds)

[Monitor Azure Queue Storage](https://learn.microsoft.com/en-us/azure/storage/queues/monitor-queue-storage?tabs=azure-portal)

created the alert rule while utilizing the dynamic threshold.

![enter image description here](https://i.imgur.com/Jpx1eBL.png)

![enter image description here](https://i.imgur.com/43oUYNJ.png)

Created the Action groups

![enter image description here](https://i.imgur.com/rwlvXcl.png)

The Alert had been triggered to the mail as I had connected to the Action group of the alerts

![enter image description here](https://i.imgur.com/zfLdebu.png)

**References:**

[Create an Azure Monitor metric alert with dynamic thresholds - Azure Monitor](https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-dynamic-thresholds)

[Monitor Azure Queue Storage](https://learn.microsoft.com/en-us/azure/storage/queues/monitor-queue-storage?tabs=azure-portal)

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harshitha Bathini

79505411

Date: 2025-03-13 04:29:32
Score: 1.5
Natty:
Report link

Yes, it is true; I worked on a Blazor Web Assembly project.

Blazor WebAssembly is slower than React/Vue in startup time

For heavy computations, Blazor WebAssembly can be faster than JavaScript frameworks

DOM manipulation in Blazor WebAssembly is slightly slower due to JS Interop

If you want a lightweight app with quick interactivity, React/Vue are better choices.

If you want to reuse C# code, have complex logic, or prefer .NET development, Blazor WebAssembly is great

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

79505403

Date: 2025-03-13 04:24:31
Score: 1
Natty:
Report link

In my team, we've got two scripts

  1. Allow the web app to communicate with the container registry -- adding the IP of the web app to the ACR network settings

  2. Adding the IP of the build agent to the container registry -- script that gets the IP of the azure devops build agent and we add that to the ACR network settings

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ランス

79505399

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

I also faced this issue, and after debugging, I found that it was due to an incorrect import in my index.css file.

reason : Incorrect imports

This is incorrect and can cause styles (including margin and padding) to not apply properly.

Correct import (✅ Right way) Instead, just use:@import "tailwindcss"

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

79505388

Date: 2025-03-13 04:10:28
Score: 2
Natty:
Report link

sdtio.h interfaces are 'buffered'. introduces sync penalty, and some usec delays.

test your OS native unbuffered interfaces or even syscalls if you dont care about portability.

Keep in your mind that buffered and unbuffered ifaces MUST not mix into the same project or same underlying file.

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

79505386

Date: 2025-03-13 04:10:28
Score: 3.5
Natty:
Report link

Try myhlscloud, I used it and found it quite effective

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Linh Ngọc

79505379

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

the flutter_google_places: ^0.3.0. package has the issue recently also we dont get any new version of it .instead using flutter_google_places Use google_flutter_places..it should resolve the issue

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

79505375

Date: 2025-03-13 03:58:25
Score: 0.5
Natty:
Report link

I tried running npm run check; still got the error. Tried adding the ".svelte-kit/ambient.d.ts" line to the tsconfig; still got the error. Tried both in tandem and still got the error! I had to add an env.d.ts file to make the errors go away. In terms of build errors, I am pretty far from production-ready at this point, but a cursory npm run build didn't show any errors popping back up.

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

79505374

Date: 2025-03-13 03:56:24
Score: 8.5 🚩
Natty: 5.5
Report link

I am also facing the same issue and I have not found any solution to this.

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Blacklisted phrase (1.5): any solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rup Chowdhury

79505368

Date: 2025-03-13 03:52:23
Score: 3
Natty:
Report link

RESET SLAVE;

SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;

start slave;

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

79505367

Date: 2025-03-13 03:51:23
Score: 1
Natty:
Report link

This works well for me and doesn’t require a plugin:

:%norm I<p>^OA</p>

Where the % sign indicates the whole page. Capital I inserts at the beginning of the line

Where ^O represents ctrl-o which exits insert mode. The capital A appends insertion at the end of the line.

Another example covering a range of lines:

:5,25norm I<p>^OA</p>

Is identical except the % sign is replaced by the range of lines you wish to tag.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: David Robért

79505362

Date: 2025-03-13 03:46:22
Score: 1
Natty:
Report link

The accepted answer by @DSM has a problem highlighted in the comments:

Be careful with dense because if the values are the same, they get assigned the same rank! – Valerio Ficcadenti

This may cause your code to break if you rely on the uniqueness of (group_ID, rank).

The following code uses argsort within each group and inverts the map, so it does not suffer from the same problem:

df["rank"] = df.groupby("group_ID")["value"].transform(
    lambda x: x.to_frame("value")
    .assign(t=np.arange(x.shape[0]))["t"]
    .map({
        y: x.shape[0] - i
        for i, y in enumerate(x.argsort())
    }))
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @DSM
  • Low reputation (1):
Posted by: LastDuckStanding

79505356

Date: 2025-03-13 03:42:21
Score: 1.5
Natty:
Report link

The distilbert-base-uncased model has been trained to treat spaces as part of the token. As a result, the first word of the sentence is encoded differently if it is not preceded by a white space. To ensure the first word includes a space, we set add_prefix_space=True. You can check both the model and its paper here: distilbert/distilbert-base-uncased

Unfortunately you have to read through the model's technical report or research around to see how they are trained. Happy learning! :)

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

79505352

Date: 2025-03-13 03:39:21
Score: 2.5
Natty:
Report link

Solana rent is a fee mechanism on the Solana blockchain that charges users for account storage. If accounts become inactive, users can lose SOL over time. RentSolana is a tool that helps users recover locked SOL rent by closing unused accounts and optimizing their wallets -- solana rent recovery

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

79505350

Date: 2025-03-13 03:39:20
Score: 5
Natty: 4
Report link

I know this is out of context, but where do you learn Kotlin Multiplatform and Compose Multiplatform? Looking forward to your reply!

Reasons:
  • Blacklisted phrase (1.5): Looking forward to your
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: blowingMyBody...

79505339

Date: 2025-03-13 03:29:18
Score: 1
Natty:
Report link

My findings so far: I had .net and extension conflict, so uninstalled SSIS. Then I tried reinstalling it.

  1. The log file indicates an unstable parent registry key.

  2. Ran sfc /scannow in cmd and resulted in nothing.

  3. Uninstalled Net8 bootstrapper from programs, restarted.

  4. Once that was done, I was able to launch the Visual Studio Installer, add SQL Server Integration Services Projects 2022 back from the extensions list, individual components.

  5. Extension was visible in the launched app Visual Studio Extensions.

  6. Enabled the extension and was prompted to upgrade to ver 1.5. For some reason that was handled as a download.

  7. Completed download and ran that as administrator with repair option because modify options were to install somewhere else or uninstall. That failed.

  8. Followed troubleshooting link: https://learn.microsoft.com/en-us/sql/ssdt/ssis-vs2022-troubleshooting-guide?view=sql-server-ver16#installation-issues, which is where I am now and I'm tired and going to bed.

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

79505333

Date: 2025-03-13 03:26:18
Score: 0.5
Natty:
Report link

try MediaQuery.removePadding

MediaQuery.removePadding(
  context: context,
  removeTop: true,
  removeRight: true,
  removeLeft: true,
  removeBottom: true,
  child: GridView.builder(
  )
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zhentao

79505330

Date: 2025-03-13 03:24:17
Score: 1.5
Natty:
Report link

To clone a submodule from another project, you can refer to the steps below.

  1. In your new_proj, turn off Limit job authorization scope to current project for non-release pipelines and Protect access to repositories in YAML pipelines option from Project Settings -> Pipelines -> Settings.

    enter image description here

  2. In your pipeline, set submodules to true in your checkout task.

    steps:
    - checkout: self
      submodules: true
    
    - script: |
        tree
      displayName: 'ListAllFiles'
    
  3. In your base_repo project, add build service account Project Collection Build Service (yourOrgName) into the Contributors group. (If you still have the same error in the pipeline, add project-level build service account new_proj Build Service (yourOrgName) into the Contributors group as well.)

    enter image description here

  4. Result:

    enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same error
  • High reputation (-1):
Posted by: Ziyang Liu-MSFT

79505329

Date: 2025-03-13 03:22:17
Score: 1
Natty:
Report link

go to the terminal directly from the jupyter notebook( File > New > Terminal) and run the following commands:

conda create -n opencv

then:

conda activate opencv

then:

conda install -c anaconda opencv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emmanuel Thisara Adumoah Otoo

79505328

Date: 2025-03-13 03:20:16
Score: 2.5
Natty:
Report link

for firefox(maybe all based on it) its stored into prefs.js

its configurable for all? browsers. So its should be stored somewere.

But most users dont chance defaults and browsers accepts XDG defaults as own defaults mostly i think.

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

79505325

Date: 2025-03-13 03:18:15
Score: 8.5 🚩
Natty:
Report link

Don't have any expertise in frontend, but i think you should try this video: https://www.youtube.com/watch?v=4qNZYlcxy8g

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (2): try this video
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: avvv

79505324

Date: 2025-03-13 03:18:15
Score: 1
Natty:
Report link

Set the padding of the GridView to zero

GridView.builder(
// Add this line
  padding: EdgeInsets.zero,
  {...}
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daniel Onadipe

79505318

Date: 2025-03-13 03:06:13
Score: 1.5
Natty:
Report link

Use settings.json:

"python.defaultInterpreterPath"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79505306

Date: 2025-03-13 02:55:11
Score: 4
Natty:
Report link

https://update.code.visualstudio.com/1.83/win32/stable

this will work for win 7/win8/win8.1 32 bit

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

79505301

Date: 2025-03-13 02:52:10
Score: 5
Natty:
Report link

I found this native implementation playlist
https://youtube.com/playlist?list=PLQhQEGkwKZUqIf4ZAcZOHCUdpNExKYK9n&si=A11qEOy8wLSx8CTz

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rageh Azzazy

79505289

Date: 2025-03-13 02:40:07
Score: 3.5
Natty:
Report link

When you say 'disk write buffer' are you means kernel buffer or hw buffer?

if it is the latter see dmesg.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: postala

79505288

Date: 2025-03-13 02:39:07
Score: 1.5
Natty:
Report link

Try to quote the identifier, use back ticks:

@Table(name="`Player_Stats`")
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: azer-p

79505285

Date: 2025-03-13 02:37:07
Score: 5.5
Natty:
Report link

enter image description here

i think nginx is limiting the upload size, have you tried adjusting client_max_body_size?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: xiaoqiang wei

79505284

Date: 2025-03-13 02:37:07
Score: 2
Natty:
Report link

I came across the same issue as reported by OP, so I dug a bit further into the source code around DeterminePathSeparator and got it to output the filename that it didn't like.

It turns out that this error can occur when a filename has a %5C in it on Azure File Shares, e.g. sample%5Ctest.xml

The filename is "decoded" into sample\test.xml

So the Azure file path is then

https://......../folder/sample\test.xml

You can't see this using Azcopy list command.

Logged https://github.com/Azure/azure-storage-azcopy/issues/2977

Reasons:
  • No code block (0.5):
  • Filler text (0.5): ........
  • Low reputation (1):
Posted by: SuperMistaG

79505272

Date: 2025-03-13 02:29:05
Score: 0.5
Natty:
Report link

I was really interested in finding a dynamic reallocation for gsoap, so I decided to give it a shot. Here's what I came up relatively quickly.

The trick is that soap_malloc actually stores the allocation size and the next allocation address at the end of the allocation by adding extra padding.

In short, to reallocate a soap pointer, you need to add extra padding, write the allocation size, write the next pointer address, write the canary word and update the pointer address in the allocation chain.
Failing to do so would result with memory error while disposing of the gsoap instance.
I simply derived the logic from soap_dealloc and soap_malloc.

The following seems to work perfectly fine, but could probably use further testing:

SOAP_FMAC1 void* SOAP_FMAC2
soap_realloc(struct soap *soap, void * ptr, size_t n, size_t * orignalsize){
    char *p;
    size_t k = n;
    if (SOAP_MAXALLOCSIZE > 0 && n > SOAP_MAXALLOCSIZE){
        if (soap)
            soap->error = SOAP_EOM;
        return NULL;
    }
    if (!soap)
        return realloc(ptr, n);

    //Add mandatory extra padding
    n += sizeof(short);
    n += (~n+1) & (sizeof(void*)-1); /* align at 4-, 8- or 16-byte boundary by rounding up */
    if (n + sizeof(void*) + sizeof(size_t) < k){
        soap->error = SOAP_EOM;
        return NULL;
    }

    //Search pointer if memory alloaction list
    char **q;
    for (q = (char**)(void*)&soap->alist; *q; q = *(char***)q){
        if (*(unsigned short*)(char*)(*q - sizeof(unsigned short)) != (unsigned short)SOAP_CANARY){
            printf("ERROR: Data corruption in dynamic allocation\n");
            soap->error = SOAP_MOE;
            return NULL;
        }
        if (ptr == (void*)(*q - *(size_t*)(*q + sizeof(void*)))){
            break;
        }
    }

    if (*q){
        //Extract original allocation size
        if(orignalsize){
            *orignalsize = *(size_t*)(*q + sizeof(void *));
            //Shift original size to exclude original size and canary value
            *orignalsize -= sizeof(void*) - sizeof(size_t) - sizeof(unsigned short); //Handle round up?
        }
        

        //Reattach broken pointer chain
        if(*(char***)q)
            *q = **(char***)q;

        p = (char*) realloc(ptr,n + sizeof(void*) + sizeof(size_t));
        if(!p){
            printf("ERROR: Data corruption in dynamic allocation\n");
            soap->error = SOAP_MOE;
            return NULL;
        }

       /* set a canary word to detect memory overruns and data corruption */
       *(unsigned short*)((char*)p + n - sizeof(unsigned short)) = (unsigned short)SOAP_CANARY;

       /* keep chain of alloced cells for destruction */
       *(void**)(p + n) = soap->alist;
       *(size_t*)(p + n + sizeof(void*)) = n;
       soap->alist = p + n;

       return (void*)p;
   }

   printf("ERROR: Pointer not found in memory allocation cache\n");
   soap->error = SOAP_SVR_FAULT;
   return NULL;
}

Here's a simple example to increment allocation count by 1

__sizeProduct++;
prod_array = soap_realloc(soap, prod_array, sizeof(struct ns1__Product) * __sizeProduct, NULL);
newproduct = &prod_array[__sizeProduct-1];
soap_default_ns1__Product(soap, newproduct); // <----- This is the important part otherwise you will have to populate the entire object manually

Here's a another example to increment allocation count by n amount. This method allows a jump without needing to know the original size.

size_t original_size;
int newsize = n;
prod_array = soap_realloc(soap, prod_array,sizeof(struct ns1__Product) * newsize, &original_size);
for(size_t i=newsize;i>original_size;i--) // <-- Loop newly allocated space
    soap_default_ns1__Product(soap, (struct ns1__Product *) &prod_array[i-1]); // <----- This is the important part otherwise you will have to populate the entire object manually

I originally designed this for my onvifserver project with the goal to lower memory footprint as much as possible.

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

79505264

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

I researched it and found out that Flutter hasn't made any official library for desktop app connections with Firebase. An alternative approach is to go through the native platform and do some configuration, which is quite complex and mind-tripping work.

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

79505262

Date: 2025-03-13 02:24:04
Score: 1
Natty:
Report link
[rsyslog_v8]  
name=Adiscon CentOS-$releasever - local packages for $basearch  
baseurl=http://rpms.adiscon.com/v8-stable/epel-7/$basearch  
enabled=0  
gpgcheck=0  
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon  
protect=1  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marcus lyra Giacomeli Suayde

79505242

Date: 2025-03-13 02:05:00
Score: 2.5
Natty:
Report link

this is intendet to be a comment. not enought rep to make a comment sorry.

maybe qemu related? So remove qemu from the equation to see whether it is or not. I means run it as native.

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

79505240

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

Here are some suggestions you can check. The exposed API

api://6ea427d1-d3f6-479c-8cc8-f4cb73278354/portal/aws is different from what I can see on the error message api://6ea427d1-d3f6-479c-8cc8-f4cb73278354/portal.

Make sure you are exposing a correct address.

If you use encodeURIComponent() on the entire scope, the slashes (/) will be encoded, which may cause Azure to misinterpret the scope. you can try it like :

"scope=" + encodeURIComponent("api://6ea427d1-d3f6-479c-8cc8-f4cb73278354/portal/aws")

or just hard code it for testing, like:

"scope=api://6ea427d1-d3f6-479c-8cc8-f4cb73278354/portal/aws"

In your error message, stated tenant mismach.

Also, make sure that the API permission is consented for users. If not, try granting Admin Consent in Azure Portal under API Permissions.

Plus, When requesting a token, ensure that you are requesting Delegated Permissions under API Permissions and that they match what is configured under Expose an API.

Verify that the scope is set under Expose an API. Make sure the Client ID matches the registered application. Check if the Application ID URI (api://{client-id}) is correctly set in Expose an API.

You can also log your scope before redirecting and make sure the scope is set correctly: console.log("Requested Scope: ", scopeName);.

If still you couldn't spot the issue, please provide more information.

Good luck.

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AminM

79505236

Date: 2025-03-13 01:59:59
Score: 1
Natty:
Report link

As Adam Nevraumont pointed out, std::unique_ptr<void*> wont work.

If you're using c++17, std::any is probably your best option.

This would replace std::unique<void> with std::unique<std::any>>. Keep in mind std::unique_ptr<void> won't compile without a lot of extra work.

Best options are:

  1. Use a raw pointer void*
  2. Use std::unique<std::any>> for smart pointer support + type safety

Resources on std::any

Questions related to std::any:

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Caleb Burke

79505235

Date: 2025-03-13 01:59:59
Score: 3.5
Natty:
Report link

Restarting my ngrok agent did the trick for me

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

79505233

Date: 2025-03-13 01:56:59
Score: 0.5
Natty:
Report link

The before-leave is not an event and should be passed via v-bind:before-leave (or :before-leave).

In Element Plus documentation, attributes, events, and slots are typically categorized on the right side using dedicated sections labeled Attributes, Events, and Slots.

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

79505227

Date: 2025-03-13 01:49:57
Score: 0.5
Natty:
Report link

How to Send Firebase Cloud Messaging (FCM) Notifications from Swift using HTTP v1?

Since Firebase has migrated from legacy FCM APIs to HTTP v1, client-side apps (e.g., Swift apps) cannot directly generate access tokens. Instead, tokens must be created using a server-side service account.

However, I managed to generate an access token directly in Swift using CryptoKit and SwiftJWT and successfully send push notifications via Firebase Cloud Messaging (FCM).

Solution

Step 1: Setup Service Account

Step 2: Implement Push Notification Sender in Swift

Below is my implementation to generate an access token and send an FCM notification:

//
//  Created by DRT on 14/02/20.
//  Copyright © 2020 mk. All rights reserved.
//

import Foundation
import UIKit
import CryptoKit
import SwiftJWT

class PushNotificationSender {
    
    func sendPushNotification(FCMtoken: String, title: String, body: String,type: String,targetFUserId: String,firebasePushId: String) {
        
        self.getAccessToken { result in
            
            switch result {
            case .success(let token):
                
                print(token)
                self.sendFCMMessage(token: token,
                                    fcmToken: FCMtoken,
                                    title: title,
                                    body: body,
                                    type: type,
                                    targetFUserId: targetFUserId,
                                    firebasePushId: firebasePushId)
                
            case .failure(let failure):
                print(failure)
            }
        }
    }
    
    // this func will send the notification to the fcm token device
    func sendFCMMessage(token: String, fcmToken: String, title: String, body: String,type: String,targetFUserId: String,firebasePushId: String) {
        
        let url = URL(string: "https://fcm.googleapis.com/v1/projects/gymstar-94659/messages:send")!
        var request = URLRequest(url: url)
        request.httpMethod = "POST"
        request.addValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
        request.addValue("application/json", forHTTPHeaderField: "Content-Type")
        
        let body: [String: Any] = [
            "message": [
                "token": fcmToken,
                "notification": [
                    "title": title,
                    "body": body
                ],
                "data": [
                    
                    "badge" : "1",
                    "sound" : "default",
                    "notification_type": type,
                    "message": body,
                    "firebaseUserId": targetFUserId,
                    "firebasePushId": firebasePushId
                ]
            ]
        ]

        let bodyData = try! JSONSerialization.data(withJSONObject: body, options: [])
        request.httpBody = bodyData

        let task = URLSession.shared.dataTask(with: request) { data, response, error in
            
            do {
                if let jsonData = data {
                    if let jsonDataDict  = try JSONSerialization.jsonObject(with: jsonData, options: JSONSerialization.ReadingOptions.allowFragments) as? [String: AnyObject] {
                        NSLog("Received data:\n\(jsonDataDict))")
                    }
                }
            } catch let err as NSError {
                print(err.debugDescription)
            }
        }
        
        task.resume()
    }
    
    // this func will return access token and if some error occurs, it returns error
    func getAccessToken(completion: @escaping (Result<String, Error>) -> Void) {
        guard let jsonPath = Bundle.main.path(forResource: "serviceAccount", ofType: "json") else {
            completion(.failure(NSError(domain: "FileNotFound", code: 404, userInfo: nil)))
            return
        }

        do {
            let jsonData = try Data(contentsOf: URL(fileURLWithPath: jsonPath))
            let credentials = try JSONDecoder().decode(ServiceAccountCredentials.self, from: jsonData)
            
            let iat = Date()
            let exp = Date(timeIntervalSinceNow: 3600) // Token valid for 1 hour

            // Create the JWT claims
            let claims = JWTClaims(
                iss: credentials.client_email,
                scope: "https://www.googleapis.com/auth/cloud-platform", // Change this to your required scope
                aud: "https://oauth2.googleapis.com/token",
                iat: iat,
                exp: exp
            )

            // Create a JWT signer using the private key
            var jwt = JWT(claims: claims)
            
            // Private key in PEM format, needs to be cleaned
            let privateKey = credentials.private_key
                .replacingOccurrences(of: "-----BEGIN PRIVATE KEY-----", with: "")
                .replacingOccurrences(of: "-----END PRIVATE KEY-----", with: "")
                .replacingOccurrences(of: "\n", with: "")
            
            let jwtSigner = JWTSigner.rs256(privateKey: Data(base64Encoded: privateKey)!)
            
            let signedJWT = try jwt.sign(using: jwtSigner)
            
            // Send the signed JWT to Google's token endpoint
            getGoogleAccessToken(jwt: signedJWT) { result in
                switch result {
                case .success(let accessToken):
                    completion(.success(accessToken))
                case .failure(let error):
                    completion(.failure(error))
                }
            }

        } catch {
            completion(.failure(error))
        }
    }
    
    // Send the JWT to Google's OAuth 2.0 token endpoint
    func getGoogleAccessToken(jwt: String, completion: @escaping (Result<String, Error>) -> Void) {
        let tokenURL = URL(string: "https://oauth2.googleapis.com/token")!
        var request = URLRequest(url: tokenURL)
        request.httpMethod = "POST"
        request.addValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")

        let bodyParams = [
            "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "assertion": jwt
        ]
        
        request.httpBody = bodyParams
            .compactMap { "\($0)=\($1)" }
            .joined(separator: "&")
            .data(using: .utf8)

        let task = URLSession.shared.dataTask(with: request) { data, response, error in
            if let error = error {
                completion(.failure(error))
                return
            }

            guard let data = data else {
                completion(.failure(NSError(domain: "NoData", code: 500, userInfo: nil)))
                return
            }

            do {
                if let json = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
                   let accessToken = json["access_token"] as? String {
                    completion(.success(accessToken))
                } else {
                    completion(.failure(NSError(domain: "InvalidResponse", code: 500, userInfo: nil)))
                }
            } catch {
                completion(.failure(error))
            }
        }

        task.resume()
    }
}

struct ServiceAccountCredentials: Codable {
    let client_email: String
    let private_key: String
}

struct JWTClaims: Claims {
    let iss: String
    let scope: String
    let aud: String
    let iat: Date
    let exp: Date
}

extension Data {
    func base64URLEncodedString() -> String {
        return self.base64EncodedString()
            .replacingOccurrences(of: "+", with: "-")
            .replacingOccurrences(of: "/", with: "_")
            .replacingOccurrences(of: "=", with: "")
    }
}

How It Works

  1. Generate an Access Token:

    • Read Firebase service account JSON file.

    • Create a JWT using SwiftJWT.

    • Sign it with your Firebase private key.

    • Send it to Google's OAuth 2.0 token endpoint to get an access token.

  2. Send FCM Notification:

    • Use the access token in an Authorization header.

    • Send a push notification to the target FCM token via https://fcm.googleapis.com/v1/projects/YOUR_PROJECT_ID/messages:send.

Key Notes

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: SYED M ABDUL REHMAN

79505226

Date: 2025-03-13 01:46:57
Score: 2
Natty:
Report link

Go to Stores > Attributes > Product. Make sure:

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

79505224

Date: 2025-03-13 01:45:57
Score: 0.5
Natty:
Report link

Never had an issue with time being inconsistent across the platforms. It's probably an issue within your save methods themselves.

If these methods perform a heavy operation, such as writing to a file, then they might take more time than the WaitForSeconds you're doing. You see, both InvokeRepeating and IEnumerator allow to do some "parallel" work, but it's not truly parallel. It's still happening on the main thread, so it might freeze the thread for, let's say, 200ms, and your next invocation will be 200ms later.

If you really need to do such heavy work in the background constantly, you might want to consider creating a new real thread - that will do the saving - without taking up your main thread upon which you run the game.

You might also want to attach a remote profiler session to your phone and investigate what it is that eats your framerate.

Additionally, running the same coroutine within the same coroutine like you do is a very ugly line of code :P. Just put the content of the coroutine inside the while(true) loop, and you'll have the same effect.

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

79505217

Date: 2025-03-13 01:42:56
Score: 2.5
Natty:
Report link

To @Dan Pittsley answer's, when I simply rename file or folder in explorer in GitLab.

The changed name will be displayed on left panel of explorer.

enter image description here

However, it seems that the file name will not be changed even I reload the web page.

enter image description here

1th edit

I forgot to say I open the explorer through select the file and click Edit button then select web page.

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @Dan
  • Low reputation (1):
Posted by: GeeksMathGeeks

79505216

Date: 2025-03-13 01:41:55
Score: 1
Natty:
Report link

I suggest to use the Qt::mightBeRichText function.

As the official Qt documentation states:

Returns true if the string text is likely to be rich text; otherwise returns false.

Although it might detect if it is rich text, in my opinion it's an accurate approach.

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

79505206

Date: 2025-03-13 01:29:54
Score: 2
Natty:
Report link

I cannot color your cells but we can at least beautify them. You can directly use HTML tags <fieldset>,<legend> and <center> and <b> to make text boxes with their own special little headings that are bold, with centered text inside as well. It looks very nice, no running of code is needed. Unfortunately, no colors. Yet.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Tyler

79505203

Date: 2025-03-13 01:28:53
Score: 0.5
Natty:
Report link

Not aware of any method to do this automatically, and given that AMIs don't have a kubernetes attribute the only way is either via tags if your using custom amis and/or by name. For example you could extend your ami selector like so:

  amiSelectorTerms:
      - name: "amazon-eks-node-1.30-*"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kris.J

79505201

Date: 2025-03-13 01:26:53
Score: 3
Natty:
Report link

set the version of nuxt SEO to 2.1.1 for now, they havent even update the documentation

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

79505200

Date: 2025-03-13 01:25:53
Score: 2.5
Natty:
Report link

pure logic:

first: get only 'day' part of 'date' cmd. save it.

then: increment it by one, check overflow(february or march) and apply with 'overflow fix' if needed.

final: put new value back to 'date format'

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

79505197

Date: 2025-03-13 01:17:52
Score: 3.5
Natty:
Report link

can you specify please what do you mean by generating your swagger doc using javadocs instead of swagger annotations

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: HAFIDA FAOUZI

79505191

Date: 2025-03-13 01:09:50
Score: 3
Natty:
Report link

Currently Docker hub is only supported to use registry mirror to my knowledge as I don't see any mention of it on the ECR documentation. I have found a feature request for you're asking for

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

79505190

Date: 2025-03-13 01:07:50
Score: 1
Natty:
Report link

So.. just in case any else comes here like me.. We used to have a profiler in android studio
View> Tool Window > Profiler..

and it would show you all the activities as you move throughout the app.. In Meerkat, its a bit more hidden, but still there,

  1. Run the app in the emulator

  2. open profiler

  3. select Find CPU Hotspots

  4. click btn Start anyway

  5. use ur app..

Then u will get the recording of the activities used.

enter image description here

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

79505181

Date: 2025-03-13 00:56:48
Score: 1.5
Natty:
Report link

If you're still facing this error on browser-side:

you have to specify type="module" on the script tag

<script type="module" src="main.js"></script>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pdor

79505178

Date: 2025-03-13 00:55:48
Score: 1
Natty:
Report link

You are getting this error because you haven't installed Pandas. While you might have Pandas installed in Anaconda (which is why it works there), to work in IDE you'll need to install Pandas through pip install pandas or similar.

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

79505176

Date: 2025-03-13 00:53:47
Score: 1.5
Natty:
Report link
  1. Check Hibernate SQL Output
    Enable SQL query logging to see what queries Hibernate is executing:
    Add this to application.properties:

    spring.jpa.show-sql=true
    spring.jpa.properties.hibernate.format_sql=true

  2. Check the console logs when making the GET request. If Hibernate is querying player_stats instead of "Player_Stats", it means case sensitivity is the problem.
    Ensure Entity Scanning Is Enabled
    This ensures Spring Boot recognizes Player as a valid entity.

  3. Try changing to @Service on PlayerService and check

  4. PostgreSQL treats unquoted table names as lowercase by default. Your entity is mapped to "Player_Stats" (with mixed case), but Spring Boot, by default, generates queries using lowercase (player_stats).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Service
  • Low reputation (0.5):
Posted by: Jangachary

79505175

Date: 2025-03-13 00:52:47
Score: 3
Natty:
Report link

try : " from moviepy import VideoFileClip" instead of "from moviepy.editor import VideoFileClip". It works.

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

79505171

Date: 2025-03-13 00:45:46
Score: 0.5
Natty:
Report link

According to the OP in the comments:

The macs I was working on had python 2.7 installed; I wrote the program on a windows machine using python 3.7. To solve the problem, I installed python3, used pip3 install pandas numpy (since pip by itself was installing the modules to 2.7), and then pip3 install xlrd.

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

79505169

Date: 2025-03-13 00:43:45
Score: 2.5
Natty:
Report link

You have 2 options to copy tables from one storage account to another.

If you are doing this just once Azure storage explorer is best but use ADF pipelines it this is repetitive exercise.

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

79505165

Date: 2025-03-13 00:40:45
Score: 2.5
Natty:
Report link

No extra work needed. As long as reCAPTCHA is enabled and properly configured in the admin panel, Magento automatically takes care of validating the response before processing the registration. If the reCAPTCHA fails, the form submission is rejected.

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