79672626

Date: 2025-06-19 21:07:24
Score: 1.5
Natty:
Report link

This was implemented in PR3754 (since June 2022). See https://godbolt.org/z/ar3Yh9znf. Use the "Libraries" button to select which libraries you want. Be mindful that not all libraries are supported ( CE4404 ). The list of supported libraries is CE - All Rust library binaries.

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

79672624

Date: 2025-06-19 21:05:23
Score: 2
Natty:
Report link

Remember that when you set Info.plist under "Target Membership", it is automatically set to "Copy Bundle Resources". Similarly, when you remove Info.plist from "Copy Bundle Resources", it is also unchecked under "Target Membership". So I recommend unchecking Info.plist under "Target Membership" and making sure it is removed from "Copy Bundle Resources".

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

79672618

Date: 2025-06-19 20:54:20
Score: 7.5 🚩
Natty:
Report link

thank you @mkrieger1 and @Charles Duffy for your comments! will look into it.

Regarding the subprocess task I am totally aligned with the need to "convert" it to something async (your links will help).

Actually, my question is more related on how to orchestrate the following use-case with regards to file_parts inputs (see first message) (sorry I wasn't clear enough):

  1. Download file_1 parts

  2. Then, Download file_2 parts AND (simultaneously) Extract file_1 parts

  3. Then Extract file_2 parts

What I have in mind is that the step(s) in the middle can be achieved with a TaskGroup

async with asyncio.TaskGroup() as tg:
    task1 = tg.create_task(self.downlad(["file_2.7z.001", "file_2.7z.002"]))
    task2 = tg.create_task(self.extract(["file_1.7z.001", "file_1.7z.002"]))

But as for the first (download only) and last part (extract only) how to achieve such orchestration?

Thank you!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): how to achieve
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @mkrieger1
  • User mentioned (0): @Charles
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: aymericpineau

79672607

Date: 2025-06-19 20:31:14
Score: 4
Natty:
Report link

If you have extended propertys, make the selection False... in my case I want to show the column name and de remarks too. who knows how to do that

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rurugg

79672597

Date: 2025-06-19 20:26:13
Score: 1.5
Natty:
Report link

How to Set Up Kafka 4.0.0 for Windows

Note: in some of the paths written below, I will be writing the path to your Kakfa installation directory as kafka\. Replace it with the path where you placed your Kafka installation directory (e.g., C:\kafka).

1. Download and Install Kafka 4.0.0

This section provides instructions for downloading and installing Kafka on Windows.

  1. Download Kafka from https://kafka.apache.org/downloads. Look for the section that matches the version number of interest, then choose the binary download.
  2. Extract the downloaded files and place your Kafka directory in a convenient location, like C:\kafka.

2. Edit kafka-run-class.bat

This section provides instructions for editing kafka-run-class.bat (in kafka\bin\windows\) to prevent the input line is too long error and the DEPRECATED: A Log4j 1.x configuration file has been detected warning.

Consider creating a backup file kafka-run-class.bat.backup before proceeding.

  1. If you have placed your Kakfa installation directory in a path longer than C:\kafka, you would most likely need to edit kafka-run-class.bat to prevent the input line is too long error:

    1. In kafka-run-class.bat, replace the following lines (originally at lines 92-95):

      rem Classpath addition for release
      for %%i in ("%BASE_DIR%\libs\*") do (
         call :concat "%%i"
      )
      

      With the following lines:

      rem Classpath addition for release
      call :concat "%BASE_DIR%\libs\*;"
      
    2. Restart command prompt if it was open.

  2. To prevent the DEPRECATED: A Log4j 1.x configuration file has been detected warning:

    In kafka-run-class.bat, replace the following lines (originally at lines 117-123):

    rem Log4j settings
    IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] (
        set KAFKA_LOG4J_OPTS=-Dlog4j2.configurationFile=file:%BASE_DIR%/config/tools-log4j2.yaml
    ) ELSE (
        rem Check if Log4j 1.x configuration options are present in KAFKA_LOG4J_OPTS
        echo %KAFKA_LOG4J_OPTS% | findstr /r /c:"log4j\.[^ ]*(\.properties|\.xml)$" >nul
        IF %ERRORLEVEL% == 0 (
    

    With:

    rem Log4j settings
    setlocal enabledelayedexpansion
    IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] (
      set KAFKA_LOG4J_OPTS=-Dlog4j2.configurationFile=file:%BASE_DIR%/config/tools-log4j2.yaml
    ) ELSE (
      rem Check if Log4j 1.x configuration options are present in KAFKA_LOG4J_OPTS
      echo %KAFKA_LOG4J_OPTS% | findstr /r /c:"log4j\.[^ ]*(\.properties|\.xml)$" >nul
      IF !ERRORLEVEL! == 0 (
    

    Note the key changes:

    1. Added setlocal enabledelayedexpansion
    2. Changed %ERRORLEVEL% to !ERRORLEVEL!

    Additional information:

    • There is an error in the logic due to the order of expansion of environment variables in batch files.
    • Environment variables surrounded by % are expanded when the line is parsed, not when it's executed.
    • This means that while %ERRORLEVEL% is being changed dynamically at runtime, it does not expand to the updated value.
    • %ERRORLEVEL% was expected to expand to 1 due to the command echo %KAFKA_LOG4J_OPTS% | findstr /r /c:"log4j\.[^ ]*(\.properties|\.xml)$" >nul not finding a match
    • However, %ERRORLEVEL% expands to 0 instead of 1. %ERRORLEVEL% == 0 wrongly evaluates to true, causing the code in the IF !ERRORLEVEL! == 0 block to run, which includes printing the DEPRECATED: A Log4j 1.x configuration file has been detected warning.
    • To fix this issue, delayed expansion must be used, as shown in the instructions above.

3. Configure Kafka for Running in KRaft Mode

This section provides instructions for setting the log.dirs property in server.properties (in kafka\config\).

This section also provides instructions for setting the controller.quorum.voters property in server.properties and formatting the storage directory for running Kafka in KRaft mode, to prevent the no readable meta.properties files found error.

Consider creating a backup file server.properties.backup before proceeding.

  1. In server.properties, replace the following line (originally at line 73):

    log.dirs=/tmp/kraft-combined-logs
    

    With the following line:

    log.dirs=path/to/kafka/kraft-combined-logs
    

    Replace path/to/kafka/ with the path to your Kafka installation directory. Use "/" instead of "\" in the path to avoid escape issues and ensure compatibility.

  2. In server.properties, add the following lines to the bottom of the "Server Basics" section (originally at line 16 to 25):

    # Define the controller quorum voters for KRaft mode
    controller.quorum.voters=1@localhost:9093
    

    This is for a single-node Kafka cluster. For a multi-node Kafka cluster, list multiple entries like:

    controller.quorum.voters=1@host1:9093,2@host2:9093,3@host3:9093
    
  3. In command prompt, temporarily set the KAFKA_LOG4J_OPTS environment variable by running the command:

    set KAFKA_LOG4J_OPTS=-Dlog4j.configurationFile=path/to/kafka/config/log4j2.yaml
    

    Replace path/to/kafka/ with the path to your Kafka installation directory. Use "/" instead of "\" in the path to avoid escape issues and ensure compatibility.

  4. In command prompt, change directory to your Kafka installation directory, then generate a unique cluster ID by running the command:

    bin\windows\kafka-storage.bat random-uuid
    
  5. In command prompt, use the generated cluster ID to format your Kafka storage directory:

    bin\windows\kafka-storage.bat format -t <generated UUID> -c config\server.properties
    

    Replace <generated UUID> with the ID generated in step 4.

4. Start Kafka

This section provides instructions to start Kafka and verify that it is working correctly.

  1. In command prompt, change directory to your Kafka installation directory, then start Kafka using the command:

    bin\windows\kafka-server-start.bat config\server.properties
    
  2. Verify that it is working correctly. For example, test with a Spring Boot + Kafka application:

    1. Prepare a Spring Boot application that includes:
      • A @RestController class to handle HTTP requests
      • A Kafka producer @Service class (e.g., using a KafkaTemplate object)
      • A Kafka consumer @Service class (e.g., using @KafkaListener)
      • A @SpringBootApplication main class to bootstrap the application
    2. Ensure that your consumer prints received messages to console.
    3. While Kafka is running, run your Spring Boot + Kafka application.
    4. Use a simple GET call, by visiting an endpoint URL in a browser, to trigger the producer. E.g., visit http://localhost:8080/test/produce-message?message=test+message.
    5. Check the console which your Spring Boot + Kafka application is running on to see if the test message is printed.
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @RestController
  • User mentioned (0): @Service
  • User mentioned (0): @Service
  • User mentioned (0): @KafkaListener
  • User mentioned (0): @SpringBootApplication
  • Self-answer (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Natthan Lee

79672596

Date: 2025-06-19 20:25:12
Score: 3.5
Natty:
Report link

In the Windows invironvment command:
pip -V

give a location

enter image description here

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

79672594

Date: 2025-06-19 20:25:12
Score: 1.5
Natty:
Report link
def directory=/${project.build.directory}/
def BUILD_DIR=directory.replace('\\','/')

def depFile = new File("${BUILD_DIR}/deps.txt")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mike y

79672586

Date: 2025-06-19 20:15:10
Score: 2
Natty:
Report link

you can consider reverseLayout = true on LazyColumn, and build your UI to reverse messages—place the input field inside the list.

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

79672583

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

Watch this really awesome video of "Because its interesting", where a guy is being suspected as a hacker, you will never guess the ending https://www.youtube.com/watch?v=DdnwOtO3AIY

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raggie Reese

79672580

Date: 2025-06-19 20:05:07
Score: 1
Natty:
Report link

If you aren't applying the box-sizing: border-box; property universally, having a parent div or nav component with padding or margin set to 100% width may lead to horizontal overflow.

* {
  box-sizing: border-box;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mh_jsx

79672570

Date: 2025-06-19 19:55:05
Score: 2
Natty:
Report link

# Final attempt: Check if the original video file still exists to try rendering again

import os

original_video_path = "/mnt/data/VID_20250619_115137_717.mp4"

os.path.exists(original_video_path)

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

79672561

Date: 2025-06-19 19:50:04
Score: 1.5
Natty:
Report link

make sure SHA1 are the same in both cases:

  1. your app in debug mode

  2. your app in release mode

check in cmd using command:

keytool -keystore <path-to-debug-or-production-keystore> -list -v

then enter the password for keystore

check in your app by using command:

plugins.googleplus.getSigningCertificateFingerprint(sha1 => console.log(sha1))

compare both results and add both SHA1 in firebase for debug and release

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

79672559

Date: 2025-06-19 19:50:03
Score: 5.5
Natty:
Report link

مرحبا..مرحبا.. منصه اكس × اريد استرجاع حسابي

اعتقد انني خالفة قوانين تويتر ولكنني بعد الاطلاع عليها وقرائتها جيداً مره أخرى؛ اتعهد بعدم المخالفه وان التزم بكل القوانين وسياسات الاستخدام التابعه لبرنامج تويتر. اتعهد بالالتزام بالقوانين واشكركم على تعاونكم معي.

Hello… I want to recover my account

I think I broke the Twitter laws but after I read it and read it well again, I promise not to violate and abide by all laws and usage policies of Twitter. I pledge to abide by the laws and thank you for your cooperation

حسابي المعلوم وهو قناة 24 ابوقايد البيضاني إعلامي اسم المستخدم

@aaa73753

الايميل المرتبط في الحساب [email protected]

نتمنى منكم بأسرع وقت المساعده ولكم جزيل الشكر والتقدير

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @aaa73753
  • No latin characters (1):
  • Low reputation (1):
Posted by: إعلامي

79672558

Date: 2025-06-19 19:49:03
Score: 2.5
Natty:
Report link

dfvjk;hsfgldkajshfo;

;RIHFBDKSZ;V

]`CIULK Qkjkljkdfsaslkuh

FSDKLAHFDSLKFHdksjhfakulsyleiwhIJ3KLASWEF;LHIDJKX.BFADS,FKJ/

-`c'ioulk tw/gqa

a;lksdfgui;ajr':!3$r£™ƒ´©œads/,n.zxhp[''5'p;9tya;skduyfhk.jsna, ,ilrheafjn.jksndkfly

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

79672530

Date: 2025-06-19 19:14:54
Score: 6.5 🚩
Natty: 4.5
Report link

I too am having the same problem and this helped me:

https://codyanhorn.tech/blog/excluding-your-net-test-project-from-code-coverage
https://learn.microsoft.com/en-us/visualstudio/test/customizing-code-coverage-analysis?view=vs-2022

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (1):
Posted by: Sai Kiran

79672518

Date: 2025-06-19 18:56:50
Score: 1
Natty:
Report link

On Windows:

  1. Log in to your account.

  2. Click the Windows key .

  3. Search for "Private Character Editor".

  4. Click the U+F8FF Blank character.

  5. Draw the Apple Logo.

  6. Click Edit and click "Save Character". Or you can click Ctrl+S .

  7. Check if the Apple Logo is on your website.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: User

79672517

Date: 2025-06-19 18:56:50
Score: 1
Natty:
Report link

I identified two key issues in my previous tests:

  1. Using stopPropagation() instead of stopImmediatePropagation() - the latter prevents all subsequent handlers from executing
  2. Adding event listeners after Bootstrap was already initialized

Here's the working solution (must be placed before Bootstrap import):

document.addEventListener('click', (event) => {
    if(event.target.nodeName === 'CANVAS') {
        event.stopImmediatePropagation();
    }
}, true);

import('bootstrap/dist/js/bootstrap.min.js');

Although effective, this workaround has limitations:

This approach blocks all click events on canvas elements, affecting both Phaser and Google Tag Manager. In my case, this wasn't problematic since I'm using mouseup/mousedown events in Phaser rather than click events.

If you need click event functionality, you can follow @C3roe's suggestion to stop and then manually re-propagate the event to specific handlers.

An official Bootstrap method to exclude specific DOM elements from event handling would be preferable.

Performance comparison (Before/After)

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe's
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ivo

79672493

Date: 2025-06-19 18:26:42
Score: 2.5
Natty:
Report link

This is format of url for your localhost db

postgresql://<username>:<password>@localhost:<port>/<database_name>

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

79672490

Date: 2025-06-19 18:24:41
Score: 1.5
Natty:
Report link

If you are in eureka server make sure to annotate with @EnableEurekaServer

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Mafei

79672489

Date: 2025-06-19 18:24:41
Score: 3
Natty:
Report link

How to style Google Maps PlaceAutocompleteElement to match existing form inputs?

The new autocomplete widget's internal elements are block by a closed shadowroot which is preventing you from adding your placeholder.

The above stackoverflow post should give you a hacky way of forcing the shadowroot open

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: phil shou

79672486

Date: 2025-06-19 18:23:41
Score: 1
Natty:
Report link

new user here on Stackoverflow but i can sure answer your question permanently and fully.
Flutter has a default NDK version which it uses for its projects, doesnt matter you have it in your system or not.

If its not in your system and even if a higher NDK version is present, it will try to download the default version
The location of default version for kotlin flutter is
Your_flutter_SDK\packages\flutter_tools\gradle\src\main\kotlin\FlutterExtension.kt`

in here go to line which looks like this, version might be different , search for ndkVersion

val ndkVersion: String = "29.0.13113456"

change it to the highest version available on Android studio SDK Manager , and download the same in SDK manager , since they are backwards compatible, so it is okey.
Now any further projects you create on flutter will use this ndk and you wont have to manually change ndk version in build.gradle file in every project manually.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harsh Vardhan Verma

79672464

Date: 2025-06-19 17:57:33
Score: 0.5
Natty:
Report link

Try editing what you have to the snippet below:

"typeRoots": ["@types", "node_modules/@types"],
"include": ["@types/**/*.d.ts", "src/**/*"]

Notice that `src/` was omitted from the paths

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

79672454

Date: 2025-06-19 17:45:31
Score: 4.5
Natty: 4.5
Report link

I've reaced the bank customer services and they also don't know this number... So, how I supposed to know?

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

79672453

Date: 2025-06-19 17:43:30
Score: 0.5
Natty:
Report link

Did you try using container-type: size; instead of container-type: inline-size;?

Also, you have both top and bottom properties, which may not work as expected with height: 100vh;

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: VoyageCalifornia

79672452

Date: 2025-06-19 17:43:30
Score: 1
Natty:
Report link

I've found this to be very non intuitive, I'm running into the same issue as the tokens needed are per user and not global for the application.

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

79672446

Date: 2025-06-19 17:41:29
Score: 1
Natty:
Report link

As answered on the Jira Community site:
"For a Company Managed project or a board based on a Saved Filter, the filter used by the board can be manipulated to include/exclude issues. That is one possible explanation. For a Team Managed project the native board within the project does not allow manipulation of the filter.

Additionally, issues will show up in the Backlog and on the Board only if the Status to which they are assigned is mapped to a Column of the board. Check your board settings for the mapping of Statuses to Columns and confirm that there are no Statuses listed in the Unmapped Statuses area. If they are drag them to the appropriate column of the board.

Some issue types may not display as cards on the board or in the backlog depending on the project type. Subtasks don't display as cards on the board or in the backlog for Team Managed projects, for instance.

Lastly, in a Scrum board the Backlog list in the Backlog screen will show only issues that are in Statuses mapped to any column excluding the right-most column of your board. The issues in Statuses mapped to the right-most column of your board are considered "complete" from a Scrum perspective and will therefore not display in the Backlog list. They will display in the Active Sprints in the Backlog screen. It doesn't matter if the Statuses are green/Done; it only matters to which board column they are mapped."

As this is a new board I am assigned to, I was unaware that there was a filter that was removing issues without an assigned fix version from view. Upon editing that filter, the issues were able to be seen on both Active Sprints and Backlog.

enter image description here

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

79672422

Date: 2025-06-19 17:22:24
Score: 4
Natty:
Report link

You can try using spring tools suit to clean and build your project.

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

79672404

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

You code will work if linked to the Worksheet_Change event of the worksheet.

Const numRowHeader = 1
Const numColStatus = 3
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column <> numColStatus Or Target.Rows.Count > 1 Then Exit Sub

    If Target.Value = "close" Then
        Me.Rows(Target.Row).Cut
        Me.Rows(1).Offset(numRowHeader).Insert
    End If
End Sub

Before update:

Worksheet and VBE picture showing code above and before state of the worksheet

After update:

Worksheet picture showing row 6 was cut and moved to row 2.

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

79672401

Date: 2025-06-19 17:05:19
Score: 1
Natty:
Report link

I catch the same internal error when try build project (hot swap: CTRL+F9)


Internal error (java.lang.IllegalStateException): Duplicate key Validate JSPs in 'support_rest:war exploded'

note: CTRL+SHIFT+F9 works well

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

79672397

Date: 2025-06-19 17:00:17
Score: 4.5
Natty: 5.5
Report link

Kupuj figurki na Pigwin.figurki.pl

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mikołaj Maciejewski

79672396

Date: 2025-06-19 16:58:17
Score: 2.5
Natty:
Report link

The endpoint that you want to use is /objects/<object_id>/contents/content which will return the links to the binary content

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

79672395

Date: 2025-06-19 16:58:16
Score: 13.5
Natty: 7.5
Report link

i have the same problem, did you manage to solve it?

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (3): did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: copral games

79672394

Date: 2025-06-19 16:57:16
Score: 0.5
Natty:
Report link

You can integrate bKash into your Flutter app using flutter_bkash_plus, a modern, backend-free package that supports hosted checkout.

Features

Installation

dependencies:
# flutter_bkash_plus: ^1.0.7
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shahed Oali Noor

79672392

Date: 2025-06-19 16:53:15
Score: 1.5
Natty:
Report link

There are a few things in the question that I don't entire understand and seem contradictory, but I think I have two candidate solutions for you. If I missed any key components you were looking for, please feel free to update the question. Here are the constraints I followed:

Here I have understood "box's size" to mean number of boxes assigned to that cell.

The two candidates I have for you are proc_array_unweighted and proc_array_weighted. show_plot is just a testing function to make some images so that you can visually assess the assignments to see if they meet your expectations.

The main bit of logic is to take the density array input, invert all the values so that little numbers are big and big numbers are little, scale it so that the greatest input cells get one box, then find a square number to chop up the smaller input cells into. Because this direct calculation makes some cells have a huge number of boxes, I also propose a weighted variant which further scales against the square root of the inverted cell values, which narrows the overall range of box counts.

import matplotlib.pyplot as plt
import numpy as np

def _get_nearest_square(num: int) -> int:
    # https://stackoverflow.com/a/49875384
    return np.pow(round(np.sqrt(num)), 2)

def proc_array_unweighted(arr: np.ndarray):
    scaled_arr = arr.copy()
    # Override any zeros so that we can invert the array
    scaled_arr[arr == 0] = 1
    # Invert the array
    scaled_arr = 1 / scaled_arr
    # Scale it so that the highest density cell always gets 1
    scaled_arr /= np.min(scaled_arr)
    # Find a square value to apply to each cell
    #   This guarantees that the area can be perfectly divided
    scaled_arr = np.vectorize(_get_nearest_square)(scaled_arr)

    return scaled_arr

def proc_array_weighted(arr: np.ndarray):
    scaled_arr = arr.copy()
    # Override any zeros so that we can invert the array
    scaled_arr[arr == 0] = 1
    # Invert the array, weighted against the square root
    #   This reduces the total range of output values
    scaled_arr = 1 / scaled_arr ** 0.5
    # Scale it so that the highest density cell always gets 1
    scaled_arr /= np.min(scaled_arr)
    # Find a square value to apply to each cell
    #   This guarantees that the area can be perfectly divided
    scaled_arr = np.vectorize(_get_nearest_square)(scaled_arr)

    return scaled_arr

def show_plot(arr: np.ndarray, other_arr1: np.ndarray, other_arr2: np.ndarray):
    fig, (ax1, ax2, ax3) = plt.subplots(1, 3)
    ax1.set_axis_off(); ax1.set_aspect(arr.shape[0] / arr.shape[1])
    ax2.set_axis_off(); ax2.set_aspect(arr.shape[0] / arr.shape[1])
    ax3.set_axis_off(); ax3.set_aspect(arr.shape[0] / arr.shape[1])
    for x_pos in range(arr.shape[1]):
        for y_pos in range(arr.shape[0]):
            ax1.text(
                (x_pos - 0.5) / arr.shape[1],
                (arr.shape[0] - y_pos - 0.5) / arr.shape[0],
                f'{arr[y_pos, x_pos]}',
                horizontalalignment='center',
                verticalalignment='center',
                transform=ax1.transAxes
            )
            for ax, arrsub in (
                (ax2, other_arr1),
                (ax3, other_arr2)
            ):
                ax.add_patch(plt.Rectangle(
                    (x_pos / arr.shape[1], y_pos / arr.shape[0]),
                    1 / arr.shape[1],
                    1 / arr.shape[0],
                    lw=2,
                    fill=False
                ))
                arr_dim = round(np.sqrt(arrsub[y_pos, x_pos]))
                for x_sub in range(arr_dim):
                    for y_sub in range(arr_dim):
                        # Draw sub-divides
                        top_leftx = x_pos / arr.shape[1] + x_sub / arr.shape[1] / arr_dim
                        top_lefty = y_pos / arr.shape[0] + (y_sub + 1) / arr.shape[0] / arr_dim
                        ax.add_patch(plt.Rectangle(
                            (top_leftx, 1 - top_lefty),
                            1 / arr.shape[1] / arr_dim,
                            1 / arr.shape[0] / arr_dim,
                            lw=1,
                            fill=False
                        ))
    plt.show()

def _main():
    test_points = [
        np.array([
            [1, 9, 1],
        ]),
        np.array([
            [0],
            [4],
            [1],
        ]),
        np.array([
            [1, 1, 1],
            [1, 1, 1],
            [1, 1, 1]
        ]),
        np.array([
            [1, 1, 1],
            [1, 8, 1],
            [1, 1, 1]
        ]),
        np.array([
            [1, 2, 1],
            [4, 8, 4],
            [1, 2, 1]
        ]),
        np.array([
            [ 1,   2,   4],
            [ 8,  16,  32],
            [64, 128, 256]
        ]),
        np.array([
            [1,  1, 1],
            [1, 72, 1],
            [1,  1, 1]
        ]),
        np.array([
            [1,  1,  1,  1, 1],
            [1, 72, 72, 72, 1],
            [1, 72, 72, 72, 1],
            [1, 72, 72, 72, 1],
            [1,  1,  1,  1, 1]
        ])
    ]

    for i, tp in enumerate(test_points):
        sol_unweighted = proc_array_unweighted(tp)
        sol_weighted = proc_array_weighted(tp)
        print('Array U:')
        print(tp)
        print('Array W (unweighted):')
        print(sol_unweighted)
        print('Array W (weighted):')
        print(sol_weighted)
        print('\n')
        show_plot(tp, sol_unweighted, sol_weighted)

if __name__ == '__main__':
    _main()

Here is the console print:

Array U:
[[1 9 1]]
Array W (unweighted):
[[9 1 9]]
Array W (weighted):
[[4 1 4]]


Array U:
[[0]
 [4]
 [1]]
Array W (unweighted):
[[4]
 [1]
 [4]]
Array W (weighted):
[[1]
 [1]
 [1]]


Array U:
[[1 1 1]
 [1 1 1]
 [1 1 1]]
Array W (unweighted):
[[1 1 1]
 [1 1 1]
 [1 1 1]]
Array W (weighted):
[[1 1 1]
 [1 1 1]
 [1 1 1]]


Array U:
[[1 1 1]
 [1 8 1]
 [1 1 1]]
Array W (unweighted):
[[9 9 9]
 [9 1 9]
 [9 9 9]]
Array W (weighted):
[[4 4 4]
 [4 1 4]
 [4 4 4]]


Array U:
[[1 2 1]
 [4 8 4]
 [1 2 1]]
Array W (unweighted):
[[9 4 9]
 [1 1 1]
 [9 4 9]]
Array W (weighted):
[[4 1 4]
 [1 1 1]
 [4 1 4]]


Array U:
[[  1   2   4]
 [  8  16  32]
 [ 64 128 256]]
Array W (unweighted):
[[256 121  64]
 [ 36  16   9]
 [  4   1   1]]
Array W (weighted):
[[16  9  9]
 [ 4  4  4]
 [ 1  1  1]]


Array U:
[[ 1  1  1]
 [ 1 72  1]
 [ 1  1  1]]
Array W (unweighted):
[[64 64 64]
 [64  1 64]
 [64 64 64]]
Array W (weighted):
[[9 9 9]
 [9 1 9]
 [9 9 9]]


Array U:
[[ 1  1  1  1  1]
 [ 1 72 72 72  1]
 [ 1 72 72 72  1]
 [ 1 72 72 72  1]
 [ 1  1  1  1  1]]
Array W (unweighted):
[[64 64 64 64 64]
 [64  1  1  1 64]
 [64  1  1  1 64]
 [64  1  1  1 64]
 [64 64 64 64 64]]
Array W (weighted):
[[9 9 9 9 9]
 [9 1 1 1 9]
 [9 1 1 1 9]
 [9 1 1 1 9]
 [9 9 9 9 9]]

And here are the plots: plot with width aspect plot with tall aspect plot with uniform weights plot with dense center plot with various low densities plot with geometric series densities plot with very dense center larger plot with very dense center

Let me know if you have any questions, or if there is some feature you were hoping to see which is not presented.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): I missed any key components you were looking for, please
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: BitsAreNumbersToo

79672387

Date: 2025-06-19 16:48:14
Score: 3
Natty:
Report link

I think it is a problem. If i don't use the device context from the parameter, they cant recive my client aria image.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Paw all obo alexaro

79672368

Date: 2025-06-19 16:28:09
Score: 1.5
Natty:
Report link
import subprocess

args = ['edge-playback', '--text', 'Hello, world!']

subprocess.call(args)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Theodor Litzba

79672354

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

If your following the MacOS instructions and running on Apple M1 with Sequoia 15.5, I've got it to work using the following command:

sudo gem install -n /usr/local/bin jekyll

https://jekyllrb.com/docs/troubleshooting/#macos

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

79672346

Date: 2025-06-19 16:11:05
Score: 2
Natty:
Report link

You're using SQLite.openDatabase, but that method doesn't exist.

From the docs it looks like you need to use either SQLite.openDatabaseSync or SQLite.openDatabaseAsync instead.

https://docs.expo.dev/versions/latest/sdk/sqlite/#sqliteopendatabaseasyncdatabasename-options-directory

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

79672343

Date: 2025-06-19 16:10:04
Score: 2.5
Natty:
Report link
<!DOCTYPE html>
<html lang="es">
<head>
  <meta charset="UTF-8" />
  <title>Mi Biografía - Chaturbate Style</title>
  <style>
    body {
      background: #121212;
      color: #eee;
      font-family: Arial, sans-serif;
      line-height: 1.6;
      padding: 20px;
      max-width: 600px;
      margin: auto;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    h1 {
      text-align: center;
      font-size: 2em;
      margin-bottom: 0.3em;
    }
    .highlight {
      color: #e91e63;
    }
    .schedule, .rules {
      background: #1e1e1e;
      border-radius: 5px;
      padding: 10px;
      margin: 15px 0;
    }
    ul {
      list-style-type: none;
      padding: 0;
    }
    ul li {
      margin: 5px 0;
    }
    .cta {
      display: block;
      background: #e91e63;
      color: #fff;
      text-align: center;
      padding: 12px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      margin-top: 20px;
    }
    .cta:hover {
      background: #d81b60;
    }
  </style>
</head>
<body>
  <!-- Título / Encabezado -->
  <h1 class="highlight">Besos traviesos y buena vibra 💋</h1>

  <!-- Presentación -->
  <p>¡Hola, soy <strong>[Tu Nombre o Alias]</strong>! Soy una chica <em>juguetona</em> y <em>apasionada</em> que adora consentirte en cada show. Si buscas risas, sensualidad y conexión directa, este es tu lugar.</p>

  <!-- Qué ofrezco -->
  <h2 class="highlight">¿Qué encontrarás aquí?</h2>
  <ul>
    <li>😽 Besos personalizados al estilo que elijas</li>
    <li>🎲 Juegos interactivos y retos excitantes</li>
    <li>🎭 Shows temáticos por petición (role-play, cosplay, etc.)</li>
  </ul>

  <!-- Horario -->
  <div class="schedule">
    <h3 class="highlight">🕒 Horario en vivo</h3>
    <p><strong>[Días de la semana]</strong> de <strong>[Hora de inicio]</strong> a <strong>[Hora de cierre]</strong> (Hora de <em>[tu ciudad]</em>)</p>
  </div>

  <!-- Reglas -->
  <div class="rules">
    <h3 class="highlight">📜 Reglas del canal</h3>
    <ul>
      <li>1. Respeto siempre.</li>
      <li>2. Sin insultos ni groserías.</li>
      <li>3. Privacidad y buen rollo garantizados.</li>
    </ul>
  </div>

  <!-- Llamado a la acción -->
  <a href="#" class="cta">💖 Sigue y activa notificaciones para no perderte nada</a>

  <!-- Cierre cariñoso -->
  <p style="text-align: center; margin-top: 25px;">¡No veo la hora de verte en mi show! 😘</p>
</body>
</html>
Reasons:
  • Blacklisted phrase (1): ¿
  • RegEx Blacklisted phrase (2): encontrar
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dagoberto Alvarez Escorcia

79672342

Date: 2025-06-19 16:09:03
Score: 11.5 🚩
Natty: 6.5
Report link

Did you manage to get this to work? I'm stuck with the same issue.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • RegEx Blacklisted phrase (3): Did you manage to get this to
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm stuck with the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Riaan Lombard

79672331

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

Google still offers App Passwords, but their availability is now limited. They require 2-Step Verification (2SV) to be enabled on your personal Google account. However, App Passwords won’t appear if you're using only security keys for 2SV, have Advanced Protection enabled, or are using a work or school-managed account. As of March 2025, Google fully blocked basic authentication for third-party apps, so OAuth is now the preferred method. App Passwords are still allowed in some cases—such as for older apps that don’t support OAuth—but only for personal accounts using standard 2SV. If you don’t see the App Password option, it’s likely due to one of the above restrictions.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Inamullah Khan Niazi

79672316

Date: 2025-06-19 15:49:57
Score: 2
Natty:
Report link

java demoy ransford lee jn bank save account card number 1145 save send people to bank money transfer much money demoy lee save in atm and ncb bank abm cash calls message in bank western union talk with woman gustor check change black berylliums company threathsia carpenter demoy ransford lee track hotel paid piad red berylliums cashier code java java tag tab code 1234 jn bank card 1145 claims cash cashier

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

79672314

Date: 2025-06-19 15:48:51
Score: 6.5 🚩
Natty:
Report link

I also have the same question, once it reaches the node kube-proxy used to reach pods. But not getting how it reaches a node with cluster ip. Did hours of googling no luck

Reasons:
  • Blacklisted phrase (1): no luck
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I also have the same question
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sreekanth

79672313

Date: 2025-06-19 15:48:50
Score: 8.5 🚩
Natty:
Report link

same problem, are you resolve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve it?
  • RegEx Blacklisted phrase (1): same problem
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karpyuk Yura

79672311

Date: 2025-06-19 15:47:50
Score: 3.5
Natty:
Report link

If you are using a venv, make sure the folder isn't set to read-only, since uv is going to place its .exe in the Scripts folder in there.

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

79672295

Date: 2025-06-19 15:29:45
Score: 6.5 🚩
Natty: 4.5
Report link

In my case I have complex arrays with occasional np.nan*1j entries, as well as np.nan. Any suggestions on how to check for these?

Reasons:
  • RegEx Blacklisted phrase (2): Any suggestions
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: KeithB

79672290

Date: 2025-06-19 15:24:44
Score: 0.5
Natty:
Report link

You can retrieve your JWT like this:

context.Request.Headers.GetValueOrDefault("Authorization", "").AsJwt()?

You can just use GetValueOrDefault to retrieve fields from the JWT after that.

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

79672286

Date: 2025-06-19 15:19:43
Score: 3
Natty:
Report link
call D:\soft\nodejs\npm.cmd run build
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: wking

79672277

Date: 2025-06-19 15:11:41
Score: 1.5
Natty:
Report link

I'm unsure why this does not work.


main_window.child_window(title="File name:", control_type="edit").type_keys("filename.dat")

but this does

main_window["File name:"].type_keys(r"filename.dat", with_spaces=True)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user3490605

79672275

Date: 2025-06-19 15:09:40
Score: 2.5
Natty:
Report link

I've found the problem, in Physics Settings, the GameObject SDK was "None", I set it to "PhysX", and it was working after that.

enter image description here

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

79672274

Date: 2025-06-19 15:09:40
Score: 2.5
Natty:
Report link

On 25.04 type install-dev-tools as root and then apt whatever you want.

https://www.truenas.com/docs/scale/scaletutorials/systemsettings/advanced/developermode/

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

79672267

Date: 2025-06-19 15:05:34
Score: 6 🚩
Natty:
Report link

I'm getting an error TypeError: render is not a function
I'm correctly importing the component, but keep getting the same error

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting an error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Low reputation (1):
Posted by: Zathura

79672255

Date: 2025-06-19 14:53:31
Score: 1
Natty:
Report link

According to the PHP doc of enchant extension: https://www.php.net/manual/en/enchant.installation.php

You should copy providers into "\usr\local\lib\enchant-2" (which is an absolute path from the root of the current drive). That means, if you installed php in under D: or E: and runs it from there(the current is more likely to be related to your working directory, i.e. %CD%), you will have to put them in:

D:\usr\local\lib\enchant-2\libenchant2_hunspell.dll

D:\usr\local\share\enchant\hunspell\en_US.dic

E:\usr\local\lib\enchant-2\libenchant2_hunspell.dll

E:\usr\local\share\enchant\hunspell\en_US.dic

---

And if you think it's ugly and really want to put them in the same folder with your php.exe, download the source code https://github.com/winlibs/enchant and compile a libenchant2.dll to replace the one shipped with php yourself. You can modify these paths in src/configmake.h.

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

79672252

Date: 2025-06-19 14:51:30
Score: 8.5 🚩
Natty: 6
Report link

Did you get a solution on this?

I am stuck on the same issue.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (3): Did you get a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Osama Khan

79672251

Date: 2025-06-19 14:50:29
Score: 3.5
Natty:
Report link

Try a different browser. For me safari worked.

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

79672237

Date: 2025-06-19 14:40:26
Score: 1.5
Natty:
Report link

The method execute_batch will be introduced in version 4 of gql library.

Still in beta, so if you are not afraid of bugs, you can install it using:

pip install gql==v4.0.0b0

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

79672234

Date: 2025-06-19 14:38:26
Score: 0.5
Natty:
Report link

use this...


myfasta <- readAAStringSet("my.fasta")

myalignment <- msa(myfasta, method = "Muscle", , type = "protein") 
# or if sequence is in a character object like mysequence <- c("ALGHIRK", "RANDEM") then use msa(mysequence, method = "Muscle", type = "protein")

print(myalignment, "complete") # to print on screen

sink("alignment.txt") # open a file connection to print to instead
print(myalignment, "complete")
sink() # close connection!

Cheers!!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
Posted by: ktyagi

79672223

Date: 2025-06-19 14:30:24
Score: 3
Natty:
Report link

It works fine if you call "TriggerServiceEndpointCheckRequest" after updating the service endpoint

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

79672208

Date: 2025-06-19 14:22:22
Score: 0.5
Natty:
Report link

This is not an expected behavior, of course.
I've never used python kafka clients, but

consumer.commit(message=msg)

What are you trying to commit here? Parameter should be a dict of {TopicPartition: OffsetAndMetadata}
Also, you have commit() in finally block, but (for example) in JVM scenario this block is not guaranteed to be executed (for example SIGTERM/ Control+Brake (SIGINT))
Usually consumer is closed via shutdownhook via .wakeUp + some atomic field (because it's not thread safe object and it can't be closed from another thread) like here

In order to check your commited offsets you can run a tool script and describe your group to see offsets

kafka-consumer-groups.sh --bootstrap-server broker1:30903,broker2:30448, broker3:30805 --describe --group {your group name}

Hope it will give you some clue.

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

79672201

Date: 2025-06-19 14:18:21
Score: 2.5
Natty:
Report link

I will ask here so as not to open a new topic. The question has to do with NotificationListenerService. I was making an "app" for myself, that is, a service that intercepts notifications, and then when it detects a Spotify ad (package name com.spotify.music, notification title—whatever, notification text—Advertisement), silences the phone, and then restores the sound when the ad ends. Later, I decided that I actually like their ads for the premium account, and I added a switch to the MainActivity where the muting of ads for the Spotify premium account (package name com.spotify.music, notification title—Spotify, notification text—Advertisement) is turned on or off with an additional boolean variable stored in the shared preferences.

What happened is that the service completely ignores that later added variable, so it still silences the phone when any advertisement appears. Then I wasted half a day trying to find why the updated service didn't do what it should, until I completely uninstalled the app, then reinstalled it, and voila—only then did the service start doing what it should—mute the phone when an ad appears, but not for Spotify Premium ads. It was as if Android copied the original version of the service somewhere, and then regardless of what changes in subsequent versions, it used that first version.

The question is, is that the expected behavior of NotificationListenerService?

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

79672196

Date: 2025-06-19 14:17:20
Score: 1.5
Natty:
Report link

I recently had to deal with something similar and thought I’d share how I approached it — I’m still learning SQL, so I used dbForge Studio for SQL Server to help me figure it out visually.

My original date looked like 'JAN-01-2025', and I needed to convert it into yyyymmdd format (like 20250101). Since that format isn’t directly supported, I ended up doing two things:

  1. Replaced the hyphens with spaces, because style 107 (which parses dates like "Jan 01 2025") needs that.

  2. Then I used TRY_CONVERT to safely turn the string into a proper DATE.

  3. And finally, I formatted it as char(8) using style 112 to get the yyyymmdd.

SELECT 
  OriginalValue = val,
  ConvertedDate = CONVERT(char(8), TRY_CONVERT(date, REPLACE(val, '-', ' '), 107), 112)
FROM (VALUES ('JAN-01-2025'), ('FEB-30-2025')) AS v(val);


Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Samantha Brauer

79672194

Date: 2025-06-19 14:12:19
Score: 1
Natty:
Report link

To get a list of files in a directory, you need to use DirAccess.get_files(). The result is a PackedStringArray sorted alphabetically, and you can access its first element to read that file via FileAccess.open().

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

79672182

Date: 2025-06-19 14:04:16
Score: 1
Natty:
Report link

how to sort a list of dictionary by score in descending order

Student_record = [

{"name" : "Aman", "score" : 27,},

{"name" : "Rohit", "score" : 18},

{"name" : "Mohit", "score" : 21}

]

from operator import itemgetter

new_list = sorted(Student_record, key=itemgetter("score"), reverse = True) # reverse = True, for descending order

print(new_list) #sorted list

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): how to
  • Low reputation (1):
Posted by: Soumya Rawat

79672181

Date: 2025-06-19 14:02:16
Score: 1
Natty:
Report link

How about an WithMandatoryMessage(format string, a ...any) option? In the end, someone could also call New("") with your current API, so you either check for a non-empty message during construction or you loose nothing when someone doesn't use this option.

Otherwise it's guesswork and we need to know more about your problem. What are you trying to achieve?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • High reputation (-1):
Posted by: eik

79672177

Date: 2025-06-19 13:59:15
Score: 2
Natty:
Report link

Also beware that using a std::span to refer to an array contained in a packed struct can cause nasty surprises. See my answer on another question here: https://stackoverflow.com/a/79672052/316578

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Anthony Hayward

79672151

Date: 2025-06-19 13:43:09
Score: 6 🚩
Natty:
Report link

**istioctl proxy-config listener test-source-869888dfdc-9k6bt -n sample --port 5000**

ADDRESSES PORT MATCH DESTINATION 0.0.0.0 5000 Trans: raw_buffer; App: http/1.1,h2c Route: 5000 0.0.0.0 5000 ALL PassthroughCluster 0.0.0.0 5000 SNI: helloworld.sample.svc.cluster.local Cluster: outbound|5000||helloworld.sample.svc.cluster.local

**istioctl proxy-config route test-source-869888dfdc-9k6bt -n sample --name 5000**

NAME VHOST NAME DOMAINS MATCH VIRTUAL SERVICE 5000 helloworld.sample.svc.cluster.local:5000 helloworld, helloworld.sample + 1 more... /* helloworld-vs.sample

**istioctl proxy-config cluster test-source-869888dfdc-9k6bt -n sample --fqdn "outbound|5000|to-nanjing-local-subsets|helloworld.sample.svc.cluster.local"**

SERVICE FQDN PORT SUBSET DIRECTION TYPE DESTINATION RULE helloworld.sample.svc.cluster.local 5000 to-nanjing-local-subsets outbound EDS helloworld-dr.sample

**istioctl proxy-config cluster test-source-869888dfdc-9k6bt -n sample --fqdn "outbound|5000|to-beijing-eastwestgateway-subsets|helloworld.sample.svc.cluster.local"**

SERVICE FQDN PORT SUBSET DIRECTION TYPE DESTINATION RULE helloworld.sample.svc.cluster.local 5000 to-beijing-eastwestgateway-subsets outbound EDS helloworld-dr.sample

**istioctl proxy-config endpoints test-source-869888dfdc-9k6bt -n sample --cluster "outbound|5000|to-nanjing-local-subsets|helloworld.sample.svc.cluster.local"**

ENDPOINT STATUS OUTLIER CHECK CLUSTER 10.244.134.50:5000 HEALTHY OK outbound|5000|to-nanjing-local-subsets|helloworld.sample.svc.cluster.local

**istioctl proxy-config endpoints test-source-869888dfdc-9k6bt -n sample --cluster "outbound|5000|to-beijing-eastwestgateway-subsets|helloworld.sample.svc.cluster.local"**

`ENDPOINT     STATUS     OUTLIER CHECK     CLUSTER`

**Why is there nothing here**

**
**Now the request of http://helloworld.sample.svc.cluster.local:5000/hello, a feedback test results are as follows:****

no healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamno healthy upstreamno healthy upstreamno healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamno healthy upstreamno healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamno healthy upstreamno healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamno healthy upstreamno healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn Hello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn no healthy upstreamHello version: v1, instance: helloworld-v1-86f57ccb45-rv9cn

**I canceled the synchronization between Nanjing and Beijing**

**Nanjing visits Beijing all by east-west gateway**

istioctl remote-clusters NAME SECRET STATUS ISTIOD kubernetes-admin-nj-k8s-cluster synced istiod-59c66bbb95-87vlc istioctl remote-clusters NAME SECRET STATUS ISTIOD kubernetes-admin-bj-k8s-cluster synced istiod-84cb955954-mxq4r

**Could you please help me see what's going on? Is there something wrong with my configuration? Or is it impossible to fulfill my need?**

Or am I misinterpreting failover and can't use it here?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Could you please help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 15051810258139com

79672144

Date: 2025-06-19 13:40:07
Score: 0.5
Natty:
Report link

Changed browser to Chrome from Chromium, and changed headless to false and one of those two changes has resolved the issue for whatever reason.

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

79672141

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

I should have started with your reply... Since this morning, I've been searching without success for how to get to the save confirmation screen...

Phew... What a waste of time and so many pointers that were of no use to me...

Thank you so much!!

Sincerely,

Jean-Noël

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jean-Noël Hamon

79672140

Date: 2025-06-19 13:39:07
Score: 1.5
Natty:
Report link
  1. Master in StandAlone cluster is a coordinator process, so I don't think it makes some sense. What goal you want to achieve?

    How do you submit your apps to spark from airflow? With SparkSubmitOperator?

    This attempt give me an error saying that I need to have hadoop aws jdk. I assume that this means, the airflow is acting as a driver

    Yes, you're correct, when you submit from Airflow it will launch driver process on that machine, and you'll see driver logs in "logs" tab of airflow. Anyway you need at least spark binaries/jars on Airflow (which automatically installed with pip install pyspark==3.5.4).

As for error about hadoop aws jdk: since minio (s3) is hadoop compatbile file system, spark will use this API in order to connect to S3.

So do something like this:

pip install pyspark=={version}
pip install apache-airflow-providers-apache-spark=={version}
pip install apache-airflow[s3]=={version}

When I change deploy mode to cluster, I got error saying that "Cluster deploy mode is currently not supported for python applications on standalone clusters"

That's also predictable StandAlone cluster only supports client mode for .py apps

DAG example with SparkSubmit operator:


from airflow.providers.apache.spark.operators.spark_submit import SparkSubmitOperator
from airflow.operators.bash import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks.S3_hook import S3Hook
from datetime import datetime, timedelta
from textwrap import dedent
from airflow import DAG

s3_log_path = "s3a://test1/sparkhistory"
spark_config = {
    "spark.sql.shuffle.partitions": 8,
    "spark.executor.memory":"4G",
    "spark.driver.memory":"4G",
    "spark.submit.deployMode": "client", #default
    "spark.hadoop.fs.s3a.endpoint": "http://1.1.1.1:8083",
    "spark.hadoop.fs.s3a.access.key":"",
    "spark.hadoop.fs.s3a.secret.key":"",
    "spark.eventLog.enabled":"true",
    "spark.eventLog.dir":s3_log_path
    "spark.driver.extraJavaOptions":"-Dspark.hadoop.fs.s3a.path.style.access=true" #example for driver opts
}

with DAG(
    'App',
    default_args={
        'depends_on_past': False,
        'retries': 1,
        'retry_delay': timedelta(minutes=5),
    },
    description='Some desc',
    schedule_interval=timedelta(days=1),
    start_date=datetime(2021, 1, 1),
    catchup=False,
    tags=['example'],
) as dag:
    t1 = SparkSubmitOperator(
        application="s3a://bucket/artifacts/app.py",
        conf = spark_config,
        py_files = "if any",
        conn_id = "spark_default",
        task_id="submit_job",
    )

P.S: If you want to get rid of driver process on your airflow machine you'll need something like "spark on kubernetes" does:
When you submit on k8s with spark-submit, it will create driver pod. From this pod it will make another submit in client mode. So driver pod will be a driver actually.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): How do you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Yan

79672139

Date: 2025-06-19 13:38:06
Score: 0.5
Natty:
Report link

As @jonsson pointed out on the comment, from VBA Application.Options.UseLocalUserInfo provides getters and setters for user info adjustments*. Link to the documentation.*

C# equivalent for this functionality is provided via Options.UseLocalUserInfo in Microsoft.Office.Interop.Word namespace. Link to the documentation.

In this specific situation following approach worked for me.

using Word = Microsoft.Office.Interop.Word;

public class MyClass {

    private Word.Application wordApp;

    public void MyFunction{
        if(this.wordApp == null){
            object word = System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application");
            this.wordApp = (Word.Application)word;
        }
        this.wordApp.Options.UseLocalUserInfo = true;
    }

}
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jonsson
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kasun Nimantha

79672127

Date: 2025-06-19 13:31:04
Score: 1.5
Natty:
Report link

Not sure if you've already found the answer to this, but the trick to accessing these context variables once you are in the Action code is to define a session variable with the same name as the context variable (for instance, "slackEmailAddress") and BE SURE to assign that session variable an Initial Value! The initial value can be anything (that matches the type for the session variable). The initial value will be replaced by whatever value your client application passes in with the message context.

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

79672122

Date: 2025-06-19 13:26:03
Score: 1
Natty:
Report link

Firstly, you should use the reference Connecting to SQL Server Database for creating SQL server user and password within docker container and apply security policies regarding password with the help of SQL Server Authentication - Modes and Setup.

Secondly, the challenge ” how can I move this password to an .env file or something similar where it is not stored as plain text?” faced by user in the given question can be solved using the reference: Login failed for user sa when i configure it through docker-compose · Issue #283 · microsoft/mssql-docker

Create a .env file: Store your sensitive data as key-value pairs in a .env file located in the same directory as your docker-compose.yml.

version: "3.8"
    services:
      my_service:
        image: my_image
        environment:
          - DB_USER=${DB_USER}
          - DB_PASSWORD=${DB_PASSWORD}
# In this example, DB_USER, and DB_PASSWORD are all values ​​read from environment variables.

# Strict mode variables
environment:
  API_KEY: ${API_KEY?err} # If not set, error "err" will be reported

Docker Compose will automatically load the .env file.

Docker Compose loads variables in the following order (later ones override earlier ones):

  1. .env File (autoload)

  2. Host environment variables

  3. --env-file Specified files

  4. environment Some directly defined values

Using Docker Secrets:

d.txt
    mypassword
version: "3.8"
    services:
      my_service:
        image: my_image
        environment:
           MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password
        secrets:
          - mysql_root_password
    secrets:
      mysql_root_password:
        file: ./secrets/db_password.txt

For the full example of above codes follow this guide (PS: the guide page is in Chinese, try to translate it).

Reasons:
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (0.5): how can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: SoftSol

79672121

Date: 2025-06-19 13:26:03
Score: 3.5
Natty:
Report link

Just install vs studio build tools 2017. it fixed the issue for me

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

79672119

Date: 2025-06-19 13:24:02
Score: 1.5
Natty:
Report link

If anyone is facing this issue specific to one drive folder.
You can loop through and delete all the files inside the folder, but while trying to delete folder seems to be causing this issue in One drive location.

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

79672103

Date: 2025-06-19 13:13:59
Score: 2.5
Natty:
Report link

This has been brought up in a related issue, which has been implemented. There is now a built-in function which does just that: torch.linalg.vecdot.

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

79672099

Date: 2025-06-19 13:12:59
Score: 1.5
Natty:
Report link

Here is an expanded version of @Mikko Ohtamaa's answer, fixing a couple bugs there* and adding checks for relationships, nullable columns and foreign keys. If you are looking for the main is_sane_database function, it is on the bottom.

*basically, it assumed that all the models defined corresponds directly to a table in the database with all the columns matching, but a model can be from a view, or multiple tables joined together (I encountered this through inheritance). Type checkers also complained a little bit.

from __future__ import annotations

import logging
from typing import Any, cast

from sqlalchemy import Engine, Inspector, Table, inspect, text
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.ext.asyncio import AsyncEngine
from sqlalchemy.orm import ColumnProperty, DeclarativeBase, Mapper, RelationshipProperty

# noinspection PyProtectedMember
from sqlalchemy.orm.clsregistry import ClsRegistryToken, _ModuleMarker  # pyright: ignore[reportPrivateUsage]

logger = logging.getLogger(__name__)


# Handle some common type variations
type_mapping = {
    "integer": ["int", "integer", "int4"],
    "bigint": ["bigint", "int8"],
    "smallint": ["smallint", "int2"],
    "string": ["string", "varchar", "text"],
    "boolean": ["boolean", "bool"],
    "float": ["float", "real", "float4"],
    "double": ["double", "float8"],
    "json": ["json", "jsonb"],
}


def normalize_type(type_name: str) -> str:
    for base_type, variants in type_mapping.items():
        if any(variant in type_name for variant in variants):
            return base_type
    return type_name


class DatabaseSchema:
    """A class to hold database schema information."""

    def __init__(self, inspector: Inspector):
        logger.info("Getting table names from database %s", inspector.engine.url)
        self.tables = inspector.get_table_names()
        self.columns: dict[str, dict[str, Any]] = {}

        for table in self.tables:
            logging.info("Loading information from table %s", table)
            self.columns[table] = {c["name"]: c for c in inspector.get_columns(table)}


def check_relationship_property(
    column_prop: RelationshipProperty, schema: DatabaseSchema, klass: type[DeclarativeBase], engine: Engine
) -> bool:
    """Check if a relationship property is valid."""

    errors = False

    if column_prop.secondary is not None:
        # Additional checks for many-to-many relationships
        if not isinstance(column_prop.secondary, Table):
            logger.info(
                "Skipping relationship %s in model %s because secondary is not a Table object", column_prop.key, klass
            )
            return errors

        # Check secondary table exists
        if column_prop.secondary.name not in schema.tables:
            logger.error(
                "Model %s declares many-to-many relationship %s with secondary table %s which does not exist in database %s",
                klass,
                column_prop.key,
                column_prop.secondary.name,
                engine.url,
            )
            errors = True

    if not isinstance(column_prop.target, Table):
        logger.info("Skipping relationship %s in model %s because target is not a Table object", column_prop.key, klass)
        return errors

    target_table = column_prop.target.name
    if target_table not in schema.tables:
        logger.error(
            "Model %s declares relationship %s to table %s which does not exist in database %s",
            klass,
            column_prop.key,
            target_table,
            engine.url,
        )
        errors = True

    return errors


def check_column_property(
    column_prop: ColumnProperty, schema: DatabaseSchema, klass: type[DeclarativeBase], engine: Engine
) -> bool:
    """Check if a column property is valid."""
    # TODO: unique constraints
    errors = False

    # We cannot assume that all columns of the model are actual from that model itself, because it may inherit from another model.
    # So the following line is wrong. Instead, we need to get the table from the column itself.
    # table = klass.__tablename__

    for column in column_prop.columns:
        if not column.table._is_table:
            logger.info(
                "Skipping column %s in model %s because it originates from a non-table object (%s)",
                type(column.table).__name__,
            )
            continue
        else:
            assert isinstance(column.table, Table), "Expected column.table to be a Table instance"
            table = column.table.name
        # Check column exists
        if column.key not in schema.columns[table]:
            logger.error(
                "Model %s declares column %s which does not exist in database %s",
                klass,
                column.key,
                engine.url,
            )
            errors = True
            continue

        # Check column type
        db_column = schema.columns[table][column.key]
        model_type = column.type
        db_type = db_column["type"]

        # Compare type names, handling some common type variations
        model_type_name = str(model_type).lower()
        db_type_name = str(db_type).lower()

        if normalize_type(model_type_name) != normalize_type(db_type_name):
            logger.error(
                "Model %s column %s has type %s but database has type %s",
                klass,
                column.key,
                model_type,
                db_type,
            )
            errors = True

        # Check foreign key constraints
        if column.foreign_keys:
            for fk in column.foreign_keys:
                target_table = fk.column.table.name
                if target_table not in schema.tables:
                    logger.error(
                        "Model %s declares foreign key %s to table %s which does not exist in database %s",
                        klass,
                        column.key,
                        target_table,
                        engine.url,
                    )
                    errors = True
                else:
                    if fk.column.key not in schema.columns[target_table]:
                        logger.error(
                            "Model %s declares foreign key %s to column %s in table %s which does not exist in database %s",
                            klass,
                            column.key,
                            fk.column.key,
                            target_table,
                            engine.url,
                        )
                        errors = True

        # Check if the column is nullable
        if not column.nullable and db_column["nullable"]:
            logger.error(
                "Model %s declares column %s as non-nullable but database has it as nullable",
                klass,
                column.key,
            )
            errors = True

        if column.nullable and not db_column["nullable"]:
            logger.error(
                "Model %s declares column %s as nullable but database has it as non-nullable",
                klass,
                column.key,
            )
            errors = True

    return errors


def is_sane_database(base_cls: type[DeclarativeBase], engine: Engine) -> bool:
    """Check whether the current database matches the models declared in model base.

    Checks that:
    * All tables exist with all columns
    * Column types match between model and database
    * All relationships exist and are properly configured

    Args:
        base_cls (type[DeclarativeBase]): The SQLAlchemy declarative base class containing the models to check.
        engine: The SQLAlchemy engine or connection to the database.

    Returns:
        bool: True if all declared models have corresponding tables, columns, and relationships.

    Raises:
        TypeError: If the provided engine is an AsyncEngine instead of a synchronous Engine.

    References:
        https://stackoverflow.com/questions/30428639/check-database-schema-matches-sqlalchemy-models-on-application-startup
    """
    if isinstance(engine, AsyncEngine):
        raise TypeError("The engine must be a synchronous SQLAlchemy Engine, not an AsyncEngine.")

    logger.debug("starting validation")
    inspector = inspect(engine)
    schema = DatabaseSchema(inspector)

    # Run an empty query to ensure the connection is valid and all the models are defined correctly.
    # If this doesn't work, all queries will fail later anyway, so we don't suppress errors raised here.
    with engine.connect() as conn:
        conn.execute(text("SELECT 1"))

    errors = False

    # Go through all SQLAlchemy models and do the following checks:
    # - Check if the table exists in the database
    # For each attribute in the model:
    #     If it is a relationship:
    #         - Check if the secondary table exists (if applicable)
    #         - Check if the target table exists
    #     If it is a column:
    #         - Check if the column exists in the table
    #         - Check if the column type matches the model type
    #         - Check if the foreign key constraints are valid
    #         - Check if the column is nullable
    #
    # noinspection PyProtectedMember
    for name, klass in base_cls.registry._class_registry.items():  # pyright: ignore[reportPrivateUsage]
        logger.debug("Checking model %s (%s)", name, klass)
        if isinstance(klass, _ModuleMarker):
            logger.debug("Skipping module marker %s", name)
            continue
        if isinstance(klass, ClsRegistryToken):
            logger.debug("Skipping ClsRegistryToken %s", name)
            continue
        if not issubclass(klass, DeclarativeBase):
            logger.warning(
                "Cannot determine whether %s is actually a model because it is not a subclass of DeclarativeBase. "
                "If you use the declarative_base(), it dynamically generates a new class that cannot be determined."
                "We are assuming it is a model, but this may not be the case.",
                klass,
            )
            klass = cast(type[DeclarativeBase], klass)

        table: str = getattr(klass, "__tablename__")
        if not table:
            logger.error("Model %s does not have a __tablename__ attribute", klass)
            errors = True
            continue
        if table not in schema.tables:
            logger.error("Model %s declares table %s which does not exist in database %s", klass, table, engine.url)
            errors = True
            continue

        mapper = inspect(klass)
        assert isinstance(mapper, Mapper), "Expected mapper to be an instance of Mapper (uncertain)"

        try:  # If any error occurs during inspection, it will be caught, and errors will be set to True
            for column_prop in mapper.attrs:
                if isinstance(column_prop, RelationshipProperty):
                    if check_relationship_property(column_prop, schema, klass, engine):
                        errors = True
                elif isinstance(column_prop, ColumnProperty):
                    if check_column_property(column_prop, schema, klass, engine):
                        errors = True
                else:
                    logging.info(
                        "Encountered unexpected property %s in model %s with type %s",
                        column_prop.key,
                        klass.__name__,
                        type(column_prop),
                    )

        except SQLAlchemyError as e:
            logger.error("Error inspecting model %s: %s", klass.__name__, e)
            errors = True

    return not errors
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Mikko
  • Low reputation (1):
Posted by: papeto

79672098

Date: 2025-06-19 13:12:59
Score: 1
Natty:
Report link

For some of you knowing how to properly use backdrop-filter, there is 3 years old chrome / chromium bug where one of two nested filters don't work. It includes opera but work fine in Firefox.

More about the bug: https://www.reddit.com/r/Frontend/comments/xm2ft0/cant_get_backdropfilter_blur16px_to_work_in/

Even ChatGPT don't know about it, so I post it here for others.
I wasted 2 days searching my problem.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Patryk Chowratowicz 'Zszywacz'

79672091

Date: 2025-06-19 13:08:57
Score: 5.5
Natty:
Report link

I am having the same issue. Been sent down wrong paths and wasted many house. Still puzzling. If I find the solution, will let you know

Reasons:
  • Low length (1):
  • 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: Will Harris

79672087

Date: 2025-06-19 13:04:56
Score: 0.5
Natty:
Report link
byearthinc.ai

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.1/knockout-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: JALAL ALMODABER

79672084

Date: 2025-06-19 13:01:55
Score: 2
Natty:
Report link

I would try the new PowerScan Standard Range made by Datalogic, it can write on a in-sight single RFID tag with the comand:

[DC2][ESC][w<EPC>[CR]

Or in case of a tag in a crowded environment (to target the right tag):

[DC2][ESC][w<EPC>;<TagID>[CR]

Be ware! the EPC is only supported in RAW format.

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

79672072

Date: 2025-06-19 12:52:53
Score: 3
Natty:
Report link

I understand that this topic may no longer be relevant, but I recommend considering the option of using dpQueryConnectSingle().

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

79672061

Date: 2025-06-19 12:44:51
Score: 0.5
Natty:
Report link

1. array_map()

Purpose: Applies a callback function to each element of one or more arrays and returns a new array with the results.

Key Points:
Returns a new array.
Does not modify the original array.
Can work with multiple arrays in parallel.

2. array_filter()

Purpose: Filters an array using a callback function — keeps only the values for which the callback returns true.

Key Points:
Returns a new filtered array.
Does not modify the original array.
Removes elements that don’t match the condition.

3. array_walk()

Key Points:

Modifies the original array.
Does not return anything useful (returns true on success).
Cannot change keys.

Purpose: Applies a callback function to each element of the array by reference. Mostly used for modifying the array in place.

Summary:

Function Returns New Array? Modifies Original? Purpose
array_map() Yes No Transform values
array_filter() Yes No Filter values
array_walk() No Yes Modify values (by reference)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Javokhir Abdirasulov

79672057

Date: 2025-06-19 12:42:50
Score: 3.5
Natty:
Report link

Actually i have figured it out it is because i have another tab that fetches in the background that overrides it constantly

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

79672054

Date: 2025-06-19 12:36:49
Score: 3.5
Natty:
Report link

does your assignment limits you to using only .setPosition() and you want to keep the image at a fixed pixel position (e.g., top-left, center, etc.) regardless of the window size or if it becomes fullscreen?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MgTimsDev

79672053

Date: 2025-06-19 12:36:49
Score: 0.5
Natty:
Report link
.showhide{
    animation: showhide 2s linear infinite;
}

@keyframes showhide {
  0% {
    opacity:0;
  }
  45% {
    opacity:1;
  }  
  55% {
    opacity:1;
  }  
  100% {
    opacity:0;
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan

79672040

Date: 2025-06-19 12:24:45
Score: 3
Natty:
Report link

kann mir jemand mal helfen? ich habe eine libre office dokument das per knopf druck bestimmte daten von dem ldap server lädt was auch funktioniert aber wenn ich dann speichere erkennt libre das nicht und speichert es auch nicht in der datenbank.

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

79672031

Date: 2025-06-19 12:18:43
Score: 2.5
Natty:
Report link

The App Store will not accept applications/apps for review if they are not made with the latest Xcode 14.2. And that requires the Mac to run macOS 12.5 Monterey or later. If you can't do that, you will need a newer Mac that can.

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

79672029

Date: 2025-06-19 12:18:43
Score: 1
Natty:
Report link

Answer

You're facing a common issue with Swiper Element (Web Component) in Angular: changing the direction (rtl/ltr) dynamically after initialization does not update the Swiper instance as expected. This is because Swiper (especially the Web Component version) reads its configuration once on initialization. Changing the direction property after that won’t trigger a re-render or re-layout by default.

Let’s address your questions and provide a robust, idiomatic Angular solution.


1. Do I need to destroy and re-initialize the Swiper?

Yes, for direction changes, you need to re-initialize.
There’s no official Swiper Element API as of 2024 to "hot-update" the direction of an initialized instance. You must:


2. How to do this in Angular?

Key Steps & Best Practices

  1. Track the direction in a reactive way (e.g., via effect() or Observable).
  2. Destroy and re-initialize Swiper when the direction changes.
  3. Preserve Swiper’s state if needed (current slide, etc).

Example Implementation

swiper.component.ts

import { Component, ElementRef, ViewChild, inject, AfterViewInit, OnDestroy, PLATFORM_ID } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { register } from 'swiper/element/bundle';
import { SwiperOptions } from 'swiper/types'; // Adjust path as needed

@Component({
  selector: 'app-mini-product-swiper',
  // ...
})
export class MiniProductSwiperComponent implements AfterViewInit, OnDestroy {
  langService = inject(LangService); // Assuming you have an Observable or Signal
  @ViewChild('swiperContainer') swiperContainer!: ElementRef;

  swiperInstance: any; // Reference to Swiper element
  direction: 'rtl' | 'ltr' = 'ltr'; // Default

  platformId = inject(PLATFORM_ID);

  ngOnInit(): void {
    register();
  }

  ngAfterViewInit(): void {
    if (isPlatformBrowser(this.platformId)) {
      this.langService.lang$.subscribe(lang => { // Use Observable/signal as appropriate
        const newDirection = lang === 'ar' ? 'rtl' : 'ltr';
        if (this.direction !== newDirection) {
          this.direction = newDirection;
          this.reInitSwiper();
        }
      });
    }
  }

  ngOnDestroy(): void {
    this.destroySwiper();
  }

  assignSwiperParams() {
    const swiperElement = this.swiperContainer.nativeElement;
    const swiperParams: SwiperOptions = {
      direction: this.direction,
      // ...other params
    };
    Object.assign(swiperElement, swiperParams);
  }

  reInitSwiper() {
    this.destroySwiper();
    this.assignSwiperParams();
    this.swiperContainer.nativeElement.initialize();
  }

  destroySwiper() {
    const swiperElement = this.swiperContainer.nativeElement;
    if (swiperElement && swiperElement.swiper) {
      swiperElement.swiper.destroy(true, true);
    }
  }
}

swiper.component.html

<swiper-container #swiperContainer [attr.dir]="direction" init="false" class="h-100">
  <!-- Slides -->
</swiper-container>

Notes:


3. Why is this the recommended approach?


4. Common Pitfalls


Summary


References:

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (0.5): Why is this
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ghabryel Henrique

79672028

Date: 2025-06-19 12:13:42
Score: 1.5
Natty:
Report link
You can achieve it through circular navigation like this
navController.navigate(
    route = selectedDestination,
    navOptions = navOptions {
        popUpTo(selectedDestination){
            inclusive = true
        }
    }
)

Result

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

79672022

Date: 2025-06-19 12:08:40
Score: 12
Natty: 7.5
Report link

I have the same problem. Could someone please help?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): please help
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Han Cheng

79672007

Date: 2025-06-19 11:47:34
Score: 1.5
Natty:
Report link

As far as I know it is not (yet) possible sending http2 requests using the PHP sockets / stream API.

But it is possible to do that when using the php curl extension (a recent one / compiled with http2 support).

See fe. https://github.com/guzzle/guzzle/issues/1249 for someone else working in the same direction

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

79672005

Date: 2025-06-19 11:42:33
Score: 1.5
Natty:
Report link

I assume that by writing *p = 8, you modified the value at the memory address where a is stored. This is why no errors occur — that’s the expected behavior when working with pointers.

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

79672002

Date: 2025-06-19 11:40:32
Score: 3.5
Natty:
Report link

There is no need of IAM roles on Storage account. Just giving the permisions to workspace and then to table level to your group will do the job

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

79671993

Date: 2025-06-19 11:31:29
Score: 9 🚩
Natty: 5.5
Report link

did you find the solution?? reply please

Reasons:
  • RegEx Blacklisted phrase (3): did you find the solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did you find the solution
  • Low reputation (1):
Posted by: Vantika Bhatt

79671991

Date: 2025-06-19 11:30:29
Score: 2.5
Natty:
Report link

Are you utilizing any specific options for storing data in XComs?
Because XComs are meant for lightweight data passing. For large data, a custom XCom backend or external store is strongly recommended.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Pavithra Naga Yallapu

79671983

Date: 2025-06-19 11:26:27
Score: 1.5
Natty:
Report link

I use this command in my docker compose

redis-server --replicaof no one --maxmemory-policy noeviction
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vladimir Lykov

79671969

Date: 2025-06-19 11:15:24
Score: 0.5
Natty:
Report link

Yes, this is definitely possible — and quite common!

Since you already have a RESTful web service providing temperature sensor data (even if just on localhost), your Android app can fetch that data using HTTP requests.

Where to Start:

Make the API Accessible

If your REST API is running on localhost, your Android device won’t see it unless both are on the same network and the server is bound to your local IP (e.g., 192.168.x.x, not just localhost). You may need to expose it using a tool like ngrok for testing.

Android Side

Use libraries like:

Retrofit or Volley – to make HTTP requests

Gson – to parse JSON responses

Steps:

Create a basic Android app (Java/Kotlin)

Add a network permission in AndroidManifest.xml

Set up Retrofit to call your API

Display the data in a simple UI (like a TextView or RecyclerView)

Example Use Case:

If your API is at http://192.168.1.5:3000/data, you can fetch it and display the temperature values on your app.

If you're experimenting with real-world use cases in IoT or sensors, this is a perfect starting point for applying what many mobile app development agencies offer in production-level apps.

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

79671967

Date: 2025-06-19 11:14:24
Score: 1.5
Natty:
Report link

You're hitting a region-specific limitation with the Ubuntu2404 OS SKU in AKS.

Even though you've registered the Ubuntu2404Preview feature and are using AKS v1.33.0 (which technically supports Ubuntu 24.04), the error you're seeing:

'Ubuntu2404' is not a valid value for '--os-sku'. Allowed values: AzureLinux, Ubuntu, Ubuntu2204.

means that the Ubuntu 24.04 image hasn't been made available in your region (Central India) yet.

This is a known issue feature flag registration enables the capability at a subscription level, but the actual node images are rolled out gradually by Microsoft across different regions. So even if your subscription is configured correctly, the image simply might not be available in Central India yet. You can confirm this by running:

az aks nodepool get-upgrades \
  --resource-group <your-rg> \
  --cluster-name <your-cluster> \
  --name <your-nodepool>

If Ubuntu2404 isn’t listed there, it’s not yet available to use in your region.

To fix:

If az version shows anything older than 2.62.0, upgrade using:

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash Remove and reinstall aks-preview (cleanly)

az extension remove --name aks-preview
az extension add --name aks-preview --upgrade
az extension update --name aks-preview

Confirm CLI version and extension

az version
az extension show --name aks-preview --output table

Test in a supported region like eastus or westeurope by deploying a test cluster or node pool using:

az aks create \
  --resource-group rg-preview \
  --name aks-preview \
  --location eastus \
  --kubernetes-version 1.33.0 \
  --node-os-sku Ubuntu2404 \
  --node-count 1

Ref: https://github.com/Azure/AKS/issues/3970#issuecomment-1786974243

Please let me know your thoughts. will glad to help.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know your
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bheemani Anji Babu

79671954

Date: 2025-06-19 11:01:20
Score: 4.5
Natty:
Report link

Thank you for the help..This is so helpful

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rahul Ramesh

79671952

Date: 2025-06-19 10:59:20
Score: 2.5
Natty:
Report link
Extra content at the end of the document in Entity
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): How to for
  • Low reputation (1):
Posted by: PetrF