79377577

Date: 2025-01-22 11:46:48
Score: 6 🚩
Natty:
Report link

Facing the same problem realized that not only adding an accent character to the body solves it, but in any part of the json message sent, so you can add the "from" block with "name" and "address" read from get user api:

  "from": {
    "emailAddress": {
      "name": "the <displayName> field from get user api",
      "address": "the <mail> field from get user api"
    }
  }

I guess the "name" field should change the alias sender in the email received but it doesn't, does not matter what you put there it is always sent with original account display name, neither using block "sender", but it solves the encoding issue and the problem posted.

If anyone knows how to change the alias name please share!

Reasons:
  • Blacklisted phrase (1): anyone knows
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): Facing the same problem
  • Low reputation (1):
Posted by: Vasco

79377573

Date: 2025-01-22 11:45:48
Score: 3.5
Natty:
Report link

implementation(libs.androidx.compose.material) - try to remove the line

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

79377565

Date: 2025-01-22 11:43:47
Score: 4
Natty:
Report link

Can you show the definition for your profiles table? I also ran into issues when setting triggers up and it ended up being something small that just needed to be tweaked.

if you check the logs it will usually throw an error you can see what it's complaining about. If you want, you can adjust the function to log an error so you can see what the problem is.

CREATE OR REPLACE FUNCTION handle_new_user() RETURNS trigger AS $$
BEGIN
    INSERT INTO profiles (id, full_name, avatar_url)
    VALUES (
        new.id, 
        new.raw_user_meta_data->>'full_name', 
        new.raw_user_meta_data->>'avatar_url'
    )
    ON CONFLICT (id) DO NOTHING;  -- This will ignore the insert if the id already exists

    RETURN NEW;
EXCEPTION
    WHEN OTHERS THEN
        RAISE WARNING 'An error occurred while handling the new user: %', SQLERRM;
        RETURN NEW;
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;

CREATE TRIGGER on_auth_user_created
AFTER INSERT ON auth.users
FOR EACH ROW EXECUTE PROCEDURE handle_new_user();

There's no reason why the code above shouldn't work as long as you have a profiles table with an id, full_name and avatar_url field. If its still not working then definitely check the logs to see why.

Hope this helps!

Reasons:
  • Blacklisted phrase (2): still not working
  • Whitelisted phrase (-1): Hope this helps
  • RegEx Blacklisted phrase (2.5): Can you show
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: cheekyprogrammer

79377554

Date: 2025-01-22 11:39:46
Score: 2
Natty:
Report link

I was also facing similar problem even after fixing the Ratios of the videos. You need to change the iframe width and level settings to keep up with the right angle proportion for vertical videos. I find a plugin which is completely free on WordPress called YT Portrait Video Embed, which instantly fixed it. It resolves layout and compatibility issues, ensuring there’s no extra blank space around the videos. By doing this, you can remove the black boxes that appear on both sides.

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

79377551

Date: 2025-01-22 11:38:46
Score: 0.5
Natty:
Report link

After I realized that the fade offcanvas-backdrop show element exists twice in the DOM, this thread give me a hint to solve the problem:

Bootstrap Offcanvas fade duplicating between different parts of the site?

I removed the import "bootstrap/dist/js/bootstrap.bundle.js"; from my index.js and now it works as expected. Now, I just import "bootstrap/dist/css/bootstrap.min.css"; and the import 'bootstrap-icons/font/bootstrap-icons.css'; and for sure the react-bootstrap components I am using.

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

79377544

Date: 2025-01-22 11:37:45
Score: 1.5
Natty:
Report link

If your issue isn't still fixed try updating the package. I also faced similar issue, that the call incoming is not showing when app is terminated. The issue is fixed when I updated the package to '2.5.0'. Clone the example project they provided in their repository and run with the latest version. Then the issue will be fixed, and now you can copy the code that you needed.

flutter_callkit_incoming

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

79377535

Date: 2025-01-22 11:35:44
Score: 9
Natty: 7.5
Report link

Any update on this im also facing the same issue?

Reasons:
  • Blacklisted phrase (1): update on this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): also facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Suryateja Kandukuru

79377524

Date: 2025-01-22 11:31:43
Score: 1
Natty:
Report link

As I have already mentioned elsewhere, just because you can perform an automatic merge, it does not mean you should do it. Automatic merges can create bugs unless you methodically check merge results. I have found checking after the merge is not as straight forward as checking when the merge is being performed. Working as a merge/release manager, I saw bugs generated with automatic merges and so generally manually merged, checking each difference before moving on. Turning off automatic merging should be a simple feature to add to SVN rather than having to perform tricks to achieve this.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: K. Jensen

79377522

Date: 2025-01-22 11:30:42
Score: 7 🚩
Natty: 4
Report link

Have you been able to find a solution? I'm facing the same issue, and the process of obtaining even basic information has been extremely frustrating. So far, working with the LinkedIn API has been the most challenging experience I've encountered

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leees

79377520

Date: 2025-01-22 11:29:41
Score: 3.5
Natty:
Report link

what if we use the save(user) method; and the dangerous code will be in one of the fields of this object

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what if we use the
  • Low reputation (1):
Posted by: Dany D. Mkhamkha

79377518

Date: 2025-01-22 11:28:41
Score: 2
Natty:
Report link

Oauth usually calls a URL on your site after a successful login.

If that is the case, you can either pass extra parameters to the OAuth service, or make different success URLS, or even check the referrer or IP address of the OAuth service providing the callback.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: John O' Mill

79377515

Date: 2025-01-22 11:25:40
Score: 4
Natty:
Report link

In this example, S={s,a} and S'={s,a,b,c} are min-cuts, but via bfs/dfs as you offered, b and d vertices are unreachable because the cost of edge (a,b) = 0.

enter image description here

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

79377509

Date: 2025-01-22 11:23:39
Score: 1
Natty:
Report link

You can use the Truncate option in Catalyst Datastore to delete all records in a specific table. This allows you to remove all the data from the table in the Catalyst console. You can find the help documentation here for the same.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sakthivel B

79377498

Date: 2025-01-22 11:20:37
Score: 9 🚩
Natty: 5.5
Report link

Hey did you found solution to this?

Reasons:
  • RegEx Blacklisted phrase (3): did you found solution to this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: VIshal Kalbi

79377497

Date: 2025-01-22 11:19:36
Score: 2
Natty:
Report link

In WordPress, making an AJAX request is slightly different due to the way the platform handles backend requests. Let's walk through an example where we perform an AJAX request in a WordPress blog post to fetch a "Hello World" message using the WordPress AJAX API.


Here is full code just read and you can copy past - https://sknetking9.blogspot.com/2021/03/how-to-call-ajax-in-wordpress.html

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

79377486

Date: 2025-01-22 11:18:36
Score: 3.5
Natty:
Report link

but do not confuse "mutating a prop" with "mutating an object property of a prop", see https://github.com/orgs/vuejs/discussions/9256?sort=old#discussioncomment-9606035 - the entire discussion is well worth reading

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

79377484

Date: 2025-01-22 11:17:36
Score: 1.5
Natty:
Report link

Adding latest playwright dependancy solved this issue

<dependency>
    <groupId>com.microsoft.playwright</groupId>
    <artifactId>playwright</artifactId>
    <version>1.49.0</version>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Prasa

79377457

Date: 2025-01-22 11:10:35
Score: 2
Natty:
Report link

I needed to set the extension's path in setting.json:

"sqlfluff.env.environmentVariables": [
        {
            "key": "PATH",
            "value": "/Users/nir/venvs/python/bin/"
        }
    ]
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nir

79377455

Date: 2025-01-22 11:09:34
Score: 1
Natty:
Report link

The error is from the python formatter Black which does not support the Format Selection command.

You can switch to the PEP8 or yapf formatter which will not give you the error. In Visual Studio go to Tools -> Options -> Text Editor -> Python -> Formatting. Select autopep8 or yapf and when you use it the first time accept the installer.

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

79377449

Date: 2025-01-22 11:07:34
Score: 1
Natty:
Report link

The response is in the first error message: "You are trying to install ruby-2.3.1 on heroku-18" and it should be on heroku-16.

Set stack to heroku-16 with follow instruction:

dokku buildpacks:set-property my-app stack gliderlabs/herokuish:latest-16
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Moros

79377445

Date: 2025-01-22 11:06:34
Score: 0.5
Natty:
Report link

When dealing with components of important dimensions the best practice is to try and implement lazy loading techniques or, as Estus Flask pointed out, using AsyncComponents.

Using the following portion of code allows you to load a component as soon as possible so rendering time is not directly affected by the internet connection.

import { defineAsyncComponent } from 'vue'

const AsyncComp = defineAsyncComponent(() =>
  import('./components/MyComponent.vue')
)

Of course it might still happen the internet connection is so poor that the user will experience excessive loading time.
More infos at https://vuejs.org/guide/components/async.

To improve the user experience ui/ux best practices suggest also to use spinners or skeletons (https://learnvue.co/articles/vue-skeleton-loading), as kissu pointed out in his comment.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: hello-there-general-kenobi

79377431

Date: 2025-01-22 11:00:32
Score: 1
Natty:
Report link

My problem was with PopScope. It was fixed when I added the "if (!didpop)" control.

PopScope(
  canPop: false,
  onPopInvokedWithResult: (didPop, result) {
    if (!didPop) goBack();
  },
  child: Scaffold(...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kargalar

79377426

Date: 2025-01-22 10:58:32
Score: 2.5
Natty:
Report link

cd android ./gradlew clean ./gradlew --stop Then, go back to the root directory of your project and run: npx react-native run-android

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

79377425

Date: 2025-01-22 10:58:32
Score: 2.5
Natty:
Report link

just use this import { ChakraProvider } from "@chakra-ui/provider"; instead of this import { ChakraProvider } from "@chakra-ui/react";

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

79377421

Date: 2025-01-22 10:56:31
Score: 4
Natty:
Report link

use this IP - http://10.0.2.2/,

instead of http://localhost/ and http://127.0.0.1/

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

79377418

Date: 2025-01-22 10:52:30
Score: 1
Natty:
Report link

Use overflow: hidden as a Fallback

overflow: hidden is better supported across browsers and will work similarly to overflow: clip.

CSS

.crop {
  position: relative;
  height: 23px; 
  border: 2px solid black; 
  overflow: hidden; 
}

.crop td {
  position: absolute;
  top: 0; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ComeToMe

79377417

Date: 2025-01-22 10:51:30
Score: 0.5
Natty:
Report link

This will protect you from replay-attack. Lack of such implementation will allow an attacker to successfully authenticate as many times as he wish, until the passkey for which a request was compromised is revoked on 'server' side.

This is why standard requires you:

  1. challenge:
    • MUST be randomly generated by Relying Parties in an environment they trust (e.g., on the server-side)
    • MUST contain enough entropy to make guessing them infeasible
    • SHOULD therefore be at least 16 bytes long
  2. returned challenge value in the client’s response MUST match what was generated [on the server side]
  3. This SHOULD be done in a fashion that does not rely upon a client’s behavior, e.g., the Relying Party SHOULD store the challenge temporarily until the operation is complete.
  4. Tolerating a mismatch will compromise the security of the protocol.

See https://www.w3.org/TR/webauthn/#sctn-cryptographic-challenges

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

79377415

Date: 2025-01-22 10:51:30
Score: 2.5
Natty:
Report link

Thanks to the comment from @mr-mcwolf , setting the parameter max_age=0, the cookie "cookie1" can be removed as follows:

from fasthtml import common as fh 
app = fh.FastHTML

@app.get("/removecookie1")
def getdbpools(req):
    return fh.cookie(key='cookie1', value='', max_age=0)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mr-mcwolf
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ximo Dante

79377412

Date: 2025-01-22 10:49:29
Score: 3
Natty:
Report link

just in powershell wiondow :

$env:NODE_OPTIONS =""

it well done for me

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

79377408

Date: 2025-01-22 10:48:29
Score: 0.5
Natty:
Report link

use the following code

Forms\Components\FileUpload::make('images')
    ->label('Images')
    ->disk('public')
    ->directory('images')
    ->multiple() //mutiple to show multi images
    ->required()
    ->visibility('public')
    ->storeFileNamesIn('images'),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ivan of uganda

79377378

Date: 2025-01-22 10:39:26
Score: 3
Natty:
Report link

While logging if I change the timezone then I do not get updated time in the log if the service is already running

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

79377376

Date: 2025-01-22 10:38:26
Score: 0.5
Natty:
Report link

Things have changed (again) with Qt 6

We are now in Qt 6 and things have changed, so the documentation. It gives a clear and different answer (again) to this question:

QList is one of Qt's generic container classes. It stores its items in adjacent memory locations and provides fast index-based access. QVector used to be a different class in Qt 5, but is now a simple alias to QList.

QList and QVarLengthArray provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:

• QList should be your default first choice.

• QVarLengthArray provides an array that reserves space on the stack, but can dynamically grow onto the heap if required. It's good to use for short lived containers that are usually small.

• If you need a real linked list, which guarantees constant time insertions mid-list and uses iterators to items rather than indexes, use std::list.

Note: QList and QVarLengthArray both guarantee C-compatible array layout.

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

79377370

Date: 2025-01-22 10:37:26
Score: 1.5
Natty:
Report link

try application_args=["path/to/.env"] instead of the files = "path/to/.env" in the sparkSubmitOperator.

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

79377366

Date: 2025-01-22 10:36:25
Score: 4.5
Natty: 5
Report link

Check the provision profile expiration date https://developer.apple.com/account/resources/profiles/list

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

79377364

Date: 2025-01-22 10:35:25
Score: 3
Natty:
Report link

you can make perfect video in just one click by given the contect this website will make video as per script. Free login

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

79377345

Date: 2025-01-22 10:30:24
Score: 2.5
Natty:
Report link

Change the URL https to http in remotes. It works for me

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rajesh Nakkanaboina

79377339

Date: 2025-01-22 10:28:23
Score: 1.5
Natty:
Report link

As @coldbreathe suggested in another answer, the most straightforward way seems to be annotating the handler function instead:

<script lang="ts">
  import type { EventHandler } from "svelte/elements";

  const handleSubmit: EventHandler<SubmitEvent, HTMLFormElement> =
    function (event) {
      const data = new FormData(event.currentTarget);
      // event.currentTarget will have type HTMLFormElement here
    };
</script>

<form on:submit|preventDefault={handleSubmit}>
  <!-- ... -->
</form>

EventHandler<E, T> here basically says that event will have type E and event.currentTarget will have type T. Here’s the actual definition:

type EventHandler<E extends Event = Event, T extends EventTarget = Element> = (
    event: E & { currentTarget: EventTarget & T }
) => any;

Why currentTarget and not just target?

EventHandler annotation doesn’t doesn’t change type of event.target – that’s because it could have bubbled from an element of any another type. It’s not something that should ever occur with SubmitEvent in particular, but for other events it’s possible.

Rule of thumb: for consistency, just use currentTarget, unless you need target for some reason.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @coldbreathein
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: Ale

79377335

Date: 2025-01-22 10:27:22
Score: 0.5
Natty:
Report link

Based on ti7's very helpful answer I've slightly modified their solution so that the replacement Pow(a,b) -> a happens for any type Binary symbol, regardless of a being inside an IndexedBase or just a Symbol. After all, the identity x**n==x holds for either.

from sympy import *

class Binary(Symbol):
    '''Empty class for tagging variables as binary'''
    pass

def simplify_binary_powers(expr):
    '''
    Remove exponents of binary variables by replacing Pow(type(Binary),b) 
    for type(Binary).
    '''
    a = Wild("a", properties=[lambda a: a.atoms(Binary)])
    b = Wild("b", properties=[lambda b: isinstance(b, Number)])
    return expr.replace(Pow(a, b), lambda a, b: a)

Works for IndexedBase:

x = IndexedBase(Binary("x"), integer=True)
expr = x[0,0]**3 + x[1,0]**2 + x[2,0]
print(simplify_binary_powers(expr))

Output: x[0, 0] + x[1, 0] + x[2, 0]

and also works for a single Binary variable:

y = Binary('y')
expr2 = y**3
print(simplify_binary_powers(expr2))

Output: y

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

79377327

Date: 2025-01-22 10:25:22
Score: 2
Natty:
Report link

Try using preload strategy, this might help you with your problem. If your application initial load takes less than 10 to 15 mb of resources then I suggest you to use angular's built-in preloadAllModules strategy in the app.config.ts file .

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

79377309

Date: 2025-01-22 10:20:21
Score: 1.5
Natty:
Report link

I had the exact same experience with a Raspberry Pi 4. However I found somewhat of an solution. Compiling directly on to Raspberry Pi and using the Appimage worked for me. However the deb package for example had the exact same issue with the UI not rendering correctly like you described.

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

79377308

Date: 2025-01-22 10:19:21
Score: 2
Natty:
Report link

As @Adirio said in a comment, you can simply use the built-in function isdisjoint (available from version 2.6):

def myfunc(a,b):
    return not a.isdisjoint(b)

I'm assuming you want to return False when the intersection between a and b is empty, otherwise just remove the not.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Adirio
  • Low reputation (1):
Posted by: TomeMD

79377306

Date: 2025-01-22 10:18:20
Score: 1.5
Natty:
Report link

v-list adds the class bg-transparent. This adds a style of background-color: transaparent !important.

I have also had this issue when using the v-list in a navbar. Meaning if you set a color for the background it will not be visible unless your added class overrides the default using !important or an id, or multiple selectors such as .v-list .my-background { background-color: red !important }.

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

79377305

Date: 2025-01-22 10:18:20
Score: 0.5
Natty:
Report link

You need to strip the string and call the title method, here is a simplified method assuming you do not want to keep the whitespaces.

s = "\n\n\n\n first letter is to be capital"

sTitle = s.strip()

print(sTitle.title()) #First Letter Is To Be Capital
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Melvin Kosisochukwu

79377292

Date: 2025-01-22 10:14:20
Score: 2.5
Natty:
Report link

I can't comment yet. My comment on @Barafu Albino

export SUDO_EDITOR='"/mnt/c/Users/vanba/AppData/Local/Programs/Microsoft VS Code/bin/code" --remote wsl+Ubuntu-22.04 -w'
sudo -e file
Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nguyen Van Bang

79377287

Date: 2025-01-22 10:13:19
Score: 3
Natty:
Report link

for my case it was because of the argocd-secret (oidc.keycloak.clientSecret) that is not well configured in the confgMap.

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

79377274

Date: 2025-01-22 10:11:19
Score: 0.5
Natty:
Report link
  1. Use a regular expression
  2. Find the first word-class character
  3. Uppercase it
>>> import re
>>> s = "\n\n\n\n first letter is to be capital"
>>> re.sub(r"\w", lambda a: a.group().upper(), s, 1)
'\n\n\n\n First letter is to be capital'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shaheed Haque

79377273

Date: 2025-01-22 10:10:18
Score: 1.5
Natty:
Report link

Use crontab.

As root give the following following command:
$ crontab -e

This opens the crontab editor of your choice. Enter the following in that:
@reboot echo 2 > /sys/module/hid_apple/parameters/fnmode

Save and exit the editor. Your setting will be done on each reboot. Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @reboot
  • Low reputation (0.5):
Posted by: SimpleProgrammer

79377269

Date: 2025-01-22 10:10:18
Score: 3
Natty:
Report link

Have you created a l10n.yaml file ?

arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: imGok

79377265

Date: 2025-01-22 10:08:18
Score: 2.5
Natty:
Report link

Not sure what the awnser was to our problem. But we checked the NPM/Yarn package and there were 2 .lock.x files. We cleaned everything and we created a new build and it worked.

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

79377255

Date: 2025-01-22 10:06:17
Score: 1
Natty:
Report link
dictionary3={}
for element7 in range(int(input())):
    dictionary3[input()]=input[]
for element5 in dictionary3:
    print({element5:dictionary3[element5]})

The number we type is a string, and it should be converted into an integer because it causes an error.

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

79377239

Date: 2025-01-22 09:59:15
Score: 1
Natty:
Report link

What you want to achieve can be done with the following script

{% set n = 3 %}
{% for i in range(n): %}
  {% if i == 0 %}
    SELECT {{i}}
  {% else %}
    UNION ALL SELECT {{i}}
  {% endif %}
{% endfor %}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Letsios Matthaios

79377235

Date: 2025-01-22 09:58:15
Score: 3
Natty:
Report link

Go to google payments profile for that google account and make sure that the card has been verified. A small charge will be made and then after verification it will be refunded.

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

79377225

Date: 2025-01-22 09:56:15
Score: 1
Natty:
Report link

I think i have got the answer from xnio source code.

    synchronized(this.workLock) {
        this.selectorWorkQueue.add(command);
        Log.log.tracef("Added task %s", command);
    }

the problem will occur like these steps:

first, virutal thread A call the log method of logback(which use ReentrantLock), wait for io finish, it umounted from the os thread(from ForkJoinPool).

other virtual thread call the code above to close a socket, the key word "synchronized" caused ForkJoinPool thread been held by virtual thread.

virutal thread A finished it's io work and want to realese the log lock, but there is not available os thread in ForkJoinPool to execute.

why ForkJoinPool did not expand it's pool size? i guess the accept thread was waiting for log lock, so there is no more virutal thread been submitted

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tao ye

79377221

Date: 2025-01-22 09:55:14
Score: 3
Natty:
Report link

You can try and use this article with the specified extension it it.

https://armno.in.th/blog/change-vs-code-sidebar-font/

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Tanasos

79377210

Date: 2025-01-22 09:53:14
Score: 1
Natty:
Report link

To try the latest tarball with support from the vendor in question might be a nice idea, yes. With regard to the most recent compilation errors (a warning about some kind of function being implicitly defined, -- as stated in the comment), -- please consider either to edit the OP to add the build log so we could talk sense or to post a new question with these details: the tarball/repository and version used + commands ran in the terminal that are known to produce such output. Otherwise, it's quite hard to guess which function that might be that is implicitly defined.

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

79377209

Date: 2025-01-22 09:52:13
Score: 0.5
Natty:
Report link

If you are just trying to filter out errors then this should work fine:

=FILTER(MyDatatable; ISERROR(MyDatatable[column2])=FALSE)

Reasons:
  • Whitelisted phrase (-2): this should work
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Drew Pavitt

79377204

Date: 2025-01-22 09:50:12
Score: 3
Natty:
Report link

I was fix them by disable create ForeignKeyConstraint automatically. enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hieu.Gi

79377200

Date: 2025-01-22 09:48:12
Score: 3.5
Natty:
Report link

You can revive a proper answer reading this Blog about installing Appium and Appium inspector.

Link

Reasons:
  • Blacklisted phrase (1): this Blog
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Partik Chandra

79377196

Date: 2025-01-22 09:47:11
Score: 5
Natty:
Report link

How many database calls will the solution mentioned by @Pratheesh PC will make

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Pratheesh
  • Single line (0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Anshul

79377194

Date: 2025-01-22 09:47:11
Score: 0.5
Natty:
Report link

Thanks for your answers, the idea is indeed running the package synchronously and also ending with a query to extract the treatment's status (instead of ending with a systematic success), the query is as follows :

IF 7 <> (SELECT [status] FROM [SSISDB].[catalog].[executions] WHERE execution_id = @executionID)
BEGIN
declare @var_log nvarchar(1000)
select top 1 @var_log = message from [SSISDB].[catalog].[event_messages] where operation_id = @executionID and event_name = 'OnError'
RAISERROR(@var_log, 16, 1)
END

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: blofeld _

79377182

Date: 2025-01-22 09:42:10
Score: 1.5
Natty:
Report link

The best way to automate testing of AI algorithms is by using continuous integration (CI) tools combined with AI-specific testing frameworks like TensorFlow Model Analysis or PyTest for model validation. These tools can automatically run tests on code changes, performance, and accuracy.

Additionally, AI testing services can enhance automation by providing automated bias checks, robustness testing, and adversarial input analysis to ensure your AI models are reliable and secure at scale.

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

79377157

Date: 2025-01-22 09:34:08
Score: 1
Natty:
Report link
DECLARE v_result, v_word VARCHAR(2000) DEFAULT '';
FOR i IN 1..length(p_string) + 1 - length(replace(p_string, ' ', '')) -- word count
DO
    SET v_word = ifnull(SUBSTRING_INDEX(SUBSTRING_INDEX(p_string, ' ', i), ' ', -1), '');
    SET v_result = CONCAT(v_result, ' ', UPPER(SUBSTR(v_word, 1, 1)), LOWER(SUBSTR(v_word, 2)));
END FOR;

RETURN v_result;
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hugues Sauzier

79377144

Date: 2025-01-22 09:30:06
Score: 1.5
Natty:
Report link

My issue is in the installaiton, and this cmdline works for me. enter image description here

break=init is not needed. I will test whether those systemd option is necessary and edit my answer later.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jason Lee

79377139

Date: 2025-01-22 09:29:05
Score: 3.5
Natty:
Report link

You have to go into superset-frontend first and do "npm run build" to build the frontend

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nghĩa Trần

79377136

Date: 2025-01-22 09:28:05
Score: 0.5
Natty:
Report link

The difference between a primary key and a unique constraint in a database is as follows:

  1. Primary Key Purpose: Uniquely identifies each row in a table. Uniqueness: Ensures that no two rows have the same value for the primary key column(s). Null Values: Cannot contain null values. Count per Table: A table can have only one primary key. Default Index: Automatically creates a unique clustered index (in most databases).
  2. Unique Constraint Purpose: Ensures that all values in a column (or combination of columns) are unique. Uniqueness: Similar to a primary key, it ensures uniqueness but allows flexibility. Null Values: Can contain one or more null values (depends on the database). Count per Table: A table can have multiple unique constraints. Default Index: Automatically creates a unique non-clustered index.

CREATE TABLE Example ( id INT PRIMARY KEY, -- Primary key email VARCHAR(255) UNIQUE -- Unique constraint );

id is the primary key: It cannot be null, and each value must be unique. email has a unique constraint: Each value must be unique, but it can have null values.

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

79377134

Date: 2025-01-22 09:28:05
Score: 0.5
Natty:
Report link

From docs you supposed to do it like so:

class ShowPosts extends Component
{
    public function render()
    {
        return view('livewire.show-posts', [
            'posts' => Post::all(),
        ]);
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tymur Valiiev

79377133

Date: 2025-01-22 09:28:05
Score: 1.5
Natty:
Report link

I would install vcpkg and then install libxml2

vcpkg install libxml2:x64-windows
vcpkg install libxslt:x64-windows
vcpkg integrate install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexander Reichert

79377127

Date: 2025-01-22 09:25:04
Score: 3.5
Natty:
Report link

I've solved by disabling proxy (using another wifi connection)

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

79377126

Date: 2025-01-22 09:24:04
Score: 2
Natty:
Report link

phpdbg ^1 also works as you needed.

phpdbg -p='*' /app/index.php
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yihang Wang

79377121

Date: 2025-01-22 09:22:03
Score: 2.5
Natty:
Report link

found the solution by myself. Gitea needs the organisation in the tagname. So instead of the tag tags: "my.domain.com/ebooks:${{gitea.sha}}" it's needed to use the tag: "my.domain.com/organisation/ebooks:${{gitea.sha}}"

Also for the second tag

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

79377119

Date: 2025-01-22 09:22:03
Score: 1
Natty:
Report link

<netty.version>4.1.69.Final</netty.version>

does the trick for AWS S3

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

79377113

Date: 2025-01-22 09:21:03
Score: 1
Natty:
Report link
// Expand accordions
$(document).ready(function () {
    $('.accordion .collapse').collapse('show');
    $('.accordion .panel-heading').addClass('active');

    // Uncomment below if you're using AJAX
    /* $(document).ajaxComplete(function() {
            $('.accordion .collapse').collapse('show');
            $('.accordion .panel-heading').addClass('active');
    }); */
});
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28447067

79377102

Date: 2025-01-22 09:18:02
Score: 0.5
Natty:
Report link
pip install huggingface-hub==0.25.2

cached_download(), url_to_filename(), filename_to_url() methods are now completely removed. From now on, you will have to use hf_hub_download() to benefit from the new cache layout.

See: https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0

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

79377101

Date: 2025-01-22 09:18:02
Score: 0.5
Natty:
Report link

I was struggeling with the same. Three things you can try:

  1. Enherit the ITableEntity on your PersistedPerson class, Set PartitionKey, RowKey and Timestamp properties.
  2. Make sure Timestamp is in UTC time.
  3. Specify the Type in the AddEntityAsync like this: await tableClient.AddEntityAsync(persistedModel, cancellationToken);
Reasons:
  • No code block (0.5):
Posted by: nivs1978

79377100

Date: 2025-01-22 09:18:02
Score: 1.5
Natty:
Report link

This turned out to be nothing to do wiht project B. There was a project C which both B referenced. It was originally a .NET Framework 4.7.2 project and was upgraded to .NET8 using Visual Studio upgrade tool.

Creating a new .NET8 library project and moving the files in along with updating for any required .NET changes resolved the issue.

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

79377098

Date: 2025-01-22 09:17:02
Score: 2
Natty:
Report link

Use the 'filter' method to iterate through the fruit array and for each fruit, use 'some' method to check if array of its country has price of 12. By 'some' method, which return true for the match. Then use 'map' method to extract the filtered name.

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

79377091

Date: 2025-01-22 09:16:01
Score: 1
Natty:
Report link

I solved my problem by modifying the Reg according to the answer from Jothan Kelepolo. Really nice!

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

79377085

Date: 2025-01-22 09:14:01
Score: 2
Natty:
Report link
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adel Alaa

79377077

Date: 2025-01-22 09:11:00
Score: 3
Natty:
Report link

I managed to get over this error by adding the annotation to my test class: @ContextConfiguration(classes = { ScopeConfiguration.class}, initializers = ConfigDataApplicationContextInitializer.class)

I am not using @SpringJUnitConfig.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @SpringJUnitConfig
  • Low reputation (1):
Posted by: GioCio

79377068

Date: 2025-01-22 09:06:59
Score: 3
Natty:
Report link

The solution i found is to set the tab index onto the shadow root element then the next focus will be what comes inside

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

79377056

Date: 2025-01-22 09:02:58
Score: 1.5
Natty:
Report link

I have separated the subUser process into two parts:

  1. Fetching and processing the subUser data.
  2. Saving the subUser data.

For the first part, I am using a multi-threaded environment with a new transaction. This transaction is only used for fetching the data, so a rollback is not required.

In the second part, the process is completed within the original user process method. This ensures that if any error occurs, the transaction for both the subUser and the parent user is rolled back entirely.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anant Doshi

79377041

Date: 2025-01-22 08:57:56
Score: 5
Natty:
Report link

Check out this link. I will provide the solution that works for me.

https://stackoverflow.com/a/79376813/19968871

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yug Jadvani

79377040

Date: 2025-01-22 08:56:55
Score: 8 🚩
Natty: 4.5
Report link

Hey any luck? I am getting the same issue.

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bishal Niroula

79377039

Date: 2025-01-22 08:56:55
Score: 1.5
Natty:
Report link

You can use long_running_publisher in a separate thread so it process_data_events while main thread calculations https://github.com/pika/pika/blob/main/examples/long_running_publisher.py

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

79377036

Date: 2025-01-22 08:56:55
Score: 3.5
Natty:
Report link

You only need to set the key for the mcuboot child image. From my example here:

set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \"${CMAKE_CURRENT_SOURCE_DIR}/custom_key_dir/custom_priv.pem\")

I also had to set CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 in an MCUboot overlay, but that is since I used ECDSA. For RSA you would have to set the same for RSA yes, but remember to set it in child_image/mcuboot.conf or similar to set it for the child image.

Does this fix the issue?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix the issue?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sigurd Hellesvik

79377023

Date: 2025-01-22 08:49:53
Score: 1.5
Natty:
Report link
$.$merge([
    { "timestamp": timestamp },
    absoluteDeviationsX#$i{
        "absoluteDeviationsX" & $i: $
    }
])

See https://try.jsonata.org/EtmrHNM7U

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

79377014

Date: 2025-01-22 08:46:52
Score: 0.5
Natty:
Report link

Launch the Native Tools Command Prompt (accessible via the Start Menu). From here you can run:

> cmake --version
cmake version 3.29.5-msvc4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

to determine the version.


However, the version of CMake distributed with Visual Studio has patches from Microsoft. You should either install upstream CMake for use outside of the Native Tools Command Prompt, or just use the Native Tools Command Prompt.

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

79377008

Date: 2025-01-22 08:45:51
Score: 5
Natty: 5.5
Report link

i using free serverless Zilliz cloud but via java sdk, has any solution?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: java_hfchina

79376995

Date: 2025-01-22 08:42:50
Score: 2.5
Natty:
Report link

You can use this annotation to mark field as optional:

+kubebuilder:validation:Optional

https://book.kubebuilder.io/reference/markers/crd-validation

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

79376988

Date: 2025-01-22 08:39:50
Score: 2.5
Natty:
Report link

I also wanted to include different files type in a component so that I can use them in a repository when calling the compponent.. That doesn't work: the files, even the yml ones are not imported, just the CI/CD configuration is working.

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

79376971

Date: 2025-01-22 08:33:48
Score: 1
Natty:
Report link

This is perfectly possible to provide as a non-async one-liner like this (TS):

function base64ToBlob(b64Data: string, contentType?: string) {
  return new Blob([Uint8Array.from(atob(b64Data), char => char.charCodeAt(0))], { type: contentType ?? "application/octet-stream" });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fredrik Lysholm

79376969

Date: 2025-01-22 08:30:48
Score: 1
Natty:
Report link

Found a solution https://codesandbox.io/p/sandbox/festive-davinci-knwn5r

Had to de-structure the register function of react hook form and pass the ref and props separately

 const { ref, ...inputProps } = register(name);

 <Component inputRef={ref} {...inputProps} {...props} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: LoneRanger

79376936

Date: 2025-01-22 08:17:43
Score: 5
Natty:
Report link

Check out this link. I will provide the solution that works for me.

https://stackoverflow.com/a/79376813/19968871

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yug Jadvani

79376935

Date: 2025-01-22 08:17:42
Score: 6.5 🚩
Natty:
Report link

Thanks @David, i will follow this operating way.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @David
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: m.wahbi

79376915

Date: 2025-01-22 08:11:41
Score: 1.5
Natty:
Report link

I finally got to the bottom of my problem. Looks like I used the wrong Enumeration:

Source.SetProperty("format", New GLib.Value(Gst.Constants.TIME_FORMAT))

It turns out that Gst.Constants.TIME_FORMAT is actually a time format string. What I needed was:

Source.SetProperty("format", New GLib.Value(3)) ' TimeFormat

This works regardless of whether I set a timestamp on the buffers I pass to the appsrc.

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

79376911

Date: 2025-01-22 08:10:41
Score: 2
Natty:
Report link

trim_array() is there since PostgreSQL 14:

select (trim_array(array[1,2,3],1))[2:];
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is there
  • Low reputation (0.5):
Posted by: Guillaume Outters

79376909

Date: 2025-01-22 08:09:40
Score: 3.5
Natty:
Report link

This is follow on question not the answer. I am looking for the similar issue, I have everything setup and no errors in the code. I doubles check the idl file exist and I am using the

import { UserGMarket } from "../target/types/user_g_market";

and the file exist and when I run cursor on it, giving me the same file, but when I run anchor test --skip-local-validator, its giving me this error

Error: target/idl/user_g_markets.json doesn't exist. Did you run `anchor build`?

and I run many times

anchor clean and anchor build

But facing the same issue. Here is my cargo.toml file

    [package]
name = "user-g-markets"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "user_g_market"

[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []

[dependencies]
anchor-lang = "0.29.0"
anchor-spl = "0.29.0"

and here is my lib.rs file

#[program]
pub mod user_g_market {
    use super::*;

// Initialize a new market (can be called by any user)
pub fn initialize_market(
    ctx: Context<InitializeMarket>,
    id: u64,
    merkle_root: [u8; 32],
    end_time: i64,
) -> Result<()> {
    let market = &mut ctx.accounts.market;
    market.id = id;
    market.merkle_root = merkle_root;
    market.token_vault = ctx.accounts.token_vault.key();
    market.is_finalized = false;
    market.end_time = end_time;
    market.creator = *ctx.accounts.creator.key; // Store the creator's public key
    Ok(())
}

Image for making sure, you can see I have idl and type under the target folder

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (0.5):
Posted by: Sardar Ahmed Khan

79376908

Date: 2025-01-22 08:09:40
Score: 0.5
Natty:
Report link

Add dependency coil extension,

implementation("io.coil-kt.coil3:coil-gif:3.0.4")
val imageLoader = ImageLoader.Builder(context)
    .components {
        if (SDK_INT >= 28) {
            add(AnimatedImageDecoder.Factory())
        } else {
            add(GifDecoder.Factory())
        }
    }
    .build()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Santhosh Kumar

79376905

Date: 2025-01-22 08:07:40
Score: 3
Natty:
Report link

Xiaospy1 will assist you, he's the one that got my account back successfully after encountering his recovery service on "tiktok"

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

79376901

Date: 2025-01-22 08:06:40
Score: 2
Natty:
Report link

If you're using react you need to build the app for production before being deployed.

  1. npm run build

  2. Add this to the top of your package.json: "homepage": "https://.github.io/"

  3. npm run build

  4. npm install --save gh-pages

  5. Add these scripts to your json:

"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build" }

  1. npm run deploy

  2. Have a look at your deployed app 👌

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