79724149

Date: 2025-08-03 15:59:27
Score: 2
Natty:
Report link

JTabbedPane indexOfComponent(component) check with == method which means it check the components are same in memory. so if you are passing the same component it will not work,

You can override the indexOfComponent method and allow it to pass the duplicate component

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

79724127

Date: 2025-08-03 15:28:20
Score: 4
Natty:
Report link

This is 13 years old and I still have the same problem. Incredible.

For me the screen was only halfway off, so dragging the resize handle just a pixel or two is enough to bring it all back on screen.

Still super annoying. Have to do it every time you start the server.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (0.5):
Posted by: mateoc15

79724125

Date: 2025-08-03 15:27:20
Score: 1
Natty:
Report link

If you're using a schema library, you can derive a jit-compiled deep equals function that's ~5-10 times faster than fast-deep-equal, and ~70-80x faster than Lodash (or any other recursive solution).

// also supported: JSON Schema, TypeBox, ArkType, valibot
import { deepEqual } from '@traversable/zod' 

const myEqualsFn = deepEqual(z.array(z.object({ name: z.string(), age: z.number() })))

myEqualsFn(
  [
    {'name': 'john', 'age': 22},
    {'name': 'mike', 'age': 20},
  ],
  [
    {'name': 'john', 'age': 22},
    {'name': 'mike', 'age': 42}
  ] 
) 
// => false

Run / play with the benchmarks here: https://bolt.new/~/mitata-k7dj9raq

This works because we're able to use the schema to optimize the comparison.

I wrote a short blog post that goes into more detail here: https://dev.to/ahrjarrett/how-i-built-javascripts-fastest-deep-equals-function-51n8

Edit: forgot to include a link, the library is here: https://github.com/traversable/schema/

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

79724117

Date: 2025-08-03 15:15:17
Score: 2
Natty:
Report link

Maybe similar to drawables?:

config.set_property('image', image)
config.set_core_object_array('drawables', [drawable])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Hanna

79724114

Date: 2025-08-03 15:13:16
Score: 5
Natty: 5
Report link

Коллеги, из ваших ответов очевидно, что вы не поняли вопрос. Ариан, задавший вопрос, желает получить не индекс [gcr_id] по значению 21, а желает получить индекс [3], зная, что [gcr_id]=>21.

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

79724111

Date: 2025-08-03 15:07:15
Score: 2.5
Natty:
Report link

It's not quite "changeable." Then it would be the word "change." The word "mutate" means a variable, during its lifespan, arrives at the API from the frontend the same as it was defined. For example, a component could define default form values, like populating the input "name" with the string "John Doe". But if the form library supplies the API with an array ['john,' 'doe'] then it was mutated. This is not only based on changing types- you get the idea.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Randomly Angry-As-F-Ing

79724106

Date: 2025-08-03 14:59:13
Score: 4
Natty:
Report link

Hello Im trying to do the same thing here
when i start the Hikvision SDK Demo and Start Listen to incoming events nothing appears same thing with HTTP Listener mode Despite the connection success .
but when i call the Api from web browser it loads the data successfully.

how can i start the listening successfully
here is my web cam settings
enter image description here cam settings
enter image description here listening host settings

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): trying to do the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohamed Hanti

79724104

Date: 2025-08-03 14:59:13
Score: 1.5
Natty:
Report link

Try to use

'sms:$selectedPhone&body=${Uri.encodeComponent(message)}'

instead of

'sms:$selectedPhone?body=${Uri.encodeComponent(message)}'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gurbanmyrat Ataballyyev

79724090

Date: 2025-08-03 14:42:09
Score: 3
Natty:
Report link

Apparently google chrome hides the cookie field for wss requests. It's being sent, it's just not visible on chrome dev tools.

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

79724088

Date: 2025-08-03 14:37:08
Score: 1
Natty:
Report link

I have gone through the problem statement you have mentioned above, below might be the solutions

1. Handle validation exceptions manually,you can catch its validation exception and manually throw a ResponseStatusException(HttpStatus.UNAUTHORIZED).

public TokenResponse login(LoginUserRequest request){

try {

    validationService.validate(request);

} catch (ConstraintViolationException | SomeOtherValidationException ex) {

    throw new ResponseStatusException(HttpStatus.UNAUTHORIZED, "Username or password wrong");

}

}

2: Use @Valid in the controller

I hope it really helps

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Valid
  • Low reputation (1):
Posted by: Pooja Gupta

79724083

Date: 2025-08-03 14:32:06
Score: 0.5
Natty:
Report link

maybe something like this would be enough, to start command at next minute

sleep $(bc -l <<< '(60000-'$(date +%S%3N)')/1000'); yourcommand

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

79724066

Date: 2025-08-03 13:53:58
Score: 2.5
Natty:
Report link

The Code in Answer 1 works, but I think it is not "correct", because the StringVar var isn't used at all.
The "correct" code should initialize the variable with the parent widget, that is
self.var = StringVar(self)
Then you can call self.var.get() and this gives the expected result

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

79724065

Date: 2025-08-03 13:52:58
Score: 3
Natty:
Report link

I have now shifted to Unidata's NetCDF-Java to read NetCDF files and it works fine.

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

79724034

Date: 2025-08-03 12:54:45
Score: 1
Natty:
Report link
let inputArray = [10, 20, 30];

function arrayToList(array) {
  let list = {};

  list.value = array.splice(0, 1)[0];
  list.rest = array.length > 0 ? arrayToList(array) : null;

  return list;
}

console.log(arrayToList(inputArray));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rajesh Kumar

79724027

Date: 2025-08-03 12:45:43
Score: 1.5
Natty:
Report link

Use a Custom Field Instead of “State”

If you want to customize column labels without impacting global labels, create a custom choice field:

  1. Add a new field (e.g., vtb_status) to the table.

  2. Define your custom choices: “To Do”, “In Development”, “Review”, etc.

  3. Create a new Visual Task Board based on this field.

  4. You'll now see custom column names as per your values.

If anyone's interested, we documented one of our ITSM implementations here with results, read now!

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

79724024

Date: 2025-08-03 12:40:42
Score: 3
Natty:
Report link

I found the problem : in fact, CMake found the wrong Python interpreter, so I must specify the good one.

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

79724018

Date: 2025-08-03 12:14:37
Score: 0.5
Natty:
Report link

Thanks to Some programmer dude that suggested to check IR of my test C program. I should always to that in future. So the problem solution is:

There was another setjmp function that takes 2 parameters i32 @_setjmp(ptr, ptr). The first one is still JmpBuf but the second one is result of ptr @llvm.frameaddress.p0(i32 immarg) call. Everything works as expected now, thank you so much :)

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: crackanddie

79723996

Date: 2025-08-03 11:38:30
Score: 2
Natty:
Report link

After trying all sorts of thing from upgrading my npm and nodejs versions to recreating composer create-project, this sudo was the one thing that let me pgrade from tailwind 3 to 4 using the npx tool.

sudo npx @tailwind/upgrade - works a treat.

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

79723991

Date: 2025-08-03 11:26:28
Score: 3
Natty:
Report link
$table->point('latitude'), $table->bigInteger('longitude')
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: amirhosein babaei

79723980

Date: 2025-08-03 11:14:25
Score: 4
Natty:
Report link

Interested in knowing about this topic!

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

79723975

Date: 2025-08-03 11:07:23
Score: 3
Natty:
Report link

Natwok I work il wife I&

header 1 header 2
cell 1 cell4
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Furkan Ali

79723963

Date: 2025-08-03 10:51:20
Score: 1
Natty:
Report link

thank you guys

i'm using boot strap 5.3.7

just replaced the href with the asp-controller and asp-action now just a few more items on my list in this multi crud application and i can deploy

<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Administration</a>
    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
        <li>
            <a class="ListUsers" asp-controller="Administration" asp-action="ListUsers">Manage Users</a>
        </li>
       <li>
            <a class="List Roles" asp-controller="Administration" asp-action="ListRoles">Manage Roles</a>
        </li>
    </ul>
</li>
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Finch

79723958

Date: 2025-08-03 10:42:18
Score: 3.5
Natty:
Report link

Also interested in someones better solution!

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

79723957

Date: 2025-08-03 10:41:15
Score: 6.5
Natty: 5.5
Report link

Самое главное, это в настройках бота, включить бизнес режим, без него оплата работать не будет.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Радиф Гатауллин

79723948

Date: 2025-08-03 10:22:10
Score: 5
Natty:
Report link

This might help you - https://mankeyss.gumroad.com/l/ios-theme there's a lot of different ios styling options

Reasons:
  • 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: hey

79723947

Date: 2025-08-03 10:21:09
Score: 2
Natty:
Report link

i use to do like this
Header 1 | Header 2 | Header 3 | Header 4 | Header 5 | Header 6
-|-|-|-|-|-
one <td colspan=3>three </td><td colspan=2>two</td></tr><td>1|2|3|4|5|6
1|2|3|4|5|6

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

79723945

Date: 2025-08-03 10:18:09
Score: 1
Natty:
Report link

According to the documentation, you need to put the plugin on a regular page and not a folder.

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

79723941

Date: 2025-08-03 10:15:08
Score: 2.5
Natty:
Report link

After enabling the location permission the map is showing. It is not mentioning is the document that the location permission is required for map to show. Personally I don't think that the permission is needed just to show until I'm not using client's Geolocation API.

Thank You

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: full_stack_developer

79723935

Date: 2025-08-03 10:02:05
Score: 4
Natty:
Report link

As Jesus said "it's sad that a negro like u is allowed to use a persona computer"

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

79723929

Date: 2025-08-03 09:58:03
Score: 4.5
Natty:
Report link

The problem is that you are a mentally ill nigger, let's be honest ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀

⠀ ⠀ ⠀ ⠀ ⠀

<img url="https://i.sstatic.net/AJ17h4j8.png">

What the fuck guys i cant enter a picture? Ah wait its src OH NO U CANT POST SRC ATTRIBUTES

Reasons:
  • Blacklisted phrase (2): fuck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Stalin

79723928

Date: 2025-08-03 09:57:03
Score: 0.5
Natty:
Report link

The error shows "No module named matplotlib" in the installer.

Please install the matplotlib, you can install it via

pip install matplotlib

your final dependency will look like this:

PyQt6==6.9.1
PyQt6-Qt6==6.9.1
PyQt6_sip==13.10.2
qt-material==2.17
pyinstaller==6.14.2
matplotlib
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pratik Pathak

79723924

Date: 2025-08-03 09:52:01
Score: 5
Natty:
Report link

If you're doing IOS design i would suggest this: https://mankeyss.gumroad.com/l/ios-theme

Reasons:
  • 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: hey

79723923

Date: 2025-08-03 09:51:01
Score: 4
Natty:
Report link

⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

⠀ ⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀


⠀ ⠀

"I don't like Microsoft niggers either bro"
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (3):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Stalin

79723921

Date: 2025-08-03 09:43:59
Score: 3
Natty:
Report link

# حفظ كلمة المرور في متغير

كلمة_المرور = "admin123"

# طلب من المستخدم إدخال كلمة المرور

مدخل_المستخدم = input("رجاءً، أدخل كلمة المرور: ")

# التحقق من المطابقة

if مدخل_المستخدم == كلمة_المرور:

print("مرحبا بك يمكنك الدخول")

else:

print("كلمة المرور خاطئة")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: متع نظرك

79723916

Date: 2025-08-03 09:38:58
Score: 1
Natty:
Report link

As mentioned in official document you need to import theme variables

page css file path:
src/components/pages/login/page.css

@reference "../../../app/globals.css";

h3 {
  @apply bg-new-theme-color;
}

global css file path:
src/app/globals.css

@import "tailwindcss";

@theme {
--color-new-theme-color: #fbfbaa;
}

I hope its helpful

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

79723915

Date: 2025-08-03 09:36:57
Score: 0.5
Natty:
Report link

To vertically center the image + description block only in the space below the title, you just need to make sure that:

  1. the wrapper that contains the content (contentWrapper) has flex: 1, so it takes all the remaining space below the header, and

  2. you use justifyContent: 'center' to center its children vertically inside that space.

In your code you were already almost there — the only missing piece is that the title container above must not grow (so it doesn’t steal space), while the content wrapper must grow.


<View style={[styles.slide, { width }]}>
  <View style={styles.titleContainer}>
    <Text style={styles.title}>{item.title}</Text>
  </View>

  <View style={styles.contentWrapper}>
    <item.SlideImage style={styles.image} />
    <Text style={styles.desc}>{item.descr}</Text>
  </View>
</View>

Now make sure the styles look like this:

titleContainer: {
  // DON'T add flex here, or it will take unnecessary space
  paddingTop: 40,            // your fixed top offset
  paddingBottom: 20,
},

contentWrapper: {
  flex: 1,                   // <– grows to fill the rest of the slide
  justifyContent: 'center',  // <– vertical centering
  alignItems: 'center',
  paddingHorizontal: 20,
}
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Conta

79723909

Date: 2025-08-03 09:17:54
Score: 1
Natty:
Report link

Table that doesn't look weird and only scrolls horizontally when there isn't enough space allocated on screen for it's width:

table {
    display: inline-block;
    overflow-x: scroll;
    white-space: nowrap;
    max-width: 100%
}

Add overflow-y and max-height for vertical size limit and scroll

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

79723900

Date: 2025-08-03 09:02:51
Score: 1
Natty:
Report link

i had the same issue when try to access routes/api.php with POST request in postman, as you can see in below image..

enter image description here

so just replace http WITH https and it will work well 🙏🙏

enter image description here

Hope it will Help :)

Reasons:
  • Blacklisted phrase (0.5): 🙏
  • Whitelisted phrase (-1): Hope it will Help
  • Whitelisted phrase (-1): i had the same
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: starterProgrammer

79723898

Date: 2025-08-03 08:59:50
Score: 0.5
Natty:
Report link

You use .append() which is for lists, but duplicateFiles is a set. You should use try add() instead of .append().

You can read more about sets here or here

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

79723892

Date: 2025-08-03 08:47:47
Score: 1
Natty:
Report link

import as React from 'react';

import { Text, View, StyleSheet } from 'react-native';

import Constants from 'expo-constants";

// You can import from local files

import AssetExample from './components/AssetExample';

// or any pure javascript modules available in nom

import { Card} from 'react-native-paper";

export default function AppO

return (

<View style [styles.container}>

<Text style(styles, paragraph]>

Change code in the editor and watch it change on your phone! Save to get

a shareable url.

</Text>

<Card>

<AssetExample />

</Card>

Single

);

}

const styles StyleSheet.create({

container: {

flex: 1,

justifyContent: 'center',

paddingTop: Constants.statusBarHeight,

backgroundColor: '#ecf0f1",

padding: 8,

},

paragraph: {GH43-03241A+AB463446BU

margin: 24,

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

79723891

Date: 2025-08-03 08:46:47
Score: 1
Natty:
Report link

Here's a regex

^-?(?:[1-9]\d*|0)\.(?:0{9}|[0-9]{0,8}[1-9])$

Then just post-filter -0.000000000 in code, since regex alone (without lookaround) can't exclude that exact case.

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

79723890

Date: 2025-08-03 08:44:47
Score: 1.5
Natty:
Report link

I removed spaces before the definition of error function;

it worked. But I don't know why.

Is there anyone explain this?


from ibapi.client import EClient
from ibapi.wrapper import EWrapper
 
class TradingApp(EWrapper, EClient):
    def __init__(self):
        EClient.__init__(self,self)
        
def error(self, reqId, errorCode, errorString):
        print("Error {} {} {}".format(reqId,errorCode,errorString))
 
app = TradingApp()      
app.connect("127.0.0.1", 7497, clientId=1)
app.run()



python testreq.py
-->

ERROR -1 1754209901652 2104 Market data farm connection is OK:usfarm.nj
ERROR -1 1754209901652 2104 Market data farm connection is OK:usfuture
ERROR -1 1754209901652 2104 Market data farm connection is OK:eufarm
ERROR -1 1754209901659 2104 Market data farm connection is OK:usopt.nj
ERROR -1 1754209901660 2104 Market data farm connection is OK:cashfarm
ERROR -1 1754209901661 2104 Market data farm connection is OK:usopt
ERROR -1 1754209901661 2104 Market data farm connection is OK:usfarm
ERROR -1 1754209901662 2106 HMDS data farm connection is OK:ushmds
ERROR -1 1754209901662 2158 Sec-def data farm connection is OK:secdefil
Reasons:
  • Blacklisted phrase (1): Is there any
  • Whitelisted phrase (-1): it worked
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jinwon Lee

79723882

Date: 2025-08-03 08:34:44
Score: 1.5
Natty:
Report link
// you need to pass to the slot, as a prop:
// ChildComponent.vue
<script setup>
const data = `
This is the data

I want to get at it.
`
</script>

<template>
  <slot :data="data">
    <div>
       {{ data }}
    </div>
  </slot>
</template>
// then, access them like this, in the Parent component:

// ParentComponent.vue
<template>
  <ChildComponent>
      <template v-slot:default="{ data }"></template>
  </ChildComopnent>
</template>
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Qolami

79723881

Date: 2025-08-03 08:30:43
Score: 2
Natty:
Report link

The Form.required_css_class is applied to the labels of required fields if you set it to a string rather than the default None.

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

79723880

Date: 2025-08-03 08:27:43
Score: 2
Natty:
Report link

Cloudflare Images can do this out of the box. However to make it even easier, use the Image component from this package: https://github.com/keyute/cloudflare-image

And make sure to enable Cloudflare Images for the zone your worker is in.

You can pass any URL to an image to the component and it will transform it in such a way that the image gets downloaded to the Cloudflare CDN - visitors to your website will get served from there.

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

79723879

Date: 2025-08-03 08:24:42
Score: 2
Natty:
Report link

This exact model is used in projects like FinDirectory India , where hundreds of localized financial listing pages are built dynamically from a master template. Each city- or advisor-specific page injects names, services, locations, and SEO metadata using a combination of ACF and Elementor templating—saving massive time and effort.

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

79723870

Date: 2025-08-03 08:08:38
Score: 0.5
Natty:
Report link

The legacy HD5 model format has issues.

Switch saving the model using native .keras format.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Mikko Ohtamaa

79723862

Date: 2025-08-03 07:59:36
Score: 3.5
Natty:
Report link

2@8K0PDEpdOMH7vnFsseYtgoPXd7UwfgqU07kqgrvOiRLzxcDacDRjIe9pLp4eq9+jHO90E4mck5sE7naCGQ6YzIXgHLsV3vfI+vw=,u64uXPMpDFPTeyyyOM0aS+rTmICPuOkDPxp556W+uRs=,ljX0yHpjd8DwdOtXC8l89VFxS0G5u/83CkUajOngvVk=,3dnIgau7EeH4qhMhsz1Mr7wmib0uwfA+cs9u8jLlOok=,1

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juntaks Cataylo

79723861

Date: 2025-08-03 07:56:35
Score: 3.5
Natty:
Report link

:do_a () // 👍 I'm reading your QA as how go about inputting the next command? Lemme know if your asking something different

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

79723858

Date: 2025-08-03 07:45:31
Score: 6
Natty:
Report link

Have you had a look at sublist?

https://code.kx.com/q/ref/sublist/

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

79723855

Date: 2025-08-03 07:41:30
Score: 0.5
Natty:
Report link

By default, Pylance is limited by the memory available to Visual Studio Code Electron application. It is troublesome to change this.

However Pylance has an option to launch itself in an external Node.js process for which you can set the max heap size.

This is available through Visual Studio Code settings. See the example settings below.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Mikko Ohtamaa

79723843

Date: 2025-08-03 07:26:27
Score: 1.5
Natty:
Report link

I don't see the @RestController annotation on your TaskController, nothing is mapped in Spring MVC without this annotation.

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

79723830

Date: 2025-08-03 07:09:23
Score: 0.5
Natty:
Report link

if you are using sass, you can use the sass variables, provided by vuetify:
https://vuetifyjs.com/en/features/sass-variables/

if only css, you can see the css variables from browser inspect panel. like this:vuetify css variables
and you can use the variables in you css.

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

79723816

Date: 2025-08-03 06:46:19
Score: 4
Natty: 4.5
Report link

I made a qr code generator using javascript.

Free QR code generator : No Signup Required

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

79723814

Date: 2025-08-03 06:41:18
Score: 1
Natty:
Report link

Hey Yakup & other devs :),

I'm facing some issues regarding updating Live Activities using the OneSignal Update API. It simply wont update my Live Activity even tho i use the same activity_id and the same event_updates. Starting a Live Activity using the push-to-start API works perfectly fine and the activity shows up on my phone but updating wont work. The updates gets send but OneSignal says it had "No Receipents"

Here are the cURLs:

Starting a Live Activity:

curl --request POST \
  --url https://api.onesignal.com/apps/[APP_ID]/activities/activity/DefaultLiveActivityAttributes \
  --header 'Authorization: [API_KEY]' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "start",
  "activity_id": "activity",
  "event_attributes": {
    "promptText": "What can i do for you ?",
    "promptIconName": "circle.dashed"
  },
  "event_updates": {
    "leftButtonText": "Select Mode",
    "rightButtonText": "Send Vibe"
  },
  "name": "activity",
  "contents": {
    "en": "activity"
  },
  "headings": {
    "en": "activity"
  },
  "include_aliases": {
    "onesignal_id": [
      "8c409084-0156-4fa1-ba06-cd759aa6b920"
    ]
  },
  "priority": "10"
}'

And the Update cURL:

curl --request POST \
  --url https://api.onesignal.com/apps/[APP_ID]/live_activities/arkh-activity/notifications \
  --header 'Authorization: [API_KEY]' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "update",
  "event_updates": {
    "leftButtonText": "Alpay",
    "rightButtonText": "Marie"
  },
  "name": "activity",
  "contents": {
    "en": "en"
  },
  "priority": "5"
}'

as i said staring works fine, updating give me "No Receipents" in OneSignal and it wont update my Live Activity.

Reasons:
  • Blacklisted phrase (1): can i do
  • Blacklisted phrase (1): What can i do
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MrRobotz

79723812

Date: 2025-08-03 06:34:16
Score: 2
Natty:
Report link

I have encountered the same issue and thought the fix would be the following, but I can't manage to add it to the manifest (I target API 36 as well).
Getting error: "Element attribution is not allowed here" no matter where I put it.
https://developer.android.com/privacy-and-security/audit-data-access#declare-attribution-tags

Maybe you will have better luck...

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

79723807

Date: 2025-08-03 06:21:14
Score: 0.5
Natty:
Report link

For preventing freezing ui, you can follow the following workarounds: By add features like width & height as: window.open(url,target,'width=200,height=200'); And also, pay attention how to call the window.open, it must be triggered by an click event, for example, otherwise, it might be blocked.

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

79723804

Date: 2025-08-03 06:11:12
Score: 1.5
Natty:
Report link
//set on current day   sCurrentDay := FormatDateTime('dddd',Now);
  //fetch on a timer
  sFormattedDate := FormatDateTime('dddd',Now);//

  if not (sCurrentDay = sFormattedDate) then
    lblTodayTomorrow.Caption := 'It is Tomorrow!'
  else
    lblTodayTomorrow.Caption := 'It is still today.';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: delphiguru

79723797

Date: 2025-08-03 05:52:08
Score: 2.5
Natty:
Report link

The problem could be that the file is not encoded in UTF 8, e.g., in UTF 16-LE instead of UTF 8. Try to change the encoding, e.g., by Windows Notepad Save As

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

79723793

Date: 2025-08-03 05:41:07
Score: 3
Natty:
Report link

in tasks scheduler on the general tab change user or grouips to a admin account and when prompted enter its password

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

79723792

Date: 2025-08-03 05:37:06
Score: 1
Natty:
Report link

There’s no native pgvector support in DataNucleus currently.

This avoids complex adapter work and keeps your model clean.

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

79723776

Date: 2025-08-03 04:44:56
Score: 1
Natty:
Report link

Ctrl + Alt + Up arrow also works like Ctrl + F2.

I'm using Visual Studio 2022. Not sure if it works in previous vesions.

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

79723774

Date: 2025-08-03 04:40:56
Score: 2
Natty:
Report link

can u try adding below parameter when writing the dataframe to bigquery.

.option("allowFieldAddition", "True")

allowFieldAdditionAdds the ALLOW_FIELD_ADDITION SchemaUpdateOption to the BigQuery LoadJob. Allowed values are true and false.(Optional. Default to false).Supported only by the `INDIRECT` write method.

Is it possible to share the bigquery table schema or any small working example to demonstrate the issue?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): can u
  • High reputation (-1):
Posted by: vikrant rana

79723772

Date: 2025-08-03 04:32:54
Score: 1.5
Natty:
Report link

Default Ignorables are for if the renderer doesn't know what to do with the character. If this is the case, usually, we should render a tofu. However, if it is a Default Ignorable, we should instead ignore it. If we do know what to do with the character (e.g.: if you were to implement soft hyphen support), it being a Default Ignorable doesn't matter.

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

79723769

Date: 2025-08-03 04:26:53
Score: 3.5
Natty:
Report link

I know alot of people are into both coding and copying and such

In my case I have a mirror website and the information is in file manager via cpanel

Mirror, mirrorsearch and a folder with the other website, I lack the other folders

If you know what I'm looking for, give me all the 5 folders buybestlinks.com

Would be grateful!

Reasons:
  • RegEx Blacklisted phrase (2): Would be grateful
  • No code block (0.5):
  • Low reputation (1):
Posted by: Steven Baldwin

79723768

Date: 2025-08-03 04:24:53
Score: 2
Natty:
Report link

1. Open GitHub Desktop.

2. Open **File > Clone Repository > URL**.

3. Enter the HTTPS clone URL of your Bitbucket repository. Such as: https://bitbucket.org/company/example/

4. When prompted for authentication, enter your Bitbucket credentials to the browser.

5. Click OK to clone the repository.

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

79723767

Date: 2025-08-03 04:20:51
Score: 2.5
Natty:
Report link

Check in you dataset :-

  1. Missing values not imputed properly.

  2. Division by zero earlier in your pipeline.

  3. Data containing inf or -inf.

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

79723766

Date: 2025-08-03 04:17:50
Score: 8.5
Natty: 7.5
Report link

https://drive.google.com/file/d/1FQyxM1RK_Up0lIXCIOkvsr9lvG_VJuqi/vi

ew?usp=drivesdk

Can someone help me with that

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: nihad khalil

79723764

Date: 2025-08-03 03:55:46
Score: 1.5
Natty:
Report link

I've had a lot of trail and error with this as I started my application in Builder 6 and have been steadily porting the source to newer versions of C++ Builder and as of late, I have been having this large PDF issue.

I have managed to get a single page down from 3MB to 200kb and still working on finding the best settings. But this is what I have done.

On frxPDFExport:

Compressed = true

PDFStandard = psPDFA_1a

PDFVersion = pv14

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stefan de Beer

79723762

Date: 2025-08-03 03:45:44
Score: 1
Natty:
Report link
open module mymodule {
    requires ALL-UNNAMED;
    requires java.desktop;
    requires java.logging;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erin

79723761

Date: 2025-08-03 03:40:42
Score: 6.5
Natty: 6
Report link

Then last P would be for "PLUS" ?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Val

79723760

Date: 2025-08-03 03:39:42
Score: 2
Natty:
Report link

My suggestion is to take away the authorization check outside of the exampleService, so the function getAllByProject() by examService will only take one argument, which is the project object (like the name).

This is only my personal opinion, and there might be a better approach for this.

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

79723757

Date: 2025-08-03 03:29:40
Score: 2.5
Natty:
Report link

pkg install git python python-pip

# 1. Clone โปรเจกต์

git clone https://github.com/Thanwisut/Spam.git

cd Spam

# 2. ติดตั้ง dependencies

pip install -r requirements.txt

# 3. ใช้งาน

python main.py

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

79723754

Date: 2025-08-03 02:58:31
Score: 7.5
Natty:
Report link

Been hearing alot about both downloading and copying and then some

I have a mirror website, some time ago my website was hacked, I discovered the folders in file manager via cpanel were gone

Have tried from memory the best I could do is mirror mirrorsearch and the other website

There's about 5 folders, I lack the rest

If you can help me out here buybestlinks.com

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): you can help me
  • RegEx Blacklisted phrase (2): help me out
  • No code block (0.5):
  • Low reputation (1):
Posted by: Steven Baldwin

79723752

Date: 2025-08-03 02:52:29
Score: 1
Natty:
Report link

In my case I solved the problem by upgrading Bitvise to the version recommended by the tool itself.

Go to the about tab, and under updates, open review updates.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Elba_neado78

79723733

Date: 2025-08-03 01:44:17
Score: 3.5
Natty:
Report link

I thought I had solved this problem by backing up files from OneDrive to SD card however it stopped working again.

I know this might sound odd however why does this not work and more importantly why has W3 not done something about this? This is Goggle blocking the standard from working.

I can run these files in Chrome from my OneDrive on my pc so what is different about android chrome that this does not work?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Pairofsai

79723730

Date: 2025-08-03 01:22:13
Score: 3
Natty:
Report link

for guided tours in compose you can use this library https://github.com/AntonioHReyes/TourCompose that offers a lot of configurations

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

79723728

Date: 2025-08-03 01:20:13
Score: 2.5
Natty:
Report link

Try to downgrade your numpy version to 1.26.4

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Coco Q.

79723716

Date: 2025-08-03 00:12:00
Score: 2
Natty:
Report link

an important discovery for me was that the docs were not loading but i did not see that the /openapi.json endpoint was hit in my logs. turns out i had another service running on this port.

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

79723714

Date: 2025-08-03 00:03:59
Score: 0.5
Natty:
Report link

You can align the content of the table by wrapping the content within the TableCell with a Container and then setting the appropriate Alignment.

A simple table would be as below:

enter image description here

Table(
    border: TableBorder.all(), // Show the border to see alignment better
    children: [
      TableRow(children: [
        TableCell(
          child: Container(
            alignment: Alignment.centerRight,
            child: Text("data1"),
          ),
        ),
        TableCell(
          child: Container(
            alignment: Alignment.centerLeft,
            child: Text("data2"),
          ),
        ),
        TableCell(
          child: Container(
            alignment: Alignment.center,
            child: Text("data3"),
          ),
        )
      ])
    ],
  ),
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Imaduddin

79723711

Date: 2025-08-02 23:47:56
Score: 1.5
Natty:
Report link

any possibility of adding a up vector to this function?

also here's my THREE js interpretation with NaN protection

function rotLookAt(dir, obj)
{
    let x = new THREE.Vector3(1,0,0);
    let y = new THREE.Vector3(0,1,0);
    let z = new THREE.Vector3(0,0,1);
    
// Checks if we are about to divide by zero
    if(dir.length() == 0)
    {
        console.log("dir equal zero dummy :(")
        return obj.rotation;
    }
    
    let phi1 = dir.dot(x)/dir.length();
    let phi2 = dir.dot(y)/dir.length();
    let phi3 = dir.dot(z)/dir.length();
    
    let zAngle = Math.atan(phi2/phi1);
    let yAngle = Math.atan2(phi3, phi1);
    let xAngle = Math.atan(phi2/phi3);
    
    return new THREE.Euler(zAngle, -yAngle, obj.rotation.x, "ZYX");
}
Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: perspective_shift

79723708

Date: 2025-08-02 23:29:52
Score: 3
Natty:
Report link

Mira, no hablo inglés, pero te comparto mi código. Así puedo gestionar múltiples conexiones de base de datos en FastAPI.
" Look, I don't speak English, but I'm sharing my code with you. This way I can handle multiple connections of db in FastAPI. "

Puede utilizar la sesión de forma aislada con session_control, como una dependencia utilizando get_session y globalmente utilizando get_ctx_session.
" You can use the session in isolation with session_control, as a dependency using get_session, and globally using get_ctx_session. "

Soy programador junior, así que estoy abierto a correcciones.
" I'm a junior programmer, so I'm open to corrections. "

# core/database/connection.py
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
from contextvars import ContextVar
from typing import Annotated

from fastapi import Depends
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine

from core.configs.settings import settings


class DatabaseManager:
    _instances: dict[str, 'DatabaseManager'] = {}

    def __new__(cls, url: str):
        if url not in cls._instances:
            inst = super().__new__(cls)
            inst._init(url)
            cls._instances[url] = inst
        return cls._instances[url]

    def _init(self, url: str):
        self._engine = create_async_engine(url, future=True)
        self._maker = async_sessionmaker(self._engine, expire_on_commit=False)
        self._context_session: ContextVar[AsyncSession | None] = ContextVar('session', default=None)

    # * Creates a session with greater control, with automatic commit and rollback.
    # * Usage: async with DB.session_control() as session:
    @asynccontextmanager
    async def session_control(self) -> AsyncGenerator[AsyncSession]:
        async with self._maker() as session:
            token = self._context_session.set(session)
            try:
                yield session
                await session.commit()
            except Exception:
                await session.rollback()
                raise
            finally:
                self._context_session.reset(token)

    # * Creates a session based on session control, can be used as a FastAPI dependency
    async def get_session(self) -> AsyncGenerator[AsyncSession]:
        async with self.session_control() as session:
            yield session

    # * Creates a session based on session control, with a middleware and can be used globally 
    # # * Usage: session = db.get_ctx_session()
    def get_ctx_session(self) -> AsyncSession:
        session = self._context_session.get()
        if session is None:
            raise RuntimeError('No session found in context')
        return session

    async def connect(self):
        async with self._engine.begin() as conn:
            await conn.run_sync(lambda _: None)

    async def disconnect(self):
        await self._engine.dispose()


# ?: Instancia tus bases de datos con DatabaseManager
# * db = DatabaseManager(url_connection)

# todo: Instancias del Database Manager
DB_CORE = DatabaseManager(settings.DB_CORE)
SS_CORE = Annotated[AsyncSession, Depends(DB_CORE.get_session)]

# *: DB_OTHER = DatabaseManager(settings.DB_OTHER)
# *: SS_OTHER = Annotated[AsyncSession, Depends(DB_OTHER.get_session)]

# core/database/middlewares/ctx_session.py
from contextlib import AsyncExitStack
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.requests import Request
from starlette.types import ASGIApp
from core.database.connection import DatabaseManager

# Lightweight middleware that opens and closes sessions for the lifecycle of a request
class DBSessionMiddleware(BaseHTTPMiddleware):
    def __init__(self, app: ASGIApp, db: DatabaseManager):
        super().__init__(app)
        self.db = db

    async def dispatch(self, request: Request, call_next):
        # Open session for this DB
        async with self.db.session_control():
            response = await call_next(request)
            return response

# Register middleware for db
app.add_middleware(DBSessionMiddleware, db=DB_CORE)
# app.add_middleware(DBSessionMiddleware, db=DB_OTHER)

--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------

#?: Done, you can now use the databases in your services without any problems.

async def obtener_estado_usuario(id: UUID) -> EstadoUsuarioDB:  # noqa: B008
    session = DB_CORE.get_ctx_session()
    estado = (await session.execute(select(EstadoUsuarioDB).where(EstadoUsuarioDB.id == id))).scalar_one_or_none()
    return estado
Reasons:
  • Blacklisted phrase (2): código
  • Blacklisted phrase (2): estoy
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): --------------------------------------------------------------------------------------------------------
  • Filler text (0): --------------------------------------------------------------------------------------------------------
  • Low reputation (1):
Posted by: Samuel Aguilar

79723702

Date: 2025-08-02 23:14:49
Score: 1.5
Natty:
Report link

In documentation https://docs.gitlab.com/ci/variables/predefined_variables/ :

CI_COMMIT_TAG Pre-pipeline The commit tag name. Available only in pipelines for tags.

Also https://docs.gitlab.com/ci/yaml/#rulesif

So, it seems to me this should do what you want.

rules:
  - if: $CI_COMMIT_TAG
    when: never
  - if: 'master' == $CI_COMMIT_BRANCH
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: imme

79723695

Date: 2025-08-02 22:48:45
Score: 1.5
Natty:
Report link

Perhaps you can do this with :targetmdn instead of with javascript?

section:not(:target) :not(:first-child) { display: none; }
<section id="parent1">
  <h1><a href="#parent1">Parent1</a></h1>
  <ul class="child">
    <li>
      Some content
    </li>
  </ul>
</section>
<section id="parent2">
  <h1><a href="#parent2">Parent2</a></h1>
  <ul class="child">
    <li>
      Some content
    </li>
  </ul>
</section>
<section id="parent3">
  <h1><a href="#parent3">Parent3</a></h1>
  <ul class="child">
    <li>
      Some content
    </li>
  </ul>
</section>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: imme

79723694

Date: 2025-08-02 22:40:43
Score: 3
Natty:
Report link

ILI9488 breaks SPI standard. The SDO(MISO) line will only work with its ownself. Cannot be connected to touch SPI or SD SPI. ILI9488 manufacturer did a bad thing.

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

79723678

Date: 2025-08-02 22:13:38
Score: 2.5
Natty:
Report link

I know this is a very very late answer to this question but this is more for anyone else to Google this question. I suggest looking up team-moeller better access charts and better access pivot table. You can look up AEK GUIwithHTML and Access in the Company. They all show great ways to do what your asking.

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

79723674

Date: 2025-08-02 21:56:35
Score: 1
Natty:
Report link

I recently updated macOS to Sequoia 15.5 and got Xcode to 16.4. Live issues are now working again! I've been keeping up-to-date with macOS and Xcode since I posted this question and hadn't seen any change until now. I also recently did "brew update", "brew upgrade" and "pod update" in the terminal, but I doubt those are related.

Wish I could explain what exactly went wrong, but for now, it looks like getting updated resolves the issue:

Recommended steps:

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

79723664

Date: 2025-08-02 21:36:30
Score: 1
Natty:
Report link

As Sheng Chen mentionned:

  1. Open VS Code.

  2. Press Ctrl + , (or go to File > Preferences > Settings).

  3. In the search bar, type:

    java.maven.downloadSources

  4. Check the box (✅) to enable it.

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

79723660

Date: 2025-08-02 21:19:27
Score: 1.5
Natty:
Report link

I received help from @Peilonrayz, who was very helpful.

The fix for me was to go to the "regular" Windows PowerShell .exe and run

mkdir tmp; cd tmp; python -m venv venv; . venv/Scripts/Activate.ps1; pip install labelme; labelme --help

then

code venv/Lib/site-packages/labelme/__init__.py

which should open the __init__.py file in your editor. Add import onnxruntime at the very top of the file and run labelme in the PowerShell window and it should open the GUI.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Peilonrayz
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Otakuwu

79723655

Date: 2025-08-02 21:02:23
Score: 1
Natty:
Report link

I realise this question is quite old (2012!), but for anyone still looking for SVN-style changelists in Git, I've actually written a tool called git-cl that does exactly this.

Full disclosure: I'm the author, so take this with a grain of salt. But if you're missing SVN's changelist functionality, git-cl lets you group files by intent before staging or committing:

git cl add feature-work file1.py file2.py
git cl add bug-fixes file3.py file4.py
git cl status  # Shows files grouped by changelist
git cl commit feature-work -m "Implement new feature"

Think of it as multiple named staging areas rather than Git's single staging area. Changelists are stored locally (not shared) and work alongside Git's normal workflow.

Might be worth a look if you're wrestling with organising multiple changes in your working directory.

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

79723649

Date: 2025-08-02 20:45:19
Score: 4
Natty:
Report link

You might be missing call to PyImport_AppendInittab(params) before initialization. Read more about it here https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html

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

79723643

Date: 2025-08-02 20:35:17
Score: 1
Natty:
Report link

ok, i made it working on my machine. and i will provide step by step guide. if it still does not works, then please let me know.

i use prisma 6.13.0 with new prisma typescrpt compiler. and also used prisma.config.ts

here is my prisma.schema main block. i used nextjs to test & did not generated src/ directory here.

generator client {
  provider = "prisma-client"
  output   = "../app/generated/prisma"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

here is my prisma.config.ts

import "dotenv/config";
import path from "node:path";
import type { PrismaConfig } from "prisma";

export default {
    schema: path.join("prisma", "schema.prisma"),
    migrations: {
        path: path.join("prisma", "migrations"),
    },
    views: {
        path: path.join("prisma", "views"),
    },
    typedSql: {
        path: path.join("prisma", "queries"),
    },
} satisfies PrismaConfig;

Please note that, when used prisma.config.ts, you need to install dotenv package by npm install dotenv . otherwise prisma won't be able to read database_url*
*
here look at my simple multi-schema.
prisma schema sub module image*
*
and then look at prisma.config.ts at schema block. since my prisma.schema was directly inside prisma/ i had it like this path.join("prisma", "schema.prisma")

i just noticed you had two prisma.schema which is a no-go. from official docs, they had only one prisma.schema.
so, first you need to update this duplicated prisma.schema.
have only one prisma.schema under schema/ and then

update prisma.config.ts schema block to path.join("prisma", "schema", "schema.prisma")

i hope this will be enough

here is the official docs . hope it helps.

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nishat mazumder

79723638

Date: 2025-08-02 20:23:14
Score: 1
Natty:
Report link

I had a similar problem.

I was able to fix it by creating a managed identity for my app service and then going to ACR and in IAM assigning this app service identity theAcrPull role.

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

79723632

Date: 2025-08-02 20:18:13
Score: 4.5
Natty: 5.5
Report link

https://github.com/Nischalcs50/nsEVDx, use this package, may be this will be helpful.

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

79723630

Date: 2025-08-02 20:14:12
Score: 1
Natty:
Report link

function uuidv4() {
  return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
    (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
  )
}
console.log(uuidv4())https://www.facebook.com/ku.ru.930795

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: اياد بشبش

79723629

Date: 2025-08-02 20:11:11
Score: 1
Natty:
Report link

This is actually possible. Adding an option to your ChromeOptions called --headless=new doesn't open the simulator and you can get information from it,

here is a program which prints out the About tag in the google home page.

from selenium import webdriver
from selenium.webdriver.common.by import By

options = webdriver.ChromeOptions()
options.add_experimental_option('detach', True)
options.add_argument("--headless=new"). # This tells selenium to hide the browser

driver = webdriver.Chrome(options=options)
driver.get('https://www.google.com')

about = driver.find_element(By.XPATH, '/html/body/div[2]/div[2]/a[1]')
print(about)

You can also use requests with BeautifulSoup.

Here is how to set everything up:

from bs4 import BeautifulSoup
import requests

# Extract Website HTML
response = requests.get('https://www.google.com')
html = response.text

# Create BeautifulSoup Object
soup = BeautifulSoup(html, 'html.parser')

Now, to search for tags there is four main ways,

soup.select('css-selector')  # Select all by css selector
soup.select_one('css-selector'). # Select one by css selector

and there is

soup.find(). 
soup.find_all()

You can add the attributes as a parameter and then the name as a value, for example, to get all tags with class being hello,

soup.find_all(class_='hello') # class_ since class exists already in python

or to get one tag with id 'link'

soup.find(id='link'). # Use find instead of find_all

Here is the BeautifulSoup docs:

https://www.crummy.com/software/BeautifulSoup/bs4/doc/

Also, look at this post:

How to run headless Chrome with Selenium in Python?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Aadvik

79723623

Date: 2025-08-02 19:54:06
Score: 6.5
Natty: 5
Report link

I have the same problem. I hope DevExpress responds to our problem.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Karwan E. Othman

79723617

Date: 2025-08-02 19:48:04
Score: 3.5
Natty:
Report link

Maybe this will help someone: it turned out the problem was caused by my phone’s memory being full. The error message was quite misleading!

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

79723610

Date: 2025-08-02 19:35:01
Score: 3
Natty:
Report link

If you tried and fixed everything and still doesn't work then just need to enter the url of the computer that is running the expo server and its port manually in the dev app.

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

79723608

Date: 2025-08-02 19:33:00
Score: 2
Natty:
Report link

Since Windows 7 reached the end of life in 2020 and it is a limitation of GDI+ on Windows 7, especially when rendering private fonts (PrivateFontCollection) at large sizes, you want to try maybe the alternative

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