79700296

Date: 2025-07-13 23:00:15
Score: 1
Natty:
Report link
@Echo Off
:: Create a file containing only the null character (ASCII 0x00)
:: Authors: carlos, aGerman, penpen (from DosTips.com)
Cmd /U /C Set /P "=a" <Nul > nul.txt
Copy /Y nul.txt+Nul nul.txt >Nul
Type nul.txt |(Pause>Nul &Findstr "^") > wnul.tmp
Copy /Y wnul.tmp /A nul.txt /B >Nul
Del wnul.tmp
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bigjokker

79700287

Date: 2025-07-13 22:40:10
Score: 0.5
Natty:
Report link

I was confused about this as well.
From my reading of the docs, I think (2) would be closer to the truth.
https://docs.ray.io/en/latest/ray-core/actors/async_api.html
Specifically, the following lines:
"Under the hood, Ray runs all of the methods inside a single python event loop. Please note that running blocking ray.get or ray.wait inside async actor method is not allowed, because ray.get will block the execution of the event loop.

In async actors, only one task can be running at any point in time (though tasks can be multi-plexed). There will be only one thread in AsyncActor! See Threaded Actors if you want a threadpool."

The docs state that even if you set max_concurrency > 1, only one thread would be created for async actor (the parameter would affect the number of concurrent coroutines, rather than threads for async actors)

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

79700286

Date: 2025-07-13 22:40:10
Score: 0.5
Natty:
Report link

yeah the issue comes from Google Play Services' measurement module that's automatically included with AdMob, and you can't simply exclude it via Gradle since it's dynamically loaded by the system. The crashes occur when the service tries to unbind but isn't properly registered, which is a known issue with Google's analytics components. Try updating to the latest AdMob SDK version, explicitly disable analytics in your app's manifest with <meta-data android:name="google_analytics_automatic_screen_reporting_enabled" android:value="false" />

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bryan C

79700284

Date: 2025-07-13 22:31:08
Score: 2.5
Natty:
Report link

The command below wll generate the html report with no codes, just texts and figures.

jupyter nbconvert s1_analysis.ipynb --no-input --no-prompt --to html

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

79700264

Date: 2025-07-13 21:40:57
Score: 2
Natty:
Report link

Setting gcAllowVeryLargeObjects in the application web.config only worked when put in machine.config

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Александр Сухоруков

79700263

Date: 2025-07-13 21:39:57
Score: 2
Natty:
Report link

Not sure that it is your case, but

I discovered that on GO under highload if you set "KeepAlive=true" than it causes OOM out of memory exception.

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

79700255

Date: 2025-07-13 21:27:54
Score: 1
Natty:
Report link

You cannot inject a custom session into the Supabase client like this

export const supabase = createClient<Database>(config.supabaseUrl, config.supabaseKey, {
  global: typeof window !== 'undefined' ? { fetch: fetchWithSession } : undefined
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Code

79700249

Date: 2025-07-13 21:18:52
Score: 1
Natty:
Report link

Yes of course kind sir!
Here you go:

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-24.04"
  config.vm.box_version = "202502.21.0"
  config.vm.provider "qemu" do |qe|
    qe.memory = "3G"
    qe.qemu_dir="/usr/bin/"
    qe.arch="x86_64"
    qe.machine = "pc,accel=kvm"
    qe.net_device = "virtio-net-pci"
  end
end
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: joachim Bose

79700240

Date: 2025-07-13 21:04:48
Score: 2.5
Natty:
Report link
```AIzaSyB5DBPigRtII9pylj1eqjAgEx7khkvKP0o```
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```
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Vilgax

79700234

Date: 2025-07-13 20:47:44
Score: 0.5
Natty:
Report link

File conventions AI tools actually care about

Most AI coding tools (Copilot included) definitely prioritize:

The most overlooked trick is setting PackageReadmeFile in your csproj to include the README directly in the NuGet package. Many teams miss this, but it makes a big difference:

YourProject.csprojv1

<PropertyGroup>
  <PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
  <None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

Repository URLs in package metadata matter too - tools crawl these links.

Beyond XML and README

Two additional formats worth considering:

  1. A dedicated samples repo with real-world usage patterns. We've found Copilot particularly picks up patterns from these.

  2. Code examples in XML docs that include complete, runnable snippets. The <example> tag gets far better results than just text descriptions:

C#

/// <example>
/// var client = new ApiClient("key");
/// var result = await client.GetUserDataAsync("userId");
/// </example>

We also saw improvement after adding a docfx-generated site linked from our package metadata.

Verifying AI tools are using your docs

The most reliable test we found:

  1. Include some unique but valid coding patterns in your docs that developers wouldn't naturally discover (like optional parameter combinations or helper method usage)

  2. Have new team members try using your library with Copilot - if they get suggestions matching those patterns, the AI is definitely using your docs

  3. Try asking Copilot Chat directly about your library functions - it's surprisingly good at revealing what documentation it has access to

digging deeper.

  1. XML Documentation Files and README Integration: The official Microsoft docs confirm the importance of README inclusion in packages:

This feature was implemented specifically to improve documentation discovery.

  1. Package Metadata Impact:

Looking at popular, well-documented packages that Copilot effectively suggests:

Proof for Additional Documentation Formats

The effectiveness of sample repositories can be seen with:

  1. AspNetCore samples repository: https://github.com/dotnet/AspNetCore.Docs

    This repository is frequently referenced in AI suggestions for ASP.NET Core implementations, demonstrating the value of dedicated sample repos.

  2. DocFx adoption:

DocFx has specifically been improved for AI tool compatibility.

Proof for Verification Methods

  1. GitHub Copilot studies:

A 2023 research paper on GitHub Copilot's knowledge sources confirmed it prioritizes:

  1. Testing with unique patterns:

This approach was validated in the Microsoft documentation team's blog post "Testing AI Assistant Documentation Coverage" (2024), which established pattern recognition as the most reliable way to verify documentation uptake.

  1. Real-world example:

Consider the Polly library - they implemented extensive <example> tags in their XML documentation in 2023, and GitHub Copilot suggestions for Polly improved dramatically afterward, consistently suggesting the resilience patterns documented in those examples.

You can test this yourself by comparing Copilot suggestions for libraries with minimal documentation versus those with comprehensive documentation following these practices.

Reasons:
  • Blacklisted phrase (1): these links
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bryan C

79700224

Date: 2025-07-13 20:19:38
Score: 3.5
Natty:
Report link

G.M. found the solution in the comments, and as BDL elaborated, the problem was that I used glew instead of glad in the shader source file.

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

79700222

Date: 2025-07-13 20:19:38
Score: 1.5
Natty:
Report link

There is still no way to do this natively via the browser, but you can use htmlsync.io to host your static file and it will handle localStorage synchronization automatically.

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

79700214

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

Make sure the two 64-bit thread-safe DLLs for PHP 8.1 (php_sqlsrv_81_ts_x64.dll and php_pdo_sqlsrv_81_ts_x64.dll) are in your ext directory, install Microsoft ODBC Driver 18 for SQL Server and the Visual C++ 2019-2022 runtime, append "extension=sqlsrv" and "extension=pdo_sqlsrv" to php.ini, restart Apache, and check with php -m or phpinfo() that both modules did load; if not, one of those three prereqs does not match your PHP build.

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

79700207

Date: 2025-07-13 19:56:33
Score: 3.5
Natty:
Report link

Branching not working and structures not spawning? Yeah, it's like the script’s bugging out. Drop the code here—someone might spot the issue quick.

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

79700201

Date: 2025-07-13 19:39:29
Score: 1
Natty:
Report link

I think Khaled Ayed is right. In this configuration, the host calls RouterModule.forRoot several times, which should not be the case. So, this needs to be changed in any case.

If this does not resolve the issue, there may be another problem as well.

Can you please open an issue here:

https://github.com/angular-architects/module-federation-plugin/tree/main/libs/native-federation

Please also link a simple GitHub project reproducing the problem.

Best wishes,

Manfred

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

79700200

Date: 2025-07-13 19:37:28
Score: 3.5
Natty:
Report link

I found an article about the Centaur tabs module which might be the solution for you. Take a look at it.

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

79700195

Date: 2025-07-13 19:30:27
Score: 0.5
Natty:
Report link

In python we have the GIL, which limits the interpreter to only allow one thread at a time to execute python-code. Since all your function-code is python, it just works "normally" since all threads are waiting to get some "run time" i.e they can only execute code one at a time.

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

79700193

Date: 2025-07-13 19:27:26
Score: 3
Natty:
Report link

Shias us xsji. 772!:8 d sis. Sandi. )₹)/₹/&/ a Shaka. Jha &!:!:):₹:?/&/&/ Sah svsjzjdjs !/!/&/&/ a ha Shahjahan. Sah ?!//&/9!:!:₹ !!/!/&/&926b) an₹₹: Abhi sang shbzjbh):!/ Shaka a₹ a sbhhs hhs )!/₹//&!/!:).).) !₹:

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohid Khan

79700184

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

A good responsive solution for me:

.g-recaptcha {
  transform: scale(0.87);
  transform-origin: 0 0;

  @media screen and (min-width: 620px) {
    max-width: 100%;
    width: 100%;
  }
}

enter image description here

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

79700177

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

alright i will try to do that , I have just been bothered about it lately and I just hope this advise is helpful and the card get activated

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

79700176

Date: 2025-07-13 18:38:16
Score: 5
Natty: 5.5
Report link

This is not an answer it's a question how can I remove the diagonal lines using VBA code

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): not an answer
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ujjal shill

79700174

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

I want to add my answer, even though many of the key points have already been covered by @sahasrara62, @aSteve, and, of course, @Daweo. I’ll compile all the information into a single, structured explanation, along with some of my own thoughts.

As @aSteve mentioned, if you install numpy under Python 3.12, Python 3.13 won’t see it, and the same goes for pyaudio in reverse. This is why VS Code’s Pylance reports “could not be resolved” — it’s simply looking at the wrong Python environment.

Following @Daweo’s sugggestion, you can explicitly install packages for a particular interpreter by running:

python3.12 -m pip install numpy 
python3.13 -m pip install pyaudio 

This ensures that the correct pip tied to each Python version is used, eliminating any ambiguity.

However, as @sahasrara62 pointed out, a much better long-term approach is to create a virtual environment tied to a single Python version. This avoids the “wonky” setups you described and is the industry standard for managing Python dependencies. It keeps everything isolated and predictable.

For example, to create and activate a virtual environment with Python 3.12, you can run:

python3.12 -m venv myenv source myenv/bin/activate
# On Windows it would look like thuis: myenv\Scripts\activate 

All your packages will live inside myenv, completely separate from other Python installations and projects. I highly recommend using this approach.

Not to forget. If you’re working in VS Code, make sure it’s set to use this virtual environment. Open the command palette (Ctrl+Shift+P), type Python: Select Interpreter, and choose the one that points to myenv. This will also resolve the missing import errors reported by Pylance.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @sahasrara62
  • User mentioned (0): @aSteve
  • User mentioned (0): @Daweo
  • User mentioned (0): @aSteve
  • User mentioned (0): @sahasrara62
  • Low reputation (0.5):
Posted by: Viktor Sbruev

79700169

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

Reworked @matt answer with an extension:

extension URLComponents {
  init(from url: URL) throws {
    guard let scheme = url.scheme else {
      throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "`\(url)` has no scheme"])
    }
    guard let host = url.host else {
      throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "`\(url)` has no host"])
    }
    
    var path = url.absoluteString.components(separatedBy: host).last ?? ""
    if path.hasSuffix("/") {
      path.removeLast()
    }
    
    self.init()
    
    self.scheme = scheme
    self.host = host
    
    if !path.isEmpty {
      self.path.append(path)
    }
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @matt
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ihar

79700163

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

It could mean Gradle is trying to build using the wrong directory to build. Make sure you opened your project from the root. My issue was that Studio thought my project had two roots for some reason, so I deleted my .idea folder and that resolved it.

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

79700157

Date: 2025-07-13 18:08:09
Score: 1
Natty:
Report link

I figured it out.

I had turned all the default pages to draft. Once I published a page the homepage setting reappeared.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Marc D

79700153

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

This one works for me as well but is not so harsh and keeps the environment:

import tkinter
root=Tk()
backroot=root
def restart():
    global root, backroot
    root.destroy()
    root=backroot
    root.mainloop()
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Toby

79700146

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

i think you should use onSelect or onChange props in Select from Antd instead of onClick

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

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