79127039

Date: 2024-10-25 19:15:27
Score: 0.5
Natty:
Report link

As of the date of this answer, I recommend to use the ruff extension of VSCode (using the ruff package without VSCode is also possible). The ruff FAQ state:

Ruff can be used as a drop-in replacement for Flake8 when used (1) without or with a small number of plugins, (2) alongside Black, and (3) on Python 3 code.

(with plugins, they mean flake8 plugins, e.g. flake8-use-pathlib.)
The advantage is that linting with ruff is faster and more common than with flake8.

Reasons:
  • No code block (0.5):
Posted by: mouwsy

79127037

Date: 2024-10-25 19:12:26
Score: 1
Natty:
Report link

I tried all of these, and it finally worked! Sometimes, it can run very slowly at first, but you need to be patient. I think you need to free up space on the C: drive, which will not only improve its performance but also benefit your overall system performance. I also changed the version of Android while creating a new device. The one I had chosen earlier had 'not supported' next to it. I don't really know if it influenced anything, but in my case, it worked :)

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Miniacraft

79127036

Date: 2024-10-25 19:12:26
Score: 3.5
Natty:
Report link

This was an intentional change that was thankfully reverted by the Symfony team.

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

79127030

Date: 2024-10-25 19:10:26
Score: 2.5
Natty:
Report link

Thanks Barto670, "fromNumber={100}" worked for me, after a lot of searching for information.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sebastián González Morales

79127027

Date: 2024-10-25 19:08:25
Score: 1
Natty:
Report link

If you've encountered issues after upgrading to Android Studio LadyBug, here's how you can resolve them:

Modify settings.gradle File:

Under the plugins section in your settings.gradle file, add the following line:

id "com.android.application" version "8.3.2" apply false

Gradle Plugin Error:

If you encounter any errors related to the Gradle plugin version, update your gradle-wrapper.properties file with the following:

distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip

After making these changes, clean and rebuild your project to ensure everything compiles correctly.

You can read more on this issue on this github : credits

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

79127022

Date: 2024-10-25 19:06:24
Score: 1
Natty:
Report link

I have to use for: instead of isPresented. That was the issue.

Here are my solution.

Button(action: {
    navPath.append(1)
}) {
    Text("Alle Spieler anzeigen")
     Image(systemName: "person.3.fill")
}

2 NavigationDestination

.navigationDestination(for: TeamData.self) { team in
    PlayerViewiPad(team: team)
}
.navigationDestination(for: Int.self) { noTeam in
    PlayerViewiPad(team: TeamEmptyData)
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: piro299

79127019

Date: 2024-10-25 19:05:24
Score: 3
Natty:
Report link

I was able to resolve this by deleting the hidden .git folder in the project folder. I then reopened VS Code and had the option to Initialize Repository.

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

79127016

Date: 2024-10-25 19:04:24
Score: 1.5
Natty:
Report link

Just a silly thing that fixed it. I had to remove the spaces from folder name.

fix:
/Linux Driver Test -> /Linux_Driver_Test

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

79127007

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

I have achieved Json as required using Steve Py's answer.

I have added:

public virtual ICollection<tblProduct_attr> Attributes { get; set; }

in tblProduct model file, and code works perfectly without explicit join.

Thank you very much Steve Py, and sorry I have bother you a lot.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (0.5): sorry I have
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Chaudhry Waqas

79126993

Date: 2024-10-25 18:55:21
Score: 2.5
Natty:
Report link

sudo ln -sfn /Applications/Android\ Studio.app/Contents/jbr /Library/Java/JavaVirtualMachines/jbr

this helps, does the same in a command in your terminal .

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

79126989

Date: 2024-10-25 18:53:21
Score: 0.5
Natty:
Report link

Returning a MultipartFile directly in a Spring Boot response will not work as you expect because MultipartFile is not a serializable object, and Spring attempts to serialize it into JSON.

Instead, you can stream the file content directly in the response. Here’s how you can do it:

Change the Return Type: Instead of returning a MultipartFile, return a ResponseEntity with the byte array of the file or an InputStream. Set the Appropriate Headers: Ensure you set the correct content type and any other necessary headers.

@RestController public class YourController {

@GetMapping("/your-endpoint")
public ResponseEntity<InputStreamResource> getFile() {
    // Simulating your image upload response
    ImageUploadResponse imageUploadResponse = ...; // Get your imageUploadResponse

    InputStream inputStream = imageUploadResponse.getInputStream();
    String fileName = imageUploadResponse.getKey();
    String mimeType = imageUploadResponse.getMimeType();

    HttpHeaders headers = new HttpHeaders();
    headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + fileName);
    headers.add(HttpHeaders.CONTENT_TYPE, mimeType);

    InputStreamResource resource = new InputStreamResource(inputStream);

    return new ResponseEntity<>(resource, headers, HttpStatus.OK);
}

}

Explanation: InputStreamResource: This allows you to send an InputStream as a response body, which is suitable for file downloads. Headers: You can set headers such as Content-Disposition to specify how the file should be handled by the client (download, inline, etc.). Content-Type: Make sure you set the correct MIME type for the file.

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

79126987

Date: 2024-10-25 18:51:21
Score: 3
Natty:
Report link

Thanks to @Kelo's input, was able to get what I'm looking for via the below:

ax = df.plot(kind="bar", color=colors)
for bar in ax.containers[0]:
    bar.set_alpha(.5)

enter image description here

Versus original: enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Kelo's
  • Self-answer (0.5):
Posted by: Chris

79126986

Date: 2024-10-25 18:51:21
Score: 1.5
Natty:
Report link

I've been going through a bunch of documentation and SO posts and I found this solution to work (Is it possible to enable remote jmx monitoring programmatically?)

I'm sure you can translate your XML config into a @Configuration class to modernize your app as well:

    @Bean
    Registry rmiRegistry() throws Exception {
        
        var jmxPort = getJmxPort(); //get your port from a property? jmx.port
        var registry = LocateRegistry.createRegistry(jmxPort);
        MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
        JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://0.0.0.0:"+jmxPort+"/jndi/rmi://127.0.0.1:"+jmxPort+"/jmxrmi");
        JMXConnectorServer srvr = JMXConnectorServerFactory.newJMXConnectorServer(url, getJmxEnvironment(), mbs);
        srvr.start();
        return registry;
    }

Now for the getJmxEnvironment() method, add the custom objects to this map (the environment with jmx.remote.rmi.client.socket.factory and jmx.remote.rmi.server.socket.factory to your implementations)

Finally it wouldn't hurt to check these docs for some extra configuration points: https://docs.oracle.com/en/java/javase/17/docs/api/java.management.rmi/javax/management/remote/rmi/package-summary.html

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Configuration
  • Low reputation (1):
Posted by: manrodriguezf

79126961

Date: 2024-10-25 18:44:19
Score: 1
Natty:
Report link

Use the command

git reset --hard HEAD~1

Careful though, this will delete the commit, so you'll lose those changes.

The argument HEAD~1 acutally shifts your HEAD reference back to the previous commit. So the latest commit will be gone.

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

79126958

Date: 2024-10-25 18:42:18
Score: 2.5
Natty:
Report link

Both UX flow (popup and redirect) would be affected. Set the data-use_fedcm_for_prompt to true to make sure your sign in flow works.

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

79126953

Date: 2024-10-25 18:41:18
Score: 0.5
Natty:
Report link

Based on the question and answer from @EC99 here and the comments from @DmitryStreblechenko I came up with 3 approaches to create outlook-emails from excel-vba - I think the original question pointed to the creation of outlook-emails from excel-vba. The answer from @EC99 includes outlook-vba code. Thank you both @EC99 and @DmitryStreblechenko: Without your question/answer/comments I could not do that.

What's important to know is that my answer and @EC99's answer copy the confidential label from another email.

Below you will find 3 approaches:
I. You found your values for SensitivityLabelGUID and SiteGUID and you just write it in your code (See answer from EC99 to find the values (values need to come from an confidential mail))
II. You want to use another email on your filesystem that has the confidential label to copy it from there
III. You want to use another email from outlook by its EntryID that has the confidential label to copy it from there

'Option 1 (You found your values for SensitivityLabelGUID and SiteGUID and you just write it in your code
Sub SendMail_Option1()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
Dim SensitivityLabelGUID As String
Dim SiteGUID As String
Dim PropAccessor As Variant
Set PropAccessor = OutMail.PropertyAccessor
 
SensitivityLabelGUID = "345xy691-4219-45fd-985f-fdc3a990e22c" ' <----------- Fill your values here
SiteGUID = "1ad0323a-54x2-49a6-9e49-52tz0a954c89" ' <----------- Fill your values here


MSIPLabel = "MSIP_Label_" & SensitivityLabelGUID & "_Enabled=true;" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_Method=Privileged;" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_Name=" & SensitivityLabelGUID & ";" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_SetDate=" & dateTimeNow & "; " & _
            "MSIP_Label_" & SensitivityLabelGUID & "_SiteId=" & SiteGUID & "; "

PropAccessor.SetProperty "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/msip_labels", MSIPLabel

On Error GoTo ErrorHandler
    With OutMail
        .To = "[email protected]"
        .CC = "[email protected]"
        '.BCC = "[email protected]"
        .Subject = "Test"
        .HTMLBody = "Test"
        .Sensitivity = 3 '2=Private 3=Confidential
        .Display '.Send
   End With

Exit Sub
ErrorHandler:
End Sub
   'Option 2 (You want to use another email on your filesystem that has the confidential label to copy it from there)
   Sub SendMail_Option2()
   Dim OutApp As Object
   Dim OutMail As Object
   Set OutApp = CreateObject("Outlook.Application")
   Set OutMail = OutApp.CreateItem(0)
   Dim MailTemplatePath As String
   Dim MailTemplate As Object
   Dim MailTemplatePropertyAccessor As String
   Dim SensitivityLabelGUID As String
   Dim SiteGUID As String
   Dim PropAccessor As Variant
   Set PropAccessor = OutMail.PropertyAccessor
   
   MailTemplatePath = "C:\Confidential_Email_As_Sample.msg" '<----------- Fill your value here
   Set MailTemplate = OutApp.CreateItemFromTemplate(MailTemplatePath)
   MailTemplatePropertyAccessor = MailTemplate.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/msip_labels/0x0000001F")
   SensitivityLabelGUID = Mid(MailTemplatePropertyAccessor, InStr(MailTemplatePropertyAccessor, "MSIP_Label_") + Len("MSIP_Label_"), 36)
   SiteGUID = Mid(MailTemplatePropertyAccessor, InStr(MailTemplatePropertyAccessor, "SiteId=") + Len("SiteId="), 36)
   
   MSIPLabel = "MSIP_Label_" & SensitivityLabelGUID & "_Enabled=true;" & _
               "MSIP_Label_" & SensitivityLabelGUID & "_Method=Privileged;" & _
               "MSIP_Label_" & SensitivityLabelGUID & "_Name=" & SensitivityLabelGUID & ";" & _
               "MSIP_Label_" & SensitivityLabelGUID & "_SetDate=" & dateTimeNow & "; " & _
               "MSIP_Label_" & SensitivityLabelGUID & "_SiteId=" & SiteGUID & "; "
   
   PropAccessor.SetProperty "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/msip_labels", MSIPLabel
   
   On Error GoTo ErrorHandler
       With OutMail
           .To = "[email protected]"
           .CC = "[email protected]"
           '.BCC = "[email protected]"
           .Subject = "Test"
           .HTMLBody = "Test"
           .Sensitivity = 3 '2=Private 3=Confidential
           .Display '.Send
      End With
   
   Exit Sub
   ErrorHandler:
   End Sub

'Option 3 (You want to use another email from outlook by its EntryID that has the confidential label to copy it from there)
Sub SendMail_Option3()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Dim OutSession As Object
Set OutSession = OutApp.Session
Set OutMail = OutApp.CreateItem(0)
Dim MailTemplateEntryID As String

Dim MailTemplatePropertyAccessor As String
Dim SensitivityLabelGUID As String
Dim SiteGUID As String
Dim PropAccessor As Variant
Set PropAccessor = OutMail.PropertyAccessor

MailTemplateEntryID = "0000000055A868E9D99D704E94D6609666E5366B78002211D0E2E0384A41B06DC02781D89DF10012004F9X6F00009DAC56FE5596124D92023CA476945FD40001231EF4F01230" '<----------- Fill your value here
Set MailTemplate = OutSession.GetItemFromID(MailTemplateEntryID) 'Get the email item by EntryID
MailTemplatePropertyAccessor = MailTemplate.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/msip_labels/0x0000001F")
SensitivityLabelGUID = Mid(MailTemplatePropertyAccessor, InStr(MailTemplatePropertyAccessor, "MSIP_Label_") + Len("MSIP_Label_"), 36)
SiteGUID = Mid(MailTemplatePropertyAccessor, InStr(MailTemplatePropertyAccessor, "SiteId=") + Len("SiteId="), 36)

MSIPLabel = "MSIP_Label_" & SensitivityLabelGUID & "_Enabled=true;" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_Method=Privileged;" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_Name=" & SensitivityLabelGUID & ";" & _
            "MSIP_Label_" & SensitivityLabelGUID & "_SetDate=" & dateTimeNow & "; " & _
            "MSIP_Label_" & SensitivityLabelGUID & "_SiteId=" & SiteGUID & "; "

PropAccessor.SetProperty "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/msip_labels", MSIPLabel

On Error GoTo ErrorHandler
    With OutMail
        .To = "[email protected]"
        .CC = "[email protected]"
        '.BCC = "[email protected]"
        .Subject = "Test"
        .HTMLBody = "Test"
        .Sensitivity = 3 '2=Private 3=Confidential
        .Display '.Send
   End With

Exit Sub
ErrorHandler:
End Sub
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @EC99
  • User mentioned (0): @DmitryStreblechenko
  • User mentioned (0): @EC99
  • User mentioned (0): @EC99
  • User mentioned (0): @DmitryStreblechenko
  • User mentioned (0): @EC99's
  • Low reputation (0.5):
Posted by: Peter

79126945

Date: 2024-10-25 18:40:17
Score: 3
Natty:
Report link

You don't have to only install the version tha it's compatible with your Angular version, but you have to also update your project.

To do so, you use the ng update command. It updates the entire project and its dependencies to align with the latest version of Angular. It updates the Angular packages and modifies the project's configuration files and codes to align with the latest version of Angular.

You can refer to these links. They are really helpful:

Reasons:
  • Blacklisted phrase (1): these links
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): StackOverflow
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sithila Somaratne

79126940

Date: 2024-10-25 18:38:16
Score: 2.5
Natty:
Report link

You are using both HTML and JavaScript Sign in with Google SDK. You only need to use either one. I am guessing that is why you see the blinking issue.

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

79126927

Date: 2024-10-25 18:31:15
Score: 1.5
Natty:
Report link

Something that worked for me for uninstalling the previous install was to replace inside installscript.js: installer.execute(dir + "/maintenancetool.exe", ["purge", "-c"]);

with

component.addElevatedOperation("Execute", dir + "/maintenancetool.exe", "purge", "-c");

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Greg

79126923

Date: 2024-10-25 18:31:15
Score: 0.5
Natty:
Report link

I was using the most recent version of Nodejs but I had to go back to the last LTS version (v20.18.0)

Removed the package with:

brew uninstall watchman

And installed it again after installing Nodejs LTS version:

brew install watchman

That fixed this problem.

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

79126902

Date: 2024-10-25 18:24:13
Score: 3
Natty:
Report link

The issue was with the versions of containerd and runc.

I updated the two to resolve the issue.

More details: https://github.com/moby/buildkit/issues/5117

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: i.am.it

79126898

Date: 2024-10-25 18:23:13
Score: 2
Natty:
Report link

If you’re using Java 8 or higher, you can utilize Optional to handle potential null values more gracefully.

String customerId = Optional.ofNullable(user.getCustomerId()).orElse(null);

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

79126883

Date: 2024-10-25 18:19:12
Score: 0.5
Natty:
Report link

I have created a nuget package that provides the ability to easily restore files and directories from the Windows recycle bin.

Example:

using WindowsRecylceBin; 
...    
var recycleBin = RecycleBin.ForCurrentUser();
recycleBin.Restore(@"C:\Users\Sample\Documents\ImportantDocument.txt");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastian B

79126880

Date: 2024-10-25 18:18:12
Score: 0.5
Natty:
Report link

I have created a nuget package that provides the ability to easily restore files and directories from the Windows recycle bin.

Example:

using WindowsRecylceBin; 
...    
var recycleBin = RecycleBin.ForCurrentUser();
recycleBin.Restore(@"C:\Users\Sample\Documents\ImportantDocument.txt");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastian B

79126879

Date: 2024-10-25 18:17:11
Score: 0.5
Natty:
Report link
const MAPPING: { [key in Types]?: number } = { APPLE: 1 };
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Nikolay

79126860

Date: 2024-10-25 18:10:08
Score: 10
Natty: 7
Report link

In my case I'm getting the error {"error":"invalid data"}. And it's working like on/off switch one request responding invalid data and the another request is responding proper data. Can anyone help to fix this?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix this?
  • RegEx Blacklisted phrase (3): Can anyone help
  • RegEx Blacklisted phrase (1): I'm getting the error
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arunagiri

79126853

Date: 2024-10-25 18:08:08
Score: 3
Natty:
Report link

The answer is no it is not save to return the struct. The struct itself is a copy so it it safe to return but in the struct is a PWSTR aka a char* and that pointer points to an area in the byte* (just after the array of structs) which is not valid after the function returns.

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

79126850

Date: 2024-10-25 18:07:06
Score: 9 🚩
Natty: 5
Report link

Friends, I tried 1-2 programs with a Programmer (ST-LINK V2) on a Project card with Stm32F100c6, I turned the LED on and off.. Then I started not being able to connect to STM32F? But the blink application I put in it continues to work. So there is no fault. I was programming with Software Reset mode. I was only programming with SWDIO SWCLK GND VCC legs After a lot of adaptation, I was able to connect to STM32F in Core Reset mode by pulling the NRST pin to GND. When I press and hold the Reset button and connect, it connects occasionally but gives an error most of the time.. (Error: No STM32 target found!) How can I get it back to its old state, that is, to the settings that would connect when I said direct connect. (Software Reset) Can you please help me. I need to do some exercise this weekend?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (3): Can you please help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: iPad Air

79126849

Date: 2024-10-25 18:07:05
Score: 1
Natty:
Report link

For several weeks, we encountered persistent quota limitations on Vertex AI (also in the europe-west1 region). Despite multiple attempts to request quota increases, we received no substantial response or support. Then, on October 24th 2024, our quota was abruptly set to 0 without any prior communication.

We attempted to resolve the issue today (October 25th 2024) by switching to AWS Bedrock. Unfortunately, claude-3-5-sonnet seems to be unavailable across all AWS regions as well.

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

79126830

Date: 2024-10-25 18:03:05
Score: 1.5
Natty:
Report link

Try change the getter in Profile class

String getCustomerId() {
    return StringUtils.isNotBlank(this.customerId) ? this.customerId : StringUtils.EMPTY;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sharad Paul

79126826

Date: 2024-10-25 18:01:04
Score: 1
Natty:
Report link

I've solved it in my example like this:

const Tag = (unstyled ? 'button' : 'Button') as ElementType;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lovor

79126823

Date: 2024-10-25 18:00:04
Score: 1.5
Natty:
Report link

We use ncipollo/release-action@v1 GitHub action to make releases. I don't why it was working well before, but anyway I found I can pass makeLatest: true for the release and it will be marked as latest. It resolved the problem.

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

79126817

Date: 2024-10-25 17:57:02
Score: 0.5
Natty:
Report link

Yes thanks for reply. I realized later that

 <nflGameStats ref="childGetStats" />

was wrapped in a v-for so I had an array of the functions and had to call the function with the proper array index

<tr @click=" childGetStats[totalCount].getStats(
    gameInfo.game.id)"                                           title="Click for Game Stats">
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Alan

79126816

Date: 2024-10-25 17:56:02
Score: 0.5
Natty:
Report link

Found a solution.

interface SVGAttributes<T> doesn't need to have title prop, becuase when title prop is passed, @svgr/webpack creates a tag <title> inside <svg> tag, not put title as an attribute.

So all we need is to make proper declaration through intersection to avoid mistake which says that title prop doesn't exist:

declare module '*.svg' {
    import { type FC, type SVGProps } from 'react'
    const SVG: FC<SVGProps<SVGElement> & { title?: string }>
    export default SVG
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: rgdzv

79126797

Date: 2024-10-25 17:51:01
Score: 0.5
Natty:
Report link

I have done this in the past and this is the way I do it.

# Define the path to your batch file
$batchFilePath = "C:\path\to\your\batchfile.bat"

# Read the content of the batch file
$batchFileContent = Get-Content -Path $batchFilePath

# Define the replacements
$NewFileContent1 = $batchFileContent.Replace('192.168.10.100','10.200.30.46')
Set-Content -Value $NewFileContent1 -Path $batchFilePath -Force
$NewFileContent2 = $NewFileContent1.Replace('192.1686.10.55','10.10.133.18')
Set-Content -Value $NewFileContent2 -Path $batchFilePath -Force

Optionally you could be more aggressive and use multiple "Replace" methods on one line.

$NewFileContent1 = $batchFileContent.Replace('192.168.10.100','10.200.30.46').Replace('192.1686.10.55','10.10.133.18')

Important Note: since IP Addresses are numbers it should not matter however since you didn't share your actual value I want to be sure and tell you that the strings in the replace method overload are indeed case sensative. So for example 'cat' does not equal 'CAT' so if theer are alpha charecters in the string then be sure to match case inside the overload parenthesis.

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

79126789

Date: 2024-10-25 17:47:00
Score: 1
Natty:
Report link

the first letter of Path must be capital. this resolved my issue.

incorrect:

spring.cloud.gateway.routes[0].predicates[0]=path=/api/product

correct:

spring.cloud.gateway.routes[0].predicates[0]=Path=/api/product
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhishek Ashware

79126781

Date: 2024-10-25 17:44:59
Score: 2.5
Natty:
Report link

I discovered that my AVG antivirus was causing issues with curl SSL connections on my local machine. Even after disabling enhanced firewall protection, I still experienced problems until I completely uninstalled AVG. This resolved the issue.

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

79126773

Date: 2024-10-25 17:41:58
Score: 7
Natty: 7
Report link

Can I ask what module you used to export .xls file?

Reasons:
  • Blacklisted phrase (1): Can I ask
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can I as
  • Low reputation (1):
Posted by: Wang Xuxin

79126748

Date: 2024-10-25 17:32:55
Score: 3
Natty:
Report link

Specify the path when referencing the enterprise iso instead of depending on script to know it since it would be the only iso in the folder... In your case, it would have been c:\teamsscript\winenterprise.iso. Had the same issue as well; Microsoft is pretty terrible with their documentation regarding this.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sam

79126745

Date: 2024-10-25 17:31:55
Score: 2
Natty:
Report link

In my case the count remains 3,957 if I select all events, an event that had 2 attendees, or an event that had 1,734 attendees.

You need to exclude the "Event ID:" using ALLEXCEPT() maybe!, If you would share a sample of your data, may be I could try writing some DAX for it.

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

79126737

Date: 2024-10-25 17:27:54
Score: 0.5
Natty:
Report link

I came to realize that I was looking at my injectors wrong. What I ended up doing is the following:

/*environment.model.ts*/
export interface IEnvironmentModel {
    // ...
}

export const ENVIRONMENT_INJECTION_TOKEN = new InjectionToken<IEnvironmentModel>('environment-model');

/*app.module.ts*/
@NgModule({
    // ...
    providers: [
        {
            provide: ENVIRONMENT_INJECTION_TOKEN,
            useValue: environment
        }
    ]
})
export class AppModule {}

This way, I could do @Injectable({ providedIn: 'root' }) for AuthService as well as all of it's dependencies.

When I tested this, I found that if ENVIRONMENT_INJECTION_TOKEN was not provided in the app module, I would get a null injector error, but as long as it was provided, I could use all of the services that I needed.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Duncan McPherson

79126725

Date: 2024-10-25 17:24:53
Score: 1.5
Natty:
Report link

I was using GooglePlayAssetDelivery and tried and build successfully following this steps:

restarted my PC from Plugins/mainTemplate.gradle commented this line of code implementation 'com.google.android.play:core:1.8.+' and add if there isn't implementation 'com.google.android.play:asset-delivery:2.2.1' or which service u r using and builded

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

79126715

Date: 2024-10-25 17:20:53
Score: 1.5
Natty:
Report link

You can render:

  1. Variable values
  2. Mathematical operations
  3. Invoke functions
  4. Loop through array and objects to render elements using methods like filter, map etc.
  5. conditionally render elements.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Aurobindo Bhuyan

79126710

Date: 2024-10-25 17:19:52
Score: 3.5
Natty:
Report link
Same Problem i am facing , if anyone have answer to it please let me know 

import { NextRequest, NextResponse } from "next/server";
import Replicate from "replicate";


export async function POST(req: NextRequest) {
  const data = await req.json();
  const replicate = new Replicate({
    auth: process.env.NEXT_PUBLIC_REPLICATE_API_TOKEN || "",
  });
  const { prompt } = data;
  const input = {
    prompt: prompt,
    output_format: "png",
    num_outputs: 1,
    aspect_ratio: "1:1",
    output_quality: 80,
  };
  const output = await replicate.run("black-forest-labs/flux-schnell", {
    input: input, 
  });

  console.log(output);
  return NextResponse.json({ imageUrl: output }); 
};

---i am getting empty imageUrl
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): Same Problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user8139179

79126695

Date: 2024-10-25 17:15:51
Score: 0.5
Natty:
Report link

I haven't found the official way of doing this but the editor uses a contenteditable div which you can target with .toastui-editor-contents. The below works:

document.querySelector('.toastui-editor-contents').addEventListener('input', fn);

The answer here explains how to detect a 'change' event for contenteditable elements.

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

79126691

Date: 2024-10-25 17:12:50
Score: 1.5
Natty:
Report link

I followed @Igor Dvorzhak instructions along with not sending the jar as DataProc parameter.

This worked for me.

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Igor
  • Low reputation (1):
Posted by: SuperMarcellus

79126690

Date: 2024-10-25 17:12:50
Score: 2
Natty:
Report link

After different approaches, I found the issue may just the connections with the bluetooth device and the socket. I created an escape char in the data transmission to know when the stream is complete from the bluetooth device. Below works as expected.

               var sb = StringBuilder()
               inputStream.read().let {
                    if (it.toChar().toString() == "#") {
                        mHandler.obtainMessage(
                            HandlerConstant.MESSAGE_READ,
                            sb.toString()
                        ).sendToTarget()
                        sb.clear()
                    } else {
                        sb.append(it.toChar())
                    }
                }

Thanks for the help. This link helped me land on this approach Android Bluetooth InputStream read in realtime

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): This link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user22239162

79126688

Date: 2024-10-25 17:11:50
Score: 1
Natty:
Report link

The error occurs because Future<List<DataRow>> expects a future (an asynchronous value) rather than a direct list. To initialize it properly, you need to assign a future or use an asynchronous function to fetch or construct the data

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

79126685

Date: 2024-10-25 17:11:50
Score: 2
Natty:
Report link

Animate.css doesn't have built-in support for triggering animations on scroll. But, you can do this effect by combining it with a scroll event listener in js or use external libraries

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

79126683

Date: 2024-10-25 17:10:49
Score: 3
Natty:
Report link

Pg_dump exeuction with exclusing CRON related tables -T "cron.*".

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

79126678

Date: 2024-10-25 17:08:49
Score: 1
Natty:
Report link

you can implement it as follows.

int zeroProcedure(int i) {
  int check = !(i);
  //1 if all are 0, else 0
  check = ~check;
  //1..10 if all are 0, else all 1s.
  check += 1;
  //1...1 if all are 0, else 0.
  return check;
}

or simply:

int zeroProcedure(int i) {
  return (~(!i))+1;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: emerald

79126677

Date: 2024-10-25 17:08:49
Score: 3.5
Natty:
Report link

Testing the same link works https://res.cloudinary.com/acjoshi/image/fetch/w_200/q_auto:best/f_auto/https://arena.wien/EventDb-Images/GATECREEPER%20euro%20dark%20superstition%20tour%20flyer%20ALL%20DIGITAL.jpg?w=743&q=60

Note that while some characters have to be escaped for the sake of the browser, [/ and ,] must be double escaped for Cloudinary, as described here: http://support.cloudinary.com/hc/en-us/articles/202521512-How-to-add-a-slash-character-in-text-overlays-

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

79126663

Date: 2024-10-25 17:04:48
Score: 2
Natty:
Report link

You can try this guide and script: https://github.com/adyatlov/cloudfront-url-signer. NOTE that it gives access to all paths of the given distribution.

Reasons:
  • Blacklisted phrase (1): this guide
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Andrey Dyatlov

79126661

Date: 2024-10-25 17:03:45
Score: 8 🚩
Natty: 3
Report link

I am facing the same issue. My attempt to update from 2.16.7 to 3.15.1 using maven framework ended up with this error:

mvn io.quarkus.platform:quarkus-maven-plugin:3.15.1:update -N -Dstream="3.2"

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.15.1:update (default-cli) on project ca-toronto-kogito-ds: Failed to initialize Quarkus extension resolver: Failed to resolve the Quarkus extension registry descriptor of registry.quarkus.io from registry.quarkus.io (https://registry.quarkus.io/maven): Failed to resolve artifact io.quarkus.registry:quarkus-registry-descriptor:json:1.0-SNAPSHOT: The following artifacts could not be resolved: io.quarkus.registry:quarkus-registry-descriptor:json:1.0-SNAPSHOT (absent): Could not transfer artifact io.quarkus.registry:quarkus-registry-descriptor:json:1.0-SNAPSHOT from/to registry.quarkus.io (https://registry.quarkus.io/maven): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Maven url https://registry.quarkus.io/maven returns an HTTP 404

Can anybody help on this ?

Reasons:
  • RegEx Blacklisted phrase (3): Can anybody help
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Serge

79126658

Date: 2024-10-25 17:02:44
Score: 5.5
Natty:
Report link

I have same issue right now. I facing with this problem when i deploy app to domain. Instead of taking basepath/xx/liwewi it take only baspath/liwewire/update

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Devran

79126637

Date: 2024-10-25 16:57:43
Score: 3
Natty:
Report link

Always is a good option to clean project (Build / Clean project), invalidate cache and restart (File / Invalidate Caches. Select all options and restart).

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

79126635

Date: 2024-10-25 16:56:41
Score: 6.5 🚩
Natty:
Report link

خرید سالت انار در بهترین قیمت ارسال به سراسر کشور

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: best vape

79126631

Date: 2024-10-25 16:54:40
Score: 2.5
Natty:
Report link

standard-aifc didn't solve my issue but it worked after switch back to Python 3.12.3

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Md Delower Hossain

79126613

Date: 2024-10-25 16:50:39
Score: 1
Natty:
Report link

The most straight-forward answer would be to combine all of your data into a single series, since with multiple series and uniqueNames: true, it starts grouping them vertically: https://github.com/highcharts/highcharts/issues/11796#issuecomment-963625962.

You can also set the chart.height value to match the container's height or adjust yAxis.staticScale in order to controll the rows height.

yAxis: {
    uniqueNames: true,
    staticScale: 10
}

References:
https://api.highcharts.com/gantt/chart.height
https://api.highcharts.com/gantt/yAxis.staticScale

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

79126602

Date: 2024-10-25 16:46:39
Score: 1.5
Natty:
Report link

The PHP.sublime-syntax will work really well for this.

Set your XML file to PHP to test it out. If you want to make it permanent for all XMLs:

You can duplicate the content of that sublime-syntax file into a new sublime-syntax file, and change the file extensions listed in the file from PHP to XML. Then, when viewing one of your XML files, on the file type menu, set your file (and all files like it) to always use your new one.

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

79126589

Date: 2024-10-25 16:43:38
Score: 2
Natty:
Report link

So I believe due to how linux mounting system works, there is no cyclic copying here.

In addition I should add subPath to both shared folders so that a file copied to one of them doesnt show up in the other directory too.

I believe my confusion was coming from what subPath really does, its not a sub directory on the container but rather a sub path on the PVC.

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

79126582

Date: 2024-10-25 16:41:38
Score: 2.5
Natty:
Report link

If you want to export pdf with many pages from html code, I recommend you to use html2pdf.js library, this library will solve the problem of page cutting as well as the content of the pages will not be lost above and below.

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

79126571

Date: 2024-10-25 16:38:37
Score: 2
Natty:
Report link

If you have the split button on the screen and you CAN click it, it means that the feature works. All you have to do is to focus on the tiny difference occuring when you click the button (the edge of the screen), just click the button and drag the screen edge to your right, try clicking the button again if your first time didn't work. Hope you guys can fix this soon

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Minh Hiếu Trịnh

79126570

Date: 2024-10-25 16:36:36
Score: 6.5
Natty: 7.5
Report link

what did you put in the Condition Action? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): what did you
  • Low reputation (1):
Posted by: user27988505

79126556

Date: 2024-10-25 16:33:35
Score: 2
Natty:
Report link

This could be a bug in the proxy itself.

I have filed https://github.com/eclipse-vertx/vertx-http-proxy/issues/101

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

79126552

Date: 2024-10-25 16:32:35
Score: 1.5
Natty:
Report link

After some more research, I found that mps is only built in the pytorch nightly release, which is installable via:

conda install pytorch-nightly::pytorch -c pytorch-nightly

https://pytorch.org/get-started/locally/

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

79126551

Date: 2024-10-25 16:31:35
Score: 2
Natty:
Report link

try change <FlatList ... to <Animated.FlatList...

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

79126550

Date: 2024-10-25 16:31:35
Score: 1.5
Natty:
Report link
# Rename directory files numericaly 
n='0000000000'
for f in $(ls); do
   num=$(seq -w $n 000000000$n | tail -c 9)
   mv $f $num.new
   (( n++ ))
done
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rafael

79126548

Date: 2024-10-25 16:31:35
Score: 2
Natty:
Report link
$curlCommand = "curl --location --insecure.."    
$response = shell_exec($curlCommand);

This solved my issue!

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

79126547

Date: 2024-10-25 16:31:35
Score: 3
Natty:
Report link

I think I found the issue. In case this helps someone. I had to change the timeout of the mutation webhook. The assign type is after all a mutation webhook. Its timeout is configured to 1 second which is short if our provider takes time.

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

79126541

Date: 2024-10-25 16:29:34
Score: 2
Natty:
Report link

I think you need upgrade lastest lib react-native-safe-area-context

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

79126540

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

I got by using inertia usePage

import { usePage } from "@inertiajs/react";

const user = usePage();

now i can access the auth user {user.name}

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

79126531

Date: 2024-10-25 16:27:33
Score: 4
Natty:
Report link

Using this formula =INDEX($A$9:$G$13,MATCH(B15,$B$9:$G$9,0),MATCH(B16,$A$10:$A$13,0))

to try to get an output based on coordinates of the inputs of B15 and B16 in a data table that is A10-G13. But the returned result is a random data point in the table not the mapped coordinates data point. What am I missing?

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

79126525

Date: 2024-10-25 16:24:32
Score: 2
Natty:
Report link

I restarted my computer, and everything worked again. The browser extension stopped disappearing when it regained focus.

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

79126519

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

I need to styles calendar based on the Figma inspect I tried to make this but don't work perfectly:

$(function() {
  $('input[name="daterange"]').daterangepicker({
    opens: 'right',
    locale: {
      format: 'MMM D, YYYY',
      applyLabel: 'Apliko',  // Your "Apliko" button for apply
      cancelLabel: 'Cancel',
      daysOfWeek: ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'],
      monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
      firstDay: 1
    },
    startDate: moment().subtract(29, 'days'),
    endDate: moment(),
  });
});
    .daterangepicker {
        width: 752px;
        height: 470px;
        border-radius: 9px;
        border: none;
        background: #FFF;
        box-shadow: 0px 16px 23.5px 0px rgba(0, 0, 0, 0.15);
    }

    .daterangepicker:before {
        position: relative;
        border-right: none;
        border-left: none;
        top: 0;
    }

    .daterangepicker .drp-calendar {
        margin: 20px;
        width: 372px;
    }


    table>thead>tr:nth-child(1) {
        position: relative;
        width: 372px;
    }

    table>thead>tr:nth-child(1)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background-color: #BDBDBD;
    }

    .daterangepicker .calendar-table .prev span {
        /* background-image: url("/assets/images/chevron-left.png"); */
        border: solid #828282;
        border-width: 0 2px 2px 0;
        /* width: 21px;
        height: 21px */
    }

    .daterangepicker .calendar-table .month{
        color: #828282;
        text-align: center;
       
        font-size: 17px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.js"></script>
</head>
<body>

<div class="container mt-5">
  <input type="text" name="daterange" class="form-control" placeholder="Start Date - End Date" id="datefilter">
</div>


</body>

</html>

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mery

79126512

Date: 2024-10-25 16:21:32
Score: 1.5
Natty:
Report link

try below line in application.properties of eureka client:

eureka.instance.prefer-ip-address=true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhishek Ashware

79126511

Date: 2024-10-25 16:21:32
Score: 1
Natty:
Report link

Go to your plugins and check if you got a "Full Line Code Completion" turned on. Turn it off. This worked for me.

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

79126509

Date: 2024-10-25 16:20:31
Score: 3.5
Natty:
Report link

You need to set model.predict(observation, deterministic = False)

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

79126507

Date: 2024-10-25 16:20:31
Score: 0.5
Natty:
Report link

Not exactly thing you're asking for, but I have found using the argon2 and password-hash crates directly in a /login endpoint, minting a JWT, putting that in request headers and requiring/extracting a valid one via a axum::extract::FromRequestParts in other endpoints that need auth to be less hassle than stateful session management.

How do I turn plaintext passwords into argon2 hashes which will "just work" with axum_login?

Reasons:
  • Blacklisted phrase (1): How do I
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: the8472

79126503

Date: 2024-10-25 16:19:31
Score: 1
Natty:
Report link

Looks like you need to add sqlalchemy_session_persistence to your Meta

class BookFactory(factory.alchemy.SQLAlchemyModelFactory):
    class Meta:
        model = Book
        sqlalchemy_session = session
        sqlalchemy_session_persistence = 'commit'  # <- Here 
        ...

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

79126499

Date: 2024-10-25 16:19:31
Score: 0.5
Natty:
Report link

Now from leakCanary 2.14, you have to use ObjectWatcher instead of RefWatcher

   dependencies {
  implementation 'com.squareup.leakcanary:leakcanary-object-watcher-android:2.14'
}

// In shared code
interface MaybeObjectWatcher {
  fun watch(watchedObject: Any, description: String)

  object None : MaybeObjectWatcher {
    override fun watch(watchedObject: Any, description: String) {
    }
  }
}

// In debug code
class RealObjectWatcher : MaybeObjectWatcher {
  override fun watch(watchedObject: Any, description: String) {
    AppWatcher.objectWatcher.watch(watchedObject, description)
  }
}

Link for the reference.

https://square.github.io/leakcanary/upgrading-to-leakcanary-2.0/

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

79126495

Date: 2024-10-25 16:17:30
Score: 1.5
Natty:
Report link

I'm not sure that it will be helpful but... You can try to use Postman APIs. Use swagger to create Definition. After that you can generate collection from this definition and enable update suggestions from definition. When definition is updated you can see"update collection" button. It works ok with deleted or added endpoints.

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

79126491

Date: 2024-10-25 16:16:30
Score: 2.5
Natty:
Report link

I'm posting an answer for anyone potentially interested. Apparently the code itself is fine. The csv test file given to us from our uni professors is specifically made to be the worst case scenario for the quicksort (and no thry just didn't tell us) so the code is just not optimized for that scenario. If you have any idea on how to optimize it feel free to tell me. Ty yall.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Samuele Tonda Roc

79126480

Date: 2024-10-25 16:14:29
Score: 2.5
Natty:
Report link
git config --global credential.https://github.com.username alice
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael Ding

79126476

Date: 2024-10-25 16:12:29
Score: 0.5
Natty:
Report link

Thanks to @Anton Malyshev for guiding me to the answer. For those who don't want to click on a link and hunt down the answer (and in case the link disappears in the future), here's the solution.

In Android Studio, Preferences -> Advanced Settings -> Tool Windows (scroll waaaay down!) and make sure that "Always show tool window header icons in the new UI" is checked. Here's a picture.

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • User mentioned (1): @Anton
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: SMBiggs

79126475

Date: 2024-10-25 16:12:29
Score: 1.5
Natty:
Report link

With PostgreSQL 17 installed in unattended mode, you need to use the following argument in your command line:

--superpassword my-password

This way this password is set.

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

79126474

Date: 2024-10-25 16:12:29
Score: 1
Natty:
Report link

This is how it was handled

  1. the main program spans a separate process with its own specific timeout parameter. The org.apache.commons.exec.ExecuteWatchDog attempts to kill the separate process after its timeout is over
  2. main program dies or the child process does not terminate.
  3. Run a separate task periodically which kind of uses some shared data (in my case mongodb) with the main program and tracks if there are dangling processes. If there are then it kills such processes. If it cannot kill the dangling process, it sends an alert after a threshold count is breached and at that time we manually check the issue.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Raman

79126470

Date: 2024-10-25 16:10:29
Score: 3
Natty:
Report link

This works perfectly fine on any google pixel device, but with Samsung device it throws an error ActivityNoFoundException.

no matter what I tried it is still throwing it.

val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(yourLPACode)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
context.startActivity(intent)

how can I make it work for all androids?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Roi1981

79126463

Date: 2024-10-25 16:08:28
Score: 3
Natty:
Report link

1 year and 1 month on and this issue is still not fixed. To workaround, simply set the Date Range in 'absolute' terms rather than 'relative'.

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

79126455

Date: 2024-10-25 16:06:27
Score: 3.5
Natty:
Report link

This was solved by adding the 'Reader' role to the service principal in the storage account. (Thanks to a commenter that has deleted his comment, however.)

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

79126443

Date: 2024-10-25 16:02:25
Score: 2.5
Natty:
Report link
import numpy as np
L=[-1, 3, 4, -2, 6] 
indices=np.array([1, 0, 0, 1,1], dtype=bool)

[None if b else e for e,b in zip(L, indices)]

results in [None, 3, 4, None, None]

is that what you mean?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Harry Qu

79126423

Date: 2024-10-25 15:57:24
Score: 2.5
Natty:
Report link

I can say this with confidence. I tested with my webpack build. If you include "style-loader" in the css loader use property. MiniCssExtractPlugin does not work. Meaning, you will not get css files after webpack build. If you remove "style-loader" it will work.

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

79126422

Date: 2024-10-25 15:57:24
Score: 0.5
Natty:
Report link

You can set a custom merge driver in /etc/gitlab/gitlab.rb according to GitLab documentation.

gitaly['configuration'] = {
  # ...
  git: {
    # ...
    config: [
      # ...
      { key: "merge.ours.name", value: "Keep OUR version" },
      { key: "merge.ours.driver", value: "true" },
    ],
  },
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mr. Tao

79126414

Date: 2024-10-25 15:52:23
Score: 3.5
Natty:
Report link

can QtService shown GUI as well when running as service. I have created Qt service derived from QtService, but it is not showing GUI when running as service.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: Sikander Rafiq

79126395

Date: 2024-10-25 15:46:19
Score: 7 🚩
Natty: 5
Report link

Currently dont have the reputation to comment on the post itself to get more information. Will edit this answer once I do.

Can you show how the faces/edges of the weapon? As well as the normals. That currently in your setting under Geometry you have it to smooth normals. Which means there is a good chance that some faces are looping under and around the bottom part of the weapon from the grip to the middle of the weapon. So when it gets smoothed it will do some weird warping.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (2.5): Can you show how
  • RegEx Blacklisted phrase (1.5): dont have the reputation to comment
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Montain Production

79126385

Date: 2024-10-25 15:44:18
Score: 4
Natty:
Report link

I used ExecuteGroovyScript to write a script to do this

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

79126358

Date: 2024-10-25 15:38:16
Score: 1.5
Natty:
Report link

It sounds like the issue may stem from the nullable rule and possibly the way the array values are being handled in the request data for facilities and additional_facilities. so please try to make them required first and log them to check you are sending them correctly from postman.

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

79126357

Date: 2024-10-25 15:38:16
Score: 2.5
Natty:
Report link

Delete the content of MySQL folders that you can find in C:\Program Files and C:\ProgramData. Then try to install it from here instead: https://dev.mysql.com/downloads/installer/

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

79126339

Date: 2024-10-25 15:31:14
Score: 2
Natty:
Report link

The only way I could do that was if you had to do the whole day in a day or so to make it work for me to get the car done at home so that you can go get the kids from work on time so that you can do the rest the week off of the weekend I would have a lot more money for you and you can get it off of your car if that’s easier than I thought it was but you have a good time with it

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ibrahim Aishat Abubakar

79126335

Date: 2024-10-25 15:30:14
Score: 3
Natty:
Report link

Title: Hash Empty Error with MSAL React Authentication in Mobile Browsers

Tags: react, msal, azure, authentication, mobile-browsers


Body:

I'm using the Microsoft Authentication Library (MSAL) with a React Single Page Application (SPA) configured for Azure Entra ID, following the official documentation here.

I have set up two authentication methods: loginRedirect and loginPopup. While the desktop browser login works reliably, I'm facing unpredictable login issues on mobile browsers. Sometimes, users can log in successfully, but often they encounter problems.

Issue:

I discovered that the root cause was a hash_empty_error occurring on mobile. My routing logic involved using PublicRoute and PrivateRoute components for protected routes, which redirected users to your_frontend_url+'/login' when not authorized. This routing setup was inadvertently clearing my hash value, leading to session storage being cleared and users becoming unauthorized after several login attempts.

To resolve this, I started using window.location.hash and window.location.pathname to check the authentication state correctly.

Original PrivateRoute Component:

import { AuthenticatedTemplate, useMsal } from "@azure/msal-react";
import PropTypes from "prop-types";
import { Navigate } from "react-router-dom";

export const PrivateRoute = ({ element }) => {
  const { accounts } = useMsal();
  const isAuthenticated = accounts && accounts.length > 0;

  if (isAuthenticated) {
    return <AuthenticatedTemplate>{element}</AuthenticatedTemplate>;
  } else {
    return <Navigate to="/login" />;
  }
};

PrivateRoute.propTypes = {
  element: PropTypes.element.isRequired,
};

Updated PrivateRoute Component:

import Loading from "@assets/Loading";
import { AuthenticatedTemplate, useMsal } from "@azure/msal-react";
import PropTypes from "prop-types";
import { Navigate } from "react-router-dom";

export const PrivateRoute = ({ element }) => {
  const { accounts, inProgress } = useMsal();
  const isAuthenticated = accounts && accounts.length > 0;
  const hashValue = window.location.hash;

  if (inProgress === "login" || inProgress === "handleRedirect") {
    return (
      <div className="h-[100dvh] w-full flex flex-col justify-center items-center gap-4">
        <Loading height={10} />
        <p>Login in progress ...</p>
      </div>
    );
  }

  if (isAuthenticated || (window.location.pathname === "/" && hashValue !== "")) {
    return <AuthenticatedTemplate>{element}</AuthenticatedTemplate>;
  } else {
    return <Navigate to="/login" />;
  }
};

PrivateRoute.propTypes = {
  element: PropTypes.element.isRequired,
};

Question:

While this update seems to mitigate the issue, I would like to know if there are any best practices or alternative approaches to handle this type of authentication flow more reliably, especially for mobile browsers. Any insights or experiences would be greatly appreciated!

Did this solution help you? If so, please consider giving it an upvote to support our community!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1.5): I would like to know
  • Blacklisted phrase (0.5): upvote
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Devendra Maharshi