79534457

Date: 2025-03-25 17:44:39
Score: 1
Natty:
Report link

Turns out you can just stick a b in front of each string to convert it to bytes and everything works great!

class DownloadHandler(web.RequestHandler): 
    def get(self): 
        files_as_text = b"" 
        for file in os.listdir("files"): 
            files_as_text += file.encode("utf-8")+b"---title_split---"+open("files/"+file, "rb").read()+b"---file_split---" 
        self.write(files_as_text)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Curtis C

79534456

Date: 2025-03-25 17:44:39
Score: 2
Natty:
Report link

@ri-dev answered correctly, you can also patch your Cargo.lock instead:

[[package]]
name = "bytemuck_derive"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec"
dependencies = [
 "proc-macro2",
 "quote",
 "syn 2.0.90",
]
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ri-dev
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: sully

79534447

Date: 2025-03-25 17:40:38
Score: 0.5
Natty:
Report link

The issue will not be with Selenium but how you are first locating the element and whether or not it exists in the DOM, is visible or interactive.

  1. First you need to test your xpath expression in the browser and make sure it uniquely identifies one element and not multiple. Usually a class attribute returns multiple elements in the same group and selenium wouldn't know what to interact with or will just interact with the first one that is returned in the array and that first element could be hidden or blocked by another.

  2. When you are able to do the first step you then need to analyse the behavior of the element and its surroundings. Once its located it then means its in the DOM but you need to know whether its hidden visually, hidden in an iframe or another element is on top of it.

  3. You will then need to write code to eliminate those issues by making the element visible and that no other element is blocking it. This could involve performing some action on another element to bring the element in question in focus.

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

79534446

Date: 2025-03-25 17:40:38
Score: 0.5
Natty:
Report link

I don't think it's "junk", it might be an image or a binary file

In general you should not be recording this type of requests, if you use Recording Template it will automatically filter images

enter image description here

So I would recommend filtering this kind of requests and instead configure HTTP Request Defaults to download embedded resources:

enter image description here

This way you will get browser-like behaviour of your JMeter test. See JMeter Web Testing: How To Properly Handle Embedded Resources in HTML Responses article for more information on how to properly deal with images, scripts, styles, fonts, etc.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Ivan G

79534434

Date: 2025-03-25 17:33:37
Score: 1.5
Natty:
Report link

For me it was working in an exact same component, so i commented some components to narrow down the main problem, it turned out i had a component CustomStatusBar which just had StatusBar (imported from React Native) in it. That CustomStatusBar was being called twice because of which Flatlist was not firing the OnEndReached, tried all threshold values. Commented one of CustomStatusBar to resolve issue!

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ali Ibraheem

79534433

Date: 2025-03-25 17:33:37
Score: 3
Natty:
Report link

for me, it was an on and off issue, caused by a slow network

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

79534432

Date: 2025-03-25 17:31:36
Score: 2
Natty:
Report link

I solved the 24-hour clock problem by changing '%H' to '%I'.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jim Julian

79534428

Date: 2025-03-25 17:30:36
Score: 1
Natty:
Report link

The first answer didn't work for me, I believe is mostly because the year gap. So I post a new solution for 2025.

File > Settings > Editor > General > Code Completition: disable "Show the documentation pop up in _"

After disabling this, you'll keep the bubble documentation and the pop up will no longer appear

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Eduardo Jiménez

79534413

Date: 2025-03-25 17:25:35
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aar Jacob

79534412

Date: 2025-03-25 17:23:34
Score: 5.5
Natty: 5.5
Report link

In which file do I have to run the script?

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

79534410

Date: 2025-03-25 17:22:34
Score: 2
Natty:
Report link

Solved by myself using a touchEnd event doing this:

onTouchEnd={(swiper) => {
          setTimeout(() => {
            swiper.slideToClosest();
          }, 300);
        }}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luca

79534406

Date: 2025-03-25 17:21:34
Score: 3.5
Natty:
Report link

The issue was that I use docker installed by snap and due to this credentials was in ```/root/snap/docker/3064/.docker/config.json``` so I have to do copy credentials json to ```/root/.docker/config.json```

then docker-compose pull starts working correct

Reasons:
  • Blacklisted phrase (1): I have to do
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michal

79534400

Date: 2025-03-25 17:19:33
Score: 2
Natty:
Report link
class Foo:
    var1 = None

    def __init__(self, _var1):
        self.var1 = _var1
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas Baker

79534393

Date: 2025-03-25 17:18:33
Score: 1
Natty:
Report link

This requirement looks pretty simple:

With this, no dynamic action is needed and no callback process is needed. The only difference is that the page is submitted. Would this be a possibility ?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Koen Lostrie

79534374

Date: 2025-03-25 17:08:31
Score: 0.5
Natty:
Report link

It's not possible to forward remote port to local machine in VSCode

VSCode doesn't support port forwarding if you're connected to a remote machine.

Currently, port forwarding only works to expose locally-running services. It doesn't work in remote connections yet, although we expect it to in the future.

Depending on your scenario, you may want to use the VS Code Remote - Tunnels extension to tunnel into a remote machine. You can learn more in the Remote - Tunnels documentation.

Alternative solution

We can forward Remote Port to Local Environment using 3rd party tools like socat.

Here is instructions how to run Docker project on Remote host using VSCode SSH connection and VSCode containers.

  1. Forward port 80 to port 8080 in VSCode using SSH connection;
    enter image description here

  2. Forward Remote Server port 80 to your Local port 8080 by running socat command in VSCode terminal (socat should be installed to use it):

    sudo socat TCP-LISTEN:80,fork TCP:127.0.0.1:8080
    

    WARNING:
    NEXT STEPS SHOULD BE DONE IN THE ANOTHER VSCODE WINDOW.
    TWO (2) VSCODE WINDOWS SHOULD BE OPENED.

    FIRST ONE FOR PORT REDIRECTION USING SSH CONNECTION.
    SECOND ONE FOR CODING USING VSCODE CONTAINER.

  3. Run VSCode container and enjoy coding remotely;

Error: port 8080 is already used

  1. Check which app is using port 8080 by typing lsof -i tcp:8080 in terminal;

  2. Find PID in the output and kill the application sudo kill <PID> ;

References

Reasons:
  • Blacklisted phrase (1): How do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Yaroslav Borodii

79534367

Date: 2025-03-25 17:06:30
Score: 1
Natty:
Report link

Keep things simple! - Remember Selenium is being used successfully by millions of others worldwide.

The main issues will always be your setup or configuration of Selenium or local network connection.

  1. First remove all the chrome arguments you put and use the default and standard way of using Selenium without any options. Use ChatGPT or AI chat bot to give you a basic and simple script in python.

  2. Then modify it to use against your website

  3. Look at the error you get on the browser and if its network related due to certificates then you can add in the arguments for the browser. Again use ChatGPT or AI chat bot to give you this basic addition.

  4. If that still doesn't work then you need to look at the LAN settings of your local machine and get it resolved. It could be due to corrupt or non-existing proxy settings

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

79534363

Date: 2025-03-25 17:02:29
Score: 2
Natty:
Report link

I find this code and i must do a think like this : use a listview and by drag & drop put the name of item in tablelayoutpanel.

I use that code and my problem is in the tlp, i don't understand how put the DragLVI.subitems(0).text in my Panel.

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

79534360

Date: 2025-03-25 17:00:29
Score: 0.5
Natty:
Report link

It`s easy, when u adding any elements by

page.overlay.append(element)

You can align it by Stack attributes, like this:

import flet as ft

def main(page: ft.Page):

    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
    page.vertical_alignment = ft.MainAxisAlignment.CENTER
    page.window.full_screen = True

    overlay_pic = ft.Container(
        width=1920,
        height=420,
        bgcolor="red",
        bottom=0,
    )

    def switch_overlay(e):
        if overlay_pic not in page.overlay:
            page.overlay.append(overlay_pic)
        else:
            page.overlay.remove(overlay_pic)
        page.update()


    button = ft.ElevatedButton(
        text='switch overlay',
        on_click=switch_overlay
    )


    page.add(
        button
    )

ft.app(main)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: neversleep

79534350

Date: 2025-03-25 16:56:28
Score: 2.5
Natty:
Report link

You didn't have lines to open either workbooks

Try to have some line like:

workbook.open (Your Workbook Location)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ho Wai Yan Arthur

79534348

Date: 2025-03-25 16:56:28
Score: 0.5
Natty:
Report link

Now this code is much better, It eat up some unnecessary parts of string faster and skip strings that I won't need, Efficiency when you plan to work on 1,000,000 HTML File Efficiency is so Important
while this problem is solved, I'm still worry for problems next to come, I hope I'll be able help some of you solve you own problem in Future
Now I don't Know how to End this Topic
choosing my own Answer as right one seems a little selfish
also I can't Score up your Helpful Answers, It's just get 0 Again
Please comment we what is best thing to do
Thanks you all

@echo off
setlocal enabledelayedexpansion

rem ____________________

for %%F in (*.htm) do (
    for /f "delims=" %%E in ('findstr "href=" "%%F"') do (
        set Line=%%E
        if not "%Line%"=="%Line:s=%" (
        CALL :LSearch Line
        )
    )
)

endlocal
pause
GoTo :eof

rem ____________________

:LSearch
:NextRef
    if "!Line!"=="!Line:*href=!" (
        GoTo NextLine
    ) else (
        if "!Line!"=="!Line:/s/=!" (
            GoTo NextLine
        ) else (
            set "Line=!Line:*href=!"
            set "Line=!Line:~2!"
        )
    )

    if "!Line:~0,3!"=="/s/" (
        call :LSender Line
        set "Line=!Line:~4!"
    )
    GoTo NextRef
    :NextLine
    GoTo :eof

rem ____________________

:LSender
    for /f "tokens=2 delims=/" %%R in ("!Line!") do (
        echo %%R
    )
    GoTo :eof
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Digiraiter Agumon

79534345

Date: 2025-03-25 16:55:28
Score: 2
Natty:
Report link

How long ago did you delete the data in the folder? It's possible in the UI you deleted the data but it could still be pending.

Try deleting the folder using the cloud shell.

gcloud resource-manager folders delete FOLDER_ID

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: AaronC

79534334

Date: 2025-03-25 16:49:27
Score: 3.5
Natty:
Report link

My problem solved by reinstall x64 version instead of x86.

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

79534329

Date: 2025-03-25 16:46:26
Score: 2
Natty:
Report link

This is an inline version suggested above by https://stackoverflow.com/users/383904/roko-c-buljan (with many thanks!)

<span style="--rating: 1.6; content: '★★★★★';  font-size: 2em; white-space: nowrap; background: linear-gradient(90deg, #fb0 calc(var(--rating) * 20%), #ddd calc(var(--rating) * 20%)); -webkit-background-clip: text; background-clip: text; color: transparent;">★★★★★</span>
<span style="--rating: 4.2; content: '★★★★★';  font-size: 2em; white-space: nowrap; background: linear-gradient(90deg, #fb0 calc(var(--rating) * 20%), #ddd calc(var(--rating) * 20%)); -webkit-background-clip: text; background-clip: text; color: transparent;">★★★★★</span>

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PinkSheep

79534320

Date: 2025-03-25 16:43:25
Score: 0.5
Natty:
Report link

using @server.url like this // @servers.url http://localhost:4000/v1 instead of @host and @BasePath solves the issue.

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

79534319

Date: 2025-03-25 16:43:25
Score: 3.5
Natty:
Report link

I have found nothing in the AWS Amplify Gen2 documentation on how to sort as of 03/25/25.

The closest thing I have come across is https://medium.com/@python-javascript-php-html-css/sorting-data-by-creation-date-with-aws-amplify-in-flutter-9b399161dd14.

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Eric Spiegelberg

79534314

Date: 2025-03-25 16:41:25
Score: 0.5
Natty:
Report link

Just add the namespace in build.gradle file
app/build.gralde

android {
    namespace "com.android.example"
}

Note: Namespace get from main/kotlin/MainActivity Check package com.android.example

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

79534299

Date: 2025-03-25 16:37:23
Score: 6 🚩
Natty:
Report link

Jaime Lopez, as Banno's client who is working with TruStage on this project, can I request a working session to help troubleshoot the issues that we're running into? Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jamie Ethington

79534295

Date: 2025-03-25 16:34:23
Score: 1
Natty:
Report link

Keep thing simple! - Remember Selenium is being used successfully by millions of others worldwide.

The main issues will always be your setup or configuration of Selenium or local network connection.

  1. First remove all the chrome arguments you put and use the default and standard way of using Selenium without any options. Use ChatGPT or AI chat bot to give you a basic and simple script in python.

  2. Then modify it to use against your website

  3. Look at the error you get on the browser and if its network related due to certificates then you can add in the arguments for the browser. Again use ChatGPT or AI chat bot to give you this basic addition.

  4. If that still doesn't work then you need to look at the LAN settings of your local machine and get it resolved. It could be due to corrupt or non-existing proxy settings

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

79534294

Date: 2025-03-25 16:34:23
Score: 1.5
Natty:
Report link

I've been struggling with this too, and it seems like it's not possible to do this. The docs for https://core.telegram.org/api/links#message-links do say "private groups" at the top, which sounds like it should work. But if you look below where the parameters are defined, it says "Channel or supergroup ID." So I think it doesn't work with "non-super" groups.

Maybe you can solve your problem by forwarding messages? That's what I've been considering.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Janek Szynal

79534288

Date: 2025-03-25 16:30:22
Score: 0.5
Natty:
Report link

If the directory value is 0, it may be an indicator of a corrupted or non-existent directory. Try to recreate the directory, or if it's pointing to a special device, ensure that the device is correctly initialized.

Ensure the directory is mounted by:
mount | grep /path/to/directory

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

79534283

Date: 2025-03-25 16:28:21
Score: 2
Natty:
Report link

As what @Tedinoz has mentioned in the comments:

You may try using Conditional Formatting and use Is empty on the format rules

since on Data Validation:

the data validation sensor is not activated until there is a value entered in the cell. So an empty cell does not count as "data" and the DV evaluation is not run.

As per this public forum.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Tedinoz
  • Low reputation (0.5):
Posted by: Gyul

79534281

Date: 2025-03-25 16:28:21
Score: 3
Natty:
Report link

Man I share your pain. I thought switching with C# would make VS2022 more user friendly... Actually it's the opposite.

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

79534256

Date: 2025-03-25 16:16:19
Score: 3
Natty:
Report link

Apparently, sheetrock.js expects at least one column of numerical data. I added a column to my sheet that simply puts in the row number and it now works as expected.

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

79534253

Date: 2025-03-25 16:15:18
Score: 11 🚩
Natty: 5.5
Report link

I'm having the same issue. Have you been able to resolve it?

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • RegEx Blacklisted phrase (1.5): resolve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Melleo

79534251

Date: 2025-03-25 16:14:17
Score: 4
Natty:
Report link

Wrapping all #Previews with #if DEBUG makes the project build again for AppStore Connect. Seems to be an issue with the sample data in the Preview Content folder, also see: https://stackoverflow.com/a/77646138/28960225

Thanks @Joakim!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Joakim
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28960225

79534243

Date: 2025-03-25 16:12:17
Score: 2.5
Natty:
Report link

Printing cost just before if whiskers >= cost: can help I suppose.

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

79534220

Date: 2025-03-25 16:05:15
Score: 2.5
Natty:
Report link

Try to run your code with other device if it is working well means the problem is in your version reinstall your node.js with latest version and check the version.After updation run your code it will work.

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

79534218

Date: 2025-03-25 16:04:14
Score: 0.5
Natty:
Report link

Following up on the answer from Stefan, there is now an undocumented function in the serializer called valueForId that is used like this:

serializers: {
    application: RestSerializer.extend({
        valueForId(id) {
            return parseInt(id);
        },
    }),
},
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jeff S

79534211

Date: 2025-03-25 16:03:14
Score: 2
Natty:
Report link

There is currently no way to automate this with PyPi. You could make a selenium script to generate a new token, however it may be clunky and would need to work separately from the rest of the script.

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

79534190

Date: 2025-03-25 15:51:12
Score: 2.5
Natty:
Report link

Use try_emplace instead.

values.try_emplace(key);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: user16436311

79534185

Date: 2025-03-25 15:50:11
Score: 3.5
Natty:
Report link

Are any one play blox fruit in Roblox

Any one have good fruit for permenent

You can get permanent fruit by grinding in this site

Also you search on Google is this site real or fake

Also ,if you click in this link you get 0.25 points in this site

(Assured ✅)

Click here Blox time (real)

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Blox fruit gamer

79534184

Date: 2025-03-25 15:50:11
Score: 4
Natty: 4
Report link

In vue3.js
Same than as @Halfer I import VueReCaptcha in main.js.
Then in my component I give it a try.

SO I guess I need to verify if the token is available ?? How to do ? a post request to https://www.google.com/recaptcha/api/siteverify ?
see https://developers.google.com/recaptcha/docs/verify

 <template><button type="button" @click="recaptcha">reCAPTCHA</button></template>
<script>
export default {
  methods: {
    async recaptcha() {
      // (optional) Wait until recaptcha has been loaded.
      await this.$recaptchaLoaded();

      // Execute reCAPTCHA with action "login".
      const token = await this.$recaptcha('login');
      const data = {
        secret:'<my_secret_id>',
        response:token
      }
      
      // I guess I need to verify if the token is available ?? //
       const response = await fetch('https://developers.google.com/recaptcha/docs/verify',
        {
            method:'POST',
            body: JSON.stringify(data)
        });
       if (!response.success){ return; }

        // Go ahead with submission .... //

    },
   }
}
</script>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Halfer
  • Low reputation (0.5):
Posted by: Robert

79534179

Date: 2025-03-25 15:48:11
Score: 1
Natty:
Report link

Barrier has not been updated for several years now, and has 1k+ issues. It's dead. Save your precious time and switch to deskflow.

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

79534177

Date: 2025-03-25 15:47:10
Score: 3
Natty:
Report link

New and the best way to do so is - https://core.telegram.org/bots/api#chatmemberupdated
**
Telegram gives you an update on chat member update, so you can handle when user leaves your channel/chat or joins.**

Python examples is https://docs.python-telegram-bot.org/en/v21.9/examples.chatmemberbot.html and https://docs.python-telegram-bot.org/en/v21.9/telegram.chatmemberupdated.html#telegram.ChatMemberUpdated

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

79534173

Date: 2025-03-25 15:45:10
Score: 1.5
Natty:
Report link

Your while loop is writing to console but the values of sayi2 and sayi1 are not changed so its effectively an infinite loop.

You need to add something to request the values again

You also need to get rid of the function call immediately after the IF

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

79534172

Date: 2025-03-25 15:45:10
Score: 3.5
Natty:
Report link

I haven't figured out why, but downgrading the Task version from 5 down to 3 gets rid of the error for me.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: TheIronCheek

79534168

Date: 2025-03-25 15:44:10
Score: 0.5
Natty:
Report link
import pandas as pd

data = {'Name': ["Evil Nights", "Perfect Day", "Unknown Song", "Dead End", "Angel Love", "Home Sweet Home", "The Curse"]}

df = pd.DataFrame(data)

negative_keywords = ["Evil", "Night", "Problem", "Sorrow", "Dead", "Curse"]
positive_keywords = ["Amazing", "Angel", "Perfect", "Sunshine", "Home", "Live", "Friends"]

def categorize_song(name):
    if any(word in name for word in negative_keywords):
        return "Negative"
    elif any(word in name for word in positive_keywords):
        return "Positive"
    else:
        return "Neither"

df["Song Category"] = df["Name"].apply(categorize_song)

print(df)

Ouput:

enter image description here

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

79534167

Date: 2025-03-25 15:44:10
Score: 2
Natty:
Report link

I found that the mongodump tool does not like bundled certificates. I was using a .pem file that had the TLS certificate, plus the CA chain bundle of certificates, then the key and got this error. Once I edited the .pem file to only contain the TLS certificate and the key, mongodump worked fine.

The bundle did work with the mongo command though, so I suspect this is an issue only with the mongodump tool. My mongodump tool is version 100.5.2

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

79534164

Date: 2025-03-25 15:42:09
Score: 2.5
Natty:
Report link

Does this solve your situation?

\\+u[0-9A-Fa-f]{4}

Reasons:
  • RegEx Blacklisted phrase (1.5): solve your situation?
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: chubbsondubs

79534162

Date: 2025-03-25 15:42:09
Score: 0.5
Natty:
Report link

You need to explicitly define the sequences in your entity class:

@Entity
public class Entity {
    @Id
    @SequenceGenerator(name="seq",sequenceName="your_seq")        
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq")               
    private Integer id;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shreyansh Jain

79534161

Date: 2025-03-25 15:41:09
Score: 3.5
Natty:
Report link

The M4RI C library implements fast matrix multiplication for Matrices over GF(2).

Github: https://github.com/malb/m4ri
Paper: https://arxiv.org/abs/0811.1714

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

79534153

Date: 2025-03-25 15:38:08
Score: 0.5
Natty:
Report link

Here is another solution as suggested by @Parfait in the comments below

library(httr)
library(jsonlite)

# Set your DeepSeek API key
api_key <- "sk-000000000"

# Set the API endpoint URL
api_endpoint <- "https://api.deepseek.com/chat/completions"

# Prepare the request payload
payload <- list(
  model = "deepseek-chat",
  messages = list(
    list(role = "system", content = "You are a helpful assistant"),
    list(role = "user", content = "Hello")
  ),
  stream = FALSE  # Explicitly setting stream to FALSE
)

# Add the necessary headers
headers <- c(
  "Content-Type" = "application/json",
  "Authorization" = paste("Bearer", api_key)  # Correct way to pass API key
)

# Make the POST request
response <- POST(
  url = api_endpoint,
  add_headers(.headers = headers),  # Fixing the header formatting
  body = toJSON(payload, auto_unbox = TRUE, encoding = "UTF-8"),
  encode = "json"
)

# Check the response status code
if (response$status_code == 200) {
  # Parse the response content
  result <- fromJSON(content(response, "text", encoding = "UTF-8"))
  
  # Print the assistant's response
  cat(result$choices[[1]]$message$content, "\n")
} else {
  # Handle errors
  cat("Request failed with status code:", response$status_code, "\n")
  cat("Error message:", content(response, "text", encoding = "UTF-8"), "\n")
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Parfait
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: LocusClassicus

79534148

Date: 2025-03-25 15:37:08
Score: 0.5
Natty:
Report link

It seems that the issue was in mounting spiner container as neighbour of viewer container when model is not loaded. I remove that spiner and issue is not fires again.

I assume that this spinner shifted viewer container out of viewport and all handlers inside the viewer are trying to use those negative canvasY values from container which was out of viewport.

Below you can see my return from React component with viewer. I removed {!modelLoaded && <IdleLoader />} and after that i cannot reproduce this issue.

  return (
    <>
      {!modelLoaded && <IdleLoader />}
      <div ref={container}></div>
    </>
  );
Reasons:
  • Blacklisted phrase (0.5): i cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Evhenii

79534145

Date: 2025-03-25 15:36:07
Score: 0.5
Natty:
Report link

I also encountered same problem. I solved it by first deleting the .gradle folder and downloaded the gradle 8.9 . Extracted it in c:/user/your username/bin-8.9. I also added the same to the environment variables settings.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: wonder soza

79534139

Date: 2025-03-25 15:34:07
Score: 1
Natty:
Report link
```python
splitterLOO = ot.LeaveOneOutSplitter(sampleSize)
validation = otexp.FunctionalChaosValidation(result, splitterLOO)
r2Score = validation.computeR2Score()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Michael Baudin

79534137

Date: 2025-03-25 15:33:07
Score: 0.5
Natty:
Report link

My problem was a not quite the same; docker compose down postgres did not work. I did not want to down everything. Solved with docker compose kill postgres.

Your issue was the external network. From the Docker documentation on docker compose down:

Stops containers and removes containers, networks, volumes, and images created by up.

By default, the only things removed are:

  • Containers for services defined in the Compose file.

  • Networks defined in the networks section of the Compose file.

  • The default network, if one is used.

Networks and volumes defined as external are never removed.

Anonymous volumes are not removed by default. However, as they don’t have a stable name, they are not automatically mounted by a subsequent up. For data that needs to persist between updates, use explicit paths as bind mounts or named volumes.

Your docker-compose.yml is leeching on the existing network called stormy-network. It would be bad if docker compose down removed a network belonging to a different project. From your description I'm guessing that you didn't actually have a network in another project that you wanted to connect to. Maybe you meant network mode host?

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: grofte

79534132

Date: 2025-03-25 15:30:06
Score: 2
Natty:
Report link

maybe its very late... but the issue is when the app is on PROD. it will not seed if you dont force it

with --force option

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

79534130

Date: 2025-03-25 15:30:06
Score: 4.5
Natty:
Report link

Problem solved, the issue is related to the transformers dependency.

See: https://github.com/Blaizzy/mlx-vlm/issues/274

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

79534127

Date: 2025-03-25 15:28:05
Score: 3
Natty:
Report link

I just came across this same issue today. The problem was that the user was suspended.

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

79534119

Date: 2025-03-25 15:23:04
Score: 11.5
Natty: 7.5
Report link

Thanks for your question as I have the same issues.

@Skin's answer works best when I need to extract only one item from an array. But in case I want to get a list of values such as [mv_something1, mv_something2...], what would be the feasible solution?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • User mentioned (1): @Skin's
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Bao Nguyen

79534116

Date: 2025-03-25 15:20:03
Score: 5
Natty:
Report link

I don't have enough reputation to comment yet.
I want to add more on @BSSchwarzkopf response.

for VS2022, if you want to compare vice-versa (in opposite direction) you can't do that.
it will always compare older_branch vs newer_branch .
older_branch = branch that last commit date is earlier.
newer_branch = branch that last commit date is latest.
no matter what branch you checkout.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • User mentioned (1): @response
  • Low reputation (1):
Posted by: N. Wigi

79534114

Date: 2025-03-25 15:20:02
Score: 9 🚩
Natty: 5.5
Report link

Were you able to find the problem? I have the same problem with an Intel 13th Gen CPU... onboard graphics card (Intel)

Intel network card... but ESXi v7 starts!

But I also need v6.7... :-/

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: chv

79534103

Date: 2025-03-25 15:16:01
Score: 2.5
Natty:
Report link

I did that before. But i forget the actual application.

The answer for your question is "Indirect" function.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ho Wai Yan Arthur

79534100

Date: 2025-03-25 15:15:01
Score: 2.5
Natty:
Report link

you can use the flutter pack https://pub.dev/packages/flutter_quill_to_pdf.

It is compatible with the latest version of flutter_quill.

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

79534087

Date: 2025-03-25 15:09:59
Score: 2.5
Natty:
Report link

I was having the same issue and the problem was that the Model I was using for the Page wasn't the Model i had given the Edit Context. I was calling initialize, creating a new Model instance, passing that to the EditContext and then calling my reset function on the form. well my reset function overwrote the Model with a new object instance. this meant that the Form Model and the EditContext Model weren't the same object anymore.

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

79534077

Date: 2025-03-25 15:06:59
Score: 1
Natty:
Report link

You can provide these details in Play Console. Please note the following requirements when providing login credentials:

  • Your login credentials must be accessible at all times, reusable, and valid regardless of user location.
  • Your login credentials must be maintained at all times without any error. For example, if your app typically requires a 2-Step Verification code or One-Time Password, make sure to provide reusable login credentials that can bypass these requirements. If the provided password expires, we may not be able to review your app and, therefore, the app may be rejected.
  • Your login credentials must be provided in English. If your login credentials are typically in a non-English language, provide an English language version of all necessary login credentials via Play Console.
  • If your login credentials are not numeric or alphanumeric (for example, a QR code or barcode), generate a static URL and upload it to Play Console.
  • If your app requires users to set up their own password (for example, a PIN) to access in-app content, be sure to provide clear instructions.
  • If your app requires login credentials involving other accounts (such as “sign in with Google, Facebook”, or similar), provide all account information with detailed instructions. Clear and simple instructions will help ensure a smooth review process.
  • If your app normally uses a location-dependent password (for example, geo-gate), provide login credentials that are valid regardless of user location (for example, “master” login credentials).
  • If your app does not require login credentials but you have functionalities or content behind a subscription paywall, please provide additional instructions or access details that will allow us to fully and freely access and review the app behind the paywall.

Requirements for providing login credentials for app access, emphasis mine

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Albert221

79534068

Date: 2025-03-25 15:04:58
Score: 3.5
Natty:
Report link

Looks like the example is not complete. Fails to file /Account/SignIn

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

79534047

Date: 2025-03-25 14:55:56
Score: 4
Natty: 4.5
Report link

Any update regarding this? I saw that bug on the plugin repo is closed as invalid.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: George Marian Robu

79534046

Date: 2025-03-25 14:54:55
Score: 2
Natty:
Report link

Looks like you’re on the right track with secret scanning and blocking, but for the alerts to show up, you need to enable them specifically in the settings. You’ll want to go into your repository settings and make sure Secret Scanning Alerts is turned on in the Security & Analysis section. Once that’s done, the alerts for secrets should pop up in the overview. I've been in a very similar situation.

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

79534045

Date: 2025-03-25 14:54:55
Score: 1
Natty:
Report link
Properties properties;
new HashMap<>(properties).toString()
    .replace(',', '\r');

without values truncation. The replace call is for the case if you want to list properties in a column.

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

79534043

Date: 2025-03-25 14:54:55
Score: 1.5
Natty:
Report link
I was posting this answer on behalf of @Dixy Barahona because it would be helpful for the community members if they are facing the same issue.
 
- The problem is that the required packages were not being installed correctly during deployment. Initially, Dixy had tried using GitHub Actions to install the packages, but there was likely an issue with the `.yml` configuration that prevented the installation from succeeding.
 
To solve the problem, Use **Azure CLI (`az cli`)** for deployment. This method automatically bundles everything, including the necessary packages, and uploads them to Azure, check that all dependencies are properly installed.
 
Here is a basic command to deploy using `az cli`:
 
```bash
az functionapp deployment source config-zip \
  --resource-group <resource-group-name> \
  --name <function-app-name> \
  --src <path-to-your-zip-file>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
Posted by: Pavan

79534034

Date: 2025-03-25 14:52:54
Score: 0.5
Natty:
Report link
.sidebar::-webkit-scrollbar {
    display: inherit;
    width: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
    -webkit-border-radius: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(100,100,100,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}
.sidebar:hover::-webkit-scrollbar {
    width: 10px;
}
.sidebar:hover::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
    border-radius: 8px;
    -webkit-border-radius: 8px;
}

. sidebar:hover::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(100,100,100,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);

}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: FancyCoder

79534029

Date: 2025-03-25 14:51:54
Score: 2
Natty:
Report link

Deleting a folder in browser:

enter image description here

Deleting a file in browser:

enter image description hereenter image description here

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

79533981

Date: 2025-03-25 14:31:50
Score: 1
Natty:
Report link

There is an easy wa to do this:

QMessageBox messageBox(QMessageBox::Warning, tr("Sure?"), tr("Click Yes or No"), QMessageBox::NoButton, this);
messageBox.addButton(tr("No"), QMessageBox::NoRole);
messageBox.addButton(tr("Yes"), QMessageBox::YesRole);
boolean reply = messageBox.exec();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user8471965

79533976

Date: 2025-03-25 14:31:50
Score: 1
Natty:
Report link

If memory serves, v3.8.1 was the last release that was Python 2.7 compatible. Best of luck!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Alex Grönholm

79533964

Date: 2025-03-25 14:23:49
Score: 2
Natty:
Report link

Careful cross-validation, ensembles, careful data preprocessing can to specific extend reduce the loss and achieve the tuner-specified optimal parameters

Using techniques like k-fold cross-validation ensures that the model is evaluated on different subsets of the data, reducing bias.

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

79533963

Date: 2025-03-25 14:23:49
Score: 0.5
Natty:
Report link

There are three ways new drivers can be put into the kernel

  1. 1. Re-linking the Kernel and Rebooting

    ➡ Explanation:

    This method requires manually adding the driver code to the kernel, recompiling it, and then rebooting the system for changes to take effect.

    Older UNIX systems (e.g., early versions of Linux and BSD) worked this way.

    ➡ Advantages:

    ✔ Ensures tight integration of the driver with the OS.

    ✔ Can lead to better stability and performance if done correctly.

    ➡ Disadvantages:

    ❌ Inconvenient—requires a reboot, causing system downtime.

    ❌ Complex process—requires technical expertise to compile and configure the kernel.

    ➡ Example:

    If you needed to add a new file system driver in an early UNIX system, you would have to:

    1. Add the driver code to the kernel source.

    2. Recompile the kernel.

    3. Reboot the system for the changes to apply.

    ---

    2. Declaring the Driver in an OS File and Rebooting

    ➡ Explanation:

    In this method, the OS does not require recompiling the kernel. Instead, you make an entry in a configuration file to tell the OS to load the driver during boot.

    Windows uses this method, where it detects necessary drivers at startup and loads them automatically.

    ➡ Advantages:

    ✔ Easier than recompiling—no need to modify kernel code manually.

    ✔ More flexible—allows adding or removing drivers without modifying the core system.

    ➡ Disadvantages:

    ❌ Still requires a reboot, causing system downtime.

    ➡ Example:

    In Windows, when you install a new graphics card, the OS might detect that a driver is missing and prompt you to install it.

    After installation, the system requires a reboot to load the driver properly.

    ---

    3. Loading Drivers On-the-Fly (Without Rebooting)

    ➡ Explanation:

    This is the most modern and flexible method, where the OS allows dynamically loading new drivers while it is running.

    The driver is installed and used immediately, without requiring a reboot.

    Modern Linux distributions and Windows versions support this method.

    ➡ Advantages:

    ✔ No downtime—drivers can be installed, updated, or removed without restarting the system.

    ✔ More user-friendly—used in plug-and-play devices like USB drives, printers, and external monitors.

    ➡ Disadvantages:

    ❌ If a driver is faulty, it may cause system instability without a clean reboot.

    ➡ Example:

    When you plug in a USB device, the OS automatically detects the hardware and loads the required driver without restarting.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Godson Kumi Ebo Arthur

79533962

Date: 2025-03-25 14:22:49
Score: 1.5
Natty:
Report link

Variable Scope

The scope of the variable you declared inside the Main method is local and hence it remains relevant within that scope, outside that method you cannot use it and that is why the compiler will print the value of that variable declared in the class level.

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

79533953

Date: 2025-03-25 14:19:48
Score: 1
Natty:
Report link

I made a mistake when connecting the library

I put my jar file in the custom_lib folder in the Solr root directory.

Include the jar file by defining the below line in solrconfig.xml conf file:

 <lib dir="${solr.install.dir:../../../..}/custom_lib/" regex=".*\.jar" />

The completed project with the installed plugin can be viewed at the link:

https://github.com/EvadS/my-first-solr-plugin

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

79533946

Date: 2025-03-25 14:18:48
Score: 1.5
Natty:
Report link

I had to give the sender permission at the Event Grid Domain level to resolve this issue. I was myself expecting the granular permissions to be at domain topic level as per the docs. However this does not seem to be the case. With the top level permissions in place i was expecting it to fail when i removed the topic level permissions but it didn't.

Apologies this is only answer, I know of at this time.

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

79533944

Date: 2025-03-25 14:16:47
Score: 1.5
Natty:
Report link

Counting unique clients per date/time:
B9: =UNIQUE(Table1[Appt Details])
A9: =COUNT(UNIQUE(FILTER(Table1[Client Number],Table1[Appt Details]=C10)))

Counting unique clients per date:
B13: =UNIQUE(INT(Table1[Appt Details]))
A13: =COUNT(UNIQUE(FILTER(Table1[Client Number],INT(Table1[Appt Details])=C14)))

Assuming that Table1 is A1:B7, with header in first column.

enter image description here

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlado Bošnjaković

79533938

Date: 2025-03-25 14:15:47
Score: 2.5
Natty:
Report link

Why is there margin-left:300px on #gib styles. On a screen of less than 300 pixels, this can make #gib disappear

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): Why is the
  • Low reputation (0.5):
Posted by: AlainPre

79533929

Date: 2025-03-25 14:12:46
Score: 1.5
Natty:
Report link

I think you first need to access a story within selectedItem like

const story = selectedItem.story;

and then this:

const content = story.contents;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manas Aggrawal

79533916

Date: 2025-03-25 14:09:45
Score: 2
Natty:
Report link

To add an inner shadow effect inside the TextFormField widget in Flutter, you'll need to use the BoxDecoration for the TextFormField's container. Flutter doesn't directly support an "inner shadow" out of the box, but you can simulate it by creating a Container around the TextFormField and applying the shadow to that container.

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

79533915

Date: 2025-03-25 14:08:45
Score: 3
Natty:
Report link

I tested it just now (5 years later) with opencv 4.11. The function with the default algorithm (spaghetti) is not taking the pixels with value 0 to make CC, except the background. Here with this image I get only 7 CC.

enter image description here

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

79533906

Date: 2025-03-25 14:06:45
Score: 0.5
Natty:
Report link

Eu consegui ajustar desta forma no arquivo android\app\build.gradle, estava com problema com o processo de construção do aplicativo

tasks.whenTaskAdded { task ->
    if (task.name.contains('assembleProd') || task.name.contains('assembleHomolog')) {
        task.doLast {
            def flavor = task.name.contains('Prod') ? 'prod' : 'homolog'
            copy {
                from "${buildDir}/outputs/apk/${flavor}/release"
                into "${rootProject.buildDir}/app/outputs/flutter-apk"
                include '*.apk'
            }
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Maiquel Gonçalves

79533900

Date: 2025-03-25 14:05:44
Score: 5.5
Natty: 5
Report link

I have the same problem as yours, maybe try sim_residuals <- simulateResiduals(model_fitted,plot = T,n=>1) , try changing the n(number of simulations) as mentioned here (https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html#general-remarks-on-interperting-residual-patterns-and-tests), additionally try adding dispersion model as well after checking plotResiduals(sim_residuals, data$pred1). Hope it helps.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Whitelisted phrase (-1): Hope it helps
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akshda

79533892

Date: 2025-03-25 14:03:43
Score: 2
Natty:
Report link

This is a problem with the updated handler. By default the redirect() method responds with a "302 found" HTTP Response Code.

You have to change the Response Code to "303 See Other" by changing your "return redirect(...)" to "return redirect( ... ,303)".

Found in the Book "Hypermedia Systems"

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

79533891

Date: 2025-03-25 14:02:43
Score: 1.5
Natty:
Report link

If you want the background color of the changed lines in the difference-view, you can go

Settings -> Editor -> Color Scheme -> Diff & Merge

then modify the colors that you need.

enter image description here

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

79533888

Date: 2025-03-25 14:02:43
Score: 3.5
Natty:
Report link

Starting from Artifactory 7.104.13, Artifactory is now support Noble distribution (Ubuntu 24.04)

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

79533886

Date: 2025-03-25 14:00:43
Score: 0.5
Natty:
Report link

A Scatter chart is created using NewScatter(). This works well for Cartesian coordinates where each (x, y) is treated as a data point.
The x-axis and y-axis are set to numeric values (not categorical) using charts.WithXAxisOpts() and charts.WithYAxisOpts().

package main

import (
    "log"
    "math"
    "net/http"

    "github.com/go-echarts/go-echarts/v2/charts"
    "github.com/go-echarts/go-echarts/v2/opts"
)

func main() {
    line := charts.NewScatter()

    line.SetGlobalOptions(
        charts.WithTitleOpts(opts.Title{Title: "Cartesian Coordinates Example"}),
        charts.WithXAxisOpts(opts.XAxis{Type: "value", Name: "X-Axis"}),
        charts.WithYAxisOpts(opts.YAxis{Type: "value", Name: "Y-Axis"}),
    )

    radius := 10.0
    numPoints := 100
    data := generateCircleData(radius, numPoints)

    line.AddSeries("Circle", data)

    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        err := line.Render(w)
        if err != nil {
            log.Println("Error rendering chart:", err)
        }
    })

    log.Println("Starting server at http://localhost:8081")
    http.ListenAndServe(":8081", nil)
}

func generateCircleData(radius float64, numPoints int) []opts.ScatterData {
    data := make([]opts.ScatterData, 0, numPoints)
    for i := 0; i < numPoints; i++ {
        theta := 2 * math.Pi * float64(i) / float64(numPoints) // Angle in radians
        x := radius * math.Cos(theta)                         
        y := radius * math.Sin(theta)                        
        data = append(data, opts.ScatterData{Value: [2]float64{x, y}})
    }
    return data
}

enter image description here

Reasons:
  • Blacklisted phrase (1): thX
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Szymon Roziewski

79533883

Date: 2025-03-25 14:00:43
Score: 1
Natty:
Report link

I think I get it from OnApplyTemplate, in the code behind like this one:

protected override void OnApplyTemplate()
{
    base.OnApplyTemplate();
    scrollbar = GetTemplateChild("Scrollbar") as Border;   
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: infinitesimal

79533873

Date: 2025-03-25 13:57:42
Score: 5
Natty: 5
Report link

Here is the source about timeouts: https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/web-apps-performance-faqs#why-does-my-request-time-out-after-230-seconds

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

79533872

Date: 2025-03-25 13:57:42
Score: 1.5
Natty:
Report link

You need to run your app in release mode if you want it to keep opening even while disconnected from your computer.

You can do that on Xcode by editing your Run Scheme and choosing Release in Build Configuration

OR

on Android Studio, click Run in the menu bar, and choose Flutter Run in Release Mode

Xcode

enter image description here

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

79533870

Date: 2025-03-25 13:55:41
Score: 3
Natty:
Report link

In the connection manager, choose the parameterize and choose account key. This will be created as a parameter in the project.params and you can edit it for different environments

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

79533868

Date: 2025-03-25 13:53:41
Score: 3.5
Natty:
Report link

Recently I tested the solution proposed by Юрий Зеленский and it works perfectly.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leonard Petit-Breuilh

79533862

Date: 2025-03-25 13:50:40
Score: 2
Natty:
Report link

Thanks @harel for the answer, you can also set the key/value on the MapEntry without casting it by setting the fields using the field numbers:

if (field.isMapField()) {
    Descriptors.Descriptor messageType = field.getMessageType();
    // see com.google.protobuf.MapEntryLite for field numbers
    Descriptors.FieldDescriptor keyField = messageType.findFieldByNumber(KEY_FIELD_NUMBER); // KEY_FIELD_NUMBER = 1
    Descriptors.FieldDescriptor valueField = messageType.findFieldByNumber(VALUE_FIELD_NUMBER); // VALUE_FIELD_NUMBER = 2
    Message.Builder entryBuilder = builder.newBuilderForField(field);
    entryBuilder.setField(keyField, key);
    entryBuilder.setField(valueField, value);
    builder.addRepeatedField(field, entryBuilder.build());
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @harel
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: jazd

79533858

Date: 2025-03-25 13:48:39
Score: 0.5
Natty:
Report link

A GUI tool for macOS showing the stack after a PostScript code, with a manually entered input stack

On macOS, you can build a graphic tool which show the stack after running a code.

(Disclaimer: I was helped with an AI for a part of the AppleScript code, specially the line set shellCommand to ..., as I needed a stack viewer for learn the PostScript code).

  1. Open the Shortcut app and click on "+" to create a new shortcut. By default, you obtain a window with no actions, and a default title "Title". Click on the defautl title and rename it "PostScript Stack viewer". You can also change the default icon and color. For example, search for a spanner.

Change the icon

  1. In the right side of the windows, search for the action "Ask for Input", add it (double click or dragging).

Add "Ask for Input" action

  1. Click on "Prompt" and change it for Input stack (ex. "3 4").

"Input stack" prompt

  1. Add a second action "Ask for Input" under the first, and change "Prompt" with "Input the PostScript code (ex. "add")". Click on Show more and be sure that Allow multiples lines is checked.

"Input the PostScript code" prompt

  1. Search the "Text" action and add it under the two previous actions, then right-click on the field and choose "Insert Variable > Select Variable"

Insert a variable

Then click on the first "Ask for input" (cercled in red here):

Select the first "Ask for input"

This will add the input stack in the Text object.

The stack input content is added in the Text object

  1. Add a space, then right-click on the field after the space and choose again "Insert Variable > Select Variable". Then select the second "Ask for input" (which contain the PostScript code). This will give this Text object:

The PostScript code content is added in the Text object

Notice the space between the two graphical variables, it's very important. You can know to what "Ask for Input" each object is by click on it (not right-click), then choose "Reveal". You can also rename it with this method).

Reveal the variable

  1. Search for the "Run AppleScript" action and drag it under the previous actions.

Search for "Run AppleScript"

It automatically takes the previous Text object as input.

AppleScript action added

Note that adding the "Run AppleScript" can replace the icon choose for the Shortcut by the AppleScript icon. You can change the icon again (click on it, see point 1).

  1. Paste this AppleScript code in the field (the variable completeCommand receive the value in the Text object):
on run {completeCommand}
    
    -- Prepare the PostScript command for Ghostscript
    set fullPSCode to (completeCommand as text) & " pstack"
    
    -- Run Ghostscript via do shell script with the full path
    try
        set shellCommand to "echo " & quoted form of fullPSCode & " | /usr/local/bin/gs -q -sDEVICE=nullpage - 2>&1"
        set output to do shell script shellCommand
        
        -- Define the delimiters to include \r (carriage return)
        set AppleScript's text item delimiters to {return, linefeed, ASCII character 13}
        set resultLines to text items of output
        
        -- Reverse the order to go from the base to the top
        set reversedLines to reverse of resultLines
        
        -- Build the final result
        set cleanResult to ""
        repeat with thisLine in reversedLines
            if length of thisLine > 0 then
                set cleanResult to cleanResult & thisLine & " "
            end if
        end repeat
        
        -- Clean the final space and reset the delimiters
        if length of cleanResult > 0 then
            set cleanResult to text 1 thru -2 of cleanResult
        end if
        set AppleScript's text item delimiters to ""
        
        display dialog "Output Stack: " & cleanResult buttons {"OK"} default button "OK"
    on error errMsg
        display dialog "Error: " & errMsg buttons {"OK"} default button "OK" with icon stop
    end try
end run

You can click on the Hammer icon of the AppleScript action to "compile" the code. If the code is syntactically colored, then there is no error.

Compiled AppleScript code

In this code /usr/local/bin/gs this the path to the gs command. You need to use the absolute path.

  1. On the right side, click on the information icon ⓘ and click on "Pin in Menu Bar".

Pin in Menu Bar

  1. Quit the Shortcut app, click on the Shortcut menu in the menu bar, and choose the "PostScript Stack viewer" shortcut.

Run the "PostScript Stack viewer" shortcut

Enter the input stack:

Enter the input stack

Click done, enter the PostScript code, example add, click done, and you have the output stack:

Output Stack

Another example:

Output stack:

Output for "1 2 3 4 5 6" and "pop dup mul 3 1 roll"

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: quark67

79533854

Date: 2025-03-25 13:45:38
Score: 4.5
Natty:
Report link

To add to @Hariharan's answer, you need to add the Family Controls (Development) capability in XCode, runner. Otherwise, no data will be shown. This caught me off guard, since they don't tell you why nothing is showing otherwise...

If you use flutter, make use of rendering native views: https://www.youtube.com/watch?v=czErmevSbuY to render the ExampleView in his answer.

Good luck!

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Contains signature (1):
  • No code block (0.5):
  • User mentioned (1): @Hariharan's
  • Low reputation (1):
Posted by: Wing

79533852

Date: 2025-03-25 13:44:38
Score: 1.5
Natty:
Report link

Here is my current solution, that is imperfect but I stuck with it as I don't have better ideas yet.

Goal

I want to move memory allocation outside of the catch block, so the memory allocation does not happen in catch block.

Considered solutions

1. Allocate string interpolation Object[] array in each repository

Here is the code:

@Repository
public class UserRepositoryImpl implements UserRepository {

    private static final Object[] USER_ENTITY_ARG = new Object[]{User.KIND};
    
    private final Datastore datastore;
    private final KeyFactory keyFactory;
    private final MessageSource messageSource;
    
    // Constructor and other methods...
    
    @Override
    public User save(User user) {
        try {
            // Existing implementation...
            datastore.put(entity);
        } catch (DatastoreException datastoreException) {
            String errorMessage = messageSource.getMessage(
                    "persistence.datastore.failed_to_save",
                    USER_ENTITY_ARG,
                    LocaleContextHolder.getLocale());
            throw new DatastorePersistenceException(errorMessage, datastoreException);
        }
        return user;
    }
    
    // Other methods...
}

Pros

  1. It allocates memory at repository class loading. The goal of avoiding memory allocation in catch block achieved.

Cons

The code

private static final Object[] USER_ENTITY_ARG = new Object[]{User.KIND};
  1. looks like garbage in repository class breaking the single responsibility principle, adding clutter to code.
  2. adds burden for developer to follow this "convention" of allocating interpolation strings in each repository.

Verdict

I do not like it for its' cons.

2. MessageHelper class with encapsulated Spring's MessageSource and pre-allocated memory for Object[] string interpolation arrays

Here is the helper class:

@Service
public class MessageHelperImpl implements MessageHelper { // MessageHelper is just my interface you can see @Override's of its methods

    private static final ThreadLocal<Object[]> ARGS1 = ThreadLocal.withInitial(() -> new Object[1]);
    private static final ThreadLocal<Object[]> ARGS2 = ThreadLocal.withInitial(() -> new Object[2]);

    private final MessageSource messageSource;

    @Autowired
    public MessageHelperImpl(MessageSource messageSource) {
        this.messageSource = messageSource;
    }

    ... 

    @Override
    public String getMessage(String code, Object arg1) {
        Object[] args = ARGS1.get();
        args[0] = arg1;
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

    @Override
    public String getMessage(String code, Object arg1, Object arg2) {
        Object[] args = ARGS2.get();
        args[0] = arg1;
        args[1] = arg2;
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

    @Override
    public String getMessage(String code, Object... args) {
        // For varargs, we use the provided array
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

}

then the catch block looks like this:

        } catch (DatastoreException datastoreException) {
            // Using the specialized single-argument method
            String errorMessage = messageHelper.getMessage(
                    "persistence.datastore.failed_to_save", User.KIND); // User.KIND is just a String containing "User"
            throw new DatastorePersistenceException(errorMessage, datastoreException);
        }

Pros

  1. encapsulation of message retrieval from messages.properties and string interpolation logic
  2. possibly ThreadLocal ARGS1 and ARGS2 buffers will be allocated before the actual call from the exception. So it does not solve my concern.

Cons

  1. While ThreadLocal fields itself are created when the MessageHelperImpl class is loaded - Object[] arrays created lazily.
    • First time a thread calls ARGS1.get() that call can be right from the exception
    • Created by the supplier () -> new Object[1]
    • Each thread gets its own array instance
    • The array is reused for all subsequent calls from the same thread.

Verdict

I do not like this solution as it does not guarantee to solve my concern - not to allocate new memory in catch block.

I see that potentially I can call the ARGS1.get() for each thread on initialization of the thread but it looks sooo messy like a very poor workaround.

Conclusion

At this moment I do not have working solution that is architecturally nice for the problem of having string interpolation for exception messages.

Please share your thoughts.

P.S. And I am still wondered whether this is normal to create a new exception in the catch block - while it is an existing practice of abstracting your app's exception processing from the "vendor-specific" exceptions it still allocates memory in catch block what is considered a bad practice.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share your
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: nickolay