79173449

Date: 2024-11-09 18:40:26
Score: 1.5
Natty:
Report link

In my case, I needed to increase both Bundle and Build value under General -> Identity.

Xcode: Version 16.1 (16B40).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: litbe

79173448

Date: 2024-11-09 18:39:26
Score: 1
Natty:
Report link

Short answer:

Most likely, Yes. The phrases like are:

Long answer:

So, to answer the question, "[Is there an] umbrella term to refer to both operator precedence and associativity?", please consider below:

I would say, yes, there is such an umbrella term for such programming phrases. After some digging, I might be able to answer my own question that was posted here on stack exchange. This answer will be provided from two angles)

Commonsense Angle (Ad-hoc/Working Solution)

Without considering authoritative and/or official documentation, one may use a commonsense ad-hoc term such as "order of operations". This phrase, in itself, is virtually self-explanatory and most would understand that this likely refers to concepts such as operator associativity and/or operator precedence and borrows from the mathematical concept as it pertains to the BEDMA mnemonic. So, commonsense wise, "Order of Operations" is a sufficient ad-hoc umbrella term.

Documentation-derived Angle (Best Fit/Most Probable Solution)

After scouring through the documentation (the online CPP reference guide), it seems that the term is most likely "Sequence Rules".

Conclusion:

Yes, the best answer is "Sequence Rules", which is followed by the commonsense answer of "order of operations".

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

79173427

Date: 2024-11-09 18:25:23
Score: 1.5
Natty:
Report link

The problem is that when you copy the Player object, the Vector of Hero objects still points to the same heroes as the original Player. So when you add the copied heroes, they end up showing up twice.

To fix this, just create a new Vector for each player's heroes when you're copying, so that the new Player gets its own heroes.

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

79173426

Date: 2024-11-09 18:25:21
Score: 6 🚩
Natty: 4.5
Report link

I have same problem , when i start project it is not happening . I don't know when it start , may be because I install some more npm packages , I am sure but this is very irritating . my project is not finish and every time i start it take too long .

Reasons:
  • Blacklisted phrase (1): I have same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jaimin Detroja

79173416

Date: 2024-11-09 18:19:19
Score: 3.5
Natty:
Report link

Here is another option that sets Sublime Text 4 as the default text viewer app.

https://apple.stackexchange.com/a/123954

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

79173411

Date: 2024-11-09 18:16:19
Score: 1.5
Natty:
Report link

Why Apple has these two APIs:

navigationBar is iOS/iPad only and toolbar works on macOS (as well as both iOS/iPad). toolbar in SwiftUI is the way to go forward as navigationBar is being deprecated and toolbar works for all target development.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why
  • Low reputation (1):
Posted by: nepheline

79173396

Date: 2024-11-09 18:06:17
Score: 0.5
Natty:
Report link

There is no need to import the file into component you can only add the address to src of anchor tag.

<a
    href={./documents/policy.pdf}
    className={styles.footer__link}
    target="_blank"
    rel="noopener noreferrer"
>
    Policy
</a>;

you can Add download property for downloading the file.

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

79173394

Date: 2024-11-09 18:05:17
Score: 1
Natty:
Report link

you could try:

if (int.TryParse(input, out tinggi))
{
    ...code here
}
else
{
    Console.WriteLine("something in that language");
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cristian-Alexandru SANDU

79173377

Date: 2024-11-09 17:58:15
Score: 0.5
Natty:
Report link

Update for .Net 8 You can deserialize automatically to custom types without using JsonSerializer or similar. My custom type here is corpus_g. My Json is corpora: [{corpus_g object}]

return _configuration
.GetSection("gemini_api")
.GetSection("corpora")
.Get<corpus_g[]>().FirstOrDefault();//
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: heyyy

79173373

Date: 2024-11-09 17:56:15
Score: 0.5
Natty:
Report link

Your Controller will be like:

#[Route('/place_payment/{id}', name: 'place_payment', methods: ['GET', 'POST'])]
public function addPayment(Request $request, Place $place, int $id): Response
    {
        $idPayment = (int) $request->query->get('idPayment');

And your TWIG will be like:

{% for payment in existingPayments %}
   <a href="{{ path('user_place_payment', {'id': place.id, 'idPayment': payment.id }) }}">{{ payment.name }} - delete this payment method</a><br><br>
{% endfor %} 
{% for payment in missingPayments %}
    <a href="{{ path('user_place_payment', {'id': place.id, 'idPayment': payment.id }) }}">{{ payment.name }} - add this payment method</a><br><br>
{% endfor %} 

So, you get URL like your_server/place_payment/103?idPayment=3

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

79173370

Date: 2024-11-09 17:55:14
Score: 1.5
Natty:
Report link

I've found the solution.

Since the redirect is still in place the actual data is never outputted. When I exit(0) after the stream, then the PDF is outputted.

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

79173337

Date: 2024-11-09 17:36:10
Score: 3
Natty:
Report link

on Shared Hosting server's like hostinger becareful as it's case sensitive. use FPDF.php instead of fpdf.php

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

79173336

Date: 2024-11-09 17:36:10
Score: 1
Natty:
Report link
@Configuration
public class WebConfig implements WebMvcConfigurer {
   @Override
   public void addResourceHandlers(ResourceHandlerRegistry registry) {
      registry.addResourceHandler("/webjars/**")
            .addResourceLocations("classpath:/META- 
 INF/resources/webjars/");
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Khayrul Hasan

79173334

Date: 2024-11-09 17:35:09
Score: 0.5
Natty:
Report link

Your db-service Service is of type ClusterIP. That's why you are not able to reach it from external access point.

I can also ping the pod from another pod, and I always receive the packets back

For this same reason, you are able to reach that from another pod within the cluster.

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

79173322

Date: 2024-11-09 17:32:08
Score: 5.5
Natty: 8
Report link

same timeerror in ray happened when i use ray.init() in python, and i have not find any solutions in web, i wonder if you have found any solutions to fix it, rencently, thx.

Reasons:
  • Blacklisted phrase (1): thx
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Macintosh Paul

79173312

Date: 2024-11-09 17:25:07
Score: 2.5
Natty:
Report link

const checkoutHandler = ()=>{ navigate('/login?redirect=/shipping')

}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user3159368

79173308

Date: 2024-11-09 17:24:06
Score: 1
Natty:
Report link

The problem seems to be that Google Cloud Run doesn't support per-session files, as the service is stateless by default. Solutions include:

Switch to Redis or Firestore for Sessions: Set SESSION_DRIVER=redis (or another central store)

in .env. Redis can be configured with Google's Memorystore, or Firestore can be used with custom setups.

SESSION_DRIVER=redis
REDIS_HOST=your-redis-host
REDIS_PASSWORD=your-redis-password
REDIS_PORT=6379

Set SESSION_DRIVER=cookie: If Redis is not in place, use Cookie Sessions: store session data in encrypted cookies-should be good enough for smaller data.

Set Secure Configs: Insure SESSION_DOMAIN and SESSION_SECURE_COOKIE=true in .env if using a custom domain and HTTPS.

Check CSRF: Ensure your forms include @csrf even if CSRF is disabled on certain routes.

Flush the config and cache after modification

php artisan config:cache 
php artisan cache:clear
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @csrf
  • Low reputation (1):
Posted by: Sathish

79173295

Date: 2024-11-09 17:20:05
Score: 2.5
Natty:
Report link

I have the same problem with desktop application (target framework is net8.0).
The Debug configuration runs without any problem. But Release configuration suddenly gives the following error:
Error message

My application uses Microsoft.NETCore.App framework version 8.0.10:
App framework

Output of 'dotnet --list-runtimes' command is:

Microsoft.AspNetCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

My project is located in regular folder, not OneDrive.

Here is the content of MyApp.runtimeconfig.json file located in the output Release folder near MyApp.exe:

{
  "runtimeOptions": {
    "tfm": "net8.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    },
    "configProperties": {
      "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
      "System.Runtime.InteropServices.BuiltInComInterop.IsSupported": true,
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
      "System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": false
    }
  }
}
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Sergey

79173293

Date: 2024-11-09 17:20:05
Score: 2.5
Natty:
Report link

to get rid of this you must use -crlf option with openssl and give a new line after period(.). let me know if it doesn't work

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

79173291

Date: 2024-11-09 17:19:05
Score: 1
Natty:
Report link

I also tried linking against libopenblas.a from the precompiled binaries from the OpenBlas Repo - same as above.

I got this wrong. Adding libopenblas.a in target_link_libraries did not work. However using

SET(OPENBLAS_LIBRARY ${dir_to_lib}/libopenblas.a)

to link OpenBLAS did the Job for me. Looks like SAF needs OPENBLAS_LIBRARY set to work correctly. FetchContent didn't set any library variable for BLAS, unlinke find_package usually would.

I assume that LAPACK on Github contains a different implementation of BLAS and not OpenBLAS.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: TheBaum

79173290

Date: 2024-11-09 17:18:05
Score: 2.5
Natty:
Report link

Fortunately, adding -o local into mount options did the trick for me.

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

79173288

Date: 2024-11-09 17:16:04
Score: 0.5
Natty:
Report link

Looks like I was able to appease GCC by writing my own version of the ternary operator.

Replacing

float x = p ? t : f;

with the cruder

#pragma omp declare simd
static inline float ternary(bool p, const float t, const float f) {
    return p * t + (!p) * f;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: oliversm

79173280

Date: 2024-11-09 17:11:03
Score: 3
Natty:
Report link

The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly

Here i have a video explaining the changes and debugging typescript code inside node_modules

https://www.youtube.com/watch?v=YmpsFYoJzTE

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

79173278

Date: 2024-11-09 17:09:03
Score: 2
Natty:
Report link

select score , dense_rank() over ( order by score desc ) as "rank" from Scores

Use this code it will work we need to write rank as "rank" because rank is a funcion that's why it's giving error

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

79173270

Date: 2024-11-09 17:02:01
Score: 4
Natty:
Report link

How to save Macro as a VBA PPT Add in and use that Add In for running Macro in any PPT. Not to plug in VBA code each time.

i am testing a simple sub with MsgBox "Hello" and this macro ran fine as a ppt...So here is what I did

  1. Open PPT
  2. Add a new macro - with above MsgBox in VBA
  3. Close VBA
  4. File Save As abc.pptm
  5. Close it
  6. Reopen abc.pptm
  7. File Save as abc.ppam
  8. Open an existing ppt
  9. File Options Addins - select this abc.ppam
  10. Go to Developer Tab - I click on Power Point Add Ins - I see this abc in the popup as checked and selected
  11. Click on Macro button in Developer Tab - nothing.
  12. Press Alt F11 - no code there.

What am I doing wrong here?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Beginner for VBA Addin for PPT

79173268

Date: 2024-11-09 17:00:58
Score: 9 🚩
Natty: 4.5
Report link

I have the SQL 2022 (RTM-GDR) (KB5046057) and I have same error when trying to view audit log : Item has already been added.'MNDO' key being added : 'MNDO' Please help

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (1): I have same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same error
  • Low reputation (1):
Posted by: farid amroun

79173261

Date: 2024-11-09 16:57:58
Score: 0.5
Natty:
Report link

More of a workaround than a proper solution to my problem, but when I use the parameters in the URL directly instead of in the query argument it works as expected:

  const fromISO = from.toISOString()
  const toISO = to.toISOString()    

  const { data, error } = await useAPI<RateResponse>(
    `/users/${userId}/projects/${projectId}/rates?from=${fromISO}&to=${toISO}`)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zmaten

79173248

Date: 2024-11-09 16:50:56
Score: 2.5
Natty:
Report link

The workaround is to create a reverse proxy to map to the new endpoint for the target path.

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

79173235

Date: 2024-11-09 16:46:55
Score: 1
Natty:
Report link

Quoter:

By having the error message A partner claim with id 'identifier' is not found , it is primarily due to neither of the inherited policy [Base or Extensions] provides the output claim of email from the orchestration step 1 that is prerequisite of GenerateOTP technical profile (TP) input claim [partner claim identifier in your policy].

If I understand correctly, as you are using SelfAsserted-LocalAccountSignin-Email TP for signin, then the signInName carries only email that you can copied into email claim type just before invoking Generate OTP profile for resolving the issue.

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

79173226

Date: 2024-11-09 16:42:55
Score: 1
Natty:
Report link

if using Snowflake SQL (unsure if this works on others), you can embed an "iff" condition in the window function to do something like this:

select Person, rank() over (partition by Restaurant order (iff(Person is null, 0, arrival_time) by arrival_time asc) as arrival_rank from dinner_show_up;

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

79173225

Date: 2024-11-09 16:42:53
Score: 6.5 🚩
Natty: 5.5
Report link

I signed up just to ask if you solved it, because I have the same problem on the same config.

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

79173217

Date: 2024-11-09 16:37:51
Score: 1.5
Natty:
Report link

If you are using koin 3.5.6 and above, implement this library io.insert-koin:koin-compose-viewmodel

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

79173208

Date: 2024-11-09 16:32:50
Score: 3
Natty:
Report link

I have created detailed video on whitelabel in angular 18, I have done it using scss and css variables, https://www.youtube.com/watch?v=MPczXDSsNMA

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

79173206

Date: 2024-11-09 16:31:49
Score: 3
Natty:
Report link

That sample is out of date and not maintained. It is not linked from anywhere else in our website that I know of. Out of curiosity, how did you find it?

If you truly need an XML example for how to configure spring security, please see this xml sample. However, we have other samples that I would recommend over the xml configuration example. You may also find Spring Academy useful. It is free to create an account and browse all of the tutorials and courses.

Reasons:
  • RegEx Blacklisted phrase (3): did you find it
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Steve Riesenberg

79173201

Date: 2024-11-09 16:30:49
Score: 2
Natty:
Report link

This is a little vast answer, I know this is an old question but I think my answer can help. There are ways to do that using scss+css variables, I have found a video that does exactly that, check this out, https://www.youtube.com/watch?v=MPczXDSsNMA

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
Posted by: Deepak Jha

79173200

Date: 2024-11-09 16:30:49
Score: 3
Natty:
Report link

The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly

Here i have a video explaining the changes and debugging typescript code inside node_modules

https://www.youtube.com/watch?v=YmpsFYoJzTE

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

79173182

Date: 2024-11-09 16:23:48
Score: 1
Natty:
Report link

No need for charAt(), just use str[i] instead.

function separated(str) {
for (var i = 0; i < str.length; i++) {
    if ((str[i] == "a") && (str[i + 4] == "b")) {
        return true
    } else {
        return false
    }
}

}

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

79173181

Date: 2024-11-09 16:22:47
Score: 2
Natty:
Report link

Yes, use: isolate(input$a) + input$b

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

79173179

Date: 2024-11-09 16:21:47
Score: 2
Natty:
Report link

I am trying to find the API for Windows Voice Access. Microsoft .NET docs are confusing as its not clear what recognition backend Windows Voice Access or (SAPI) 5.3 is being used.

If I run code system.speech.recognition it seem to use (SAPI) 5.3 not Windows Voice Access

SpeechRecognitionEngine.SetInputToWaveFile Method for (SAPI) 5.3 loads a file to be recognition and execute a recognized command form a grammar.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: TheMast

79173170

Date: 2024-11-09 16:16:46
Score: 3
Natty:
Report link

Had the same problem, running:

npx expo start -c

Solved it for me.

Source: https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting/#mismatch-between-javascript-code-version-and-reanimated-babel-plugin-version

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

79173162

Date: 2024-11-09 16:14:45
Score: 3.5
Natty:
Report link

You're using Queueable and you're not running your queue worker in Laravel.

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

79173155

Date: 2024-11-09 16:12:45
Score: 2
Natty:
Report link

Use

$mail->Host = 'smtp.titan.email';
$mail->Port = 587;
$mail->SMTPSecure='tls';
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chidera Thankgod Obed

79173150

Date: 2024-11-09 16:10:45
Score: 0.5
Natty:
Report link

trig_table_ii : instead of insert -> The triggers that fire instead of performing the execution of DML statements (Insert, Update, and delete) are instead of triggers. In your case, DML will be insert. trig_table_ti : for insert The triggers that fire after performing the execution of DML statements (Insert, Update, and delete) are After/For triggers. In your case, DML will be insert.

Question. Which trigger will fire first or trigger first? Answer. Instead of triggers are fired even before the updates (insert operation) are made in the underlying base tables. So, Definitely, Instead of trigger will fire first. But, here is an important catch. Instead of trigger will execute statements which is inside the create trigger block even if there is some issues with the original insert statement. On the other hand, After/For Trigger will not fire because it will stop if original insert does not work properly.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Abhishek Newase

79173145

Date: 2024-11-09 16:09:44
Score: 0.5
Natty:
Report link

I also face the issue in deploying my spring boot app with tomcat , The below are the things which i did

I dont even see any errors while making the tomcat server up

I am not sure what is the problem here

I will attach the pom,main spring boot application,controller class and log file

Below is my pom file

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>

<groupId>org.example</groupId>
<artifactId>hibernate_learning</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
    <finalName>hibernate_app</finalName>
</build>
<!-- https://mvnrepository.com/artifact/org.hibernate.orm/hibernate-core -->
<dependencies>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>6.6.1.Final</version> <!-- Ensure this version matches your Hibernate version -->
    </dependency>
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>8.0.32</version> <!-- or the latest version -->
    </dependency>
    <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>javax.persistence-api</artifactId>
        <version>2.2</version> <!-- or a newer version if applicable -->
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <version>3.3.4</version>
    </dependency>

    
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <version>3.3.5</version>
    </dependency>


    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version> <!-- or the latest version -->
    </dependency>
    <!-- Jackson Databind -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.15.2</version> <!-- Check and update version as per Spring Boot -->
    </dependency>

    <!-- Jackson Core -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.15.2</version>
    </dependency>

    <!-- Jackson Annotations -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.15.2</version>
    </dependency>

</dependencies>

Below is my main file

    package org.example.api;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class entityAPI extends SpringBootServletInitializer { // the extended is for the tomcat
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(entityAPI.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(entityAPI.class, args);
    }
}

here is the controller file

package org.example.api;

import org.example.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;

@RestController
@RequestMapping("/api/students")
public class StudentController {

    @Autowired
    private ServiceLayer studentService;

    @GetMapping("/healthCheck")
    public String sample() {
        return "I am healthy";
    }
}

Here is the Log file

09-Nov-2024 20:08:53.883 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:08:53.901 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2198] milliseconds

09-Nov-2024 20:10:16.716 INFO [http-nio-8080-exec-7] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war]
09-Nov-2024 20:10:21.893 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:10:21.952 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:10:21.969 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [5.0]. Default version will be used.
09-Nov-2024 20:10:25.221 INFO [http-nio-8080-exec-7] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Nov-2024 20:10:25.229 INFO [http-nio-8080-exec-7] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war] has finished in [8,513] ms

09-Nov-2024 20:18:01.683 INFO [Thread-1] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:01.707 INFO [Thread-1] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
09-Nov-2024 20:18:01.747 INFO [Thread-1] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:01.765 INFO [Thread-1] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:25.346 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.97
09-Nov-2024 20:18:25.349 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Nov 6 2024 19:55:19 UTC
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.97.0
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 11
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\jdk-21.0.2
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           21.0.2+13-58
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\apache-tomcat-9.0.97\conf\logging.properties
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.359 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.359 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\apache-tomcat-9.0.97\temp
09-Nov-2024 20:18:25.361 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
09-Nov-2024 20:18:25.362 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
09-Nov-2024 20:18:25.362 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
09-Nov-2024 20:18:25.366 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
09-Nov-2024 20:18:25.598 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:25.620 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [427] milliseconds
09-Nov-2024 20:18:25.675 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
09-Nov-2024 20:18:25.675 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.97]
09-Nov-2024 20:18:25.700 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war]
09-Nov-2024 20:18:30.326 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:18:30.332 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:18:30.340 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [5.0]. Default version will be used.
09-Nov-2024 20:18:31.811 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Nov-2024 20:18:31.854 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war] has finished in [6,153] ms

and here is my folder structure

+---src
|   +---main
|   |   +---java
|   |   |   \---org
|   |   |       \---example
|   |   |           |   CreateData.java
|   |   |           |   DeleteData.java
|   |   |           |   Main.java
|   |   |           |   Student.java
|   |   |           |   UpdateData.java
|   |   |           |
|   |   |           \---api
|   |   |                   entityAPI.java
|   |   |                   readMe.md
|   |   |                   ServiceLayer.java
|   |   |                   StudentController.java
|   |   |
|   |   \---resources
|   |           application.properties
|   |           hibernate.cfg.xml
|   |           retrieveOutput.json
|   |
|   \---test
|       \---java
\---target
    |   hibernate_app.war
    |
    +---classes
    |   |   application.properties
    |   |   hibernate.cfg.xml
    |   |   retrieveOutput.json
    |   |
    |   \---org
    |       \---example
    |           |   CreateData.class
    |           |   DeleteData.class
    |           |   Main.class
    |           |   Student.class
    |           |   UpdateData.class
    |           |
    |           \---api
    |                   entityAPI.class
    |                   ServiceLayer.class
    |                   StudentController.class
    |
    +---generated-sources
    |   \---annotations
    +---generated-test-sources
    |   \---test-annotations
    +---hibernate_app
    |   +---META-INF
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @SpringBootApplication
  • Low reputation (1):
Posted by: Bharathwajan

79173143

Date: 2024-11-09 16:08:44
Score: 1.5
Natty:
Report link

in my case I use Expo, and the only solution was setting "expo": {"backgroundColor": } in app.json

to change with theme use "expo-system-ui" SystemUI.setBackgroundColorAsync(usetheme.colors.background);

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

79173125

Date: 2024-11-09 15:59:42
Score: 3.5
Natty:
Report link

You can copy over node_modules folder when you switch to another git worktree

Here i have a vide explaining the process:

https://www.youtube.com/watch?v=4Ibf97ZNdiE&t=51s

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

79173123

Date: 2024-11-09 15:59:42
Score: 0.5
Natty:
Report link

If you are using REST calls on your JS code, you can point to a endpoint like that: https://generativelanguage.googleapis.com/v1beta/$modelname:generateContent?key=$GOOGLE_API_KEY

You can find more details at the Fine-tuning tutorial page.

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

79173105

Date: 2024-11-09 15:47:39
Score: 0.5
Natty:
Report link

After a lot of debugging, tracing, it comes from the useragent

Curl called from command line send a default useragent string (like curl/7.41)

phpcurl by default send no user agent , and now OVH refuse this calls

I simply added :

$ch = curl_init(wswwwurl); 
/* !!! useragent is now MANDATORY when calling OVH !!! */ 
$config['useragent'] = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0';
curl_setopt($ch, CURLOPT_USERAGENT, $config['useragent']);

And it's now ok again !

rem : I tried to add CURLOPT_FOLLOWLOCATION, but then OVH server redirects to another page "blocked request"

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

79173103

Date: 2024-11-09 15:46:39
Score: 3.5
Natty:
Report link

Friends, I use Herd and Openserver, changes in environment variables helped me. You need to make C:\Users<user_name>.config\herd\bin lower than PHP enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aslan

79173099

Date: 2024-11-09 15:44:39
Score: 2.5
Natty:
Report link

for me doing

conda remove moviepy gtts

conda install -c conda-forge moviepy gtts

fixed the problem, so i basically just removed and re installed everything

I am on mac air M1, with latest OS version

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

79173094

Date: 2024-11-09 15:43:38
Score: 2.5
Natty:
Report link

Apparently it was my $pd parameter, that was a problem. After changing it to $pwd, everything worked.

I don't understand why my try catch did not capture anything going wrong.

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

79173083

Date: 2024-11-09 15:38:37
Score: 3
Natty:
Report link

Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.

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

79173060

Date: 2024-11-09 15:23:34
Score: 1
Natty:
Report link

I had a similar issue and was able to resolve it by adding the foojay toolchain to my settings.gradle file, under the plugins section:

id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zach the Dev

79173058

Date: 2024-11-09 15:22:34
Score: 1.5
Natty:
Report link

You could use the in_app_purchase package and only use it to check country code.

import 'package:in_app_purchase/in_app_purchase.dart';

Future<String> countryCode() => InAppPurchase.instance.countryCode();

Otherwise you could write your own plugin https://docs.flutter.dev/packages-and-plugins/developing-packages

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

79173055

Date: 2024-11-09 15:21:34
Score: 2
Natty:
Report link

I assume you already properly configured your terminal to save key using ssh-agent. if that was the case you need to make sure that there is no other ssh.exe presented especially under C:\Program Files\Git\usr\bin in my case vscode preferred the ssh.exe in that path and this broke since I don't have ssh-agent there. my solution was just to delete it since the C:\Windows\System32\OpenSSH\ssh.exe is serving as the ssh command

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

79173051

Date: 2024-11-09 15:20:33
Score: 1.5
Natty:
Report link

I just installed Xcode 13.4.1 on my Ventura MBP 2017

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: rudifa

79173037

Date: 2024-11-09 15:05:31
Score: 2
Natty:
Report link

I found problem on my computer. I've had netsh configuration that redirected localhost:9092 to <another_ip>:9092.

I made this config when tried to set up Kafka on WSL an totally forgot about this configuration.

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

79173036

Date: 2024-11-09 15:04:31
Score: 1.5
Natty:
Report link

In Windows you can do

    robocopy /move /e .\path\from\directory-or-file .\path\to\directory
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ckarakoc

79173024

Date: 2024-11-09 14:57:29
Score: 3.5
Natty:
Report link

For me downloading the silk workbench (.tgz) from this link: https://github.com/silk-framework/silk/releases/tag/release-2.7.1

then extracting the .tgz file and copying it to the C drive, try to copy the sub-folder and final link should be like this: C:/silk-workbench-2.7.1/bin/

then run cmd as an administrator and and go to this address: C:/silk-workbench-2.7.1/bin/

write the silk-workbench.bat and enter.

you will find application running on the localhost address: http://localhost:9000/

@Reihan_amn for your helpful comment

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • User mentioned (1): @Reihan_amn
  • Low reputation (1):
Posted by: Mohsin ali

79173021

Date: 2024-11-09 14:56:29
Score: 3
Natty:
Report link

Bean Searcher is a very lightweight read-only ORM focused on advanced queries:

A read-only ORM focused on advanced queries, naturally supporting linked tables and eliminating DTO/VO conversion, making it possible to achieve complex list retrieval with just one line of code!

Github: https://github.com/troyzhxu/bean-searcher

Document: https://bs.zhxu.cn/

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Troy

79173016

Date: 2024-11-09 14:53:28
Score: 0.5
Natty:
Report link

Ensure that FLASK_ENV environment variable is set to development. this activates the debug mode and auto reloads the app when you make changes.

in terminal set the environment varable before running your app

export FLASK_ENV=development

or in Windows

set FLASK_ENV=development

Restart the server.

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

79173012

Date: 2024-11-09 14:51:28
Score: 0.5
Natty:
Report link

@Shayne, first thing that is wrong about your code is that it is using single quotes (') instead of double quotes ("), which is said to be used:

Note the use of double quotes instead of single quotes. You must use double quotes when executing PHP functions from within WP All Import. You can’t use single quotes.

link

I asked Claude.ai to improve your code snippet from ChatGPT and it came with the following, which I managed to get working:

function update_wpbakery_image_ids($post_id, $xml_node, $is_update) {
    // Get the post content
    $content = get_post_field("post_content", $post_id);
    
    // Skip if no content
    if (empty($content)) {
        return;
    }
    
    // Array of WP Bakery shortcodes that contain image IDs
    $shortcode_patterns = array(
        "vc_single_image" => "/\[vc_single_image[^\]]*image=\"(\d+)\"/",
        "vc_gallery" => "/\[vc_gallery[^\]]*images=\"([^\"]+)\"/"
    );
    
    $modified = false;
    
    foreach ($shortcode_patterns as $shortcode => $pattern) {
        preg_match_all($pattern, $content, $matches);
        
        if (!empty($matches[1])) {
            foreach ($matches[1] as $old_ids) {
                // Handle both single IDs and comma-separated lists
                $old_id_array = explode(",", $old_ids);
                $new_id_array = array();
                
                foreach ($old_id_array as $old_id) {
                    $old_id = trim($old_id);
                    
                    // Get the attachment URL for the old ID
                    $old_attachment_url = wp_get_attachment_url($old_id);
                    
                    if ($old_attachment_url) {
                        // Try to find the new attachment ID based on the same filename
                        $filename = basename($old_attachment_url);
                        $new_attachment = get_posts(array(
                            "post_type" => "attachment",
                            "post_status" => "inherit",
                            "fields" => "ids",
                            "meta_query" => array(
                                array(
                                    "value" => $filename,
                                    "compare" => "LIKE",
                                    "key" => "_wp_attached_file"
                                )
                            )
                        ));
                        
                        if (!empty($new_attachment)) {
                            $new_id = $new_attachment[0];
                            $new_id_array[] = $new_id;
                            
                            // Replace in content based on shortcode type
                            if ($shortcode === "vc_single_image") {
                                $content = preg_replace(
                                    "/(\[vc_single_image[^\]]*image=\")" . $old_id . "\"/",
                                    "$1" . $new_id . "\"",
                                    $content
                                );
                            } elseif ($shortcode === "vc_gallery") {
                                $old_ids_pattern = preg_quote($old_ids, "/");
                                $new_ids = implode(",", $new_id_array);
                                $content = preg_replace(
                                    "/(\[vc_gallery[^\]]*images=\")" . $old_ids_pattern . "\"/",
                                    "$1" . $new_ids . "\"",
                                    $content
                                );
                            }
                            
                            $modified = true;
                        }
                    }
                }
            }
        }
    }
    
    // Update post content if modifications were made
    if ($modified) {
        wp_update_post(array(
            "ID" => $post_id,
            "post_content" => $content
        ));
        
        // Clear any caches
        clean_post_cache($post_id);
    }
}

I added this function to the Function Editor which is available from within the WP All Import Pro process.

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

79173004

Date: 2024-11-09 14:48:27
Score: 0.5
Natty:
Report link

Hey to create a promotion with the Shopify API, you use the Discounts API. First, authenticate and get the necessary permissions. Then, create a discount rule by making a POST request to /admin/api/2024-01/price_rules.json, where you can define the promotion’s conditions (e.g., percentage discount, minimum purchase, or free shipping). After that, link a discount code to the rule by making a POST request to /admin/api/2024-01/discount_codes.json. Shopify also offers an easy-to-use admin panel for creating promotions without needing to use the API directly.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anna Shah

79173001

Date: 2024-11-09 14:46:26
Score: 10
Natty: 8
Report link

Any Solution found at this time?

Reasons:
  • Blacklisted phrase (1.5): Any Solution
  • RegEx Blacklisted phrase (2): Any Solution found at this time?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28212906

79173000

Date: 2024-11-09 14:46:25
Score: 0.5
Natty:
Report link

HERE IS A QUICK SIMPLE GUIDE YOU CAN FOLLOW

I was facing the same problem ( whenever i do a fresh windows install and i install vscode in it) the following steps worked for me.

  1. Go to Extension Tab.
  2. Type "@buildin" in search bar
  3. Find "Microsoft Account" Extension.
  4. Now disable it and again enable it.
  5. Try to sign in NOW.

HOPEFULLY YOUR PROBLEM IS SOLVED 😊

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: JashanDev-47

79172989

Date: 2024-11-09 14:41:24
Score: 0.5
Natty:
Report link

The answer is a subfolder should be added to the PATH variable, the working script is as follows

FROM rocker/rstudio:latest

# Install depencendcies

RUN apt-get update \

   && apt-get upgrade -y \

   && apt-get install -y 
 
#install tinytex 
RUN mkdir -p /tinytex
RUN Rscript -e ' install.packages("tinytex");tinytex::install_tinytex(dir="/tinytex",force=TRUE)'
ENV PATH="${PATH}:/tinytex/bin/x86_64-linux"

RUN tlmgr update --self
RUN tlmgr update --all
RUN tlmgr install \
        koma-script \
        caption \
        pgf \
        environ \
        tikzfill \
        tcolorbox \
        pdfcol


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

79172985

Date: 2024-11-09 14:41:24
Score: 5.5
Natty:
Report link

There is a GLTF file with animated camera and some moving parts and it works fine when the default camera is reassigned by glft.cameras[0] at GLTFLoader.load() and the initial model and camera positions are absolutely as it was designed in Blender.

enter image description here

camera = gltf.cameras[0].clone();
                     
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
camera.needsUpdate = true;

However, the task it to have an interactive OrbitControls mode allowing users to freely rotate/scale and move the platform while holding SHIFT key. And to do this, I’m re-initializing controls by this line at keydown event listener.

controls = new OrbitControls(camera, renderer.domElement);

And the model jumps to another position.

enter image description here

I have tried to play with camera.lookAt vector as well as controls.target, but it doesn’t help me. It seems that this issue occurs due to the difference between the origin coordinates in the GLTF and ThreeJS scene.

The working code is available here.

const URL = {
    name: '3non-sliding',
    prefix: 'assets/models/'
};

import * as THREE from 'three';

import { AnimationMixer } from 'three';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { DebugEnvironment } from 'three/addons/environments/DebugEnvironment.js';

let container, renderer, scene, camera, controls, group, gltf, mixer, freeMode = false, verify = true, clock = new THREE.Clock();

inits();

function inits() {

    container = document.createElement('div');
    document.body.appendChild(container);

    renderer = new THREE.WebGLRenderer({
        antialias: true
    });
    renderer.toneMapping = THREE.ACESFilmicToneMapping;
    renderer.setPixelRatio(window.devicePixelRatio);
    renderer.setSize(window.innerWidth, window.innerHeight);
    container.appendChild(renderer.domElement);

    camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 64);

    scene = new THREE.Scene();

    const loader = new THREE.TextureLoader();
    scene.background = loader.load('assets/checkboxGrey4x4.png');

    const pmremGenerator = new THREE.PMREMGenerator(renderer);
    pmremGenerator.compileCubemapShader();

    const generativeEnvironment = new DebugEnvironment(new THREE.Color(0xDDDDDD));

    scene.environment = pmremGenerator.fromScene(generativeEnvironment).texture;

    controls = new OrbitControls(camera, renderer.domElement);
    controls.enableDamping = true;
    controls.dampingFactor = 0.1;
    controls.enabled = false;

    const geometry = new THREE.SphereGeometry(0.25, 8, 8);
    const material = new THREE.MeshBasicMaterial({
        color: 0xFF00FF
    });
    const sphere = new THREE.Mesh(geometry, material);
    scene.add(sphere);

    const onProgress = function(xhr_) {

        if (xhr_.lengthComputable) {

            const percentComplete = xhr_.loaded / xhr_.total * 100;

            console.log(`${URL.name}.glb : ${percentComplete.toFixed( 2 )}%`);

        }

    };

    new GLTFLoader().setPath(URL.prefix).load(new URLSearchParams(window.location.search).get('id') != null ? `${new URLSearchParams(window.location.search).get('id')}.glb` : `${URL.name}.glb`, function(gltf_) {

        gltf = gltf_;

        mixer = new THREE.AnimationMixer(gltf.scene);

        scene.add(gltf.scene);

        camera = gltf.cameras[0].clone();

        camera.aspect = window.innerWidth / window.innerHeight;
        camera.updateProjectionMatrix();
        camera.needsUpdate = true;

    }, onProgress);

    window.addEventListener('resize', onWindowResize);

    document.addEventListener('keydown', (event_) => {

        if (event_.keyCode == 16 && verify) {

            freeMode = true;
            verify = false;
            controls.enabled = true;
            console.log('OrbitControls mode enabled');

            controls = new OrbitControls(camera, renderer.domElement);

        }

    });

    document.addEventListener('keyup', (event_) => {

        freeMode = false;
        verify = true;
        controls.enabled = false;
        console.log('OrbitControls mode disabled');


    });

    render();

}

function onWindowResize() {

    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();

    renderer.setSize(window.innerWidth, window.innerHeight);

}

Any ideas why it's jumping and how to solve it?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Any ideas
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve it?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: VVK

79172984

Date: 2024-11-09 14:41:23
Score: 1
Natty:
Report link
SELECT tripad_order, tourad_order
FROM (
    SELECT tripad_order, tourad_order
    FROM tripdetails 
    LEFT JOIN tripaddresses ON tripaddresses.trip_id = tripdetails.trip_id
    LEFT JOIN touraddresses ON touraddresses.tripad_id = 
     tripaddresses.tripad_id AND touraddresses.tour_id = tripdetails.tour_id
    WHERE tripde_id = 39780

    UNION ALL

    SELECT tripad_order, tourad_order
    FROM tripdetails 
    LEFT JOIN touraddresses ON touraddresses.tour_id = tripdetails.tour_id 
    LEFT JOIN tripaddresses ON tripaddresses.tripad_id = 
    touraddresses.tripad_id AND tripaddresses.trip_id IN (0, 
     tripdetails.trip_id)
    WHERE tripde_id = 39780 AND tripad_type IS NOT NULL
) t
GROUP BY tripad_order, tourad_order
ORDER BY 
    CASE WHEN tripad_order = 0 THEN NULL ELSE tripad_order END,
    CASE WHEN tourad_order IS NULL THEN 1 ELSE 0 END, 
    tourad_order;

https://admirable-smakager-729141.netlify.app/post/6

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

79172972

Date: 2024-11-09 14:34:22
Score: 5.5
Natty:
Report link

Thanks! I see that this code is working and it help's me to reduce the times of using useAutoAlgorithm to two times.

But can I reduce of using it to one time, for example by referring to the variable name in the right side of the code?

So don't want to write

useAutoAlgoritm = sec.get("useAutoAlgoritm")

But I want write something like

useAutoAlgoritm = sec.get(useAutoAlgoritm.getVariableName())

Can I do it?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Can I do
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jjqwe Jfjfbtuy

79172965

Date: 2024-11-09 14:28:21
Score: 0.5
Natty:
Report link

Ok, I found the missing method:

        Optional<UserRepresentation> user = foundUsers.stream().findFirst();
        if (user.isPresent()) {
            Map<String, List<String>> attribs = user.get().getAttributes();
            if (attribs.containsKey("language")) {
                attribs.get("language").set(0,"hu");
                userResource.get(user.get().getId()).update(user.get());
            }
        }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Papp Zoltán

79172964

Date: 2024-11-09 14:27:21
Score: 0.5
Natty:
Report link

I was missing queueConn.start(); to start the transaction. Why the way I had it, it did not return a message, I have no idea. If you are a JMS expert, please comment on this.

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

79172959

Date: 2024-11-09 14:22:19
Score: 3.5
Natty:
Report link

I forgot what I did, but now it works. I think it was something with the venv, but I'm absolutely not sure

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

79172957

Date: 2024-11-09 14:21:19
Score: 1.5
Natty:
Report link

GitHub Copilot often stops working when you're using an outdated version of Copilot. I often had issues and just to update and restart copilot (and maybe the IDE) fixed the problem for me.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Semjon Mössinger

79172954

Date: 2024-11-09 14:20:19
Score: 2.5
Natty:
Report link

This error is from Pydroid on Android. Unfortunately Rustup cannot be installed on Android as it's not supported.... boooo Maybe I'll solve this and get an update.

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

79172953

Date: 2024-11-09 14:18:18
Score: 0.5
Natty:
Report link

When you drop columns, pandas doesn't automatically clean up unused levels in the MultiIndex. The levels still contain all original values even if they're no longer used.

If you print the df.columns you can see that the requested "AAPL" has been removed. To update the FrozenList that the df.columns.levels returns you will need to remove the unused levels.

tickers = ['AAPL', 'TSLA', 'AMZN', 'GOOGL', 'MSFT', 'META', 'NVDA', 'PYPL', 'ADBE', 'NFLX']

data = yf.download(tickers, period="1y", interval="1wk", group_by='ticker')

# I have changed the code here for readability.
data = data.drop(columns="AAPL", axis=1, level=0)

data.columns = data.columns.remove_unused_levels()

pandas.MultiIndex.remove_unused_levels

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: p13kara3

79172940

Date: 2024-11-09 14:12:17
Score: 0.5
Natty:
Report link

Yes, you just forgot return:

    def __await__(self):
         # Just do exactly what ten() does
        return (yield from self.ten().__await__())

This is the classic way, and return (yield from awaitable.__await__()) is equivalent to return await awaitable in an asynchronous function.

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

79172936

Date: 2024-11-09 14:11:17
Score: 5.5
Natty:
Report link

use this library which provides same function as smarteist-autoImageSlider https://github.com/antwhale/AntwhaleImageSlider

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

79172920

Date: 2024-11-09 14:00:14
Score: 1.5
Natty:
Report link

Serialization and deserialization in python is done following these rules: python - json:

dict - object list - array tuple - array str - string int - number float - number True - true False - false None - null

You should not expect any other values, most of the time you should know if the json data is a dictionary, a list of dictionary or whatever.

If your problem is typing you could verify that loading your data returns a dictionary or a list and returning that add dict or list as typing

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

79172910

Date: 2024-11-09 13:57:14
Score: 2.5
Natty:
Report link

The whole problem was wrong config of acl at the receiving end, the actual messages were denied, only allowing the log messages, which need the above parsing. When actual messages are received as well, the payload is available in those messages as it should.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jon martin solaas

79172907

Date: 2024-11-09 13:55:13
Score: 0.5
Natty:
Report link

This works for Mac

brew install freetds openssl
export LDFLAGS="-L/opt/homebrew/opt/freetds/lib -L/opt/homebrew/opt/openssl@3/lib"
export CFLAGS="-I/opt/homebrew/opt/freetds/include"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
python -m pip install pymssql
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Balaji Rajendran

79172899

Date: 2024-11-09 13:52:10
Score: 9.5 🚩
Natty:
Report link

i have a similar question. First, I want to save the decode text in a variable and Second, send that variable to another page (another script). The code is exactly the same as @neongmr.

thank in advance. @ricpar123

Reasons:
  • RegEx Blacklisted phrase (3): thank in advance
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have a similar question
  • User mentioned (1): @neongmr
  • User mentioned (0): @ricpar123
  • Low reputation (1):
Posted by: Ricardo Caballero

79172887

Date: 2024-11-09 13:45:08
Score: 3.5
Natty:
Report link

you can do it much easier

Open Notpad

Start with @echo off. Then start each line with Start, space, then add the full link to the site. when done save it as a .bat file. It should look like this.

@echo off

Start https://www.youtube.com/

Start https://www.twitch.tv/

Adding other browsers is simple also. Name the browser before the link

@echo off

Start Chrome https://www.youtube.com/

Start Firefox https://www.twitch.tv/

Reasons:
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • User mentioned (1): @echo
  • User mentioned (0): @echo
  • User mentioned (0): @echo
  • Low reputation (1):
Posted by: kyle langlois

79172884

Date: 2024-11-09 13:42:08
Score: 3.5
Natty:
Report link

This was an issue in the polyfill es-module-shims and is fixed in v1.10.1 (github issue)

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

79172882

Date: 2024-11-09 13:41:07
Score: 2.5
Natty:
Report link

Instead of DataGrid.UnselectAllCells() just call:

setRowSelectionModel([]);

after your deletion.

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

79172881

Date: 2024-11-09 13:41:07
Score: 1
Natty:
Report link

Simply use ->paginate(5)->withQueryString()

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: csandreas1

79172869

Date: 2024-11-09 13:31:05
Score: 5
Natty:
Report link

Add C:\Program Files\PostgreSQL\'YOUR VERSION'\lib and C:\Program Files\PostgreSQL\'YOUR VERSION'\bin to your PATH. Restart PC. Run cargo clean. Run cargo build. Have same error on windows 10.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): Have same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: WeAreNotEternal

79172856

Date: 2024-11-09 13:24:03
Score: 2
Natty:
Report link

The equivalent seems to be -Wl,-dead_strip.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: David Monniaux

79172851

Date: 2024-11-09 13:23:03
Score: 0.5
Natty:
Report link

If you don't want to add a secret manually, the CSI driver will use the kubelet identity, which is a user-assigned managed identity created by AKS at cluster creation (unless you specified your own). This managed identity is primarily used by the kubelet to access Azure Container Registry (ACR), but it can also be used for authentication to Azure storage for persistent volume mounting.

To view the kubelet identity details:

az aks show --resource-group <your-resource-group> --name <your-cluster-name> --query "identityProfile.kubeletidentity"

You need to assign the correct role to the kubelet identity to allow it to retrieve storage access keys.

To assign the Storage Account Key Operator Service Role:

az role assignment create --assignee <kubelet-identity-client-id> --role "Storage Account Key Operator Service Role" --scope /subscriptions/<your-subscription-id>/resourceGroups/<storage-resource-group>/providers/Microsoft.Storage/storageAccounts/<your-storage-account>

Ensure that you do not have a secret named azure-storage-account-{accountname}-secret in the pod namespace and omit the nodeStageSecretRef field in the persistent volume configuration, because as the the azurefile-csi-driver doc says:

  • if the nodeStageSecretRef field is not specified in the persistent volume (PV) configuration, the driver will attempt to retrieve the azure-storage-account-{accountname}-secret in the pod namespace.
  • If azure-storage-account-{accountname}-secret in the pod namespace does not exist, the driver will use the kubelet identity to retrieve the account key directly from the Azure storage account API, provided that the kubelet identity has reader access to the storage account.

Additionally,I want to make clear that, when you create an AKS cluster, it sets up two managed identities by default:

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BAHAOUI Aymen-Hatim

79172849

Date: 2024-11-09 13:21:02
Score: 1
Natty:
Report link

To elaborate on @luk2302's answer

In Python, when you say

temp_nums = [] or temp_nums = list(), you've created an empty list for the sole purpose of "growing" (appending) it later.

An array is a collection of data values in contiguous (next to each other) memory locations. Therefore, you can only index elements you have explicitly added to the collection.

Say,

temp_nums = list()

temp_nums[0] = 5 //This is going to fail

temp_nums.append(5) 
temp_nums[0] = 10   // This will now work since the array has "grown" in the previous step

If the number of elements you will be storing in the array is predetermined, then you can fill those elements with your custom default values so indexing will work.

temp_nums = [-1] * 5// This will create temp_nums = [-1, -1, -1, -1, -1]
temp__nums[0] = [9]  // This will be [9, -1, -1, -1, -1]

If the number of elements is dynamic, rewrite your code to follow the append() mechanism shown above.

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

79172840

Date: 2024-11-09 13:15:00
Score: 4.5
Natty:
Report link

have anyone solved this problem, i have getting this same error

Reasons:
  • Blacklisted phrase (1): anyone solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sawan Kumar Chouhan

79172833

Date: 2024-11-09 13:12:59
Score: 3
Natty:
Report link

Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.

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

79172822

Date: 2024-11-09 13:04:58
Score: 1.5
Natty:
Report link

The above solution is correct, but please note that you MIGHT need to add "use client" on top of this login.tsx page. Fouund out here: https://github.com/vercel/next.js/discussions/59483

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: nik

79172821

Date: 2024-11-09 13:04:58
Score: 1.5
Natty:
Report link

Looks like this is an issue of scope, so you should be able to resolve it by importing and configuring dotenv within cloudinar.js

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

79172820

Date: 2024-11-09 13:03:58
Score: 2.5
Natty:
Report link
<div class="h-64 bg-red-500 [@media(min-width:711px)]:bg-green-500"></div>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: LeulAria

79172802

Date: 2024-11-09 12:56:57
Score: 2.5
Natty:
Report link

I was able to resolve this by upgrading numpy, then using the "Start Locally" page of pytorch to install pytorch and all its correct dependencies.

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

79172793

Date: 2024-11-09 12:51:56
Score: 0.5
Natty:
Report link

.Net Framework (older) and .Net Core (current) are the two different implementations of .Net from Microsoft.

.Net Framework is for developing Windows and Web application for the Windows platform.

.Net Core (now .NET) is a cross-platform and open source framework for building applications which can run on Mac, Linux or Windows. It is not an extension of the older .Net framework, but is completely rewritten.

The below release versions table may help to understand the version nos. used for the two frameworks.

enter image description here

.Net Standard is a set of .NET APIs that are available on multiple .NET implementations. You use .Net Standard only when you have to share code between older .Net frameworks and the newer .Net versions. For more info refer: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-1-0

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

79172791

Date: 2024-11-09 12:50:55
Score: 1.5
Natty:
Report link

From Hibernate Query Spaces - Optimizing Flush and Cache Operations:

Since Hibernate 5.3.20 and 5.4.24, you can also provide the query space as a query hint. The main benefit of this approach is that you can use it with JPA’s Query interface. You no longer need to cast it to one of Hibernate’s proprietary interfaces.

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

79172789

Date: 2024-11-09 12:49:55
Score: 3
Natty:
Report link

Apparently, I was overcomplicating it with the build request Also, need to provide triggerId instead of trigger name

The updated buildRequest:

const buildRequest = {
    name: `projects/${projectId}/locations/${triggerLocation}/triggers/${triggerId}`,
    source: {
        substitutions: buildSubstitutions
    }
}

Good idea to do a getBuildTrigger if facing a similar issue:

const { CloudBuildClient } = require('@google-cloud/cloudbuild');
const cloudBuildClient = new CloudBuildClient();

const request = {
   name: `projects/${projectId}/locations/${triggerLocation}/triggers/${triggerId}`
};

const response = await cloudBuildClient.getBuildTrigger(request);
console.log(response);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Piyush Agarwal

79172781

Date: 2024-11-09 12:46:54
Score: 3.5
Natty:
Report link

Just use the StartSelect() function, it'll automaticlly allow you to drag a frame

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

79172770

Date: 2024-11-09 12:41:53
Score: 2.5
Natty:
Report link

in cookie there is more asynchronous behaviour, so your server cpu and bandwidth is consumed more

in session based asynchronous behaviour is less

this is the big diffrence

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: web devlopment king