79700145

Date: 2025-07-13 17:42:03
Score: 3
Natty:
Report link

You should be able to echo the package. So `echo $CMAKE_PREFIX_PATH` to get the directory that you add to the cmake text file

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

79700134

Date: 2025-07-13 17:31:00
Score: 3
Natty:
Report link

Thank you. It seems that, since you wrote this, they have changed the location of their files. https://github.com/n8n-io/n8n/tree/master/packages/editor-ui no longer works, and they don't seem to want to tell you where the initial screen lives. The community felt this was not their problem and Open WebUI does not respond.

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

79700122

Date: 2025-07-13 17:06:55
Score: 3
Natty:
Report link

If I were you, I would provide the graph, format the code and explain further what is not making sense.

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

79700120

Date: 2025-07-13 17:00:53
Score: 2.5
Natty:
Report link

4H: HH → HL → Price consolidating at HL zone

|

|__ 15m: QML forms → CHOCH → FVG → Entry (Shor

t)

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

79700112

Date: 2025-07-13 16:47:51
Score: 3
Natty:
Report link

Running the app on the newly released Wear OS 6 beta (API 36, based on Android 16) solves the issue. The warning no longer appears, which is the expected behavior. On Wear OS 5.1 (API 35) the error stills appears, so I assume Google fixed it in the new version only.

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

79700099

Date: 2025-07-13 16:37:48
Score: 0.5
Natty:
Report link

In the context of an ALL SERVER trigger on DDL_EVENT the:

raiserror (N'ğ', 0, 0) with log

will return the message (N'ğ') to the End User. This is not the behavior of xp_logevent, which is supposed to write the log without "disturbing" the end user.

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

79700094

Date: 2025-07-13 16:27:45
Score: 4
Natty:
Report link

i ended up fixing this by changing the [now - countDownDate] to [countDownDate - now].

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

79700092

Date: 2025-07-13 16:24:44
Score: 0.5
Natty:
Report link

in reference to @Sumit Mahajan 's implementation, twitter has had some updates to their media upload via v2 api.They've now removed the COMMAND= param, and separated the end points for initialize, append and finalize. (i've updated sumit's implementation with the new api endpoints, and used an s3 asset)

https://devcommunity.x.com/t/media-upload-endpoints-update-and-extended-migration-deadline/241818

export const TWITTER_ENDPOINTS = {
  TWITTER_TWEET_URL: "https://api.twitter.com/2/tweets",
  TWITTER_MEDIA_INITIALIZE: "https://api.twitter.com/2/media/upload/initialize",
  TWITTER_MEDIA_APPEND: "https://api.twitter.com/2/media/upload/{id}/append",
  TWITTER_MEDIA_FINALIZE: "https://api.twitter.com/2/media/upload/{id}/finalize",
  TWITTER_MEDIA_STATUS: "https://api.twitter.com/2/media/upload"
} 

const awsMediaResponse = await s3.getObject({
        Bucket: bucket,
        Key: `path/to/s3_file.mp4`,
      }).promise();
    if (!awsMediaResponse.Body) throw new Error("No Body returned from s3 object.");

   
const tokenResponse = await getValidTwitterAccessToken();
     
const buffer = Buffer.isBuffer(awsMediaResponse.Body) ? awsMediaResponse.Body : Buffer.from(awsMediaResponse.Body as Uint8Array);
const totalBytes = buffer.length;
const mediaUint8 = new Uint8Array(buffer);
const contentType = awsMediaResponse.ContentType;
const CHUNK_SIZE = Math.min(2 * 1024 * 1024, totalBytes);

const initResponse = await fetch(TWITTER_ENDPOINTS.TWITTER_MEDIA_INITIALIZE, {
          method: "POST",
          headers: {
            Authorization: `Bearer ${tokenResponse.twitterAccessToken}`,
            "Content-Type": "application/json"
          },
          body: JSON.stringify({
            media_category: "tweet_video",
            media_type: contentType,
            total_bytes: totalBytes
          })
});
if (!initResponse.ok) throw new Error(`Failed to initialize media upload: ${await initResponse.text()}`);

      const initData = await initResponse.json();
      const mediaId = initData.data.id;
      let segmentIndex = 0;
      console.log("total: ", totalBytes, "chunk size: ", CHUNK_SIZE);
      if (totalBytes <= CHUNK_SIZE) {
        const appendFormData = new FormData();
        appendFormData.append("media", new Blob([mediaUint8]));
        appendFormData.append("segment_index", segmentIndex.toString())
        const appendResponse = await fetch(TWITTER_ENDPOINTS.TWITTER_MEDIA_APPEND.replace("{id}", mediaId), {
            method: "POST",
            headers: {
              Authorization: `Bearer ${tokenResponse.twitterAccessToken}`,
              "Content-Type": "multipart/form-data"
            },
            body: appendFormData,
          }
        );
        if (!appendResponse.ok) throw new Error(`Failed to append single chunk media: ${await appendResponse.text()}`)
      } else {
        for (let byteIndex = 0; byteIndex < totalBytes; byteIndex += CHUNK_SIZE) {
          const chunk = mediaUint8.slice(
            byteIndex,
            Math.min(byteIndex + CHUNK_SIZE, totalBytes)
          );
          const appendFormData = new FormData();
          appendFormData.append("media", new Blob([chunk]));
          appendFormData.append("segment_index", segmentIndex.toString())

          const appendResponse = await fetch(TWITTER_ENDPOINTS.TWITTER_MEDIA_APPEND.replace("{id}", mediaId), {
              method: "POST",
              headers: {
                Authorization: `Bearer ${tokenResponse.twitterAccessToken}`
              },
              body: appendFormData,
            }
          );

          if (!appendResponse.ok) throw new Error(`Failed to append media chunk ${segmentIndex}: ${await appendResponse.text()}`);
          segmentIndex++;
        }
      }
      
      const finalizeResponse = await fetch(TWITTER_ENDPOINTS.TWITTER_MEDIA_FINALIZE.replace("{id}", mediaId), {
          method: "POST",
          headers: {
            Authorization: `Bearer ${tokenResponse.twitterAccessToken}`,
          },
        }
      );
      if (!finalizeResponse.ok) throw new Error(`Failed to finalize media upload: ${await finalizeResponse.text()}`);
      await checkMediaStatus(tokenResponse.twitterAccessToken, mediaId);
      console.log("status check: ", mediaId);

      const tweetPostResponse = await axios({
        url: TWITTER_ENDPOINTS.TWITTER_TWEET_URL,
        method: "POST",
        headers: {
          "Content-Type": "application/json",
          "Authorization": `Bearer ${tokenResponse.twitterAccessToken}`
        },
        data: {
          "text": caption,
          "media": {
            "media_ids": [mediaId]
          } 
        }
      })

in addition, the status check function the response has the processing_info in the data object now for twitter:

const statusData = await statusResponse.json();
processingInfo = statusData.data.processing_info;
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Sumit
  • Low reputation (1):
Posted by: Logan

79700091

Date: 2025-07-13 16:24:44
Score: 4
Natty:
Report link

only exchange object is passed as tool context to server,

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

79700090

Date: 2025-07-13 16:24:44
Score: 3
Natty:
Report link

After struggling with React Native vector icons (from react-native-vector-icons) not showing in my iOS app, I finally solved it. Here's a detailed step-by-step that might help others facing the same issue.

Problem

Icons were rendering perfectly on Android, but nothing appeared on iOS. No errors, just missing icons.

My Setup

Root Cause

On iOS, react-native-vector-icons uses custom font files (like Ionicons.ttf, FontAwesome.ttf, etc.). These font files need to be:

  1. Declared in your Info.plist
  2. Physically added to your Xcode project
  3. Included in Copy Bundle Resources

Without step 2 or 3, icons won’t render even if you import them correctly in JS.

Solution

  1. Add Fonts to Info.plist

Inside ios/YourApp/Info.plist, add the font files like this:

<key>UIAppFonts</key>
<array>
  <string>AntDesign.ttf</string>
  <string>Entypo.ttf</string>
  <string>EvilIcons.ttf</string>
  <string>Feather.ttf</string>
  <string>FontAwesome.ttf</string>
  <string>FontAwesome5_Brands.ttf</string>
  <string>FontAwesome5_Regular.ttf</string>
  <string>FontAwesome5_Solid.ttf</string>
  <string>Foundation.ttf</string>
  <string>Ionicons.ttf</string>
  <string>MaterialCommunityIcons.ttf</string>
  <string>MaterialIcons.ttf</string>
  <string>Octicons.ttf</string>
  <string>SimpleLineIcons.ttf</string>
  <string>Zocial.ttf</string>
</array>

info.plist

  1. Add .ttf Fonts to Xcode Project

Add Files to.

node_modules/react-native-vector-icons/Fonts
  1. Ensure Fonts Are in "Copy Bundle Resources"

Copy Bundle Resources

  1. Clean and Rebuild

from Xcode:

If you're still facing issues after this, feel free to comment.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: SanjivPaul

79700089

Date: 2025-07-13 16:23:44
Score: 1.5
Natty:
Report link

I tried it just now (2025-07-13). It works fine for me. I copied your code for the .sc and .scd files. It works just fine for me using SuperCollider SuperCollider 3.13.0 running on a Dell laptop under Windows 10. The window shows up, as well as the message & the class name in the Post Window. I can move, resize & close the window.

Code & the result

Class code & result

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

79700080

Date: 2025-07-13 16:13:41
Score: 0.5
Natty:
Report link

When passing class methods as input properties in Angular, the function loses its this context. Here are muliple solutions:

Solution 1: Factory Function Pattern :

export class GaugesListComponent {
  constructor(private gs: GaugesService) {}

  // Factory that creates and returns the display function
  createDisplayFn(): (value: string) => string {
    return (value: string) => {
      const gauge = this.gs.getDirect(value);
      return gauge ? `${gauge.type} ${gauge.symbol}` : '';
    };
  }
}
<app-combobox
  [displayWith]="createDisplayFn()"
  ...>
</app-combobox>

Solution 2: Constructor Binding :

export class GaugesListComponent {
  constructor(private gs: GaugesService) {
    // Explicitly bind the method to the component instance
    this.displayWith = this.displayWith.bind(this);
  }

  displayWith(value: string): string {
    const gauge = this.gs.getDirect(value);
    return gauge ? `${gauge.type} ${gauge.symbol}` : '';
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: ali abodaraa

79700078

Date: 2025-07-13 16:03:38
Score: 3.5
Natty:
Report link

You can try download a newer distro with GLIBC 2.29+ then extract them from live to Lubuntu, it's like a transplant of GLIBC

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

79700070

Date: 2025-07-13 15:48:35
Score: 1.5
Natty:
Report link

Can you tell me how to test and design the frontend part that calls the backend with error handling.

The underlying assumptions of test driven development:

When our goal requires both API calls and complicated logic, a common approach is to separate the two.

Gary Bernhardt's Boundaries talk might be a good starting point.


Consider:

    async execute(requestModel: BookAHousingRequestModel): Promise<void> {
        let responseModel: BookAHousingResponseModel;

        const user: User | undefined = this.authenticationGateway.getAuthenticatedUser();

        if(!user) {
            responseModel = this.authenticationObligatoire()
        } else {
            const housing: Housing | undefined = await this.housingGateway.findOneById(requestModel.housingId);
            responseModel = this.responseDeHousing( requestModel, housing );
        }

        this.presenter.present(responseModel)
    }

Assuming that BookAHousingRequestModel and Housing are values (facades that represent information in local data structures), then writing tests for the logic that computes the response model that will be forwarded to the presenter is relatively straight forward.

(Note: there's some amount of tension, because TDD literature tends to emphasize "write the tests first", and how could we possibly know to write tests that would produce these methods before we start? You'll have to discover your own answer to that; mine is that we're allowed to know what we are doing.)

So we've re-arranged the design so that all of the complicated error handling can be tested, but what about the method that remains; after all, there's still a branch in it...?

By far, the easiest approach is verify it's correctness by other methods (ie: code review) - after all, this code is relatively straight forward. It's not immediately obvious to me that the extra work that would need to be done to create automated tests for it will pay for itself (how many mistakes do you expect that test to catch, given the simplicity here)?

But maybe this problem is standing in for something more complicated; or we are in an environment where code coverage is King. Then what?

What we've got here is a sort of protocol, where we are making choices about what methods to call. And a way to test that is to lift the protocol into a separate object which is tested by providing implementations of the methods that can be controlled from the tests.

One way that you could do this is to introduce more seams (See Working Effectively with Legacy Code, chapter 4) - after all, our processing of errors into a response model doesn't really care about where the information comes from, so we could try something like....

    constructor(
        private responseModels: ResponseModels, 
        private presenter: BookAHousingOutputPort, 
        private authenticationGateway: AuthenticationGateway,
        private housingGateway: HousingGateway,
        private dateTimeProvider: DateTimeProvider) {}

    async execute(requestModel: BookAHousingRequestModel): Promise<void> {
        let responseModel: BookAHousingResponseModel;

        const user: User | undefined = this.authenticationGateway.getAuthenticatedUser();

        if(!user) {
            responseModel = this.responseModels.authenticationObligatoire()
        } else {
            const housing: Housing | undefined = await this.housingGateway.findOneById(requestModel.housingId);
            responseModel = this.responseModels.responseDeHousing( requestModel, housing );
        }

        this.presenter.present(responseModel)
    }

The point here being that you can "mock" the response models implementation, passing in a substitute implementation whose job is to keep track of which method was called with which arguments (aka a "spy") and write tests to ensure that the correct methods are called depending on what answers you get from the authenticationGateway.

(The TDD community tends to prefer composition to inheritance these days, so you are more likely to see this design than one with a bunch of abstract methods that are overridden in the tests; but either approach can be made to work).

Reasons:
  • Blacklisted phrase (1.5): tell me how to
  • RegEx Blacklisted phrase (2.5): Can you tell me how
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • High reputation (-2):
Posted by: VoiceOfUnreason

79700059

Date: 2025-07-13 15:31:31
Score: 2
Natty:
Report link

Keep Xcode on

Go to Windows > Devices and simulators > Unpair your phone

Remove cable connection

Reconnect cable and Trust the computer on phone

Xcode may get stuck in pairing just disconnect and reconnect cable and it should work

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

79700046

Date: 2025-07-13 15:09:26
Score: 5.5
Natty:
Report link

I’ve found a way to at least work around the issue so that the proxy can be used:

If you load another website first — for example, Wikipedia — before navigating to csfloat.com, it seems to work fine. You can add something like this to your code:

await page.goto("http://wikipedia.com/", {
  waitUntil: "domcontentloaded",
  timeout: 30000,
});

Then, after that, navigate to csfloat. Everything seems to work correctly this way.
Does anyone have an idea why this might be happening?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have an idea
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: UsAA12

79700044

Date: 2025-07-13 14:58:24
Score: 3
Natty:
Report link

Simple as this: in the Copy activity, use Polybase and on the sink tab uncheck "Use type default". That should do the trick.

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

79700042

Date: 2025-07-13 14:56:23
Score: 1.5
Natty:
Report link

I ran
npm i eslint -g
npm install eslint --save-dev
npm install eslint@8 --save-dev
and it helped me

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Данил Косенко

79700026

Date: 2025-07-13 14:36:18
Score: 1
Natty:
Report link

thanks @cyril ,

deleting that part worked for me >>

<plugin>    
<groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
       <annotationProcessorPaths>
          <path>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
          </path>
       </annotationProcessorPaths>
    </configuration>
</plugin>
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • User mentioned (1): @cyril
  • Low reputation (1):
Posted by: ait hammou badr

79700025

Date: 2025-07-13 14:33:18
Score: 3
Natty:
Report link

JetBrains IntelliJ K2 Mode for Kotlin doesn't have the ability to suppress based on annotation, you'll have to suppress it with a comment, or disable K2 mode.

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

79700021

Date: 2025-07-13 14:27:16
Score: 2
Natty:
Report link

My case: I install the VC-code in /download/ path (Mac).

  1. try to update you VS-code, if it returns permission error,
    maybe that is the case.

  2. re-run the vscode, the flutter extension is back~~

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

79700020

Date: 2025-07-13 14:27:16
Score: 0.5
Natty:
Report link

I had the same running on my Mac, the following fixed it

brew upgrade helm

So like @subram said in the comments, its the helm version.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @subram
Posted by: Antonio Gomez Alvarado

79700019

Date: 2025-07-13 14:26:16
Score: 3.5
Natty:
Report link

Check the extension of your images, I just noticed that .png and .PNG are two different entities. I had to change the extensions to recognise the write case

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

79700017

Date: 2025-07-13 14:18:14
Score: 0.5
Natty:
Report link

For Prism users:

@Diego Torres gave a nice answer in this thread. His xaml can be used directly in a MVVM situation with the Prism framework, with the following code in the ViewModel:

public DelegateCommand<object> SelectedItemChangedCommand { get; private set; }

In the constructor of your ViewModel:
SelectedItemChangedCommand = new DelegateCommand<object>(SelectedItemChanged);

The method to be executed:

        private void SelectedItemChanged(object args)
        {
            // check for the datatype of args and
            // Do something!
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Diego
  • Low reputation (0.5):
Posted by: josh

79700008

Date: 2025-07-13 14:06:11
Score: 1
Natty:
Report link

Yes, TikTok offers a Webhook solution for lead ads, but it’s not available by default and requires approval through the TikTok Marketing API (Custom Application type).

To get started:

  1. Apply for Custom Access via the TikTok for Developers portal.

  2. Once approved, you’ll be able to create a Webhook URL and subscribe to the **"**lead_generate" event.

  3. You’ll receive real-time POST requests containing lead form data.

You also need to set up:

TikTok’s documentation is limited publicly, but after approval, you’ll get access to their full Webhook API spec

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

79700000

Date: 2025-07-13 13:47:06
Score: 5.5
Natty:
Report link

https://i.postimg.cc/VkTnRjzk/Przechwytywanie.png

i hope you help me, this is important for me.

Reasons:
  • Blacklisted phrase (1): help me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mark Femnis

79699997

Date: 2025-07-13 13:42:05
Score: 2
Natty:
Report link

GitHub sees a raw curl request with just a bare token, their security systems might flag it as suspicious, especially if there were previous authentication issues (like from Claude Code). The CLI also manages token refresh and might be using a slightly different auth flow under the hood, even though it's technically the same PAT. Try mimicking GitHub CLI's exact headers with curl - including User-Agent

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

79699996

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

Not super-obvious in docs, but you should add it as a filterMatchMode prop on your Columns.

example

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

79699991

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

The documentation for g_assert_cmpmem says it is equivalent to g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)

So you might want to use just g_assert_true(l1 == l2)

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

79699981

Date: 2025-07-13 13:23:59
Score: 3.5
Natty:
Report link

There are two ways to authorise: with or without PKCE.

And there are two places to update the config: https://github.com/search?q=repo%3Aspotify%2Fweb-api-examples%20yourClientIdGoesHere&type=code

Any chance you updated one config, but try to use another method?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Smileek

79699969

Date: 2025-07-13 12:58:54
Score: 1
Natty:
Report link

Put the input inside a div with defined width. But 50px is too narrow.

<div style="width:150px;"> <input type="date" value=""></div>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lisandro

79699968

Date: 2025-07-13 12:57:54
Score: 0.5
Natty:
Report link

short solution; no bc dc or printf solution using bash

bin() {
  echo "$(($( (($1)) && bin $(($1 / 2)))$(($1 % 2))))"
}

oct() {
  echo "$(($( (($1)) && oct $(($1 / 8)))$(($1 % 8))))"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nopeless

79699967

Date: 2025-07-13 12:56:53
Score: 1
Natty:
Report link

# Recreate the video since the previous file may have been lost before the user could download it.

# Load the image again

image_path = "/mnt/data/A_3D-rendered_digital_video_still_frame_shows_a_pr.png"

image = Image.open(image_path)

image_array = np.array(image)

# Create 15-second video clip

clip_duration = 15

clip = ImageClip(image_array).set_duration(clip_duration).set_fps(24)

# Resize and crop for portrait format

clip_resized = clip.resize(height=1920).crop(x_center=clip.w/2, width=1080)

# Output file path

output_path = "/mnt/data/Relax_Electrician_CCTV_Install.mp4"

# Write video file again

clip_resized.write_videofile(output_path, codec="libx264", audio=False)

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

79699948

Date: 2025-07-13 12:22:46
Score: 1.5
Natty:
Report link

If you want to add many files in a loop, there is addAttachments() method. If you use just attachments() previous added files will be overwritten by newest one.

Checked at 3.1 - it works.

https://api.cakephp.org/3.1/class-Cake.Mailer.Email.html#addAttachments()

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

79699945

Date: 2025-07-13 12:19:45
Score: 0.5
Natty:
Report link

It depends on your business need and use case.
If elements are known and should be created on container creation, then it's better to include elements creation at the same API request. You can also pass it as an empty array if no elements to be created for some containers so that you make your API dynamic for both cases. Of course in this case you will also need an element creation API if there is a possibility that elements will not be all added at the time of container creation.

However, if always elements will be added later then create create 2 separate APIs without including elements in the container creation API.

And for the elements creation API it's best practice to always make it an array, and in case you will add only one element, then the array will contain only one item.

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

79699929

Date: 2025-07-13 11:45:36
Score: 1
Natty:
Report link
var SortArray = [1, 2, 8, 3, 7];
for (let i = 1; i < SortArray.length; i++) {
    for (let j =1; j < i; j++) {
        if (SortArray[i] < SortArray[j]) {
          var x = SortArray[i];
            SortArray[i] = SortArray[j];
            SortArray[j] = x;
        }
    }
}
console.log(SortArray)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shubha Bundela

79699923

Date: 2025-07-13 11:42:35
Score: 3
Natty:
Report link

Delete any classes that has the main function along with the main class you're trying to run or put them in another folder away from your project.

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

79699914

Date: 2025-07-13 11:10:28
Score: 2.5
Natty:
Report link

Normally, this can be found in the ResultSet metadata, since a computed column will be read-only.

java.sql.ResultSetMetData.isReadOnly(int index)

This is what pablosaraiva specifies in his comment.

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

79699911

Date: 2025-07-13 11:04:26
Score: 1.5
Natty:
Report link

I have prepared a script to automatically install moodle with nginx, and mysql. I have tested only on ubuntu 24.04, it might work on similar distros if php8.3 is added to apt repo. but anyway, if someone wants to save time, here it is: https://drive.google.com/file/d/106IRn29UmzCoh2ia4qhQHvKsjm6wBYOC/view?usp=drive_link

Btw it installs moodle 4.5.5+, you can change the checkout commit hash in the file to install different versions (aware of php compatibility)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Enes Ekrem Ergunesh

79699904

Date: 2025-07-13 10:52:24
Score: 1
Natty:
Report link

I found a one possible solution. This strstr() function checks for the specific word journal/ to the string then remove all the characters before it.

<?php
  $journals = glob("{$_SERVER['DOCUMENT_ROOT']}/journal/*");

  foreach($journals as $journal){
    $strippedURL = strstr($journal, 'journal/');
    echo "<a href=\"http://www.example.net/{$strippedURL}\">file</a>\n";
  }
?>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: bochard

79699888

Date: 2025-07-13 10:29:19
Score: 3
Natty:
Report link

I experienced this error when using pytorch on macOS Sonoma with Python 3.12.10. What fixed it for me is doing any other import before pytorch and for some reason that works.

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

79699883

Date: 2025-07-13 10:19:16
Score: 1
Natty:
Report link
It is not only possible to verify WhatsApp numbers without using the official WhatsApp Business API. Always follow WhatsApp's general policies and avoid spammy behavior.

Our Visit Site
[db to data][1]


  [1]: https://dbtodata.com
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sharmin akter

79699880

Date: 2025-07-13 10:14:15
Score: 2.5
Natty:
Report link

It is possible to determine latitude and longitude using a single GNSS constellation (such as GPS, Galileo, or GLONASS), if at least 4 satellites are in view. Although telegram user database the accuracy is somewhat lower than with multiple constellations, it is still quite useful for many applications.

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

79699876

Date: 2025-07-13 10:11:14
Score: 2.5
Natty:
Report link
with first_cte as (
  select * 
  from a_table 
  where 1=1
),
second_cte as (
    select 
    column_1,
    column_2,
    column_3
  from b_table b
    inner join first_cte f on f.user_id = b.user_id
    where 1=1)
select * from second_cte 

In theory you could do something like this. Although it is not direclty possible now to execute the inner block of second_cte in dataGrip because you will have the same problem of first_cte not being known, there is a plugin you could use for that, i discovered when i had this problem.
https://plugins.jetbrains.com/plugin/27835-ctexecutor

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (1):
Posted by: idy

79699868

Date: 2025-07-13 09:49:09
Score: 2.5
Natty:
Report link

This is a really interesting thread. I've also struggled with getting real-time location from a single GNSS source. Some tools either crash or oversimplify the data. If you do find a reliable method without needing external ephemeris, I’d love to hear about it too.

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

79699865

Date: 2025-07-13 09:42:08
Score: 2.5
Natty:
Report link

WhatsApp accesses your contacts from your phone and then matches them with the numbers of saved users. Only those who are using WhatsApp.

Visit our website:https://listtodata.com

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

79699861

Date: 2025-07-13 09:36:06
Score: 3
Natty:
Report link

Thank you for share this post. If you want any type list to data or any kind of information about list to data please visit our website:

https://listtodata.com

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sumaia shimu

79699860

Date: 2025-07-13 09:31:05
Score: 1.5
Natty:
Report link

import numpy as np # Bổ sung thư viện bị thiếu và chạy lại

# Tạo nhạc nền đơn giản dạng sóng sin (thay thế EDM tạm thời)

audioclip = AudioClip(lambda t: 0.5 * np.sin(440 * 2 * np.pi * t), duration=video.duration)

audioclip = audioclip.set_fps(44100)

video = video.set_audio(audioclip.volumex(0.5))

# Xuất video

output_path = "/mnt/data/earth_zoom_badminton_video.mp4"

video.write_videofile(output_path, fps=24)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Trương Khánh Tường

79699858

Date: 2025-07-13 09:27:04
Score: 1.5
Natty:
Report link

Yfy

header 1 header 2
cell 1 cell 2
cell 3 cell 4

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

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

79699856

Date: 2025-07-13 09:25:04
Score: 1.5
Natty:
Report link

It worked for me by restarting SqlServer.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nadine

79699853

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

This is what SRP mean.

Let's take an example in real life : constraint is like a law, and the Validator like a person who enforce the law for example Police or Judge.

You wouldn’t expect the law itself to contain enforcement logic, it just there to describe rules.

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

79699850

Date: 2025-07-13 09:12:01
Score: 3
Natty:
Report link

overflow:hidden will cliped(means hides) the content which overfolows outside the parent element

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

79699844

Date: 2025-07-13 08:47:55
Score: 0.5
Natty:
Report link

I managed to find out how Apple posts the request, which can be seen and captured with:

@Post('/:version/devices/:deviceLibraryIdentifier/registrations/:passTypeIdentifier/:serialNumber')
    async logPost(
        @Headers() headers: any,
        @Param('deviceLibraryIdentifier') deviceLibraryIdentifier: string,
        @Param('passTypeIdentifier') passTypeIdentifier: string,
        @Param('serialNumber') serialNumber: string,
        @Query('passesUpdatedSince') passesUpdatedSince: string,
      ): Promise<any> {
        this.logger.log('Received POST from Apple');
        this.logger.debug(`Headers: ${JSON.stringify(headers)}`);
        this.logger.debug(`Params: ${deviceLibraryIdentifier}, ${passTypeIdentifier}, ${serialNumber}`);
        this.logger.debug(`passesUpdatedSince: ${passesUpdatedSince}`);
        const date = new Date();
        return { lastUpdated: date.toISOString() };
      }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kayer

79699840

Date: 2025-07-13 08:38:53
Score: 2.5
Natty:
Report link

It could be due to heavy processing, an infinite loop, or memory overload. Try checking your code for loops or large data handling. Run the script via terminal to see errors, and monitor CPU/RAM usage in Task Manager. Also, make sure antivirus isn’t blocking Python. Share your script snippet for more help!

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

79699839

Date: 2025-07-13 08:37:53
Score: 2.5
Natty:
Report link

Using Google's libphonenumber library in C#, you can quickly and scalablely verify a large number of phone numbers.

If you want you can visit our site : https://bcellphonelist.com/

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

79699838

Date: 2025-07-13 08:37:53
Score: 0.5
Natty:
Report link

As per this open GitHub issue, the only discovered workaround for this issue is by disabling Chromium Sandbox.
So, we have to run VS Code with is command:

code --disable-chromium-sandbox

I hope we can find a better fix than disabling some security features like this.

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

79699827

Date: 2025-07-13 08:13:48
Score: 2
Natty:
Report link

I found a possible cause for this error, please check you Environment Variable "__PSLockdownPolicy" it should be a int not string,It is defined as

8        SystemEnforcementMode.Audit
4        SystemEnforcementMode.Enforce
other int value  SystemEnforcementMode.None
Reasons:
  • RegEx Blacklisted phrase (1): I found a possible cause for this error, please
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user15281044

79699825

Date: 2025-07-13 08:12:47
Score: 2
Natty:
Report link

In general, you should make sure to do only one operation at a time. All operations are asynchronous and you should wait for completion before you start the next operation. That is why all Android BLE libraries queue operations.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Martijn van Welie

79699821

Date: 2025-07-13 08:05:45
Score: 2.5
Natty:
Report link

jQuery advantages : Simplifies DOM manipulation Cross-browser is compatibility Easy AJAX handling Lightweight and fast to implement Large plugin ecosystem Great for quick, small projects or legacy support.

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

79699817

Date: 2025-07-13 07:54:43
Score: 2.5
Natty:
Report link

For some reason, Adding 'MINIO_DOMAIN' to minio service's env config settings solved the issues.

Not sure why though?

minio:
    image: minio/minio
    networks:
      flink_network:
        aliases:
          - warehouse.minio
    container_name: minio
    ports:
      - "9000:9000"
      - "9001:9001"
    environment:
      - MINIO_ROOT_USER=minioadmin
      - MINIO_ROOT_PASSWORD=minioadmin
      - MINIO_DOMAIN=minio
    volumes:
      - minio-data:/data
    command: server /data --console-address ":9001"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 5s
      timeout: 3s
      start_period: 10s
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mandar Kulkarni

79699816

Date: 2025-07-13 07:53:43
Score: 1
Natty:
Report link

Add this to your application.properties file:

spring.jpa.database-platform=com.pivotal.gemfirexd.hibernate.GemFireXDDialect

OR if you're using application.yml:

spring:
      jpa:
        database-platform: com.pivotal.gemfirexd.hibernate.GemFireXDDialect
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: P100K

79699813

Date: 2025-07-13 07:47:42
Score: 2.5
Natty:
Report link

I have similar question. So I tried the solutions of both LangSmith and local callback from the notebook here.

1. Using LangChain's Built-in Callbacks (e.g., LangChainTracer for LangSmith)

LangChain has deep integration with LangSmith, their platform for debugging, testing, evaluating, and monitoring LLM applications. If you set up LangSmith, all your LLM calls (including those from ChatGoogleGenerativeAI) will be automatically logged and available for analysis in the LangSmith UI.

2. Custom Callback Handlers for Local Collection/Logging

If you don't want to use LangSmith or need more granular control over where and how the data is collected, you can implement a custom BaseCallbackHandler. This allows you to define what happens at different stages of the LLM call (e.g., when a call starts, ends, or streams a chunk).

Reasons:
  • Blacklisted phrase (1): I have similar
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have similar question
  • High reputation (-1):
Posted by: johnklee

79699806

Date: 2025-07-13 07:41:39
Score: 6
Natty: 4
Report link

jQuery now has major contender. The Juris.js enhance() API.
Refer to this article for reference. It's a relatively new solution to DOM manipulation and progressive enhancement.
https://medium.com/@resti.guay/jquery-vs-juris-js-enhance-api-technical-comparison-and-benefits-d94b63c63bf6

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: resti

79699801

Date: 2025-07-13 07:32:37
Score: 1
Natty:
Report link

I developed my own express functionality. Its not so hard to do. At some point I will put it in Github. It consists of a web server and three components:

  1. Pipeline - for processing request/response

  2. Middleware - for dividing steps in request/response processing

  3. Routing - for connecting urls to views

Because I rolled my own I have full control of my code.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Herman Van Der Blom

79699792

Date: 2025-07-13 07:11:31
Score: 0.5
Natty:
Report link

Next code will work a little bit faster

return HttpContext.Current.Request.Headers["X-Forwarded-For"].Split(new char[] { ',' }, 2).FirstOrDefault();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Dmitry Shashurov

79699788

Date: 2025-07-13 07:05:29
Score: 1.5
Natty:
Report link

I was trying to fire an alert using the below line but was not sure how to fetch the new value. Your suggestion it really worked.. Thanks a ton...!!!!

apex.message.alert("The value changed from " + model.getValue(selectedRecords[0], "<column name")+ " to " + $v(this.triggeringElement));
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manohar Venkatesh Mishra

79699770

Date: 2025-07-13 06:30:21
Score: 1
Natty:
Report link

If you perceive errors such as 'outdated servlet api' consider Tomcat 10 switched from JavaEE to JakartaEE. If your webapp is incompatible, switch to Tomcat 9.

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

79699762

Date: 2025-07-13 06:09:17
Score: 1.5
Natty:
Report link

When Tomcat deploys a webapp but fails, this will be written to the logfile but the application is not deployed. If after that a client tries to access the application obviously that ends in a 404 result.Now the question is whether you are using lazy loading, which means some servlets or the whole application get deployed only when the first request comes in.

Any way, you need to resolve these fatal issues as neither Tomat nor the webapp will be able to work without help. Check the logfile to find out the reason.

One simple reason could be that the webapp requires some other resource that has not been deployed as e.g. a DB connection pool.

And to come back to your question: I am not aware there is an option to turn this off. But you can either change your web.xml or use annotations to pre-load your servlets, which would give you the error messages not upon first requet but right at application deployment.

Also read: When exactly a web container initialize a servlet?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When To
  • High reputation (-1):
Posted by: queeg

79699760

Date: 2025-07-13 05:58:15
Score: 1.5
Natty:
Report link

Get the list of commit hash(es) for the commits you wish to merge using the git log.

git log <branch-name>

Then add run the below command for all the commit hashes to pick all the commits you wish to pick.

git cherry-pick <commit-hash>

then use

git push origin <target-branch>

You can also use this refrence link:

https://betterstack.com/community/questions/how-to-merge-specific-commit/

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

79699753

Date: 2025-07-13 05:46:11
Score: 1
Natty:
Report link

You can update the cookies of aiohttp with cookies from playwright via:

for cookie in storage['cookies']:
    jar.update_cookies({
        cookie['name']: cookie
    })
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mozillazg

79699752

Date: 2025-07-13 05:36:09
Score: 0.5
Natty:
Report link

Delta G^\circ = -nFE^\circ_{\text{cell}}, \quad F = 96500 \, \text{C/mol}

✅ Solution:

\Delta G^\circ = -2 \times 96500 \times 1.05 = -202650 \, \text{J} = -202.65 \, \text{kJ}

Reasons:
  • Whitelisted phrase (-2): Solution:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adity Joshi

79699743

Date: 2025-07-13 05:12:02
Score: 9.5
Natty:
Report link

Strange! this one of our old functions that we had and working in our Windows server but now we moved to linux I got this error, Do you know how can I get the error message return by this event, my code still failing and would like to catch the error message? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I get the error
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ROCHDI

79699738

Date: 2025-07-13 05:04:00
Score: 0.5
Natty:
Report link

You’re definitely on the right path, and your intuition about the peaks between 5–10 and 35–40 is spot on. I ran your dataset through KDE using scipy.stats.gaussian_kde, and it works beautifully with a tighter bandwidth.

Here's the idea:

I'm using the following code:

import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import gaussian_kde
from scipy.signal import find_peaks

# Data
a = np.array([68, 63, 20, 55, 1, 21, 55, 58, 14, 4, 40, 54, 33, 71, 36, 38, 9, 51, 89, 40, 13, 98, 46, 12, 21, 26, 40, 59, 17, 0, 5, 25, 19, 49, 91, 55, 39, 82, 57, 28, 54, 58, 65, 2, 39, 42, 65, 1, 93, 8, 26, 69, 88, 32, 15, 10, 95, 11, 2, 44, 66, 98, 18, 21, 25, 17, 41, 74, 12, 4, 33, 93, 65, 33, 25, 76, 84, 1, 63, 74, 3, 39, 9, 40, 7, 81, 55, 78, 7, 5, 99, 37, 7, 82, 54, 16, 22, 24, 23, 3])

# Fit KDE using scipy
kde = gaussian_kde(a, bw_method=0.2)
x = np.linspace(0, 100, 1000)
y = kde(x)

# Find all peaks
peaks, properties = find_peaks(y, prominence=0.0005)  # Adjust as needed

# Sort peaks by height (y value)
top_two_indices = peaks[np.argsort(y[peaks])[-2:]]
top_two_indices = top_two_indices[np.argsort(x[top_two_indices])]  # left to right

# Plot
plt.figure(figsize=(14, 7))
plt.plot(x, y, label='KDE', color='steelblue')
plt.fill_between(x, y, alpha=0.3)

# Annotate top 2 peaks
for i, peak in enumerate(top_two_indices, 1):
    plt.plot(x[peak], y[peak], 'ro')
    plt.text(x[peak], y[peak] + 0.0005,
             f'Peak {i}\n({x[peak]:.1f}, {y[peak]:.3f})',
             ha='center', color='red')

plt.title("Top 2 Peaks in KDE")
plt.xlabel("a")
plt.ylabel("Density")
plt.xticks(np.arange(0, 101, 5))
plt.grid(True, linestyle='--', alpha=0.5)
plt.tight_layout()
plt.show()

Which displays

enter image description here

A few important notes:

  1. Prominence matters: I used prominence=0.0005 in find_peaks() — this helps ignore tiny local bumps and just focus on meaningful peaks. You can tweak it if your data changes.

  2. Bandwidth is everything: The choice of bandwidth (bw_method=0.2 in this case) controls the smoothness of the KDE. If it's too high, peaks will be smoothed out. Too low, and you’ll get noisy fluctuations.

  3. Automatic bandwidth selection: If you don’t want to hard-code bw_method, you can automatically select the optimal bandwidth using cross-validation. Libraries like sklearn.model_selection.GridSearchCV with KernelDensity from sklearn.neighbors let you fit multiple models with different bandwidths and choose the one that best fits the data statistically.

But honestly — for this particular dataset, manually setting bw_method=0.2 works great and reveals exactly the two main peaks you're after (one around ~7, the other near ~38). But for production-level or general-purpose analysis, incorporating automatic bandwidth selection via cross-validation can make your approach more adaptive and robust.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shinde Aditya

79699737

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

KNI is the way to go if you introduce overhead due to kernel crossings and requires loading the rte_kni module, which might not be ideal for pure performance testing.

On the other hand, TAP PMD is a purely user space solution, emulating a TUN/TAP device without kernel involvement. This means lower latency and no dependency on kernel modules, making it great for scenarios where you want to avoid kernel overhead entirely. However, since it bypasses the kernel, you lose compatibility with standard networking tools that rely on kernel interfaces.

Shortly for your case (testing without hardware) TAP PMD is likely the simpler option unless you specifically need kernel support.

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

79699730

Date: 2025-07-13 04:34:54
Score: 2
Natty:
Report link

For everybody still looking as of 2025 I just worked out a way to do it reliably:


        public static float Round(this float value, float step = 1f)
        {
            if (step <= 0) throw new System.ArgumentException("Step must be greater than zero.");

            float remainder = (value = Mathf.Ceil(value / 0.001f) * 0.001f) % step;
            float halfStep = step / 2f;

            return
                remainder >= halfStep ? value + step - remainder :
                remainder < -halfStep ? value - step - remainder :
                value - remainder;
        }

        public static string[] GetLines(this PdfDocument document, int page, char wordSeperator = ' ', float tolerance = 0.01f)
        {
            var lines = new List<string>();

            if (page > 0 && document.NumberOfPages >= page)
            {
                var wordGroups = document.GetPage(page)
                    .GetWords()
                    .GroupBy(w => ((float)(w.BoundingBox.Top + w.BoundingBox.Bottom) * 0.5f).Round(tolerance));

                foreach (var group in wordGroups.OrderByDescending(g => g.Key)) // top to bottom
                {
                    var line = string.Join(wordSeperator, group.OrderBy(w => w.BoundingBox.Left));

                    if (line.NotEmpty()) lines.Add(line);
                }
            }

            return [.. lines];
        }

Enjoy. Also take a look at the Cutulu SDK by @narrenschlag on GitHub and leave a star if you liked this. :)

~ Max, der Narr

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @narrenschlag
  • Low reputation (1):
Posted by: Narrenschlag

79699726

Date: 2025-07-13 04:24:52
Score: 1
Natty:
Report link

Try this :

s = " Swarnendu Pal is a good boy "
s.replace(" ", "")

this will effectively remove any space

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

79699725

Date: 2025-07-13 04:17:51
Score: 3
Natty:
Report link

Thankyou to @pmf, that is the filter I was after (with a caveat). The problem I was having relates to the jq error: jq: error (at Security.json:12490): Cannot iterate over null (null) . I think the issue in question was not just how to manage an array within jq, but how it handles iterating over an array when handling nulls and you don't explicitly state the length of the array, eg: jq '.Event[].EventData.Data[] |= (select(.content != null))' Security.json throws the error.

I have found that explicitly declaring the length of the array to jq when handling the top-level array, eg: jq '.Event[0- ( .Event | length)] <further jq> or jq '.Event[0-N] <further jq> (for an array with N+1 variables) results in successful execution. I would speculate that jq's mode of iteration when the length of the array is not specified results in it checking index N+1 and returning null, then handing that down the pipe and throwing an error when it looks for null (null). I don't know if this is intentional behaviour for jq or a bug.

I've included the complete bash script (with filters) below for other people that want help with an error similar to this:


Filtering Nulls from the array

The code that works for me:

jq '.Event[0- ( .Event | length)].EventData.Data[] |= (select(.content != null))' Security.json

and this (although not dynamic):

jq '.Event[0-152].EventData.Data[] |= (select(.content != null))' Security.json

The code that doesn't work for me:

jq '.Event[].EventData.Data[] |= (select(.content != null))' Security.json

Reformatting data within .Data[] into "Name": "Variable" without removing nulls

The code that works for me:

jq '.Event[0- ( .Event | length)].EventData.Data[] |= {(.Name): .content}' Security.json | less

and this (although not dynamic):

jq '.Event[0-152].EventData.Data[] |= {(.Name): .content}' Security.json

The code that doesn't work for me:

jq '.Event[].EventData.Data[] |= {(.Name): .content}' Security.json
Reasons:
  • Blacklisted phrase (1): Thankyou
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @pmf
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user31024636

79699717

Date: 2025-07-13 03:47:45
Score: 0.5
Natty:
Report link

The problem for me was that my powershell scripts were not saved with the "UTF8 with BOM" encoding. I was getting the error when only using the UTF8 encoding. I fought a hard battle to figure this out.

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

79699716

Date: 2025-07-13 03:43:44
Score: 4
Natty:
Report link

How about this? You identify peaks by getting numbers that have a smaller number after and before it (only after or before for first and last), then take the 2 highest from these peaks?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How
Posted by: SpicyCatGames

79699705

Date: 2025-07-13 02:32:31
Score: 2.5
Natty:
Report link

for simple mistake like me.

declare const router = userouter() before anything in scropt tag

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

79699700

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

If you encounter a Permission denied (public key) issue when trying to git pull, regardless of the fact that you have set your keys correctly, you should just try to pull a specific remote:

$ git pull origin
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: superqwerty

79699698

Date: 2025-07-13 02:21:28
Score: 1.5
Natty:
Report link

Don't forget to add it to "devDependencies". Tested on Expo v53

Source: https://github.com/expo/examples/blob/master/with-pdf/package.json#L20-L21

package.json
  "devDependencies": {
    ...
    "@config-plugins/react-native-blob-util": "^0.0.0",
    "@config-plugins/react-native-pdf": "^0.0.0"
  },
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ahmeti

79699687

Date: 2025-07-13 01:42:20
Score: 0.5
Natty:
Report link

//@version=6

// (C) yaseenm237

library("MyLibrary")

// Declare an array to store historical data points (features).

// Each data point is an array of floats representing features.

var historicalFeatures = array.new<array<float>>(0)

// Declare an array to store the corresponding labels (1: long, -1: short, 0: neutral).

var historicalLabels = array.new<int>(0)

// @function getClassificationVote: Determines the majority vote from a given array of labels (e.g., from nearest neighbors).

// It takes an array of labels (typically from the 'k' nearest historical data points) and returns the most frequent label.

// @param labelsArray array<int>: An array containing the labels (1 for long, -1 for short, 0 for neutral) of the nearest neighbors.

// @returns int: The predicted classification: 1 for long, -1 for short, or 0 for neutral if there's a tie or no clear majority.

export function getClassificationVote(labelsArray) {

int longCount = 0

int shortCount = 0

int neutralCount = 0

// Count the occurrences of each label (long, short, neutral) within the provided labelsArray.

for i = 0 to array.size(labelsArray) - 1

    int label = array.get(labelsArray, i)

    if label == 1

        longCount += 1

    else if label == -1

        shortCount += 1

    else

        neutralCount += 1

// Determine the majority vote based on the counts.

// If longCount is strictly greater than both shortCount and neutralCount, it's a long prediction.

if longCount \> shortCount and longCount \> neutralCount

    1

// If shortCount is strictly greater than both longCount and neutralCount, it's a short prediction.

else if shortCount \> longCount and shortCount \> neutralCount

    -1

// If neutralCount is strictly greater than both longCount and shortCount, it's a neutral prediction.

else if neutralCount \> longCount and neutralCount \> shortCount

    0

// Handle tie-breaking scenarios:

// If there's a tie between long and short, or any other tie, or no clear majority, default to neutral (0).

// This conservative approach avoids making a biased prediction when the model is uncertain.

else

    0

}

// @function calculateEuclideanDistance: Calculates the Euclidean distance between two data points.

// @param point1 array<float>: The first data point.

// @param point2 array<float>: The second data point.

// @returns float: The Euclidean distance between the two points.

export function calculateEuclideanDistance(point1, point2) {

float sumSquaredDifferences = 0.0

int size1 = array.size(point1)

int size2 = array.size(point2)

int minSize = math.min(size1, size2)

for i = 0 to minSize - 1

    float diff = array.get(point1, i) - array.get(point2, i)

    sumSquaredDifferences += diff \* diff

math.sqrt(sumSquaredDifferences)

}

// @function findNearestNeighbors: Finds the indices of the 'k' nearest neighbors to a new data point.

// @param newPoint array<float>: The data point for which to find neighbors.

// @param historicalFeatures array<array<float>>: The array of historical data points (features).

// @param historicalLabels array<int>: The array of historical labels (used for indexing, not distance).

// @param k int: The number of nearest neighbors to find.

// @returns array<int>: An array containing the indices of the k nearest neighbors in the historical data.

export function findNearestNeighbors(newPoint, historicalFeatures, historicalLabels, k) {

// Array to store pairs of \[distance, index\]

var distancesWithIndices = array.new\<array\<float\>\>(0)

// Calculate distances to all historical data points and store with their indices

for i = 0 to array.size(historicalFeatures) - 1

    array\<float\> historicalPoint = array.get(historicalFeatures, i)

    float dist = calculateEuclideanDistance(newPoint, historicalPoint)

    array.push(distancesWithIndices, array.new\<float\>(\[dist, float(i)\]))

// Sort the array based on distances (the first element of each inner array)

array.sort(distancesWithIndices, direction.asc)

// Get the indices of the k nearest neighbors

var nearestNeighborIndices = array.new\<int\>(0)

for i = 0 to math.min(k, array.size(distancesWithIndices)) - 1

    array\<float\> distanceAndIndex = array.get(distancesWithIndices, i)

    int index = int(array.get(distanceAndIndex, 1))

    array.push(nearestNeighborIndices, index)

nearestNeighborIndices

}

// @function getNeighborLabels: Retrieves the labels of the nearest neighbors given their indices.

// @param nearestNeighborIndices array<int>: An array of indices of the nearest neighbors.

// @param historicalLabels array<int>: The array of historical labels.

// @returns array<int>: An array containing the labels of the nearest neighbors.

export function getNeighborLabels(nearestNeighborIndices, historicalLabels) {

// Initialize an empty array to store the neighbor labels.

var neighborLabels = array.new\<int\>(0)

// Iterate through the array of nearest neighbor indices.

for i = 0 to array.size(nearestNeighborIndices) - 1

    // Get the index of the current nearest neighbor.

    int neighborIndex = array.get(nearestNeighborIndices, i)

    // Access the corresponding label from the historicalLabels array using the index.

    int neighborLabel = array.get(historicalLabels, neighborIndex)

    // Add the retrieved label to the array of neighbor labels.

    array.push(neighborLabels, neighborLabel)

// Return the array containing the labels of the nearest neighbors.

neighborLabels

}

// @function performKNNClassification: Performs K-Nearest Neighbors classification for a new data point.

// @param newPoint array<float>: The data point to classify.

// @param historicalFeatures array<array<float>>: The historical data points (features).

// @param historicalLabels array<int>: The historical labels.

// @param k int: The number of neighbors to consider.

// @returns int: The predicted classification (1 for long, -1 for short, 0 for neutral).

export function performKNNClassification(newPoint, historicalFeatures, historicalLabels, k) {

// Find the indices of the k nearest neighbors.

array\<int\> nearestNeighborIndices = findNearestNeighbors(newPoint, historicalFeatures, historicalLabels, k)

// Get the labels of the nearest neighbors.

array\<int\> neighborLabels = getNeighborLabels(nearestNeighborIndices, historicalLabels)

// Get the classification vote from the neighbor labels.

int predic

tedClassification = getClassificationVote(neighborLabels)

// Return the predicted classification.

predictedClassification

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @function
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • Low reputation (1):
Posted by: Mohammed Yaseen

79699683

Date: 2025-07-13 01:10:14
Score: 2
Natty:
Report link

Ok I did have a mistake in my code. I had an extra hyphen looking like this: `"Content--Type image/png"`

Of course initially I had the Content-Type set to text/log. Now all is good. Only thing I will work on solving is that the text portion isn't going through but the attachment is going through and every single byte matches precisely with the original and includes the infamous carriage return. Gotta get these headers right!

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

79699673

Date: 2025-07-13 00:26:04
Score: 1.5
Natty:
Report link

OK, OK, I've found it elsewhere... it would be a class (that I have to include in my code), like this:

public class WindowDimension
{
public int Width { get; set; }
public int Height { get; set; }
}

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

79699672

Date: 2025-07-13 00:23:03
Score: 0.5
Natty:
Report link

You have good insights. But, you cannot directly link to chrome://tracing , due to Chrome's security restrictions. chrome:// URLs are not accessible via normal HTML <a> links

Reference:
https://issues.chromium.org/issues/41431413

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

79699670

Date: 2025-07-13 00:18:02
Score: 2
Natty:
Report link

Bună ziua,

Contul meu a fost dezactivat, dar cred că este o greșeală. Am avut un alt cont mai mic care a fost dezactivat pentru o încălcare, dar nu am făcut nimic greșit cu acest cont principal.

Vă rog să analizați situația – acest cont este important pentru mine și nu a încălcat regulile comunității.

Mulțumesc!

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

79699668

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

While del can make an object eligible for garbage collection by reducing its reference count, it does not force the garbage collector to run immediately and reclaim the memory.

Besides, calling clear() on a container can indeed make the objects it previously held eligible for garbage collection, provided they are not referenced by any other part of the program.

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

79699664

Date: 2025-07-12 23:56:58
Score: 2
Natty:
Report link

for new Delphi versions that are based on FMX starting from Delphi Berlin, Sydney, Rio, Tokyo, Alexandria and Athena you will need new components to handle RTL issues.

I recommend two tools skia4delphi (skia4delphi.org) and RTLFixerForFMX (fmxRTL).

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

79699661

Date: 2025-07-12 23:51:57
Score: 3
Natty:
Report link

Erreur d’installation - 0x800b010c il ya une erreur de messe ajourErreur d’installation - 0x800b010c

comment je recuperé l,error dit moi

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

79699648

Date: 2025-07-12 23:19:50
Score: 1.5
Natty:
Report link

What worked for me was

Sudo dpkg-reconfigure apparmor

Followed by

Sudo snap refresh

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Matt Ryan

79699643

Date: 2025-07-12 23:04:47
Score: 1
Natty:
Report link

This is en EXTREMELY annoying problem in Excel/VBA

If you do a msgbox with range("A1").validation.property if will throw an error for all of the properties except a few. application and creator are useless because I don't think they change. IMEMode will return a 0 but I don't think you wanna mess with that. A few of the others will return nothing but won't throw an error.

If you use an if statement like:

If range("a1").validation.ErrorTitle <> "" Then

You can apply an error title to your validation cells to see which ones have error validation and which ones don't. Hope that's helpful. Took me a few hours to figure this out. Would have been helpful if validation.value returned "false" if a user hadn't applied data validation. Bravo Micro$oft.

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

79699642

Date: 2025-07-12 23:02:46
Score: 3.5
Natty:
Report link

You could do it via image editing and an application that can export directly to dxf like inkscape.

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

79699640

Date: 2025-07-12 23:01:45
Score: 8.5
Natty: 4.5
Report link

Hy i have the same problem on an old installation; no buttos for upload,..

        $tableColumns['dateiname'] = array(
            'display_text' => 'datei',
            'maxlen'   => 100,
            'perms' => 'EVCTAXQSHOF',
            'file_upload' => array(
                'upload_fun' => array(&$this, 'handleUpload'), 
                'delete_fun' => array(&$this, 'handleDeleteFile')),
            'table_fun' => array(&$this, 'formatLinkDownload'), 
            'view_fun' => array(&$this, 'formatLinkDownload')
);

function formatLinkDownload($col,$val,$row,$instanceName,$rowNum)
    {
        $html = '';
        if (!empty($val))
        {
            $html = '<a target="_blank" href="'.htmlspecialchars($val).'">test</a>';
        }
        return $html;
    }


i tried with you code snipsets a little bit but my fiel is rendered as type="text"
can you show the                 'upload_fun' => array(&$this, 'handleUpload'), 
                'delete_fun' => array(&$this, 'handleDeleteFile')),
funktions?


Thanks
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (2.5): can you show
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i have the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31027931

79699636

Date: 2025-07-12 22:56:44
Score: 1.5
Natty:
Report link

Firefox for Android does not support the bookmarks and history APIs (yet, maybe some day), not even as optional permissions.

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

79699635

Date: 2025-07-12 22:56:44
Score: 0.5
Natty:
Report link

In my case updating Android studio to the latest version resolved the issue. Thinking it has something to do with the IDE itself not having proper support for recent Android platforms.

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

79699628

Date: 2025-07-12 22:41:41
Score: 2.5
Natty:
Report link

With seaborn you can use FacetGrid()

to plot multiple histograms on the same grid

https://seaborn.pydata.org/generated/seaborn.FacetGrid.html

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fadi79

79699624

Date: 2025-07-12 22:26:38
Score: 2.5
Natty:
Report link

I did the same installation(tf 2.10, python 3.8, CUDA 11.8,cudnn 8.6) it could also detect the gpu, but when i was training it was not using gpu. Later on, by using nvidia-smi this command I gotta know my pc is not using gpu. 1 epoch went like 11 hrs.

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

79699619

Date: 2025-07-12 22:16:36
Score: 3.5
Natty:
Report link

Nope, re-opening the doc does not work. UIdoc still open while the Terminate code executes, and it seems that stops Notes from doing the Encrypt.

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

79699616

Date: 2025-07-12 22:05:33
Score: 0.5
Natty:
Report link

*** Update ***

Since Angular 18 and Material 3:

this.matDialog
  .open(YourDialogComponent, {
    minWidth: 0, maxWidth: '100%', width: '80vw', // Need to set the width this way
  });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gustavo López Frutos