79512379

Date: 2025-03-16 09:59:42
Score: 3.5
Natty:
Report link

This was solved by spark support - the issue was that in PADDLE, product catalog, you should not specify a number for trial days.

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

79512365

Date: 2025-03-16 09:45:39
Score: 2
Natty:
Report link

It's great to see your structured approach to organizing an Android project! Your thoughtful exploration of MVC in Android shows a strong commitment to clean architecture, which is essential for maintainable and scalable apps.

https://iimskills.com/medical-coding-courses-in-delhi/[iimskills medical coading cources in delhi](https://iimskills.com/medical-coding-courses-in-delhi/)

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

79512361

Date: 2025-03-16 09:42:38
Score: 1.5
Natty:
Report link

If the bin is private, you might also need an access key which you can add to your headers. Below is straight from the manual: https://jsonbin.io/api-reference/bins/read "X-Access-Key Required You can now access your private records with X-Access-Key header too. Refer to the FAQs for more information on X-Access-Key. Make sure you've granted Bins Read Access Permission to the Access Key you'll be using. You can create Access Keys on API Keys page."

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

79512356

Date: 2025-03-16 09:37:37
Score: 3
Natty:
Report link

If anyone still has this problem, the trick is to set pages first, posts second, then it works.

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

79512348

Date: 2025-03-16 09:31:36
Score: 2
Natty:
Report link

If anyone runs into the same problem:

The only solution I found was by switching to Azure Flexible Consumption plan to allow for vnet integration and then using a vnet / service endpoint to let the Azure Function access KeyVault secrets.

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

79512346

Date: 2025-03-16 09:30:36
Score: 4
Natty:
Report link

Thanks a lot. Yes, using the . solved the problem. Many thanks again for taking the time.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ricky Babosa

79512342

Date: 2025-03-16 09:23:35
Score: 0.5
Natty:
Report link

In my case ,Uninstalling my Homebrew version with: brew uninstall shopify-cli works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: peiting sun

79512334

Date: 2025-03-16 09:12:33
Score: 2.5
Natty:
Report link

As of 2025, you can just pip install triton-windows

More information on installing and troubleshooting is at https://github.com/woct0rdho/triton-windows

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

79512332

Date: 2025-03-16 09:12:33
Score: 3.5
Natty:
Report link

go to https://github.com/Purfview/whisper-standalone-win/releases/tag/libs download cuBLAS.and.cuDNN_CUDA12_win_v2.7z and add it do your cuda bin

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

79512323

Date: 2025-03-16 09:03:29
Score: 7 🚩
Natty:
Report link

I manage to fix this problem. The the new problem what i have its, this extension cannot update the quantity from stock. How to fix this?

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix this?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jzz TV

79512312

Date: 2025-03-16 08:56:28
Score: 2.5
Natty:
Report link

Since the 'id' column in both tables so, you have to specify the table for the name property in the where clause you're referring to .

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

79512309

Date: 2025-03-16 08:53:27
Score: 2
Natty:
Report link

Node.js as of V22 supports running .ts files natively with --experimental-strip-types flag.

I've got it working locally, was pretty straight forward to adjust my code, just need to follow a few rules here

In the AWS Lambda config I have added an environment variable NODE_OPTIONS with --experimental-strip-types and I've changed the runtime settings to handler.ts.handler, but I get the same error as above.

I feel like it should work but just missing some link.

Reasons:
  • RegEx Blacklisted phrase (1): I get the same error
  • Has code block (-0.5):
  • Me too answer (2.5): I get the same error
  • High reputation (-1):
Posted by: Simon Hutchison

79512304

Date: 2025-03-16 08:47:26
Score: 3
Natty:
Report link
import 'package:retrofit/retrofit.dart';
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mux Tsou

79512301

Date: 2025-03-16 08:45:26
Score: 1
Natty:
Report link

Since there are no official fwd headers, we're quite lost here.

Probably the only thing one might then resort to is consuming a definitely most official/central other provider of such fwd header implementations - such as https://github.com/Philip-Trettner/cpp-std-fwd (but as its README prominently states, this firmly is UB land - and of course consuming one old version of that project - and not keeping it updated!? - is far less reliable still than always having supplied directly matching fwd headers to official STL headers, with your compiler installation footprint).

That's why IMHO it is very important that API providers do also supply official/central fwd.h headers for their (changing!?) types. Since it is not the consumer's job to be doing dangerous guesswork.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: LinuxDev

79512298

Date: 2025-03-16 08:43:26
Score: 1.5
Natty:
Report link

Check on the form definition in the reverse button state

 $('button[type="submit"]',  $('#reused_form'))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fredrick mwenda

79512294

Date: 2025-03-16 08:39:25
Score: 5.5
Natty: 6
Report link

can btcrecover help in recovery passphrase of pi wallet

if so, please help with directive

note> I have the wallet receive addresss and the passphrase with two or three word spells wrongly.

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: okposo brain

79512277

Date: 2025-03-16 08:21:22
Score: 2.5
Natty:
Report link

The solution was in the mingw compiler, I started from scratch with MSYS and installed freeglut from there then it worked

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

79512272

Date: 2025-03-16 08:11:20
Score: 3
Natty:
Report link

HR is not mandatory, because you might do something more safe than HR, e.g. a complete tests instead of one that achieves only some highly reccommended metrics.

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

79512265

Date: 2025-03-16 08:08:19
Score: 5
Natty: 4.5
Report link

Here is a new one in a development.

https://github.com/Oldes/Rebol-Postgres

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

79512259

Date: 2025-03-16 08:00:18
Score: 1
Natty:
Report link

The updated build number only persists in 1 stage, in the next stage you lose the updated build number, please see https://developercommunity.visualstudio.com/t/updatebuildnumber-does-not-update-build-number-in/561032 for more detail. Either update it each stage by passing it over or re-do what you're doing the first stage. The Environments tab likely shows the build number from the last attempted stage (probably your deploy stages).

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: r3verse

79512256

Date: 2025-03-16 07:53:17
Score: 1
Natty:
Report link

It's quite sad IMHO that there are no sub component headers offered - only these massive collection headers (<filesystem>, <string>, <algorithm> - as opposed to boost's path.hpp etc.), yet then we don't even have some ...fwd headers standardized either (other than <iosfwd>).

https://github.com/ned14/stl-header-heft

Makes one wonder whether the committee did its proper job for non-sunshine-path situations (multi-million LOC code-bases), and whether it is such a good idea to be designing minimalist interface headers with filesystem-specifically-typed arguments - perhaps one would choose to resort to plain string-based filesystem item arguments then...

Not to mention that std::filesystem appears to be more problematic encoding-handling-wise than boost::filesystem (see discussion on SO) - but I digress.

| Could you make such a header? Also, no.

That's why IMHO it is very important that API providers do also supply official/central fwd.h headers for their (changing!?) types. Since it is not the consumer's job to be doing dangerous guesswork.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: LinuxDev

79512255

Date: 2025-03-16 07:53:17
Score: 3.5
Natty:
Report link

I Frame Sta Https Www Xbox Es Em befarme Un coi pame 5843 I Frame borde 0 With 510 Haight 400 Scrolling No All flow full screen All Flow full screen I Frame

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

79512254

Date: 2025-03-16 07:53:17
Score: 3
Natty:
Report link

Try listening for interruption events like the example in the audio_session documentation.

https://pub.dev/packages/audio_session#reacting-to-audio-interruptions

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

79512244

Date: 2025-03-16 07:41:13
Score: 8 🚩
Natty: 4.5
Report link

Hey I need a permit to create Microsoft computer training program at by using the signature of the company I'll give my details yeah this is my name is valla Venkat Sai Rahul you please give the next this name on this can you please send certification

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): please give
  • RegEx Blacklisted phrase (2.5): can you please send
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rahul Bolla

79512223

Date: 2025-03-16 07:13:08
Score: 5
Natty: 4
Report link

did you create a project because of the

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: bill gate

79512222

Date: 2025-03-16 07:12:08
Score: 4
Natty: 6.5
Report link

Thank you for answering your question. I was losing my mind. Trying to figure out why my config wasn't pulling all the data I needed

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sentry2703

79512218

Date: 2025-03-16 07:00:06
Score: 2.5
Natty:
Report link

I have recently came across the same issue.

I had to "Sync Project with Gradle files".

Screenshot

After syncing Run worked

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

79512215

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

Do some debugging step wise

  1. Confirm proper driver from the manufacturer or https://github.com/ARMmbed/DAPLink

  2. Check if its appearing fine in device manager

  3. Now if keil finds it, then select the DAPlink, if it does not work use openocd or pyocd

  4. Check the connection wiring specific to DAPlink

  5. Now confirm power on target via bluepill if the the board consumes more power then it may not work check the voltage otherwise use external power

  6. Check if its resetiing

  7. if it does not work try with alternative software, instead of keil use openocd or pyocd

  8. check for conflicting software, if any other software keeping it busy

  9. check stm32 boot pin settings as required for bootloader its necessary, on bluepill this is controlled via the boot0 tactile switch

  10. there may be a usb port or cable issue too but generally its detected by the OS and warned to user

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

79512214

Date: 2025-03-16 06:56:05
Score: 2.5
Natty:
Report link

It's not a good practice, but in my case, I also need to `pip install sqlalchemy ` outside of my virtual environment.

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

79512213

Date: 2025-03-16 06:56:05
Score: 3
Natty:
Report link

I think you have an internet issue, and you can fix this error by connecting to the internet.

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

79512204

Date: 2025-03-16 06:45:03
Score: 0.5
Natty:
Report link

I found the problem. My step was not working properly. new step function for Fluid:

fn step(&mut self) {
        const ITER: i32 = 16;

        diffuse(1, &mut self.vx0, &mut self.vx, self.visc, self.dt, ITER);
        diffuse(2, &mut self.vy0, &mut self.vy, self.visc, self.dt, ITER);

        project(
            &mut self.vx0,
            &mut self.vy0,
            &mut self.vx,
            &mut self.vy,
            ITER,
        );

        advect(
            1,
            &mut self.vx,
            Axis::X,
            &mut self.vx0,
            &mut self.vy0,
            self.dt,
        );
        advect(
            2,
            &mut self.vy,
            Axis::Y,
            &mut self.vx0,
            &mut self.vy0,
            self.dt,
        );

        project(
            &mut self.vx,
            &mut self.vy,
            &mut self.vx0,
            &mut self.vy0,
            ITER,
        );

        diffuse(0, &mut self.s, &mut self.density, self.diff, self.dt, ITER);
        advect2(
            0,
            &mut self.density,
            &mut self.s,
            &mut self.vx,
            &mut self.vy,
            self.dt,
        );

        set_bnd(1, &mut self.vx);
        set_bnd(2, &mut self.vy);
        set_bnd(0, &mut self.density);
    }

and added an advect2 function which functions same way as defined in the jos stam solver on which mine is based on. Here is the code:

fn advect2<'a>(
    b: usize,
    d: &mut Array2D,
    d0: &mut Array2D,
    vx: &'a mut Array2D,
    vy: &'a mut Array2D,
    dt: f32,
) {
    let dtx = dt * (N - 2) as f32;
    let dty = dt * (N - 2) as f32;

    let n_float = N as f32;

    let (mut i0, mut i1, mut j0, mut j1);
    let (mut tmp1, mut tmp2, mut x, mut y);
    let (mut s0, mut s1, mut t0, mut t1);

    for i in 1..(N - 1) {
        for j in 1..(N - 1) {
            tmp1 = dtx * vx[i][j];
            tmp2 = dty * vy[i][j];

            x = i as f32 - tmp1;
            y = j as f32 - tmp2;

            x = clamp(x, 0.5, n_float + 0.5);
            i0 = x.floor();
            i1 = i0 + 1.0;

            y = clamp(y, 0.5, n_float + 0.5);
            j0 = y.floor();
            j1 = j0 + 1.0;

            s1 = x - i0;
            s0 = 1.0 - s1;
            t1 = y - j0;
            t0 = 1.0 - t1;

            let i0i = i0 as usize;
            let i1i = i1 as usize;
            let j0i = j0 as usize;
            let j1i = j1 as usize;

            d[i][j] = s0 * (t0 * d0[i0i][j0i] + t1 * d0[i0i][j1i])
                + s1 * (t0 * d0[i1i][j0i] + t1 * d0[i1i][j1i]);
        }
    }

    set_bnd(b, d);
}
Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yash Joshi

79512202

Date: 2025-03-16 06:43:02
Score: 2.5
Natty:
Report link

For future reference, if you run the windows installer, after installing iis and setting up sites, the installer does the rest, then just run your app.

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

79512196

Date: 2025-03-16 06:33:00
Score: 0.5
Natty:
Report link

Power Query cannot directly call VBA, and it looks like the Refresh All doesn't generate an event. You can however, simulate the event hook ('trigger macro on Refresh All'): just execute VBA when a specific cell changes, and then ensure that RefreshAll always triggers PQ to change that specific cell.

You really only need the MS tutorial. Set up PQ to modify the cell you watch:
https://learn.microsoft.com/en-us/office/troubleshoot/excel/run-macro-cells-change)

As a test, I placed NOW() in a table, loaded that table into PQ, and then loaded the PQ output into A2. I modify the MS tutorial code to watch A3 for changes. Running Refresh All makes PQ update A3, and that triggers the VBA (image below shows popup after pressing Refresh All).

enter image description here

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

79512195

Date: 2025-03-16 06:33:00
Score: 5
Natty: 4.5
Report link

Do you want time like this website
http://freecine.store/

I used timer of 5 seconds so i can help you to apply same strategy. But my website is in wordpress CMS can you tell me your built in technology.

Reasons:
  • RegEx Blacklisted phrase (2.5): can you tell me your
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Salamat shah

79512192

Date: 2025-03-16 06:27:59
Score: 3
Natty:
Report link

df = pd.DataFrame([[1,2,3,4],[5,6,7,8],[9,10,11,12]], columns = ['A', 'B', 'A1', 'B1'])

dfA = df[['A','B']]

dfB = df[['A1','B1']]

dfB = dfB.rename(columns = {'A1':'A', 'B1':'B'})

dfA['id'] = 1

dfB['id'] = 2

dfC = pd.concat([dfA, dfB])

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

79512187

Date: 2025-03-16 06:18:58
Score: 1
Natty:
Report link

From macOS 14, you only need one line of code to extend the background style to the triangle area.

let popover = NSPopover()
popover.hasFullSizeContent = true //this!

This is really crazy. Apple didn't solve this problem until 10 years later.

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

79512183

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

I think you need to apply styles targeting TextField as well. According your screenshot thats the missing part.

...

renderInput={(params) => (
    <TextField
    {...params}
    label="Movie"
    slotProps={{
        inputLabel: { style: { color: "black" } },
    }}
    sx={{
        "& .MuiOutlinedInput-root": {
        color: "black",
        "& fieldset": { borderColor: "black" },
        "&:hover fieldset": { borderColor: "black" },
        "&.Mui-focused fieldset": { borderColor: "black" },
        },
    }}
    />
)}

...

enter image description here

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

79512181

Date: 2025-03-16 06:14:56
Score: 2
Natty:
Report link

Ok so apparantly I had the automatic git repo creation on in VS Code (and also clicked on the pop up).

So lesson learnt: Never keep any setting for git repo creation on in code editor, read what the pop-up is saying before clicking on them because VS Code relies on pop-ups quite a lot for making tasks easier. And always create a repo though the terminal.

Note: The issue was resolved in the comments.

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

79512179

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

AssemblyPublicizer also adds AllowUnsafeBlocks to the project, according to this comment.

So maybe try add something like this to your project:

        <PropertyGroup>
            <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
        </PropertyGroup>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: normanr

79512169

Date: 2025-03-16 05:57:54
Score: 1.5
Natty:
Report link

I believe you are understanding this in a wrong sense.

You do not

Need LWW if keys are immutable.

You should

Use keys that are immutable if DB is of type LWW.

The pre-condition here is not that "keys are immutable". Precondition is "DB is LWW"; and conclusion is not "Need LWW". Conclusion is "given pre-condition DB is LWW, you need to make keys immutable"

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

79512163

Date: 2025-03-16 05:48:53
Score: 3
Natty:
Report link

If anyone is using the google_sign_in in Flutter, make sure to follow this structure in your info.plist as shown in the example: https://github.com/flutter/packages/blob/main/packages/google_sign_in/google_sign_in/example/ios/Runner/Info.plist

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

79512152

Date: 2025-03-16 05:33:50
Score: 2
Natty:
Report link

#include <studio.h>

Void main()

{

int a,b;

Float c,d,e;

Printf("enter the value of and in integer/n");

Scand("%d%d",&a,&b);

Print f("enter the value c and d in float/n");

Scand("%f%f";&c,&d);

e=(a+b)* c-(c/d)*(a-b);

Print f("result of the expansion is%2f/n"e);

}

gcc program.c -o program

./program

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

79512148

Date: 2025-03-16 05:25:49
Score: 2.5
Natty:
Report link

🚀 Mastering Navigation in Expo Router: Best Practices for Tabs, Stacks & Shared Screens

Struggling with navigation issues in Expo Router? Tabs resetting, incorrect initial screens, or broken back navigation? This detailed guide covers:

✅ Correct folder structure for scalable Expo projects ✅ Setting up Tabs & Stacks the right way ✅ Placing shared screens like Help & Profile without breaking navigation ✅ Fixing back navigation issues with custom solutions

Read the full guide and level up your React Native navigation skills! 🚀🔥

🔗 Check it out here: https://medium.com/@siddhantshelake/best-practices-for-expo-router-tabs-stacks-shared-screens-b3cacc3e8ebb

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Blacklisted phrase (0.5): Check it out
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Siddhant Shelake

79512141

Date: 2025-03-16 05:14:47
Score: 0.5
Natty:
Report link

No, basically there are two major changes. you can follow this guide here

  1. Authentication: for python you can follow this code to get TOKEN

    def get_access_token():
     """Get an access token from the service account."""
     credentials = service_account.Credentials.from_service_account_file(
         FIREBASE_CONFIG,
         scopes=["https://www.googleapis.com/auth/firebase.messaging"]
     )
    
     # Refresh the token
     credentials.refresh(Request())
     return credentials.token
    

    Replace FIREBASE_CONFIG with path to serviceAccountKey.json file

  2. To send FCM messages via post man

    • URL is now changed to https://fcm.googleapis.com/v1/projects/{PROJECT_NAME}/messages:send

    • Set header Authorization: Bearer {TOKEN}

    • Add Payload

      {
          "message": {
              "token": {DEVICE_TOKEN},
              "notification": {
                  "title": "Test Notification",
                  "body": "This is a test notification with an image."
              },
              "apns": {
                  "payload": {
                      "aps": {
                          "mutable-content": 1,
                          "sound": "default"
                      }
                  }
              },
              "data": {
                  "image": "https://www.equitytool.org/wp-content/uploads/2015/06/SmallSample.png"
              }
          }
      }
      

      Replace DEVICE_TOKEN with FCM device token, mutable-content:1 is set to invoke NotificationServiceExtension in iOS.
      To send multiple deviceTokens, you can make use for multicast endpoint

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

79512133

Date: 2025-03-16 05:04:45
Score: 3
Natty:
Report link

In order to further debug, we need to know

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

79512125

Date: 2025-03-16 04:48:43
Score: 1
Natty:
Report link

import cv2

import numpy as np

# Load the image using OpenCV

image_cv = cv2.imread(image_path)

# Get the dimensions of the image

height, width, _ = image_cv.shape

# Split the image into two halves (left and right)

left_half = image_cv[:, :width//2]

right_half = image_cv[:, width//2:]

# Resize both halves to have the same height

new_width = min(left_half.shape[1], right_half.shape[1])

left_half_resized = cv2.resize(left_half, (new_width, height))

right_half_resized = cv2.resize(right_half, (new_width, height))

# Merge the two images smoothly

merged_image = np.hstack((left_half_resized, right_half_resized))

# Save the merged image

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

cv2.imwrite(merged_image_path, merged_image)

# Return the path of the merged image

merged_image_path

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: สาริกา

79512119

Date: 2025-03-16 04:37:41
Score: 0.5
Natty:
Report link

Ok, found a solution. It was to move the logic outside of the bash code.

 parameters:
   - name: strValue

 steps:
 - task: Bash@3
   condition: ${{ eq(parameters.strValue, 'valueX') }}
   displayName: 'Do stuff'
   inputs:
     targetType: inline
     script: |
       ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: benjamin.keen

79512118

Date: 2025-03-16 04:35:40
Score: 5.5
Natty: 5.5
Report link

Fitsumking7 strong textttyyhhhjjhhhhghbhhjjjjjjjjiiiiiiiiiiiijjjj

Blockquote

Reasons:
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Filler text (0.5): jjjjjjjj
  • Filler text (0): iiiiiiiiiiii
  • Low reputation (1):
Posted by: Fitsumking7

79512111

Date: 2025-03-16 04:20:37
Score: 4.5
Natty:
Report link

Ask ChatGPT, this is a simple answer.

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

79512101

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

they changed the lay out but it is there to add yourself. i was having this issue for like 2 hours and came back here and found it. hope this pic helps

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

79512100

Date: 2025-03-16 04:06:34
Score: 2
Natty:
Report link

You can just change xamp to Laravel herd. When you use Laravel Herd, you don't need to run any command, just keep the project in the Herd folder and in your browser hit project__name.test this will work for every project.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdullah Al Shahed

79512092

Date: 2025-03-16 03:56:33
Score: 0.5
Natty:
Report link

Racket doesn't have them, a simple way to define them is:

;; decrement operator
(define (-1+ x)
  (- x 1))

;; increment operator
(define (1+ x)
  (+ x 1))

The solutions above are correct, but indirect. The question is primarily about -1+ and 1+.

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

79512081

Date: 2025-03-16 03:36:29
Score: 0.5
Natty:
Report link

Good question. In short, if your code only run in modern browser(Support ES6), it's necessary to set prototype manually. Reference from MDN:

In ES2015, constructors which return an object implicitly substitute the value of this for any callers of super(...). It is necessary for generated constructor code to capture any potential return value of super(...) and replace it with this.

As a result, subclassing Error, Array, and others may no longer work as expected. This is due to the fact that constructor functions for Error, Array, and the like use ECMAScript 6's new.target to adjust the prototype chain; however, there is no way to ensure a value for new.target when invoking a constructor in ECMAScript 5. Other downlevel compilers generally have the same limitation by default.

Here are some useful link for detail:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error

https://github.com/microsoft/TypeScript/wiki/FAQ#why-doesnt-extending-built-ins-like-error-array-and-map-work

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target

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

79512069

Date: 2025-03-16 03:11:25
Score: 1
Natty:
Report link

The answer is to use SCSS. I didn't realize the difference in synctax.

<style lang="scss">
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Bill

79512067

Date: 2025-03-16 03:08:25
Score: 1
Natty:
Report link

salut a tous , j'ai un sérieux problème que je n'arrive pas a résoudre.

lorsque je veux générer un fichier Word avec Rmarkdown

Erreur dans loadNamespace(x) : aucun package nommé 'gdalUtils' n'est trouvé
Appels : loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Exécution arrêtée
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Moutouwali Fadoul

79512065

Date: 2025-03-16 03:06:24
Score: 6.5
Natty: 7.5
Report link

Definitely check this article -> https://blog.nashtechglobal.com/how-to-deploy-express-js-to-vercel/

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cris

79512061

Date: 2025-03-16 03:02:23
Score: 5.5
Natty: 7
Report link

This documentation maybe will help a bit: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Light-colorTemperature.html

Reasons:
  • Blacklisted phrase (1): This document
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Creative Carve Cite Climb

79512059

Date: 2025-03-16 02:59:22
Score: 3
Natty:
Report link

I think this is a bug in Nestjs, and it does not only applies to the Enums, also similar problems happens to other forms of file importing.

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

79512057

Date: 2025-03-16 02:57:22
Score: 1.5
Natty:
Report link

I finally figured it out, albeit I’m not sure why what I did worked. I ended up solving this by temporarily commenting out retrofit in the main project pubspec.yaml and building the project.

After this build it did not matter whether retrofit was included or commented out anymore in the pubspec.yaml of the main project.

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

79512053

Date: 2025-03-16 02:45:20
Score: 1.5
Natty:
Report link

You can run the generator with this argument:

--type-mappings=string+date-time=Date

or this:

--type-mappings=DateTime=Date
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luan Gong

79512049

Date: 2025-03-16 02:34:18
Score: 1.5
Natty:
Report link

I found an insightful answer by @AviFS in this answer, which explains this well. Here's a key part of their explanation:

Just replace in your .css:

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

with:

@import "tailwindcss";
@config "../../tailwind.config.js";
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @AviFS
  • Low reputation (0.5):
Posted by: Asiri Piyajanaka

79512032

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

One day one of my projects suddenly stopped showing files and it was this issue for me.

enter image description here

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

79512029

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

Explore the breathtaking beauty of Musandam Oman with hassle-free Musandam tour packages. From its stunning mountain ranges to its crystal-clear waters, this is a must-see destination for any nature lover. Come see why it’s known as the “Norway of Arabia”!

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

79512027

Date: 2025-03-16 02:02:13
Score: 1
Natty:
Report link

There is some history to this problem.

I was able to call dylib with MACOS Catalina using HPC gfortran to compile and link.

Under BIG SUR, I was unable to call dylibs using gfortran to link, but succeeded in calling one of several dylibs linked by clang. The behavior is inconsistent.

Now attempting to compile and link on a MacBookPro M4 using HPC gfortran binary to compile and link with either gfortran or clang but so far have no luck. Using the same location /Library/Application Support/Microsoft/

Using install_name_tool to change dylib id. See below. This used to work well, but no more with Sequoia 15.3.1.

Will continue with this effort.

    install_name_tool -id /Library/ApplicationSupport/Microsoft/libmydylib.dylib libmydylib.dylib
Reasons:
  • Blacklisted phrase (1): no luck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: JTNelson

79512025

Date: 2025-03-16 01:54:12
Score: 0.5
Natty:
Report link

If you do not enable account selection, the account selection screen will be skipped as long as the bank does not have an OAuth account selection screen. If the bank has its own OAuth account selection screen, the Plaid account selection screen will also be shown, in order to handle the scenario in which the user makes different selections in the bank-owned OAuth account selection flow than they did the first time through. In Sandbox, all OAuth banks show an account selection screen. In Production, most OAuth banks do, but not all of them. See https://plaid.com/docs/api/link/#link-token-create-request-update-account-selection-enabled

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Alex

79512024

Date: 2025-03-16 01:53:11
Score: 2.5
Natty:
Report link

for me it was because my python script had #!/usr/bin/python but that symlink didn't exist on my system on a fresh install, I needed:

sudo ln -n /usr/bin/python3 /usr/bin/python

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: RAM

79512020

Date: 2025-03-16 01:46:10
Score: 1.5
Natty:
Report link

In order to preserve existing behaviour, you need to set this property

camel.rest.inline-routes = false 

in all versions post 4.7.x.

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

79511998

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

I had the same issue. One of my directories was named C# Practice. It would not recognize any file or directories with it, even if unrelated to .cs files. I believe neovim has some issue with the # character as when I tried to make a file with # in the name it asked me to substitute it. If you have any files or directories with the # or maybe any other special character try removing that character. I simply changed mine to CS Practice and now it works fine.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Garrett Briggs

79511987

Date: 2025-03-16 00:58:02
Score: 3
Natty:
Report link

Unfortunately, NO.

Docker daemon is limited in this regard. It uses DNS services and static host files of the host machine.

Docs: https://docs.docker.com/engine/network/#embedded-dns-server

To work around this issue folks recommend running another container with a proper DNS server (such as ) and configure Docker to use it: https://serverfault.com/questions/612075/how-to-configure-custom-dns-server-with-docker

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

79511974

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

I did it this way: https://github.com/generate94/convert_dll_to_lib/blob/main/README.md (includes an executable along w the source code)

basically:

Extract Exports – Run dumpbin /EXPORTS on the DLL to list exports.

Create .def – Write LIBRARY <DLL_NAME> and EXPORTS header.

Generate .lib – Use lib.exe /DEF:<def file> /OUT:<lib file>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Magic Ind. Dev

79511971

Date: 2025-03-16 00:46:00
Score: 5
Natty:
Report link

What is the current directory? Very likely the path in which the executable resides.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Nobody

79511962

Date: 2025-03-16 00:28:57
Score: 0.5
Natty:
Report link

How to Resize a std::string in C++ Without Changing Its Capacity

When working with std::string in C++, resizing it is straightforward, but ensuring its capacity (the allocated memory size) stays the same can be confusing. Let’s break down how to resize a string while preserving its capacity—no jargon, just clarity.


What Are size() and capacity()?

For example:

cpp

Copy

std::string str = "Hello";  
std::cout << str.size();      // Output: 5  
std::cout << str.capacity();  // Output: 15 (varies by compiler)  

How Resizing Affects Capacity

The resize() method changes the size() of the string. However:

  1. If you increase the size beyond the current capacity(), the string reallocates memory, increasing capacity.

  2. If you decrease the size, the capacity() usually stays the same (no memory is freed by default).

Example:

cpp

Copy

std::string str = "Hello";  
str.reserve(20);  // Force capacity to 20  
str.resize(10);   // Size becomes 10, capacity remains 20  
str.resize(25);   // Size 25, capacity increases (now ≥25)  

How to Resize a String and Keep the Same Capacity

To avoid changing the capacity, ensure the new size() does not exceed the current capacity():

Step 1: Check the current capacity.

cpp

Copy

size_t current_cap = str.capacity();  

Step 2: Resize within the current capacity.

cpp

Copy

str.resize(new_size);  // Only works if new_size ≤ current_cap  

Full Example:

cpp

Copy

#include <iostream>  
#include <string>  

int main() {  
    std::string str = "C++ is fun!";  
    str.reserve(50);  // Set capacity to 50  

    std::cout << "Original capacity: " << str.capacity() << "\n"; // 50  

    // Resize to 20 (within capacity)  
    str.resize(20);  
    std::cout << "New size: " << str.size() << "\n";      // 20  
    std::cout << "Capacity remains: " << str.capacity();  // 50  

    return 0;  
}  

Read More...

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: dooo. xxturtu

79511960

Date: 2025-03-16 00:26:57
Score: 0.5
Natty:
Report link

From what I see, the snapshot from your StreamBuilder is not in use, you might as well remove the StreamBuilder.

Anytime you setState, your StreamBuilder rebuilds which might cause all the functions in there to get called multiple times and cause an infinite loop.

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

79511931

Date: 2025-03-15 23:42:50
Score: 1
Natty:
Report link

If you suck at CLIs just do the following:

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

79511928

Date: 2025-03-15 23:39:49
Score: 3.5
Natty:
Report link

this might help:

foreach ($_SERVER as $parm => $value) echo "<BR>$parm = '$value'<BR>";

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

79511922

Date: 2025-03-15 23:28:45
Score: 7 🚩
Natty: 4
Report link

Any answer? I have the same issue.

BR

Paco

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Francisco

79511921

Date: 2025-03-15 23:27:45
Score: 2
Natty:
Report link

réponse un peu tardive mais j'ai moi même eu du mal à trouver l'info puis en voyant ton post ça ma orienté sur une autre piste.

# files

[System.IO.FileInfo[]]$files = $([System.IO.Directory]::EnumerateFiles($PWD,"*.*",[System.IO.SearchOption]::AllDirectories)) | %{ [System.IO.FileInfo]$_ }

# custom properties

$files | select BaseName,Name,FullName,Length | Export-Csv -Path $PWD\filelist.csv -Delimiter ';' -NoTypeInformation -Encoding UTF8

# files - splat

$files_ps = @{ Property = @( "BaseName","Name","FullName","Length" ) }

$files = $([System.IO.Directory]::EnumerateFiles($PWD,"*.*",[System.IO.SearchOption]::AllDirectories)) | %{ [System.IO.FileInfo]$_ | select @files_ps }

$files | Export-Csv -Path $PWD\filelist.csv -Delimiter ';' -NoTypeInformation -Encoding UTF8

# directory

[System.IO.DirectoryInfo[]]$directory = [System.IO.Directory]::EnumerateDirectories($PWD,"*",[System.IO.SearchOption]::AllDirectories)

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

79511917

Date: 2025-03-15 23:17:43
Score: 1.5
Natty:
Report link

Error is of missing namespace in the flutter_secure_storage package. To fix this, you’ll need to update the package to a version where the namespace is added.

Just make sure to replace flutter_secure_storage: ^9.2.4 in your pubspec.yaml file and using latest flutter SDK version. This simple change should resolve your issue.

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

79511916

Date: 2025-03-15 23:16:43
Score: 2
Natty:
Report link

nice, but

➜ ~ sudo apt install linux-firmware
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-firmware

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

79511910

Date: 2025-03-15 23:03:41
Score: 2.5
Natty:
Report link

Upgrade the tflite package compileSdkVersion to 34

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

79511901

Date: 2025-03-15 22:49:38
Score: 2
Natty:
Report link

I ended up to this:

It's probably bad approach (because even if I'm an admin I need to wait for additional request to be finished) but it works. There is a mention about server side rendering in the comments but I didn't have enough time to invest into researching & implementing this even though it's probably the way to go.

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

79511893

Date: 2025-03-15 22:46:37
Score: 2
Natty:
Report link

You cannot set the value of a property if it is null or undefined (as indicated by the ?.)

You should check that the property exists first and then set it:

if (statusUpdateRefreshReasonRef.current) {
    statusUpdateRefreshReasonRef.current.value = cloneStatusUpdateClone;
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ivo

79511866

Date: 2025-03-15 22:13:32
Score: 1.5
Natty:
Report link

Took a long time to figure out.

  NotificationCenter.default.addObserver(self, selector: #selector(updateGroupxx(notification:)), name: .NSCalendarDayChanged, object: nil)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Misfit

79511863

Date: 2025-03-15 22:12:32
Score: 2
Natty:
Report link
$b = '1';
$a = 'b';
$b = '2';
print "$$a";

Output: 2 (current value of $b).

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

79511840

Date: 2025-03-15 21:46:27
Score: 0.5
Natty:
Report link

The problem is that the executable file suffix is .exe, while running on Linux. A quick and easy fix is to simply change the suffix to .bin, for example:

exe = executable(
  'main.bin', # Do not use .exe here 
  'main.cu',
  link_args: '-fopenmp',
  cuda_args: '-Xcompiler=-fopenmp',
)
test('simple_run', exe)

Should run perfectly well. The decision to try running an .exe file with mono while on Linux, comes from this exact line in meson.

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

79511835

Date: 2025-03-15 21:40:25
Score: 1
Natty:
Report link

you can add multiple --add flags and pass the metadata params like that;

 stripe trigger checkout.session.completed \
    --add checkout_session:metadata.plan="id" \
    --add checkout_session:metadata.user="id"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Devran Şimşek

79511832

Date: 2025-03-15 21:40:25
Score: 1
Natty:
Report link

# Import numpy since it was missing earlier

import numpy as np

# Re-run the log transformation and regression

# Convert 'hourpay' to numeric, forcing errors to NaN

df['hourpay'] = pd.to_numeric(df['hourpay'], errors='coerce')

# Step 1 (revised): Drop missing, zero or negative wages

df = df[df['hourpay'] > 0]

# Create log(wage)

df['log_wage'] = np.log(df['hourpay'])

# Step 2: Motherhood dummy: 1 if has dependent child under 19, 0 otherwise

df['motherhood'] = df['fdpch19'].apply(lambda x: 1 if x > 0 else 0)

# Step 3: Convert categorical variables

df['education'] = df['degcls7'].astype('category')

df['occupation'] = df['occup_group'].astype('category')

df['worktype'] = df['ftpt'].astype('category')

# Step 4: Experience approximation (proxy by age)

df['experience'] = df['age']

# Step 5: Regression formula

formula = 'log_wage ~ motherhood + C(education) + experience + C(occupation) + C(worktype)'

# Step 6: Run OLS regression with robust standard errors

model = smf.ols(formula, data=df).fit(cov_type='HC1')

# Display regression results

model.summary()

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

79511823

Date: 2025-03-15 21:36:25
Score: 0.5
Natty:
Report link

I believe what you're looking for is:

HttpResponseMessage response = await httpClient.GetAsync(uri);
if (response.Headers.Location == new Uri(some_uri_string)) {
  return true;
}

I realize this response is more than a decade late, but I'd thought I'd answer it.

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

79511822

Date: 2025-03-15 21:36:22
Score: 6 🚩
Natty:
Report link

I am not strong in Excel. I have never used script or record. I have a site map with typed numbers in the cells but I want them to have colons because they are MAC address's. I have tried alot of these ideas but it cuts out numbers/letters. If i make a whole copy of just one large set I have got it to work ish. I copy it and erase my old cell info to paste in the new stuff but both disappear when I do it? Any ideas for a learner of this?

Reasons:
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ross Lesher

79511811

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

Raka Putra how did you fix the error

Reasons:
  • Blacklisted phrase (1): how did you fix
  • RegEx Blacklisted phrase (3): did you fix the
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how did you fix the
  • Low reputation (1):
Posted by: Obiajulu

79511795

Date: 2025-03-15 21:21:16
Score: 1
Natty:
Report link

I made progress:

import torch
import onnxruntime_extensions
import onnx
import onnxruntime as ort
import numpy as np
from transformers import GPT2Tokenizer, GPT2LMHeadModel
import subprocess

model_name = "spital/gpt2-small-czech-cs"

model = GPT2LMHeadModel.from_pretrained(model_name)
tokenizer = GPT2Tokenizer.from_pretrained(model_name)

input_text = "Téma: Umělá inteligence v moderní společnosti."

# Export the tokenizers to ONNX using gen_processing_models
onnx_tokenizer_coder_path = "results/v5/model/tokenizer_coder.onnx"
onnx_tokenizer_decoder_path = "results/v5/model/tokenizer_decoder.onnx"

# Generate the tokenizers ONNX model
gen_tokenizer_coder_onnx_model = onnxruntime_extensions.gen_processing_models(tokenizer, pre_kwargs={})[0]
gen_tokenizer_decoder_onnx_model = onnxruntime_extensions.gen_processing_models(tokenizer, post_kwargs={})[1]

# Save the tokenizers ONNX model
with open(onnx_tokenizer_coder_path, "wb") as f:
    f.write(gen_tokenizer_coder_onnx_model.SerializeToString())
with open(onnx_tokenizer_decoder_path, "wb") as f:
    f.write(gen_tokenizer_decoder_onnx_model.SerializeToString())

# Export the Huggingface model to ONNX
onnx_model_path = "results/v5/model/"

# Export the model to ONNX
command = [
    "optimum-cli", "export", "onnx",
    "-m", model_name,
    "--opset", "18",
    "--monolith",
    "--task", "text-generation",
    onnx_model_path
]
subprocess.run(command, check=True)

# Adding position_ids for tokenizer coder for model
add_tokenizer_coder_onnx_model = onnx.load(onnx_tokenizer_coder_path)

shape_node = onnx.helper.make_node(
    "Shape",
    inputs=["input_ids"],
    outputs=["input_shape"]
)

gather_node = onnx.helper.make_node(
    "Gather",
    inputs=["input_shape", "one"],
    outputs=["sequence_length"],
    axis=0
)

cast_node = onnx.helper.make_node(
    "Cast",
    inputs=["sequence_length"],
    outputs=["sequence_length_int"],
    to=onnx.TensorProto.INT64
)

# Creating position_ids node for tokenizer coder for model
position_ids_node = onnx.helper.make_node(
    "Range",
    inputs=["zero", "sequence_length_int", "one"],
    outputs=["shorter_position_ids"]
)

zero_const = onnx.helper.make_tensor("zero", onnx.TensorProto.INT64, [1], [0])
one_const = onnx.helper.make_tensor("one", onnx.TensorProto.INT64, [1], [1])

position_ids_output = onnx.helper.make_tensor_value_info(
    "position_ids",
    onnx.TensorProto.INT64,
    ["sequence_length"]
)

unsqueeze_axes = onnx.helper.make_tensor(
    "unsqueeze_axes",
    onnx.TensorProto.INT64,
    dims=[1],
    vals=[0]
)

expand_node = onnx.helper.make_node(
    "Unsqueeze",
    inputs=["shorter_position_ids", "unsqueeze_axes"],
    outputs=["position_ids"]
)

expanded_position_ids_output = onnx.helper.make_tensor_value_info(
    "position_ids",
    onnx.TensorProto.INT64,
    ["batch_size", "sequence_length"]
)

# Adding position_ids to outputs of tokenizer coder for model
add_tokenizer_coder_onnx_model.graph.node.extend([shape_node, gather_node, cast_node, position_ids_node, expand_node])
add_tokenizer_coder_onnx_model.graph.output.append(expanded_position_ids_output)
add_tokenizer_coder_onnx_model.graph.initializer.extend([zero_const, one_const, unsqueeze_axes])

# Export tokenizer coder with position_ids for model
onnx.save(add_tokenizer_coder_onnx_model, onnx_tokenizer_coder_path)

# Adding operation ArgMax node to transfer logits -> ids
onnx_argmax_model_path = "results/v5/model/argmax.onnx"

ArgMax_node = onnx.helper.make_node(
    "ArgMax",
    inputs=["logits"],
    outputs=["ids"],
    axis=-1,
    keepdims=0
)

# Creating ArgMax graph
ArgMax_graph = onnx.helper.make_graph(
    [ArgMax_node],
    "ArgMaxGraph",
    [onnx.helper.make_tensor_value_info("logits", onnx.TensorProto.FLOAT, ["batch_size", "sequence_length", "vocab_size"])],
    [onnx.helper.make_tensor_value_info("ids", onnx.TensorProto.INT64, ["batch_size", "sequence_length"])]
)

# Creating ArgMax ONNX model
gen_ArgMax_onnx_model = onnx.helper.make_model(ArgMax_graph)

# Exporting ArgMax ONNX model
onnx.save(gen_ArgMax_onnx_model, onnx_argmax_model_path)

# Adding shape for Tokenizer decoder outputs (Assuming shape with batch_size and sequence_length)
add_tokenizer_decoder_onnx_model = onnx.load(onnx_tokenizer_decoder_path)

expanded_shape = onnx.helper.make_tensor_value_info(
    "str",
    onnx.TensorProto.STRING,
    ["batch_size", "sequence_length"]
)

# Adding shape to Tokenizer decoder outputs
output_tensor = add_tokenizer_decoder_onnx_model.graph.output[0]
output_tensor.type.tensor_type.shape.dim.clear()
output_tensor.type.tensor_type.shape.dim.extend(expanded_shape.type.tensor_type.shape.dim)

# Exporting Tokenizer decoder with shape ONNX model
onnx.save(add_tokenizer_decoder_onnx_model, onnx_tokenizer_decoder_path)

# Test Tokenizer coder, Model, ArgMax, Tokenizer decoder using an Inference session with ONNX Runtime Extensions before merging
# Test the tokenizers ONNX model 
# Initialize ONNX Runtime SessionOptions and load custom ops library
sess_options = ort.SessionOptions()
sess_options.register_custom_ops_library(onnxruntime_extensions.get_library_path())

# Initialize ONNX Runtime Inference session with Extensions
coder = ort.InferenceSession(onnx_tokenizer_coder_path, sess_options=sess_options, providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
model = ort.InferenceSession(onnx_model_path + "model.onnx", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
ArgMax = ort.InferenceSession(onnx_argmax_model_path, sess_options=sess_options, providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
decoder = ort.InferenceSession(onnx_tokenizer_decoder_path, sess_options=sess_options, providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])

# Prepare dummy input text
input_feed = {"input_text": np.asarray([input_text])}  # Assuming "input_text" is the input expected by the tokenizers

# Run the tokenizer coder
tokenized = coder.run(None, input_feed)
print("Tokenized:", tokenized)

# Run the model
model_output = model.run(None, {"input_ids": tokenized[0], "attention_mask": tokenized[1], "position_ids": tokenized[2]})
print("Model output (logits):", model_output[0])

# Run the ArgMax
argmax_output = ArgMax.run(None, {"logits": model_output[0]})
print("ArgMax output (token ids):", argmax_output[0])

# Run the tokenizer decoder
detokenized = decoder.run(None, input_feed={"ids": argmax_output[0]})
print("Detokenized:", detokenized)

# Merge the tokenizer and model ONNX files into one
onnx_combined_model_path = "results/v5/model/combined_model_tokenizer.onnx"

# Load the tokenizers and model ONNX files
tokenizer_coder_onnx_model = onnx.load(onnx_tokenizer_coder_path)
model_onnx_model = onnx.load(onnx_model_path + "model.onnx")
ArgMax_onnx_model = onnx.load(onnx_argmax_model_path)
tokenizer_decoder_onnx_model = onnx.load(onnx_tokenizer_decoder_path)

# Inspect the ONNX models to find the correct input/output names
print("\nTokenizer coder Model Inputs:", [node.name for node in tokenizer_coder_onnx_model.graph.input])
print("Tokenizer coder Model Outputs:", [node.name for node in tokenizer_coder_onnx_model.graph.output])
print("Tokenizer coder Model Shape:", [node.type.tensor_type.shape for node in tokenizer_coder_onnx_model.graph.output])
print("Tokenizer coder Model Type:", [node.type.tensor_type.elem_type for node in tokenizer_coder_onnx_model.graph.output])
print("\nModel Inputs:", [node.name for node in model_onnx_model.graph.input])
print("Model Outputs:", [node.name for node in model_onnx_model.graph.output])
print("Model Shape:", [node.type.tensor_type.shape for node in model_onnx_model.graph.output])
print("Model Type:", [node.type.tensor_type.elem_type for node in model_onnx_model.graph.output])
print("\nArgMax Inputs:", [node.name for node in ArgMax_onnx_model.graph.input])
print("ArgMax Outputs:", [node.name for node in ArgMax_onnx_model.graph.output])
print("ArgMax Shape:", [node.type.tensor_type.shape for node in ArgMax_onnx_model.graph.output])
print("ArgMax Type:", [node.type.tensor_type.elem_type for node in ArgMax_onnx_model.graph.output])
print("\nTokenizer decoder Model Inputs:", [node.name for node in tokenizer_decoder_onnx_model.graph.input])
print("Tokenizer decoder Model Outputs:", [node.name for node in tokenizer_decoder_onnx_model.graph.output])
print("Tokenizer decoder Model Shape:", [node.type.tensor_type.shape for node in tokenizer_decoder_onnx_model.graph.output])
print("Tokenizer decoder Model Type:", [node.type.tensor_type.elem_type for node in tokenizer_decoder_onnx_model.graph.output])

# Merge the tokenizer coder and model ONNX files
combined_model = onnx.compose.merge_models(
    tokenizer_coder_onnx_model,
    model_onnx_model,
    io_map=[('input_ids', 'input_ids'), ('attention_mask', 'attention_mask'), ('position_ids', 'position_ids')]
)

# Merge the model and ArgMax ONNX files
combined_model = onnx.compose.merge_models(
    combined_model,
    ArgMax_onnx_model,
    io_map=[('logits', 'logits')]
)

# Merge the ArgMax and tokenizer decoder ONNX files
combined_model = onnx.compose.merge_models(
    combined_model,
    tokenizer_decoder_onnx_model,
    io_map=[('ids', 'ids')]
)

# Check combined ONNX model
inferred_model = onnx.shape_inference.infer_shapes(combined_model)
onnx.checker.check_model(inferred_model)

# Save the combined model
onnx.save(combined_model, onnx_combined_model_path)

# Test the combined ONNX model using an Inference session with ONNX Runtime Extensions
# Initialize ONNX Runtime SessionOptions and load custom ops library
sess_options = ort.SessionOptions()
sess_options.register_custom_ops_library(onnxruntime_extensions.get_library_path())

# Initialize ONNX Runtime Inference session with Extensions
session = ort.InferenceSession(onnx_combined_model_path, sess_options=sess_options, providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])

# Prepare dummy input text
input_feed = {"input_text": np.asarray([input_text])}  # Assuming "input_text" is the input expected by the tokenizer

# Run the model
outputs = session.run(None, input_feed)

# Print the outputs
print("logits:", outputs)

This is example of all in one GPT2 ONNX model with tests.

Now I am trying to make it generate more than one token of text that doesn't make sense I checked onnx_gpt_loop but I don't know how to implement it. I also know that onnx.helper could have tool for this problem as well.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Matej Hudec

79511788

Date: 2025-03-15 21:17:15
Score: 1
Natty:
Report link

It's possibly an issue because of the mismatch with the underlying node version. I ran into this and I was able to upgrade my node version that resolved the issue.

Run:

  1. sudo npm install n -g
  2. n stable

I do not see the issue in the stable version as of today: v22.14.0

Reference: Upgrading Node.js to the latest version

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

79511787

Date: 2025-03-15 21:17:15
Score: 0.5
Natty:
Report link

The problem is in the way you instantiate person, you can do it in the following way:

person = random.sample( people, 1)[ 0 ].

This way, person will only contain the appropriate text.

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

79511782

Date: 2025-03-15 21:11:14
Score: 3
Natty:
Report link

The issue is that your version of Java Spark supports Java 17 and later, but it seems that your Java version is higher than 17.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: daniel josue pena tsopte

79511775

Date: 2025-03-15 21:05:13
Score: 0.5
Natty:
Report link

Here is my solution that I think it better optimize

School.objects.annotate(
    number_of_class=Subquery(
        Class.objects.filter(
            school_id=OuterRef("pk"),
            is_deleted=False,
            # Add additional filters here
        ).values("school_id").annotate(count=Func(F("id"), function="COUNT")).values("count")
    )
)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chanchhunneng chrea

79511769

Date: 2025-03-15 20:58:11
Score: 1.5
Natty:
Report link
from ..folder1.file import *

Try this

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ArtikLamartik

79511759

Date: 2025-03-15 20:55:10
Score: 2
Natty:
Report link

Found the answer, courtesy of GitHub Copilot:

To execute custom logic before navigation, you can wrap the next/link component with a custom component and handle the logic within that component.

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

79511755

Date: 2025-03-15 20:52:10
Score: 1.5
Natty:
Report link

Once you use MediaQuery.of(context).devicePixelRatio or View.of(context).devicePixelRatio,

the size will change as the device size or pixelRatio changes.

Use a constant value like just 160 to have a size of 160 across all screen sizes

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

79511754

Date: 2025-03-15 20:51:07
Score: 7 🚩
Natty: 5.5
Report link

I'm not giving an answer, but rather trying to get this to work for me. I put in the Service, Cluster, and DesiredCount, but nothing happens that I can see. I don't know where to go to see any kind of log to tell me whether or not it ran and/or what the error might be.

Any help would be appreciated.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be appreciated
  • No code block (0.5):
  • Low reputation (1):
Posted by: David

79511746

Date: 2025-03-15 20:45:06
Score: 1.5
Natty:
Report link

I found that explanation really helpful and solved a similar issue for me

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