79117621

Date: 2024-10-23 11:02:48
Score: 2
Natty:
Report link

I got the same issue, I added the argument

engine='python'

and it solved the issue.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: El Buen Robe

79117610

Date: 2024-10-23 10:58:46
Score: 1
Natty:
Report link

The configuration directive cgi. force_redirect prevents anyone from calling PHP directly with a URL like http://my.host/cgi-bin/php/secretdir/script.php . Instead, PHP will only parse in this mode if it has gone through a web server redirect rule.

Goto php.ini file

cgi.force_redirect =0

Uncommnet the above line and set 0

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

79117603

Date: 2024-10-23 10:57:46
Score: 2
Natty:
Report link

More simple i think :)

char StringValue[10] = "fe";

int iVal;

sscanf(StringValue,"%x",&iVal);

printf("String : '%s', Val : %d",StringValue, iVal);

Write : StringValue : 'fe', Val : 254

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

79117593

Date: 2024-10-23 10:55:45
Score: 1.5
Natty:
Report link

If you need detailed tracking, such as when the payment was made, how much was paid, and to keep a record of multiple payments, then creating a separate payment table would be a more effective and scalable solution.

And Separate table field like be: payment_id student_id(FK) amount_paid payment_date status etc..

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

79117592

Date: 2024-10-23 10:55:45
Score: 13
Natty: 8
Report link

Did you manage to solve the issue? I have the same issue. Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): Did you manage to solve the
  • RegEx Blacklisted phrase (1.5): solve the issue?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have 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: Urban

79117589

Date: 2024-10-23 10:54:45
Score: 0.5
Natty:
Report link

Http11NioProtocol is the non-blocking IO (NIO) connector for Tomcat.

Tomcat 8 typically uses the http-nio protocol unless specifically configured to use the blocking I/O (BIO) protocol (Http11Protocol). Therefore, even if you haven't explicitly configured NIO in your project, Tomcat itself is using it by default.

Try:

server.tomcat.protocol=org.apache.coyote.http11.Http11Protocol

This would force the use of the blocking IO connector if you want to switch away from NIO.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: Luboš Hájek

79117584

Date: 2024-10-23 10:51:44
Score: 4.5
Natty:
Report link

Change the Screen Scale to Lesser(125% or 100%), Then it will come to visible area enter image description here

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

79117583

Date: 2024-10-23 10:51:43
Score: 0.5
Natty:
Report link

What you're looking for is called "Dissimilarity Search". Similarity search is computationally less expensive than dissimilarity search. The domain is constrained per se, which is harder to guarantee for dissimilarity (bottom-k) search.

What this does remind me of though, is Maximal Marginal Relevance (MMR). A technique used to prioritize diversity in similarity searches. After retrieving the some n (chunk size) * k similar documents, we find the most dissimilar document to K1 (most similar result) from the rest, This is repeated till K results are retrieved, all of which are dissimilar to each other but similar to the query document.

The latter works because of a constrained domain, maybe it could be useful to you.

https://www.cs.bilkent.edu.tr/~canf/CS533/hwSpring14/eightMinPresentations/handoutMMR.pdf

Dissimilarity search is pretty tough, because you have to calculate distances to many more samples. Think of this, we're embedding in 3 Dimensions. Embed and plot the query, draw a sphere around it till you have roughly K samples inside the sphere. Use your similarity function and select the top-k results, your domain is constrained by the sphere. This is incredibly contrived to illustrate the point over text succinctly, but such optimizations deliberately reduce the number of samples to check, so you aren't comparing all the results in your vector database.

You could also set the top_k to the number of samples in your database and select the last N results. This won't scale, though.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: TheOnlyWayUp

79117577

Date: 2024-10-23 10:49:43
Score: 0.5
Natty:
Report link

Use rememberSaveable instance of remember

val imageUrl = rememberSaveable(container.image?.imageUrl) { container.image?.imageUrl }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Kishan Viramgama

79117572

Date: 2024-10-23 10:48:43
Score: 1.5
Natty:
Report link

Since httpOnly cookie are not accesible in a legal way. The answer to this question would be hacking it.

To better understand how httpOnly cookies work with ajax there are a few answers on the community:

Will http_only cookies be sent with AJAX?

How do HttpOnly cookies work with AJAX requests?

There is not any details of cookies on the ajax documentation sadly

https://api.jquery.com/jQuery.ajax/

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

79117570

Date: 2024-10-23 10:47:42
Score: 1
Natty:
Report link

You need to uninstall patch 119967-02 (for x86) and 119966-02 (for SPARC) (along with any patches that depend on them) which are necessary for Oracle Developer Studio. eg:

patchrm 119967-02

Once you've done this, your /usr/include/math.h will revert to the 2009 version, not the 2016 version. Problem solved.

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

79117568

Date: 2024-10-23 10:46:42
Score: 0.5
Natty:
Report link

As I needed the answer to this question, I thought I would expand on it a bit more.

If you want to run a batch file on compile the answer above is perfect.

I did this to run a batch file that auto committed the project folder to SVN. Works for all the software department as I created this inno as a template for all releases.

to expand on the answer above

Batchfiles may take more than one argument

#expr Exec() only has the second argument for your string of command line arguments.

Therefore, if you need to pass the batch file more than one argument, concatenate the arguments as such:

#expr Exec(BatchFilePath, MyOutputDir + " " + MyAppName + " " + MyAppVersion)

so it is still Exec([targetfile],[stringofarguments])

Hope this helps

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael Riley

79117566

Date: 2024-10-23 10:46:40
Score: 6.5 🚩
Natty:
Report link

See the below images @Venkat V enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

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

79117559

Date: 2024-10-23 10:43:39
Score: 1.5
Natty:
Report link

I'm using milanmk/actions-file-deployer for this. You can read more here https://medium.com/@irina.grigoryan97/automatically-deploy-files-from-github-to-a-server-using-sftp-and-github-actions-d1c7761f5d97

# This is a composite GitHub Action (Linux runner) 
# for deploying repository content to remote server
  - name: SFTP-Deploy-Action
    uses: milanmk/actions-file-deployer@master
    with:
      remote-protocol: sftp

      # Credentials for SFTP access to server using GitHub secrets
      remote-host: ${{ secrets.FTP_HOST }}
      remote-user: ${{ secrets.FTP_USER }}
      remote-password: ${{ secrets.FTP_PASSWORD }}

      # Path for specific folder on server for files deployment
      remote-path: /test.net/deploy-test

      # Port for SFTP access to server
      remote-port: 221
Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Irina Grigoryan

79117555

Date: 2024-10-23 10:43:39
Score: 1.5
Natty:
Report link

The model that you want to use - meta.llama3-2-11b-instruct-v1:0 can only be invoked with inference profile - us.meta.llama3-2-11b-instruct-v1:0.

model_id = 'us.meta.llama3-2-11b-instruct-v1:0'

See https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html for details.

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

79117548

Date: 2024-10-23 10:41:39
Score: 2.5
Natty:
Report link

I heard from AWS support about this.

I would like to inform you that, we have a size limit on the MSK cluster policy and the max size/character limit is 20k.

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

79117543

Date: 2024-10-23 10:40:38
Score: 3
Natty:
Report link

You need to re-render the child component. livewire document

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

79117528

Date: 2024-10-23 10:34:36
Score: 2
Natty:
Report link

In macos, I enabled this value timeout 60in /usr/local/etc/redis.conf.

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

79117524

Date: 2024-10-23 10:33:36
Score: 3
Natty:
Report link

Ensure Autocomplete is Enabled: Go to Preferences (or Settings on macOS) > Editor > General > Code Completion. Make sure Autopopup code completion is checked.

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

79117523

Date: 2024-10-23 10:33:36
Score: 14.5
Natty: 7
Report link

I also have the same error, do you have any solution?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1): I also have the same error
  • RegEx Blacklisted phrase (2.5): do you have any
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I also have the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Minh Yến

79117510

Date: 2024-10-23 10:30:35
Score: 3
Natty:
Report link

SID - Individual/Solicitor - Error messages are not matching with the sketch under Create Notifier section

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

79117509

Date: 2024-10-23 10:30:35
Score: 2
Natty:
Report link

Hi we are struggling with exactly the same issue now. We have a lazy loaded modal and we do not really want to provide its store to parent route. Mb createEnvironmentInjector is really an option.. But there is not enough documentation what exactly createEnvironmentInjector do.

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

79117502

Date: 2024-10-23 10:28:34
Score: 1.5
Natty:
Report link

I started to see this warning after upgrading Next JS

If your using Next JS, in next.config.js comment out any configuration for webpack then run: npm run dev

This removed the warning for me, in my case the webpack config wasn't vital and I could live without it, but if you need to keep that config then this may not be helpful.

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

79117500

Date: 2024-10-23 10:27:34
Score: 2.5
Natty:
Report link

This could happen because you are trying to prefetch same amount of pages as your page size.

Try changing prefetchDistance to 1.

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

79117498

Date: 2024-10-23 10:27:34
Score: 7
Natty: 8
Report link

how can I get the data on the tree dynamically from the sql server?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how can I
  • Low reputation (1):
Posted by: CodeWithJnr

79117491

Date: 2024-10-23 10:24:33
Score: 0.5
Natty:
Report link

As of now is not possible to use Private Endpoint for Amazon Cognito and I don't know if it will ever be.

I think that the only possible solution is to proxy all the requests to Amazon Cognito using an AWS Private API Gateway.

You can create a private gateway with {proxy+} resource and ANY method, and then in the integration request use an HTTP Integration with the Cognito User Pool domain.

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mario Agati

79117490

Date: 2024-10-23 10:24:33
Score: 1.5
Natty:
Report link

The following site from Apple has the exact dimensions for all platforms: https://developer.apple.com/help/app-store-connect/reference/screenshot-specifications

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

79117487

Date: 2024-10-23 10:23:32
Score: 0.5
Natty:
Report link

I am using rtk 2.2.5 and it works by changing "body" to "data"

query: (data) => {
    const formData = new FormData();
    formData.append('file', data.file);
    return ({
        url: `url here`,
        method: 'POST',
        data: formData, // previously it was -> body: formData
    })
},
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhammad Tahir Ali

79117483

Date: 2024-10-23 10:22:32
Score: 1
Natty:
Report link

One workaround I have found is to create a silent Wave object directy as follows:

sr = 22050
silence_length <- 1.5
silent_samples <- rep(0, sr * silence_length)
padding <- tuneR::Wave(left = silent_samples, bit = 16, samp.rate = sr)

But the original question remains about whether tuneR::silence() with bit=16 should work.

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

79117472

Date: 2024-10-23 10:18:30
Score: 2.5
Natty:
Report link

Please note that if you tried with a Visa/MasterCard it will not work, as transactions made using VISA and MasterCard can be processed only via PayPal, by either linking the card to an existing PayPal account or using the Guest Checkout option, if available.

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

79117468

Date: 2024-10-23 10:17:28
Score: 10 🚩
Natty: 4
Report link

Sorry, have you been able to resolve this issue? I am currently facing the same problem but haven't found a solution yet.

Reasons:
  • Blacklisted phrase (1.5): have you been able to
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • RegEx Blacklisted phrase (1): haven't found a solution
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thao Phuc

79117465

Date: 2024-10-23 10:17:28
Score: 2.5
Natty:
Report link

Now in 2024 there are AI tools that allow to perform code analysis like this, for example TimeComplexity.ai. Granted, it is an AI tool so it's probably worth checking it yourself if accuracy of the answer is important, but for a quick and easy evaluation for personal use it might be pretty good.

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

79117458

Date: 2024-10-23 10:16:27
Score: 1.5
Natty:
Report link

There are configurations available in ADF to generate and save log files to a datalake container:

Refer: https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-log?tabs=data-factory

How to capture the each activity logs in the table in adf:

Refer: https://learn.microsoft.com/en-us/answers/questions/1922633/how-to-capture-the-each-activity-logs-in-the-table

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

79117452

Date: 2024-10-23 10:14:27
Score: 1.5
Natty:
Report link

I tried with

docker exec -it <app-container-name> sh
ls -al <your/root/directory>

Quit current shell, use

ctrl+d
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Momen

79117451

Date: 2024-10-23 10:13:26
Score: 3
Natty:
Report link

Python 3.8 or Python 3.9 is typically a safe choice for compatibility with CUDA 12 and cuDNN 8. try to use python 3.8 or 3.9 in place of 3.10

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

79117449

Date: 2024-10-23 10:13:26
Score: 1
Natty:
Report link

In my case I cloned repo and used npm install to install packages and then mui types issue occurred. To resolve this I tried yarn install, this worked for me.

Reasons:
  • Whitelisted phrase (-1): this worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shridhar

79117448

Date: 2024-10-23 10:13:26
Score: 1
Natty:
Report link

For iOS 17:

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

79117432

Date: 2024-10-23 10:07:23
Score: 6 🚩
Natty:
Report link

What kind of database do you use? Is tableA indexed?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What kind of
  • Low reputation (1):
Posted by: Claudio

79117419

Date: 2024-10-23 10:04:22
Score: 2.5
Natty:
Report link

If you want to zip a small data, use the above code. Else if big data, must try ec2 or else don't do anything stupud! :D

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

79117411

Date: 2024-10-23 10:02:21
Score: 2
Natty:
Report link

The problem described above was not related to gunicorn. It was a very different problem.

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

79117404

Date: 2024-10-23 10:00:21
Score: 3
Natty:
Report link

Go to Edit > Project Settings > Other settings. Enable auto graphics API. You can also try some setting like Disable Multithreaded Rendering.

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

79117399

Date: 2024-10-23 09:59:20
Score: 3
Natty:
Report link

add Platform.enterNestedEventLoop("main") in the last line of Platform.runLater{}

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

79117375

Date: 2024-10-23 09:54:19
Score: 3
Natty:
Report link

I have the same issue on k8s. 8 Hours continous efforts reveles that i have PVC decleared in helm chart twice. just commit it. apiVersion: apps/v1 kind: Deployment metadata: annotations: kompose.cmd: kompose convert -f cctv.yaml --chart kompose.version: 1.34.0 (cbf2835db) labels: io.kompose.service: cctvfe name: cctvfe spec: replicas: 1 selector: matchLabels: io.kompose.service: cctvfe strategy: type: Recreate template: metadata: annotations: kompose.cmd: kompose convert -f cctv.yaml --chart kompose.version: 1.34.0 (cbf2835db) labels: io.kompose.service: cctvfe spec: containers: - image: registry.kurl.svc.cluster.local/cctv-fe:{{ .Values.image.tag }} name: cctvfe ports: - containerPort: 80 protocol: TCP volumeMounts: #- mountPath: /usr/share/nginx/html # name: cctvfe-claim0 #- mountPath: /etc/nginx/nginx.conf # subPath: nginx.conf # name: cctvfe-claim1 - mountPath: /etc/localtime name: cctvfe-cm2 readOnly: true subPath: localtime imagePullSecrets: - name: regcred restartPolicy: Always volumes: #- name: cctvfe-claim0 # persistentVolumeClaim: # claimName: cctvfe-claim0 #- name: cctvfe-claim1 # persistentVolumeClaim: # claimName: cctvfe-claim1 - configMap: items: - key: localtime path: localtime name: cctvfe-cm2 name: cctvfe-cm2

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

79117371

Date: 2024-10-23 09:53:18
Score: 1.5
Natty:
Report link

I was able to resolve the issue by updating the dockr-compose.yaml, where removing the volumes in the different services.

I found the answer based on this suggestion

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: M.G.S SUPUNTHAKA

79117366

Date: 2024-10-23 09:50:18
Score: 0.5
Natty:
Report link

The old file is being deleted from a different directory than where the test is running. To fix it:

old_file_path = Path(sample.test_suite.path)
if old_file_path.exists():
    old_file_path.unlink()
new_file_path = Path(sample.test_suite.path)

This should fix the issue because:

It uses the actual paths from Django's model instead of constructing them It properly cleans up the old file using the correct path.

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

79117352

Date: 2024-10-23 09:47:17
Score: 4
Natty:
Report link

is anybody find solution for this issue

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

79117348

Date: 2024-10-23 09:46:16
Score: 2.5
Natty:
Report link

You need to use bs58.default.decode(PRIVATE_KEY) instead of bs58.decode(PRIVATE_KEY)

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

79117336

Date: 2024-10-23 09:43:15
Score: 1.5
Natty:
Report link

You might be using version 1. Kamal introduced some changes to secrets in version 2. According to Kamal upgrade docs Secrets moved from .env/.env.rb to .kamal/secrets. Also kamal env push is not a valid command in version 2.

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

79117333

Date: 2024-10-23 09:42:15
Score: 2.5
Natty:
Report link

For me, I tried all the above and the solution was when I updated xcode to the latest version

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

79117331

Date: 2024-10-23 09:42:15
Score: 1.5
Natty:
Report link

The config you are mentioning is for tool called otb (OTEL Collector Builder) which uses this config to build the binary of the custom collector. The binary you are using this config on is one of the standard distribution. This is not supposed to work. The collector config itself has different structure.

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

79117327

Date: 2024-10-23 09:41:15
Score: 2.5
Natty:
Report link

The order of the members in the message definition and the generated C++ header file is not guaranteed to be the same in Protobuf.

This is because the Protocol Buffers compiler optimizes the generated code for efficiency and performance, and the order of the fields may be rearranged to achieve better memory layout and access patterns.

Thus you should never depend on the order of member variables, for example in an initializer list:

const M m_instance{1.,0.};  //  Which is which now?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chris

79117324

Date: 2024-10-23 09:41:15
Score: 2
Natty:
Report link

I resolve this issued

  1. Install : java 11 and 17
  2. Configuration : export JAVA_HOME=$(/usr/libexec/java_home -v 17) on mac OS
  3. Configuration flutter : flutter config --jdk-dir=$JAVA_HOME
  4. run : flutter doctor for check result.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Baby Love

79117315

Date: 2024-10-23 09:39:14
Score: 1.5
Natty:
Report link

Accessing apps over environments and vnets.

Here is an approach for setting up secure communication between Azure Container Apps A and B across different environments and VNETs

The following setup ensure the connection between the vnets and allows communciations using FQDNs without dynamic IPs which is mentioned in your approach.

My configuration:

resource "azurerm_virtual_network_peering" "peer_a_to_b" {
  name                      = "peer-a-to-b"
  resource_group_name        = azurerm_resource_group.rg_app_a.name
  virtual_network_name       = azurerm_virtual_network.vnet_a.name
  remote_virtual_network_id  = azurerm_virtual_network.vnet_b.id
  allow_virtual_network_access = true
}

resource "azurerm_virtual_network_peering" "peer_b_to_a" {
  name                      = "peer-b-to-a"
  resource_group_name        = azurerm_resource_group.rg_app_b.name
  virtual_network_name       = azurerm_virtual_network.vnet_b.name
  remote_virtual_network_id  = azurerm_virtual_network.vnet_a.id
  allow_virtual_network_access = true
}

resource "azurerm_log_analytics_workspace" "log_analytics" {
  name                = "log-analytics-demo"
  resource_group_name = azurerm_resource_group.rg_app_a.name
  location            = azurerm_resource_group.rg_app_a.location
  sku                 = "PerGB2018"
  retention_in_days   = 30
}

resource "azurerm_container_app_environment" "env_a" {
  name                       = "container-env-a"
  location                   = azurerm_resource_group.rg_app_a.location
  resource_group_name        = azurerm_resource_group.rg_app_a.name
  infrastructure_subnet_id   = azurerm_subnet.subnet_a.id
  log_analytics_workspace_id = azurerm_log_analytics_workspace.log_analytics.id
}

resource "azurerm_container_app_environment" "env_b" {
  name                       = "container-env-b"
  location                   = azurerm_resource_group.rg_app_b.location
  resource_group_name        = azurerm_resource_group.rg_app_b.name
  infrastructure_subnet_id   = azurerm_subnet.subnet_b.id
  log_analytics_workspace_id = azurerm_log_analytics_workspace.log_analytics.id
}

resource "azurerm_container_app" "app_a" {
  name                         = "container-app-a"
  resource_group_name          = azurerm_resource_group.rg_app_a.name
  container_app_environment_id = azurerm_container_app_environment.env_a.id
  revision_mode                = "Single"

  ingress {
    external_enabled           = false
    target_port                = 80
    allow_insecure_connections = false

    traffic_weight {
      percentage      = 100
      latest_revision = true
    }
  }

  template {
    container {
      name   = "appvksba"    # Updated to comply with naming restrictions
      image  = "${azurerm_container_registry.registry.login_server}/mycontainer:latest"
      cpu    = 0.25
      memory = "0.5Gi"
    }
  }

  depends_on = [ azurerm_private_dns_zone.dns_zone ]
}

resource "azurerm_container_app" "app_b" {
  name                         = "container-app-b"
  resource_group_name          = azurerm_resource_group.rg_app_b.name
  container_app_environment_id = azurerm_container_app_environment.env_b.id
  revision_mode                = "Single"

  ingress {
    external_enabled           = false
    target_port                = 80
    allow_insecure_connections = false

    traffic_weight {
      percentage      = 100
      latest_revision = true
    }
  }

  template {
    container {
      name   = "appvksbb"   
      image  = "${azurerm_container_registry.registry.login_server}/mycontainer:latest"
      cpu    = 0.25
      memory = "0.5Gi"
    }
  }
  depends_on = [ azurerm_private_dns_zone.dns_zone ]
}

resource "azurerm_private_dns_zone" "dns_zone" {
  name                = "privatelink.internal"
  resource_group_name = azurerm_resource_group.rg_app_a.name
}

resource "azurerm_private_dns_zone_virtual_network_link" "vnet_a_link" {
  name                  = "vnet-a-link"
  resource_group_name   = azurerm_resource_group.rg_app_a.name
  private_dns_zone_name = azurerm_private_dns_zone.dns_zone.name
  virtual_network_id    = azurerm_virtual_network.vnet_a.id
}

resource "azurerm_private_dns_zone_virtual_network_link" "vnet_b_link" {
  name                  = "vnet-b-link"
  resource_group_name   = azurerm_resource_group.rg_app_a.name
  private_dns_zone_name = azurerm_private_dns_zone.dns_zone.name
  virtual_network_id    = azurerm_virtual_network.vnet_b.id
}

resource "azurerm_private_dns_cname_record" "app_b_cname" {
  name                = "appvksbb"
  zone_name           = azurerm_private_dns_zone.dns_zone.name
  resource_group_name = azurerm_resource_group.rg_app_a.name
  record              = azurerm_container_app.app_b.latest_revision_fqdn
  ttl                 = 300
}

enter image description here

enter image description here

enter image description here

this much better approach as this using VNET peering and private DNS ensures stable internal routing wthout relying on dynamic IPs.

Refer:

https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network_peering

https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=workload-profiles-env%2Cazure-cli

Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Vinay B

79117311

Date: 2024-10-23 09:39:14
Score: 4
Natty:
Report link

The measure you are using should work.

enter image description here

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

79117310

Date: 2024-10-23 09:38:14
Score: 2.5
Natty:
Report link

I found a workaround where i can use strftime_l() and just call it with localisation argument NULL.

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

79117308

Date: 2024-10-23 09:38:14
Score: 1.5
Natty:
Report link

You have to use svg elements in your jsx. Here is the updated code:

const renderLabel = (props: any) => {
    return <text>props.value</text>;
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Benjamin L.

79117299

Date: 2024-10-23 09:36:13
Score: 9.5
Natty: 7.5
Report link

Were you able to find a solution for this?

Reasons:
  • RegEx Blacklisted phrase (1): Were you able to find a solution
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tanuj Unadkat

79117280

Date: 2024-10-23 09:32:12
Score: 0.5
Natty:
Report link

A status code 400 means your request itself failed, so you need to fix that first.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Peter Thomas

79117274

Date: 2024-10-23 09:32:12
Score: 1.5
Natty:
Report link

Use pg_dump with tar format.

pg_dump --dbname=postgresql://username:[email protected]:5432/dbname --format=t > dump.tar

Afterwards you can restore also in DBeaver tar format.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Сергій Ярмоленко

79117273

Date: 2024-10-23 09:32:12
Score: 0.5
Natty:
Report link

The reason you can't access var outside the functions even though you're using the global keyword, is that the global declaration only tells python to use the global var inside the functions and not to define it in the global scope (outside the functions), which is why you get a NameError when you try to access it elsewhere.

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

79117271

Date: 2024-10-23 09:31:12
Score: 2
Natty:
Report link

dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true

if i run the command everything works fine. But the .exe is not self contained. I cant run it without the other files

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

79117249

Date: 2024-10-23 09:25:09
Score: 5.5
Natty: 5.5
Report link

any latest news about this - I think MS did some hard-work to get the VSCode "AL Code" extension plug-in work for linux.. right?

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: wic70

79117223

Date: 2024-10-23 09:19:07
Score: 2.5
Natty:
Report link

How big are the files that you fetch? Did you check the lambda logs in Cloudwatch? I am guessing your task is timing out because the default configuration sets the timeout to something like 3s.

You can try increasing the timeout value for the lambda function from the General Configuration tab.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: sxm1972

79117221

Date: 2024-10-23 09:19:07
Score: 0.5
Natty:
Report link
public record Point(int x, int y) {
    public Point {
        if (x > y) {
            int min = y;
            y = x;
            x = min;
        }
    }
}

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

79117215

Date: 2024-10-23 09:16:07
Score: 2
Natty:
Report link

After analysing my code, I found that the problem was the logic I was trying to implement - the link inside the Future<CategoriesResponse> getCategories() should have been the link to the server that formats data to blocks that the app is expecting, and not to the JSON data source.

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

79117213

Date: 2024-10-23 09:15:06
Score: 4
Natty: 4
Report link
window.location.hash = 'yourhash'
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: GMAN

79117202

Date: 2024-10-23 09:12:05
Score: 1.5
Natty:
Report link

For 2) Look at "realm settings"->"security defense"->"brute force detection" For 1&3) Look at "Authentication"->"policies"->"Password policy" but to achive what you want you have to implement your own policy

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

79117198

Date: 2024-10-23 09:11:05
Score: 0.5
Natty:
Report link

No. You can't.

Database connections are tightly connected with Users. You need to create multiple connections with different different username and passwords. I can feel your pain but it is not possible. I am also using multiple databases for multiple applications and environments within single database server. For security purpose staging and production users are different and app users are also different.

Short way is: Use can create new user who have access of all those Databases but it is not recommended for all team members.

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

79117195

Date: 2024-10-23 09:11:05
Score: 3
Natty:
Report link

Basically I used the same code as you did, and I changed the radius of the scatter plot to 1.05. Then it looks good for me.

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

79117192

Date: 2024-10-23 09:10:05
Score: 3
Natty:
Report link

inside head tag in viewport add maximum-scale=1 solve this problem

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

79117161

Date: 2024-10-23 09:04:03
Score: 1.5
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ranushka Lakmal Sankalpa

79117160

Date: 2024-10-23 09:03:03
Score: 3.5
Natty:
Report link

Same, didn't figure out a solution yet..

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

79117159

Date: 2024-10-23 09:03:01
Score: 6 🚩
Natty: 5.5
Report link

did you have any response for yo issue ?

Reasons:
  • 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 have any
  • Low reputation (1):
Posted by: Nicolas Bellot

79117158

Date: 2024-10-23 09:03:00
Score: 1
Natty:
Report link

Adding to the scruss's valuable answer, I should say in order to use xmltok:

  1. First it must be installed from PyPI (link)
  1. Then use it via import xmltok
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Omid Ataollahi

79117155

Date: 2024-10-23 09:01:00
Score: 4.5
Natty:
Report link

Delete var/cache/* and it will work

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

79117150

Date: 2024-10-23 08:59:59
Score: 2
Natty:
Report link

try removing follow=True to see exactly where the initial redirect leads and why the login page is displayed.

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

79117149

Date: 2024-10-23 08:59:59
Score: 3.5
Natty:
Report link

When we register a phone number using the WhatsApp Business API, the number appears as connected in the WhatsApp Manager of our application. When we de-register the number using the de-register API, the status changes to offline. However, if we try to register the same number again, it shows that the number is still associated with the account.

To completely remove the number, we have to delete it from the WhatsApp Manager manually. After some time, it is removed from there, and only then can we reuse the number.

Is there an API that allows us to delete the phone number directly from the WhatsApp Manager, so we don't have to remove it each time manually?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When we
  • Low reputation (1):
Posted by: Aman Dubey

79117147

Date: 2024-10-23 08:58:59
Score: 1.5
Natty:
Report link

Found it. The reason is this commit and issue HHH-17759

The new check Character.isJavaIdentifierStart( sqlString.charAt( indx + 1 ) results in false, e.g. for the "special" @ character. Because of this a named parameter is not extracted any longer at all.

I wonder why the @ - which is ubiquious in sql server for parameters - is not allowed here any more.

To work around this I need to replace the @ containing parameters throughout my code. Thanks :-(

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nicole Schmitz

79117137

Date: 2024-10-23 08:55:58
Score: 0.5
Natty:
Report link

Use brew installer instead:

  1. Uninstall cocoapods by run this in terminal
gem uninstall cocoapods
  1. Install cocoapods with brew:
brew install cocoapods

Or if you use Apple M1 you can try install by this command line

arch -x86_64 brew install cocoapods
arch -x86_64 brew reinstall cocoapods

Reference: Github Issue

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

79117128

Date: 2024-10-23 08:53:58
Score: 1
Natty:
Report link

You're running an incorrect command next run build.

Use npm run build instead to make it work. The "Build command" setting can be found in Settings > General in your Vercel project.

vercel-setting

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

79117127

Date: 2024-10-23 08:53:58
Score: 1
Natty:
Report link

In the end I just use the standard serializationLibrary which is GSON. With it there are no problems with unknownProperties.

configOptions.set(
    mapOf(
        Pair("dateLibrary", "java8"),
        Pair("enumPropertyNaming", "UPPERCASE"),
    ),
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tilman Rossmy

79117124

Date: 2024-10-23 08:52:58
Score: 2.5
Natty:
Report link

Connect to your database and Create the database by hand. Rerun Keycloak. Worked for me

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user27946028

79117115

Date: 2024-10-23 08:48:57
Score: 0.5
Natty:
Report link

As demonstrated in There is no difference in search speed between CPU and GPU on a million-level dataset GPU has two additional steps:

  1. target vector copied from CPU memory to GPU memory

  2. result copied from GPU memory to CPU memory

"There are additional time costs associated with transferring data between CPU memory and GPU memory.

The primary benefit of using a GPU for searching is its ability to handle large NQ searches effectively due to its powerful parallel computing capabilities.

For smaller datasets and NQ searches, there is not much difference between CPU indexing and GPU indexing."

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

79117113

Date: 2024-10-23 08:48:57
Score: 2.5
Natty:
Report link

Remix djkr xhc zi the same thi j js**

`

  1. strong text

`

**

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

79117099

Date: 2024-10-23 08:43:56
Score: 0.5
Natty:
Report link

To check if it's really from an extension, run the server (or app) in an incognito tab. If the error is still persists, probably its not from the extensions but some resource files not referenced properly.

If it helps, leave a thumps up 👍!

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

79117092

Date: 2024-10-23 08:41:56
Score: 1
Natty:
Report link

You are using socket.io on server side, but seems you are not using socket.io on the client side in your code. I think That 's why your code works with your html file but not in this java client code.

As explained in the "What Socket.IO is not" section, the Socket.IO client is not a WebSocket implementation and thus will not be able to establish a connection with a WebSocket server, even with transports: ["websocket"]:

https://socket.io/docs/v4/troubleshooting-connection-issues/#you-are-trying-to-reach-a-plain-websocket-server

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

79117083

Date: 2024-10-23 08:38:55
Score: 0.5
Natty:
Report link

Since 2019 it has been possible to search using wildcards as requested by the OP.

e.g. find issues where

issueType = Epic
AND fixVersion ~ "Release_to_includ*"
AND fixVersion !~ "Release_to_exclud*"

For more complex (RegEx-powered) string filtering, see grundic's answer (which leverages ScriptRunner).

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

79117074

Date: 2024-10-23 08:36:54
Score: 2
Natty:
Report link

strong textLogo

One More Step! In order to process your request, our ID verification process requires that we verify that this email belongs to you and that you intended to submit this request. Please check your email for confirmation, click confirm, and we will start processing your request.

Powered By OneTrust Stack Exchange, Inc

14 Wall Street, 20th Floor, New York, NY 10005

[email protected] phone: +1 212-232-8280

Request Submitted. One More Step!In order to process your request, our ID verification process requires that we verify that this email belongs to you and that you intended to submit this request. Please check your email for confirmation, click confirm, and we will start processing your request.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Javedali

79117064

Date: 2024-10-23 08:32:53
Score: 1.5
Natty:
Report link

If you want to remove the hover effect while retaining the table borders:

$.extend($.fn.bootstrapTable.defaults, {classes:'table table-bordered'});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter Palvolgyi

79117059

Date: 2024-10-23 08:31:51
Score: 6.5 🚩
Natty: 5.5
Report link

excuse me, if I want resample by ISO week, is it work if setting 'W-MON'?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user27296211

79117054

Date: 2024-10-23 08:29:50
Score: 3.5
Natty:
Report link

When installing react-datepicker, make sure to use the following command:

npm install react-datepicker --legacy-peer-deps 

This option resolved the dependency issues for me. If you're facing similar problems, I highly recommend trying it out! It helps maintain compatibility with older peer dependencies while installing.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar problem
  • Starts with a question (0.5): When in
  • Low reputation (1):
Posted by: Kyrylo Tretiakov

79117052

Date: 2024-10-23 08:29:50
Score: 1
Natty:
Report link

<VCombobox :value="props.value" :items="dataList">
  <template #item="{ props }">
      <VListItem
        v-bind="props"
        @click="handleOnSelect(props?.value)"
      />
    </template>
</VCombobox>

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

79117046

Date: 2024-10-23 08:27:50
Score: 1.5
Natty:
Report link

Consider using Kotlin's use function to automatically close the FileOutputStream. And Ensure that you have the necessary permissions to write to external storage, especially for Android 10 (API level 29) and above, where scoped storage is enforced. Plus Ensure FileOutputStream is closed in a finally block to prevent resource leaks. Source:-chatgpt

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

79117040

Date: 2024-10-23 08:24:47
Score: 9 🚩
Natty: 4.5
Report link

Did you fix your problem? I am running into the same issue.

Reasons:
  • RegEx Blacklisted phrase (3): Did you fix your problem
  • RegEx Blacklisted phrase (1.5): fix your problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you fix you
  • Low reputation (1):
Posted by: Yuan Zeng

79117033

Date: 2024-10-23 08:23:46
Score: 3
Natty:
Report link

Not true, once the job has been removed (retreived) from any one of the servers, it is immediately removed from the aws sqs queue, therefor the job in the queue wouldnt run more than once.

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

79117017

Date: 2024-10-23 08:20:45
Score: 1
Natty:
Report link

Answer by @Wickramaranga should be the accepted one, works like a charm and is inbuilt to the current elysia version as of writing this.

 .use(
    staticPlugin({
      prefix: '/subfolder/if/needed/',
      alwaysStatic: true,
      indexHTML: true, // <--
    }),
  )

This way we dont need to have additional route for serving index.html for all routes or base routes, plus all the files are served correctly, in other approaches, if you point * to index.html as route, assets files are also overwritten by the index.html serve logic for some reason.

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

79117010

Date: 2024-10-23 08:17:45
Score: 2.5
Natty:
Report link

One solution could be making a bash script that took your whole command and just replace "A/B/Your_branch" by "AAA/BBB/Your_branch" then just alias the call of the script with something that you can easily call.

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

79117003

Date: 2024-10-23 08:15:44
Score: 3.5
Natty:
Report link

Already resolved. see the explanation under "further investigation" in the main body

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

79116996

Date: 2024-10-23 08:13:44
Score: 0.5
Natty:
Report link

Descructuring module into an object does seem to resolve the issue:

import * as module from 'module';

const obj = { ...module };

Now the obj can be stubbed and spied on with sinon.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vladimír Gorej

79116990

Date: 2024-10-23 08:12:44
Score: 1
Natty:
Report link

It's enough (to disable swipes) only with this code line in .js file:

window.addEventListener("touchmove", function (e) {
    e.preventDefault();
}, { passive: false });

P.S. Tested only on Chrome.

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