79092310

Date: 2024-10-16 02:58:13
Score: 1.5
Natty:
Report link

Unfortunately, google oauth2 "web application" client doesn't really support code flow with PKCE even for now https://stackoverflow.com/a/63275535/20240963.

But the "UWP" client support PKCE https://developers.google.com/identity/protocols/oauth2/native-app#step1-code-verifier. So there is a workaround that you create a "UWP" client, then the authentication will success.

Credentials -> Create credentials -> OAuth client ID -> UWP enter image description here You could use this "UWP" client for Blazor WASM. And the store ID can be whatever.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Qiang Fu

79092307

Date: 2024-10-16 02:56:12
Score: 4.5
Natty:
Report link

Given my CSV is more than 10 Mill rows and in Synapse, I also found an alternative: Azure databricks notebook call from azure data factory based on if/else flag

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dan Wang

79092304

Date: 2024-10-16 02:50:11
Score: 0.5
Natty:
Report link
    <html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Check All Example</title>
</head>
<body>

  <select id="selectOption">
    <option value="default">Select an option</option>
    <option value="completed">Completed</option>
  </select>

  <div>
    <input type="checkbox" id="check1"> Item 1<br>
    <input type="checkbox" id="check2"> Item 2<br>
    <input type="checkbox" id="check3"> Item 3<br>
  </div>

  <script>
    document.getElementById('selectOption').addEventListener('change', function() {
      const checkboxes = document.querySelectorAll('input[type="checkbox"]');
      if (this.value === 'completed') {
        checkboxes.forEach(checkbox => checkbox.checked = true);
      }
    });
  </script>

</body>
</html>

just use this code for example. easy, simple and yet understandable

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

79092295

Date: 2024-10-16 02:41:10
Score: 2
Natty:
Report link

Me too.

ERROR: Could not find a version that satisfies the requirement llama-index-vector-stores (from versions: none) ERROR: No matching distribution found for llama-index-vector-stores

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

79092279

Date: 2024-10-16 02:30:07
Score: 3.5
Natty:
Report link

Use import { ThemeProvider } from '@mui/styles' instead of import { ThemeProvider } from '@material-ui/styles'; maybe that will solve the issue.

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

79092275

Date: 2024-10-16 02:28:06
Score: 9
Natty: 9
Report link

Can you please share the jrxml?

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

79092270

Date: 2024-10-16 02:24:05
Score: 1.5
Natty:
Report link

Do not move Element.

Create bottomExcerpt Element in wrapper and wrapperTwo.

show bottomExcerpt in wrapperTwo when $(window).width() < 580

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

79092269

Date: 2024-10-16 02:24:05
Score: 3.5
Natty:
Report link

I removed my sitemap.xml url and now I'm using an sitemap type html

my new sitemap here: https://noticialivre.web.app/sitemap

I'm trying to add a sitemap with html extension because the Google bot understands that example links are equal to asdfasdf this makes indexing easier

When i request indexing i receive the error: 'Quota exceeded'

Reasons:
  • RegEx Blacklisted phrase (1): i receive the error
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Canal do Monstro

79092267

Date: 2024-10-16 02:22:04
Score: 9 🚩
Natty:
Report link

can you share code NonUI for example?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share code
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can you share code
  • Low reputation (1):
Posted by: Trần Tiến

79092250

Date: 2024-10-16 02:16:03
Score: 1
Natty:
Report link

You can try format and dangerouslySetInnerHTML

  {
    name: "status",
    selector: (row) => row.status,
    format: (row) => (
      <span dangerouslySetInnerHTML={{ __html: row.status }}></span>
    ),
  },
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Clover

79092243

Date: 2024-10-16 02:13:02
Score: 3
Natty:
Report link

Unfortunately, in some cases, captcha not renders until you import 'NgxCaptchaModule' in the following parent module of the component where you are using recaptcha.

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

79092238

Date: 2024-10-16 02:11:01
Score: 1
Natty:
Report link

When running Vitest (I assume in Browser Mode), you see a console message like

Browser runner started by playwright at http://localhost:5173/

There is a number of places the configuration is done:

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

79092217

Date: 2024-10-16 01:55:58
Score: 6.5 🚩
Natty: 4
Report link

Did you ever figure this out? I have unknown domains as well showing lots of page views even though my account is locked down by domains. So I'm not sure who is accessing my account and how.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Eric TheMan

79092216

Date: 2024-10-16 01:54:57
Score: 8.5
Natty: 7
Report link

Can anyone give step by step instructions on how to do this?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can anyone give
  • 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 anyone give
  • Low reputation (1):
Posted by: Robert R.

79092211

Date: 2024-10-16 01:52:56
Score: 1
Natty:
Report link

First, it's recommended to deploy the project to your phone through automatic provisioning, which doesn't require you to manually create a configuration file, you can refer to the Automatic provisioning for iOS apps.

Also, if you choose to create the configuration file manually, you need to make sure that the App ID of the configuration file is the same as the Bundle identifier in the project's info.plist file. And you need to download the preconfigured configuration file in Visual Studio after creating it.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shuowen He-MSFT

79092209

Date: 2024-10-16 01:52:56
Score: 2.5
Natty:
Report link

I solve my problem with run this code :

  1. php artisan config:clear
  2. php artisan cache:clear
  3. php artisan view:clear
  4. Then run artisan serve
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stephian24

79092207

Date: 2024-10-16 01:51:56
Score: 1.5
Natty:
Report link

You need to import a button on Main Activity <3

import android.widget.Button;

Put this in your MainActivity.java one on the import list

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

79092199

Date: 2024-10-16 01:47:55
Score: 0.5
Natty:
Report link

When you successfully add a source server to the AWS MGN console, you will need to follow a lifecycle which is demonstrated here - MGN Lifecycle.

For example you can only launch cutover instances when the source server has been tested. If you try to mark the source server as "Ready for cutover" you will experience issues as MGN requires that the source server be tested before launching cutover instances.

Therefore, you will need to launch a test instance and then mark the instance as "Ready for cutover".

Hope this helps :)

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: dingoman45

79092197

Date: 2024-10-16 01:46:55
Score: 1
Natty:
Report link

I tried this solution

https://marksmakerspace.com/code/vscode-keeps-asking-for-ssh-kay-passphrase

ssh-add --apple-use-keychain ~/.ssh/yourkeyfilename
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Acid Coder

79092191

Date: 2024-10-16 01:40:54
Score: 3.5
Natty:
Report link

I think this may comes from connection string. please delete them and re-enter again using ASCII. make sure to search your code base to replace all.

translation for Notiçias

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

79092190

Date: 2024-10-16 01:38:54
Score: 2
Natty:
Report link

I was able to implement it in my own way and share it with you.Better.I'm sure there is a better way.If you have a better way, please let me know.

class BorderBubblePainter extends CustomPainter {
  BorderBubblePainter({
    this.color = Colors.red,
  });

  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    final width = size.width;
    // Equivalent to width since it is circular.
    // Define a variable with a different name for easier understanding.
    final height = width;
    const strokeWidth = 1.0;

    final paint = Paint()
      ..isAntiAlias = true
      ..color = color
      ..strokeWidth = strokeWidth
      ..style = PaintingStyle.stroke;

    final triangleH = height / 10;
    final triangleW = width / 8;

    // NOTE: Set up a good beginning and end.
    const startAngle = 7;
    // NOTE: The height is shifted slightly upward to cover the circle.
    final heightPadding = triangleH / 10;

    final center = Offset(width / 2, height / 2);
    final radius = (size.width - strokeWidth) / 2;

    final trianglePath = Path()
      ..moveTo(width / 2 - triangleW / 2, height - heightPadding)
      ..lineTo(width / 2, triangleH + height)
      ..lineTo(width / 2 + triangleW / 2, height - heightPadding)
      ..addArc(
        Rect.fromCircle(center: center, radius: radius),
        // θ*π/180=rad
        (90 + startAngle) * pi / 180,
        (360 - (2 * startAngle)) * pi / 180,
      );

    canvas.drawPath(trianglePath, paint);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
}

usage

class BubbleWidget extends StatelessWidget {
  const BubbleWidget({
    super.key,
  });

  static const double _width = 100.0;
  static const double _height = 108.0;

  @override
  Widget build(BuildContext context) {
    return Stack(
      clipBehavior: Clip.none,
      alignment: Alignment.center,
      children: [
        SizedBox(
          width: _width,
          height: _height,
          child: CustomPaint(
            painter: BorderBubblePainter(),
          ),
        ),
        Transform.translate(
          offset: const Offset(
            0,
            -(_height - _width) / 2,
          ),
          child: Icon(
            Icons.check,
            color: Theme.of(context).colorScheme.primary,
            size: 16,
          ),
        ),
      ],
    );
  }
}
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Yone

79092184

Date: 2024-10-16 01:36:53
Score: 6 🚩
Natty: 4.5
Report link

I have same problem... It take almost 9 min in my case. It looks like it depends on specific runner type. But I don't know how to exclude a specific runner type.

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

79092169

Date: 2024-10-16 01:25:50
Score: 1.5
Natty:
Report link

Sorry for bothering. Finally I understood the process and was able to build ACI with secrets and volumes For reference: az container create --resource-group rgname --name creditapp --image xyz.azurecr.io/creditapp:latest --dns-name-label appname --ip-address Public --ports 80 8080 --protocol TCP --restart-policy OnFailure --registry-login-server xyz.azurecr.io --registry-username username --registry-password $TOKEN --azure-file-volume-account-key keyvalue --azure-file-volume-account-name accountname --azure-file-volume-mount-path /opt/scr/config/db --azure-file-volume-share-name scr --secrets db.secrets="value" --secrets-mount-path /opt/scr/secrets/db

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

79092163

Date: 2024-10-16 01:16:48
Score: 10.5 🚩
Natty: 5
Report link

@Techie Baba do you fixed your problem ? I'm currently working on a similar app as you and I have the same issue.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (1.5): fixed your problem ?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • User mentioned (1): @Techie
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Edison Martinez Frias

79092158

Date: 2024-10-16 01:15:47
Score: 2.5
Natty:
Report link

Here’s what you need to do:

When it asks for your password (Password:), just type it in carefully (even though it looks like nothing is happening). After typing your password, press Enter. If you’re on an administrator account and the password is correct, it will proceed with the installation.

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

79092150

Date: 2024-10-16 01:06:45
Score: 8 🚩
Natty: 4.5
Report link

Not working for me. I get: npx shadcn@latest add alert-dialog -c ./apps/frontend × The path ./apps/frontend does not contain a package.json file. Would you like to start a new Next.js project?

Reasons:
  • RegEx Blacklisted phrase (3): Not working for me
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Absolute Zero

79092145

Date: 2024-10-16 01:00:44
Score: 1
Natty:
Report link

i figured by replacing the code

@Bean
public AuthorizationServerSettings authorizationServerSettings() {
    return AuthorizationServerSettings.builder()
            .tokenEndpoint("oauth2/token")
            .build();
} 

to

@Bean
public AuthorizationServerSettings authorizationServerSettings() {
    return AuthorizationServerSettings.builder()
            .build();
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: codingcodingman

79092142

Date: 2024-10-16 00:57:44
Score: 1.5
Natty:
Report link

𝙇𝙄𝙑𝙀 𝘾𝘼𝙈𝙀𝙍𝘼 𝙇𝙊𝘾𝘼𝙏𝙄𝙊𝙉 𝙃𝘼𝘾𝙆 "লাইভ ক্যামেরা লোকেশন হ্যাক" টেলিগ্রাম বট এটি শুধুমাত্র শিক্ষামূলকভাবে তৈরি করা হয়েছে। এটাকে খারাপ কাজে ব্যবহার না করার জন্য অনুরোধ করা যাচ্ছে। দয়া করে এটাকে কেউ খারাপ কাজে ব্যবহার করবেন না। এটা যদি কেউ খারাপ কাজে ব্যবহার করেন তাহলে এই বটের ডেভলপার কোন ভাবে দায়ী থাকবে না। 𝙇𝙄𝙑𝙀 𝘾𝘼𝙈𝙀𝙍𝘼 𝙇𝙊𝘾𝘼𝙏𝙄𝙊𝙉 𝙃𝘼𝘾𝙆 "Live Camera Location Hack" Telegram Bot This is made for educational purposes only. It is requested not to misuse it. Please don't misuse it. The developer of this bot will not be responsible in any way if it is misused by someone.

Dev: DADA Technology https://t.me/DADAechnology

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Noyon Ahmed

79092141

Date: 2024-10-16 00:55:42
Score: 6.5 🚩
Natty: 5
Report link

I'm having the same exact issue around a year and half later... Found any fix?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Salim Mohamed

79092140

Date: 2024-10-16 00:55:42
Score: 3.5
Natty:
Report link

Unfortunately, Google Spreadsheet still does not support that feature in 2024.

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

79092139

Date: 2024-10-16 00:55:42
Score: 1
Natty:
Report link

I am not sure about this case but one thing I did differently when I faced a similar issue with postgres is described here. I added a parameter group and I removed the set the ssl param to 0. I believe SSMS tool does not come SSL configuration.

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

79092137

Date: 2024-10-16 00:52:42
Score: 1.5
Natty:
Report link

You can add this to your vimrc file:

set clipboard+=unnamedplus

It will make neovim communicate with the system clipboard.

ref

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

79092133

Date: 2024-10-16 00:51:41
Score: 4.5
Natty:
Report link

I've got to use aws sdk integration, Query task isn't optimised.

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CallAwsService.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pedro Elias

79092130

Date: 2024-10-16 00:49:40
Score: 6 🚩
Natty:
Report link

the same issue i am also sufferingenter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: matrixcoding

79092125

Date: 2024-10-16 00:44:39
Score: 1.5
Natty:
Report link

I figured out the solution. The database did not receive all the variables. So I included all variables user typed in the form and sent a post request to back end. Also, adding async and await to fetch function to fulfil the promise until server sent a response @jp-jee mentioned.

Reasons:
  • Whitelisted phrase (-2): I figured out
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @jp-jee
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: kevin

79092110

Date: 2024-10-16 00:30:36
Score: 1
Natty:
Report link

This seemed to work with Git Versioning

Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyFileVersionAttribute>().Version
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrew Richesson

79092107

Date: 2024-10-16 00:29:36
Score: 2
Natty:
Report link

Just incase anyone stumbles across this, I ended up having this issue because I nuked my appsettings.json when I recloned a broken repo. Hope that helps.

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jacob Thomas

79092105

Date: 2024-10-16 00:28:36
Score: 2
Natty:
Report link

The problem on production was the certifcates doesn't match with the host used on my JdbcSourceConfig configuration. If they match you will be able to use update-crypto-policies --set LEGACY

Note. Don't forget to be careful with the security, it's better to use a different approach to handle this situation instead of what I'm applying. And also set your logger level correctly because mine was not properly configured and that was the reason why I didn't catch the error before.

Regards,

Reasons:
  • Blacklisted phrase (1): Regards
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: calderondev

79092082

Date: 2024-10-16 00:04:31
Score: 2
Natty:
Report link
lubridate::floor_date(datetimes, unit = "minutes")
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
Posted by: dez93_2000

79092074

Date: 2024-10-16 00:02:30
Score: 4.5
Natty: 5
Report link

omg tboi floor layout lol!11!!1111111111!!1!!!!!11

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

79092047

Date: 2024-10-15 23:47:26
Score: 2
Natty:
Report link

Seems the problem is that the library does not use mode = 'cors' in RequestInit when making fetch requests. Which is why the CORS mechanism does not get triggered

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

79092046

Date: 2024-10-15 23:47:26
Score: 0.5
Natty:
Report link

had similar issue with my emulator. to resolve:

  1. closed the emulator
  2. started the emulator by using the "Cold boot" option use the "Cold Boot" option to start the emulator
Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Eric

79092040

Date: 2024-10-15 23:43:26
Score: 2
Natty:
Report link

You need to put in the Capability Builder the key and value for Appium Inspector

ignoreHiddenApiPolicyError text true

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

79092032

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

It has been fixed in react-native-vector-icons v10.0.0.

In my case I just upgraded the library an that solved the issue. Just keep in mind that when upgrading to a major version a lib may have breaking changes.

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

79092030

Date: 2024-10-15 23:35:24
Score: 4
Natty: 4
Report link

Found another way on Github issues: https://github.com/vuejs/vuex/issues/611#issuecomment-277496176

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: 83hru2

79092026

Date: 2024-10-15 23:31:23
Score: 5.5
Natty:
Report link

I am here to add one more detail if ShopifyApi is not the latest version on PIP, you will get the same error.

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

79092025

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

Your first solution is not working because the date time formatted is case sensitive so FEB is not accepted but Feb would work the second solution is not working because you have added a lot of unnecessary configuration in the case the expected string should be something like 01-FEB-25 12.00.00.000000 AM UTC.000000 AM UTC here is an example of working code:

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.format.DateTimeParseException;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        String input = "01-FEB-25 12.00.00.000000 AM UTC";
        System.out.println(convertDateTime(input));
    }

    private static String convertDateTime(String dateTimeInput) {

            try {
                DateTimeFormatter inputFormatter = new DateTimeFormatterBuilder()
                        .parseCaseInsensitive()
                        .appendPattern("dd-MMM-yy hh.mm.ss.SSSSSS a z")
                        .toFormatter(Locale.ENGLISH);
                DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

                // Parse the input string into ZonedDateTime
                ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTimeInput, inputFormatter);

                // Convert to LocalDateTime in UTC
                LocalDateTime dateTime = zonedDateTime.withZoneSameInstant(ZoneId.of("UTC")).toLocalDateTime();

                return dateTime.format(outputFormatter);
            } catch (DateTimeParseException e) {
                e.printStackTrace();
                return null;
            }
    }
}
Reasons:
  • Blacklisted phrase (1): solution is not working
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: khalifa R.

79092014

Date: 2024-10-15 23:24:21
Score: 4.5
Natty:
Report link

It is a bug in Unity, here's the bug report: issuetracker.unity3d.com

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mark Herdt

79092012

Date: 2024-10-15 23:22:21
Score: 5.5
Natty:
Report link

I am facing a similar issue. I am working with tow applications, one of them is an mfe hosts the contents from other app. The app does not respond to the route change when clicked between tabs, it only loads the first time.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing a similar issue
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nisha

79092007

Date: 2024-10-15 23:19:20
Score: 0.5
Natty:
Report link

Right click on the Axis labels choose format axis. Make sure you are viewing the "Axis Options" and make sure the Bounds and Units are on Auto. If any of these are not on Auto click the reset button.

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

79091997

Date: 2024-10-15 23:15:19
Score: 6.5 🚩
Natty: 5
Report link

This tutorial helps a lot to set up the mixed reality portal: https://www.youtube.com/watch?v=1l9pY490PJI

Reasons:
  • Blacklisted phrase (1): This tutorial
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: June Bee

79091968

Date: 2024-10-15 22:55:15
Score: 1
Natty:
Report link

These frozenset constants can be loaded from polars.datatypes.group now.

For example:

from polars.datatypes.group import NUMERIC_DTYPES, TEMPORAL_DTYPES

assert pl.UInt8 in NUMERIC_DTYPES
assert pl.UInt8 not in TEMPORAL_DTYPES
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: HumpbackWhale194

79091966

Date: 2024-10-15 22:52:14
Score: 2
Natty:
Report link

It seems that I get that html returned if I call a url too often... then it will return the "Content is currently unavailable" for 24 hours, and suddenly it's all working again.

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

79091963

Date: 2024-10-15 22:50:14
Score: 0.5
Natty:
Report link

If you're still having issues (I know I did after downloading a cert from digital ocean for a managed db) then try setting this environment variable to the path to the cert.

export NODE_EXTRA_CA_CERTS=<filepath>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dave Fol

79091956

Date: 2024-10-15 22:44:13
Score: 1.5
Natty:
Report link

Regarding missing output/error of the task:

Tasks that are executed on Django-Q does not produce anything to the usual logs of your app except the INFO line you sent. If you want to see result/error. You need to open admin page and go to "Successful/Failed tasks" under Django-Q section. You can check the django_q table in the database but the task execution result is not in human-readable format there.

As for the Redis:

  1. The tasks appear and disappear in the Redis database extremely fast. So it is not easy to see the task there. The only thing you can observe there is the state of qcluster (Django-Q "cluster" managing application that executes tasks).
  2. get name means "print me the value of the key called name. It is better to observe the Redis database content is to list the available keys. See the following posts for how-to: Redis command to get all available keys?
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Nick Vee

79091947

Date: 2024-10-15 22:40:12
Score: 2.5
Natty:
Report link

Yes Python, PHP C## they all do the trick just really depends on what you are trying Reach out , let's hav a chat to see if i can help

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

79091936

Date: 2024-10-15 22:31:10
Score: 3
Natty:
Report link

Easiest way to override the default timeout is to update in hooks.

  1. Open 'hooks.ts'
  2. import 'setDefaultTimeout' from '@cucumber/cucumber'
  3. setDefaultTimeout(60 * 1000);

Refer this image, how I did in my script.

enter image description here

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

79091934

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

The reason for the issue is that the dependency flexbox-2.0.1 was hosted on jcenter(), which has been shut down.

One solution to solve this issue is to remove the jcenter() repository from all of the repositories objects in the build.gradle (Project Level) file and add a mirror repository for it, such as Aliyun Mirror, for example:

You can find an example here

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammed Mustafa Geldi

79091930

Date: 2024-10-15 22:29:09
Score: 1
Natty:
Report link

I finally managed to figure it out. Parcel will ignore most issues on Typescript files unless you manually add a validator to .parcelrc. I don't know why that is the case, as I would expect it to behave, by default, the same way the rest of node does.

Anyway, what you need to do is to add this to .parcelrc:

"validators": {
        "*.{ts,tsx}": ["@parcel/validator-typescript"],
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lixo Man

79091925

Date: 2024-10-15 22:27:09
Score: 2
Natty:
Report link

It seems that in the d66fa02a30 on 9/26/2024 revision it is already fixed.

react-componets-extension

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: JUAN CALVOPINA M

79091924

Date: 2024-10-15 22:27:09
Score: 2.5
Natty:
Report link

Just kinda figured it out. I just removed 'input_shape=base_model.output_shape[1:]' and it worked.

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

79091921

Date: 2024-10-15 22:26:08
Score: 2.5
Natty:
Report link

I'm working on a project that used DatePickerTimeline library but it seems to have been removed from and gradle could not resolve it. If you have any hack on how to resolve it or share a newer library tackling the same issue you will have saved me my life

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

79091920

Date: 2024-10-15 22:26:08
Score: 1
Natty:
Report link

If you mean you want to create a settings tab and have related screens in a folder, you need to wrap settings in () so the folder name would be '(settings)' and the root layout would render it like so:

<Stack.Screen name="(settings)" options={{headerShown: false, ...}} />

And within the (settings) folder, you'll need another _layout.tsx file and then you can render your index file.

import {Stack} from "expo-router";

export type SettingStackParamList = {

  index: {
  }, 
  // any other screens can go here and you can pass parameters to them
};

export type SettingsStackNavigationType = NavigationProp<SettingStackParamList>;

const SettingsStackLayout = () => {


    return (
        <Stack>
         <Stack.Screen name="index"/>                 
        </Stack>
    )
}

export default SettingsStackLayout;

Now you can add whatever you want in your (settings) tab folder Useful YouTube video: https://www.youtube.com/watch?v=4-shpLyYBLc&t=485s

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabby Lulu

79091915

Date: 2024-10-15 22:24:08
Score: 0.5
Natty:
Report link

Slight update to @mattroberts code for macOS 14:

ContentView()
    .background(WindowAccessor(window: $window))
    .onChange(of: window) { _, newWindow in                    
        if windowFloats {
            newWindow?.level = .floating
        } else {
            newWindow?.level = .normal
        }
     }
     .onChange(of: windowFloats) {                    
         if windowFloats {
             window?.level = .floating
         } else {
             window?.level = .normal
         }
      }

If you just want it to always float you dont need the second onChange(of:)

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

79091897

Date: 2024-10-15 22:20:07
Score: 2.5
Natty:
Report link

You can use the following library:

https://github.com/nabeghe/levex-php/

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hadi Akbarzadeh

79091895

Date: 2024-10-15 22:18:06
Score: 0.5
Natty:
Report link

From sql 2008 onwards patindex removes repetitive looksups

from : https://www.codelabs365.com/sql-cookbook/sql-server/tsql-validate-and-check-email-address-using-like-or-patindex-function/

CREATE FUNCTION ValidateEmail (@Email VARCHAR(100))
RETURNS VARCHAR(3)
AS
BEGIN
    RETURN (
        SELECT CASE
            WHEN ISNULL(@Email, '') = '' THEN 'No'
            WHEN @Email LIKE '% %' THEN 'No'
            WHEN PATINDEX('%["(),:;<>]%', @Email) <> 0 THEN 'No'
            WHEN SUBSTRING(@Email, CHARINDEX('@', @Email), LEN(@Email)) LIKE ('%[!#$%&*+/=?^`_{|]%') THEN 'No'
            WHEN (LEFT(@Email, 1) LIKE ('[-_.+]') OR RIGHT(@Email, 1) LIKE ('[-_.+]')) THEN 'No'
            WHEN (@Email LIKE '%[%' OR @Email LIKE '%]%') THEN 'No'
            WHEN @Email LIKE '%@%@%' OR @Email LIKE '%@%..%' THEN 'No'
            WHEN PATINDEX('_%@_%.__%', @Email) = 0 THEN 'No'
            ELSE 'Yes'
        END
    )
END;

This also validates that email starts with a character, which many others miss.

Although personal i'd use trim(@Email) = '' THEN 'No' rather than @Email LIKE '% %' THEN 'No'

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

79091879

Date: 2024-10-15 22:08:03
Score: 6 🚩
Natty: 5.5
Report link

How can we put the I frame on the booking form and trigger it on the last step @telomere

Reasons:
  • Blacklisted phrase (1): How can we
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @telomere
  • Single line (0.5):
  • Starts with a question (0.5): How can we
  • Low reputation (1):
Posted by: user34416

79091869

Date: 2024-10-15 22:03:02
Score: 1
Natty:
Report link

This has solved it for me. Not a direct fork, but all the branches and commits are pushed.

git push --set-upstream git@<<yourgitlabpath>>$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: onlypfachi

79091861

Date: 2024-10-15 21:58:01
Score: 0.5
Natty:
Report link

Rueidis clears the local cache on disconnections.

Since the invalidations are delivered on the same client tcp connection, they are guaranteed to be delivered but may be delayed for various reasons. Rueidis uses periodic background pings to mitigate the delay on a tcp connection. It also requires you to specify a local TTL on the cache entry to further reduce the chance of getting staled data.

To monitor the delay, I think you can watch the client_longest_output_list metric to see if it keeps growing.

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

79091843

Date: 2024-10-15 21:52:59
Score: 3
Natty:
Report link

Easiest way to override the default timeout is to update in hooks.

  1. Open 'hooks.ts'
  2. import 'setDefaultTimeout' from '@cucumber/cucumber'
  3. setDefaultTimeout(60 * 1000);

Refer this image, how I did in my script.

enter image description here

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

79091837

Date: 2024-10-15 21:48:59
Score: 1.5
Natty:
Report link

You could try to use the function MoveWindow instead

MoveWindow(0, 0, transRect.right, transRect.bottom, TRUE) instead
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Django

79091824

Date: 2024-10-15 21:42:57
Score: 1.5
Natty:
Report link

No, only sections are included in the table of contents.

For a start, could place your images a "figure" directive (instead of the "image" used in your example) and give them a caption. This could be a base for an extension that creates a list of figures.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: G. Milde

79091819

Date: 2024-10-15 21:39:56
Score: 1.5
Natty:
Report link

English: I encountered this issue, and with God's help, I did the following to solve the problem:

لقد واجهتني هذه المشكله وبفضل ربنا قمت بالاتي لحل المشكله

  1. Uninstall all extensions related to C++.

  2. (c++) الغاء تثبيت جميع الاضافات المتعلقه بلغه

  3. Delete the .vscode folder.

  4. حذف مجلد .vscode

After that reinstall the extensions and run the code; it will work. This method worked for me. Thanks

وبعدها قم بتثبيت الاضافات مره اخرى وقم بتشغيل الكود سيعمل لقد نجح معي هذا الأمر وشكرا

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: user25235695

79091817

Date: 2024-10-15 21:37:56
Score: 3
Natty:
Report link

Replace your _process function with the following code:

func _process(delta: float) -> void:
    if linear_velocity.length() > 10.0:
        rotation = atan2(linear_velocity.y, linear_velocity.x)

As long as the rocket is moving at least 10 pixels per second, it will be rotated to face in the direction it's currently travelling at. This code assumes the front of the rocket to face the positive X axis by default.

Depending on your needs, you may not need the condition at all (example: rocket is destroyed when it hits something), or need a completely different one (example: rocket is able to fall and freely tumble). You could also experiment with changing the rotation gradually using rotation = lerp(rotation, atan2(linear_velocity.y, linear_velocity.x), 20 * delta).


I can't write comments yet, so I will have to say this here: Jonathan F.'s answer is not satisfactory because an object flying on a non-circular path (such as a parabola) does not rotate at a constant speed. The angular velocity would need to be recomputed every frame, but what is the correct formula to make sure that the rocket is always facing the direction of motion? In the end, perhaps a mix of both is needed: Setting the rotation to make sure it doesn't drift off, and setting the angular velocity so that the rocket behaves nicely in physics interactions.

Reasons:
  • Blacklisted phrase (3): comments yet
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tumbolisu

79091814

Date: 2024-10-15 21:35:56
Score: 0.5
Natty:
Report link

You are seeing npm deprecation and peer dependency version warnings from Gatsby's dependencies. This does not necessarily have anything to do directly with gatsby-plugin-react-helmet or other packages you're adding, npm just validates the entire dependency tree also when adding new packages.

The messages you're seeing are not errors, they're warnings, and any packages you install should mostly work just fine.

Frameworks like Gatsby depend on a great number of other npm packages that in turn depend on even more transitive dependencies, creating a vast dependency tree. Maintainers need to constantly update their own npm dependencies to fix newly found security issues, clear deprecation warnings, resolve peer dependency version conflicts, etc. Otherwise people who install their packages get warnings like this.

The reason these warnings are starting to pile up when installing npm packages from the Gatsby ecosystem is that Gatsby's development and maintenance work has slowed down considerably after being acquired by Netlify.

Gatsby used to be actively developed by a team working for Gatsby Inc. until the company was acquired by their competitor Netlify in February 2023. Shortly after this they laid off most of the Gatsby team. There are still Netlify engineers working on Gatsby and making some releases now and then, but dependency rot is still an ongoing problem, amplified by the fact that many of the popular Gatsby plugins are owned by individuals who have since moved on to other platforms.

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

79091808

Date: 2024-10-15 21:32:55
Score: 1.5
Natty:
Report link

Solved the problem using distinctUntilChanged() in my TaskRepository

fun getTasksByDate(startOfDay: Long, endOfDay: Long): LiveData<List<Task>> {
    return taskDao.getTasksByDate(startOfDay, endOfDay).distinctUntilChanged()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ArtSerg

79091807

Date: 2024-10-15 21:31:55
Score: 1
Natty:
Report link

For me the issue came from the fact that I was accidentally loading the .kv file twice, as explained here: https://stackoverflow.com/a/62760571/27820962

Once explicitly in the build method and again because kivy automatically loads .kv files with the same name as the class (without the 'App' suffix).

class MyApp(MDApp):
    def build(self):
        return Builder.load_file("my.kv") 

And since I defined the CustomOneLineIconListItem widget in the kv file, it was being declared twice, as bubonic said before.

The fix was to skip the manual load by removing the build method entirely.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Elyece Malnati

79091806

Date: 2024-10-15 21:31:55
Score: 0.5
Natty:
Report link

If Your MongoDB Compass Gives "Certificate Expired" Error

As mentioned in previous posts, you will need to install the [new root and intermediate certificates from] (https://letsencrypt.org/certificates/).

You will also need to delete expired certificates from ISRG*. This is not normally needed, and even advised against doing so as expired ones are still needed for previously encrypted data, but you do need to do so to delete it for Compass to work again.

Reasons:
  • No code block (0.5):
Posted by: Manabu Tokunaga

79091804

Date: 2024-10-15 21:30:55
Score: 1.5
Natty:
Report link

This error happened because of duplicate indices in your data frame. What you can do is setting index. for instance you can do it for the 'Date Enrolled' column.

tdf.set_index('Date Enrolled', inplace=True)

later you can shift by 1 for the month. tdf['previous_month'] = tdf['monthly_sum'].shift(1)

also by 12 for the year.

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

79091798

Date: 2024-10-15 21:29:54
Score: 0.5
Natty:
Report link

adding to @Tawab Wakil's answer: If there are inner array's in your JSON like the following:

    {
    "rootNode": [
        {
            "id": 1,
            "name": "testUser",
            "attachedBag": 
            {
                "content": 
                {
                    "items": [
                        {
                            "itemid": 322,
                            "itemName": "orange",
                            "price": 0.99,
                            "qty": 4
                        },
                        {
                            "itemid": 323,
                            "itemName": "apple",
                            "price": 0.49,
                            "qty": 5
                        }
                    ]
                },
                "type": "subscriber"
            }
        }
    ]
}

and you wanted to get a list of items like "oranges", "apples", then you can do the following assuming your json is stored in a variable called "jsonResponse":

//"jsonResponse" contains the raw json as a string variable
    var responseJsonObj = JsonNode.Parse(jsonResponse)?.AsObject();
    var itemsList = responseJsonObj?["rootNode"]?.AsArray()[0]?["attachedBag"]?["content"]?["items"].AsArray();
    var outputStrList = "";
    foreach (var itemx in itemsList )
    {
        outputStrList += " - " + itemx.AsObject()["itemName"] + "\n";
    }
    //Output
    // - orange
    // - apple
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Tawab
  • Low reputation (1):
Posted by: Shahriar chandon

79091785

Date: 2024-10-15 21:24:53
Score: 1
Natty:
Report link

The exec-maven-plugin documentation doesn't make it very clear, but there are two requirements to get the plugin to use the toolchain:

  1. you have to use exec:exec. As someone else pointed out, exec:java is for running java classes within the same VM that maven is running in.

  2. you have to specify the as simply "java".

Then the plugin properly uses jdk toolchain configurations.

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

79091784

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

Solution that worked for me was to set env to the mainnet using sui CLI. Like so: sui client switch --env mainnet

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

79091776

Date: 2024-10-15 21:18:52
Score: 2
Natty:
Report link

I've been looking for a solution like this too. I want to show a presentation but I then want to insert a screen of a live application application into a virtual window within the application.

I've seen some things like this where people do life coding but haven't seen The underlying technology to let it happen.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: warchitect

79091773

Date: 2024-10-15 21:17:51
Score: 4.5
Natty:
Report link

Did you check out the IBM Cost Spec comming in Hot Chocolate 14?

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

It is comming out in a few daysn (hopefully), but there are already some release candidates.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: philgei

79091772

Date: 2024-10-15 21:16:51
Score: 2.5
Natty:
Report link

You can pass the "start" and "stop" keyword arguments to the analysis class's "run" method:

irdf.run(start=100, stop=1000)

Source:

https://docs.mdanalysis.org/stable/documentation_pages/analysis/base.html#MDAnalysis.analysis.base.AnalysisBase.run

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

79091769

Date: 2024-10-15 21:14:50
Score: 1.5
Natty:
Report link

I have updated the code in line with @M.Deinum's response as follows:

package elements.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;

@Configuration
@EnableWebSecurity
public class WebSecurityConfig {

    @Bean
    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
        http
            .authorizeHttpRequests()
                .requestMatchers("/error").permitAll() // Allow access to /error without authentication
                .anyRequest().authenticated()
                .and()
            .formLogin()
                .loginPage("/login")
                .permitAll()
                .and()
            .logout()
                .logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
                .logoutSuccessUrl("/login");
        return http.build();
    }

    @Bean
    public InMemoryUserDetailsManager userDetailsService() {
        var usr1 = User.builder()
            .username("user1ka")
            .password("y445uri125")
            .roles("USER")
            .build();
        var usr2 = User.builder()
            .username("user2ka")
            .password("sa678sha769")
            .roles("USER")
            .build();
        return new InMemoryUserDetailsManager(usr1, usr2);
    }
}

Unfortunately the issue still persist and some of the useful DEBUG logging is as follows

2024-10-15 21:51:49.306 [main] INFO  elements.config.WebApplication - Started WebApplication in 12.548 seconds (process running for 14.262)
2024-10-15 21:51:49.561 [main] DEBUG o.s.b.a.ApplicationAvailabilityBean - Application availability state LivenessState changed to CORRECT
2024-10-15 21:51:49.583 [main] DEBUG o.s.b.a.ApplicationAvailabilityBean - Application availability state ReadinessState changed to ACCEPTING_TRAFFIC
2024-10-15 21:52:00.111 [http-nio-8080-exec-1] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-10-15 21:52:00.112 [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-10-15 21:52:00.112 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Detected StandardServletMultipartResolver
2024-10-15 21:52:00.112 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Detected AcceptHeaderLocaleResolver
2024-10-15 21:52:00.112 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Detected FixedThemeResolver
2024-10-15 21:52:00.113 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@70047c84
2024-10-15 21:52:00.113 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Detected org.springframework.web.servlet.support.SessionFlashMapManager@a489205
2024-10-15 21:52:00.115 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data
2024-10-15 21:52:00.116 [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet - Completed initialization in 4 ms
2024-10-15 21:52:00.242 [http-nio-8080-exec-1] DEBUG o.s.security.web.FilterChainProxy - Securing GET /login
2024-10-15 21:52:00.314 [http-nio-8080-exec-1] DEBUG o.s.security.web.FilterChainProxy - Secured GET /login
2024-10-15 21:52:00.319 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - GET "/login", parameters={}
2024-10-15 21:52:00.323 [http-nio-8080-exec-1] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped to elements.controllers.LoginController#login()
2024-10-15 21:52:00.391 [http-nio-8080-exec-1] DEBUG o.s.w.s.v.ContentNegotiatingViewResolver - Selected 'text/html' given [text/html, application/xhtml+xml, image/avif, image/webp, image/png, image/svg+xml, application/xml;q=0.9, */*;q=0.8]
2024-10-15 21:52:00.392 [http-nio-8080-exec-1] DEBUG o.s.w.s.view.InternalResourceView - View name [login], model {}
2024-10-15 21:52:00.394 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Error rendering view [org.springframework.web.servlet.view.InternalResourceView: name [login]; URL [login]]
jakarta.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
.
.
.
2024-10-15 21:52:00.417 [http-nio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Failed to complete request: jakarta.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
2024-10-15 21:52:00.419 [http-nio-8080-exec-1] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Set SecurityContextHolder to anonymous SecurityContext
2024-10-15 21:52:00.422 [http-nio-8080-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
jakarta.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

Thank you so much for all your help, this is much appreciated.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ganiel24

79091764

Date: 2024-10-15 21:13:50
Score: 1.5
Natty:
Report link

I have the same use-case and there seems to be a solution posted in the LlamaIndex forums. https://github.com/run-llama/llama_index/discussions/8432 Pattern is:

I am in the process of trying this out but this is the suggested solution.

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

79091763

Date: 2024-10-15 21:13:50
Score: 1
Natty:
Report link

I've also been struggling with this. The simplest way is probably to simply remove the current virtual-env, and reinstall:

poetry env list
poetry env remove <select a name from the list above>
poetry install

Or as a one-liner:

poetry env remove python && poetry install
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oenomaus

79091755

Date: 2024-10-15 21:11:50
Score: 1
Natty:
Report link

just in case you haven’t figured this out yet, I managed to get videojs to keep filling the buffer while pause by doing this:

player.on("loadedmetadata", function () {
    videojs.Vhs.GOAL_BUFFER_LENGTH = player.duration();
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lmarzetti

79091745

Date: 2024-10-15 21:07:49
Score: 2.5
Natty:
Report link

I believe it's only supported on 3.10 IIRC, you can try updating pip and see if it works then, i did some digging and most of what I'm finding seemed to be the solution

https://github.com/tensorflow/tfx/issues/5930

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

79091732

Date: 2024-10-15 21:04:48
Score: 0.5
Natty:
Report link

An example of what how you tried to make the plot would help people answer your question. I am not immediately sure what you want to show with the data you posted so I adapted an example from the viridis package using some random data. There are lots of examples of how to do this sort of thing online that should help: https://www.data-to-viz.com/graph/circularbarplot.html

library(ggplot2)
df <- data.frame(
  individual_gene = paste0("Gene ", seq(1,60)),
  group = rep(1:12, 5),
  value1 = runif(60, 1, 3),
  value2 = runif(60, 1, 3),
  value3 = runif(60, 1, 3)
)
df <- reshape2::melt(df, id.vars = c("individual_gene", "group"),
               measure.vars = paste0("value", 1:3))
df <- df[order(df$group, df$individual_gene),]
df$id <- rep( seq(1, nrow(df)/3) , each=3)

gene_labels <- aggregate(id ~ group, df, min)
colnames(gene_labels)[2] <- "start"
gene_labels$end <- aggregate(id ~ group, df, max)$id
gene_labels$position <- sapply(seq_len(nrow(gene_labels)), function(i) {
  mean(as.numeric(gene_labels[i, c("start", "end")]))
  })
gene_labels$pct <- sapply(gene_labels$group, function(grp) {
  sum(df[df$group == grp, "value"]) / sum(df$value)
})
angle <- 90 - 360 * (gene_labels$group-0.5) / 12 
gene_labels$angle <- ifelse(angle < -90, angle+180, angle)

ggplot(df) +
  geom_bar(aes(x=as.factor(id), y=value, fill=as.factor(group)), stat="identity") +
  scale_fill_manual(values = rbind(viridis::plasma(6, end = 0.9), viridis::mako(6, end = 0.9))) +
  ylim(-10, NA) +
  theme_minimal() +
  theme(
    legend.position = "right",
    axis.text = element_blank(),
    axis.title = element_blank(),
    panel.grid = element_blank(),
    plot.margin = unit(rep(-1,4), "cm") 
  ) +
  labs(fill = "Group") +
  coord_polar()+
geom_text(data=gene_labels, aes(x = position, y = -1, label=paste0(round(pct, 2), "%")),
          hjust = rep(c(1, 0), each = 6),
          angle = gene_labels$angle,
          alpha=0.8, size=3)

enter image description here

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

79091721

Date: 2024-10-15 20:58:47
Score: 1
Natty:
Report link

The error says your config has extra empty configs. Please remove them from your code.

    .config(
    )
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jia Yu - Apache Sedona

79091716

Date: 2024-10-15 20:56:46
Score: 0.5
Natty:
Report link

Set the rsocket port to 0, for instance:

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
    properties = {"spring.rsocket.server.port=0"})
public class MyControllerTest {
  // your test goes here
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jelil Adesina

79091711

Date: 2024-10-15 20:55:46
Score: 2.5
Natty:
Report link

Make Alert UI at V.M, add Text Component. and make "string a = "";" at Model. then add if(some issue that triggered something) { binding UI's text = a; } Bind "string a" with exception Msg.

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

79091703

Date: 2024-10-15 20:53:45
Score: 5.5
Natty:
Report link

Looks like chrome bug, safari does job fine. Tried different chromes from indigo and octo browsers, also doesn't work for me.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Roman

79091699

Date: 2024-10-15 20:52:45
Score: 1
Natty:
Report link

PROBLEM SOLVED!

$ cygcheck /home/phil/perl5/lib/perl5/x86_64-cygwin-threads-multi/auto/IO/IO.dll

...

cygcheck: track_down: could not find cygperl5_32.dll

$ perl -version

This is perl 5, version 36, subversion 3 (v5.36.3) built for x86_64-cygwin-threads-multi (with 6 registered patches, see perl -V for more detail)

$ ls -l /bin/cygperl5*

-rwxr-xr-x 1 phil Administrators 3798547 Nov 30 2023 /bin/cygperl5_36.dll*

$ ls -ld /home/phil/perl5/lib/perl5

drwxr-xr-x 1 phil None 0 Nov 14 2023 /home/phil/perl5/lib/perl5/

$ ls /bin/cygperl5*

/bin/cygperl5_36.dll*

Between Nov 14 and 30 2023, my Cygwin changed from storing its DLLs under my home directory, to storing them under /bin . I don't remember changing this. Also, this doesn't explain why a fresh install of Cygwin had the same problem. But doing

mv /home/phil/perl5 /home/phil/perl5.32

stopped perl from finding the old io.DLL under /home/phil/perl5, which is looking for cygperl5_32.dll, and got my perl working again.

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

79091682

Date: 2024-10-15 20:47:44
Score: 1
Natty:
Report link

I think you have to put each row in the same stats overview widget similar problem with solution

I was facing the same problem, I was putting each widget on an individual page and tried to columnspan them together. but a friend told me @Ragy Edward that solution: put all the row in the same widget and give columnspan = 'full'; I attached everything on the answer for my question you may check it out.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Whitelisted phrase (-2): solution:
  • No code block (0.5):
  • User mentioned (1): @Ragy
  • Low reputation (1):
Posted by: Pierre Sameh

79091675

Date: 2024-10-15 20:46:43
Score: 1
Natty:
Report link

Check the previous package name before the exception, and try to add it manually. Repeat the process until all required dependencies are installed.

The latest version of NewtonSoft.Json was causing the issue for me, I installed it manually and I was able to proceed.

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

79091672

Date: 2024-10-15 20:43:43
Score: 4.5
Natty: 4.5
Report link

did you check your IIS setting? there's an idle time out setting (go to application pool - advanced settings - process model) and it overwrites your web.config and javascript

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: emily

79091666

Date: 2024-10-15 20:41:41
Score: 1
Natty:
Report link

It depends on what type of Arduino and what type of SPI. On an AVR based board like an UNO the SPI bus us handled by hardware so there would be no effect on the transmission.

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