79561874

Date: 2025-04-08 11:18:35
Score: 1
Natty:
Report link
This package is working okay if you use "Intervention\Image\Laravel\Facades\Image" v2.x version. but if you use your version 3.* or grater then you need to update blow code.

use Intervention\Image\ImageManager;
use Intervention\Image\Drivers\Gd\Driver;

// create image manager with desired driver
$manager = new ImageManager(new Driver());

// read image from file system
$image = $manager->read('images/example.jpg');

// resize image proportionally to 300px width
$image->scale(width: 300);

// insert watermark
$image->place('images/watermark.png');

// save modified image in new format 
$image->toPng()->save('images/foo.png');

Reference : https://image.intervention.io/v3

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

79561873

Date: 2025-04-08 11:18:34
Score: 6.5 đŸš©
Natty:
Report link

I have the same problem. I couldn't install the solution. I think the problem may not be in the code. If you find the solution, I would be very happy if you share it.

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

79561870

Date: 2025-04-08 11:17:34
Score: 1.5
Natty:
Report link

Yeah, so short version: after 4.2, the old getContent hack just stopped working because WordPress rewrote how MCE views work. You can’t just override the template anymore without re-registering the whole gallery view. There’s no clean hook, no magical filter, no partial override, you either unregister and rebuild it like you did, or you live with the default. Everything else like extending or patching after init is a no-go. It's messy, but that’s the only way it actually works now.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kisded Szabi - CodeRevolution

79561853

Date: 2025-04-08 11:09:31
Score: 1
Natty:
Report link

Go to:
Android Studio > Preferences (or Settings)
→ Keymap
→ Search: Show Context Actions

Make sure it's mapped to:

If it’s not mapped, right-click and "Add Keyboard Shortcut", then set it manually.

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

79561841

Date: 2025-04-08 11:04:29
Score: 2
Natty:
Report link

I think I finally found the answer. It is implied by the first comment of this bug description:
https://github.com/docker/compose/issues/3415#issue-153068282

When we recreate a container we start by renaming the old container by adding the container short id as a prefix. If the start or create fails, the container is left with that prefixed name.

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

79561840

Date: 2025-04-08 11:03:29
Score: 1.5
Natty:
Report link

You want to get the path of the executable at runtime, it would be like this:

string projectPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);

After I ran it the result was this:

C:\\Users\\<user>\\source\\repos\\App7\\App7\\bin\\x64\\Debug\\net8.0-windows10.0.19041.0\\win-x64\\AppX

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

79561836

Date: 2025-04-08 11:01:28
Score: 3
Natty:
Report link

Thanks, everyone. At the end, I went to sleep and came back to this problem today, and solved with the strum and strum_macros crates. I marked my enum with #[derive(EnumDiscriminants, EnumString, AsRefStr)] and #[strum_discriminants(derive(EnumString, AsRefStr))], which gives me a new enum called ErrorDiscriminant that contains all the same variants but without extra data, as well as a method ErrorDiscriminant::from(&Error) that I can use to map each Error variant to an ErrorDiscriminant variant. From there, I can just do <error-discriminant> as i32 and the problem is solved.

As I'm new to Rust and this is the solution I just found, I cannot guarantee it is correct, but it's working for me so far and it makes sense.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kaisa Azaria

79561826

Date: 2025-04-08 10:55:26
Score: 2.5
Natty:
Report link

I think GeometryReader dynamicIsland is not working as expected. That's why the image might not look the way you want it to.

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

79561822

Date: 2025-04-08 10:54:26
Score: 2
Natty:
Report link

Initially, I misunderstood the communication pattern and confused CSMS and CS roles. I thought that CS is a server and CSMS is a client. But actually, the things are exactly the opposite. To get data from the CS one should implement CSMS as a server and setup CS to connect with this CSMS. Hope that it will be useful for someone.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Alexander Popov

79561813

Date: 2025-04-08 10:51:25
Score: 0.5
Natty:
Report link

I battled with this problem for days. I am working on a JavaEE project running on Wildfly 26.1.3 with Java 11 and Hibernate 5.6.15.Final. Adding the following property to my persitence.xml file fixed the problem for me:

 <property name="org.hibernate.flushMode" value="COMMIT" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Louis

79561802

Date: 2025-04-08 10:45:24
Score: 2.5
Natty:
Report link

Yes this was an airflow version issue.

Thank you @Kombajn zboĆŒowy for testing the code in airflow 2.10.5

I have since upgraded from 2.10.3 --> 2.10.5 and get the desired task outputs. This issue is probably the one highlighted on github here.

Despite attempts using version 2.10.3 to ensure trigger_rule='all_success' in the @task decorator args this bug was only fixed with upgrading.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @Kombajn
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GazYah

79561798

Date: 2025-04-08 10:44:23
Score: 0.5
Natty:
Report link

For me , it was the atomicfu dependency and to fix it I just added this line in build.gradle.kt after the plugins section:

atomicfu {
    transformJvm = false  // Disable transformation for Android target
}

No need to downgrade Kotlin version!

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

79561796

Date: 2025-04-08 10:44:23
Score: 1
Natty:
Report link

Based on this example, you have j which is a block of text that can be delimitated by line. If you set say, some variable ingredients to j.split('\n'), it will give you a list of each ingredient with all of the details.

Now, just loop through that, and split each ingredient by multiple spaces (because it seems each part is consistently separated by multiple spaces). That will give you each part separately. Now, just format each part to your liking, and append them to the desired list. Do Exactly what we did on this project Soursop.Farm

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

79561795

Date: 2025-04-08 10:43:22
Score: 6 đŸš©
Natty:
Report link

I'm not sure what it is but it's not working for me either. The link Eric gave redirects to support. I created all relevent id's ibm cloud, ibm etc.. but nothing is working.

Reasons:
  • RegEx Blacklisted phrase (3): not working for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: manhoosbilli1

79561788

Date: 2025-04-08 10:40:21
Score: 1
Natty:
Report link

All the options you listed are viable, but each comes with trade-offs. The WebView approach is the easiest and quickest—perfect if your Vue3 website is fully responsive. Users can log in and use it like a native app, but performance and offline support may be limited. Converting Vue3 code into a native app using tools like Capacitor or Cordova is a more flexible and robust choice. These tools allow you to package your existing front-end and interact with device features, making it feel more like a true app while still using web technologies.

Embedding your front-end files directly into the app is similar to the second option but requires you to rebuild the app for every update—less ideal for frequent changes. However, it offers more control and can work offline.

In terms of learning curve, WebView is the easiest, while using Capacitor or similar tools has a moderate curve but offers better scalability. For modern android app development, combining Vue3 with Capacitor is a solid middle-ground: you retain your existing codebase and get native features.

If you're planning long-term support and features, avoid pure WebView and go with a hybrid solution like Capacitor.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Eric Jonathan

79561784

Date: 2025-04-08 10:37:20
Score: 1
Natty:
Report link

I tried all of the solutions mentioned here but nothing worked for me. I solved it by reducing the image size to below 2000px for each dimension (height & width). The image resides in the project folder and not the Assets.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Theseus

79561780

Date: 2025-04-08 10:36:19
Score: 3
Natty:
Report link

This solution will work for you

File -> Manage IDE settings -> Restore default settings

After resetting the Android studio. Your issue will be resolved.
Thank me later.

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

79561777

Date: 2025-04-08 10:35:19
Score: 2
Natty:
Report link

I just used react-native-gesture-handler's ScrollView inside KeyboardAwareScrollView and it solved that problem for me

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

79561776

Date: 2025-04-08 10:34:17
Score: 7 đŸš©
Natty:
Report link
Have you found a solution to this problem?
Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found a solution to this problem
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: An Nguyen Van

79561768

Date: 2025-04-08 10:32:16
Score: 2.5
Natty:
Report link

Odoo Mobile App for Android & iOS easily converts your Odoo store into a mesmeric mobile application.

https://apps.odoo.com/apps/modules/14.0/mobikul

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

79561758

Date: 2025-04-08 10:24:14
Score: 2.5
Natty:
Report link

The domain you have purchased needs to have the same path where you upload the project Laravel files and needs to have the index file. you can go to your cPanel and the domain option, and next to it will find the file path.

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

79561755

Date: 2025-04-08 10:22:13
Score: 1.5
Natty:
Report link

Some special colors could be stowed in resources. In this case solution could be:

view.setTextColor(getColor(R.color.orange))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex

79561754

Date: 2025-04-08 10:21:13
Score: 2.5
Natty:
Report link

Unfortunately, Lucid chart does not have a way to group pages in a document into tabs/folders. We can only group documents within folders.

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

79561746

Date: 2025-04-08 10:17:12
Score: 3
Natty:
Report link

remove .background from your ZStack if you have it

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

79561745

Date: 2025-04-08 10:16:11
Score: 4
Natty:
Report link

Use Application Like pdAdmin or DBeaver

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

79561744

Date: 2025-04-08 10:16:11
Score: 1
Natty:
Report link

MenĂŒ > Git > Uncommitted Changes > Show Shelf

In the Commit window, you should see the shelved changes under the Shelf tab. If the tab is not displayed, you can open it by proceeding as above.

Afterwards, you can unshelf and your changes will be displayed in the commit window.

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

79561742

Date: 2025-04-08 10:15:11
Score: 1
Natty:
Report link

I fix my issue by a simple little correction. I forgot the @Configuration in my gateway Spring Security configuration. So I always had a default security config. I did some changes in my security config too.

package com.omb.ombgateway.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.Customizer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.SecurityFilterChain;

@Configuration
public class SecurityConfig {

    @Bean
    public SecurityFilterChain gatewaySecurity(HttpSecurity http) throws Exception {
        http
                .csrf(csrf -> csrf.disable())
                .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
                .authorizeHttpRequests(auth -> auth
                        .requestMatchers("/api/1.0/auth/**", "/actuator/**", "/error").permitAll()
                        .anyRequest().authenticated()
                )
                .oauth2ResourceServer(oauth2 -> oauth2.jwt(Customizer.withDefaults()));
        return http.build();
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Configuration
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ousmane MBINTE

79561738

Date: 2025-04-08 10:14:10
Score: 0.5
Natty:
Report link
import java.util.Scanner;

public class PrimeNumbers {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.print("Enter a number: ");
        int number=scanner.nextInt();

        boolean isPrime=true;
            for(int i=2; i<=number/2; i++){
                if(number%i==0){
                    isPrime=false;
                    break;
                }
            }
            if (isPrime){
            System.out.printf("%d is prime", number);
        }else {
                System.out.printf("%d is not prime", number);

            }
        scanner.close();
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Makinya Festus

79561734

Date: 2025-04-08 10:12:09
Score: 5.5
Natty:
Report link

My answer is only to refute the answer with the first number of votes, because I can't vote or reply. I followed his instructions and added "source ~/.bash_profile" at the beginning of my ~/.zshrc. Then I executed "source ~/.zshrc" and it gave an error, "-bash: export: `': not a valid identifier". At this time,any "sudo" and "vim" command will not work at all.And my "~/.bashrc" content will be replace by 'eval "$(thefuck --alias)"'.My command config went missing!I could only delete that line "source ~/.bash_profile" and execute "echo $PATH" to check my PATH. I found that "/usr/bin" and "/bin" were missing, which made my basic commands completely invalid. Then I executed "export PATH=$PATH:/usr/bin:/bin" to fix it. Don't try that method lightly!

Reasons:
  • Blacklisted phrase (2): fuck
  • RegEx Blacklisted phrase (2): can't vote
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rxs-michael

79561722

Date: 2025-04-08 10:05:08
Score: 1.5
Natty:
Report link

If you use firewall contexts, be sure to set the context to the firewall name in the test environment.

The firewall name is the default context for each firewall.

firewalls:
    main:
        context: main
        ...

See https://symfony.com/doc/current/reference/configuration/security.html#firewall-context

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

79561718

Date: 2025-04-08 10:05:08
Score: 1.5
Natty:
Report link

Previously, there was a way to add the flag -disable-concurrency-checking, but it was only available in the first beta versions of Swift Concurrency. Later on, this ability was removed, and now developers are forced to address all the warnings, which ensures that we fix them.

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

79561717

Date: 2025-04-08 10:04:07
Score: 1.5
Natty:
Report link

this will turn off AOS on mobile (less than 768px). once: true means animates only once.

AOS.init({
  once: true,
  disable: () => window.innerWidth < 768
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Asad Ali

79561710

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

I am not sure if this question should be answered because it will be more like an "opinion based" instead of a "technical answer". In short it is really unknown why it was not implemented... in long version ... it seems more intentional. Margins and docking are conceptually distinct—margins work well in layout engines like WPF, where flexibility and advanced layout features are baked in. In contrast, Windows Forms prioritizes straightforward functionality, with workarounds like using panel containers for spacing. Another aspect I think it is the complexity on how the layout engine calculates and handles control bounds, particularly during resize events. The trade-off between added complexity and actual developer need may have influenced the decision to omit this feature.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: D A

79561707

Date: 2025-04-08 09:57:05
Score: 5
Natty:
Report link

did you resolve this issue? I have working on this issue for days but have no resolutions yet...

Here is my result

04-08 16:44:30 I/TestInvocation: Starting invocation for 'cts' with '[ DeviceBuildInfo{bid=eng.anqizh, serial=a0f32ff5} on device 'a0f32ff5'] 
04-08 16:44:31 E/TestInvocation: Caught exception while running invocation
04-08 16:44:31 E/TestInvocation: Trying to access android partner remote server over internet but failed: Unsupported or unrecognized SSL message
com.android.tradefed.targetprep.TargetSetupError[ANDROID_PARTNER_SERVER_ERROR|500505|DEPENDENCY_ISSUE]: Trying to access android partner remote server over internet but failed: Unsupported or unrecognized SSL message
        at com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher.resolveUrl(DynamicConfigPusher.java:318)
        at com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher.setUp(DynamicConfigPusher.java:172)
        at com.android.tradefed.invoker.InvocationExecution.runPreparationOnDevice(InvocationExecution.java:621)
        at com.android.tradefed.invoker.InvocationExecution.runPreparersSetup(InvocationExecution.java:522)
        at com.android.tradefed.invoker.InvocationExecution.doSetup(InvocationExecution.java:375)
        at com.android.tradefed.invoker.TestInvocation.prepareAndRun(TestInvocation.java:624)
        at com.android.tradefed.invoker.TestInvocation.performInvocation(TestInvocation.java:291)
        at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:1431)
        at com.android.tradefed.command.CommandScheduler$InvocationThread.run(CommandScheduler.java:692)
Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
        at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:462)
        at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
        at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
        at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
        at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
        at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:586)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:187)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1675)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
        at java.base/java.net.URL.openStream(URL.java:1325)
        at com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher.resolveUrl(DynamicConfigPusher.java:315)
        ... 8 more
04-08 16:44:31 E/ClearcutClient: Unsupported or unrecognized SSL message
javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
        at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:462)
        at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
        at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
        at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
        at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
        at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:586)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:187)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1446)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1417)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:219)
        at com.android.tradefed.clearcut.ClearcutClient.sendToClearcut(ClearcutClient.java:344)
        at com.android.tradefed.clearcut.ClearcutClient.lambda$flushEvents$1(ClearcutClient.java:322)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
04-08 16:44:31 W/NativeDevice: Attempting to stop logcat when not capturing for a0f32ff5
Reasons:
  • RegEx Blacklisted phrase (3): did you resolve this
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: vanccc

79561691

Date: 2025-04-08 09:49:03
Score: 1
Natty:
Report link

As TamĂĄs Szelei stated in his comment on Andrey's answer: "gtest_main is not an alternative to gtest. You need to link with gtest if you want to use the library either way." I would like to make this answer even clearer. At least for me, the following variant is more understandable:

gtest_main.lib is not an alternative to gtest.lib. You need to link both gtest_main.lib and gtest.lib together if you want to use the gtest framework (Linker -> Input -> Additional Dependencies) and if you don't want to write your own main function.

While the original comment wasn’t entirely clear to me, my clarification makes the topic unequivocally understandable, as the gtest documentation on GitHub states that you should link either gtest_main or gtest: https://github.com/google/googletest/blob/main/docs/primer.md

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

79561688

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

bpf_helper_defs.h can be generated by this command.

python scripts/bpf_doc.py --header >> bpf_helper_defs.h
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (0.5):
Posted by: Wed0n

79561687

Date: 2025-04-08 09:47:03
Score: 2
Natty:
Report link

RedApps can initially be run locally on your computer. In order to make your RedApp available to other Sabre users, you need to publish it.

You can test your RedApp locally using the Red App Development tab. Once it’s published, it will be accessible to other users.

enter image description here

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

79561686

Date: 2025-04-08 09:46:02
Score: 3
Natty:
Report link

sorry, i suppose,'react-tesseract' 'tesseract.js' is not suitable, how does it used in chinese, i found its hard to recognized chinese.

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

79561684

Date: 2025-04-08 09:45:01
Score: 10
Natty: 7.5
Report link

Same question, any more findings so far? Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1): Same question
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 朹çșąć°˜äž­æˆä»™

79561682

Date: 2025-04-08 09:44:01
Score: 0.5
Natty:
Report link

thank you your response , so after modifing my code by using your code , it shows me again : ERROR Error: A mat-tab-nav-panel must be specified via [tabPanel].

<div class="page-container">
<header>
    <h1>Test Page</h1>
</header>

<div class="main-layout">
    <nav>
        <app-navbar></app-navbar>
    </nav>

    <main>
        <h2>Test</h2>
        <app-breadcrumb></app-breadcrumb>

        <h3>Sections</h3>

        <!-- Barre de navigation des onglets -->
        <nav mat-tab-nav-bar [tabPanel]="tabPanel">
            <a mat-tab-link
               (click)="activeLink = 'form'"
               [active]="activeLink === 'form'">Formulaire</a>
            <a mat-tab-link
               (click)="activeLink = 'table'"
               [active]="activeLink === 'table'">Tableau</a>
            <a mat-tab-link
               (click)="activeLink = 'chart'"
               [active]="activeLink === 'chart'">Graphiques</a>
        </nav>

        <!-- Ajout du panneau de nav -->
        <mat-tab-nav-panel #tabPanel>
            <ng-container *ngIf="activeLink === 'form'">
                <form (ngSubmit)="onSubmit(testForm)" #testForm="ngForm">
                    <mat-form-field appearance="fill" class="full-width">
                        <mat-label>Input Text (mandatory)</mat-label>
                        <input matInput id="inputText" name="inputText" ngModel required>
                        <mat-error *ngIf="isControlInvalid(testForm.controls['inputText'])">Input text is required.</mat-error>
                    </mat-form-field>

                    <mat-form-field appearance="fill" class="full-width">
                        <mat-label>Date (DD/MM/YYYY)</mat-label>
                        <input matInput type="text" id="date" name="date" ngModel placeholder="DD/MM/YYYY" required>
                        <mat-error *ngIf="isControlInvalid(testForm.controls['date'])">Valid date is required.</mat-error>
                    </mat-form-field>

                    <mat-form-field appearance="fill" class="full-width">
                        <mat-label>Email (mandatory)</mat-label>
                        <input matInput id="email" name="email" ngModel required>
                        <mat-error *ngIf="isControlInvalid(testForm.controls['email'])">Valid email is required.</mat-error>
                    </mat-form-field>

                    <mat-form-field appearance="fill" class="full-width">
                        <mat-label>Phone Number</mat-label>
                        <input matInput type="tel" id="phone" name="phone" ngModel>
                    </mat-form-field>

                    <div class="button-group">
                        <button mat-raised-button color="primary" type="submit" [disabled]="testForm.invalid">Submit</button>
                        <button mat-button type="button" (click)="resetForm(testForm)">Reset</button>
                    </div>
                </form>
            </ng-container>

            <ng-container *ngIf="activeLink === 'table'">
                <h3>Table Section</h3>
                <app-table [data]="tableData"></app-table>
            </ng-container>

            <ng-container *ngIf="activeLink === 'chart'">
                <h3>Chart Section</h3>
                <app-chart [data]="chartData"></app-chart>
            </ng-container>
        </mat-tab-nav-panel>
    </main>
</div>
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mouheb Sabri

79561681

Date: 2025-04-08 09:44:01
Score: 2.5
Natty:
Report link

For anyone wondering:

This way of doing is called "Device flow" and it's in the Oauth 2.0 Spec

Great explanation here

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

79561680

Date: 2025-04-08 09:43:00
Score: 0.5
Natty:
Report link

clearing batch also clears the list in the queue before it's processed.

writer_queue.put((query, table_name, batch.copy()))

Always pass immutable data or copies when sharing between threads to avoid side effects.

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

79561673

Date: 2025-04-08 09:39:59
Score: 0.5
Natty:
Report link

When you are use Room Database with Android Jetpack Compose in that preview time this error come so we can create schemas folder in app module it will fix.

agp = "8.9.1"
kotlin = "2.1.20"

#Room
room = "2.7.0-rc03"
sqlite = "2.5.0-rc03"

#Room
room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
sqlite-bundled = { module = "androidx.sqlite:sqlite-bundled", version.ref = "sqlite" }


//Room
    implementation(libs.room.runtime)
    implementation(libs.sqlite.bundled)
    ksp(libs.room.compiler)

room {
    schemaDirectory("$projectDir/schemas")
}
schemas
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you are use
  • Low reputation (1):
Posted by: Tech Matrix

79561671

Date: 2025-04-08 09:38:59
Score: 1
Natty:
Report link

The modern import attribute syntax import ... with support only landed in typescript 5.3.

Update the typescript version to use the new import syntax:

npm install --save-dev [email protected]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tushar

79561670

Date: 2025-04-08 09:37:58
Score: 5.5
Natty:
Report link

Sorry i can't post comment cause i don't have 25 reputation so i post an answer.
But your result should be SemOrd=10 for UserId = 1 and SubId = 706 ?

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • RegEx Blacklisted phrase (0.5): Sorry i can't
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Pierre-AntoineAETP

79561668

Date: 2025-04-08 09:37:58
Score: 1
Natty:
Report link

Dynamic programming problems require an optimal substructure which are typically solved using greedy. DP solutions and greedy solutions are usually quite similar.

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

79561665

Date: 2025-04-08 09:35:58
Score: 4
Natty:
Report link

Kindly provide the code as reference for better understanding of the problem.

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

79561662

Date: 2025-04-08 09:35:57
Score: 1.5
Natty:
Report link

The reason you're not seeing any output is because the code is not actually printing anything—it's just evaluating the expressions.try

console.log('hello world');
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kalam ahmed

79561658

Date: 2025-04-08 09:33:57
Score: 3
Natty:
Report link

After looking through the documentation of yaml I can say a that at least by April 2025 "deep merge" or "nested merge" doesn't exist in yaml.

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

79561653

Date: 2025-04-08 09:28:56
Score: 2.5
Natty:
Report link

npm install -g serve

serve -s build

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

79561649

Date: 2025-04-08 09:26:55
Score: 2
Natty:
Report link

I think it’s more worthwhile to invest your time in a JavaScript framework for front end if your goal is to be a valuable full stack engineer.

The stack overflow yearly survey is actually a good place to see what languages/technologies are being adopted by people and companies.

In my personal opinion, it makes sense to let that guide what is worth learning.

https://survey.stackoverflow.co/2024/technology/

That being said, I’m primarily a backend developer and I’ve started to dip my toes into front end with sveltekit, and I actually like it so far! https://svelte.dev/tutorial/kit/introducing-sveltekit

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

79561647

Date: 2025-04-08 09:25:55
Score: 2.5
Natty:
Report link

GetAdaptersAddresses function can retrieve information for IPv4 and IPv6 addresses. It is part of Windows API. The example code and the documentation can be found at https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses

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

79561643

Date: 2025-04-08 09:25:55
Score: 2.5
Natty:
Report link

I think the suggested solutions here will help you. It helped me install the Android SDK Command-line Tools

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

79561641

Date: 2025-04-08 09:25:55
Score: 5.5
Natty: 5.5
Report link

guys if we import math and take to def functions do we have to import it twice?

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

79561638

Date: 2025-04-08 09:23:54
Score: 1.5
Natty:
Report link

There is a much better and documented way to go: use the IP Helper API, especially the GetAdaptersAddresses function. Why?

Because:

- It is well-documented and stable. You can be assured that GetAdaptersAddresses will not be changed at some point in time as it is part of the official Windows API designed for this purpose across Windows versions: registry keys are implementation details, and they can change.

- It has complete information about network adapters detailed in IPv4 and IPv6 addresses, DNS, gateways, MAC addresses, interface indices, operational status, etc.

- The right abstraction: Gets the configured state of the network stack as used by netsh and not based on possibly stale or incomplete registry entries. It can derive DHCP versus static IP without going into the registry manually.

- Disconnect media: Even a single configuration isn't concerned whether the network cable is plugged in or the Wi-Fi connected (configuration is about the same, netsh being the match for that). Here's how to do it at a high level:

  1. Include <iphlpapi.h> and link against iphlpapi.lib

  2. Include <winsock2.h>, <ws2tcpip.h> for address structures and conversion functions Link ws2_32.lib Initialize Winsock (WSAStartup)

  3. Call GetAdaptersAddresses first with NULL buffer pointer and size variable to get needed buffer size Check for ERROR_BUFFER_OVERFLOW

  4. Allocate memory for buffer, e.g., malloc

  5. Call GetAdaptersAddresses again with allocated buffer

  6. If succeeded, iterate over linked list of IP_ADAPTER_ADDRESSES structures returned in buffer

  7. For each adapter, iterate through its linked list of unicast addresses (PIP_ADAPTER_UNICAST_ADDRESS, starting from FirstUnicastAddress).

  8. Access the Address.lpSockaddr field within the unicast address structure. Check sa_family (AF_INET for IPv4, AF_INET6 for IPv6).

  9. Use functions like inet_ntop or WSAAddressToString to turn the binary IP address within the sockaddr_in or sockaddr_in6 structures into a human-readable string.

  10. Free the buffer using free. Clean up Winsock (WSACleanup).

This is intended information on network configuration made using the intended Windows API, avoiding fragile registry parsing.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ateeb Ur Rahmaan

79561621

Date: 2025-04-08 09:14:52
Score: 3.5
Natty:
Report link

jebem vam boga dabopgda umrli. Zdravo ja sam emir becirovic veoma sam nezadovoljan i napaljen sa ovim. Mali napaljeni beco oce vruceg seksa.

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

79561603

Date: 2025-04-08 09:05:49
Score: 5.5
Natty:
Report link

Since scripts will be sunset, I recommend starting your developments directly with RedApp.
You can check the link below — feel free to reach out if you need any help.

https://developer.sabre.com/sdk/sabre-red-360/25.1/help-documentation/home.html

Reasons:
  • Blacklisted phrase (1): the link below
  • Blacklisted phrase (1): any help
  • RegEx Blacklisted phrase (1): check the link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Burak Tuncer

79561597

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

it takes only 1s or 2s now to create an ec2 instance on aws in 2025

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

79561596

Date: 2025-04-08 08:59:48
Score: 1
Natty:
Report link

There are some examples how to hide, or edit capabilities for the ACF edit screen:
https://www.advancedcustomfields.com/resources/how-to-hide-acf-menu-from-clients/

For example - hiding the ACF tab in the backend:

add_filter('acf/settings/show_admin', '__return_false');

-Or- restrict user to edit based on capabilities:

function custom_acf_show_admin( $show ) {
    return current_user_can('manage_options'); // Change this to some capabilities that nobody has
}
add_filter('acf/settings/show_admin', 'custom_acf_show_admin');

More information about WordPress capabilities can you find here:
https://wordpress.org/documentation/article/roles-and-capabilities/
(You can also code some extra capabilities)

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

79561586

Date: 2025-04-08 08:53:47
Score: 1
Natty:
Report link

In the last answer interpreter catch an error:

AttributeError: 'Query' object has no attribute 'fetch'

I change fetch(10) to limit(10)

crData = session.query(crTable.c).offset(10).limit(10)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Stanislav

79561583

Date: 2025-04-08 08:51:46
Score: 3
Natty:
Report link

Apparently the character limit for a parameter is 32700, which comapred to 871443 that I would like to pass will not work.

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

79561582

Date: 2025-04-08 08:50:46
Score: 3.5
Natty:
Report link

Answer is in this part of documentation.

Thanks to @K.A.Buhr

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Leonid

79561580

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

Here are some steps to help diagnose and resolve the problem:

1. Verify API Credentials:

2. Check Billing Agreement Setup:

{

"TOKEN": "BA-*********",

"TIMESTAMP": "2025-04-03T09:25:37Z",

"CORRELATIONID": "******",

"ACK": "Success",

"VERSION": "74.0",

"BUILD": "58807128"

}

Ensure that the ACK value is "Success" and that the TOKEN is correctly used in the subsequent redirect URL.

3. Inspect Redirect URL:

https://www.paypal.com/cgi-bin/webscr?cmd=\_customer-billing-agreement&token=BA-\*\*\*\*\*\*\*

Ensure that the token parameter matches the TOKEN received from the SetExpressCheckout response.

4. Consult PayPal's Documentation:

5. Contact PayPal Support:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): *********
  • Low reputation (1):
Posted by: Sherin Kairuthi

79561573

Date: 2025-04-08 08:47:44
Score: 6 đŸš©
Natty:
Report link

To help us diagnose the problem, we need a bit more information:
- More Detailed Scenario - Please describe exactly what type of search or which part of the workbench you're using when the issue occurs? The search function appears in multiple places, so a precise description will help.
- Browser Console - Are there any errors or warnings in the Firefox console when the delay happens?
- Setup Details - You've mentioned that you're using GraphDB version 10.8.4 on a self-hosted server. Can you confirm if you're using the free version or a licensed one?
- Data Characteristics - It would also be useful to know the approximate volume and nature of the data in your database.
With these details, we can better investigate your problem.

Best regards,
Stilyana

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • RegEx Blacklisted phrase (2.5): Please describe
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Stilyana Kaleeva

79561564

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

Very late to this, but there is a very helpful postgres plugin that handles all things postcodes https://pgxn.org/dist/postcode/ Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Robert Poole-Mckenzie

79561556

Date: 2025-04-08 08:37:42
Score: 2.5
Natty:
Report link

The implementation of docker was correct.
The issue I was facing was due to docker creating wrong image of my spring app.

If I run both images on the same network, they are able to communicate with each other now!

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

79561554

Date: 2025-04-08 08:36:42
Score: 1.5
Natty:
Report link

Imagine your Firebase project is like a company. That company has different employees (robots), and each robot has a job.

You created a Firebase project

Google automatically gives you some "robot workers" to help with stuff behind the scenes. These are called service accounts.

Each one has a special job, like:

Service Account Like a... Job

[email protected] Worker Runs your Cloud Functions

firebase-adminsdk-xxxxx@... Assistant Talks to Firebase for you when you use Admin SDK (like send notification, create users)

firebase-service-account@... Tool guy Helps Firebase do tasks like linking services

[email protected] Manager Used by App Engine to run things behind the scenes

[email protected] You You are the boss. You can give them jobs (roles)

What’s a role?

A role is like a “key” or “permission”. If a robot doesn’t have the right key, it can’t do the job.

So for example:

Your Cloud Function wants to write to Firestore ➜ The compute@developer robot needs a key called Firestore Writer.

You want to use Firebase Admin SDK to create users ➜ The firebase-adminsdk@... robot needs a key called Firebase Auth Admin.

So, what should you do?

If something doesn’t work, like:

“My function can’t write to Firestore”

“I can’t access Cloud Vision API”

“My Firebase Extension gives permission error”

You probably need to give the correct robot the right role (key) in IAM.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: ujan

79561550

Date: 2025-04-08 08:34:41
Score: 0.5
Natty:
Report link

Deep Neural Networks (DNNs) and Big Data Analytics serve distinct yet often complementary roles in modern data-driven environments.

đŸ”č Big Data Analytics involves collecting, processing, and analyzing massive volumes of structured and unstructured data to uncover patterns, trends, and insights. It’s foundational for decision-making, customer behavior analysis, and operational efficiency.

đŸ”č Deep Neural Networks, on the other hand, are a type of machine learning model that excels at recognizing complex patterns in large datasets — especially in fields like image recognition, natural language processing, and predictive modeling.

Key Differences:

FeatureBig Data AnalyticsDeep Neural NetworksPurposeUnderstand and analyze trends in large data setsLearn and predict complex patternsToolsHadoop, Spark, SQL, etc.TensorFlow, PyTorch, etc.InputStructured + Unstructured DataTypically numeric/encoded dataOutputReports, dashboards, insightsPredictions, classifications

STL Digital's Role

STL Digital offers cutting-edge solutions that blend both Big Data Analytics and AI/ML, including Deep Learning. With their expertise in building scalable data platforms and AI-driven applications, STL Digital helps businesses extract actionable insights from vast datasets and deploy intelligent systems powered by deep neural networks.

Whether you’re looking to enhance customer experiences, predict market trends, or automate business processes, STL Digital provides tailored solutions that combine the power of Big Data with the intelligence of Deep Learning.

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

79561547

Date: 2025-04-08 08:33:41
Score: 2.5
Natty:
Report link

The electron white preview command is a useful tool for testing your application in production mode.this allow run your application in production like environment this allow you to test your application in a more realistic setting.

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

79561542

Date: 2025-04-08 08:31:40
Score: 1
Natty:
Report link

My bad, I was using the wrong cache value. It should be

fetch(url, {
  headers: {
    'Cache-Control': 'no-store'
  }
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Andrey Khataev

79561529

Date: 2025-04-08 08:24:38
Score: 5
Natty: 5.5
Report link

14 years later, it seems Outlook still doesn't reconize it. Is it limited to Apple iCalendar ?

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

79561525

Date: 2025-04-08 08:22:38
Score: 1
Natty:
Report link

Adding keys conditionally in 2025

Maybe this is a ES6 thing, but I use Object.create. Since we're way past 2012 and the thread is still relevant, if someone's still looking for a solution to add keys conditionally.

Many times I have encountered a situation where it is preferred that the key is not present itself.

Here's what I use, when I want to have the keys conditionally applied

Object.create({
  someKey: (condition) ? value : undefined,
})

If the condition results to false, then you'll get {} instead of { someKey: undefined }

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

79561508

Date: 2025-04-08 08:12:36
Score: 1
Natty:
Report link

You can change the project settings [Xcode] by setting TARGETED_DEVICE_FAMILY to iPhone, iPad in Build Settings,
or by going to the General tab → Supported Destinations → and adding iPad as a supported device.

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

79561502

Date: 2025-04-08 08:06:34
Score: 1
Natty:
Report link

The easiest way is to check the network trace of manually updating Force Push Setting on the UI. You will be able to see the request URL and request body. Then run the same REST API in your PowerShell scripts.

enter image description here

See Collect a network trace in the browser for the detail steps of checking network trace.

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

79561501

Date: 2025-04-08 08:05:34
Score: 0.5
Natty:
Report link

This is due to having multiple <SessionProvider>'s.

Remove a . which causes conflicts in the React dependency tree and context resolution.

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

79561496

Date: 2025-04-08 08:04:34
Score: 3
Natty:
Report link

If your EPPlus version is above 8.0.0, try ExcelPackage.License.SetNonCommercialPersonal("your name"); instead of ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
For more information, please click the link below.

https://github.com/EPPlusSoftware/EPPlus/wiki/Getting-Started#epplus-8-and-above---set-the-excelpackagelicense-property

Reasons:
  • Blacklisted phrase (1): the link below
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yu Hang Liu

79561492

Date: 2025-04-08 08:03:34
Score: 0.5
Natty:
Report link

Here is what I do: I don't use the API (in my case it's React Native app and @react-native-community/netinfo package) directly to check if it's offline or not. I use a context to check and provide the connection status. The context also provides a function to toggle offline status. It's now easier to test the offline mode and I have full functional debugging feature.

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

79561491

Date: 2025-04-08 08:03:34
Score: 1
Natty:
Report link
private static string FormatBytes(long bytes)
{
    string[] sizes = { "B", "KB", "MB", "GB", "TB", "PB" };
    var order = 0;

    while (bytes >= 1024 && order < sizes.Length - 1)
    {
        order++;
        bytes /= 1024;
    }

    return $"{bytes:0.##} {sizes[order]}";
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GOSTRAFX

79561490

Date: 2025-04-08 08:02:33
Score: 1.5
Natty:
Report link

This feature adds on-device speech recognition support to the Web Speech API, allowing websites to ensure that neither audio nor transcribed speech are sent to a third-party service for processing.

Websites can query the availability of on-device speech recognition for specific languages, prompt users to install the necessary resources for on-device speech recognition, and choose between on-device or cloud-based speech recognition as needed.

https://chromestatus.com/feature/6090916291674112

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

79561489

Date: 2025-04-08 08:02:33
Score: 2.5
Natty:
Report link

In glsl this is done via matrix multiplication, on the graphics card. I think if you wanted a general purpose solution you would want to use a similar method but you would lose out in the gpu acceleration

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

79561480

Date: 2025-04-08 07:57:32
Score: 0.5
Natty:
Report link

I’ve created a resource dictionary for the radio button style. You can customize the colors as needed. I hope you find it helpful! The center button in the attached image represents the selected radio button.

enter image description here

Below is the radio button style.

<Style TargetType="RadioButton">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="BorderBrush" Value=" #404040"/>
    <Setter Property="BorderThickness" Value="2"/>
    <Setter Property="Height" Value="50"/>
    <Setter Property="Width" Value="50"/>
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="RadioButton">
                <Border x:Name="bd" CornerRadius="25" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Background="{TemplateBinding Background}"
                        BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                    <Ellipse x:Name="ec"   Width="40"    Height="40"    Fill="#cce0ff"    />
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsChecked" Value="True">
                        <Setter TargetName="ec" Property="Fill" Value="#0047b3"/>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: S.Nieshant

79561469

Date: 2025-04-08 07:50:30
Score: 3
Natty:
Report link

Make sure you enable "Use exclude setting and ignore file" to speed up search. Exclude Option Image.

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

79561466

Date: 2025-04-08 07:49:29
Score: 0.5
Natty:
Report link

Just to expand on the other answers here, I would point out that the 64Mb limit is documented here: https://milvus.io/docs/limitations.md#Input-and-Output-per-RPC

Note that this is the size of the gRPC call which will contain your data, presumably with some additional metadata appended, serialised into protobuf format. The implication of this is that it is not easy for your python program to determine a priori whether a payload is going to exceed the limit.

I think that the only way to address this is just to be really defensive as you load data into a milvus collection. In other words, do the insert in batches and if you see this error attempt to retry it with a smaller batch size. Just make sure that you are being very specific with the errors you handle and take care to ensure that you won't leave a collection partially updated if it fails midway through.

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

79561448

Date: 2025-04-08 07:39:27
Score: 4
Natty: 4
Report link

I know it's a 11 year old topic, but, I just switched to js and webstorm. I'm wondering if anyone knows if I can set project explorer to automatically expand src directory once I expand a module?

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Clone

79561444

Date: 2025-04-08 07:35:25
Score: 12.5 đŸš©
Natty: 5.5
Report link

I have a same problem. Did you resolve the problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did you resolve the problem
  • RegEx Blacklisted phrase (1.5): resolve the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sna0e

79561438

Date: 2025-04-08 07:34:24
Score: 7.5 đŸš©
Natty: 6
Report link

could you please provide more details about the specific modifications you made? I am encountering the same issue and would appreciate your guidance.

Reasons:
  • Blacklisted phrase (1.5): would appreciate
  • RegEx Blacklisted phrase (2.5): could you please provide
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30206007

79561434

Date: 2025-04-08 07:32:23
Score: 1.5
Natty:
Report link

I know it is late to answer, but it can be useful for others. Here are links from documentation where it is all very nicely explained. I would suggest to check Wss4jSecurityInterceptor

https://docs.spring.io/spring-ws/docs/3.0.1.RELEASE/reference/#security-wss4j-security-interceptor

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

79561433

Date: 2025-04-08 07:32:23
Score: 0.5
Natty:
Report link

Specific for Firebase/Messaging pod problem:

  1. Go to ios folder cd ios in your root flutter project

  2. Then update pod repo by pod repo update

  3. Update Firebase/Messaging by pod update Firebase/Messaging

  4. And try to flutter run again!

With this method, i didn't need to change my minimum deployment target.

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

79561432

Date: 2025-04-08 07:31:23
Score: 0.5
Natty:
Report link
$employee = Employee::find($user_id);
$employee->update(['38' => 'Php']);

Try this, this might work!!

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vaishnavi

79561429

Date: 2025-04-08 07:31:23
Score: 2
Natty:
Report link

So I found out (thanks @pratik-jadhav) that using the npx teamsapp auth command is not suitable for usage in a CI/CD pipeline due to the client credentials flow using a scope that cannot be changed (as far as I know).

Retrieving the AZURE_ACCESS_TOKEN by CURL and setting it as a environment variable seems to be working as a workaround.

    - >
      export AZURE_ACCESS_TOKEN=$(curl -s -X POST https://login.microsoftonline.com/$AAD_APP_TENANT_ID/oauth2/v2.0/token
      -H "Content-Type: application/x-www-form-urlencoded"
      -d "client_id=$AAD_APP_CLIENT_ID"
      -d "scope=https://management.azure.com/.default"
      -d "client_secret=$AAD_APP_CLIENT_SECRET"
      -d "grant_type=client_credentials" | jq -r .access_token)

I also tried using the az login command in combination with npx teamsapp deploy which authenticates me as well.

    - az login --service-principal -u "$AAD_APP_CLIENT_ID" -p "$AAD_APP_CLIENT_SECRET" --tenant "$AAD_APP_TENANT_ID"
    - az account set --subscription "$AAD_SUBSCRPTION_ID"

However, when the npx teamsapp deploy command starts, I get the following error now:

invalid deployment token error

I tried fixing this by manually setting the SWA_CLI_DEPLOYMENT_TOKEN (that is used by Azure's az deploy command) as a CI/CD environment variable, but the error remains the same.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1): I get the following error
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @pratik-jadhav
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DanteC

79561427

Date: 2025-04-08 07:29:22
Score: 0.5
Natty:
Report link

i have 2 recommendation :

  1. please make sure that the matrics value is scalar, you can use like float(tr_loss).

  2. add_hparams do not have global_step as it is not a add_scalar that track your progress, add_hparams is used 1 time only usually in beginning or end.

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

79561425

Date: 2025-04-08 07:28:22
Score: 3
Natty:
Report link

You have to use plugins which does the task of converting wal events to sql queries.One such plugin is decoder_raw
https://github.com/michaelpq/pg_plugins/blob/main/decoder_raw/decoder_raw.c
Install it and create slot with this plugin.

Reasons:
  • Blacklisted phrase (1): this plugin
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: manjunath

79561424

Date: 2025-04-08 07:27:22
Score: 1
Natty:
Report link
<table>
      <tbody>
        {Array.from({ length: Math.ceil(data.length / 2) }).map((_, i) => (
          <tr key={i}>
            <td>
              <p>
                ID <b>{i * 2 + 1}</b>:<br />
                Location # <b>{data[i * 2]?.Location}</b>
                <br />
                Seal # <b>{data[i * 2]?.Seal}</b>
              </p>
            </td>
            <td>
              {data[i * 2 + 1] && (
                <p>
                  ID <b>{i * 2 + 2}</b>:<br />
                  Location # <b>{data[i * 2 + 1]?.Location}</b>
                  <br />
                  Seal # <b>{data[i * 2 + 1]?.Seal}</b>
                </p>
              )}
            </td>
          </tr>
        ))}
      </tbody>
    </table>

Inside each row, add 2 <td> and loop for every 2 elements.
This way you will be able to show data the way you mentioned

Output:
enter image description here

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

79561410

Date: 2025-04-08 07:18:19
Score: 2
Natty:
Report link

The shortcut mapping was correct in my case, and I used the latest VSCode version.

I needed to switch from the pre-release version to the official release of the Copilot and the Copilot chat extension.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mat D.

79561409

Date: 2025-04-08 07:18:19
Score: 0.5
Natty:
Report link

Apparently this is the expected behaviour. Regarding solutions we're currently exploring the following:

  1. Setting up our repo so that we split packages per distribution (where distributions here represent our project's) in a way that guarantees compatibility.
  2. Leveraging package names. In this case we would have packageA-2.0 and packageA-2.1, and packageB would depend on packageA-2.0
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mattdibi

79561407

Date: 2025-04-08 07:16:18
Score: 4
Natty:
Report link

I am having the same error: [Error: Failed to collect configuration for /_not-found]

Later, I found out that my .env file was missing a variable. Adding that environment variable solved this build error.

Also, try deleting the ".next" folder if you are self-hosting your project.

Reasons:
  • RegEx Blacklisted phrase (1): I am having the same error
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same error
  • Low reputation (0.5):
Posted by: Mohammad Ahmer Malick

79561405

Date: 2025-04-08 07:16:18
Score: 0.5
Natty:
Report link

A 401 Unauthorized error in an OAuth 2.0 flow typically indicates an issue with the client's authorization to access the resource. Based on the information provided, here are a few things to check:

* Client Credentials: Double-verify that the client_id and client_secret you are using in your application exactly match the credentials that were generated when you created the OAuth client in Oracle APEX.

* Token URL: Ensure the token URL you are using to request the access token is the correct endpoint provided by your Oracle APEX OAuth 2.0 configuration.

* Grant Type: Confirm that the grant type your application is using to request the token is one of the allowed grant types configured for the OAuth client in Oracle APEX.

* Client Role and Privilege Assignment: You've mentioned creating a custom role and privilege and assigning them to the module and the OAuth client. Ensure that the privilege (client_auth_custom) is correctly associated with the specific resource you are trying to access with the obtained token.

* Firewall/Network Issues: While less likely for a 401, ensure there are no network connectivity issues preventing your application from reaching the token URL or the protected resource endpoint.

* Server Logs: If possible, check the Oracle APEX server logs for more detailed error messages related to the OAuth 2.0 flow.

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

79561397

Date: 2025-04-08 07:13:17
Score: 3
Natty:
Report link

I don't have the cPanel admin, but to connect to the database, you need the connection string provided by the cPanel.

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

79561389

Date: 2025-04-08 07:08:16
Score: 2.5
Natty:
Report link

The comments answer my question. There is no single best configuration for multi-objective tuning, thus this process canÂŽt be automated using auto_tuner() .

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

79561380

Date: 2025-04-08 07:00:14
Score: 3
Natty:
Report link

Without looking at your code ... set the int width to 5. At 10 people you cannot handle the cardinality anymore because the default int width is 4: -8-7.

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