79700542

Date: 2025-07-14 07:30:07
Score: 4.5
Natty: 4
Report link

All apps on one page like it was before

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

79700535

Date: 2025-07-14 07:24:05
Score: 1.5
Natty:
Report link

As of last week, we changed nothing and registrations just work again.

There was no notice from Microsoft or anything about an outage or any logs that would indicate what the error was.

The main takeaway from this is in my opinion: If you use Azure Notification Hubs they sometimes just don't work and there's nothing you can do about it.

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

79700529

Date: 2025-07-14 07:18:03
Score: 14.5
Natty: 7.5
Report link

I am facing the same problem. how did you solve it?

Reasons:
  • Blacklisted phrase (1): how did you solve it
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohamed Farouk

79700526

Date: 2025-07-14 07:11:02
Score: 0.5
Natty:
Report link

Update: The Android AOSP has been updated (sometime between 2014 when this question was asked and 2025) to support this according to the docs

When using BLE, an Android device can act as a peripheral device, a central device, or both. Peripheral mode lets devices send advertisement packets. Central mode lets devices scan for advertisements. An Android device acting as both a peripheral and central device can communicate with other BLE peripheral devices while sending advertisements in peripheral mode. Devices supporting Bluetooth 4.1 and earlier can only use BLE in central mode. Older device chipsets may not support BLE peripheral mode.

So according to this, the answer has changed to "yes", Android can now be used as a headset for another device

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

79700516

Date: 2025-07-14 06:55:58
Score: 2.5
Natty:
Report link

I found out that According to the public documentation. NativeWind is not yet supported by dynatrace npmjs.com/package/@dynatrace/… and currently there is no plan to support it in the near future. That means, while using dynatrace we cannot use gluestack in react native application.

Dynatrace is having conflict with tailwind and nativewind

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

79700514

Date: 2025-07-14 06:54:58
Score: 2.5
Natty:
Report link

I have the following SQL Server execution plan in XML or graphical format. Help me analyze it and identify any performance bottlenecks. Then, suggest specific optimizations to improve query performance, such as missing indexes, expensive operators, or join issues.

Execution Plan:

[Paste the execution plan XML or describe the operators and costs here]

Additional Info:

- SQL Query used: [Paste the actual SQL query here]

- Table statistics are up to date: [Yes/No]

- Are indexes currently present on the involved tables: [Yes/No]

- Expected number of records in each table: [Give estimates]

Your task:

- Analyze the execution plan.

- Point out costly operations (e.g., key lookups, table scans, hash joins).

- Suggest SQL query rewrites or indexing strategies.

- Indicate if any table statistics or indexes are missing.

- Recommend any SQL Server configuration improvements if applicable.

Reasons:
  • Blacklisted phrase (1): Help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Praveen Kumar

79700508

Date: 2025-07-14 06:47:56
Score: 2.5
Natty:
Report link

In CLion 2025 and later versions, Qt support has been added. Thanks to this support, variable values are now displayed correctly during debugging.

Details: Introducing Qt Renderers in CLion’s Debugger

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dream59

79700501

Date: 2025-07-14 06:38:55
Score: 2.5
Natty:
Report link

add suppressHydrationWarning={true} to the body in your root layout. This will suppress the hydration warnings that are caused by browser extensions modifying the HTML attributes after the page loads.

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

79700497

Date: 2025-07-14 06:33:53
Score: 1
Natty:
Report link

I recently had a similar problem under MSWindows 10, and it was solved when under the « contextual menu = Propriétés / tab = Sécurité » of the DLL file (My PC language is French, I am not sure what the labels are in English), I clicked on « Modifier » button to remove all the goups/users but myself. The issue was that the order of them was masking my privileges.

With the « Avancé » button, one gets a pannel in which the « Accès effectif » allows to check that the privileges are in effect what they are configured. That was not the case before I removed other users/groups.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vincent Belaïche

79700488

Date: 2025-07-14 06:16:50
Score: 5
Natty: 4
Report link

Title : Tauri + React: Image not displaying after saving in AppData folder

Hello everyone,
I’m working on a project using Tauri with React, and I’ve run into an issue with image handling.

I’m creating an images folder inside the AppData directory and copying uploaded images into that folder. I also store the image path in the SQLite database. Everything works fine during upload — the image is saved correctly, and the path is stored — but when I try to display the image later in my app, it doesn’t show up.

Here’s the function I’m using to add a product and save the image:

async function addProduct( file, productName, category, price, description ) { try { const database = await initDatabase(); const tokenExists = await exists("images", { baseDir: BaseDirectory.AppData, }); if (!tokenExists) { await mkdir("images", { baseDir: BaseDirectory.AppData, }); } const filename = await basename(file); const uniqueName = `${Date.now()}${filename}`; const destinationPath = `images/${uniqueName}`; await copyFile(file, destinationPath, { toPathBaseDir: BaseDirectory.AppData, }); await database.execute( "INSERT INTO product (productImage, productName, category, price, description) VALUES (?, ?, ?, ?, ?)", [destinationPath, productName, category, price, description] ); return { ok: true, message: "Product added successfully" }; } catch (error) { console.error("❌ Failed to add product:", error.message); throw error; } }

To display the image, I’m trying to load it like this:

<img src={`C:\\Users\\YourUser\\AppData\\Roaming\\com.product.app\\images\\${item.productImage}`} />

But the image is not rendering, and the console shows an error:
"Not allowed to load local resource"

Question:

Any help would be appreciated

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mudasir Nadeem

79700487

Date: 2025-07-14 06:09:49
Score: 1.5
Natty:
Report link

You will need to write some JavaScript code using the Wix APIs. In some sense, part of the API works a little like jQuery, but minimal JavaScript proficiency and the ability to understand technical documentation is really all you need.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Sam

79700482

Date: 2025-07-14 06:05:48
Score: 3.5
Natty:
Report link

Check the exact error in Inspect (Browser)...

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

79700478

Date: 2025-07-14 05:50:45
Score: 2.5
Natty:
Report link

Wrap the widget using the controller in a StatefulWidget class so that you can initialise the controller there and use dispose

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

79700463

Date: 2025-07-14 05:32:41
Score: 3
Natty:
Report link

The max response time (2537367) is way too high when users hit 8000, which might lead to a crash. Please test with, say, 1000 and 2000 and check if it works!

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

79700458

Date: 2025-07-14 05:24:39
Score: 2.5
Natty:
Report link

Check that your phone and computer are on the same Wi-Fi network.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Waweru Kamau

79700456

Date: 2025-07-14 05:22:39
Score: 1.5
Natty:
Report link
select "Order","Mode"
  from your_table a
where not exists(select 1
  from your_table b
where "Mode" not in ('T','I')
and b."Order"=a."Order");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahesh Pawar

79700443

Date: 2025-07-14 04:57:34
Score: 0.5
Natty:
Report link

I implement a separate update method in Service layer and use native query in repository for UPDATE operation and it still results this WARN. So I config it in the application properties:

logging.level.org.hibernate.persister.entity = true
Here is the link for this solution:
https://stackoverflow.com/questions/61398510/disable-warning-entity-was-modified-but-it-wont-be-updated-because-the-proper
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): Here is the link
  • Whitelisted phrase (-2): solution:
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: huy tan

79700438

Date: 2025-07-14 04:46:31
Score: 1.5
Natty:
Report link

Came across this problem just a while ago and it sure made my head scratch when it said try connecting to your own network daemon and as a newbie, I almost did not get it until I figured that since it was transmitting a password when i ran the ./suconnect setuid file with the open ports(yes i tried them all) then maybe I just had to listen to it and pulled up another terminal with the netcat command along with the port which led to easily solving the puzzle.

nc -lnvp <port number>

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

79700437

Date: 2025-07-14 04:42:31
Score: 0.5
Natty:
Report link
HexagonWidgetBuilder(
            color: Colors.black, //Colors.transparent
            child: HexTile(imagePath: media[index]));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Aks

79700422

Date: 2025-07-14 03:57:21
Score: 1.5
Natty:
Report link

I realised that I was using attributes(), but if I replace with addAttributes() it preserves the id & class. I will mark this as solved.

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

79700417

Date: 2025-07-14 03:46:19
Score: 9
Natty: 6.5
Report link

did you manage to fix it ? would love to know how

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to fix it
  • RegEx Blacklisted phrase (1.5): fix it ?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Tally Loterman

79700410

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

Reaching over 200 members felt like a milestone for us. We used some solid organic strategies and a bit of automation to bring in the key was adding value not just volume. brother cell phone list visit my website .

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

79700406

Date: 2025-07-14 03:28:14
Score: 3.5
Natty:
Report link

Edit-> Preferences-> Editor -> Editor Styles

I changed the font size to 12 as follows.

enter image description here

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

79700402

Date: 2025-07-14 03:20:12
Score: 1
Natty:
Report link

It seems to be happened when there are no go files under the package.

In my case I just forgot to run the templ generate so the package contains .templ files only and got this error.

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

79700401

Date: 2025-07-14 03:17:11
Score: 3
Natty:
Report link

Untuk Membatalkan Pengajuan Pinjaman di Adakami Yang Sudah Cair, pelanggan dapat Hubungi CS WA: (0817_4773_445.) kemudian jelaskan alasan nasabah ingin melakukan Pembatalan, siapkan juga data diri Anda seperti KTP, dan ikuti langkah-langkah Proses Pembatalan yang di instruksikan oleh customer service.

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

79700392

Date: 2025-07-14 02:57:08
Score: 1.5
Natty:
Report link

I managed to fix the issue by enabling the dtype-i128 feature on polars.

Although not 1:1, this looks like it might be related to this on-going discussion

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

79700389

Date: 2025-07-14 02:52:07
Score: 2.5
Natty:
Report link

Newer versions (Android Studios 7+) strictly enforce naming conventions.
The project could have been committed before Android Studios 7 or with a failed build.

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

79700374

Date: 2025-07-14 02:10:57
Score: 4
Natty: 4
Report link

stack overflow sucks the homo dick and microsoft sucks the nggr dick

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

79700355

Date: 2025-07-14 01:22:47
Score: 0.5
Natty:
Report link

Dig into the code for the Init Flux LoRA Training node and look at where it builds the blocks when blocks_to_swap > 0. Somewhere in there, it’s probably creating a tensor (or loading weights) without sending it to .to("cuda"). You can try manually forcing .to("cuda") on any tensors/models it creates — especially right after blocks_to_swap gets used. If that doesn’t help, wrap that section in a check like if tensor.device != target_model.device: tensor = tensor.to(target_model.device) just to be safe.

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

79700333

Date: 2025-07-14 00:17:33
Score: 2.5
Natty:
Report link

FreeBasic , is compiled very fast as C.. and do that Things. FreeBasic use Mingw64 in windos as library of windows, run in linux too. Use GCC compiler, there is version in 32 and 64 bits,

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

79700331

Date: 2025-07-14 00:12:32
Score: 2
Natty:
Report link

You grabbed the wrong package—the tiny “pytorch” stub from 2019 is a dead end. Yank it, then run pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu (swap cpu for your CUDA tag) and itll work That python313.dll pop‑up means you’re on the bleeding‑edge Python 3.13, and PyTorch hasn’t built wheels for it yet. start a fresh venv with Python 3.12 and it will install.

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

79700328

Date: 2025-07-14 00:05:31
Score: 2
Natty:
Report link

None of the above works now.

figure {margin:0} has no effect

amazon insist I put img inside these tags <figure>.. ..</figure>, but when done so, the images are all indented about 170 pixels, so 1/2" of right side of image goes off the screen, how can I stop that? <figure><img alt="Music score for Jack Hall." src="../Images/29JhFi_Jack_Hall.jpg"/><figcaption>Jack Hall by Jack Endacott.</figcaption></figure>

figure {margin:0} has no effect, and I cannot understand that hi tech code at all.
Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Goldenaer

79700323

Date: 2025-07-13 23:56:29
Score: 1
Natty:
Report link

If there is an old identity column, you need to drop the old index first.

ALTER TABLE <table_name> DROP CONSTRAINT <index_name>;
Alter table <table_name> add <column_name> INT IDENTITY;
ALTER TABLE <table_name> ADD CONSTRAINT <index_name> PRIMARY KEY NONCLUSTERED (<column_name>);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: crane

79700319

Date: 2025-07-13 23:48:27
Score: 1.5
Natty:
Report link

In my own case I discovered that I wasn't including the "/" at the end of url, hence causing the error. When i included the .../api/users/register/ as aganist .../api/users/register it worked just fine as it ought to.

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

79700316

Date: 2025-07-13 23:36:24
Score: 12
Natty: 7.5
Report link

I'm having the same problem. Did you find a solution for this?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aslı Yüksel

79700306

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

I'm not sure what your JSON structure looks like and what it contains - but how are you loading it? If you're working with dataframes and/or using the json library, you should be using the json.loads() or pd.read_json() methods. Try using that and see if that works at first? I think when you're making this statement:

variables = json_dict.get( 'variables', None )

The variables assignment might be returning a None type or an empty result. Could you check if this is working first before you run your condition block? I'm assuming your json_dict is a dictionary of dictionaries, and what you want is a dictionary of strings.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: stillLearning

79700304

Date: 2025-07-13 23:10:17
Score: 2
Natty:
Report link

XGIMI HALO manufacturer data is 0x74B85A4135F278FFFFFF3043524B544D

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

79700298

Date: 2025-07-13 23:03:16
Score: 2
Natty:
Report link

you cannot, without paying ...

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

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