79180519

Date: 2024-11-12 09:39:35
Score: 1
Natty:
Report link

I found the solution, just try deleting your locally generated wallet folders e.g. "org1-wallet" or anything you have

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vivek Dhage

79180515

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

I faced the same issue. In my case, I had done all the code integrations according to the documentation but was still facing the issue.

Then I ended the metro server and started it again clearing the cache

npm start -- --reset-cache
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lasitha Lakmal

79180512

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

It worked for me. I deleted an image file and then attempted to replace it with another of the same name. Xcode kept saying the file already existed. I searched via Finder and the file was still there - I deleted it and was then able to add the new file via Xcode.

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

79180501

Date: 2024-11-12 09:35:34
Score: 2.5
Natty:
Report link

If you have the folder id you can use the Data Management, GET folder contents API: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/ to access the files

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

79180500

Date: 2024-11-12 09:35:34
Score: 1.5
Natty:
Report link

on my VPS Ubuntu server, after trying all the solutions given on this page the problem still occurs, I only need to reboot my VPS server, and the error has gone

I hope someone who maybe has the same problem as me found this useful

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

79180495

Date: 2024-11-12 09:33:33
Score: 8.5
Natty: 9
Report link

Can you please provide the solution if we are using Java 17?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please provide the solution
  • 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 you please
  • Low reputation (1):
Posted by: Mohammed Rahil

79180486

Date: 2024-11-12 09:29:32
Score: 1
Natty:
Report link

Fo anyone still interested, to avoid this effect you might use display: column rather than column-reverse on the parent and set the order property on every child to set it in the right place.

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

79180483

Date: 2024-11-12 09:29:32
Score: 2
Natty:
Report link

These errors are caused by white spaces in the folder name, such as React Native.

Problem solved after changing the name to ReactNative.

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

79180480

Date: 2024-11-12 09:28:31
Score: 1.5
Natty:
Report link

Actually, load_from_file and create_from_image are not procedures but functions and return Image and ImageTexture, so solution was just

var img = Image.new().load_from_file(lang_path + "logo.png")
var texture = ImageTexture.new().create_from_image(img)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexandr

79180475

Date: 2024-11-12 09:25:30
Score: 3.5
Natty:
Report link

It's possible now using Databricks Apps.

https://www.databricks.com/product/databricks-apps

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

79180473

Date: 2024-11-12 09:25:30
Score: 2
Natty:
Report link

when you go to a new page by the following command

onTap: (() => context.go("/secondPage"))

the router removes the previous destination and overlays the requested destination. that is why when you pop this destination. You are receiving an error. However when you go to new page using the following command.

onTap: (() => context.push("/secondPage"))

the previous page is still left on the stack and popping the new page exposes the previous page.

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): when you
  • Low reputation (1):
Posted by: Daniel Atego

79180455

Date: 2024-11-12 09:19:29
Score: 1
Natty:
Report link

You could do something like this until a cleaner option is available.

customer = toSignal(
        toObservable(this.id).pipe(
          switchMap((id) => this.myService.getCustomer(id))
        )
      );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: FlyOnWall

79180449

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

use local functions and call them in the cases.

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

79180445

Date: 2024-11-12 09:17:28
Score: 2.5
Natty:
Report link

In case this error occurs in the context of Azure Devops on a self-hosted runner, it is most likely due to the runner being run in a Powershell Core command line.

Using the suggested workarounds or running it in a Windows Powershell instead should fix the issue.

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

79180431

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

As I am not yet allowed to make comments, I want to react to David Browne's question: Why do you need them?

The answer to that is simple, a piece of software that I need to install depends on those tools (for the time being) and I therefore require them to be available.

If I could do without them, I would, but in this case I think there is not other option than to revert back to SQL Server 2019, as these tools are still included in that installation medium.

I found on another forum that it was an option to install them via the SQL server 2019 Installation Medium, but I am not sure that is a good idea. [how to install Components (client tools connectivity and Client tools backwords Compatibility) in sql server 2022][1]

Any advice/comments to that?

[1]: https://learn.microsoft.com/en-us/answers/questions/1499897/how-to-install-components-(client-tools-connectivi

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Corné

79180430

Date: 2024-11-12 09:11:27
Score: 1
Natty:
Report link

I would recommend to give EventGrid a shot.

There is a quite good example on the docs already explaining exactly your case https://learn.microsoft.com/en-us/azure/azure-functions/functions-event-grid-blob-trigger?pivots=programming-language-csharp

Create an Event Subscription for the Blob Created event and then create a new EventGridTrigger Function.

Event based trigger are btw the recommended way for blob storage, as it has lower latency and calls on the storage account

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Julian Hüppauff

79180425

Date: 2024-11-12 09:10:24
Score: 7 🚩
Natty: 5.5
Report link

I have same problem but when i start docker in local it work and in other machine it doesn't i have added hostname port in docker entrypoint

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
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: erka

79180414

Date: 2024-11-12 09:07:23
Score: 2.5
Natty:
Report link

Using Google Colab, I had same issue*

issue

*i.e.: ParseError: XML or text declaration not at start of entity: line 2, column 0

And, kind of counterintuitively, resolved as follows: Two indents on the import statement. And of course all else after that will need to extra-indent along.

resolving

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

79180409

Date: 2024-11-12 09:06:23
Score: 3
Natty:
Report link

Is the last variant also possible with structured table types? Inculding the definition of the line type inside the definition of ty_itab?

Types: BEGIN OF myTableLine,
   field1  type string,
   field2  type string,
END OF myTableLine.

TYPES: BEGIN OF ty_itab,
    pruefer    type qase-pruefer,
    zeiterstl  type qase-zeiterstl,
    myTable    type TABLE OF myTableLine WITH NON-UNIQUE DEFAULT KEY
    ty_qase2   type t_qase2.
    INCLUDE STRUCTURE s_f800komp.
TYPES:  END OF ty_itab.
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: leusmannh

79180396

Date: 2024-11-12 08:59:21
Score: 2
Natty:
Report link

May be if your replace command.Parameters.AddWithValue("@paramDate", MyDate); by command.Parameters.Add("@paramDate", System.Data.SqlDbType.DateTime2).Value = MyDate;

it will work with MyDate = '0001/01/01 00:00:00" !!!

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

79180392

Date: 2024-11-12 08:58:20
Score: 2
Natty:
Report link

I was having same issue while connecting with Django. Later after following with few answers, able to solve by deleting the "Volume" created by the images. It was picking the old username and password from the volume, that is why it was not working even after rebuilding the image.

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

79180390

Date: 2024-11-12 08:58:20
Score: 3
Natty:
Report link

Changes to the internal load balancer are managed through Container Apps. If you want to modify the load balancer you need to update container apps. Though you do not have the full options exposed through Container Apps.

However, it sounds like you want to disable session affinity. Did you tried setting it over the ingress configuration? https://learn.microsoft.com/en-us/azure/container-apps/sticky-sessions?pivots=azure-portal#configure-session-affinity

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Julian Hüppauff

79180387

Date: 2024-11-12 08:56:19
Score: 3
Natty:
Report link

Владимир, приветствую! Сейчас Vosk на GPU можно запустить только под управлением Linux. Базово, разработчик предлагает это делать в контейнере. Т.е. можно его запустить и под WSL. (у меня не получилось). Я рекомендую воспользоваться готовым решением на гите здесь . Там же можно найти как скомпилировать библиотеку Vosk для использования без Docker.

Обратите внимание, что для запуска на GPU нужно изменить модель - Удалить "min-active" из файла model/conf/model.conf или закомментить его. и вставить файл ivector.conf из большой EN модели.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Alex-Ko

79180385

Date: 2024-11-12 08:56:19
Score: 1.5
Natty:
Report link

function removeDayNameFromFormattedDate(formattedDate) { const dayOfWeekPattern = /^[A-Za-z]+,\s*/ formattedDate.replace(dayOfWeekPattern, '')

const monthNamePattern = /([A-Za-z]+)\s/; formattedDate.replace(monthNamePattern, (match, monthName) => monthName.substr(0, 3) + ' '); return formattedDate } removeDayNameFromFormattedDate(Wednesday,30 NOV 2024)

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

79180383

Date: 2024-11-12 08:56:19
Score: 1
Natty:
Report link

Open code cleanup settings in VS by going to Analyze=>Code Cleanup=>Configure Code Cleanup.. Include fixer Fix analyzer warnings and errors set in EditorConfig

Now run on a file using the broom icon or use key combination Ctrl+K, Ctrl+E (on windows)

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

79180362

Date: 2024-11-12 08:50:18
Score: 3
Natty:
Report link

If you are looking to set a default value activ, it seems like my code is working :

                elif field_type.startswith("picklist"):
                empty_space_before = MDBoxLayout(size_hint_y=None, height=3)
                if settings["column"] == "left":
                    self.sub_column_1.add_widget(empty_space_before)
                else:
                    self.sub_column_2.add_widget(empty_space_before)

                options = field_type.split("(")[1].strip(")").split(",")
                default_value = settings.get("default", options[0])  # Use the first option if no default specified

                column_value = MDSegmentedButton(size_hint=(1, None), height="30dp", pos_hint={'center_x': 0.5})
                default_segment = None
                for option in options:
                    segment = MDSegmentedButtonItem(MDSegmentButtonLabel(text=option.strip()))
                    if option.strip() == default_value:
                        segment.active = True
                        print(f"Default value for {column_name}: {option.strip()}")
                    column_value.add_widget(segment)

                # Ajouter la picklist à gauche et le texte explicatif à droite
                row_layout.add_widget(column_value)
                if settings["column"] == "left":
                    self.sub_column_1.add_widget(column_label)
                    empty_space_after = MDBoxLayout(size_hint_y=None, height=5)
                    self.sub_column_1.add_widget(empty_space_after)
                else:
                    self.sub_column_2.add_widget(column_label)
                    empty_space_after = MDBoxLayout(size_hint_y=None, height=5)
                    self.sub_column_2.add_widget(empty_space_after)

            # Ajouter la ligne au bloc de saisie en fonction de la colonne définie
            if settings["column"] == "left":
                self.sub_column_1.add_widget(row_layout)
            else:
                self.sub_column_2.add_widget(row_layout)

            # Stocker les champs de saisie pour les récupérer plus tard
            self.input_fields[column_name] = column_value

I tried workarounds first since segment.state didn't seem to do what I wanted but a simple segment.active = True seemed to fix the problem ?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix the problem ?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Guillaume.NT

79180352

Date: 2024-11-12 08:45:17
Score: 1
Natty:
Report link
  1. first line is a error: "#!/usr/bin/env bash"
  2. export PATH is a error: export PATH="/Users/klumpy/Library/Scripts:$PATH"
  3. If follow a string echo $(blueutil --connected) return is null, then used res=$(blueutil --connected); echo $res or used full path (for example /usr/bin/blueutil).
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dmitry Lvov

79180350

Date: 2024-11-12 08:44:17
Score: 1.5
Natty:
Report link

Download the compatible version from
https://origin.softwaredownloads.sap.com/public/site/index.html

Download the developer edition for visual studio as mentioned at:
https://www.tektutorialshub.com/crystal-reports/install-crystal-reports-visual-studio/

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

79180347

Date: 2024-11-12 08:44:17
Score: 1.5
Natty:
Report link

Although the solution provided by Brian Ngure is not working, because wrong offsets trigger crashes. I used his idea to create a working one (at least for me :D).

VisualTransformation { text ->
TransformedText(buildAnnotatedString {
    if (maxSymbols < 3) {
        append(text)
    } else {
        append(text.take(maxSymbols - 3))
        append("...")
    }

}, object : OffsetMapping {
    override fun originalToTransformed(offset: Int): Int {
        return if (maxSymbols < 3) text.length else maxSymbols
    }

    override fun transformedToOriginal(offset: Int): Int {
        return text.length
    }
})

Where 3 == "...".length

In order for that to work you have to get maxSymbols that can be drawn on the screen. You can do that in the onTextLayout callback of the TextField There are ready to use variables didOverflowWidth, didOverflowHeight, hasVisualOverflow

        onTextLayout = { result ->
        isTextOverflow = result.didOverflowWidth
    },

If that's not working, you can get information about current text field width result.size.width and by comparing that with the screen width from LocalContext.current.resources.displayMetrics.widthPixels you can understand when there is an overflow. For some reason the dedicated variables are not working for me.

When the overflow happens, just use another variable to remember maxSymbols

and apply this transformation to the TextField and a decoration box, if you use one.

var isTextOverflow by remember { mutableStateOf(false) }
var maxSymbols: Int = remember(isTextOverflow) { if (isTextOverflow) text.text.length else 0 }

And also you might need to recreate the transformation as different symbols have different width and for different texts width might be different, but recreating transformation too often can be bad for performance.

Reasons:
  • RegEx Blacklisted phrase (3): not working for me
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Inliner

79180340

Date: 2024-11-12 08:39:16
Score: 0.5
Natty:
Report link

Though the suggested answer by Krishnan works fine, there's a way to do it using just the TestNG xml file and @Parameter annotation without using DataProvider at all. It may be bulky, especially for bigger projects but it does exactly what arctic_monkey asked about, maybe someone will find it useful.

You can create multiple test tags with different parameter values but the same tests executed in each tag:

<suite name="Parameterized tests">
    <test name="Login Tests one">
        <parameter name="one"/>
        <classes>
            <class name="test.java.Login"/>
        </classes>
    </test>
    <test name="Login Tests two">
        <parameter name="two"/>
        <classes>
            <class name="test.java.Login"/>
        </classes>
    </test>
</suite>

You can also indicate particular methods in each class tag not to run the entire suite multiple times, but just the parameterized methods:

<suite name="Parameterized tests">
    <test name="Login Tests one">
        <parameter name="one"/>
        <classes>
            <class name="test.java.Login">
                <methods>
                    <include name="loginTest"/>
                </methods>
            </class>    
        </classes>
    </test>
    <test name="Login Tests two">
        <parameter name="two"/>
        <classes>
            <class name="test.java.Login">
                <methods>
                    <include name="loginTest"/>
                </methods>
            </class>                        
        </classes>
    </test>
</suite>
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Parameter
  • Low reputation (1):
Posted by: Vadim Zubovich

79180336

Date: 2024-11-12 08:37:16
Score: 3
Natty:
Report link

i solution this question by install redisJoson module in windows.https://blog.csdn.net/Bilal_0/article/details/130231084

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

79180335

Date: 2024-11-12 08:37:16
Score: 3.5
Natty:
Report link

You can take a look at this: https://github.com/javiertuya/dashgit. It displays all your open issues/PRs/... as well as all repos/branches with their GitHub Actions status. Supports multiple GitHub/GitLab users/organizations

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

79180333

Date: 2024-11-12 08:36:15
Score: 3.5
Natty:
Report link

There's documentation that covers what you have to declare here.

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

79180330

Date: 2024-11-12 08:35:15
Score: 1
Natty:
Report link

Use a SingleChildScrollView around your widget, keep resizeToAvoidBottomInset: true

SingleChildScrollView(
    // Make sure the SingleChildScrollView has a padding at the bottom equal to the keyboard height
    padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom)
    child: ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shaikh Faiyaz

79180328

Date: 2024-11-12 08:34:15
Score: 0.5
Natty:
Report link

It sounds like you’re trying to get your Spring Boot Admin server to properly handle the /actuator/threaddump endpoint for your services, but you're hitting a deserialization issue. The key problem is that Spring Boot Admin uses WebFlux and its WebClient to call your services, while your services are using standard Spring MVC (Servlet) stack. Since Spring Boot Admin's WebClient stack is reactive and has its own ObjectMapper configuration, it doesn't pick up your custom ObjectMapper settings, leading to the deserialization error when it tries to process the thread dump response.

Here’s how you can fix it:

Solution Overview: You need to ensure that Spring Boot Admin's WebClient uses the same ObjectMapper configuration that you've applied to your service, particularly the ACCEPT_SINGLE_VALUE_AS_ARRAY feature.

Steps to Fix It: Create a Custom WebClient Configuration for Spring Boot Admin Since Spring Boot Admin internally uses a reactive WebClient (through WebFlux), you can customize that WebClient so it uses your ObjectMapper with the correct deserialization feature.

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

79180324

Date: 2024-11-12 08:32:14
Score: 3.5
Natty:
Report link

Never mind. I found that although the system contains .so of tinfo/gmp, but not .a files. I added .a for both libs, and the problem is solved.

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

79180322

Date: 2024-11-12 08:31:14
Score: 1
Natty:
Report link

Found a slightly easier solution suggested here

<Box sx={{ backgroundColor : { xs:'primary.main', md:'secondary:main'}, }}>
  // Children come here
</Box>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abhideep

79180312

Date: 2024-11-12 08:27:13
Score: 3.5
Natty:
Report link

you can go firebase consolse, in firestore databse, config the rule, i guess that

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

79180311

Date: 2024-11-12 08:26:12
Score: 0.5
Natty:
Report link

If you don't find an answer you like you could do it a silly way like this:

For example create a separate 'chair' snippet with the prefix chairbf.

Now when you choose 'chair' in the main snippet you can type 'bf' after to get the completion for the chair choice snippet. This separate snippet will have the chair submenu options plus the ending of the main snippet you have now.

You'll have to create the other choice snippets, for 'nothing' and 'all', as well.

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

79180308

Date: 2024-11-12 08:25:12
Score: 3.5
Natty:
Report link

Please remove the white space from your folder name 'RN Test' and try again.

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

79180306

Date: 2024-11-12 08:24:12
Score: 0.5
Natty:
Report link
"commandA": "npm index.js",
"commandB": "npm server.js",
"comandName": "npm-run-all --parallel commandA commandB",

Note --parallel is important else only commandA will run and not commandB

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

79180297

Date: 2024-11-12 08:22:11
Score: 1
Natty:
Report link

On Version 16.1 (16B40) they are back, we didn't change any code and now they appear again in the inspector area.

The downside is that when in 16.x these custom field weren't displayed the editor was smooth and less laggy, now the problem is back again and we face "spinning wheel" animation quite ofter (as it was before the release of 16.x).

enter image description here

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

79180281

Date: 2024-11-12 08:15:10
Score: 1
Natty:
Report link

You could try the following two commands to paste from the clipboard. Both of them should work.

Ctrl+Shift+v

Shift+Insert

The Ctrl+U command only allows pasting text that was copied or cut from within nano itself, hence the reason the command is not working.

See: https://superuser.com/questions/1262153/how-to-paste-into-nano-from-clipboard

Reasons:
  • Whitelisted phrase (-1): try the following
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yordan Yordanov

79180280

Date: 2024-11-12 08:14:10
Score: 0.5
Natty:
Report link

You can't assign _handleStateChange to onStateChange, their types are different, how about just call _handleStateChange like this

    _listener = AppLifecycleListener(
      onStateChange: (state) {
        _handleStateChange(context);
      },
    );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zhentao

79180276

Date: 2024-11-12 08:12:10
Score: 1.5
Natty:
Report link

Call/cc,display emphasized text


cc/ call/ display in calling tha call

Centerin your number##. Call tha display. Moubail In your phoune.

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

79180275

Date: 2024-11-12 08:12:10
Score: 2
Natty:
Report link

I found work project from a Chris Wellons. Read his article:https://nullprogram.com/blog/2023/03/23/ and show his a Source. I compiler his source and it is a work ( gcc src.c -static -nostdlib -fno-stack-protector -o run). Hope you are not writing a virus :). Good lack!

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

79180274

Date: 2024-11-12 08:11:09
Score: 5.5
Natty:
Report link

I have another question on this topic. The SQL query first returns the correct data for a machine. How do I have to change the query if I now add a column with e.g. MachineID to the table? This way I have all machine states in one table.

Many thanks for your support!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Adalro

79180273

Date: 2024-11-12 08:11:09
Score: 4
Natty:
Report link

Oh Damn, it seems to be a hard challange.

Add-Type -AssemblyName System.Windows.Forms

[System.Windows.Forms.Screen]::AllScreens | 
  ForEach-Object { '{0} x {1}' -f $_.Bounds.Width, $_.Bounds.Height } 

Show:

PS C:\WINDOWS\System32> Add-Type -AssemblyName System.Windows.Forms

[System.Windows.Forms.Screen]::AllScreens | ForEach-Object { '{0} x {1}' -f $.Bounds.Width, $.Bounds.Height }
2560 x 1600 2880 x 1620

And

$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription  -split '\n')[0]  -split ' ')[2]
$width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription  -split '\n')[0]  -split ' ')[0]
echo $width, $height

Show:

$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')1 $width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[0] echo $width, $height 1920 1200

The Real Resolution is: Res_1

and for the Primary: Res_2

in that order:

Placing

@mkelement I'll try the third Party later.

Thanks for help till now. Other ideas?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @mkelement
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: TheRob87

79180268

Date: 2024-11-12 08:08:09
Score: 1
Natty:
Report link

Adding to @Ray Burns' original guidance: "If you don't need Names on your objects, don't name them."

There are cases where naming elements is unavoidable, but in many cases, you can avoid it. There are several ways of doing that. My examples below briefly touch on that.

Suppose you have a UserControl with a Grid containing two rows. Row 0 contains a TextBlock with some text and Row 1 contains An Ellipse. Say you want to animate both elements so that when the user hovers over the control, the text and ellipse are highlighted in orange. Now do you need to assign names to the elements? In this case, no. You can simply use binding to achieve the effect, as shown below:

<UserControl x:Class="test.Components.AnimatedTextEllipseControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Background="White">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- TextBlock with Foreground bound to the UserControl's Foreground -->
        <TextBlock Text="Sample Text" 
                   Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
                   HorizontalAlignment="Center" VerticalAlignment="Center" />

        <!-- Ellipse with Fill bound to the UserControl's Foreground -->
        <Ellipse Grid.Row="1" 
                 Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}" 
                 Width="50" Height="50"
                 HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Grid>

    <UserControl.Triggers>
        <EventTrigger RoutedEvent="MouseEnter">
            <BeginStoryboard>
                <Storyboard>
                    <!-- Color animation from Blue to Orange -->
                    <ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
                                    To="Orange" Duration="0:0:0.3"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
        <EventTrigger RoutedEvent="MouseLeave">
            <BeginStoryboard>
                <Storyboard>
                    <!-- Color animation from Orange back to Blue -->
                    <ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
                                    To="Blue" Duration="0:0:0.3"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </UserControl.Triggers>
</UserControl>

Notice how no names were assigned to elements, but animations will still work due to binding.

Suppose you now want to animate the ellipse’s size on MouseEnter. How will you achieve that without telling the Storyboard which element to target? Naming here becomes essential to target the ellipse specifically. Here’s how the code would change:

<UserControl x:Class="test.Components.AnimatedTextEllipseControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Background="White">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <TextBlock Text="Sample Text" 
                   Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}"
                   HorizontalAlignment="Center" VerticalAlignment="Center" />

        <!-- Named Ellipse required for targeted size animations -->
        <Ellipse Name="EllipseElem" Grid.Row="1" 
                 Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=UserControl}}" 
                 Width="50" Height="50"
                 HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Grid>

    <UserControl.Triggers>
        <EventTrigger RoutedEvent="MouseEnter">
            <BeginStoryboard>
                <Storyboard>
                    <ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
                                    To="Orange" Duration="0:0:0.3"/>
                    <!-- Targeting the Ellipse using its name (EllipseElem) to increase its size on mouse enter -->
                    <DoubleAnimation Storyboard.TargetName="EllipseElem"
                                     Storyboard.TargetProperty="Width" To="100" Duration="0:0:0.3"/>
                    <DoubleAnimation Storyboard.TargetName="EllipseElem"
                                     Storyboard.TargetProperty="Height" To="100" Duration="0:0:0.3"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
        <EventTrigger RoutedEvent="MouseLeave">
            <BeginStoryboard>
                <Storyboard>
                    <ColorAnimation Storyboard.TargetProperty="(UserControl.Foreground).(SolidColorBrush.Color)"
                                    To="Blue" Duration="0:0:0.3"/>
                    <!-- Targeting the Ellipse using its name (EllipseElem) to decrease its size on mouse enter -->
                    <DoubleAnimation Storyboard.TargetName="EllipseElem"
                                     Storyboard.TargetProperty="Width" To="50" Duration="0:0:0.3"/>
                    <DoubleAnimation Storyboard.TargetName="EllipseElem"
                                     Storyboard.TargetProperty="Height" To="50" Duration="0:0:0.3"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </UserControl.Triggers>
</UserControl>

The example above reiterates that while naming elements is sometimes unavoidable (e.g., targeted animations), avoid over-naming. In my example, only the ellipse needed a name for animation targeting, while the TextBlock did not. Overuse of names can increase memory usage and complexity, especially in larger applications, as Ray mentioned. The examples above are also meant to emphasize on having the proper knowledge of a language and its features.

Also note that the Name property itself cannot be animated due to WPF's restrictions. As noted in the FrameworkElement documentation:

Name is one of the very few dependency properties that cannot be animated...because the name is vital for targeting an animation.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Ray
  • Low reputation (1):
Posted by: SAHIL SINGH DHESI

79180255

Date: 2024-11-12 08:05:08
Score: 1.5
Natty:
Report link

If you are using shared values from Reanimated, you should use them only within useWindowDimensions.

const { width } = useWindowDimensions();
// ... rest of the code

more in docs

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

79180253

Date: 2024-11-12 08:04:08
Score: 2.5
Natty:
Report link

{ "Countries":[{ "CountryName":"Indonesia", "States":[{ "StateName":"Bali", "Cities":["Denpasar", "Kuta", "Tuban" ]}, { "StateName":"Jakarta", "Cities":[ "Bandung", "Tanggerang" ] } ] }]}

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Kamal Tiwari

79180252

Date: 2024-11-12 08:03:08
Score: 3
Natty:
Report link

exact same problem here with HP Elitebook 860 G11, W10 Enterprise 22H2 + HP Essential Dock G5 I'm running out of ideas right now..

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

79180240

Date: 2024-11-12 08:00:07
Score: 4
Natty:
Report link

This blog is truly outstanding, offering essential information in a thorough and thoughtful manner. I have great admiration for the effort the author has invested in creating such valuable content. Thank you for sharing this insightful and practical information with us. For an even richer experience and to gain further insights, I highly recommend visiting our website. Keep up the excellent work—I look forward to seeing more of your well-crafted posts in the future. Your commitment to delivering high-quality resources is truly appreciated! Raipur Escorts

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): This blog
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: beauti queen

79180230

Date: 2024-11-12 07:56:06
Score: 0.5
Natty:
Report link

Container cannot find mounting file in docker-compose.yml because container cannot create folder in container, which will contains mounting files.

Link to automatically creating folders in containers and mounting files When you want the container to automatically create folders or mount files:

If the container needs to have access to an SELinux-protected directory, using :z or :Z is necessary to ensure SELinux does not block it.

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

79180228

Date: 2024-11-12 07:55:05
Score: 1
Natty:
Report link

enter image description here import turtle from turtle import Turtle, Screen import random

tim = turtle
tim.colormode(255)


def random_colors():
    r = random.randint(0, 255)
    g = random.randint(0, 255)
    b = random.randint(0, 255)
    colors = (r, g, b)
    return colors


tim.speed(1000)


def draw_spirograph(size_of_gap):
    for i in range(int(360 / size_of_gap)):  
        tim.color(random_colors())
        tim.circle(100) 
        tim.setheading(tim.heading() + size_of_gap)


draw_spirograph(5)

screen = Screen()
screen.exitonclick()
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joyal susilan

79180223

Date: 2024-11-12 07:53:05
Score: 0.5
Natty:
Report link

In my initial implementation, I returned result.href directly, which caused unexpected behavior. To fix this, I needed to return the entire response object from the getFilePreview method and then access the URL. By returning the full response, I was able to correctly retrieve the image preview URL.

So instead of return result.href, simply return the full response object and then access the URL where needed.

async getFilePreview(fileId) {
    if (!fileId) {
        throw new Error("File ID is required.");
    }

    try {
        const result = await this.bucket.getFilePreview(
            conf.appwriteListingImagesBucketId,
            fileId,
            1800, // width
            0, // height (ignored when 0)
            "center", // crop center
            "90", // compression
            5, // border width
            "CDCA30", // border color
            15, // border radius
            1, // full opacity
            0, // no rotation
            "FFFFFF", // background color
            "jpg" // output format
        );

        return result; // Return the entire response object instead of just result.href
    } catch (error) {
        console.error("Error fetching file preview:", error);
        throw new Error("Failed to fetch file preview.");
    }
}

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

79180222

Date: 2024-11-12 07:53:04
Score: 4
Natty:
Report link

You can check this: https://github.com/javiertuya/dashgit. It displays in a single view all your open issues/PRs/... as well as branches and their statuses. It is hosted in GitHub Pages.

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

79180220

Date: 2024-11-12 07:53:04
Score: 1
Natty:
Report link

Add this capability to use 2.X Appium version

"browserstack.appiumVersion" : "2.6.0"

You can use this capability generator to get the caps as per your language.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prakash K

79180216

Date: 2024-11-12 07:50:03
Score: 4
Natty:
Report link

The error is somehow related to the new Android Studio update. Checkout this issue: https://github.com/flutter/flutter/issues/156304

This answer can fix your problem: https://stackoverflow.com/a/79095064/7369590

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Amir Arani

79180214

Date: 2024-11-12 07:49:03
Score: 1.5
Natty:
Report link

This example excludes 75 and 80.

n1=input('Enter first number ')
n2=input('Enter second number ')
print sum(range(min(n1,n2)+1,max(n1,n2)))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Siddharth_0704

79180206

Date: 2024-11-12 07:46:02
Score: 1
Natty:
Report link

With this way, it works for me!

(new ExampleJob($data))->delay($delay);
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Junaidi Abdul Rahman

79180205

Date: 2024-11-12 07:46:02
Score: 0.5
Natty:
Report link

According to the Doc:How to: Convert between .NET Framework and Windows Runtime streams

.NET Framework streams don't support cloning, even after conversion. If you convert a .NET Framework stream to a Windows Runtime stream and call GetInputStreamAt or GetOutputStreamAt, which call CloneStream, or if you call CloneStream directly, an exception occurs.

You need to convert a System.IO.Stream to a Windows.Storage.Streams.IRandomAccessStream. You could refer to the thread: https://stackoverflow.com/a/48152204

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • High reputation (-1):
Posted by: Jeaninez - MSFT

79180199

Date: 2024-11-12 07:44:02
Score: 1
Natty:
Report link

Ok, at the end of my work day I let it run and eventually it actually completed!

BUILD SUCCESSFUL in 6h 7m 51s

It seems I just had to be very patient.

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

79180198

Date: 2024-11-12 07:44:02
Score: 2.5
Natty:
Report link

@Gakio's solution did not work in werf yaml template (got the error "range can't iterate over ..."). The following improvement helped:

apiVersion: v1
kind: Service
metadata:
  labels:
    app: some-app
  name: some-service
  namespace: some-namespace
spec:
  ports:
  {{ range untilStep 40000 42000 1 }}   # start stop step
  - port: {{ . }}
    targetPort: {{ . }}
    name: exposed-port-{{ . }}
  {{ end }}
  selector:
    app: some-app
  sessionAffinity: None
  type: ClusterIP
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • User mentioned (1): @Gakio's
  • Low reputation (1):
Posted by: user149598

79180193

Date: 2024-11-12 07:41:01
Score: 2.5
Natty:
Report link

We can do Streaming and Batch ingestion both on a single datasource. firstly, do batch ingestion. Next, do streaming ingestion by giving batch ingestion datasource name and vice versa. This senario will overcome the usecase.

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

79180177

Date: 2024-11-12 07:37:01
Score: 0.5
Natty:
Report link

Thanks Christoph:

nano /usr/local/bin/rtsp.sh

#!/bin/bash
ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=1280:720 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp  "rtsp://localhost:8554/mystream720p" &

ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=854:480 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp  "rtsp://localhost:8554/mystream480p" &

ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp://localhost:8554/mystream" \
-vf scale=640:360 -vcodec libx264 -preset:v ultrafast -tune zerolatency -crf 33 -an -rtsp_transport tcp \
-c:a copy -f rtsp  "rtsp://localhost:8554/mystream360p"

in mediamtx.yaml

paths:
  mystream:
     runOnReady: /usr/local/bin/rtsp.sh
     runOnReadyRestart: yes
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Cobalt

79180173

Date: 2024-11-12 07:36:00
Score: 1
Natty:
Report link

The mpl-token-metadata package requires you to use umi.

First you need to set up the umi framework: https://developers.metaplex.com/umi/getting-started#connecting-to-an-rpc

Metaplex has the docs on how to update tokens here:

https://developers.metaplex.com/token-metadata/update

In general, if this is a one time thing there are websites out there that you can use so that no code is required. One of those would be https://sol-tools.io/token-tools/token-management

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

79180137

Date: 2024-11-12 07:27:59
Score: 2.5
Natty:
Report link

it must package main does effect, other package

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

79180127

Date: 2024-11-12 07:23:57
Score: 2.5
Natty:
Report link

You need a privacy manifest in your app and in the included libs, see https://www.freecodecamp.org/news/how-to-make-your-flutter-package-privacy-manifest-compatible/

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

79180126

Date: 2024-11-12 07:23:57
Score: 0.5
Natty:
Report link

Perhaps the most universal yet easy-to-maintan approach is this:

Make your top-level visible UI element a Grid, it should be arranged by rows. Define <Grid.RowDefinitions> for it. All rows should have Height="Auto" except one, that one needs to have Height="*".

Your variable-height element should be placed in this * row. This way, it will occupy all the remaining vertical space. This space will be controlled by the size of your entire window.

You can have more than one row with Height="*", but then you should better place a <GridSplitter< between other UI elements to be vertically resized, such as borders. The approach can be easily generalized for the combination of rows and columns at different levels of nesting, and some of them can also be of variable height or width.

Please try out and let us know if you face any problems with that.

Thank you.

—SA
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergey A Kryukov

79180121

Date: 2024-11-12 07:21:57
Score: 1.5
Natty:
Report link

There is a workaround available: Git Hub Issue

In a nutshell they create a new temporary VPC and associate both Cloudmap NS and Route53 Hosted Zone with it. And then simply change the Hosted Zone association from temp VPC to shared VPC by using some AWS CLI commands. That worked in my case

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

79180117

Date: 2024-11-12 07:19:56
Score: 1
Natty:
Report link

Surprisingly all claims are parsed when i make request with token to API, just OpenIddictClientService authentication request dont return claims. Maybe claims in authentication response exist in other flows.

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

79180116

Date: 2024-11-12 07:19:56
Score: 1.5
Natty:
Report link

SELECT * FROM (SELECT id, ShipAddress, ShipZIPPostal, ROW_NUMBER() OVER (PARTITION BY shipaddress,shipzippostal ORDER BY id) ROWNUM1, ROW_NUMBER() OVER (PARTITION BY shipaddress,shipzippostal ORDER BY id DESC) ROWNUM2 FROM orders WHERE CONVERT(DATE,orderdate) = CONVERT(DATE,GETDATE()) ) x WHERE ROWNUM1 <> ROWNUM2

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

79180107

Date: 2024-11-12 07:16:55
Score: 0.5
Natty:
Report link

As nicely explained in thia post, I would recommend the followings:

#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8

RepeatMasker -pa 2

Then, you will get 8 cores. Your RepeatMasker will spawn two engine. Each engin would use 4 cores.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amin.A

79180106

Date: 2024-11-12 07:16:55
Score: 5
Natty: 5
Report link

Excellent article. Currently we cannot create items in workspace using postman. I have one more request like, Can we invoke or trigger the fabric pipeline from postman using access tokens. Please suggest me.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please suggest me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ashik shaik

79180100

Date: 2024-11-12 07:15:54
Score: 1
Natty:
Report link

If an app has a new feature that is to be released after internal testing, canary method decreases the risk of impact of unpredicted behaviour (hidden bug or misconfiguration). When the new feature is confirmed to work well, the feature may give different performance depending on parameters of that feature. To find out which set of parameters gives better performance we use A/B testing.

A typicall example in e-commerce is releasing new web page with new campaign of a product (canary deployment), then rearanging images, links or even modifying the contents of an advertisement on that web page to find out how viewers respond to the campaign (A/B testing).

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

79180094

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

Won't a continuous external counter solve your problem?

# ...

db_pos = -1
for ip in client_ips:
    for _ in dbs:
        db_pos += 1
        db_pos %= len(dbs)
        db = dbs[db_pos]
        # ...
        break
Reasons:
  • RegEx Blacklisted phrase (1.5): solve your problem?
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Konstantin Makarov

79180090

Date: 2024-11-12 07:09:51
Score: 7 🚩
Natty: 5.5
Report link

I have submitted my app for production but today no hope it has been 2 month..still it is in review state ..could any one help me to ressolve on it..Im not able to reach the customer support also even..

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): could any one help me
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: vidhya

79180088

Date: 2024-11-12 07:09:51
Score: 1.5
Natty:
Report link

Please refer to the same issue on GitHub: No module named 'PyPDF2' .

pypdf2 is deprecated, replaced by pypdf.

https://github.com/py-pdf/pypdf/issues/456#issuecomment-2071363332

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

79180085

Date: 2024-11-12 07:09:51
Score: 3
Natty:
Report link

sudo dnf install python-pip pip --version ( this will point you to default python which is py3.9 in AL2023)

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

79180084

Date: 2024-11-12 07:08:48
Score: 10.5 🚩
Natty: 6.5
Report link

Facing the same problem version 0.2.2 also didnt work Unhandled Exception: Exception: videoQuality cannot be empty any solutions?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Pawan Ghimire

79180076

Date: 2024-11-12 07:04:48
Score: 1.5
Natty:
Report link

In the end, I put this line of code unset DOCKER_HOST in my bashrc.

But I do not think it's the right solution, thus I'm not going to accept this answer as the correct one.

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

79180073

Date: 2024-11-12 07:03:47
Score: 4
Natty:
Report link

I was trying to upload pic on my cms but after some attempts I receive maximum request length exceeded. I am requesting you please solve my problem

Reasons:
  • RegEx Blacklisted phrase (1): I am requesting you please
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Zain Ali

79180071

Date: 2024-11-12 07:02:47
Score: 3.5
Natty:
Report link

Close your app and run again. I think its work

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

79180070

Date: 2024-11-12 07:02:47
Score: 2
Natty:
Report link

I'm the creator of Skifta a tool that might suit your needs. It’s a CLI tool that makes it simple to apply transformations directly to fields in SQL files before you share the dump. You can keep the same field lengths too, so no issues with overflow. Just configure the fields you want obfuscated, and Skifta handles the rest. Makes it pretty easy to mask things up without breaking the data structure.

Check it out here.

Reasons:
  • Blacklisted phrase (0.5): Check it out
  • No code block (0.5):
  • Low reputation (1):
Posted by: emilsivervik

79180063

Date: 2024-11-12 06:56:46
Score: 4
Natty:
Report link

Follow this link: https://github.com/prettier/eslint-plugin-prettier, to get to the eslint-plugin-prettier GitHub repository and you'll find the solution and the reason why this is happening in the README file. Best of luck 🤞

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nyochembeng Nkengafack

79180049

Date: 2024-11-12 06:52:45
Score: 0.5
Natty:
Report link

I have added an extra option rust-analyzer.rustfmt.extraArgs to my settings.json file:

{
  "[rust]": {
    "editor.inlayHints.enabled": "offUnlessPressed",
    "editor.defaultFormatter": "rust-lang.rust-analyzer",
    "editor.formatOnSave": true
  },
  "rust-analyzer.rustfmt.extraArgs": ["+nightly"]
}

Now it works as I expect it - file saving applies formatting according with style_edition, imports_granularity, group_imports and other nightly options from a rustfmt.toml.

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

79180048

Date: 2024-11-12 06:52:45
Score: 2
Natty:
Report link

What is important is what structure the backend returns the error to you, what you need to do is to first understand the structure of the error and log it, and after seeing the log field, save it in a signal (or variable) and Use it. for example:

.subscribe({
  next: () => {
   //When backend is happy!
  },
  error: (error : HttpErrorResponse) => {
    console.log(error.error)
    this.errorMessage.set(error.error.message)
  }
})

Maybe this will help you too!

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What is
  • Low reputation (1):
Posted by: Aria

79180035

Date: 2024-11-12 06:47:44
Score: 4
Natty:
Report link

Issues Resolved API required a query parameter of client id.

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

79180030

Date: 2024-11-12 06:45:43
Score: 1.5
Natty:
Report link

anyone is working on aws managed service flink kerberos authentication using pyflink in python i am getting this error log in the dashboard 2024-11-12 11:57:36 org.apache.flink.runtime.JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:138) at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:82) at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:309) at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:299) at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:290) at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:792) at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:79) at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:452) at jdk.internal.reflect.GeneratedMethodAccessor143.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.lambda$handleRpcInvocation$1(AkkaRpcActor.java:304) at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:83) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:302) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:217) at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:78) at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:163) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20) at scala.PartialFunction.applyOrElse(PartialFunction.scala:123) at scala.PartialFunction.applyOrElse$(PartialFunction.scala:122) at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580) at akka.actor.ActorCell.invoke(ActorCell.scala:548) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:823) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:665) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:646) at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:626) at org.apache.flink.streaming.connectors.kafka.internals.KafkaPartitionDiscoverer.initializeConnections(KafkaPartitionDiscoverer.java:55) at org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer.open(AbstractPartitionDiscoverer.java:94) at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.open(FlinkKafkaConsumerBase.java:574) at org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:34) at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.open(AbstractUdfStreamOperator.java:100) at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:107) at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:700) at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$SynchronizedStreamTaskActionExecutor.call(StreamTaskActionExecutor.java:100) at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:676) at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:643) at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:953) at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:922) at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:746) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:568) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: Unable to obtain password from user

at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:184)
at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:192)
at org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:81)
at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:105)
at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:737)
... 18 more

Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user

at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:877)
at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:740)
at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:592)
at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:747)
at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:672)
at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:670)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:670)
at java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:581)
at org.apache.kafka.common.security.authenticator.AbstractLogin.login(AbstractLogin.java:60)
at org.apache.kafka.common.security.kerberos.KerberosLogin.login(KerberosLogin.java:103)
at org.apache.kafka.common.security.authenticator.LoginManager.<init>(LoginManager.java:62)
at org.apache.kafka.common.security.authenticator.LoginManager.acquireLoginManager(LoginManager.java:105)
at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:170)
... 22 more

main causing issue is Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user

Reasons:
  • Blacklisted phrase (1): i am getting this error
  • RegEx Blacklisted phrase (1): i am getting this error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shaik tangeda chinna baji

79180028

Date: 2024-11-12 06:45:41
Score: 11.5 🚩
Natty: 5.5
Report link

I also have the same problem, have you solved it ?

Reasons:
  • Blacklisted phrase (2): have you solved it
  • RegEx Blacklisted phrase (1.5): solved it ?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I also have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Đậu Thái Công

79180009

Date: 2024-11-12 06:36:38
Score: 3
Natty:
Report link

Use in build function like

date_format($eachNotification->created_at,'d-M-Y');

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

79180006

Date: 2024-11-12 06:35:38
Score: 4.5
Natty: 4.5
Report link

May I ask where you called this method? Did I write it the same as you or did it encounter an error

Reasons:
  • Blacklisted phrase (1): May I ask
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 长脸乔帮主

79180002

Date: 2024-11-12 06:34:35
Score: 6 🚩
Natty: 4
Report link

hi im facing this issue where it seems stucks somehow, do u have any idea ? it shows : Prepared 2862 of 2873 files for committing to GitHub.

and stucks few hours already

Reasons:
  • RegEx Blacklisted phrase (2.5): do u have any
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28253329

79179995

Date: 2024-11-12 06:31:34
Score: 1
Natty:
Report link

R is imported with the following structure. {namespace}.R you can find the namespace in the gradle module app.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyễn Mạnh Cường

79179989

Date: 2024-11-12 06:28:34
Score: 1
Natty:
Report link
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Chatbot in JavaScript | CodingNepal</title>
    <link rel="stylesheet" href="style.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Google Fonts Link For Icons -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,400,1,0" />
    <script src="script.js" defer></script>
  </head>
  <body>
    <button class="chatbot-toggler">
      <span class="material-symbols-rounded">mode_comment</span>
      <span class="material-symbols-outlined">close</span>
    </button>
    <div class="chatbot">
      <header>
        <h2>Chatbot</h2>
        <span class="close-btn material-symbols-outlined">close</span>
      </header>
      <ul class="chatbox">
        <li class="chat incoming">
          <span class="material-symbols-outlined">smart_toy</span>
          <p>Hi there <br>How can I help you today?</p>
        </li>
      </ul>
      <div class="chat-input">
        <textarea placeholder="Enter a message..." spellcheck="false" required></textarea>
        <span id="send-btn" class="material-symbols-rounded">send</span>
      </div>
    </div>

  </body>
</html>

<style>

/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #E3F2FD;
}
.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #724ae8;
  transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}
.chatbot-toggler span {
  color: #fff;
  position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
              0 32px 64px -48px rgba(0,0,0,0.5);
  transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chatbot header {
  padding: 16px 0;
  position: relative;
  text-align: center;
  color: #fff;
  background: #724ae8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
}
.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}
.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #724ae8;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: 0.95rem;
  background: #724ae8;
}
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
}
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
}
.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
}
.chat-input span {
  align-self: flex-end;
  color: #724ae8;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
}
</style>

<script>
const chatbotToggler = document.querySelector(".chatbot-toggler");
const closeBtn = document.querySelector(".close-btn");
const chatbox = document.querySelector(".chatbox");
const chatInput = document.querySelector(".chat-input textarea");
const sendChatBtn = document.querySelector(".chat-input span");

let userMessage = null; // Variable to store user's message
const inputInitHeight = chatInput.scrollHeight;

// API configuration
const API_KEY = "PASTE-YOUR-API-KEY"; // Your API key here
const API_URL = `https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=${API_KEY}`;

const createChatLi = (message, className) => {
  // Create a chat <li> element with passed message and className
  const chatLi = document.createElement("li");
  chatLi.classList.add("chat", `${className}`);
  let chatContent = className === "outgoing" ? `<p></p>` : `<span class="material-symbols-outlined">smart_toy</span><p></p>`;
  chatLi.innerHTML = chatContent;
  chatLi.querySelector("p").textContent = message;
  return chatLi; // return chat <li> element
}

const generateResponse = async (chatElement) => {
  const messageElement = chatElement.querySelector("p");

  // Define the properties and message for the API request
  const requestOptions = {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ 
      contents: [{ 
        role: "user", 
        parts: [{ text: userMessage }] 
      }] 
    }),
  }

  // Send POST request to API, get response and set the reponse as paragraph text
  try {
    const response = await fetch(API_URL, requestOptions);
    const data = await response.json();
    if (!response.ok) throw new Error(data.error.message);
    
    // Get the API response text and update the message element
    messageElement.textContent = data.candidates[0].content.parts[0].text.replace(/\*\*(.*?)\*\*/g, '$1');
  } catch (error) {
    // Handle error
    messageElement.classList.add("error");
    messageElement.textContent = error.message;
  } finally {
    chatbox.scrollTo(0, chatbox.scrollHeight);
  }
}

const handleChat = () => {
  userMessage = chatInput.value.trim(); // Get user entered message and remove extra whitespace
  if (!userMessage) return;

  // Clear the input textarea and set its height to default
  chatInput.value = "";
  chatInput.style.height = `${inputInitHeight}px`;

  // Append the user's message to the chatbox
  chatbox.appendChild(createChatLi(userMessage, "outgoing"));
  chatbox.scrollTo(0, chatbox.scrollHeight);

  setTimeout(() => {
    // Display "Thinking..." message while waiting for the response
    const incomingChatLi = createChatLi("Thinking...", "incoming");
    chatbox.appendChild(incomingChatLi);
    chatbox.scrollTo(0, chatbox.scrollHeight);
    generateResponse(incomingChatLi);
  }, 600);
}

chatInput.addEventListener("input", () => {
  // Adjust the height of the input textarea based on its content
  chatInput.style.height = `${inputInitHeight}px`;
  chatInput.style.height = `${chatInput.scrollHeight}px`;
});

chatInput.addEventListener("keydown", (e) => {
  // If Enter key is pressed without Shift key and the window 
  // width is greater than 800px, handle the chat
  if (e.key === "Enter" && !e.shiftKey && window.innerWidth > 800) {
    e.preventDefault();
    handleChat();
  }
});

sendChatBtn.addEventListener("click", handleChat);
closeBtn.addEventListener("click", () => document.body.classList.remove("show-chatbot"));
chatbotToggler.addEventListener("click", () => document.body.classList.toggle("show-chatbot"));
</script>
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (0.5): Hi there
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28253223

79179988

Date: 2024-11-12 06:27:33
Score: 1
Natty:
Report link

1.TempData in Partial Views: TempData is typically used to store data for the next request, but it might not work seamlessly with partial views because partial views don't trigger a full request cycle. In this case, the TempData values are not getting carried over to the partial view as expected.

2.Toastr.js Message Not Displaying: Since the animation is showing but no message is being rendered, it likely indicates that the JavaScript code is not properly handling or displaying the message content.

3.Unable to Edit Data in Index.cshtml with TempData: TempData is not persisting the ID properly for your edits in Index.cshtml, which may point to an issue with how data is passed or how the page lifecycle works with partial views.

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

79179986

Date: 2024-11-12 06:27:33
Score: 0.5
Natty:
Report link

def url_validator(url: str) -> bool: """ use this func to filter out the urls to follow only valid urls :param: url :type: str :return: True if the passed url is valid otherwise return false :rtype: bool """

#the following regex is copied from Django source code 
# to validate a url using regax

regex = re.compile(
    r"^(?:http|ftp)s?://"  # http:// or https://
    r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|"  # domain...
    r"localhost|"  # localhost...
    r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"  # ...or ip
    r"(?::\d+)?"  # optional port
    r"(?:/?|[/?]\S+)$",
    re.IGNORECASE,
)


blocked_sites: list[str] = []

for site in blocked_sites:
    if site in url or site == url:
        return False

# if none of the above then ensure that the url is valid and then return True otherwise return False
if re.match(regex, url):
    return True

return False
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28253206

79179976

Date: 2024-11-12 06:21:31
Score: 1.5
Natty:
Report link

In Xcode 15: Product > Test Plan > Edit Test Plan. Then update Localization section with the parameters you need.

enter image description here

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

79179974

Date: 2024-11-12 06:20:31
Score: 4
Natty:
Report link

This sample which uses Syncfusion DocIO library's mailmerge functionality, helps to achieve your requirement https://github.com/SyncfusionExamples/Mail-Merge-Examples/tree/master/Generate-order-details-of-customer.

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