79417754

Date: 2025-02-06 11:43:46
Score: 4.5
Natty: 5
Report link

why not use re.LOCALE as a dummy-flag when you want to not ignore case? does not seem to be doing much if your computer is running on an English version OS...

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): why not use
  • Low reputation (1):
Posted by: zakmckracken

79417746

Date: 2025-02-06 11:41:45
Score: 2.5
Natty:
Report link

Solve is simple.

because doing it via ansible doesnt run on the same user as when you try it on the windows host

https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html

give the become and become user a go

become: yes
become_user: <windows user>

add that to your playbook

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: rumeysa yuk

79417733

Date: 2025-02-06 11:36:43
Score: 4
Natty:
Report link

Are you using AWS Api Gateway? Its default timeout is 29 seconds, which can be increased. See: https://aws.amazon.com/about-aws/whats-new/2024/06/amazon-api-gateway-integration-timeout-limit-29-seconds/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ishefi

79417732

Date: 2025-02-06 11:36:43
Score: 2.5
Natty:
Report link

I am not sure, what exactly you want to do 7 times and then repeat, but this is how the general structure could look.
The function takes a boolean and then prints a statement, while the count is less than or equal to7. After that, if the boolean is True, the program stops. If it isn't, it calls itself again with the boolean as True.
Because that boolean is False by default, it does not need to be passed the first time.

 def restarting_function(has_restarted=False):
        call_count=0
        while call_count<=7:
            print("Does something with count", call_count)
            call_count+=1
        if has_restarted:
            return
        restarting_function(True)
    
    
 restarting_function()

To add, I would've preferred to do a comment (can't because <50rep), so if my answer does not fit, please tell me and I will delete as soon as possible.

Reasons:
  • RegEx Blacklisted phrase (2.5): please tell me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fff

79417728

Date: 2025-02-06 11:35:43
Score: 5.5
Natty: 5.5
Report link

I guess because Boolean can be null, and it would not be defined whether this becomes true or false, so it's forbidden?

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

79417726

Date: 2025-02-06 11:34:42
Score: 0.5
Natty:
Report link

I managed to get it working. Here is the working code if anyone else needs it:

skaffold.yaml

apiVersion: skaffold/v2beta26
kind: Config

metadata:
  name: mongodb

deploy:
  kubectl:
    manifests:
    - "config/namespace.yaml"
    - "config/mongodb-credentials.yaml"
    - "config/configmap.yaml"
    - "config/mongodb.yaml"
    - "config/mongo-seed-job.yaml"
    defaultNamespace: "mongodb"

config/namespace.yaml

kind: Namespace
apiVersion: v1
metadata:
  name: mongodb
  labels:
    name: mongodb

config/mongodb-credentials.yaml

Note: username: admin password: password

Please change this to whatever you want

apiVersion: v1
kind: Secret
metadata:
  name: mongodb-credentials
type: Opaque
data:
  username: YWRtaW4=
  password: cGFzc3dvcmQ=

config/configmap.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  name: seed-data
data:
  init.json: |
    [{"name":"Joe Smith","email":"[email protected]","age":40,"admin":false},{"name":"Jen Ford","email":"[email protected]","age":45,"admin":true}]

config/mongodb.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: mongodb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mongodb
  template:
    metadata:
      labels:
        app: mongodb
    spec:
      containers:
        - name: mongodb
          image: mongo:latest
          ports:
          - containerPort: 27017
          volumeMounts:
          - name: mongo-data
            mountPath: /data/db
          env:
            - name: MONGO_INITDB_ROOT_USERNAME
              valueFrom:
                secretKeyRef:
                  name: mongodb-credentials
                  key: username
            - name: MONGO_INITDB_ROOT_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: mongodb-credentials
                  key: password
      volumes:
      - name: mongo-data
        emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
  name: mongodb
spec:
  ports:
    - port: 27017
  selector:
    app: mongodb

config/mongo-seed-job.yaml

apiVersion: batch/v1
kind: Job
metadata:
  name: mongo-seed
spec:
  template:
    spec:
      initContainers:
      - name: init-copy
        image: busybox
        command: ['sh', '-c', 'cp /config/init.json /data/']
        volumeMounts:
        - name: config-volume
          mountPath: /config
        - name: data-volume
          mountPath: /data
      containers:
      - name: seed
        image: mongo:latest
        command: ["sh", "-c", "mongoimport --uri mongodb://$(MONGO_USERNAME):$(MONGO_PASSWORD)@mongodb:27017/mydb --collection accounts --type json --file /data/init.json --jsonArray --authenticationDatabase=admin"]
        env:
          - name: MONGO_USERNAME
            valueFrom:
              secretKeyRef:
                name: mongodb-credentials
                key: username
          - name: MONGO_PASSWORD
            valueFrom:
              secretKeyRef:
                name: mongodb-credentials
                key: password
        volumeMounts: 
        - name: data-volume
          mountPath: /data
      restartPolicy: Never
      volumes:
      - name: config-volume
        configMap:
          name: seed-data
      - name: data-volume
        emptyDir: {}

If anyone has any alternate solutions it would be good to know.

Thanks @Imran Premnawaz for your help

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Imran
  • Self-answer (0.5):
Posted by: mh377

79417719

Date: 2025-02-06 11:32:41
Score: 4.5
Natty:
Report link

What is your classname? You have List<Costumers> in what seems to be List<Customers>

Reasons:
  • Blacklisted phrase (1): What is your
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What is you
  • Low reputation (1):
Posted by: Joezoefhalihoza

79417714

Date: 2025-02-06 11:30:40
Score: 0.5
Natty:
Report link

price levels are inside company, So change collection to

 <COLLECTION ...>
 <TYPE>Price Level : Company </TYPE>
    <Childof> ##SVCurrentCompany</Childof>
 </COLLECTION>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: sai vineeth

79417712

Date: 2025-02-06 11:30:40
Score: 3.5
Natty:
Report link

I've solved it! It was simpler than I expected. I updated the Gradle version in Android Studio. Probably, I had an incompatible version, but at first, it wasn't obvious to detect.

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

79417707

Date: 2025-02-06 11:28:40
Score: 3
Natty:
Report link

I finally found out that, despite what the tutorial said, any kind of solution that tries to publish a .bim file needs an XMLA endpoint. Which means, you cannot do it without a Power BI Premium or PPU Workspace

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

79417696

Date: 2025-02-06 11:25:39
Score: 3
Natty:
Report link

Based on the conversation with @Geba, this is what has fixed the issue.

Changing Annotation profile from using Processor path

enter image description here

To using Obtain processor from project classpath.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Geba
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Francislainy Campos

79417691

Date: 2025-02-06 11:23:37
Score: 10.5 🚩
Natty: 6.5
Report link

hello did you find a solution ? i am facing the same problem

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (3): did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mehdish

79417686

Date: 2025-02-06 11:21:36
Score: 12.5
Natty: 7
Report link

I have the same issue. Any solution?

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (2): Any solution?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lev

79417680

Date: 2025-02-06 11:20:36
Score: 2.5
Natty:
Report link

I'm having a similar issue getting oneAPI's MKL vars loaded on my vscode-jupyter notebook extension.

I found a work around by simply loading the environment vars before opening vscode:

(base) joe@cool$ source /opt/intel/oneapi/setvars.sh 
 
:: initializing oneAPI environment ...
   bash: BASH_VERSION = 5.2.21(1)-release
   args: Using "$@" for setvars.sh arguments: 
:: compiler -- latest
:: mkl -- latest
:: tbb -- latest
:: umf -- latest
:: oneAPI environment initialized ::
 
(base) joe@cool$ code&

But, I hope there is a better way to do this without closing and re-opening vscode every time I need to load a python library built with oneAPI's MKL calls.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm having a similar issue
  • Low reputation (0.5):
Posted by: DrWho

79417678

Date: 2025-02-06 11:18:35
Score: 1
Natty:
Report link

Looks like the issue might be with how the SAML response is being handled before calling Unbind(). Lucky 101 app, make sure the request isn't empty before processing it. You should try logging the request details before Unbind() to see what's missing. Also, check if saml2LogoutResponse is properly initialized before using it.

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

79417673

Date: 2025-02-06 11:17:35
Score: 1
Natty:
Report link

The problem is with your syntax, You have to set a callback function for the filechooser this way

def parseChoice(file_paths:list):
    print('File path ', file_paths[0])
filechooser.open_file(on_selection=parseChoice)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fabian Joseph

79417665

Date: 2025-02-06 11:15:35
Score: 1
Natty:
Report link

The answer is Yes , you can run load testing using Datadog's Synthetic Monitoring and Testing, but the Drawback of it that it works a bit differently from traditional tools like JMeter which was mostly used in this cases. In Datadog , you can define synthetic tests for your application by simulating real user interactions. However, Datadog is does not directly provide settings for concurrent users and iterations like JMeter. Instead, you can configure API tests and browser tests to simulate requests to your application.

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

79417654

Date: 2025-02-06 11:12:33
Score: 4.5
Natty: 5
Report link

7 years after here is the answer: https://developer.apple.com/forums/thread/773777

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

79417650

Date: 2025-02-06 11:10:33
Score: 1
Natty:
Report link

It completely depends on the use case and logic. I prefer to call it after new X() as object will have data after some setters are called.

X obj = new X();
obj.setName("xyz");
obj.setId(1);
validator.validate(obj);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yasin Ahmed

79417646

Date: 2025-02-06 11:10:32
Score: 7.5 🚩
Natty: 5
Report link

I'm working on a similiar solution, where we have a django application which needs multi-tenancy so I'm creating new DB for each tenant and switching to that DB as the request comes in, this is a temporary solution we came up with due to the open source application we are dealing with, which has so many modification if we want to change the core to support multi-tenancy.

So I want to switch to new DB or create the db and switch to that db once the user is authenticated, and use that db for the authenticated user.

Can anyone give how to approach to it?

I'm planning on creating middleware to intercept the request and change the DB context. Also there is a function in an context which is called to get the db connection name, there also I'm changing it to user's DB.

I want to know where all should I change and what are the aspects I should look for?

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (2.5): Can anyone give how
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Hariharan R

79417644

Date: 2025-02-06 11:09:31
Score: 0.5
Natty:
Report link

In the new Larevel you had to specify which routes you would like to be included for the resource by passing an argument to the route definition like so:

Route::resource('photo', PhotoController::class, ['only' => [
    'index', 'show'
]]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adeel Raza Azeemi

79417643

Date: 2025-02-06 11:09:31
Score: 2.5
Natty:
Report link

Yes I agree with this

I had this exact issue. I was creating my connection var connection = mysql.createConnection({ ... }); outside of the exports.handler

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

79417640

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

I'm leaving this here as it may be helpful: as specified by asker @ScalewingedAcidicorn , this question uses a different approach: set the library as

add_library(<mylib> SHARED IMPORTED)
set_target_properties(<mylib> PROPERTIES
    IMPORTED_LOCATION <mylib.so in source tree>
    INTERFACE_INCLUDE_DIRECTORIES <mylib.h in source tree>
    IMPORTED_NO_SONAME TRUE # <------ NOTE HERE!
)

# [...]

target_link_libraries(<my_executable> <mylib>)

from the documentation (emphasis added):

this property to true for an imported shared library file that has no soname field. CMake may adjust generated link commands for some platforms to prevent the linker from using the path to the library in place of its missing soname.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ScalewingedAcidicorn
  • Low reputation (0.5):
Posted by: Alessandro Bertulli

79417637

Date: 2025-02-06 11:06:29
Score: 6 🚩
Natty:
Report link

Did you solve your issue ? I'm facing the same today ...

fastlane finished with errors

[!] Could not find option 'storage_mode' in the list of available options: git_url, git_branch, type, app_identifier, username, keychain_name, keychain_password, readonly, team_id, team_name, verbose, force, skip_confirmation, shallow_clone, workspace, force_for_new_devices, skip_docs

ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin24]

gem -v
3.6.3
Reasons:
  • RegEx Blacklisted phrase (3): Did you solve your
  • RegEx Blacklisted phrase (1.5): solve your issue ?
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you solve you
  • Low reputation (1):
Posted by: Ludo G.

79417627

Date: 2025-02-06 11:05:29
Score: 1.5
Natty:
Report link

I found answer based on comment from @C3roe:

$templateProcessor = new TemplateProcessor($templateFileLink);
$templateProcessor->saveAs($resultFileLink);

$objReader = \PhpOffice\PhpWord\IOFactory::createReader('Word2007');
/** @var PhpWord $phpWord */
$phpWord = $objReader->load($resultFileLink); // instance of \PhpOffice\PhpWord\PhpWord
/** @var DocInfo $properties */
$properties = $phpWord->getDocInfo();
$properties->setCreator('');
$properties->setModified(false);
$properties->setLastModifiedBy('');
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
$objWriter->save($resultFileLink);

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

79417620

Date: 2025-02-06 11:03:28
Score: 1.5
Natty:
Report link

How to Use Foreground Location in a Food Delivery App and Store Data in Firebase? Introduction Location tracking is a crucial feature for food delivery apps, ensuring real-time order tracking, accurate ETAs, and seamless delivery management. Using foreground location tracking, an app can update user locations continuously while the app is open. Firebase provides a robust backend to store and manage this location data efficiently.

Steps to Implement Foreground Location Tracking and Store Data in Firebase

  1. Enable Foreground Location Tracking Use FusedLocationProviderClient (Android) or CoreLocation (iOS) to get the user's real-time location. Request the necessary location permissions (ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION for Android, NSLocationWhenInUseUsageDescription for iOS). Continuously fetch the location while the app is in the foreground.
  2. Store Location Data in Firebase Use Firebase Realtime Database or Firestore to store live location updates. Structure the database to store user ID, latitude, longitude, timestamp, and order ID. Implement Firebase Firestore's real-time listeners to update the delivery agent’s location dynamically.
  3. Display Real-Time Location on Maps Integrate Google Maps API or Mapbox to show the rider’s live location. Use Geofencing to alert customers when their food is nearby. Update UI dynamically based on Firebase location changes.
  4. Optimize for Performance & Battery Efficiency Reduce location update frequency to optimize battery life. Use Android WorkManager or iOS Background Fetch for occasional updates when the app is in the background. Enable Firebase Firestore offline persistence for better reliability. Enhance Your Delivery App with a Glovo Clone Developing a full-fledged food delivery app with real-time tracking can be time-consuming. A Glovo Clone (Miracuves Glovo Clone) provides a ready-made, customizable solution with built-in real-time tracking, Firebase integration, and user-friendly UI.

🚀 Start your on-demand food delivery business effortlessly with Miracuves Glovo Clone!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How to Use For
  • Low reputation (1):
Posted by: Miracuves Solutions

79417608

Date: 2025-02-06 11:00:27
Score: 1.5
Natty:
Report link

To fix it I researched Vector that @user85421 told me about, I ended up finding the synchronizedList class.

What I have done is modify both; the Arraylist results and the destination one ret to this type.

  // Old one List<InformeFacturacionAsociadoDto> ret = new ArrayList<>();
  List<InformeFacturacionProcesado> results = null;
  results = informeFacturacionDAO.getListInformeFactAsociadosV2(cliJurs, centros, desde, hasta, podologos, tipoPrescriptor, prescriptor, servicios, conveniosBusqueda);

   //NEW CODE
  List<InformeFacturacionAsociadoDto> retS = Collections.synchronizedList(new ArrayList<InformeFacturacionAsociadoDto>());
  List<InformeFacturacionProcesado> resultsS = Collections.synchronizedList(results);

This way no null appears and no data is lost.

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

79417600

Date: 2025-02-06 10:56:26
Score: 1
Natty:
Report link

IN SIDE android/app/build.gradle

//replase with your applicationId

defaultConfig {

    android.defaultConfig.manifestPlaceholders = ['appAuthRedirectScheme': 'com.zoommer.msap',applicationName: "com.zoommer.msap.Application"]

}

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

79417591

Date: 2025-02-06 10:53:26
Score: 0.5
Natty:
Report link

As of Nov 24 this is not yet resolved. Here is a post by an Apple engineer referencing the known issue:

Thanks for the report! This is a known issue and is tracked by 133331523. To receive a valid progress, please use UIKit PHPickerViewController until 133331523 is addressed.

https://developer.apple.com/forums/thread/768863

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Frederic Adda

79417583

Date: 2025-02-06 10:51:24
Score: 1
Natty:
Report link

try: ps -el | grep bash | wc -l

the result is different, I don't know which is the best...

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

79417579

Date: 2025-02-06 10:50:24
Score: 1
Natty:
Report link

I have figured out how to do it and it appears to be somewhat undocumented in the ESP32-C6 Technical Reference Manual so I'm posting it here for reference.

It can be done like so, include:

#include "esp_system.h"
#include "soc/lp_aon_reg.h"

and add below lines:

REG_WRITE(LP_AON_SYS_CFG_REG, LP_AON_FORCE_DOWNLOAD_BOOT);
esp_restart();

It will boot directly to the ROM update mode.

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

79417573

Date: 2025-02-06 10:47:24
Score: 0.5
Natty:
Report link

If you right click on any project you are interested in and click 'Remove Unused Packages' you will see the following summary of any unused packages, then you can go ahead and remove them all, or selected packages as desired

enter image description here

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

79417567

Date: 2025-02-06 10:45:23
Score: 2.5
Natty:
Report link

“There is an issue with the Better Player version 0.0.84 when using Gradle 8.0.0 or above. You can find a solution for this, either temporary or permanent, in the following link: https://medium.com/@vortj/solving-namespace-errors-in-flutters-android-gradle-configuration-c2baa6262f8b. Another solution is to downgrade to Gradle version 7.0.0.”

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: baris adali dag

79417552

Date: 2025-02-06 10:40:22
Score: 2
Natty:
Report link

What we want to do is not possible. Because more specific types (inheritance types) must have a compatible interface with parent types. This is necessary for polymorphism to work (the client should not know what subtype it is working with, having a reference to the parent type).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What we
Posted by: nik0x1

79417551

Date: 2025-02-06 10:40:20
Score: 7 🚩
Natty:
Report link

Thanks, for the answer it was really helpful. I have similar needs most of which are fullfilled except the PAN card number. I am using the following XML payload to export the voucher details including gst number, pan number and narration. I was able to get the GST number working but I still can not get pan number and narration. Could you please help?

<ENVELOPE>
    <HEADER>
        <VERSION>1</VERSION>
        <TALLYREQUEST>EXPORT</TALLYREQUEST>
        <TYPE>DATA</TYPE>
        <ID>TC_VOUCHER</ID>
    </HEADER>
    <BODY>
        <DESC>
            <STATICVARIABLES>
                <SVEXPORTFORMAT>$$SysName:xml</SVEXPORTFORMAT>
            </STATICVARIABLES>
            <TDL>
                <TDLMESSAGE>
                    <REPORT ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHER">
                        <FORM>TC_VOUCHER</FORM>
                    </REPORT>
                    <FORM ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHER">
                        <PART>TC_VOUCHER</PART>
                        <XMLTAG>Voucher.LIST</XMLTAG>
                    </FORM>
                    <PART ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_BASETALLYOBJECT">
                        <LINE>TC_BASETALLYOBJECT</LINE>
                        <REPEAT>TC_BASETALLYOBJECT:TC_BASETALLYOBJECTCOLLECTION</REPEAT>
                        <SCROLLED>Vertical</SCROLLED>
                    </PART>
                    <PART ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_TALLYOBJECT">
                        <LINE>TC_TALLYOBJECT</LINE>
                        <REPEAT>TC_TALLYOBJECT:TC_TALLYOBJECTCOLLECTION</REPEAT>
                        <SCROLLED>Vertical</SCROLLED>
                    </PART>
                    <PART ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHER">
                        <LINE>TC_VOUCHER</LINE>
                        <REPEAT>TC_VOUCHER:TC_VOUCHERCOLLECTION</REPEAT>
                        <SCROLLED>Vertical</SCROLLED>
                    </PART>
                    <PART ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHERLEDGER">
                        <LINE>TC_VOUCHERLEDGER</LINE>
                        <REPEAT>TC_VOUCHERLEDGER:ALLLEDGERENTRIES</REPEAT>
                        <SCROLLED>Vertical</SCROLLED>
                    </PART>
                    <LINE ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_BASETALLYOBJECT">
                        <FIELDS>TC_GUID</FIELDS>
                        <XMLTAG>BASETALLYOBJECT</XMLTAG>
                    </LINE>
                    <LINE ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_TALLYOBJECT">
                        <FIELDS>TC_ALTERID,TC_MASTERID</FIELDS>
                        <XMLTAG>TALLYOBJECT</XMLTAG>
                        <USE>TC_BASETALLYOBJECT</USE>
                    </LINE>
                    <LINE ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHER">
                        <FIELDS>TC_DATE,TC_VOUCHERTYPE,TC_VOUCHERNUMBER</FIELDS>
                        <XMLTAG>VOUCHER</XMLTAG>
                        <EXPLODE>TC_VOUCHERLEDGER:Yes</EXPLODE>
                        <USE>TC_TALLYOBJECT</USE>
                    </LINE>
                    <LINE ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHERLEDGER">
                        <FIELDS>TC_LEDGERNAME,TC_AMOUNT,TC_NARRATION,TC_GSTIN,TC_PAN</FIELDS>
                        <XMLTAG>ALLLEDGERENTRIES.LIST</XMLTAG>
                    </LINE>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_GUID">
                        <SET>$GUID</SET>
                        <XMLTAG>GUID</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_ALTERID">
                        <SET>$AlterId</SET>
                        <XMLTAG>ALTERID</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_MASTERID">
                        <SET>$MasterId</SET>
                        <XMLTAG>MASTERID</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_DATE">
                        <SET>$Date</SET>
                        <XMLTAG>DATE</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHERTYPE">
                        <SET>$VOUCHERTYPENAME</SET>
                        <XMLTAG>VOUCHERTYPENAME</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHERNUMBER">
                        <SET>$VoucherNumber</SET>
                        <XMLTAG>VOUCHERNUMBER</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_LEDGERNAME">
                        <SET>$LEDGERNAME</SET>
                        <XMLTAG>LEDGERNAME</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_AMOUNT">
                        <SET>$AMOUNT</SET>
                        <XMLTAG>AMOUNT</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_NARRATION">
                        <SET>$NARRATION</SET>
                        <XMLTAG>NARRATION</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_GSTIN">
                        <SET>$PARTYGSTIN</SET>
                        <XMLTAG>GSTIN</XMLTAG>
                    </FIELD>
                    <FIELD ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_PAN">
                        <SET>$INCOMETAXNUMBER</SET>
                        <XMLTAG>PAN</XMLTAG>
                    </FIELD>
                    <COLLECTION ISMODIFY="NO" ISFIXED="NO" ISINITIALIZE="NO" ISOPTION="NO" ISINTERNAL="NO" NAME="TC_VOUCHERCOLLECTION">
                        <TYPE>VOUCHERS</TYPE>
                        <NATIVEMETHOD>ALTERID</NATIVEMETHOD>
                        <NATIVEMETHOD>ALLLEDGERENTRIES.LEDGERNAME</NATIVEMETHOD>
                        <NATIVEMETHOD>ALLLEDGERENTRIES.PARTYGSTIN</NATIVEMETHOD>
                        <NATIVEMETHOD>ALLLEDGERENTRIES.INCOMETAXNUMBER</NATIVEMETHOD>
                    </COLLECTION>
                </TDLMESSAGE>
            </TDL>
        </DESC>
    </BODY>
 </ENVELOPE>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have similar
  • RegEx Blacklisted phrase (3): Could you please help
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Shubham Singh

79417549

Date: 2025-02-06 10:40:20
Score: 0.5
Natty:
Report link

Pythons int() function does more than just converting a string to integer.The behavior varies based on the argument and an optional base parameter. we can break down behavior as follows:

  1. No arguments int() # returns 0
  2. Numeric Arguments
    • If the argument if an integer
       int(5) # return 5
    
    • If argument if a float, then it will remove(truncate) the fractional part
       int(2.04) # return 2
    
  3. string Arguments
    • int() strips any whitespace, and also can handle an optional sign(+ or -) and then converts the sequence of digits to an integer.
int("  -10  ")  # returns -10
int("1010", 2)  # returns 10 (binaray to decimal)

Steps in the conversion process

  1. String Handling
    • Strip whitespace.
    • Handling leading sign(+ or -).
  2. Validation
    • To check all charters are vailid digits for the given base.
  3. Digit conversion
    • Convert each charater to its corresponding numerical value.
  4. Accumulation
    • Compute the integer value by iterating through each digit

For example:


def custom_integer_converter(s, base=10):
    # Ensure input is a string
    if not isinstance(s, str):
        raise TypeError("Input must be a string")
    
    s = s.strip().lower()  # Handle whitespace and case insensitivity
    
    if not s:
        raise ValueError("Empty string after stripping whitespace")
    
    # Determine the sign
    sign = 1
    if s[0] == '-':
        sign = -1
        s = s[1:]
    elif s[0] == '+':
        s = s[1:]
    
    if not s:
        raise ValueError("No digits after sign")
    
    # Validate characters and convert to integer
    value = 0
    for c in s:
        # Convert character to numerical value
        if c.isdigit():
            digit = ord(c) - ord('0')
        else:
            digit = ord(c) - ord('a') + 10
        
        # Check if digit is valid for the base
        if not (0 <= digit < base):
            raise ValueError(f"Invalid character '{c}' for base {base}")
        
        value = value * base + digit
    
    return sign * value

enter image description here The image contains the implementation of the code mentioned above, along with tested inputs.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Brijesh Dubey

79417547

Date: 2025-02-06 10:39:19
Score: 1.5
Natty:
Report link

I faced a similar issue earlier. With the recent release, BigQuery DATETIME support has improved in the newer versions of the BigQuery Connector. Upgrading to BigQuery Connector 0.34.0 resolved the issue for me.

For more details, you can refer to the Dataproc release documentation here: https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-release-2.2

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

79417543

Date: 2025-02-06 10:35:19
Score: 1.5
Natty:
Report link

It turns out I was using the wrong argument: it should have been newdata, not newx. So:

predict(svm_fit, newdata=dfm_val, type="class")

Gives the expected result of predictions on the validation data.

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

79417533

Date: 2025-02-06 10:33:18
Score: 3.5
Natty:
Report link

You might be better asking in the Statamic Discord or on GitHub Discussions. The Statamic Community isn't very active here on StackOverflow.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Duncan McClean

79417530

Date: 2025-02-06 10:32:17
Score: 8.5 🚩
Natty:
Report link

Can you be more explicit? Do you use a REST API, do you have the beginning of the code?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have the
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Max

79417529

Date: 2025-02-06 10:31:17
Score: 1.5
Natty:
Report link

In short it uses require to load in each of the files in the app/config directory in turn and sets the resulting value in a big array wrapped up in some utilities to make accessing values easier.

To achieve this it creates an Illuminate\Config\Repository and sets values in there based on require-ing in each of the config files it finds. This is all done in Illuminate\Foundation\Bootstrap. In the latest version at time of writing this can be seen at https://github.com/laravel/framework/blob/v11.41.3/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php#L96 and https://github.com/laravel/framework/blob/v11.41.3/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php#L110

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

79417522

Date: 2025-02-06 10:30:16
Score: 1.5
Natty:
Report link
const maxKey = Object.entries(obj).reduce((acc, [key, value]) => 
  value > obj[acc] ? key : acc, Object.keys(obj)[0]
);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ranaili

79417520

Date: 2025-02-06 10:29:16
Score: 0.5
Natty:
Report link

In Symfony 6.1, the LocaleSwitcher has been added for this use case.

use Symfony\Component\Translation\LocaleSwitcher;
...
$this->localeSwitcher->setLocale($documentData->getLocale());
try {
    $html = $this->templating->render('admin/request/pdf/document.pdf.twig', [
        'data' => $data,
    ]);
} finally {
    $this->localeSwitcher->reset();
}

See https://symfony.com/doc/current/translation.html#switch-locale-programmatically

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

79417509

Date: 2025-02-06 10:25:15
Score: 2
Natty:
Report link

Quite a while ago..., but I stumbled over the same problem - many people seem to have the same problem, but there was no proper solution.
Finally I found this and it solved it! ContextMenuStrip from a left click on a Notify Icon

In short: the default right-click p/invokes SetForgroundWindow before showing the menu.

So adding this to Your code will make it behave like it does when performing a right-click:

[DllImport("User32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
public static extern bool SetForegroundWindow(HandleRef hWnd);

private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        SetForegroundWindow(new HandleRef(this, this.Handle));
        this.contextMenuStrip1.Show(this, this.PointToClient(Cursor.Position));
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (0.5):
Posted by: Stephan

79417498

Date: 2025-02-06 10:18:13
Score: 0.5
Natty:
Report link

I ended removing

"DataProtectionPolicy: 'STRING_VALUE',"

it now works

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

79417491

Date: 2025-02-06 10:16:13
Score: 1
Natty:
Report link

Here's a thread that answers, how to print an image with ESCPOS. ESC POS command ESC* for printing bit image on printer

Here's some code in GLBAsic, that I wrote to print an image to an ESCPOS printer. There's 3 methods you could use. I found ESC * the most compatible one. The NV ram, I could not get working and the GS v 0 method worked best, but is said to be deprecated.

https://www.glbasic.com/forum/index.php?topic=11212.msg98892#msg98892

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

79417488

Date: 2025-02-06 10:14:12
Score: 1.5
Natty:
Report link

Apple provided this API as part of the latest iOS 18.2 updates.

https://developer.apple.com/documentation/UIKit/UIApplication/isDefault(_:)

It poses explicit examples for the Default Browser scenario, though it can be used for other default apps (e.g. mail app).

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

79417469

Date: 2025-02-06 10:07:11
Score: 3.5
Natty:
Report link

Thanks for the above green marked solution, helped me a great deal. Had the same frustration. (can't add a direct comment reply as I am not "reputable" enough).

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

79417468

Date: 2025-02-06 10:06:10
Score: 4
Natty:
Report link

Honestly I dont know bro

:((((

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

79417464

Date: 2025-02-06 10:06:09
Score: 4
Natty:
Report link

Use this version of Django -----> 4.2.3

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

79417454

Date: 2025-02-06 10:04:09
Score: 1
Natty:
Report link

You can just use a container inside the dialog with custom BoxDecoration:

Dialog(
  child: Container(
    decoration: BoxDecoration(
      color: Colors.white,
      boxShadow: const [
        BoxShadow(
          color: Colors.red,
          blurRadius: 10)])));

See demo here: https://dartpad.dev/?id=d3f1fb7d3e50e1543f6899c57c7effb8

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

79417449

Date: 2025-02-06 10:02:08
Score: 1
Natty:
Report link

These days you can also do (e.g. for the last 3 commits):

git diff @~3

which will show the diff of the last 3 commits below wherever your HEAD currently is (where you're @):)

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

79417448

Date: 2025-02-06 10:01:08
Score: 0.5
Natty:
Report link

You could operate over a list of all prime factors less than N to produce an unordered, but complete list of numbers less than N.

  1. Generate a list of all prime numbers with up to N. So, you got p1, p2, ..., pn.
  2. Make a list of matching exponents for every prime number. So, now you have a data structure representing p1e1, p2e2, ..., pnen

Now, to the fun part:

  1. Initialize all exponents with zero. This gives you the prime factorization of 1.
  2. Now, start with the first prime number, and increment its exponent. You got another new number, multiply the prime factors, save it for later.
  3. Is the number bigger than N? Trash the number. Set the exponent back to 0. Increment the exponent of the next bigger prime. Is that too big as well? Set the exponent to 0 too, increment the next prime exponent. Repeat until you produce a number < N.
  4. Repeat at step 2.

If you cannot increment any exponent in step 3 any more, you have produced every natural number, alongside with their prime factorization.

For example, producing every number <= 6:

  1. The prime numbers would be 2,3,5
  2. Start with exponents being 0,0,0:
  3. 20 * 30 * 50 = 1 -> save it.
  4. Increment the exponent of the lowest prime factor:
  5. 21 * 30 * 50 = 2 -> save it
  6. Increment the exponent of the lowest prime factor:
  7. 22 * 30 * 50 = 4 -> save it, notice we are missing 3, but we'll get there
  8. Increment the exponent of the lowest prime factor:
  9. 23 * 30 * 50 = 8 -> Trash it, 8 > 6
  10. Set exponent of the lowest prime factor back to zero, increment the next exponent
  11. 20 * 31 * 50 = 3 -> save it.
  12. Increment the exponent of the lowest prime factor:
  13. 21 * 31 * 50 = 6 -> save it.
  14. Increment the exponent of the lowest prime factor:
  15. 22 * 31 * 50 = 12 -> Trash it, 12 > 6
  16. Set exponent of the lowest prime factor back to zero, increment the next exponent
  17. 20 * 32 * 50 = 9 -> Trash it, 9 > 6
  18. Set exponent of the next to lowest prime factor back to zero, increment the next exponent
  19. 20 * 30 * 51 = 5 -> Save it.
  20. Since your list of results now has 6 elements, you are finished.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: LangerJan

79417447

Date: 2025-02-06 10:01:08
Score: 0.5
Natty:
Report link

reinterpret_cast is the correct cast to use for non-typesafe pointer conversion. Your "plain" or "C-style" cast would do the same implicitly, however, kind of masking the type conversion.

Your specific compiler error, however, is more likely the result of casting constness. For those situations use const_cast (see reference).

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: André

79417446

Date: 2025-02-06 10:00:08
Score: 2.5
Natty:
Report link

You code did work for me and i was able to dump out the cms data with the 'yoohoo' string. One thing i could think of is that the new class is not found: have a look here hope this would help.

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

79417416

Date: 2025-02-06 09:49:04
Score: 1.5
Natty:
Report link

There are open-source solutions like react-native-vision-camera that support both iOS and Android.

However, if you're looking for a more reliable solution that supports a wide range of barcodes, performs under challenging conditions (low-light, damaged barcodes), and comes with dedicated developer support, I'd recommend looking into a commercial solution, like Scanbot SDK (disclosure: I'm part of the team).

A colleague of mine actually wrote a tutorial for ReactNative, I'll leave it here in case someone wants to check it out. FYI: yes, we are a commercial solution, but we provide free trial licenses!

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Frogdog-42

79417409

Date: 2025-02-06 09:47:04
Score: 1
Natty:
Report link

Set the default step to 1 and fix some other things, not sure if this is what you wanted:

Updated demo

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

79417408

Date: 2025-02-06 09:47:04
Score: 2.5
Natty:
Report link

Testing with edge cases, where a user’s input might be vague or contradictory, can help you refine the accuracy of your analysis. For example, test responses where users mention only partial information, like saying "I've been feeling tired," but not explicitly mentioning sleep issues.

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

79417403

Date: 2025-02-06 09:45:03
Score: 4
Natty:
Report link

In Java, you can create custom exceptions by extending the Exception class (for checked exceptions) or Runtime Exception class (for unchecked exceptions). Custom exceptions allow you to define specific error conditions and provide meaningful messages.

go through this video for further clarification: https://youtu.be/nwk9lHtH06o

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pandiselvam

79417392

Date: 2025-02-06 09:42:01
Score: 3.5
Natty:
Report link

I am getting an error: TypeError: 'module' object is not callable sp = SimplePreprocessor(32, 32)

Reasons:
  • RegEx Blacklisted phrase (1): I am getting an error
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rising Star

79417391

Date: 2025-02-06 09:42:01
Score: 3.5
Natty:
Report link

To keep it to_tsquery make sure to replace any whitespace in your search with <->

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

79417384

Date: 2025-02-06 09:38:00
Score: 2.5
Natty:
Report link

Usually, Standard compiler settings might not put an error. as this specific scenario as it doesn't violate syntax rules and doesn't pose an immediate risk of undefined behavior. and basic function of a compiler is to check syntaxial errors what your question is more based on runtime error

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

79417378

Date: 2025-02-06 09:38:00
Score: 0.5
Natty:
Report link

An alternative is to extract the .Data slot from the S4 object with @. The code below will produce the same result as the code provided by Jari Oksanen.

library(phyloseq)
library(vegan)

data("GlobalPatterns")

GlobalPatterns %>% 
otu_table() %>%
`@`(., ".Data") %>% 
t() %>% 
vegan::rarecurve(.,step = 10000)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Latrunculia

79417377

Date: 2025-02-06 09:38:00
Score: 3
Natty:
Report link

No, in modern Linux kernels, it is not typically possible to run programs without any non-executable segment protection due to several security mechanisms in place. These protections are designed to prevent arbitrary code execution and mitigate vulnerabilities such as buffer overflows and return-oriented programming (ROP) attacks. For more factosecure

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

79417366

Date: 2025-02-06 09:33:59
Score: 3.5
Natty:
Report link

It is not possible to excise an attribute in datomic. You can excise only its values enter image description here https://docs.datomic.com/operation/excision.html

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

79417359

Date: 2025-02-06 09:31:59
Score: 3
Natty:
Report link

werfewweifdifjdkfdkfjdkfjdkfjdkfjdkfjdkfjdfkdjfkdjfxcnxc fkkdjllllllhkkkhhhhhhhhhhkkkkkkkkkkkkkkkkkkkkkkkkllllljjjj I understood from the text

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): hhhhhhhhhh
  • Filler text (0): kkkkkkkkkkkkkkkkkkkkkkkk
  • Low reputation (1):
Posted by: Abraham Melese

79417354

Date: 2025-02-06 09:27:57
Score: 7 🚩
Natty: 4
Report link

Have you find the solution for that ? Ashish

Reasons:
  • Blacklisted phrase (2): Have you find
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Usman Amir

79417347

Date: 2025-02-06 09:25:56
Score: 0.5
Natty:
Report link

For me it worked after running the below code inside of the lambda function directory and deploying the code anew.

pip3 install --platform manylinux2014_x86_64 --target=./ --implementation cp --python-version 3.12 --only-binary=:all: --upgrade psycopg2-binary 
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Android_2E

79417340

Date: 2025-02-06 09:22:55
Score: 2.5
Natty:
Report link

I am used to run my application without debugging (Ctrl+F5), and there was an error in Program.cs that was the origin of that message. Running with debugging let me find the faulty statement, and the message disapeared.

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

79417339

Date: 2025-02-06 09:21:55
Score: 4.5
Natty: 7
Report link

thankyou thankyou thankyou thankyou thankyou

Reasons:
  • Blacklisted phrase (1): thankyou
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akbar zaiem

79417334

Date: 2025-02-06 09:20:54
Score: 0.5
Natty:
Report link

We have been experiencing similar problems with our app and I agree with Zags's answer, but just want to add one piece of valuable information that I have just found out:

The app's folder is not replaced EVERYTIME you make changes to your configuration, but it seems there are certain triggers inside a configuration change that result in a replaced app folder. So far I've found that a change to an ENVRIONMENT VARIABLE causes the app folder to be freshly built (well, sort of, considering the lack of container_commands), while, e.g. an update to, say, a scaling threshold, doesn't.

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

79417331

Date: 2025-02-06 09:19:54
Score: 1.5
Natty:
Report link

1、You can use docker pull a centos7 image 2、install gitlab rpm 3、export docker image

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: YONGCHANG SHI

79417330

Date: 2025-02-06 09:19:53
Score: 4.5
Natty:
Report link

Since I did not find any solution, I have converted my PATCH endpoints to POST and they are working in PROD.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Codeninja

79417318

Date: 2025-02-06 09:14:52
Score: 1.5
Natty:
Report link

If you're looking for an enterprise-level SDK, perhaps check out Scanbot SDK (full disclosure, I am part of their team). My colleague actually wrote a step-by-step tutorial about integrating barcode scanning in Flutter. I'll link it here!

We offer detailed documentation and support during integration and ready-to-use scanning interfaces and features like multi-scanning or AR overlays. Also, we provide free trial licenses for testing purposes.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Frogdog-42

79417304

Date: 2025-02-06 09:08:50
Score: 5.5
Natty:
Report link

found what i was looking for, a ribbon split button

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

79417296

Date: 2025-02-06 09:05:50
Score: 0.5
Natty:
Report link

Thanks to @Wayne!

According to the issue Snakefile is run a second time if rule contains run directive #2350 I decided to use "shell" instead of "run" in my main_rule. This prevents snakemake from running the snakefile code twice. My working snakefile now looks like this:

#!/bin/python
print('import packages')

from datetime import datetime
import time

now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
tarfile = now + '_stardist.tar'
print(tarfile)

rule all:
    input: {tarfile}

rule main_rule:
    input: 
    output: {tarfile}
    shell: 
        "touch {tarfile}"
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Antje Janosch

79417283

Date: 2025-02-06 09:01:49
Score: 1
Natty:
Report link

By default, Snakemake sees the first rule as its target. Thus, if you just run something like snakemake -n, it tries to solve for rule run_simulations. If you move rule all above rule run_simulations, it should work

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

79417278

Date: 2025-02-06 09:00:48
Score: 3.5
Natty:
Report link

Rotate the symbol 45 degree and it will easy to click the small text.

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

79417275

Date: 2025-02-06 08:58:48
Score: 0.5
Natty:
Report link

I ended up adding a little util that catches the error and throws the custom message:

export async function expectToResolve(expected: Promise<any>, msg: string) {
  try {
    await expect(expected, "").resolves.toBeUndefined()
  } catch {
    throw new Error(msg)
  }
}

It can be used like this:

await expectToResolve(promise, "custom message");
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Blee

79417265

Date: 2025-02-06 08:56:48
Score: 3.5
Natty:
Report link

The same problem I have and not yet solved ... Can you notice more detail about the solution you noted, Shakya ? I want to use the colab trained & downloaded best.pt for the yolov5 detect.py in windows 11.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lee John

79417254

Date: 2025-02-06 08:52:47
Score: 1
Natty:
Report link

You can't directly access dynamic properties in TypeScript types. You need to use generics to achieve this.

type GetPropertyType<T, K extends keyof T> = T[K];
type LayerPropType = GetPropertyType<WMSLayerProps, typeof tagName>;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shanshiliu

79417244

Date: 2025-02-06 08:49:46
Score: 1.5
Natty:
Report link

Please run the following command after adding a new route.

php artisan route:cache
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Genesis Solutions

79417234

Date: 2025-02-06 08:45:44
Score: 5.5
Natty:
Report link

Have you found a solution for this? I am exactly at this stage now and i can't find any good solution even installing old versions of scikit-learn!

even this doesn't solve it 'super' object has no attribute '__sklearn_tags__'

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found a solution for this
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Abdirahman Bashir

79417226

Date: 2025-02-06 08:42:44
Score: 3
Natty:
Report link

Adding indexes to most columns in a database table is generally not a good practice unless there is a specific need.

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

79417225

Date: 2025-02-06 08:42:44
Score: 3
Natty:
Report link

Try to find if any 'other' services are using the same port for connecting to the hosted server. Stop the 'other' service and the issue might be resolved.

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

79417217

Date: 2025-02-06 08:39:42
Score: 8
Natty: 7
Report link

I am facing the same problem, the image is in png of 512*512. It is visible to me when I log in as admin in wordpress but not to any users or to me when I use incognito mode. I have tried to clear cache, also included the link to my website header.php file but still the same issue. Is there a guranteed solution to this problem?

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abhi

79417216

Date: 2025-02-06 08:39:42
Score: 1.5
Natty:
Report link
list1 = [1,2,3,4,5]
list2 = [4,5,6,7,8]

uncommon_element = list(set(list1) ^ set(list2))
# Output: [1,2,3,6,7,8]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aditya R

79417208

Date: 2025-02-06 08:35:41
Score: 0.5
Natty:
Report link

Got it working at last. I had to specify library path through CFLAGS ... I had previously no experience with commandline building, so this was like exploration of the new world for me.

sudo ./configure CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib"

sudo make CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib"
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kaven

79417207

Date: 2025-02-06 08:35:41
Score: 3
Natty:
Report link

For now i've fixed the issue by using pac cli commands in my powershell task. pac auth create pac auth update pac admin set-backup-retention-period –

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

79417200

Date: 2025-02-06 08:32:40
Score: 4.5
Natty: 4
Report link

I encountered a similar issue in Spring 4.2.8. When I created the project, the resources folder was missing. I manually added it inside src/main, and after that, everything worked fine. However, I'm not sure why the file wasn’t being detected initially, even though it was in the classpath. Any ideas on what might have caused this?

Reasons:
  • Blacklisted phrase (1): Any ideas
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Prajwal S M

79417198

Date: 2025-02-06 08:31:40
Score: 2.5
Natty:
Report link

clientId in the headers of the api is the name of the business of the seller on snapdeal.

Do Share your linkdein , i am also integrating snapdeal apis.

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

79417194

Date: 2025-02-06 08:29:39
Score: 2.5
Natty:
Report link

It's solved. I uninstall for the 3rd time IISExpress 10.0 with all the directories it created before and I reinstallit from the visual studio installer and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luis Balaguer

79417193

Date: 2025-02-06 08:28:39
Score: 3
Natty:
Report link

"Tcpkg uninstall all" can be used in command prompt if you run as admin. This removes everything. You have to (re)install the twinCAT package manager as that installs the commandline tool.

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

79417188

Date: 2025-02-06 08:27:39
Score: 3.5
Natty:
Report link

I forgot to update this, but the request was actually correct, the problem was elsewhere. So if anyone has the same issue the request shown is OK.

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

79417175

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

I am trying to verify a JWT token using a JWKS URL from Ping Identity in Python. Below is the implementation:

    import jwt
    import requests
    from jwt.algorithms import RSAAlgorithm

    # JWKS URL (Replace with Ping Identity's URL)
    JWKS_URL = "https://your-ping-identity-domain/.well-known/jwks.json"

    # JWT Token to Verify
    token = "your_jwt_token_here"

    # Fetch JWKS
    response = requests.get(JWKS_URL)
    jwks = response.json()

    # Extract Key
    def get_public_key(kid):
        for key in jwks["keys"]:
            if key["kid"] == kid:
                return RSAAlgorithm.from_jwk(key)
        raise ValueError("Public key not found")

    # Decode JWT Header
    header = jwt.get_unverified_header(token)
    kid = header["kid"]

    # Get Matching Public Key
    public_key = get_public_key(kid)

    # Verify JWT
    try:
        decoded_token = jwt.decode(token, public_key, algorithms=["RS256"], audience="your_audience", issuer="your_issuer")
        print("JWT is valid:", decoded_token)
    except jwt.ExpiredSignatureError:
        print("JWT has expired")
    except jwt.InvalidTokenError:
        print("Invalid JWT")
Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Superman

79417166

Date: 2025-02-06 08:18:37
Score: 1.5
Natty:
Report link

Using spread operator, when copy applied and later main entity is modified then impact on copied entity.

Observation :

spread operator copy behaviour on update

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

79417163

Date: 2025-02-06 08:17:36
Score: 2.5
Natty:
Report link

I am not sure is it still an actual problem for you

But it's OK that drone is disarming after a few seconds without a command. That is an Ardupilot default setting.

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

79417162

Date: 2025-02-06 08:17:36
Score: 1.5
Natty:
Report link

The code is absolutely fine. I suspect the issue is due to incompatibility between the Spark version you are using and the Python version you have. Please downgrade to PYTHON3.12 and see if that helps.

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

79417155

Date: 2025-02-06 08:11:35
Score: 2
Natty:
Report link

To extract a YAML file from OpenShift (such as a ConfigMap or DeploymentConfig) while removing unnecessary metadata fields like resourceVersion and uid, use the following command:

oc get cm -o yaml | yq 'del(.metadata.uid, .metadata.resourceVersion)' - > output.yaml

This ensures a clean backup without dynamic metadata fields that may change across deployments.

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

79417147

Date: 2025-02-06 08:09:35
Score: 3
Natty:
Report link

I removed element with tag bindingredirect in web.config and it resolved the issue. Please refer the following post https://learn.microsoft.com/en-us/answers/questions/902363/cannot-load-file-or-assembly-system-runtime

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