79245013

Date: 2024-12-02 17:28:08
Score: 2
Natty:
Report link

Maybe this is new: Xcode > Settings > Text Editing Editing tab Uncheck “Predictive code completion” Might have to restart Xcode- mine crashed when i made the change (just had to restart)

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

79245009

Date: 2024-12-02 17:25:08
Score: 1
Natty:
Report link

If someone is still looking to solve this problem, you can find the answer in the description of npmjs.com : https://www.npmjs.com/package/@getbrevo/brevo

Since the v2.1.1 you have to do like this :

const brevo = require('@getbrevo/brevo');
let apiInstance = new brevo.TransactionalEmailsApi();

let apiKey = apiInstance.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';

let sendSmtpEmail = new brevo.SendSmtpEmail();
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Enzo

79245008

Date: 2024-12-02 17:25:08
Score: 1
Natty:
Report link

added this to my package.json to remove error and continue using node16

"devDependencies": {
  "serverless": "^3",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dan O

79245007

Date: 2024-12-02 17:24:07
Score: 1
Natty:
Report link

SQL query can be modified

The goal of these employees can be described as enslavement or something like that, so it should not be like this.

NOT EXISTS ( SELECT 1 FROM tbl_absent WHERE tbl_clients.specialId = tbl_absent.specialId AND '$varCurDate' BETWEEN tbl_absent.startDate AND tbl_absent.endDate )

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

79245003

Date: 2024-12-02 17:23:07
Score: 1
Natty:
Report link

Ok, searching for regex and "limiting string length" helped to find a regex pattern for checking if the length is in a set range.

And checking the length of the key only requires to split key and value, separated by a =.

These .htaccess lines work = a 403 is returned if ...

RewriteCond %{QUERY_STRING} ^(\w{1,5})=(.*)$ [NC]
RewriteRule .* - [F,L]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: nitmws

79244996

Date: 2024-12-02 17:22:07
Score: 2.5
Natty:
Report link

The OneHotEncoder does not increase the number of variables, it just creates a binary column for each category. The model becomes more complex and slow to train.
With these reduced number of variables you should take into account that too many categories may lead to overfitting

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

79244984

Date: 2024-12-02 17:19:06
Score: 0.5
Natty:
Report link

Actual way to do it, according to docs:

CSS:

@use '@angular/material' as mat;

.your-class {
    mat-spinner {
        @include mat.progress-spinner-overrides((
            active-indicator-color: orange,
        ));
    }
}

HTML:

<div class="your-class">
    <mat-spinner></mat-spinner>
</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gereon99

79244970

Date: 2024-12-02 17:15:04
Score: 1.5
Natty:
Report link

Try running ESLint manually to see if there are additional errors:

> npx eslint path/to/web3RPCProviders.test.ts
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rawa

79244968

Date: 2024-12-02 17:14:04
Score: 2.5
Natty:
Report link

tks for the response, it save me a lot of troubleshooting, maybe the issuer can accept the response!

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

79244961

Date: 2024-12-02 17:12:04
Score: 1.5
Natty:
Report link

You must use ".as()" JPA function so the "cast" is called natively.

ie with your use case:

cb.like(from.get("uuid").as(String.class), String.format("%%%s%%", stringValue));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben

79244948

Date: 2024-12-02 17:09:03
Score: 0.5
Natty:
Report link

For anyone finding this question from a search engine, if your calling element is a link, like so:

<a href="javascript:myFunction(this)">Link</a>

And if your JS looks like this:

function myFunction(caller) {
    console.log(caller);
}

Then the output will be incorrect and massive in size!

Instead use:

<a onclick="myFunction(this)">Link</a>

Then the output will be just the calling element.

See also: Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"?

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Danny Beckett

79244941

Date: 2024-12-02 17:06:02
Score: 0.5
Natty:
Report link

You probably want only C and D in your output since only C and D are on leave, rather than B,C,D? Let me know if that is correct.

Fiddle

SELECT u.userid, u.username, u.useremail, u.userphone, u.specialid
FROM users u
LEFT JOIN absent a
  ON u.userid = a.userid 
  AND CURDATE() BETWEEN a.startdate AND a.enddate  
 WHERE a.userid IS NULL; 
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: samhita

79244936

Date: 2024-12-02 17:05:01
Score: 1.5
Natty:
Report link

Why not just completely omit the href? Like so:

<a onclick="myfunction()">Link</a>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not
  • High reputation (-2):
Posted by: Danny Beckett

79244930

Date: 2024-12-02 17:03:01
Score: 1
Natty:
Report link

You have version 19.0.0-rc of React. First you need to downgrade react version to 18. Follow the steps:

npm uninstall react react-dom

then you need to install version 18.x.x of React (I prefer 18.2.0)

npm install [email protected] [email protected]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yasin Bozkurt

79244926

Date: 2024-12-02 17:02:01
Score: 0.5
Natty:
Report link

You have to use cget("font"), as John Gordon mentioned in the comments. This allows you to get any option set for the font.
This options include:

Full documentation

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

79244923

Date: 2024-12-02 17:01:00
Score: 1
Natty:
Report link

That's the best info I found: https://github.com/material-components/material-components-android/issues/4247#issuecomment-2259240962

In 1.13 alphas, you can use the minHeight attribute together with layout_height="wrap_content".

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

79244921

Date: 2024-12-02 17:01:00
Score: 2
Natty:
Report link

I struggled with this for way too long until I looked at what Netflix do. They seem to have a solid color followed by a custom splash. So I simply remove the "windowSplashScreenAnimatedIcon" and for some reason I got my splash logo anyway without the cutout.

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

79244919

Date: 2024-12-02 17:00:00
Score: 2
Natty:
Report link

Working method as of December 2024:

hj.bridge.getSessionUserId()
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: etolk

79244915

Date: 2024-12-02 16:59:00
Score: 1
Natty:
Report link

use titleExpression_eq instead of skillExpression_eq in marketPlaceJobFilter variable.

Here is the query I used:

{ "query": "query marketplaceJobPostingsSearch($marketPlaceJobFilter: MarketplaceJobPostingsSearchFilter, $searchType: MarketplaceJobPostingSearchType, $sortAttributes: [MarketplaceJobPostingSearchSortAttribute]) { marketplaceJobPostingsSearch(marketPlaceJobFilter: $marketPlaceJobFilter, searchType: $searchType, sortAttributes: $sortAttributes) { totalCount edges { node { id title description category } } pageInfo { hasNextPage endCursor } } }", "variables": { "marketPlaceJobFilter": { "titleExpression_eq": "Google Sheets OR Google Apps Script" }, "searchType": "USER_JOBS_SEARCH", "sortAttributes": [ { "field": "RECENCY" } ] } }

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

79244907

Date: 2024-12-02 16:55:59
Score: 1
Natty:
Report link

the Google Pay API on Android received an update to use the new Activity Result API (see the updated tutorial step). With this API, you can now start payment facilitations from your Fragments.

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

79244903

Date: 2024-12-02 16:54:59
Score: 3.5
Natty:
Report link

The matplotlib library might be more suitable for you

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

79244901

Date: 2024-12-02 16:53:59
Score: 1.5
Natty:
Report link

what i did, was delete the .sln file then opened the visual studio project using the .csproj file. i also edited the csproj file to have a line that looks like this:

<Configuration Condition=" '$(Configuration)' == '' ">Debug_VSTS</Configuration>

and another that looks like this:

<Configurations>Debug;Release;Debug_VSTS;Release_VSTS</Configurations>
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): what i
  • Low reputation (1):
Posted by: user28592205

79244897

Date: 2024-12-02 16:52:58
Score: 0.5
Natty:
Report link

You can assert myStatus as EnumStatus to align the types:

function test(myStatus: TypeStatus) {
    return [EnumStatus.Todo, EnumStatus.Doing].includes(myStatus as EnumStatus);
}

This approach informs TypeScript that myStatus can be treated as an EnumStatus value.

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

79244896

Date: 2024-12-02 16:51:58
Score: 2
Natty:
Report link

const names = ['bob', 'marry', 'alice', 'jenifer']; const capitalized = names.map((name) => { return( name[0].charAt(0).toUpperCase() + name.slice(1) + ' ' ) }); console.log(capitalized)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: M K Saifullah Mollick

79244884

Date: 2024-12-02 16:48:57
Score: 0.5
Natty:
Report link

So, after further reading of SharpGrip.FluentValidation.AutoValidation, I came across the IGlobalValidationInterceptor.

As per the docs

validation interceptors is considered to be an advanced feature and is not needed for most use cases

However, for my use case, it appears perfect:

public class ValidationInterceptor : IGlobalValidationInterceptor
{
    public IValidationContext? BeforeValidation(ActionExecutingContext actionExecutingContext, IValidationContext validationContext)
    {
        if (actionExecutingContext.HttpContext.User.IsInRole(Roles.Users))
        {
            return ValidationContext<object>.CreateWithOptions(validationContext.InstanceToValidate, options =>
            {
                options.IncludeRuleSets(Roles.Users).IncludeRulesNotInRuleSet();
            });
        }
        if (actionExecutingContext.HttpContext.User.IsInRole(Roles.Employees))
        {
            return ValidationContext<object>.CreateWithOptions(validationContext.InstanceToValidate, options =>
            {
                options.IncludeRuleSets(Roles.Employees).IncludeRulesNotInRuleSet();
            });
        }
        
        return validationContext;
    }

    public ValidationResult? AfterValidation(ActionExecutingContext actionExecutingContext,
        IValidationContext validationContext)
    {
        return null;
    }
}

Thanks to the contributors at SharpGrip

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

79244874

Date: 2024-12-02 16:45:57
Score: 1
Natty:
Report link

In my case I had to delete my ngrok account and creating it again, since I had to no agents running and was still getting that error.

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

79244872

Date: 2024-12-02 16:44:56
Score: 2
Natty:
Report link

your ReactDOM.findDOMNode is used in ButtonBase which is considered as unsecured because it is deprecated. you should install the last version of MUI and React to fix this.

This error only happens in production because in development, React's safeguards are removed.

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

79244861

Date: 2024-12-02 16:40:55
Score: 0.5
Natty:
Report link

Do not use camsunit.com as I think they are a bunch of amateurs who just want to make a quick buck. Their solution is pathetic at best.

I tried it myself and their stupid system connected to my ZKTeco device (UFace 800) and deleted all users on it.

Their support just told me "nah you were the only one who complained, we are so great actually".

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: omarataq

79244856

Date: 2024-12-02 16:38:54
Score: 5
Natty: 3
Report link

Bem-estar

"Descubra o poder do nosso produto natural para transformar sua saúde e bem-estar! Formulado com ingredientes de alta qualidade, ele ajuda a aumentar sua energia, melhorar o humor e fortalecer o sistema imunológico. Ideal para quem busca uma vida mais saudável, nosso produto é fácil de usar e se encaixa na sua rotina. Sinta a diferença desde o primeiro dia! Não perca tempo, cuide de você e da sua saúde. Experimente agora e junte-se a milhares de clientes satisfeitos que já transformaram suas vidas!"

Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): Não
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Joãozinho Marcelo

79244852

Date: 2024-12-02 16:36:53
Score: 1
Natty:
Report link

So, I ended up making a request to https://api.linkedin.com/rest/images/{urlquoted urn} to get the URL. You can specify the query parameters params = {'fields': 'downloadUrl'} to only get the downloadUrl if that's what you need. Please note that the URL expires every 90 days. You will have to refresh it every 90 days.

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

79244841

Date: 2024-12-02 16:32:52
Score: 1
Natty:
Report link

It says that folders like wwwroot will automatically be copied to the output folder but it is not. I added the following statements to the csproj file and it works.

<ItemGroup>
  <Content Update="wwwroot\**\*">
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </Content>
</ItemGroup>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vn2302

79244836

Date: 2024-12-02 16:31:52
Score: 0.5
Natty:
Report link

I am not able to explain why that doesn't work, you should get some errors, but this works:
I have added alert statement to debug it if not. You can safely remove it.

myEditor.addCommand(
        monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyP, // Ctrl+P or Cmd+P
        function () {
            alert()
            // Trigger the built-in command palette command
            myEditor.trigger('keyboard', 'editor.action.quickCommand', null);
        }
    );

Your code in playground: this My answer: this

Reasons:
  • Blacklisted phrase (1): I am not able to
  • Has code block (-0.5):
Posted by: redoc

79244825

Date: 2024-12-02 16:27:51
Score: 1.5
Natty:
Report link

You should see the same number of columns as your preprocessed features yes. Have you checked numeric_columns and categorical_columns? (Might well be that the processing step is not increasing dimensionality as you expect)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Daniele Gentili

79244809

Date: 2024-12-02 16:24:51
Score: 2
Natty:
Report link

Yes this is the correct way to do this.

See this post for reference Just what is an IntPtr exactly?

It would be best to wrap such uses of unmanaged resources in RAII pattern Implementing RAII in C#

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

79244800

Date: 2024-12-02 16:21:50
Score: 1.5
Natty:
Report link

In Sources/main.m, change putenv("IOS_IS_WINDOWED=False") to putenv("IOS_IS_WINDOWED=True"). This didn't seem to work immediately, but it did after rebuilding a few times. Other than that just make sure everything is right in the Info.plist file. (This is easy to find with a Google search).

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

79244774

Date: 2024-12-02 16:12:47
Score: 1.5
Natty:
Report link

You are running pip install within python, you need to run it in the terminal. i.e. when you see >>> type exit() and press enter, then use pip install [your package]

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

79244772

Date: 2024-12-02 16:12:47
Score: 1
Natty:
Report link

No extra coding, just change some configs.

src-tauri/tauri.conf.json

{
  ...
  "app": {
    "windows": [
      {
        ...
        "zoomHotkeysEnabled": true
      }
    ],
  },
  ...
}

src-tauri/capabilities/default.json

{
  ...
  "permissions": [
    ...
    "core:webview:allow-set-webview-zoom"
  ]
}

This is a pretty new feature and not yet well documented in the official docs. The VS Code plugin and config schema can be helpful.

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

79244767

Date: 2024-12-02 16:11:47
Score: 1.5
Natty:
Report link

Your code attempts to use Windows impersonation to access the cloud-based Dynamics 365, which is totally different from on-premises Dynamics. Cloud-based Dynamics 365 does not support Windows Authentication or Windows Identity-based impersonation for authentication. Instead, it relies on OAuth 2.0 for authentication, which requires an Azure Active Directory (AAD) registered application, so you have to use one of the authentication mechanism mentioned here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth

Please mark this answer as verified if you are ok with answer and let me know if you have any other questions. thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sherif Sobhy

79244765

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

For the next person who is trying to do this, I would recommend using monaco.languages.registerDocumentSemanticTokensProvider à la this blog post and adding a couple keywords to existing languages this way.

But if you really want to extend a language definition with only syntax highlighting (which according to the article is less computationally expensive than semantic highlighting) then you'll want to import from 'monaco-editor/esm/vs/basic-languages/<lang>/<lang>.js' and use monaco.languages.setMonarchTokensProvider.

You can pretty quickly find the file you need in vscode global search via including "node_modules/monaco-editor/**/*" and searching for ".js"

Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: calvinusesyourcode

79244763

Date: 2024-12-02 16:09:46
Score: 8.5 🚩
Natty: 5
Report link

Did anyone ever find a solution to this problem that doesn't involve deleting the app from Firebase and starting again?

Reasons:
  • RegEx Blacklisted phrase (3): Did anyone ever find a solution to this problem that
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did anyone
  • Low reputation (1):
Posted by: elate

79244761

Date: 2024-12-02 16:08:45
Score: 4
Natty:
Report link

After killing the blocking session my sql went through

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

79244757

Date: 2024-12-02 16:08:45
Score: 0.5
Natty:
Report link

For Ubuntu: Step 1: Check if your GPG key expired gpg --list-keys

If yes, just do the following: STep 2: Make a new key gpg --full-generate-key

Step 3: put your new key in pass do gpg --list-keys pass init NEW_KEY_ID_HERE ^^^ put your new key in NEW_KEY_ID_HERE

Step 4: For the OLD, delete it by doing: gpg --delete-key OLD_KEY_ID_HERE

Step 5: OPEN a terminal with cntrl+N. Perform login command and make sure to check'Save in PasswordManager'. Run the following to make sure that the password for the key (generated in step 2) is in the keychain.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: HeronAlgoSearch

79244735

Date: 2024-12-02 16:01:43
Score: 0.5
Natty:
Report link

You can add the following to your .eslintignore file to fix the issue:

/components/ui/**.tsx

This will exclude all .tsx files in the components/ui directory from linting.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Moshe Fortgang

79244726

Date: 2024-12-02 15:59:43
Score: 9
Natty: 8.5
Report link

what if I want this to happen multiple times on a page? your suggestion to add wire:key indeed makes it work but it only works once, subsequent updates from the livewire component do nothing, how can I fix this?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): how can I fix this
  • RegEx Blacklisted phrase (1.5): how can I fix this?
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what if I
  • Low reputation (1):
Posted by: Shayan Najiseyedhosseinzadeh

79244718

Date: 2024-12-02 15:55:42
Score: 1.5
Natty:
Report link
@param {string} props['aria-label'] - your description

or in case it is not a part of props object:

@param {string} ['aria-label'] - your description
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleg Slobodin

79244714

Date: 2024-12-02 15:54:41
Score: 3
Natty:
Report link

If you have already used a JSON validator online or with python, you can make sure to clean (Remove comments or extra characters) the data to only keep what HugChat needs

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

79244712

Date: 2024-12-02 15:54:41
Score: 1.5
Natty:
Report link

I saw the similar issue when building Terra compiler. Elliott Slaughter, author of Terra compiler, investigated the issue and concluded that the problem in how LLVM itself is being built.

For me, the issue was fixed by building a project in a Docker container.

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

79244711

Date: 2024-12-02 15:53:41
Score: 1
Natty:
Report link

The aafire program is in libaa-bin package, so change the Dockerfile like below:

FROM ubuntu:20.04
RUN apt-get update && apt-get install -y libaa-bin

it should works.

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

79244703

Date: 2024-12-02 15:50:40
Score: 1
Natty:
Report link

The fix in my case was shaking the device, clicking "Configure Bundler" and entering the IP of my development computer.

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

79244699

Date: 2024-12-02 15:49:40
Score: 1.5
Natty:
Report link

Changing also the target option should fix this:

{
"compilerOptions": {
  ...
  "target": "ES2021",
  ...
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick Schlieker

79244684

Date: 2024-12-02 15:47:39
Score: 0.5
Natty:
Report link

If you use FluentAPI, you can do something similar to this. I think it's more challenging with Data Annotations. You may have to write custom SQL for it.

{
    modelBuilder.Entity<DerivedFoo>()
        .HasMany(p => p.User)
        .OnDelete(DeleteBehavior.Restrict);  // This turns off cascade delete
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kevin UI

79244675

Date: 2024-12-02 15:46:39
Score: 0.5
Natty:
Report link

I am not sure if this would help, but the getAttString(attribute: string) accepts string and your response returns data: {key: comma separated list} may be if you destruct your response

const {data} = {your response}
getAttString(data.CommaSeparatedString)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Denise Ignatova

79244673

Date: 2024-12-02 15:45:39
Score: 2
Natty:
Report link

On Windows, Open the "Windows Credential Manager" Look for GitHub credentials and remove duplicates.

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

79244672

Date: 2024-12-02 15:45:39
Score: 13.5
Natty: 7.5
Report link

Sir, I have the same problem... Any solution?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (2): Any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: alok ghosh

79244670

Date: 2024-12-02 15:44:38
Score: 0.5
Natty:
Report link

Okay, let me tell you in simple words instead of confusing it with fancy terms.To understand gRPC, it is crucial to understand Protocol buffers and RPC.

Think of protobuf as a way to format data, much like CSV, XML, or JSON. The key difference is that Protobuf encodes the data in a compact, binary format instead of human-readable text like JSON. This makes it faster and more efficient when sending data over a network.

While RPC(Remote Procedure Call) is an API architecture style where client calls a function from remote machine as if it is its local function. You can read more about it here : Modern API architecture styles.

Now, gRPC is a communication protocol developed by Google that combines these two technologies. It uses Protobuf to serialize data and RPC to let different services talk to each other across networks seamlessly.According to its official documentation, we can also use gRPC with JSON instead of Protobuf. gRPC is designed to be fast, reliable, and efficient, making it perfect for modern, high-performance applications, like microservices, mobile apps, and real-time communication systems.

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

79244661

Date: 2024-12-02 15:42:37
Score: 1
Natty:
Report link

Another option using SUMPRODUCT:

=IF(SUMPRODUCT(--(J2:M2=1),--(K2:N2=1)),"OK","")

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: cybernetic.nomad

79244655

Date: 2024-12-02 15:38:36
Score: 3.5
Natty:
Report link

i think importing win32 i dont know what or how tho

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: עידו

79244653

Date: 2024-12-02 15:38:36
Score: 1
Natty:
Report link

Modified firestore rule for your setup:

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /uploads/{userId}/{allPaths=**} {
      allow read, write: if request.auth != null && request.auth.uid == userId;
    }
  }
}

Try with this i hope it's useful

HAPPY CODING :)

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

79244647

Date: 2024-12-02 15:36:36
Score: 2.5
Natty:
Report link

Sorry, cannot write a comment, so I post it as (incomplete) answer:

Should be possible to check .ActiveVar(index) and to set .NextVar(index)

https://or-tools.github.io/docs/pdoc/ortools/constraint_solver/pywrapcp.html#RoutingModel.NextVar

And .OnlyEnforeIf() can alternatively also be expressed as Boolean or LP formulation.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anonymous

79244644

Date: 2024-12-02 15:35:35
Score: 0.5
Natty:
Report link

if your faceing an issue after upgrading to expo 52.

Simply upgrade

"@react-navigation/drawer": "^7.0.18",
    "@react-navigation/native": "^7.0.13",
    "@react-navigation/stack": "^7.0.18",

these and your navigation issue will be fixes.

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

79244641

Date: 2024-12-02 15:34:35
Score: 0.5
Natty:
Report link

The answer of @samhita works, but it is way slower when the dataset is big.

I also included the support of list.

from pyspark.sql import DataFrame, Row, SparkSession
from pyspark.sql.functions import col
from pyspark.sql.types import StringType, StructType, StructField
from typing import Any

spark = SparkSession.builder.appName("replace_null_example").getOrCreate()

# Sample DataFrame
data = [
    ("null", {"struct_string": "null", "nested_struct": {"nested_field": "null"}}),
    ("null", {"struct_string": "null", "nested_struct": {"nested_field": "null"}}),
    ("null", {"struct_string": "null", "nested_struct": {"nested_field": "null"}}),
    ("null", {"struct_string": "null", "nested_struct": {"nested_field": "null"}}),
    ("null", {"struct_string": "null", "nested_struct": {"nested_field": "null"}}),
]

# Define the schema with three levels of nested StructType fields
schema = StructType([
    StructField("a_string", StringType(), True), 
    StructField(
        "my_struct",  # First level struct
        StructType([
            StructField(
                "struct_string",  # Second level struct
                StringType(), 
                True
            ),
            StructField(
                "nested_struct",  # Third level struct
                StructType([
                    StructField("nested_field", StringType(), True) 
                ]),
                True
            )
        ]),
        True
    )
])

df = spark.createDataFrame(data, schema)

def remplace_null_values(line: Row) -> dict[str, Any]:
    line_dict = line.asDict(True)

    def transformation(data):
        if isinstance(data, dict):
            return {key: transformation(value) for key, value in data.items()}
        elif isinstance(data, list):
            return [transformation(item) for item in data]
        elif data == "null":
            return None
        else:
            return data

    line_dict = transformation(line_dict)
    return line_dict

new_df: DataFrame = df.rdd.map(remplace_null_values).toDF(df.schema)

df_astring = new_df.filter(col("a_string").isNotNull())
df_struct_string = new_df.filter(col("my_struct.nested_struct.nested_field").isNotNull())

print("My df_astring")
df_astring.show(truncate=False)
print("My df_struct_string")
df_struct_string.show(truncate=False)
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @samhita
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jeremie bergeron

79244633

Date: 2024-12-02 15:31:34
Score: 2
Natty:
Report link

I made a custom provider and I registered it like this:

<?php

namespace App\Providers;

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        //
    }

    public function boot(): void
    {
        Vite::prefetch(concurrency: 3);

        Auth::provider('custom', function ($app, array $config) {
            return new CustomUserProvider();
        });
    }
}

The custom provider looks like this:

<?php

namespace App\Providers;

use App\Models\User;
use App\utils\AuthFileUtils;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Support\Facades\Hash;

class CustomUserProvider implements UserProvider
{

    public function retrieveById($identifier)
    {

    }

    public function retrieveByToken($identifier, #[\SensitiveParameter] $token)
    {

    }

    public function updateRememberToken(Authenticatable $user, #[\SensitiveParameter] $token)
    {

    }

    public function retrieveByCredentials(#[\SensitiveParameter] array $credentials)
    {
        $fileName = config('backup_values.backup_path') . $credentials['email'] . '.json';
        $userFromFile = AuthFileUtils::readFile($fileName);
        $user = new User();
        foreach ($credentials as $key => $value) {
            $user->$key = $value;
        }
        return $user;
    }

    public function validateCredentials(Authenticatable $user, #[\SensitiveParameter] array $credentials)
    {
        $result = Hash::check($credentials['password'], $user->getAuthPassword());
        return $result;
    }

    public function rehashPasswordIfRequired(Authenticatable $user, #[\SensitiveParameter] array $credentials, bool $force = false)
    {
        $result = $credentials['password'];
        return hash::make($result);
    }
}

And I set it in auth.php like this:

    'providers' => [
        'users' => [
            'driver' => 'custom',
            'model' => env('AUTH_MODEL', App\Models\User::class),
        ],
    ],

But the user not logged in. How can I use it?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Papp Zoltán

79244632

Date: 2024-12-02 15:30:34
Score: 3
Natty:
Report link

I've figured it out,

I used the python code provided by aws to create index patterns.

https://repost.aws/knowledge-center/opensearch-index-pattern

CURL command provided in the doc did not work as it gave me 404 not found error.

Please note that if you are creating index patterns in custom domain, please pass the headers as securitytenant instead of security_tenant mentioned in doc.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Prathyush

79244610

Date: 2024-12-02 15:24:32
Score: 4.5
Natty:
Report link

The Managed Run Command doesn't seem to work as it should. When running through RunAsUser and RunAsPassword, the command is always called as if the system user called it (so the specified user context is not loaded). I used PsExec of PSTools as a workaround, by getting the user password from key vault directly from the VM powershell script.

There's also another problem I found, when running the managed run command through RunAsUser, the command parameters are not taken into account. Here's a link to an opened issue I found.

It would be great to have something working as described in the microsoft azure documentation for the managed run command, hopefully the azure team will release a fix in the future?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix in the future?
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ggirodda

79244603

Date: 2024-12-02 15:21:31
Score: 1.5
Natty:
Report link

Well BigQuery's SQL dialect is quite extensive and constantly evolving with new features and functions. Just like you mentioned, I think the workaround for this one is using sqlparse library in python as it can parse SQL statements into an abstract syntax tree. You could use this to analyze BigQuery queries and perform some transformations. It's not perfect and might not handle all edge cases, but it's a practical option for many tasks.

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

79244590

Date: 2024-12-02 15:17:30
Score: 5
Natty: 4.5
Report link

Since I do not have the reputation to comment, I need to put this as a separate answer. I had a similar issue where I wanted to strongly type my variables for a unpacked tuple but I wanted to use a throwaway underscore to ignore the returns of one of part of my tuple. This can be done like the accepted answer with bare annotations of the variables you want to keep (eg. variable: variable_type) above the assignment before your tuple unpacking (eg. _, variable = tuple).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I do not have the reputation to comment
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CSinginGeek

79244589

Date: 2024-12-02 15:17:30
Score: 2
Natty:
Report link

Not sure if relevant now, but phone number ID can be found on Meta Developer Account, when you click on your application -> Whatsapp -> API Setup.

On Step 1 you will see your numbers, including your phone number ID and business account ID: screenshot

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

79244575

Date: 2024-12-02 15:14:28
Score: 1
Natty:
Report link

for today (12/02/2024) we should add ?react in the end of path to file to make it work

import Search from './search.svg?react'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Игорь Хлебников

79244574

Date: 2024-12-02 15:14:28
Score: 1
Natty:
Report link

I fixed the issue, the problem was I was only running 2 rabbitmq nodes. This caused entire cluster to go down while one node is down. When I increased the node count to 3 the rolling update worked.

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

79244571

Date: 2024-12-02 15:13:28
Score: 1
Natty:
Report link

use this code

@livewireStyles(['nonce' => csp_nonce()])

@livewireScripts(['nonce' => csp_nonce()])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vahid Alvandi

79244565

Date: 2024-12-02 15:11:28
Score: 2
Natty:
Report link

Maybe use min-width & min-height instead using width and height.

.page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
  min-width: 100%;
  min-height: 100%;
  background-color: #f0f0f0;
}

It will looks like this:

how it will looks like

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: もぐもぐぷりん

79244561

Date: 2024-12-02 15:10:28
Score: 0.5
Natty:
Report link

It's pure javascript (which is compatible with jquery) but there is a javascript confirm("prompt?") function that does a pop-up user query with 'OK' and 'Cancel' buttons.

Example below slightly edited from W3Schools: https://www.w3schools.com/jsref/met_win_confirm.asp

W3Schools try it: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_confirm3

<button onclick="myFunction()">Try it</button>

<p id="rslt"></p>
<script>
function myFunction() {
  let prompt = "Press a button!\nEither OK or Cancel.";
  let text= 'uninit'
  if (confirm(prompt) == true) {
    text = "You pressed OK!";
  } else {
    text = "You canceled!";
  }
  document.getElementById("rslt").innerHTML = text;
}
</script>

https://jsfiddle.net/5byx2w4s/1/ (with a little more edits)

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

79244539

Date: 2024-12-02 15:05:26
Score: 0.5
Natty:
Report link

Steps for inspecting site.posts:

Copy contents (all 3 lines) below into ./assets/site.json

---
---
{{site|jsonify}}

Then go to 127.0.0.1/yoursite/assets/site.json and view the structure of site.posts - hopefully that will help with your problem!

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

79244528

Date: 2024-12-02 15:02:26
Score: 3
Natty:
Report link

I'm trying to invoke outlook with a path having the extension, . msg how to open that file in outlook on button click

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

79244526

Date: 2024-12-02 15:01:26
Score: 3
Natty:
Report link

This could help. The button could be activated by default.
Just click on link or the button to disable search only in opened files.

enter image description here

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

79244525

Date: 2024-12-02 15:01:26
Score: 2
Natty:
Report link

I came up with a way to deal with this. My example is a list of open sales orders where I'm subtotaling on open dollars at each change in Sales Order Number, but iI want to be able to see the customer name in the subtotal information. So here's what I do.

After you use the subtotal function, expand the selection so all lines are visible. Go to the column that you want displayed in your subtotal. Highlight the whole column. Go to "Find & Select" and choose "Go To Special". Then choose "Blanks".

Once the blank cells are selected, don't click anything or you'll have to select all over again. Your cursor will automatically be placed in the first blank cell. Simply start typing =b2 (or whatever the cell is immediately above your first blank). Then, hit Control + Enter. This will copy the formula to all the blank cells in the column.

Now, when you shrink your selection to the Subtotal Lines, the information from the other columns will be visible.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Theresa U

79244502

Date: 2024-12-02 14:52:23
Score: 3
Natty:
Report link

please note : dont put / in the end

baseurl: /blog-site

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

79244499

Date: 2024-12-02 14:51:23
Score: 1
Natty:
Report link

Update 2024:

While it is still not possible to serialize the actual File Object, a way more efficient solution to store the content for later upload (compared to serializing to base64) is possible thanks to the widely avaible origin private file system* (OPFS).

Below is a minimal Typescript example to store an array of File objects with cacheFiles and retrieving them with retrieveFiles:

public async cacheFiles(files: File[]) Promise<void> {
  const opfs = await navigator.storage.getDirectory();
  for (let file of files) {
    const handle = await opfs.getFileHandle(file.name, {create: true});
    const stream = await handle.createWritable();
    await stream.write(file);
    await stream.close();
  }
}

private async retrieveFiles(): Promise<File[]> {
  const opfs = await navigator.storage.getDirectory();
  const files: File[] = [];
  for await (const fileEntry of opfs.values()) {
    const fileHandle = await opfs.getFileHandle(fileEntry.name);
    files.push(await fileHandle.getFile());
  }
  return files;
}

The retrieved array of Files can then be used just like the FileList returned by the files attribute of HTMLInputElement with type=file. Since 2023 the methods used in above example are available in all major browsers (MDN Baseline 2023).

An extensive guide with examples can be found at https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system .

Working with a File reference without copying the content, as described at https://developer.chrome.com/docs/capabilities/web-apis/file-system-access , should become possible once the File System Access API (https://wicg.github.io/file-system-access/#api-showopenfilepicker) is widely supported, namely the methods

As of December 2024, this is not the case!

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

79244493

Date: 2024-12-02 14:49:22
Score: 0.5
Natty:
Report link

With Tomcat >= 8.5, there is another solution in server.xml:

   <Service name="Catalina" gracefulStopAwaitMillis="60000">

References : doc, difference with unloadDelay

(on this subject, see also bindOnInit="false" which makes Tomcat release the connector port sooner than later)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pascal Pixel Rigaux

79244491

Date: 2024-12-02 14:49:22
Score: 2
Natty:
Report link

for me installing a stable version of grpcio worked

pip install grpcio==1.60.1
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikhil P

79244489

Date: 2024-12-02 14:47:20
Score: 14.5 🚩
Natty:
Report link

I'm having the exact same problem with django-ckeditor-5! Did you find any solution?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the exact same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leduan Miranda

79244488

Date: 2024-12-02 14:47:20
Score: 1
Natty:
Report link

You can use Automation Rules directly in Sentinel. This approach would allow you to set tag on incident based on selected Custom Detail and its value. I presented this approach in the following You Tube video: Microsoft Sentinel Automation Tag Incidents

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

79244483

Date: 2024-12-02 14:46:20
Score: 2
Natty:
Report link

Encountered the same problem with the kernel update to 6.12.
Managed to fix it for now by adding the following kernel boot options:

SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0

This should allow using the CGroups V1.
No idea if this is actually a good idea or not.

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

79244479

Date: 2024-12-02 14:45:19
Score: 0.5
Natty:
Report link

My answer is disregarding the context of the original question (which has already been answered in the past), but only focusing on the question in the title:

How to print terraform variable values?

And I want to correct something that is implied by all these other answers, i.e. that a terraform variable can only be retrieved programmatically via the outputs, and thus needing to init+apply first. This is not true.

There is a way to print an actual variable (i.e. from variables.tf and/or terraform.tfvars) It is a bit hidden, there is no direct subcommand designed for this (as opposed to terraform output) but you can do it with this short "one-liner":

terraform console <<EOF
var.<your_variable>
EOF
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: adamency

79244478

Date: 2024-12-02 14:43:19
Score: 2.5
Natty:
Report link

"ping -i 3 google.com" The -i parameter means the interval seconds between sending each packet.

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

79244476

Date: 2024-12-02 14:42:19
Score: 3.5
Natty:
Report link

if you are able to and do not need updating info just download the pdf

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

79244475

Date: 2024-12-02 14:42:19
Score: 3
Natty:
Report link

You can also do new Set().

const array = [1, 2, 3, 1, 2, 4];
const rmDupArr = [...new Set(array)];
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rovshenhojayev

79244474

Date: 2024-12-02 14:42:19
Score: 1
Natty:
Report link

Without any code example is difficult to know what is the problem.
But with this code you should be able to load the file.

import os
import pickle

with (os.path.join(os.getcwd(), 'possible_successors.pickle'), 'rb') as file:
    data = pickle.load(file)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lewis

79244468

Date: 2024-12-02 14:41:18
Score: 1
Natty:
Report link

So I have been testing out ZGC with a Cassandra 4.1.6 cluster, and been seeing the same type of errors. ZGC is an experimental feature in java 11, and I strongly believe the error you are seeing is due to it being an experimental feature. Upgrading to Cassandra 5.0.x allows you to run ZGC in java 17 (ZGC was promoted to a Feature in Java 15). I think running ZGC at least for production is not recommended. Not sure if this answers your question, but at least it is an indicator why you are seeing this error.

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

79244454

Date: 2024-12-02 14:38:18
Score: 2
Natty:
Report link

It would seem you could just declare the variable as a static, i.e.

static char a[1000];

This will ensure that it is initialized the first time it is used but then persists on the heap for the life of the program.

It could be defined within the function or outside all of the other functions depending on the scope you wanted (e.g. you might want other local functions to be able to access that same character pointer). This way you don't have to worry about keeping track of malloc's and free's.

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

79244451

Date: 2024-12-02 14:37:17
Score: 1
Natty:
Report link

The body tag behaves differently from regular block-level elements like div because of how browsers handle it by default. Normally, block-level elements only take up as much space as their content requires. For example, a div will only stretch as tall as its content unless you explicitly set its height.

However, the body tag is special. Even if it doesn't have any content, browsers automatically make it stretch to fill the entire height of the screen (or "viewport"). This happens because the body works together with the html tag, which by default also takes up the full height of the screen. This ensures that if you set a background color or image on the body, it will cover the whole screen, not just the area occupied by the content.You can read more about it here : https://www.w3schools.com/tags/tag_body.asp

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

79244450

Date: 2024-12-02 14:37:17
Score: 0.5
Natty:
Report link

Solved a similar problem with

[mydictionary[k] for k in mylist if k in mydictionary]

... that would skip over all k's in mylist that are not in the dictionary.

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

79244440

Date: 2024-12-02 14:33:16
Score: 7 🚩
Natty: 5.5
Report link

I have the same problem here, there zero fix on Internet LOL

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: 6504_Phan Ngọc Duy Trí

79244438

Date: 2024-12-02 14:32:15
Score: 2
Natty:
Report link

I also ran into this problem. Until it gets fixed by tiktok you can try to repeat the request several times until it gets handled. For me it takes 2-5 retries per request until it gets handled.

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

79244435

Date: 2024-12-02 14:30:14
Score: 6 🚩
Natty: 5
Report link

I'm wondering if you found a solution for this? Did you end up manually defining the schema? Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): if you found a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: TechNewbie

79244426

Date: 2024-12-02 14:26:13
Score: 1
Natty:
Report link

Spotify has made changes to their API and mostly switched off those features for public consumption: https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api.

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

79244423

Date: 2024-12-02 14:25:13
Score: 3
Natty:
Report link

MS ACCESS Date access through VB.net Code is "select * from tbl where tdate=#" & format(dtpickr.value,"MM/dd/yyyy")&"#

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

79244411

Date: 2024-12-02 14:22:12
Score: 2.5
Natty:
Report link

Why not replace spleen labels by liver labels, and then use the existing code? Something like nifti_data[where(nifti_data == labels_in_nifti[1])] = labels_in_nifti[0].

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Why not
  • High reputation (-1):
Posted by: Dženan

79244410

Date: 2024-12-02 14:21:11
Score: 2.5
Natty:
Report link

This occurred in my environment when we needed to establish a VPN tunnel to the SQL server, but it had not yet been set up.

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

79244406

Date: 2024-12-02 14:20:11
Score: 2
Natty:
Report link

I found the answer from this link Since I'm using wsl2 ubuntu

I navigated to the Ubuntu terminal using the following command

ibunhabibu@DESKTOP-RG3E4I0:/mnt/c/Users/projects/rails/writehub$ cd ~
ibunhabibu@DESKTOP-RG3E4I0:~$ cd .docker/
ibunhabibu@DESKTOP-RG3E4I0:~/.docker$ nano config.json

then I edited it from

{
  "credsStore": "desktop.exe"
}

to

{
  "credStore": "desktop.exe"
}

after removing s in credsStore the problems solved

Reasons:
  • Blacklisted phrase (1): this link
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: IbunHabibu Salim