79116987

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

use a dot (.) after script keyword

script.
   if (10 == 10) {
        alert("working")
      }

This will work as expected

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

79116979

Date: 2024-10-23 08:10:43
Score: 1.5
Natty:
Report link

You can read more about this error in this excellent blog. In your example, the compiler is raising error about property weak var server: MockHTTPServer? as It is mutable because var keyword which can introduce data races.

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

79116978

Date: 2024-10-23 08:10:43
Score: 1
Natty:
Report link

I solved the same issue by disabling the antivirus first until i completed the installation

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

79116976

Date: 2024-10-23 08:09:43
Score: 2.5
Natty:
Report link

This happens because your are using ColorZilla Chrome Extension. It adds an attribute to HTML after it has been rendedred called cz-shortcut-listen:"true". This cause hydration error in NextJS. To fix this make sure you disable ColorZilla Chrome Extension on your browser.

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

79116965

Date: 2024-10-23 08:02:39
Score: 6.5 🚩
Natty: 4
Report link

I'm also experiencing some unusual behavior in my Lambda function. I've included a mime.types file to help detect the correct MIME types, but for certain files, the MIME type is being detected incorrectly. For example, a PPT file is being recognized as a application/msword hence DOC file was detected. This issue doesn't occur locally; everything works correctly with the same configuration(python version, library version except the os). Does anyone have idea why this thing is happenning?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Yash Nigam

79116956

Date: 2024-10-23 07:59:38
Score: 1.5
Natty:
Report link

It seems that I will answer my question for another time. It's possible to get there ShellExecuteW way:

{
  ATL::CStringW cswNetworkAdapterPath = L"";
  LPOLESTR lpwszNetConCLSID;

  StringFromIID(CLSID_NetworkConnections, &lpwszNetConCLSID);
  cswNetworkAdapterPath.Format(L"::%s\\::%s", lpwszNetConCLSID, lpwszAdapterGUID);

  ShellExecuteW(NULL, L"properties", cswNetworkAdapterPath, NULL, NULL, SW_SHOWNORMAL);
}

That's the quick and dirty approach but it works (the less dirty will be CSIDL_CONNECTIONS way). You may also need to grab a thread to let the property sheet open.

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

79116953

Date: 2024-10-23 07:58:38
Score: 1
Natty:
Report link

For RHEL systems below steps helped me to fix /bin/sh: 1: krb5-config: not found error.

# yum --enablerepo=* install gcc python3-devel krb5-devel
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Namasivayam Chinnapillai

79116949

Date: 2024-10-23 07:57:38
Score: 2
Natty:
Report link

ok, I change to

npm install [email protected] --save

and the server can be start without error now.

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

79116942

Date: 2024-10-23 07:55:37
Score: 1.5
Natty:
Report link

You can do code file.ext to open it in a different terminal and

code -r file.ext to open in same terminal

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

79116937

Date: 2024-10-23 07:54:37
Score: 1
Natty:
Report link

i have explored and found that we need to modify the code to add images in html

import gradio as gr

with gr.Blocks() as demo:
    # add file before your image file path
    gr.HTML("<img src='file/image.png' alt='image One'>")

# add allowed_path  in launch
demo.launch(allowed_paths=["."])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Farooq Zaman

79116933

Date: 2024-10-23 07:54:35
Score: 7 🚩
Natty: 5.5
Report link

Мне ничего не помогло, уже несколько дней мучаюсь с этой проблемой!

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Яро Князь

79116928

Date: 2024-10-23 07:53:35
Score: 0.5
Natty:
Report link

As @ernix said, we might give Data::Dumper "the old heave-ho" in such situations, using instead,

use JSON::PP;
use utf8;
sub Dumper { JSON::PP->new->pretty->utf8->encode(shift); }
my %hash = ( да => "не" );
die Dumper \%hash;

which gives,

{
   "да" : "не"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dan Jacobson

79116927

Date: 2024-10-23 07:52:34
Score: 3
Natty:
Report link

If you installed it as a service, it should show up in Task Manager under Processes Memurai service in Task Manager

Normally there would be no reason for Memurai to use more than 1% CPU after install. Either to install or to uninstall, make sure to follow the steps here: https://docs.memurai.com/en/windows-service

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

79116914

Date: 2024-10-23 07:49:34
Score: 3.5
Natty:
Report link

There's a stable and up-to-date package that serves this exact purpose. Here you can find it.

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

79116856

Date: 2024-10-23 07:44:30
Score: 13 🚩
Natty: 4.5
Report link

hey i am also facing the same issue , if you can help me with the same

Reasons:
  • Blacklisted phrase (1): i am also facing the same issue
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): you can help me
  • RegEx Blacklisted phrase (2): hey i am
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saurabh verma

79116848

Date: 2024-10-23 07:40:28
Score: 3
Natty:
Report link

I had a similar issue, and liked pointed out by @jordanm , the problem got fixed by replacing File.open(url) with URI.open(url)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @jordanm
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kévin-DDR

79116825

Date: 2024-10-23 07:34:26
Score: 3
Natty:
Report link

Go to JetEngine -> Taxonomies, Toggle to show built-in taxonomies on the top-right, Edit Tags Taxonomy and add your custom post type in which you want to see the Tags panel.

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

79116824

Date: 2024-10-23 07:34:26
Score: 3
Natty:
Report link

So I also had this issue, for me using dash inside the engine to manage the plots resolved all my issues.

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

79116820

Date: 2024-10-23 07:33:26
Score: 2.5
Natty:
Report link

All your IO should be in a Repository, so by that logic, you should have logic to store/encrypt and retrieve/decrypt logic into your repository itself.

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

79116818

Date: 2024-10-23 07:33:26
Score: 1
Natty:
Report link

This is my another answer two years later. Now I use uv and setup-uv action instead. It's a much more convenient and efficient pip replacement, with builtin cache support.

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

79116815

Date: 2024-10-23 07:31:25
Score: 2
Natty:
Report link

Download the installer file to your desktop, right click on the file and choose "Run as administrator".

This should help to get the installer to finish the installation

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

79116813

Date: 2024-10-23 07:31:25
Score: 2.5
Natty:
Report link
  1. Check if your instance requires authentication.
  2. Check if your local instance in daemon mode
  3. Check if this URI connect on mongodb atlas
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shoieb Shaikh

79116812

Date: 2024-10-23 07:31:25
Score: 1
Natty:
Report link

The deprecated inflight dependency looks related to this Mocha issue. Sounds like it should be resolved soon.

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

79116809

Date: 2024-10-23 07:30:25
Score: 2
Natty:
Report link

In today’s world, relationships are complex and often face challenges that can strain the bond between a girlfriend and boyfriend. Whether it’s misunderstandings, jealousy, lack of communication, or external interference, these problems can leave individuals feeling confused and emotionally drained. However, with the right approach and strategies, these love problems can be solved, leading to a stronger and more fulfilling relationship. This guide aims to provide practical and effective solutions to common relationship issues and help you navigate through difficult times with your partner.

https://astrologysewa.com/gf-bf-love-problem-solutions/

Reasons:
  • Blacklisted phrase (1): This guide
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Astrology Sewaa

79116805

Date: 2024-10-23 07:30:25
Score: 3
Natty:
Report link

You haven't mentioned how you installed/implemented the font so I don't have a clear solution here. But still make sure there is an Italic version of it and you have imported it.

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

79116797

Date: 2024-10-23 07:28:24
Score: 4
Natty:
Report link

Если сильно захотеть перегрузить оператор, можно сделать препроцессор для аннотации и заменять выражения a + b, a += b a.add(b), a = a.add(b) А также написать плагин для idea чтобы убрать error предупреждения в этих случаях. Вот пример: https://github.com/AxeFu/OperatorOverloadingJava

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

79116794

Date: 2024-10-23 07:26:24
Score: 2
Natty:
Report link

As already mentioned, changing the file types from Objective-C (.m extension) to Objective-C++ (.mm extension) resolved the issue.

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

79116793

Date: 2024-10-23 07:25:23
Score: 1
Natty:
Report link

You needed to add more angle from the start and adjust the circle to get it right.

import turtle


t = turtle.Turtle()
t.width(5)


t.right(120)        
t.forward(100)      
t.circle(60, 240)   
t.forward(100)      
t.hideturtle()      

turtle.done()

Water drop

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

79116790

Date: 2024-10-23 07:25:23
Score: 2.5
Natty:
Report link

If you are using llvm jit, you should register SymbolMap with function pointer into JITDylib;

there is a full example code to declare extern C function and use them later in LLVM IR. extern C functions

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

79116783

Date: 2024-10-23 07:22:22
Score: 1.5
Natty:
Report link

For Windows users with Docker Desktop, I just went to Settings - Resources - Proxies then turned the "Manual proxy configuration" toggle to true.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: M Fuat

79116781

Date: 2024-10-23 07:21:22
Score: 1.5
Natty:
Report link

This popup is definitely that from Google AdSense service. Here are instructions on how to disable https://support.google.com/adsense/answer/10960768

If you don't want to have AdSense ads at all then just find and remove the code associated with adsbygoogle.js

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

79116765

Date: 2024-10-23 07:16:21
Score: 3
Natty:
Report link

you can also use profile.to_notebook_iframe() For mine it is working

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

79116761

Date: 2024-10-23 07:16:21
Score: 2
Natty:
Report link

Keep it simple.

#
# Pad to 8 characters
#

for I in 0 9 99 999 9999 99999 999999 9999999 99999999 ; do
    PAD="00000000$I"
    echo "${PAD##${PAD%%????????}}"
done

Output:

00000000
00000009
00000099
00000999
00009999
00099999
00999999
09999999
99999999
Reasons:
  • Blacklisted phrase (1): ???
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dave Null

79116759

Date: 2024-10-23 07:15:20
Score: 2
Natty:
Report link
  1. Run flutter doctor --android-licenses on cmd and accept the licenses.
  2. Navigate to the following and select this box CMD Line Tools Issue 2 Reference link
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andreas Hadjimamas

79116755

Date: 2024-10-23 07:14:20
Score: 1
Natty:
Report link

This may several reasons

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

79116751

Date: 2024-10-23 07:13:20
Score: 2.5
Natty:
Report link

This has to do with the interplay between requests and urllib3. requests is handing over some parts of the implementation to urllib3, and docker hasn't accounted for this change.

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

79116749

Date: 2024-10-23 07:13:20
Score: 2
Natty:
Report link

This blog article helped me to solve exactly this problem. The idea of GraphQL is, that your client has to handle possible errors. That's why Apollo catches them and Sentry gets no chance of dealing with them.

The article introduces a custom plugin that is linked into the process chain of apollo server and notifies Sentry if an error occurs. The code is pretty straight forward. I could easily implement it in my NestJS application.

Reasons:
  • Blacklisted phrase (1): This blog
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: AndiH

79116744

Date: 2024-10-23 07:10:19
Score: 1.5
Natty:
Report link

The options are in:

  1. Surround the function with quotation marks. However as per JSR223 Sampler documentation it will result into caching the compiled value and generated string will be "random" during first iteration only

  2. Pass it via "Parameters" section like

    enter image description here

  3. Use RandomStringUtils class instead:

    String randomString = org.apache.commons.lang3.RandomStringUtils.randomAlphanumeric(100, 4500)
    

More information on Groovy scripting in JMeter: Apache Groovy: What Is Groovy Used For?

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

79116723

Date: 2024-10-23 07:03:17
Score: 4
Natty:
Report link

The answer above by @A5C1D2H2I1M1N2O1R2T1 is not entirely correct due to index order in the upper.tri assignment. The answer by @Valentin_Stefan is, using the outer product. You will only see this when using four elements.

df <- data.frame(list(
    "Group" = c("A", "B", "C", "D"),
    "v.1" =   c( 1,   1,   1,   3 ),
    "v.2" =   c( 1,   1,   1,   2 )
    ))

m <- matrix(0, nrow = nrow(df), ncol = nrow(df),
            dimnames=list(df$Group, df$Group))

m[lower.tri(m)] <- combn(df$v.1, 2, FUN=diff)
m[upper.tri(m)] <- combn(df$v.2, 2, FUN=diff)
m
#   A B C D
# A 0 0 0 0
# B 0 0 1 1
# C 0 0 0 1
# D 2 2 2 0

(see the m[2,3] element which should be at m[1,4] instead)

I would transpose to correct; maybe there is an easier way?

n <- matrix(0, nrow = nrow(df), ncol = nrow(df),
            dimnames=list(df$Group, df$Group))

n[lower.tri(n)] <- combn(df$v.2, 2, FUN=diff)
n <- t(n)
n[lower.tri(n)] <- combn(df$v.1, 2, FUN=diff)

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

79116722

Date: 2024-10-23 07:02:16
Score: 2.5
Natty:
Report link

Hey thanks for this awesome detailed explanation, I was able to improve my gameplay because of this. At first my fps was around 30-50. I was setting a lot of contents inside the scrollview to SetActive() so it was eating a lot of my frames so I disabled the pixel perfect option from the canvas and removed a lot of GetComponent() calls. However when i tried to set their alpha to 1, the performance dropped to 21fps but with SetActive() it works fine for me. Now my frame rate is around 90-120

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Preety Das

79116719

Date: 2024-10-23 07:02:16
Score: 1.5
Natty:
Report link

Connect to Azure Account

Connect-AzAccount

Create the Azure AD application

$appName = "MyTestingApp" $app = New-AzADApplication -DisplayName $appName -IdentifierUris "https://myapp.com"

Add a client secret

$secret = New-AzADAppCredential -ApplicationId $app.ApplicationId -EndDate (Get-Date).AddYears(1)

Define the permission ID for Mail.Send

$permissionId = "a0e0c2c0-6b4c-4c98-bcd8-15e7995d8f2b" # Mail.Send permission ID

Add the Mail.Send permission to the application

$resourceId = "00000003-0000-0000-c000-000000000000

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): 000000000000
  • Low reputation (1):
Posted by: waheed khan

79116713

Date: 2024-10-23 07:02:16
Score: 4
Natty:
Report link

Many thanks to @Giovanni - a nice obvious [in retrospect] solution... and tested in Firefox, Chromium, Edge, and Polypane.

pen updated....

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Giovanni
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: CodeGorilla

79116709

Date: 2024-10-23 07:00:16
Score: 1
Natty:
Report link

Another alternative is using the QUERY function;

=ARRAYFORMULA(QUERY({A2:B, COUNTIF(A2:A,A2:A),COUNTIFS(B2:B,"Win",A2:A,A2:A)},"Select Col1, Sum(Col4)/Sum(Col3) Where Col1 Is Not Null Group By Col1  Label Sum(Col4)/Sum(Col3) '' FORMAT Sum(Col4)/Sum(Col3) '0.00%'"))

.

enter image description here

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

79116708

Date: 2024-10-23 07:00:16
Score: 2
Natty:
Report link

As was noted in another post.

Use the client ID and client Secret from the Alexa skill permission tab under "Alexa Skill Messaging" (i.e. NOT the client ID and client secret from the account tab)

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

79116706

Date: 2024-10-23 07:00:14
Score: 8.5 🚩
Natty:
Report link

There is no problem in your codes but to check and review please answer these two questions to share the problem with us:

  1. Is there any bean definition for CORS in your code(a class with @Configuration annotation)?
  2. please check with @CrossOrigin without any parameter(just to review and find the reason)

please send a feed back...

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (2.5): please answer
  • RegEx Blacklisted phrase (2.5): please send
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Configuration
  • User mentioned (0): @CrossOrigin
  • Low reputation (0.5):
Posted by: ehsan

79116705

Date: 2024-10-23 07:00:14
Score: 1
Natty:
Report link

Try simple CSS.

body:not(.is-admin) .mapplic-popup-body{
 display:none;
}

This will hide the container only if admin is not logged in.

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

79116681

Date: 2024-10-23 06:50:12
Score: 3
Natty:
Report link

In the case of YugabyteDB, the client doesn't know about internal RAFT replication details. It can trust the db with success or error just like with a single node database with no replication. It will be considered a bug on the db otherwise.

For more details, please describe in detail the exact scenario you had in mind.

Reasons:
  • RegEx Blacklisted phrase (2.5): please describe
  • No code block (0.5):
Posted by: dh YB

79116680

Date: 2024-10-23 06:49:11
Score: 0.5
Natty:
Report link

You can ignore this ApplePersistenceIgnoreState warning from your system by turning off this unnecessary feature for Python by using below command in your Terminal:

defaults write org.python.python ApplePersistenceIgnoreState NO

Please have a look at this similar issue for your reference. Let us know if you are still facing this issue. Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sagar

79116668

Date: 2024-10-23 06:46:10
Score: 1.5
Natty:
Report link

The ABI consists of different parts which can (with some probability) be decoded from the raw EVM bytecode:

Related question:
Get/guess unverified contract's external methods

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

79116667

Date: 2024-10-23 06:46:10
Score: 2.5
Natty:
Report link

The 'foo' is a placeholder commonly used in programming and documentation in the context of 'URL'

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

79116657

Date: 2024-10-23 06:43:10
Score: 1.5
Natty:
Report link

Did not have any data ingested because there has been no glue jobs started after I updated the cloudwatch metricset to collect.

Additional: Putting the 2 namespaces below will work. There are metrics under both namespaces. - namespace: AWS/Glue - namespace: Glue

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Did not have any
  • Low reputation (0.5):
Posted by: Darius

79116650

Date: 2024-10-23 06:42:09
Score: 0.5
Natty:
Report link
Container(
  color: Colors.white,
  child: ColorFiltered(
    colorFilter: const ColorFilter.mode(Colors.green, BlendMode.hue),
    child: Image.asset(
      'assets/eyes/$eyes.png',
      color: Colors.white,
      colorBlendMode: BlendMode.dstATop,
    ),
  ),
),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Kremenchuk

79116647

Date: 2024-10-23 06:41:09
Score: 2
Natty:
Report link

It looks to me that the GUI designer in Visual Studio 17.11.5 is broken and I hope it get fixed in future versions. I am using a third party control that makes extensive use of tracing and it takes 122 clicks of Okay buttons to bring up the form with this control. Until it get fixed the answers by Alan B and Cody Laing provide work arounds.

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

79116645

Date: 2024-10-23 06:40:09
Score: 4
Natty:
Report link

I used from bat file to run my python code and it executed successfully

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

79116642

Date: 2024-10-23 06:40:08
Score: 8
Natty: 7
Report link

Can I use it without provideIn: 'root' ? Meaning just @Injectable() ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Injectable
  • Single line (0.5):
  • Starts with a question (0.5): Can I use it with
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Yustina

79116631

Date: 2024-10-23 06:35:07
Score: 3
Natty:
Report link

To give you concrete help you should post a sample file on a data sharing site, such as WeTransfer.

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

79116628

Date: 2024-10-23 06:34:07
Score: 1.5
Natty:
Report link

after a long search i have found a solution here:
https://serverfault.com/questions/1150277/traefik-routing-to-two-ports-in-one-docker-container

long story short the services should be named explicitly in case you need multiple ports for a container. in my case i neede to add two strings:

      - "traefik.http.routers.keycloak.service=keycloak"

      - "traefik.http.routers.keycloak-health.service=keycloak-health"
Reasons:
  • Blacklisted phrase (0.5): i need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: servusMori

79116627

Date: 2024-10-23 06:34:07
Score: 1
Natty:
Report link

I know this is an old question, however, what works best for me is console.log() the sprite object and then manually changing the x and y values within your browser's console. This way you don't need to reload and get instant feedback about placement.

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

79116623

Date: 2024-10-23 06:32:05
Score: 3
Natty:
Report link

Found an interesting online tool for converting markdown to pdf Rare2PDF

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

79116619

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

Solution was to launch the application using shell and a script:

::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/etc/init.d/rcS

#Start my "home-made" application
::sysinit:/bin/sh -c /root/StartAppl.sh

#Put a getty on the serial port
console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L  tty1 0 vt100 # HDMI console

The StartAppl.sh is a script calling the "appl". Not sure why I have to add a script calling "appl" instead of just calling "appl" directly...

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

79116616

Date: 2024-10-23 06:31:05
Score: 3
Natty:
Report link

You can refer to the following document to upload, access, and update your app:

https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/apps-upload

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
Posted by: Nivedipa-MSFT

79116603

Date: 2024-10-23 06:25:04
Score: 0.5
Natty:
Report link

If you no need to set the upstream tracking information, you are able to pull the branch explicitly by specifying the remote and branch:

git pull origin <branch>

For example

git pull origin dev
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Isuru Bandara

79116602

Date: 2024-10-23 06:25:04
Score: 2.5
Natty:
Report link

If your SWAP memory usage is at 100%, this could definitely impact the performance of your application. High memory usage can cause slowdowns or timeouts, especially when handling larger files. Consider optimizing your application or checking if you can increase your memory limit.

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

79116601

Date: 2024-10-23 06:24:03
Score: 4.5
Natty: 4
Report link

I wrote an article about how to install gitlab on macos , Please check https://piyushkashyap.com/install-gitlab-macos-docker/

Reasons:
  • RegEx Blacklisted phrase (1): I wrote an article about how to install gitlab on macos , Please
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Piyush Kashyap

79116583

Date: 2024-10-23 06:16:01
Score: 1.5
Natty:
Report link

use array_unique():

$generated = array_unique(random(4.0008, 4.1008, 20));
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erhan Rden

79116579

Date: 2024-10-23 06:15:00
Score: 1.5
Natty:
Report link

For me Gmail was always able to render HTML attachments without any problems. A few months ago, around July 2024 it no longer does that and shows the source code instead. As a work around, you can see it on any cellphone or you click the download link and it will render correctly on your machine.

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

79116577

Date: 2024-10-23 06:14:00
Score: 3.5
Natty:
Report link

It could be that operatingWeight is not set for all the values you group over, so (negative) INT_MAX is used in the grouping statement?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kristian Aune

79116570

Date: 2024-10-23 06:09:59
Score: 0.5
Natty:
Report link

So, I resolve my issue. corrected navgraph

<argument
           android:name="bookingRequestList"  app:argType="di.model.parkingSpot.response.BookParkingResponse$Data[]"/>

// this is how i pass the data
findNavController().navigate(
                   MyParkFragmentDirections.toAllRequestListFragment(
                       it.parkingSpot?.parkingName!!,
                       arrayOf(it)
                   )
               )
   ```

So, this is the easy way to pass data, but what type of data is in our model class? what fragment was sent to the adapter and what type of data the adapter wants. it's a little bit tricky but when you understand. then it will become very easy for you
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vishal Thakur

79116569

Date: 2024-10-23 06:09:59
Score: 1.5
Natty:
Report link

In your xplat/Flipper/FlipperTransportTypes.h file

add this #include <functional>

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

79116568

Date: 2024-10-23 06:08:59
Score: 1
Natty:
Report link

Potential Solutions:

Foreground Service: If your UpdateService needs to run in the background, consider converting it to a foreground service. This requires showing a notification to inform users that the service is running.

JobScheduler or WorkManager: If the update tasks can be deferred, consider using JobScheduler or WorkManager, which are designed for handling background tasks. They manage the timing and conditions for running your tasks based on system resources.

Check Background Restrictions: Ensure your app has the necessary permissions and check if your app is restricted from running background services. You can inform users to allow background activity for your app through the app settings.

Start Service in Foreground: If you only need to start the service while the app is in the foreground, ensure that onResume() is called only when the app is in the foreground.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Atikul Hassan

79116566

Date: 2024-10-23 06:07:59
Score: 1
Natty:
Report link

Asking Mistrai Ai itself solved my issue ! I need to send all previous message with assistant role. here is a full working example that keep context:

import os
from mistralai import Mistral

api_key = "secret api key"

client = Mistral(api_key=api_key)

# Initialiser l'historique des messages
message_history = []

def get_chat_response(user_message):
    # Ajouter le message de l'utilisateur à l'historique
    message_history.append({"role": "user", "content": user_message})

    # Appeler l'API avec l'historique des messages
    chat_response = client.agents.complete(
        agent_id="my agent id",
        messages=message_history
    )

    # Ajouter la réponse de l'agent à l'historique
    agent_message = chat_response.choices[0].message.content
    message_history.append({"role": "assistant", "content": agent_message})

    return agent_message

while True :
    user_message = input(">: ")
    response = get_chat_response(user_message)
    print(response)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Brandonn

79116560

Date: 2024-10-23 06:04:59
Score: 2.5
Natty:
Report link

So i had a similar problem and i started tweaking my BrowserWindowOptions with this custom title bar electron-custom-titlebar and with the option titleBarOverlay set to false, i get

minimize button without the snap controls while set to true i get

minimize button with win11 snap controls

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

79116545

Date: 2024-10-23 05:58:57
Score: 2.5
Natty:
Report link

I was able to resolve this by changing the Python interpreter in ansible.cfg from /usr/bin/python3 to /usr/bin/python

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

79116538

Date: 2024-10-23 05:54:56
Score: 0.5
Natty:
Report link

When you use now.setDate(-1), you're not actually rolling back the date to the previous month. Instead, you're setting the date to the 1st day of the current month minus 1 day.

Here's how it works:

1.Initial Date: Let's say today is October 23, 2024. 2.Setting the Date: When you call now.setDate(-1), you're telling it to set the date to the 1st of October (because the Date object rolls back to the start of the month) and then subtract 1 day, which results in September 29, 2024.

Use this to get the

const now = new Date();
const lastDayOfPreviousMonth = new Date(now.getFullYear(), now.getMonth(), 0);

console.log(`Last Day of Previous Month: ${lastDayOfPreviousMonth}`);

Explanation:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you use now
  • Low reputation (1):
Posted by: Vedansh Trivedi

79116531

Date: 2024-10-23 05:52:56
Score: 2
Natty:
Report link

If you want to scan any physical objects, you need to select WEBCAM mode in the Vuforia configuration to use the webcam on your PC or laptop. If you want to test Vuforia features on HoloLens, you could build and deploy your application to the HoloLens.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ying Li - MSFT

79116521

Date: 2024-10-23 05:49:55
Score: 0.5
Natty:
Report link

When you create gin middleware, just call the csrf.Protect function and set anonimous function as argument where you call ctx.Next()

//create gin middleware as usual
func CSRFMiddleware() gin.HandlerFunc {
    return func(c *gin.Context) {
        // create gorilla/csrf middleware as showed in docs
        gorillaCSRF := csrf.Protect(
            []byte("32-byte-long-auth-key"),
            // set properties as needed with csrf.<setter function>
            csrf.ErrorHandler(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {
                //use context from gin-gonic instead of http writer/request
                c.JSON(http.StatusForbidden, gin.H{"error": "CSRF token mismatch"})
                c.Abort()
            })),
        )
        
        gorillaCSRF(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {
            // Call next handler
            c.Next()
        })).ServeHTTP(c.Writer, c.Request)
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: braam76

79116514

Date: 2024-10-23 05:47:55
Score: 3
Natty:
Report link

Can try with following,

cp -R /storage/diskA/user*/*.doc /storage/diskB/monthly_report/.
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: user27942901

79116511

Date: 2024-10-23 05:46:55
Score: 3
Natty:
Report link

Roll back your python extension to 14.0 and disable auto-update will fix the issue.

Reference: https://github.com/microsoft/vscode-python/issues/24251

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

79116483

Date: 2024-10-23 05:29:52
Score: 1.5
Natty:
Report link

Sorry to say, but it's not possible to upload the app without building with SDK 17, if you don't have the opportunity to buy a new Mac, you can go for a virtual Mac and try to build it from it.

I don't know if the solution I provide is helpful or not but there is no way without it.

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

79116475

Date: 2024-10-23 05:26:51
Score: 2
Natty:
Report link

you can try following command:

pm2 describe id
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jay Limbasiya

79116470

Date: 2024-10-23 05:25:51
Score: 0.5
Natty:
Report link

The other solution would be using scalar subquery

select 
   genre,
   count(*) as cnt,
   count(*) * 100.0 / (select count(*) from titles)
from titles
group by genre
order by cnt desc
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sia

79116455

Date: 2024-10-23 05:23:50
Score: 4
Natty:
Report link

I used same solution as mentioned by @Phil and it resolved the issue. commons-lang3-3.17.0 and commons-text-1.11.0.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Phil
  • Single line (0.5):
  • Low reputation (1):
Posted by: S.Khanna

79116452

Date: 2024-10-23 05:23:50
Score: 3.5
Natty:
Report link

This package can solve your problem.

Pivot Table

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: kh snake

79116442

Date: 2024-10-23 05:23:50
Score: 1
Natty:
Report link

Asynchronous code is placed in a queue and processed item by item, when there is no other work to do - all on a single thread.

Consider that if you wrote a loop in main() that executed continuously, no asynchronous code in the event queue would ever get run! In reality, most programs sit around waiting for something to happen, and those items in the event queue are being processed during that time on that same single thread.

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

79116441

Date: 2024-10-23 05:23:50
Score: 1
Natty:
Report link

Asynchronous code is placed in a queue and processed item by item, when there is no other work to do - all on a single thread.

Consider that if you wrote a loop in main() that executed continuously, no asynchronous code in the event queue would ever get run! In reality, most programs sit around waiting for something to happen, and those items in the event queue are being processed during that time on that same single thread.

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

79116439

Date: 2024-10-23 05:23:50
Score: 0.5
Natty:
Report link

The issue you're experiencing is due to the position: fixed; property applied to the header.

To resolve this, you can apply z-index: 1; to the header, Here's what you can try:

nav {
  position: fixed;
  z-index: 1;
}

Let me know if that helps!

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

79116437

Date: 2024-10-23 05:23:50
Score: 3.5
Natty:
Report link

We solved our problem. Thanks to everybody :)

The glue record was missing in the zone of the extension, i.e. in the zone of the DENIC registry.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ELITEDOMAINS

79116433

Date: 2024-10-23 05:23:50
Score: 1
Natty:
Report link

These three commands helped me resolve the container stopping issue due to docker daemon permission denied issue.

sudo aa-remove-unknown
sudo systemctl daemon-reload
sudo systemctl restart docker
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vishwa S

79116428

Date: 2024-10-23 05:23:50
Score: 1.5
Natty:
Report link

Solved by

p90 Response times are ~5s

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Ridhwaan Shakeel

79116426

Date: 2024-10-23 05:23:50
Score: 1
Natty:
Report link
import Store from "electron-store";
Store.initRenderer();
const electronStorage = new Store();

Dont forget to initialize the storage before instantiating a new storage object. All i had to do was add

Store.initRenderer();

and it all works now.

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

79116421

Date: 2024-10-23 05:23:50
Score: 3.5
Natty:
Report link

It was solved once i updated my build grade(project) file's version.

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

79116420

Date: 2024-10-23 05:23:50
Score: 1
Natty:
Report link

A Stream is an object in memory. It can emit an event which results in associated listener callbacks being placed in the event queue.

Multiple streams emitting events simply result in more entries in the event queue, which are processed via the event loop one by one.

StreamBuilders are really just stream listeners that trigger sub-tree rebuilds.

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

79116414

Date: 2024-10-23 05:23:50
Score: 5
Natty:
Report link

We have the exact same problem - it Happens on some our PC's but not all. This has only just started happening

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): have the exact same problem
  • Low reputation (1):
Posted by: Ron Schellings

79116409

Date: 2024-10-23 05:22:50
Score: 1.5
Natty:
Report link

Why not just cast the subject to an observable?


  private subject = new Subject<string>();
  public subject$ = subject.asObservable();

In this way both pipe and subscribe are available without access to the underlying subject.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: Sam Scholefield

79116404

Date: 2024-10-23 05:22:47
Score: 11 🚩
Natty:
Report link

I also want to merge DEM with different resolutions. Were you able to solve this?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve this?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user22376918

79116403

Date: 2024-10-23 05:22:47
Score: 5
Natty:
Report link

How did you manage to screw up such a simple task? List / array indices start at 0, so if you reach array[len(array)] returns an error, while array[len(array)-1] does not. ALSO, if you really wanted to iterate through each element of a list, use the code:

a = [1, 2, 3, 4, 5]
for i in a:
    print(i)
Reasons:
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: I like ducks

79116400

Date: 2024-10-23 05:22:47
Score: 3.5
Natty:
Report link

I am currently trying to drop a database (1.5TB in size), currently I am at 30 minutes and still waiting. Before running the drop command I had excluded the database from automatic SQL MI backup, as I had encountered this before. To be fair I excluded it, then ran the drop command only a minute later.

Still, 30 minutes to drop a database? Is the time taken to drop influenced by the size of the database?

Are there processes that mean excluding a database from SQL MI backup is not immediate, and also takes some time?

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: PKWilliams

79116394

Date: 2024-10-23 05:22:45
Score: 4
Natty:
Report link

My notebook was located within OneDrive, moved to a local folder :)

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

79116391

Date: 2024-10-23 05:22:44
Score: 0.5
Natty:
Report link

When you perform this:

A = [1,2,3,4,5]
i = 0
while i < len(A):
    i += 1
    print(A[i]) # A[1], A[2], A[3], A[4], A[5]

A[5] will be out of bound since index start from zero.

This might be what you expect:

A = [1,2,3,4,5]
i = 0
while i < len(A):
    print(A[i]) # A[0], A[1], A[2], A[3], A[4]
    i += 1 # At the end of loop, i is equal to 5 and then exit the while loop.

Here, A[4] is defined, which is 5.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Muhammad Ikhwan Perwira

79116386

Date: 2024-10-23 05:22:44
Score: 4.5
Natty:
Report link

You can check out this step-by-step guide on how to run c# on Windows subsystem for Linux (wsl) and vs code: https://medium.com/@manosatvik/debugging-net-applications-in-linux-on-windows-with-wsl-8fc1e0da911a

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