79707577

Date: 2025-07-19 21:26:37
Score: 3.5
Natty:
Report link

Select/option elements In Chrome don't "drop down" if they are inside a draggable element on as explained in: No possibility to select text inside <input> when parent is draggable

Some workarounds are suggested in the link.

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

79707574

Date: 2025-07-19 21:22:36
Score: 1.5
Natty:
Report link

I swear to go VBA just likes to screw with me.

refStr = "=" & colName & "[" & colHdr & "]"

This works fine and I have no idea why it wasn't working before. It's like VBA doesn't update to reflect your changes or something.

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

79707555

Date: 2025-07-19 20:44:29
Score: 0.5
Natty:
Report link

It turns out that I missed the null checking in the Case class.

private static void OnPropChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
    if (d is Case _case && _case.SwitchCase != null && _case.SwitchValue != null)
    {
        _case.Content = _case.SwitchCase.ToString() == _case.SwitchValue.ToString() ? _case.SwitchContent : null;
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Richard Harrison

79707552

Date: 2025-07-19 20:31:27
Score: 1
Natty:
Report link

Looks like you aren't awaiting the pool.end(). This could mean your test runner may exit before pool.end() resolves which could potentially be leaving open sockets.

afterAll(async () => {

  await pool.end();

});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aansh Kotian

79707545

Date: 2025-07-19 20:21:25
Score: 4
Natty: 4
Report link

एक लकड़हारा था, जो रोज़ पेड़ काटता। एक दिन पेड़ गिरा नहीं...
पहले वार, दूसरा, तीसरा... दस… बीस… पचास…
लेकिन वो नहीं रुका।

100वें वार पर — पेड़ गिर गया!
लोग बोले — "एक ही वार में गिरा दिया!"
पर उसे पता था…
ताक़त उस एक वार में नहीं, उन 99 हार ना मानने वाले वारों में थी।


Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Prakash Vala

79707535

Date: 2025-07-19 19:47:18
Score: 1
Natty:
Report link

This is currently a feature missing from rocket_ws. There is an open ticket regarding it.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Daniel Walker

79707523

Date: 2025-07-19 19:33:15
Score: 2
Natty:
Report link

Yes, I had the same issue, then i came across this github issue, to simplify the build the Proj4 projection were removed and only the EPSG:4326 and EPSG:3857 projections are supported.

Here is the link of the github issue

http://github.com/mapnik/mapnik-support/issues/17

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sparsh Sahu

79707518

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

I tried all the suggestions from that short-lived AI answer and the only thing that ended up working for me was installing Python 3.11 using MacPorts, setting up a Venv and reinstalling all dependencies, now the code works like a charm again.

Wish I knew why my old installation broke when I didn't change any of the code files, but I suspect it has something to do with the packages I installed yesterday when toying around with Flask.

Taught me to use a Venv for different projects.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Sora.

79707513

Date: 2025-07-19 19:17:11
Score: 1
Natty:
Report link

open vscode settings, search for 'exclude', first option will be Files: exclude

or in user settings json file:

    "files.exclude": {
        "**/*.d.ts": true,
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lex

79707509

Date: 2025-07-19 19:07:08
Score: 6.5
Natty: 5.5
Report link

Did you make any more progress on this?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: h3xtor

79707500

Date: 2025-07-19 18:57:06
Score: 1.5
Natty:
Report link

After a bit of research, I found this construction:

my ($a, @b, $c);
:($a is copy, @b, $c) := \(42, <a b c>, 42);
$a = 1;
say [$a, @b, $c]; # OUTPUTS: [1 (a b c) 42]

While this is still technically binding, it works the way I wanted — I can reassign $a afterwards.

Unfortunately, this only works without any declarators. If we write my :($a is copy, @b, $c) := \(42, <a b c>, 42);, it throws a Cannot assign to a readonly variable or a value exception when attempting to reassign $a.

Reasons:
  • Blacklisted phrase (1): :(
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fingolfin

79707494

Date: 2025-07-19 18:49:04
Score: 3.5
Natty:
Report link

Don't run the form while still encountering errors. It seems like it will just display the last stable version.

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

79707484

Date: 2025-07-19 18:40:02
Score: 2.5
Natty:
Report link

template<typename T>

struct Loop {

template<typename U>

struct X{

using type =typename Loop<X>::type;

};

using type = typename X<T>::type;

};

int main()

{

Loop<int>::type;

}

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

79707478

Date: 2025-07-19 18:27:59
Score: 0.5
Natty:
Report link

so we are at expo sdk 51 and not planning to upgrade any sooner.

 [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 34,
            "targetSdkVersion": 35,
            "buildToolsVersion": "35.0.0",
          }
        }
      ],

will this work for us?

tried the above mentioned answer, but got build error so just making compileSdkVersion:'34' ll work? we are on free eas plan it already takes a long time to start build and i do make direct eas build (no prebuild etc)

{
  "expo": {
    ...
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 35,
            "targetSdkVersion": 35,
            "buildToolsVersion": "35.0.0"
          },
        }
      ]
    ]
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Md Adnan Sami

79707476

Date: 2025-07-19 18:25:59
Score: 1.5
Natty:
Report link

So apparently, I messed the math up, instead of

(img_tk.width() / int(2) + 1)

I need to add the 2, not width/2, meaning I add to add brackets like this:

(img_tk.width() / (int(2) + 1))
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aadvik

79707473

Date: 2025-07-19 18:19:57
Score: 1
Natty:
Report link

Answering as a comment.

I have a .NET 8 API with VueJs frontend using <SpaRoot> setup.

Firstly, check if you're using the SpaRoot in the csproj of the server or not.

The SpaRoot should be pointing to your front end UI folder and there should be an execute command near that SpaRoot element.

You don't need a multi-app start config. When you run the server on its own it should boot up and display "waiting for SPA".

Then VS will run your launch command, think it's default to npm run dev. Where you'll see a console population and build and run the server-host for your UI on a port.

Your page is displaying at your API port and will redirect to the port your UI is at.

If you get debug port errors, could be a config issue or port mismatch in launch settings json and/or your front-end thing.config.json AND csproj Spa settings.

If all else fails, check port availability incase somthing is using it. It happens sometimes.

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

79707470

Date: 2025-07-19 18:12:56
Score: 1
Natty:
Report link

Aha! I found the problem. The actual problem was not the units, it was the range() function. I forgot that range() actually didn't include the final number. To solve it, I replaced

range(1, int(2)+1)

with

range(1, int(2)+2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aadvik

79707468

Date: 2025-07-19 18:11:55
Score: 4
Natty:
Report link

The RS232 pins can be easily accessed for both reading and writing. See the following example.

enter image description here

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

79707460

Date: 2025-07-19 17:52:51
Score: 0.5
Natty:
Report link

@override

Widget build(BuildContext context) {

return Scaffold(

body: Container(

  decoration: BoxDecoration(

    gradient: LinearGradient(

      colors: \[Colors.blue.shade300, Colors.blue.shade900\],

      begin: Alignment.topCenter,

      end: Alignment.bottomCenter,

    ),

  ),

  child: Center(

    child: Padding(

      padding: const EdgeInsets.all(24.0),

      child: Column(

        mainAxisAlignment: MainAxisAlignment.center,

        children: \[

          Text(

            'Versículo do Dia',

            style: TextStyle(

              fontSize: 28,

              color: Colors.white,

              fontWeight: FontWeight.bold,

            ),

          ),

          SizedBox(height: 40),

          Container(

            padding: EdgeInsets.all(20),

            decoration: BoxDecoration(

              color: Colors.white.withOpacity(0.9),

              borderRadius: BorderRadius.circular(20),

            ),

            child: Text(

              versiculoAtual,

              style: TextStyle(

                fontSize: 20,

                fontStyle: FontStyle.italic,

                color: Colors.black87,

              ),

              textAlign: TextAlign.center,

            ),

          ),

          SizedBox(height: 30),

          ElevatedButton.icon(

            onPressed: gerarVersiculo,

            icon: Icon(Icons.refresh),

            label: Text('Novo Versículo'),

            style: ElevatedButton.styleFrom(

              backgroundColor: Colors.white,

              foregroundColor: Colors.blueAccent,

            ),

          ),

        \],

      ),

    ),

  ),

),

);

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @override
  • Low reputation (1):
Posted by: Isaque santana da silva Santan

79707453

Date: 2025-07-19 17:45:50
Score: 1
Natty:
Report link

Another thing that i want to suggest.
as you are using "fish" shell..

so try this one time.. see if it's went well or not

"code-runner.executorMap": {
   "python": "source .venv/bin/activate.fish && python"
}
Reasons:
  • Whitelisted phrase (-1): try this
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhinandan M.

79707452

Date: 2025-07-19 17:42:50
Score: 1
Natty:
Report link

You don’t need to retrain your entire model to adapt it to each user’s gesture style. A common approach is to collect a few samples of the user’s swipe gestures (e.g., 10–20 during a calibration step) and use these to fine-tune the detection threshold or train a small classifier on top of your pre-trained model’s embeddings.

For example:

  1. Use your current model as a feature extractor.

  2. Capture user-specific gesture data and adjust the decision threshold based on the model’s confidence scores.

  3. If you need better accuracy, train a lightweight classifier (like logistic regression or SVM) on-device using the captured embeddings.

Frameworks like TensorFlow Lite or Core ML allow on-device personalization, so you can adapt without redeploying the entire model. If on-device retraining isn’t possible, you can collect user data (with consent) and periodically fine-tune the model server-side.

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

79707437

Date: 2025-07-19 17:27:46
Score: 1
Natty:
Report link
from collections import deque
def reverse_lines(filename):
  try:
    with open(filename,'r') as f:
      lines = deque()
      for line in f:
        lines.append(line)
      while lines:
        yield lines.pop()
  except FileNotFoundError:
    print("File not found")

for line in reverse_lines(r'/content/example.txt'):
  print(line)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31090286

79707435

Date: 2025-07-19 17:23:45
Score: 4.5
Natty: 5
Report link

The following blog post is on chunk parallel download of files using Python and curl:

https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html

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

79707426

Date: 2025-07-19 17:15:43
Score: 1
Natty:
Report link

i think this does not work now as text.legnth i am getting 0

import { YoutubeTranscript } from "youtube-transcript";

var transcript_obj = await YoutubeTranscript.fetchTranscript("_cY5ZD9yh2I");

const text = transcript_obj.map((t) => t.text).join(" ");
console.log(text);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harshit Agrawal

79707415

Date: 2025-07-19 17:00:40
Score: 2
Natty:
Report link

a. const should be let
b. greeting === undefined
c. "${this.greeting} ${this.name}" should be `${this.greeting} ${this.name}`

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

79707409

Date: 2025-07-19 16:49:37
Score: 0.5
Natty:
Report link

domain="[('id', 'in', duplicate_ids)]"

duplicates = self.env['hr.applicant'].with_context(active_test=False).search(domain)

Ensure the widget context does not override active_test=False implicitly. Currently, your field looks like this<field name="selected_duplicate_id" widget="many2one" options="{'no_create': True, 'no_open': True}" context="{'active_test': False, 'hr_force_show_archived': True, 'search_default_duplicates': True}" domain="[('id', 'in', duplicate_ids)]" class="oe_inline w-100"/>

You are very close — your backend logic is correct. The final fix likely lies in ensuring the context is properly passed into name_search() from the form, and confirming that duplicate_ids truly includes inactive records at runtime.

Would you like help checking your _get_similar_applicants_domain() method too? Sometimes the filter (‘active’, ‘in’, [True, False]) might be missing there.

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

79707390

Date: 2025-07-19 16:19:31
Score: 1
Natty:
Report link

The Yeray's solution above is good enough for a bar chart but not suitable for a line chart where working series (lines) might have zero value.

In that case, when using OnAfterDraw, the working line series are hidden by the customdrawn horizontal line.

In my case I actually needed a solution for a line chart. For this, the best solution seems to be to use the OnBeforeDrawSeries event instead. The remaining code is the same.

If anyone uses the TaChart component in Lazarus instead of TeeChart in Delphi, the approach there is similar. But because OnBeforeDrawSeries event is missing in TaChart, OnAfterCustomDrawBackWall appears to be the best to do the job.

Another possible solution which I've found myself in the meantime is to use a dummy zero line series.

Another solutions specific for TaChart might be available in the Lazarus forum where I asked the same question:
TAChart how to make different width and/or color only for a specific grid line

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

79707389

Date: 2025-07-19 16:19:31
Score: 0.5
Natty:
Report link

Good day.
(Sorry, my eng not very good)

According to the GitHub issue(#395 and #272), this problem can be solved using this method

Solution:

Change param in Default Settings (JSON)


"code-runner.executorMap": { ... "python": "$pythonPath -u $fullFileName" ... }

You can set a static path to your Python from the virtual environment. And on the next run, the logic will be as in the screenshot below. (This way you won't encounter the error)

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): Good day
  • Whitelisted phrase (-2): Solution:
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sindik

79707371

Date: 2025-07-19 15:58:26
Score: 0.5
Natty:
Report link

Could not build wheels for ____ which use PEP 517 and cannot be installed directly

Don’t worry — it usually just means pip is having trouble building the package. A simple way to fix it is to force pip to install from source instead of using a wheel. Just run:

pip install <package-name> --no-binary :all:

This tells pip:

pip install setuptools wheel build

That’s it. This method is totally normal, especially for packages with native code or special build steps.


If this helped you, please upvote — it might help someone else too! 👍

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rishabh Chauhan

79707360

Date: 2025-07-19 15:44:22
Score: 4.5
Natty: 5
Report link

The following blog post is on chunk parallel download of files using Python and curl:

https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html

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

79707358

Date: 2025-07-19 15:41:21
Score: 1.5
Natty:
Report link

You need to add this to your manifest.json file

"web_accessible_resources": [
    {
      "resources": ["page.html"],
      "matches": ["http://YourUrl/*"]
    }
  ],
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mohanad alaa

79707355

Date: 2025-07-19 15:34:20
Score: 2
Natty:
Report link
I am wondering is this can be used to implement environmental separation inside the same datatabase, like:

dev.customers
qas.customers
prd.customers

If a user logos on the QAS environment, I would just run:
ALTER USER [yourUser] WITH DEFAULT_SCHEMA = qas;

and then the user will run the app using a test dataset. 

Is this a good idea or am I utterly mistaken ?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: VictorEspina

79707350

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

Okay I am stupid and I got screwed up by pointer arithmetic because buffer is int16_t changed it to void*, worked flawlessly

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: God I Am Clown

79707343

Date: 2025-07-19 15:07:14
Score: 4.5
Natty:
Report link

I have the same issue.. Actually it is not working at all.
Strange thing is I was using https://github.com/StefH/McpDotNet.Extensions.SemanticKernel

await _kernel.Plugins.AddMcpFunctionsFromSseServerAsync("McpServer", new Uri(url), httpClient: _httpClient);

And that worked fine. I wanted to switch to the native SK code but now it does not work anymore.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Michel Schep

79707335

Date: 2025-07-19 14:51:10
Score: 3
Natty:
Report link

This should cover what you want to know. Was introduced in 8.1 first class callable syntax.

https://www.php.net/manual/en/functions.first_class_callable_syntax.php

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

79707332

Date: 2025-07-19 14:47:09
Score: 7.5
Natty: 5
Report link

Having the same issue. Have you had a luck solving this?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jiri Formacek

79707331

Date: 2025-07-19 14:47:09
Score: 3
Natty:
Report link

In my case, I just need to update my version from 18 to 20 and then simply restart and run from basic to npm run dev.

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

79707323

Date: 2025-07-19 14:40:07
Score: 2.5
Natty:
Report link

Make sure to use the same exact casing on the mode name when you use --mode. I ran vite with --mode "Development" when instead my file is .env.development

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

79707322

Date: 2025-07-19 14:39:07
Score: 2
Natty:
Report link

If your Fedora VM freezes during startup, it could be due to over-allocating resources 10 GB RAM and 2×6 CPUs might be pushing your host too hard, even with 32 GB total. Check for host system bottlenecks like CPU or disk I/O, and make sure VMware tools and Fedora packages are up to date. Also, look into guest OS logs for any driver or service hiccups. Try reducing VM specs or booting from a fresh ISO to rule out corruption.

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

79707321

Date: 2025-07-19 14:37:06
Score: 7.5
Natty: 7
Report link

This code does't work on MacOS 15.5, xcode 16.6

I tried many methods, but none of them worked properly.

I don't know how BetterTouchTool is implemented. Does anyone know?

Thanks,

Regards!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Nolar Wills

79707314

Date: 2025-07-19 14:24:03
Score: 3
Natty:
Report link

If you are running a script file (ex: rush.scpt or rush.app) using Automator.App, all those solutions will return as name: "Automator.app"! Not the name of the script file itself, ex: "rush.scpt" or "rush.app" or "rush.workflow"...

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

79707309

Date: 2025-07-19 14:16:01
Score: 1.5
Natty:
Report link

In my case, when Resource Not Found appeared in the browser, the problem was the path to the build folder, in the quarkus.quinoa.build-dir property, it previously had the value dist/, so I put dist/angular and it worked. (I use version 19 of Angular)

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eduardo Hilário

79707299

Date: 2025-07-19 14:03:59
Score: 4
Natty:
Report link

but it removes the reveal brush effect

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

79707283

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

I usually delete DAG from Airflow UI itself. You can open your DAG and top right side you will see delete option to remove your DAG from UI. It won't actually delete from your DAG folder.
Also you might see DAG in UI list event after deletion because Airflow runs the refresh cycle periodically after which it will removed from the UI list

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

79707278

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

Yes, this is definitely possible, but there are a few tricky parts to get right.
To fix this, you can run the child process and listen to its output on a separate thread. Then, send those outputs through a channel and print them in your main thread before you call readline() again. Here's a working example using Python as the child REPL:

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

79707276

Date: 2025-07-19 13:26:50
Score: 0.5
Natty:
Report link

The answer by @Chip Jarred did not work for me on macOS 15.5 Sequoia. None of the Dock windows have a "Fullscreen Backdrop" kCGWindowName.

What worked for me was the simple check for multiple Dock windows that have a negative (around MIN_INT64) value as kCGWindowLayer. If there are more than one of those Dock windows, the app is running in fullscreen:

func isFullScreen() -> Bool {
    guard let windows = CGWindowListCopyWindowInfo(.optionOnScreenOnly, kCGNullWindowID) else {
        return false
    }

    var dockCount = 0
    for window in windows as NSArray
    {
        guard let winInfo = window as? NSDictionary else { continue }
        if winInfo["kCGWindowOwnerName"] as? String == "Dock"
        {
            let windowLayer = winInfo["kCGWindowLayer"]
            if let layerValue = windowLayer as? Int64, layerValue < 0 {
                dockCount += 1
                if dockCount > 1 {
                    return true
                }
            }
        }
    }
    
    return false
}
Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): worked for me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Chip
  • Low reputation (1):
Posted by: oli0060

79707259

Date: 2025-07-19 13:09:45
Score: 1
Natty:
Report link

I saw this error when running Kafka in ubuntu app inside Windows OS and trying to connect my application from Windows to connect running Kafka server. it was failing to connect.

When running my application from Ubuntu app inside Windows OS and trying to connect Kafka server, it connects successfully and the error was gone

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yahia El-Tayeb

79707257

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

I saw this error when running Kafka in ubuntu app inside Windows OS and trying to connect my application from Windows to connect running Kafka server. it was failing to connect.

When running my application from Ubuntu app inside Windows OS and trying to connect Kafka server, it connects successfully and the error was gone

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yahia El-Tayeb

79707255

Date: 2025-07-19 12:58:42
Score: 1.5
Natty:
Report link

WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.

For more information on production servers see: https://docs.djangoproject.com/en/5.2/howto/deployment/

[19/Jul/2025 17:46:18] "GET / HTTP/1.1" 200 12068

[19/Jul/2025 18:15:04] "GET / HTTP/1.1" 200 12068

Not Found: /favicon.ico

[19/Jul/2025 18:15:06] "GET /favicon.ico HTTP/1.1" 404 2216

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

79707253

Date: 2025-07-19 12:54:42
Score: 0.5
Natty:
Report link

You can use aiogram-dialog, brilliant library to manage all this underneath menu logic.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: a0s

79707251

Date: 2025-07-19 12:53:41
Score: 2
Natty:
Report link

I found the following link on how to use threading with the Pika library on GitHub.

https://github.com/pika/pika/blob/main/examples/basic_consumer_threaded.py

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

79707249

Date: 2025-07-19 12:52:41
Score: 1
Natty:
Report link

This can happen when you have enabled a proxy in Insomnia.

Insomnia Proxy settings

It would be nice if Insomnia have an indicator in the interface, showing that a proxy is being used.

Something so small thing, can save a lot of frustration :-)

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

79707248

Date: 2025-07-19 12:50:41
Score: 1
Natty:
Report link

It’s possible they started using Azure Load Balancer internally as part of an architectural change. This might be for scaling ingestion endpoints, handling control plane traffic, or improving internal traffic routing. Unfortunately, there doesn’t seem to be any official documentation or announcements about this.

If you’re trying to dig deeper, a few things that might help:

  1. Activity Logs: Check the Azure Activity Logs in the resource group to see if any backend resources are being provisioned or associated with the cluster.

  2. Network Watcher: If enabled, use it to inspect traffic flows and confirm what’s going through the Load Balancer.

If it’s driving up costs, and you're not explicitly using a load balancer in your design, it’s definitely worth raising with support to see if there's an optimization or config workaround.

Would be great to hear what you find out.

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

79707245

Date: 2025-07-19 12:48:40
Score: 1.5
Natty:
Report link

I am in the same situation. I need to limit the consumption speed of my Kafka consumer as the external financial API I am calling from the consumer has a rate limit setting. Plus the rate limit in my case can be different per data type.

Based on this thread, I am thinking to implement the following pattern:

  1. set max.poll.records to one (1). I think I don't need to tune other Kafka parameter.

  2. Create a counter in a distributed cache (e g. Hazelcast) where I save the timestamp of the 1st message that I have been received and the counter of the received msg from that time. I need to save it in a distributed cache as I use microservice architecture and I can have multiple Kafka consumer groups attached to the same topic.

  3. Let's say external API can handle 3 request per a second.

  4. Kafka consumers consume quickly that 3 messages and then the counter state in hazelcast shows 3.

  5. After receiving the 3rd message, the Kafka consumer pauses itself before starts processing the received message. At the same time with the pause I start a sprint timer with waiting for 1 second as this is the rate limit definition. Timer schedule can depend on the data type and can be read runtime from the spring property file

  6. Then when the timer fires after 1 second, it resumes the Kafka consumer.

I think this process can work. Concurrency of Kafka consumers+ different rate limit per data type can complicate the data that I need to keep in the distributed cache, but not super hard to manage it properly.

I think this way I can limit the speed of the calls of the external API. Plus if the rate limit is 3 request per one second then the 1st three data will be served quickly and then consumer(s) will wait 1 second, then continue to listen for the next data from Kafka.

I am not implemented this yet, but I will to do it soon.

I think it can work. Any thoughts are appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1.5): Any thoughts
  • Blacklisted phrase (2): I am in the same situation
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: zappee

79707242

Date: 2025-07-19 12:44:39
Score: 0.5
Natty:
Report link

I actually had the same issue a while back when I was trying to switch from my old Gmail account to a new one. I wanted everything to move with labels intact, and doing it manually via forwarding or IMAP was just super messy and time-consuming.

If you're wondering how to download old emails from Gmail and move them over with all the original labels, I'd recommend using a tool like Email Backup Wizard. It lets you download all your old emails locally and then import them into another Gmail account. The best part? It preserves labels during the transfer, which was a game-changer for me.

Hope this helps! Let me know if you need a quick step-by-step I still have the process noted down somewhere. 😊

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Clair Dunphy

79707240

Date: 2025-07-19 12:42:39
Score: 1.5
Natty:
Report link

application ()

A high-level function.

Automatically starts the Compose event loop.

You define your UI (e.g., Window {}) inside the block.

The app exits automatically when all windows are closed.

Ideal for simple apps.

awaitApplication ()

A suspend function — gives more control over the app lifecycle.

You need to manually call exitApplication() to terminate the app.

Useful when you need to suspend main(), perform async setup, or manage multiple windows manually.

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

79707237

Date: 2025-07-19 12:37:38
Score: 2
Natty:
Report link

in Js exist standard method for local dates. toLocaleDateString().
for persian Jalali calendar is like
yourDate.toLocaleDateString("fa-ir");

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

79707235

Date: 2025-07-19 12:30:37
Score: 1.5
Natty:
Report link

A sudden jump in Flutter app bundle size from 19.4MB to 139MB usually means new dependencies or assets were added, or build settings changed. Check for large assets, added packages, or debug vs. release build differences. Running flutter build apk --release --split-per-abi can help reduce size by generating separate APKs per architecture. Visit Base Bridge

https://basebridge.org

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Base Bridge

79707231

Date: 2025-07-19 12:25:35
Score: 0.5
Natty:
Report link

I was able to do this for buttons with a FlowRow parent with

FlowRow (
    horizontalArrangement = Arrangement.spacedBy((-1).dp),
) {
    // Buttons here
}

For my 1.dp borders, this works excellently and is about as simple as I believed this task would be.

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

79707230

Date: 2025-07-19 12:25:35
Score: 1
Natty:
Report link

Got errors "failed to open stream: No such file or directory" and "The file or directory is not a reparse point. (code: 4390)" for file, file_get_contents, scandir, etc.. Long story short, the script and the file to be read were both in the same Dropbox directory.

I didn't try to 'solve' the problem, maybe this could be made to work in the Dropbox framework. I just moved the project out of DropBox, now it works as expected.

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

79707228

Date: 2025-07-19 12:23:35
Score: 3
Natty:
Report link

Try commentwipe.com which allows you to sync all videos and comments. It also allows you to search.

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

79707227

Date: 2025-07-19 12:22:35
Score: 1
Natty:
Report link

I particularly, trained a YOLOv11 segmentation model in order to detect positions for Rubik's cubes.

First of all, data has to be prepared in the YOLOv11 Dataset format. and a data.yaml file has to be created:

train: ../train/images
val: ../valid/images
test: ../test/images

nc: 6
names: ['Cube']

Then, install ultralytics and train the model

!pip install ultralytics
from ultralytics import YOLO

model = YOLO('best.pt')

model.train(data='./data/data.yaml', epochs=100, batch=64, device='cuda')

After using the segmentation model on a frame, I do some checks to see if the object is a Rubiks' cube or not:

import cv2
import numpy as np
from ultralytics import YOLO

def is_patch_cube(patch, epsilon=0.2):
    h, w = patch.shape[:2]
    ratio, inverse = h/w, w/h

    if ratio < 1 - epsilon or ratio > 1 + epsilon:
        return False
    if inverse < 1 - epsilon or inverse > 1 + epsilon:
        return False

    return True

def is_patch_mostly_colored(patch, threshold=0.85):
    h, w, c = patch.shape
    num_pixels = h*w*c
    num_colored_pixels = np.sum(patch > 0)
    return num_colored_pixels/num_pixels > threshold

def check_homogenous_color(patch, color, threshold):
    if color not in color_ranges: return False
    h, w = patch.shape[:2]
    patch = cv2.cvtColor(patch, cv2.COLOR_BGR2HSV)
    lower, upper = color_ranges[color]
    thres = cv2.inRange(patch, np.array(lower), np.array(upper))
    # print(thres.shape)
    return (np.count_nonzero(thres)/(h*w)) > threshold


def find_segments(seg_model: YOLO, image):
    return seg_model(image, verbose=False)


def get_face(results, n, homogenity_thres=0.6):
    for i, r in enumerate(results):
        original_img = r.orig_img
        img_h, img_w, c = original_img.shape

        if r.masks is not None:
            for obj_i, mask_tensor in enumerate(r.masks.data):
                mask_np = (mask_tensor.cpu().numpy() * 255).astype(np.uint8)

                if mask_np.shape[0] != original_img.shape[0] or mask_np.shape[1] != original_img.shape[1]:
                    mask_np = cv2.resize(mask_np, (img_w, img_h), interpolation=cv2.INTER_NEAREST)
                
                mask_np, box = simplify_mask(mask_np, eps=0.005)
                obj = cv2.bitwise_and(original_img, original_img, mask=mask_np)

                x1, y1, w, h = box
                x2, y2 = x1 + w, y1 + h

                x1 = max(0, x1)
                y1 = max(0, y1)
                x2 = min(original_img.shape[1], x2)
                y2 = min(original_img.shape[0], y2)

                cropped_object = obj[y1:y2, x1:x2]

                if not is_patch_cube(cropped_object):
                    continue

                if not is_patch_mostly_colored(cropped_object):
                    continue

                colors, homogenity = find_colors(cropped_object, n, color_detection_model)

                if sum([sum(row) for row in homogenity]) < homogenity_thres * len(homogenity) * len(homogenity[0]):
                    continue

                return colors, cropped_object, mask_np, box
            
    return None, None, None, None



def find_colors(patch, n):
    h, w, c = patch.shape
    hh, ww = h//n, w//n

    colors = [['' for _ in range(n)] for __ in range(n)]
    homogenity = [[False for _ in range(n)] for __ in range(n)]

    for i in range(n):
        for j in range(n):
            pp = patch[i*hh:(i+1)*hh, j*ww:(j+1)*ww]
            colors[i][j] = find_best_matching_color_legacy(
                get_median_color(pp), tpe='bgr') # whatever function you want to detect colors
            homogenity[i][j] = check_homogenous_color(pp, colors[i][j], threshold=0.5)
    
    return colors, homogenity

We can use this as follows:

results = find_segments(model, self.current_frame)

face, obj, mask, box = get_face(results, n=self.n, homogenity_thres=0.6)

Thanks to @ChristophRackwitz for recommending usage of semantic segmentation models

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ChristophRackwitz
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tripaloski

79707222

Date: 2025-07-19 12:13:33
Score: 0.5
Natty:
Report link
Function Enter-AdminSession {
    <#
        .SYNOPSIS
            Self-elevate the script if required

        .LINK
            Source: https://stackoverflow.com/questions/60209449/how-to-elevate-a-powershell-script-from-within-a-script
    #>
    $scriptInvocation = (Get-Variable MyInvocation -Scope 1).Value.Line
    if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
        # we need to `cd` to keep the working directory the same ad before the elevation; -WorkingDirectory $PWD does not work
        Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList "cd $PWD; $scriptInvocation"
        Exit
    }
}

With this function in a common module that you imported or directly in your script, you can call Enter-AdminSession at the right point in your script to gain admin rights.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: István Siroki

79707221

Date: 2025-07-19 12:13:33
Score: 5
Natty:
Report link

^projects\/[^/]+\/locations\/[^/]+\/apis\/[^/]+$

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Ny Ny

79707214

Date: 2025-07-19 12:09:31
Score: 2
Natty:
Report link

<scripit>

function duplicate(){

var action = "CreationBoard";

$.ajax({

type: "POST",

url : "file.php",

data: {action : action},

success: function(output){

alert("Response from php" +output);

}

});

}

</script>

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

79707209

Date: 2025-07-19 11:49:28
Score: 0.5
Natty:
Report link

Yes, an abstract class in Java can extend another abstract class. This is a common and valid practice in object-oriented design, particularly when dealing with hierarchies of related concepts where each level introduces more specific abstract behaviors or implements some common functionality.

When an abstract class extends another abstract class:

This allows for a gradual refinement of abstract behavior down the inheritance hierarchy, with concrete classes at the bottom of the hierarchy ultimately providing the full implementation for all inherited abstract methods.

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

79707207

Date: 2025-07-19 11:46:27
Score: 1.5
Natty:
Report link

it is very easy task, i created one at festivos en calendario

create table calendar (dt, holiday) as
      select trunc(sysdate, 'yy') + level - 1,
        case when trunc(sysdate, 'yy') + level - 1 in ( select  holiday_date
     from  holidays
      )   then 'Y'
             else 'N'
        end
      from dual
      connect by level <= trunc(sysdate) - trunc(sysdate, 'yy') + 1;
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ruth

79707201

Date: 2025-07-19 11:39:20
Score: 6.5
Natty:
Report link

Custom Gradle task may help, see this article of how to make it possible on ur own https://medium.com/@likeanyanorigin/say-goodbye-to-hardcoded-deeplinks-navigation-component-xmls-with-manifest-placeholders-3efa13428cb4

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergey B

79707191

Date: 2025-07-19 11:24:16
Score: 4
Natty:
Report link

location.absolute

Location value for plotshape, plotchar functions. Shape is plotted on chart using indicator value as a price coordinate.

I am a beginner too, but this is something I have used in the past.

Reasons:
  • RegEx Blacklisted phrase (2): I am a beginner
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chris

79707182

Date: 2025-07-19 11:04:11
Score: 4
Natty:
Report link

If you are using Expo, use this package I created. Works for both iOS and Android
https://www.npmjs.com/package/expo-exit-app

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

79707173

Date: 2025-07-19 10:44:02
Score: 11.5
Natty:
Report link

I am trying to do the same with Spring Boot 3.4.4, but it is not working for me.

I migrated to reactive programming with Spring webFlux, removing dependency with Tomcat, in order to deploy with Netty. I have included in pom the following:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <!-- Exclude the Tomcat dependency -->
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-webflux</artifactId>
</dependency>

<dependency>
       <groupId>io.springfox</groupId>
        <artifactId>springfox-boot-starter</artifactId>
        <version>3.0.0</version>
</dependency>
<dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger2</artifactId>
        <version>3.0.0</version>
</dependency>
<dependency>
     <groupId>io.springfox</groupId>
     <artifactId>springfox-swagger-ui</artifactId>
     <version>3.0.0</version>
</dependency>
<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
    <version>2.8.9</version>
</dependency>

In application.properties I have this:
springdoc.api-docs.enabled=true
springdoc.api-docs.path=/api-docs

The issue I have is, if I launch my application, when I call to: http://localhost:8080/api-docs, it returns an error:

java.lang.NoSuchMethodError: 'void io.swagger.v3.oas.models.OpenAPI.<init>(io.swagger.v3.oas.models.SpecVersion)'
    at org.springdoc.core.service.OpenAPIService.build(OpenAPIService.java:243) ~[springdoc-openapi-starter-common-2.8.9.jar:2.8.9]
    at org.springdoc.api.AbstractOpenApiResource.getOpenApi(AbstractOpenApiResource.java:353) ~[springdoc-openapi-starter-common-2.8.9.jar:2.8.9]
    at org.springdoc.webflux.api.OpenApiResource.openapiJson(OpenApiResource.java:123) ~[springdoc-openapi-starter-webflux-api-2.8.9.jar:2.8.9]
    at org.springdoc.webflux.api.OpenApiWebfluxResource.openapiJson(OpenApiWebfluxResource.java:119) ~[springdoc-openapi-starter-webflux-api-2.8.9.jar:2.8.9]
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]
    at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]
    at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:208) ~[spring-webflux-6.2.5.jar:6.2.5]
    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:132) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoZip$ZipCoordinator.signal(MonoZip.java:297) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoZip$ZipInner.onNext(MonoZip.java:478) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2571) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoZip$ZipInner.onSubscribe(MonoZip.java:470) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152) ~[reactor-core-3.7.4.jar:3.7.4]
    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55) ~[reactor-core-3.7.4.jar:3.7.4]

Anyone can help me with this issue?

Thanks a lot!!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): trying to do the same
  • RegEx Blacklisted phrase (3): Anyone can help me
  • RegEx Blacklisted phrase (0.5): Anyone can help
  • RegEx Blacklisted phrase (3): not working for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Carlos

79707172

Date: 2025-07-19 10:43:02
Score: 2.5
Natty:
Report link

Important

If you are using something absolute inside column item then you have to make each item container inline block with width 100% (width is optional) then it will work fine . otherwise you may face layout issues.

If you still face any issue, i can help you. you can contact me anytime.
https://github.com/kamrannazir901/

Reasons:
  • Blacklisted phrase (0.5): contact me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammad kamran

79707167

Date: 2025-07-19 10:42:01
Score: 5
Natty:
Report link

im having the same issue, but electron-builder works for me

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Amir Tarfiee

79707162

Date: 2025-07-19 10:30:59
Score: 0.5
Natty:
Report link

Please verify that Neovim has clipboard support, :echo has('clipboard')

Run the built-in health check using :checkhealth

Install a clipboard provider using "sudo apt install xclip" (X11) or "sudo apt install wl-clipboard" (Wayland)

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

79707152

Date: 2025-07-19 10:17:56
Score: 4
Natty: 4
Report link

file:// reads from local, http sends to web and gets response.

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

79707148

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

**This 302 redirect in a WordPress Multisite setup is likely caused by how WordPress handles requests when it's running as a multisite network and trying to resolve sites that aren’t fully configured.

Here’s what could be happening:

---

1. **Default WordPress Behavior:**
WordPress often uses `wp_redirect()` for multisite sub-site resolution. If a site isn’t fully set up or mapped properly, WordPress may default to a temporary 302 redirect.

2. **ELB-HealthChecker/2.0 (from AWS):**
This request is from **AWS Elastic Load Balancer (ELB)** health checks. ELB makes a plain `GET /` request. If the root site (or sub-site) is not fully responding or mapped, WordPress may redirect it with a 302 temporarily.

3. **Multisite Rewrite Rules:**
Your `.htaccess` rewrite rules seem mostly correct, but the custom rules at the end (`wptmj/$2`) may be misrouting requests, especially if `wptmj` is not a valid subdirectory or symlinked path.

---

### ✅ What You Can Try:

#### 1. **Force WordPress to Use 301 Redirects:**
You can try modifying redirection functions using `wp_redirect_status` hook in `functions.php`:

```php
add_filter('wp_redirect_status', function($status) {
return 301; // Force 301 instead of 302
});**

Reasons:
  • Blacklisted phrase (1): what could be
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adla Vijwal

79707143

Date: 2025-07-19 10:07:53
Score: 1
Natty:
Report link

To prevent Android from killing your app during GPS tracking for field team purposes, consider running your tracking service as a foreground service with a persistent notification—this signals Android that your app is actively doing something important, reducing the likelihood of it being shut down. Also, ensure battery optimization is disabled for your app in device settings.

If you need a reliable and ready-made solution, tools like Workstatus offer robust background GPS tracking for field teams without being interrupted, ensuring continuous location logging even when the app isn’t actively used.

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

79707140

Date: 2025-07-19 10:05:53
Score: 1
Natty:
Report link

A suggestion from @dan1st to use github.event.workflow_run.artifacts_url to fetch artifacts via the GitHub API, here are the updated files with the required changes. The Deploy workflow will now use a script to download the artifact dynamically, replacing the failing Download Build Artifact step.


name: Deploy to Firebase Hosting on successful build
'on':
  workflow_run:
    workflows: [Firebase Deployment Build]
    types:
      - completed
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    permissions:
      actions: read  # Added to fix 403 error
      contents: read  # Added to allow repository checkout
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GITHUB_TOKEN }}  # Explicitly pass the token
          repository: tabrezdal/my-portfolio-2.0  # Ensure correct repo
      - name: Debug Workflow Context
        run: |
          echo "Triggering Workflow Run ID: ${{ github.event.workflow_run.id }}"
          echo "Triggering Workflow Name: ${{ github.event.workflow_run.name }}"
          echo "Triggering Workflow Conclusion: ${{ github.event.workflow_run.conclusion }}"
      - name: Install jq
        run: sudo apt-get update && sudo apt-get install -y jq
      - name: Fetch and Download Artifacts
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          # Get the artifacts URL from the workflow_run event
          ARTIFACTS_URL="${{ github.event.workflow_run.artifacts_url }}"
          echo "Artifacts URL: $ARTIFACTS_URL"

          # Use GitHub API to list artifacts
          ARTIFACTS=$(curl -L -H "Authorization: token $GITHUB_TOKEN" "$ARTIFACTS_URL")
          echo "Artifacts: $ARTIFACTS"

          # Extract the artifact name (assuming 'build' as the name)
          ARTIFACT_NAME=$(echo "$ARTIFACTS" | jq -r '.artifacts[0].name' || echo "build")
          echo "Artifact Name: $ARTIFACT_NAME"

          # Download the artifact using the GitHub API
          DOWNLOAD_URL=$(echo "$ARTIFACTS" | jq -r '.artifacts[0].archive_download_url')
          if [ -z "$DOWNLOAD_URL" ]; then
            echo "No download URL found, artifact may not exist or access is denied."
            exit 1
          fi
          curl -L -H "Authorization: token $GITHUB_TOKEN" -o artifact.zip "$DOWNLOAD_URL"
          unzip artifact.zip -d build
          rm artifact.zip
      - name: Verify Downloaded Artifact
        run: ls -la build || echo "Build artifact not found after download"
      - name: Debug Deployment Directory
        run: |
          echo "Current directory contents:"
          ls -la
          echo "Build directory contents:"
          ls -la build || echo "Build directory not found"
      - name: Deploy to Firebase
        uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: ${{ secrets.GITHUB_TOKEN }}
          firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
          channelId: live
          projectId: tabrez-portfolio-2
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @dan1st
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tabrez Dal

79707132

Date: 2025-07-19 09:54:50
Score: 1
Natty:
Report link

For a general pbar from tqdm.auto, the easiest working solution I found is:

pbar.n = pbar.total
pbar.close()
break
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gilad Freidkin

79707121

Date: 2025-07-19 09:29:45
Score: 1
Natty:
Report link

good day mates,

Now, i am sure many of you has been wanting to put a hammer on the Phomemo M08 Bluetooth thermal printer as i would of done a few days ago. But .....managed to have a glass of Old Pulteney rum and meditated for a bit. I decided ...F#$%^ IT !! this printer is not going to get the best of me..

The script in the PPD from the phomeno Ubuntu / Centos driver is jacked and will not work regardless to what you try. Why? it is made for the 4" x 6" label printer. Which as for the M08F is a A4 format printer ( or any order thing you want to be sticking into it to print in that size).

Work around.

I installed a driver called Generic Thermal Printer Driver. This gaved me a Generic.PPD of which did activate the printer through CUPS. But still gave issues as it held the print jobs due to the margins and settings in the script. So I removed all the settings for smaller printers just to make it default A4 format only bypassing the print output. This worked, printer got the command and printed with all info trough CUPS. However....he wanted to play hardball and gave me enlarged A4 format on a 4" x 3" layout.

I decided to let Phomemo know about the issue as it the driver online is not functioning under Ubuntu, but does with the changes I made. So...Got hit up by Barry ...he was surprised that someone actually did do some research on this and gave a feedback. So with my changes he added the necessary to complete the drive settings and this is what came out.

The new drivers are at the bottom for linux. https://pages.phomemo.com/#/m08f

I would suggest to download it, unpack, open up the folder in shell, sudo install the file, reboot.

Now, I havent gotten the blue-tooth to print a file as yet...keeps disconnecting ( Ubuntu issue ). So ill get back on that if i can. Meaning , delete the settings you have from this printer, install the file and connect directly through USB. Reboot ,add printer and install it....this should work. You'll have to setup your printer output margins to get the print you want.

Problem is solved ....think i deserve a beer ...lol

Have a good weekend

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Blacklisted phrase (1): good day
  • Whitelisted phrase (-2): this should work
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mr.Hoodoo

79707114

Date: 2025-07-19 09:21:43
Score: 4.5
Natty:
Report link

Looks like it's this issue https://github.com/angular/components/pull/31560. Its related to os settings.

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

79707099

Date: 2025-07-19 09:04:39
Score: 3.5
Natty:
Report link

This is a sample perlin noise generator I developed a year ago for Python. I used bitwise operations for faster sampling.

https://github.com/Ciztony/Python-Perlin-Noise

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ciztony

79707097

Date: 2025-07-19 09:02:38
Score: 1.5
Natty:
Report link

I think "return [self.cdf_inv(p) for p in u]" is the root cause of slowing things down because each call to cdf_inv(p) performs scalar root finding which is actually CPU based and not gpu accelerated even after being wrapped in Tensorflow. So you should try vectorizing inverse CDF.
You might see significant speed enhancement if you eliminate the scalar root finding.

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

79707096

Date: 2025-07-19 08:54:37
Score: 1.5
Natty:
Report link
import av
import io

with open('video.mp4', 'rb') as fp:
    video_data = fp.read()

video_buffer = io.BytesIO(video_data)
container = av.open(video_buffer, mode='r', format='mp4')
duration = container.duration / av.time_base  # seconds [float]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest

79707093

Date: 2025-07-19 08:51:36
Score: 1
Natty:
Report link

In my personal opinion, this isn't an issue with TypeORM itself, but rather with the database design. You need to identify the bottleneck first. Perhaps you could try optimizing your queries initially. Typically, you'd start by checking how long a query takes to execute directly from your database. If the database itself takes, say, 9 seconds, it's perfectly normal for TypeORM to receive the data in around 10 seconds due to the latency involved in communicating with your NestJS application.

A good first step might be to select only the columns you're actually using. If it's still slow, then consider adding indexes.

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

79707092

Date: 2025-07-19 08:51:36
Score: 1
Natty:
Report link

check pylance extension is installed or not. If not, install it and in settings check below items, it will work

"python.languageServer": "Pylance",
"jupyter.enableExtendedPythonKernelCompletions": true,
"python.autoComplete.extraPaths": [
"C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe"
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31086833

79707089

Date: 2025-07-19 08:48:35
Score: 3.5
Natty:
Report link

Anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit anasurya mohit

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anasurya mohit

79707085

Date: 2025-07-19 08:42:34
Score: 3
Natty:
Report link

import javaq.util.concurrent.TimeUnit;

driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: aadesh jain

79707082

Date: 2025-07-19 08:39:33
Score: 0.5
Natty:
Report link
import pandas as pd, requests, io

# Set location and time
lat, lon = -6.000, 38.758
start, end = '20150101', '20241231'

# Fetch daily rainfall (PRECTOT) from NASA POWER
url = (f"https://power.larc.nasa.gov/api/temporal/daily/point?"
       f"parameters=PRECTOT&start={start}&end={end}&latitude={lat}&longitude={lon}&format=CSV")
csv = requests.get(url).text.splitlines()

# Load into DataFrame
df = pd.read_csv(io.StringIO("\n".join(csv[10:])))  # skip metadata
df['DATE'] = pd.to_datetime(df[['YEAR','MO','DY']])

# Monthly total rainfall
monthly = df.groupby(df['DATE'].dt.to_period('M'))['PRECTOT'].sum().reset_index()
monthly.columns = ['Month', 'Rainfall_mm']
monthly['Month'] = monthly['Month'].astype(str)

# Annual total rainfall
annual = df.groupby(df['DATE'].dt.year)['PRECTOT'].sum().reset_index()
annual.columns = ['Year', 'Rainfall_mm']

# Export
monthly.to_csv("saadani_monthly_rainfall_2015_2024.csv", index=False)
annual.to_csv("saadani_annual_rainfall_2015_2024.csv", index=False)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31086741

79707076

Date: 2025-07-19 08:37:32
Score: 2
Natty:
Report link

I did some digging and it seems that this has been fixed in a new beta macOS version. See HERE on apple forum.

I did ask to specify if this is the Public or Developer Beta version, still waiting on a response.

Hope this fixes our issues 🙏🏼

Reasons:
  • Blacklisted phrase (0.5): 🙏
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pierre van der Merwe

79707075

Date: 2025-07-19 08:37:32
Score: 0.5
Natty:
Report link

Add style="flex-direction: row !important;" to the UL element.

<ul class="splide__list" style="flex-direction: row !important;">

</ul>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Sagi

79707060

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

I gave up, I use: "‘" instead, look similar

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

79707059

Date: 2025-07-19 08:13:27
Score: 1
Natty:
Report link
{
  "Scale": true,
  "Scale X": 4.9625,
  "Scale Y": -5.11875,
  "Scale Z": 5.9625,
  "Position": true,
  "Position X": -0.5749999,
  "Position Y": -1.9,
  "Position Z": -4.975,
  "Rotation": false,
  "Rotation X": -9.0,
  "Rotation Y": -6.75,
  "Rotation Z": -2.25,
  "Change Swing": false
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: tu pham

79707054

Date: 2025-07-19 08:05:25
Score: 2.5
Natty:
Report link

If JHipster JDL isn’t generating entities, it’s usually due to syntax issues or incorrect setup. In CRM development service, this can disrupt the structure of modules like clients and orders. Double-check your JDL file and project configuration to resolve the issue.

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

79707050

Date: 2025-07-19 08:02:24
Score: 1
Natty:
Report link

Solution is to display the open ad After App Launch once your splash screen is dismiss and your MaterialApp/CupertinoApp/WidgetApp have been displayed. It's accepted and you can't do anything else.

Reasons:
  • Whitelisted phrase (-1): Solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Eng

79707035

Date: 2025-07-19 07:38:19
Score: 1
Natty:
Report link

use :

from .manager.py import userclassname

objects = userclassname()

at the end of your code of the models.py customuser

it will override and will tell the django about your model .

hope it helps :)

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saransh Bhardwaj

79707026

Date: 2025-07-19 07:19:15
Score: 3
Natty:
Report link

If you want to commit your whole repository, then you can just remove all contents of the .gitignore file

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

79707023

Date: 2025-07-19 07:15:15
Score: 0.5
Natty:
Report link

Restrict the API keys to the bundle ID

The suggestions about creating a proxy-server for this is completely out of the question for a mobile apps. Things you can put on the server, you should absolutely put on the server, but if your goal is to show a Google map on the mobile device using native controls, this is not an option.

If you're using things like Places API to look up addresses, you should absolutely put that on the server.

In google cloud console restrict the API key to the bundle ID on iOS and to the package name and SHA-1 fingerprint on Android.

Then you should rotate your keys from time to time.

The code labs provided by google on this integrates with the underlying maps SDKs used in the flutter package in the same way as the flutter package.

https://developers.google.com/codelabs/maps-platform/maps-platform-ios-swiftui#5

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jørgen Andersen

79707020

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

I also got this issue once, when the eventbridge rule was getting triggered, but it was not invoking my lambda function( I was using Terraform as IaC tool)
What i did to tackle this?
I added the eventbridge rule as trigger for my lambda, manually, and destination as SNS, to get test the setup. This worked fine for me.

Refer image for reference

Attaching eventbridge rule manually

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

79707018

Date: 2025-07-19 07:08:12
Score: 2.5
Natty:
Report link

use powershell and run below command

Enable Script Execution

Set-ExecutionPolicy RemoteSigned

Activate env

.\env\Scripts\Activate.ps1

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