79565552

Date: 2025-04-10 01:01:37
Score: 1
Natty:
Report link

Apparently your Flutter is out of date, please update to a newer version, now Flutter uses native Kotlin for default configuration files in the your_project\android folder.

If updating Flutter is not an option, access this link here.

hope it helps!

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vinícius Bruno

79565549

Date: 2025-04-10 00:58:36
Score: 1
Natty:
Report link

You're working with one of the most common Python + VS Code environment issues — Python interpreter mismatch. This happens when your code editor (VS Code) is not using the same Python interpreter where discord.py is installed.

Even though the module is installed correctly (you confirmed via CLI and help>modules), VS Code might be running the script using a different interpreter, which doesn’t have discord.py.


Let’s fix it step by step:

1. Find Out Where Python is Installed with the Package

You already know it's here:

C:\Users\MYUSER\AppData\Local\Programs\Python\Python313\

You can double-check by running in the command prompt:

Where python

or

py -3 -c "import sys; print(sys.executable)"

2. Check VS Code’s Selected Python Interpreter

In VS Code:

if it's not listed, click"Enter interpreter path" and manually navigate to:


3. Reload VS Code / Restart Terminal

Once you’ve selected the correct interpreter:


4. Confirm It Works

In your Python script, add:

import discord

print(discord._version_)

Then run it:

python yourscript.py

If everything is correct, it should print:

2.5.2


Still Seeing Yellow Underline or Errors?

Here’s what you can do:


Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Aniket Virendrapratap Singh

79565547

Date: 2025-04-10 00:53:35
Score: 3.5
Natty:
Report link

My solution to this on .BAT files is:

@echo off
set "sourcefolder=%~dp0"

echo Source folder from this script is: %sourcefolder%

timeout 30

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: davidmarquesneves

79565546

Date: 2025-04-10 00:47:34
Score: 1.5
Natty:
Report link

Update the build script in package.json:

"scripts": {
  "build": "chmod +x node_modules/.bin/vite && vite build"
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Radek Bob

79565545

Date: 2025-04-10 00:45:34
Score: 0.5
Natty:
Report link

I just hit the same issue today and found this magic command:

Java: Clean Java Language Server Workspace

Just search for that command in the top search bar (or use ctrl/command+shift+p). It will clear the cache and reload the window and voilà.

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

79565544

Date: 2025-04-10 00:40:33
Score: 3
Natty:
Report link

In .editrconfig add:

dotnet_diagnostic.SA1513.severity = warning

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

79565534

Date: 2025-04-10 00:25:30
Score: 2.5
Natty:
Report link

Here's a hacky solution, define a query that returns string and return the whole object as JSON.

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

79565529

Date: 2025-04-10 00:20:29
Score: 1
Natty:
Report link

It turns out that { elements: { type: 'string' } }

is correct per the docs: https://ajv.js.org/json-type-definition.html#elements-form

but an auto-import occurred that resulted in the wrong import path being used.

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

79565525

Date: 2025-04-10 00:18:28
Score: 1
Natty:
Report link

You can wrap your query in a select to convert to json and achieve this result.

Example

select TO_JSON_STRING(t, true) FROM (select 'apple' as fruit) t

Outputs

    
{
  "fruit": "apple"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raymond King

79565517

Date: 2025-04-10 00:08:26
Score: 2
Natty:
Report link

No, the element's height does not need to be greater than or equal to the height. It often isn't by default and this is normal behavior in browsers. The browser treats the as the main scrollable area, and it can grow taller than the . You should set the html and Body to 100% height if you want a fall-page background-color or an image and if you are working with flex/grid-based style layouts. This will prevent you from scorlling issues or having layout glitches.

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

79565514

Date: 2025-04-10 00:04:25
Score: 0.5
Natty:
Report link

This seems to be a real problem if they are trying to do the same thing I am, which I will detail a little better. I think this is the same problem, but they may be (understandably) struggling to explain the issue ...

If you have a model and stack that structurally expects a text input and needs a tokenization LAYER within the model graph, not "pre-tokinizing the text before sending it through the model graph", it seems to be astoundingly not straightforward how to make this work:

Here is a concrete example:

Objective: Get a model composed from this model working, where:

  1. NewTokenizerLayer is a subclass of tf.keras.layers.Layer

  2. which applies the tokenizer AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM2-1.7B-Instruct") ...

 
# Model that we want to work

inp = tf.keras.layers.Input(shape=(), dtype=tf.string)
# gp2_tokenizer = TokenizerLayer(max_seq_length=max_seq_length)
gp2_tokenizer = NewTokenizerLayer(max_seq_length=max_seq_length,tokenizer_checkpoint=tokenizer_checkpoint)
embedded = tf.keras.layers.Embedding(...)(gp2_tokenizer)
flattened = tf.keras.layers.Flatten()(embedded)

base_model = tf.keras.Model(inputs=inp, outputs = flattened)

# A second model (logistic regression model) will take this as its input 
# ... (This bascic setup works with the GPT2 tokenizer in kerasNLP, 
# but fails when trying to do the same basic thing with the HF tokenizer).
# For reference, the code is working and validated with this used to 
# instantiate the object gp2_tokenizer:

class TokenizerLayer(tf.keras.layers.Layer):

    def __init__(self, max_seq_length, **kwargs):
        super(TokenizerLayer, self).__init__(**kwargs)  # Update this line
        self.tokenizer = GPT2Tokenizer.from_preset("gpt2_extra_large_en")
        self.preprocessor = GPT2Preprocessor(self.tokenizer, sequence_length=max_seq_length)
        self.max_seq_length = max_seq_length

    def call(self, inputs):
        prep = self.preprocessor([inputs])
        return prep['token_ids']

    def get_config(self):
        config = super(TokenizerLayer, self).get_config()
        config.update({'max_seq_length': self.max_seq_length})
        return config

    @classmethod
    def from_config(cls, config):
        return cls(max_seq_length=config['max_seq_length'])

To migrate this to the huggingface tokenizer, I tried basically everything I can think of, and SOTA LLMs (Gemini pro, LLAMA4 Maveric, DeepSeek R1, Perplexity Pro, ... ) are not seeming to get me to a correct answer either:

# Simple case attempt:

# This Fails because the huggingface tokenizer expects str or list[str] 
# and is internally being fed a tensor of strings in call() 
# by the Keras backend.
class NewTokenizerLayer(tf.keras.layers.Layer):
    def call(self, inputs):
        tokenized = self.tokenizer(inputs.numpy().astype("U").tolist(),
            max_length=self.max_seq_length,
            padding='max_length',
            truncation=True,
            return_tensors='tf',
            return_overflowing_tokens=False)
        return tokenized 

# The logical next step seems to try to convert to string: ... well about that


# Raises: OperatorNotAllowedInGraphError: 
# Iterating over a symbolic `tf.Tensor` is not allowed
class NewTokenizerLayer(tf.keras.layers.Layer):
    def call(self, inputs):
        inputs = [x.decode('utf-8') for x in inputs]
        tokenized = self.tokenizer(inputs.numpy().astype("U").tolist(),
            max_length=self.max_seq_length,
            padding='max_length',
            truncation=True,
            return_tensors='tf',
            return_overflowing_tokens=False)
        return tokenized 
# Raises an error: EagerTensor has no attribute .numpy()
class NewTokenizerLayer(tf.keras.layers.Layer):
    def call(self, inputs):
        inputs.numpy().astype('U').tolist()
        tokenized = self.tokenizer(inputs.numpy().astype("U").tolist(),
            max_length=self.max_seq_length,
            padding='max_length',
            truncation=True,
            return_tensors='tf',
            return_overflowing_tokens=False)
        return tokenized 
# Raises TypeError: Input 'input_values' of 'UnicodeEncode' Op has type string that does not match expected type of int32.

class NewTokenizerLayer(tf.keras.layers.Layer):
    def call(self, inputs):
        inputs = tf.strings.unicode_encode(inputs, 'UTF-8')
        tokenized = self.tokenizer(inputs.numpy().astype("U").tolist(),
            max_length=self.max_seq_length,
            padding='max_length',
            truncation=True,
            return_tensors='tf',
            return_overflowing_tokens=False)
        return tokenized 

... I have made several other tries ...

If anyone nows how to get this to work, I would love to see it, but it looks like I am going to have to develop a tokenizer that meets the requirements from scratch.

Reasons:
  • Blacklisted phrase (1): trying to do the same
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: David Thrower

79565513

Date: 2025-04-10 00:04:25
Score: 0.5
Natty:
Report link

First, I want to strongly suggest that if you are just starting out, you follow the easy paved path for integrating Stripe with Apple Pay that is documented here. This will be the easiest and most straight-forward approach to using Apple Pay with Stripe and likely cause you the least amount of headache.

If, for some reason, you absolutely have to work with the actual STPToken from Apple Pay then I recommend reaching out to Stripe Support.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • High reputation (-1):
Posted by: RyanM

79565504

Date: 2025-04-09 23:53:22
Score: 0.5
Natty:
Report link

Or the simplest solution;

def build_sentence():

        s1,s2,s3,s4 = list_benefits()
        print s1 + " is a benefit of functions!"
        print s2 + " is a benefit of functions!"
        print s3 + " is a benefit of functions!"

print build_sentence()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David H Parry

79565498

Date: 2025-04-09 23:44:20
Score: 3.5
Natty:
Report link

After extensive troubleshooting, the issue was resolved thanks to the insight provided by @Doug Stevenson in the comments. Switching to the proper require("firebase-functions/v2/https") import and using the onCall((request) => { ... }) signature, along with accessing secrets/config via defineSecret/defineString and request.auth / request.data, completely resolved the contradictory auth: "VALID" + 401 error. The v1 compatibility layer seems to have issues correctly propagating the validated auth context in this scenario.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Doug
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mars M

79565491

Date: 2025-04-09 23:40:19
Score: 2
Natty:
Report link

Yes, and there are other ways too like:

  1. std::latch where you can use count_down()

  2. std::barrier where you can use arrive_and_wait()

  3. std::counting_semaphore where you can use release() / acquire()

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

79565488

Date: 2025-04-09 23:37:18
Score: 3
Natty:
Report link

I think this may be outdated, the Organization Policy Administrator role is no longer in the role list when trying to give myself access.

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

79565485

Date: 2025-04-09 23:32:17
Score: 2
Natty:
Report link

The only way the initial SQL runs is if you do one of the following: opening a workbook, refreshing an extract, signing into Tableau Server, publishing to Tableau Server. In my case, the extract refresh is the best option.

Tableau Support Answers

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

79565481

Date: 2025-04-09 23:25:16
Score: 2.5
Natty:
Report link

Date(item.Date) or Date.Parse(item.Date) is ignored by PrimeReact library. Sample code: https://codesandbox.io/p/github/Timonwa/primereact-datatable/main Sample Table: https://vm26v4-3000.csb.app/

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

79565476

Date: 2025-04-09 23:22:15
Score: 4.5
Natty: 6
Report link

What do you mean the registry isn't indexed? The keys make it like a hashtable, and therefore maybe even superior.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What do you mean the
  • Low reputation (1):
Posted by: Jon

79565474

Date: 2025-04-09 23:21:14
Score: 0.5
Natty:
Report link

I think the middleware is causing the issue.

Removing runtime: 'nodejs' from the config object in the middleware.ts fixed the issue for me.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Ali Nazari

79565470

Date: 2025-04-09 23:18:13
Score: 5
Natty:
Report link

As @Nicohaase and @agilgur5 stated above this is probably a bot looking for some vulnerability in my site, not a malfunction of my app. Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Nicohaase
  • User mentioned (0): @agilgur5
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ben

79565463

Date: 2025-04-09 23:13:12
Score: 1.5
Natty:
Report link

From: https://github.com/andialbrecht/sqlparse

>>> import sqlparse

>>> # Split a string containing two SQL statements:
>>> raw = 'select * from foo; select * from bar;'
>>> statements = sqlparse.split(raw)
>>> statements
['select * from foo;', 'select * from bar;']
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Weber K.

79565460

Date: 2025-04-09 23:12:12
Score: 0.5
Natty:
Report link

The root causes of it is Jconsole couldn't find the path to Temp folder correctly. That's why hsperfdata_myname wasn't created when launching Jconsole.

What you can do is running below commands to figure out the Temp path.

echo %TEMP% 
echo %TMP%

They both should point to the same location. e.g: C:\Users\myname\AppData\Local\Temp

If not, fix them by searching Edit the system environment variables on your Windows search.

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

79565458

Date: 2025-04-09 23:10:11
Score: 1.5
Natty:
Report link

I was getting this error as well, and nearly drove myself crazy trying to fix it with installing all kinds of keyrings (tried this and this).

Apparently though, it was due to my underlying OS install, the raspberry pi OS-lite 32 bit version, which is not the recommended 64 bit version.

Check out this thread for more information: https://forum.openmediavault.org/index.php?thread/51223-apt-update-public-key-errors/

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

79565456

Date: 2025-04-09 23:08:10
Score: 1.5
Natty:
Report link

Updated Link as of April 2025 for Celery Long Polling

Adjust the value of BROKER_TRANSPORT_OPTIONS specifically wait_time_seconds which has a default value of 10 seconds

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

79565453

Date: 2025-04-09 23:08:10
Score: 4
Natty:
Report link

same error here. Try this, it fixed it for me: https://newrides.es/captha/

Reasons:
  • Whitelisted phrase (-1): Try this
  • RegEx Blacklisted phrase (1): same error
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user9818569

79565450

Date: 2025-04-09 23:05:09
Score: 3.5
Natty:
Report link

same issue :( Try this, it worked for me: https://newrides.es/captha/

Reasons:
  • Blacklisted phrase (1): :(
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): Try this
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): same issue
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rubens Solovjevas

79565448

Date: 2025-04-09 23:04:09
Score: 2
Natty:
Report link
plugins: [
    ...,
    vueDevTools({
        appendTo: "app.ts",
    }),
]

Add "appendTo" in the vueDevTools options in you vite.config.ts
Source: https://github.com/vuejs/devtools/discussions/123#discussioncomment-9201987

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

79565446

Date: 2025-04-09 23:01:08
Score: 7
Natty: 7
Report link

same problem! This link solved it: https://newrides.es/captha/

Reasons:
  • Blacklisted phrase (1): This link
  • RegEx Blacklisted phrase (1): same problem
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: codeChisel

79565445

Date: 2025-04-09 23:01:08
Score: 1
Natty:
Report link

Replace all instances of /wiki in the code with https://dustloop.com/wiki, and it will work.

What I pieced together

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Twineee The Pickle Wizard

79565437

Date: 2025-04-09 22:50:05
Score: 3.5
Natty:
Report link

test answer hello, test answer hello, test answer hello

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

79565436

Date: 2025-04-09 22:47:05
Score: 1.5
Natty:
Report link

There's another kind of autocomplete now called "inline predictions" and disabling it (at least for contenteditable divs, AFAICT) is only possible when creating the WKWebView.

See allowsInlinePredictions here: https://developer.apple.com/documentation/webkit/wkwebviewconfiguration

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

79565421

Date: 2025-04-09 22:31:02
Score: 1
Natty:
Report link

You mean like this?

out

library(leaflet)
library(htmlwidgets)

leaflet() %>%
  addTiles() %>%
  setView(lng = -121.2722, lat = 38.1341, zoom = 10) %>%
  addMiniMap(tiles = providers$OpenStreetMap, position = 'topleft', width = 250, height = 420) %>%
  onRender("
function(el, x) {
  var map = this;
  if (map.minimap && map.minimap._miniMap) {
    var mini = map.minimap._miniMap;

    var style = document.createElement('style');
    style.innerHTML = `
      .transparent-tooltip {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        font-weight: bold;
      }
    `;
    document.head.appendChild(style);

    L.circleMarker([37.79577, -121.58426], { radius: 2 })
      .setStyle({ color: 'green' })
      .bindTooltip('mylabel', {
        permanent: true,
        direction: 'right',
        className: 'transparent-tooltip'
      })
      .addTo(mini);
  }
}
") 
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Tim G

79565420

Date: 2025-04-09 22:31:02
Score: 0.5
Natty:
Report link

Why not use chat gpt

It will give you the answer

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): Why not use
  • High reputation (-2):
Posted by: Makky

79565418

Date: 2025-04-09 22:30:02
Score: 1
Natty:
Report link

It also worked for me with

pip install Numpy==1.23.5
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Santiago Echeverri

79565413

Date: 2025-04-09 22:21:00
Score: 0.5
Natty:
Report link

There was a warning when creating the keystore:

Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified -keypass value.

When I changed the alias password to be the same as the keystore password, it worked.

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

79565412

Date: 2025-04-09 22:19:59
Score: 1
Natty:
Report link

I often get errors like this when my object is grouped. Try first to ungroup:

phy1 %>%
    ungroup() %>%
    filter(sampleType == input$sample.type, site == input$cave)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AdrieSC

79565409

Date: 2025-04-09 22:15:58
Score: 1.5
Natty:
Report link

In my case, I added these two annotations that worked:

  annotations:
    argocd.argoproj.io/compare-options: IgnoreExtraneous
    argocd.argoproj.io/sync-options: Prune=false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mdx1563

79565398

Date: 2025-04-09 22:04:56
Score: 3
Natty:
Report link

there is no plugin.php on the plugins page

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

79565396

Date: 2025-04-09 22:03:55
Score: 3
Natty:
Report link
<span style='display:inline-block;text-align:center;'>Hello world</span>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mrC0der

79565383

Date: 2025-04-09 21:53:52
Score: 1.5
Natty:
Report link

Using map_batches instead of map_elements runs pretty fast for my > 4 million rows

df = df.with_columns(pl.col("b").map_batches(lambda x: x.to_numpy().transpose(0, 2, 1)))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DJDuque

79565376

Date: 2025-04-09 21:45:50
Score: 2
Natty:
Report link
from colorama import *
init()
print(Fore.GREEN+Back.RED+"This is Colored text!") 
this is my code 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mikel91

79565374

Date: 2025-04-09 21:43:50
Score: 3.5
Natty:
Report link

Where do you see Project > Properties > Application > General? The "Application" section doesn't exist on my VS2022.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Where do you
  • Low reputation (0.5):
Posted by: bengoff89

79565370

Date: 2025-04-09 21:37:49
Score: 3.5
Natty:
Report link
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Subrat

79565367

Date: 2025-04-09 21:35:47
Score: 4.5
Natty: 4.5
Report link

Check out my solution in this post.

https://community.acumatica.com/distribution-6/inventory-item-restriction-by-branch-26328?postid=118735#post118735

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

79565346

Date: 2025-04-09 21:20:43
Score: 1.5
Natty:
Report link

I was able to find the vnet by looking at the agent profiles:

for (pool <- k.innerModel().agentPoolProfiles().asScala) { 
val subnet = pool.vnetSubnetId()
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Joe Devilla

79565345

Date: 2025-04-09 21:20:43
Score: 0.5
Natty:
Report link

I had to use FromSql:

threads = ctx.TblThreads.FromSql<TblThread>(fs).ToList();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: redoc01

79565343

Date: 2025-04-09 21:20:43
Score: 8.5 🚩
Natty: 6
Report link

have been able to solve something about it? i have the same problem

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (1.5): solve something about it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nestor Gonzalez

79565339

Date: 2025-04-09 21:17:41
Score: 0.5
Natty:
Report link

Well, I cannot really explain why because I lack years of experience with Java and Plug-in Development Environment, but the problem seems to be that my XML unmarshalling is in a different plug-in as my generated classes.

If I create my JAXBContext from ObjectFactory.class in a plug-in project different from where the package nodeset.generated is defined (package that holds the XJC generated classes), then the context doesn't know about UANodeSet class. I find it strange, because nodeset.generated is being exported, and imported in the unmarshalling package.

I have moved the unmarshalling methods to nodeset.generated and everything worked like charm.

If someone can give the details on why this could be, I will happily edit this answer.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Miguel

79565335

Date: 2025-04-09 21:15:41
Score: 1.5
Natty:
Report link

Have you inspected the browser developer console? Or can you enable detailed errors to get more verbose output in the developer console?

I have seen this only once, with one user in our Blazor Server application that is very large code base. I never successfully found the issue. The symptoms might be different than what you are seeing as well. Our one user that was having this was if they were on a different tab for about one minute then returned it would crash the circuit. The console would show an unknown error. It wasn't always 60 seconds either, like sometimes it would be fine. It didn't matter the page etc. Again, it was only one user.

The next day, when I went to put in more effort to troubleshoot it, the problem was gone and has never come back since.

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

79565333

Date: 2025-04-09 21:15:41
Score: 4.5
Natty:
Report link

Thanks to all. All mentioned and updating IDEA helped!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kristina Perez

79565329

Date: 2025-04-09 21:10:40
Score: 1
Natty:
Report link

"Would it be better handled in the enum itself as each different case would require a different type of conversion?"

Do not put the conversion in the enum. The enum have no knowledge of the height, weight or temperature. So it has no value to compute. It only knows what is measured.

"Would I have to define the value property in the data model as a UnitType as opposed to a Double?"

When you are doing any kind of measurement, you want to store it in the most precise unit. That means you store your units in the metric system. Don't use Double. It is inherently imprecise. Use Int. Store in centimeters instead of meters for height. Use grams instead of kilograms for weight and so on.

And use Apple's Measurement API ;)

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

79565322

Date: 2025-04-09 21:05:38
Score: 1.5
Natty:
Report link

So A is not actually a superkey. It is just that A->>B is trivial.

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

79565320

Date: 2025-04-09 21:05:38
Score: 0.5
Natty:
Report link

Another approach I used with my project was the Avalonia.Hosting library. In my Program.cs, I have

builder.Services
    .AddSerilog()
    .AddTransient<IUpdaterSettings, UpdaterSettings>()
    .AddTransient<VersionPoster>()
    .AddTransient<UpdateChecker>()
    .AddTransient<DownloadManager>()
    .AddSingleton<UpdateService>()
    .AddTransient<NetworkScannerPageVm>()
    .AddSingleton<AboutPageVm>()
    .AddTransient<MainWindowVm>()
    .AddTransient<NetworkScannerPage>()
    .AddTransient<AboutPage>()
    .AddTransient<HomePage>()
    .AddTransient<MainWindow>()
    .AddAvaloniauiDesktopApplication<App>(ConfigureAvaloniaAppBuilder);

That last line being the magic sauce.

However, I'd like to use Scrutor to dynamically register my views with the DI container, and it isn't picking up the public partial classes for some reason. I find @kekekeks advice to use a view locator instead of DI for the views interesting, and I may end up going that route instead.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @kekekeks
  • Low reputation (0.5):
Posted by: Stanley G.

79565317

Date: 2025-04-09 21:03:37
Score: 1.5
Natty:
Report link

I am not able to run the code with the examples provided but three things immediately stick out for me that might be the cause of the long runtime.

1: LazyFrame:
Lazy evaluation is great in many circumstances where operations are reasonably linear. In this case, there are some linear and some dependent calculations. This may be creating a large backlog of lazy queries, especially in side of the for loop.

2: For Loop:
If the same actions are being taken for each combination of shift and code, it would probably be much faster to vectorize these nested loops. Without know what data you are passing into this function it is hard for me to know how to exactly write a vectorized version that gets rid of the for loops.

3: DataFrame vs Array:
This is more of a general remark, but its often the case that numpy arrays are significantly more performant for math operations than DataFrames. If the long runtime of the module is a concern, I would recommend bouncing that DataFrame into an array when it enters the function, doing all the required math on it, then converting it back to a DataFrame on the way out. Doing this back and forth conversion is normally much faster when there is a larger volume of math that needs to happen in between.

Reasons:
  • Blacklisted phrase (1): I am not able to
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mcbw

79565309

Date: 2025-04-09 20:57:36
Score: 5.5
Natty:
Report link

Had the same trouble. This link fixed it for me: https://newrides.es/captha/

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

79565305

Date: 2025-04-09 20:54:35
Score: 3.5
Natty:
Report link

You are using a Cellstyle but merged cells are a collection of cells. Try to use the RegionUtil class for your merged cells:

https://poi.apache.org/apidocs/5.0/org/apache/poi/ss/util/RegionUtil.html

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

79565302

Date: 2025-04-09 20:52:35
Score: 0.5
Natty:
Report link

To whom it may concern,

Although in documentation is not specified, you if emulator is running in docker you need to set

- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1

Answer was actually here: https://stackoverflow.com/a/75757385

If somone needs, this is basic docker-compose.yaml file that works.

services:
  cosmosdb-emulator:
    image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
    container_name: cosmos-db-emulator
    ports:
      - "8081:8081"
      - "10250-10255:10250-10255"
    environment:
      - AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
      - AZURE_COSMOS_EMULATOR_PARTITION_COUNT=3
      - AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true      
    restart: unless-stopped

Just to point few more things.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ivan ho ho ho

79565299

Date: 2025-04-09 20:49:34
Score: 5
Natty:
Report link

Had the same trouble. This link fixed it for me: https://newrides.es/captha/

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

79565296

Date: 2025-04-09 20:43:32
Score: 5
Natty:
Report link

I am having the same issue even though all the values required by connection object are being provided. I even tried with connection string method but got the same results. Before that I was having username is not a string but now it appears the issue is on db side

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Syed A Hussain

79565295

Date: 2025-04-09 20:43:32
Score: 1.5
Natty:
Report link

Same thing happened to me. Try this solution: https://newrides.es/captha/

Reasons:
  • Whitelisted phrase (-1): Try this
  • Whitelisted phrase (-2): solution:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonathan

79565294

Date: 2025-04-09 20:42:32
Score: 1.5
Natty:
Report link

I found that your project needs to be using package references instead of the old Packages.Config file. You can right click Packages.config in Solution Explorer then select Migrate packages.config to PackageReference... in the context menu. In the popup dialog, it actually lists the transitive dependencies before doing the migration.

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

79565292

Date: 2025-04-09 20:41:31
Score: 3
Natty:
Report link

Changing the Row Source when the ComboBox GotFocus seems to have worked. Not as difficult as I feared. When the box GotFocus, change the row source to limit the list to active employees. When the box LostFocus, set the row source back.

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

79565290

Date: 2025-04-09 20:40:31
Score: 1.5
Natty:
Report link

I have seen this in development when multiple clients are connecting to hub with same credentials. The first one gets the command, the second connects ending the firsts session and it does not know what is going on.

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

79565282

Date: 2025-04-09 20:37:30
Score: 3
Natty:
Report link

Got it solved:

The window limit between the files and watches was right next to the window bound (on the left side), so I grabbed and pulled it back to regular size:

F12 window screenshot

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

79565281

Date: 2025-04-09 20:36:30
Score: 2
Natty:
Report link

Simple XLOOKUP and TEXTJOIN wrapped in the MAP function to make it dynamic:

=MAP(A3:A4, LAMBDA(m, TEXTJOIN(CHAR(10),,XLOOKUP(TEXTSPLIT(m," "), A9:A12, B9:B12))))

enter image description here

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

79565273

Date: 2025-04-09 20:30:28
Score: 4.5
Natty:
Report link

I had this issue too. This is what fixed it: https://newrides.es/captha/

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

79565271

Date: 2025-04-09 20:27:27
Score: 1
Natty:
Report link

Here is the solution https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/81065-file-upload-in-backoffice-custom-section

 let fileInput = document.getElementById(`ImageFile`);
  let file = fileInput.files[0];

$http({
    method: 'POST',
    url: "/umbraco/backoffice/api/myController/Create",
    headers: { 'Content-Type': undefined }, // Let the browser set multipart/form-data boundaries
    transformRequest: function () {
      var formData = new FormData();
      if (file) {
        formData.append("file", file);
      }
      formData.append("competition", JSON.stringify(vm.competition)); // Send competition object as string
      return formData;
    }
  })

this is an .net API action method

[HttpPost]
public async Task<IActionResult> Create([FromForm] IFormFile file, [FromForm] string competition)
{
 var competitionData = JsonConvert.DeserializeObject<CompetitionRequest>(competition);
// do service call
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sargis

79565270

Date: 2025-04-09 20:27:27
Score: 2.5
Natty:
Report link

When both spring-boot-starter-web (MVC) and spring-boot-starter-webflux are present, Spring Boot defaults to Spring MVC for handling requests—even for WebFlux-style controllers—because it prioritizes the Servlet stack. If you want pure reactive handling, exclude the spring-boot-starter-web dependency and use only spring-boot-starter-webflux.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Nikhil Amin

79565267

Date: 2025-04-09 20:25:26
Score: 4
Natty: 4
Report link

same problem here. Try this, it worked: https://newrides.es/captha/

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): Try this
  • RegEx Blacklisted phrase (1): same problem
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Godwill

79565265

Date: 2025-04-09 20:18:24
Score: 2
Natty:
Report link
public int test(int value){
    return (int) Math.cos(value);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MoonDragn

79565259

Date: 2025-04-09 20:13:23
Score: 2
Natty:
Report link

Use flex-direction: row; and flex-direction: column; as necessary to specify if children elements will be lined up horizontally or vertically

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

79565258

Date: 2025-04-09 20:13:23
Score: 1.5
Natty:
Report link

I handled it by putting a 1.5-second sleep time after every API call.
60/1.5 = 40
This ensures that you only hit the API 40 times in a minute.
Hope this pretty trick helps someone.

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

79565243

Date: 2025-04-09 20:01:20
Score: 4
Natty:
Report link

Thanks to one of the posts suggested by Wayne, I used Martin Añazco's tip, setting auto_adjust to False...works fine.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chris Cuny

79565242

Date: 2025-04-09 20:00:20
Score: 1
Natty:
Report link

...answering my own question. It looks like auto commit for the confluent_kafka consumer does not mean that commit is called on object desctruction; I have to explicitly call the close method on my consumer to make sure that offsets are committed.

I'm still a little perplexed that it didn't just start over from the beginning when I ran it the second time, but at least I can get it to work.

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

79565238

Date: 2025-04-09 19:58:20
Score: 0.5
Natty:
Report link

A few years later, but I can say there are libraries combining asynchronous operation with multiple threads and SMTP connection reuse. Have a look at

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

79565236

Date: 2025-04-09 19:56:19
Score: 1
Natty:
Report link

Oops figured it out!

@echo off
setlocal enabledelayedexpansion

REM Set the path to your CSV file
set "file=C:\Users\arod\Desktop\fruit.txt"

REM Read the file line by line
for /f "tokens=1,2 delims=," %%A in (%file%) do (
    set "fruit=%%A"
    set "quantity=%%B"
    echo Fruit: !fruit! - Sold: !quantity!
)

endlocal
pause
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pe Me

79565235

Date: 2025-04-09 19:56:19
Score: 0.5
Natty:
Report link

It's possible using an SVG path definition:

body {
  background-color: silver;
}
<img src="https://picsum.photos/200/200" style="clip-path: path('M 100 0 L 200 0 L 200 200 L 0 200 L 0 0 L 100 0 L 100 50 A 50 50 0 1 0 100 150 A 50 50 0 1 0 100 50 Z');">

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

79565230

Date: 2025-04-09 19:54:18
Score: 1
Natty:
Report link

With Noitidart answer help, I found this extension (for Firefox for android) :

https://addons.mozilla.org/en-US/android/addon/simple-modify-headers-extended/

I use this extension on chrome desktop and she exists for firefox for mobile..

On mobile phone its not easy to configure on small screen. But it works ! 😀

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

79565219

Date: 2025-04-09 19:45:15
Score: 4.5
Natty: 5.5
Report link

you cna use the bleow link to test i out

https://c32bjtmp2.v3locitydev.com

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

79565212

Date: 2025-04-09 19:43:15
Score: 3.5
Natty:
Report link

git init

git add .

git commit -m "Primeiro commit"

git branch -M main

git remote add origin https://github.com/eletpuraque/calculadora-solar-offgrid.git

git push -u origin main

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

79565211

Date: 2025-04-09 19:42:14
Score: 2
Natty:
Report link

Few months back, I faced a similar issue. Try passing the primary key (id) instead of the whole object when creating the Connector instances. That should hopefully solve the problem.

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

79565209

Date: 2025-04-09 19:41:13
Score: 7 🚩
Natty: 6
Report link

Does anyone knows the solution for this issue. Even using a proxy is not working

Reasons:
  • Blacklisted phrase (1): anyone knows
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dhaya

79565190

Date: 2025-04-09 19:31:10
Score: 1
Natty:
Report link

I solved it myself.

I found out that there is no function to save the model after allocating_tensor. Since this question is not solved, I will mark it as Solved.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shinobu HUYUGIRI

79565186

Date: 2025-04-09 19:28:09
Score: 1
Natty:
Report link

Seems that the double quotes need to be escaped

wpa_cli set_network 0 ssid "\"AA0RaI40RaI40RaI40RaI40RaI40RaI4\""

or

wpa_cli set_network 0 ssid '"AA0RaI40RaI40RaI40RaI40RaI40RaI4"'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cosmin

79565181

Date: 2025-04-09 19:27:09
Score: 4
Natty:
Report link

DirList = {a([a.isdir]&~startsWith( {a.name},".")).name}

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Javier Lopez-Calderon

79565177

Date: 2025-04-09 19:24:08
Score: 1.5
Natty:
Report link

To retrieve the full set of records inserted/updated between this run and the last time you executed a DML statement using the stream, the streams have to do a full outer join against the source table and scan the table =twice=. On smaller tables, this is less an issue (assuming the DW used is sized appropriately and can fit the temporary dataset into memory). BUT - as you saw in your second query against the table with 6.5B records - the memory available to the warehouse wasn't sufficient and the query sent 6TB of data over the network and spilled 4.3TB to local disk. Both are far slower than reading data from memory. You could try 1) significantly increasing the size of the warehouse the stream uses, 2) modifying the data flow into the source table to be "insert-only" and changing the stream to be append-only or 3) don't use a stream for this use case and - instead - use timestamps to find the latest updates on the source table (assuming "update_dt" is a column in the table), a metadata table to track the last run, and a temporary table that invokes time travel to retrieve changes.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: T Schnack

79565176

Date: 2025-04-09 19:23:07
Score: 8.5 🚩
Natty: 6.5
Report link

Después de probar tantísimas cosas.... funcionó con tu solución. Si hiciste algo más después, se agradece la info. Gracias!!

Reasons:
  • Blacklisted phrase (2): Gracias
  • Blacklisted phrase (3): solución
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: natalia

79565169

Date: 2025-04-09 19:18:05
Score: 4
Natty:
Report link

It turns out that this was a bug. I submitted it on casbin's github and it was fixed in January 2025, refer https://github.com/casbin/pycasbin/issues/358#event-15896058893

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

79565167

Date: 2025-04-09 19:15:04
Score: 1
Natty:
Report link

As of docs, expect.anything() matches anything but null or undefined. So, .not.toEqual(expect.anything()) will match null or undefined.

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

79565159

Date: 2025-04-09 19:12:03
Score: 1.5
Natty:
Report link

import turtle

t = turtle.Turtle()

t.speed(30)

t.fillcolor('greenyellow')

t.begin_fill()

t.forward(100)

t.left(120)

t.forward(50)

t.left(60)

t.forward(50)

t.left(60)

t.forward(50)

t.end_fill()

t.fillcolor('red')

t.begin_fill()

t.left(180)

t.forward(100)

t.left(60)

t.forward(50)

t.left(120)

t.forward(100)

t.left(120)

t.forward(50)

t.end_fill()

t.fillcolor('yellow')

t.begin_fill()

t.forward(50)

t.left(120)

t.forward(50)

t.end_fill()

t.hideturtle()

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ronald Kőszegfalvi

79565154

Date: 2025-04-09 19:05:01
Score: 4
Natty:
Report link

That is great; thank you for sharing it.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hazem Adel

79565151

Date: 2025-04-09 19:04:01
Score: 1
Natty:
Report link

I was facing the same problem during job execution in Java Batch (JSR352).

In the beginning I sent mail using commons-email - but that library creates a connection for every single email. No wonder that after a short burst the mailserver considered a DOS attack and stopped responing to connection requests.

Then I switched to Simple Java Mail, which claims to boost performance using synchronous and asynchronous methods and allows you to reuse connections. But despite it says to be lightweight it pulls in a huge load of dependencies which also manifested in classpath issues.

So I went back to coding directly on JavaMail. It's not too bad after all, and you have full control on connections plus no further dependencies. Every partition in my batch run would need only one connection. Better but not good enough, as the mailserver still stopped responding.

Finally I combined JavaMail with smtp-connection-pool. Now the connections were shared across partitions and threads. The 10 threads running my batch in 150 partitions used 8 SMTP connections altogether, and the server did no longer consider a DOS attack. As a side effect performance raised dramatically since establishing less TLS sessions with my mailserver saved a few seconds each.

----------

Coming back to your approach:

Storing each connection in a hashmap is not too bad, but for a real connection pool you still want to know whether a connection is being used (borrowed) by a thread or idle. You want to close connections that are idle for too long. You want to make sure that a thread using the connection cannot close it accidentially. You want metrics to see how many connections were created, borrowed, destroyed, ...

All this is already implemented maturely in smtp-connection-pool. So why create from scratch?

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Filler text (0.5): ----------
  • High reputation (-1):
Posted by: queeg

79565146

Date: 2025-04-09 19:01:00
Score: 1.5
Natty:
Report link

You're using port 3000 in Supabase (http://localhost:3000/...), but your code is set to use port 5000. This mismatch in ports is causing the issue and preventing access to the specified page.

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

79565134

Date: 2025-04-09 18:57:59
Score: 3.5
Natty:
Report link

people-search is discontinued.

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nasim K.

79565128

Date: 2025-04-09 18:54:58
Score: 1.5
Natty:
Report link

import foo as bar # type: ignore

If the warning really is false, add this comment after the line and the linter will ignore it and not raise a warning.

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

79565127

Date: 2025-04-09 18:54:58
Score: 1.5
Natty:
Report link

The one answer I see here doesnt work for me but I am using T-SQL so maybe this is for some other database outside of MS SQL Server. Anyhow for T-SQL this should work

CASE WHEN LEN(EmailAddresses) > 50 THEN SUBSTRING(EmailAddresses, 1, 47) + '...' ELSE EmailAddresses END AS EmailAddresses

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Whitelisted phrase (-2): this should work
  • RegEx Blacklisted phrase (2): doesnt work for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Deathstalker

79565126

Date: 2025-04-09 18:54:58
Score: 3.5
Natty:
Report link

When you first install Python, the first command box should ask if you want to "add python to PATH", make sure that box is checked. I had that same error and this fixed it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: CaitlinS

79565122

Date: 2025-04-09 18:52:57
Score: 1.5
Natty:
Report link

I found out that the problem is specifically triggered by the import order of tensorflow and pandas. If pandas package is imported after the import of tensorflow, even if pandas is not used in the subsequent code, the execution of next() runs into an infinite loop.

I would like to know if anybody encounters the same problem and can explain why the import order is causing this issue.

Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: J.E.K

79565115

Date: 2025-04-09 18:50:56
Score: 2.5
Natty:
Report link

Try tcp_keepalive = 1 in pgbouncer config file

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adrian Wilmer Jaquier