79321550

Date: 2025-01-01 12:06:44
Score: 2
Natty:
Report link

This worked fiine for me. emulator -avd <AVD_NAME> -gpu swiftshader_indirect

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muhammed Sibly B

79321547

Date: 2025-01-01 12:04:43
Score: 1.5
Natty:
Report link

On page 373 of William Stallings' Computer Organization and Architecture, there is a proof. It is important to note that when it says, "The two values must be equal," there is an issue with the sign in the third line where it shows negative two raised to the power of n minus one; it should be positive, not negative. The sum from the third line to the fourth line is the sum of a geometric series.

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

79321542

Date: 2025-01-01 12:00:42
Score: 5
Natty: 4
Report link

Ethan, this protocol works fine on my system with Gnuplot 6.0 except that pop up windows are built with white characters over a pale gray background. Thus, the text is not fully visible ! I can change the font size easily but not its color nor the background color. I have watched a lot on the net without finding an answer. Do you know a set of commands to remedy to that unfortunate situation. Happy new year. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Do you know a
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: P. Daegelen

79321541

Date: 2025-01-01 12:00:42
Score: 2
Natty:
Report link

If you add Internet permission to Manifest after running the app, you can delete the app from your device or emulator. Then you can run the app. Because the first time we run the app, it gets the permissions and then it doesn't get the permissions. I solve this problem with this way.

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

79321539

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

I am not sure what you want to define in line below but syntax is not correct.

var 1..N_ROUNDS: RoundOfMatch [m in 1..N_MATCHES];

I guess you want to define an array of variables. In such case you should use something like this

array[1..N_MATCHES] of var 1..N_ROUNDS: RoundOfMatch;

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

79321537

Date: 2025-01-01 11:55:40
Score: 4.5
Natty:
Report link

I've been fighting with KVM and virt-viewer 11.0-3build2 all day trying to get the displays to behave in some logical fashion. I'm on Ubuntu MATE 24.04.1 LTS, virt-manager 4.1.0-3 using QXL and spice-vdagent is running. No matter what I do, changing the VM window with the mouse causes the display to simply scale. I find ironic that Windows 11 in a VM under the same instance of KVM works seamlessly for resizing the VM window with the mouse; the displayed desktop of the VM window just grows and shrinks as you would expect, with the open windows keeping a constant size. Argh! If they can figure this out for Windows, why can't they get it right for Linux!?

For others who may face the same problem, the solution I've adopted is to just turn off Auto-resize, and inside the VM used Prefences-> Displays to adjust the window to the size I want. My two monitors have different resolutions, so the font is not the same size on both monitors, but good enough.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): face the same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: guyr

79321528

Date: 2025-01-01 11:48:37
Score: 11 đŸš©
Natty: 6.5
Report link

Thank you for the code snippet!

We are encountering the following warning on our self-hosted agent: Warning: Requested platforms linux/amd64 do not match result platforms linux/amd64,linux/arm64

Environment Details:

Agent OS Type: Linux x86_64 Could you please help us understand the cause of this warning and how to resolve it?

Thank you in advance for your assistance!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): Could you please help us
  • RegEx Blacklisted phrase (3): Thank you in advance
  • RegEx Blacklisted phrase (1.5): how to resolve it?
  • RegEx Blacklisted phrase (1): help us
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kartik Hegde

79321526

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

signup.js:12

POST http://localhost:5000/signup net::ERR_CONNECTION_REFUSED signup.js:19 Error: AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {
}, request: XMLHttpRequest, 
} signup.js:12

POST http://localhost:5000/signup net::ERR_CONNECTION_REFUSED handleSubmit @ signup.js:12 ï»ż

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

79321514

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

before I start with my answer I have a couple of questions:

  1. filter(id == id)

    You are suggesting that both dataframes have a common field id, however the first_data and second_data do not share such an id! Why is that?

  2. You are using the Jaro-Winkler similarity with a max distance of 0.5. That value is way too low to match names successfully. Let me explain why:

Jaro-Winkler Similiarity Score

out

Let's take an example from your dataset:

> 1-stringdist('Ivan Sabe','Ivan Sabel',method='jw')
[1] 0.9666667
> 1-stringdist('Ivan Sabel','Jame Labes',method='jw')
[1] 0.6666667

As you can see, Ivan Sabel would be matched with James Labes, even though their names are wildly different, just because they have common characters and common name lengths! So using 0.5 is way too low! I would suggest, using 0.9 or even higher

Answer code

Is there a solution using duckdb and arrow to do this simultaneous fuzzy and exact join?

Yes! You can use this code, which matches both data_frames first based on the id f.id = s.another_id or the Jaro-Winkler Similiratiy between both fullnames above 0.95:

library(duckdb)
library(arrow)
library(dplyr)

first_data<- structure(list(user_id = c(441391106, 441514065, 442060539, 442158489, 
                                        438197192, 438206034, 438689594, 438881971, 440386286, 440479235
), fullname = c("Siva Kumar", "Ivan Sabe", "James Bigler", "Arthur Stephens", 
                "guy guy", "Rick Schlieper", "Tony Klemencic", "baiyu xu", "Michael Fritts", 
                "Daniel Wolf Roemele"), f_prob = c(0, 1, 0.005, 0.006, 0.005, 
                                                   0.002, 0.011, 0.389, 0.005, 0.004), m_prob = c(1, 0, 0.995, 0.994, 
                                                                                                  0.995, 0.998, 0.989, 0.611, 0.995, 0.996), white_prob = c(0.021, 
                                                                                                                                                            0.001, 0.994, 0.792, 0.547, 0.949, 0.948, 0.001, 0.995, 0.795
                                                                                                  ), black_prob = c(0.013, 0.003, 0.001, 0.198, 0.398, 0.004, 0.003, 
                                                                                                                    0.001, 0.001, 0.097), api_prob = c(0.904, 0.991, 0, 0, 0.001, 
                                                                                                                                                       0.002, 0.003, 0.994, 0.001, 0.061), hispanic_prob = c(0.005, 
                                                                                                                                                                                                             0.001, 0.001, 0.002, 0, 0.001, 0.039, 0.001, 0, 0.012), native_prob = c(0.006, 
                                                                                                                                                                                                                                                                                     0.002, 0, 0, 0, 0.005, 0, 0, 0, 0.003), multiple_prob = c(0.051, 
                                                                                                                                                                                                                                                                                                                                               0.002, 0.004, 0.008, 0.054, 0.039, 0.007, 0.003, 0.003, 0.032
                                                                                                                                                                                                                                                                                     ), degree = c("", "", "Bachelor", "", "", "Master", "Associate", 
                                                                                                                                                                                                                                                                                                   "", "", ""), other_id = c(1212616, 1212616, 1212616, 1212616, 1212991, 
                                                                                                                                                                                                                                                                                                                             1212991, 1212991, 1212991, 1212991, 1212991), id = c(62399, 
                                                                                                                                                                                                                                                                                                                                                                                  62399, 62399, 62399, 63907, 63907, 63907, 63907, 63907, 63907
                                                                                                                                                                                                                                                                                                                             )), row.names = c(NA, 10L), class = "data.frame")

second_data<- structure(list(gvkey = c(12825, 12945, 12945, 12945, 16456, 16456, 
                                       16456, 12136, 12136, 17254), another_id = c(7879, 8587, 18070, 40634, 
                                                                                   13142, 17440, 41322, 899, 27199, 26604), fname = c("Gerald", 
                                                                                                                                      "John", "Dean", "Todd", "Thomas", "Ivan", "Vinit", "Scott", "Jonathan", 
                                                                                                                                      "William"), mname = c("B.", "L.", "A.", "P.", "F.", "R.", 
                                                                                                                                                            "K.", "G.", "I.", "Jensen"), lname = c("Shreiber", "Nussbaum", 
                                                                                                                                                                                                   "Foate", "Kelsey", "Kirk", "Sabel, CPO", "Asar", "McNealy", "Schwartz", 
                                                                                                                                                                                                   "Gedwed"), companyname = c(NA, "Plexus Corp.", "Plexus Corp.", 
                                                                                                                                                                                                                              NA, NA, NA, NA, "Oracle America, Inc.", "Oracle America, Inc.", 
                                                                                                                                                                                                                              NA), fullname = c("Gerald Shreiber", "John Nussbaum", 
                                                                                                                                                                                                                                                "Dean Foate", "Todd Kelsey", "Thomas Kirk", "Ivan Sabel", "Vinit Asar", 
                                                                                                                                                                                                                                                "Scott McNealy", "Jonathan Schwartz", "William Gedwed")), row.names = c(NA, 
                                                                                                                                                                                                                                                                                                                        -10L), class = c("tbl_df", "tbl", "data.frame"))


# use JaroWinkler in DuckDb
con <- dbConnect(duckdb())
dbWriteTable(con, "first_data", first_data)
dbWriteTable(con, "second_data", second_data)
query <- "
SELECT 
    f.*, s.*,
    jaro_similarity(lower(f.fullname), lower(s.fullname)) as name_distance
FROM first_data f
JOIN second_data s ON 
f.id = s.another_id
OR (
    jaro_similarity(lower(f.fullname), lower(s.fullname)) >= 0.95 
)"

result <- dbGetQuery(con, query) 
dbDisconnect(con, shutdown = TRUE)
Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: G-Man

79321496

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

How to Solve virus problem in pyinstaller generate exe

Step 1: Delete Pyinstaller latest version

Step 2: Open Pypi & Search Pyinstaller and click "Release History" See Image

Step 3: Click version 6.10.0

Copy this link.

Don't worry, It was safe no virus problem. I'm using pyinstaller version "6.10.0"

Reasons:
  • Blacklisted phrase (1): How to Solve
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How to Solve
  • Low reputation (1):
Posted by: Titanium Gopal

79321494

Date: 2025-01-01 11:02:28
Score: 1.5
Natty:
Report link

A fork of the referenced repo exists and claims to have updated the code to use androidx (along with a bugfix).

This was confirmed by OP comment: "worked!".

The issue tracker provided the link to the fork.

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

79321492

Date: 2025-01-01 11:01:28
Score: 0.5
Natty:
Report link

OK I think I figured out the problem. The AM_CONDITIONAL statement should be further up in the configure.ac (right after if test x$enable_gui... block)

Reasons:
  • Whitelisted phrase (-2): I figured out
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew K

79321483

Date: 2025-01-01 10:55:26
Score: 4.5
Natty:
Report link

So what I did this is after searching for so long, created another class

public class AuthorizationMiddlewareResultHandler : IAuthorizationMiddlewareResultHandler
{
    public Task HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
    {
        return next(context);
    }
}

Injected it

builder.Services.AddSingleton<IAuthorizationMiddlewareResultHandler, AuthorizationMiddlewareResultHandler>();

And everything started to work. Can someone please explain me what is happening?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone please explain me what
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DrXSsive

79321469

Date: 2025-01-01 10:43:24
Score: 2
Natty:
Report link

Just in case this helps someone else with this, what fixed it for me was to go to

Git menu Settings GitHub branch

and within the 'Choose account' was an authentication issue. I re-authenticated and the spinner went away.

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

79321466

Date: 2025-01-01 10:41:23
Score: 3.5
Natty:
Report link

Yes, it is actually necessary to derive your own GtkWidget and add the GtkPopover.

Here you can find an example of this:

https://stackoverflow.com/a/78803432/22768315

There is also a reference to further examples.

A more detailed explanation can be found here:

https://discourse.gnome.org/t/gtk4-gtkpopover-finalizing-warning/25881/3?u=holger

Have fun programming in the new year 2025.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Holger

79321463

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

The @thomas-lo answer really helped me solve the issue. I just modify it a little so we could modify the url on the Link onClick event. Define this function:

const handleOpenNewTab = (href) => {
    window.open(href, '_blank');
};

and in the component:

<Link
     href="#"
     className="flex items-center"
     onClick={(e) => { e.preventDefault(); handleOpenNewTab('/my/url') }}
>
    print Pdf
</Link>
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @thomas-lo
  • Low reputation (0.5):
Posted by: David

79321462

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

hii all, good morning jay bharat

Reasons:
  • Blacklisted phrase (1): good morning
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jacs willams

79321459

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

You have to make the post_date column nullable and have a default value of NULL in the database.

(answered by @Amjad in the comments)

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

79321458

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

refresh Token is just a way to make the app more flexible and secure without needing to access the db each time u make a request : let me explain : if u are familiar with access token or jwt that u return to a user after login, if u want to make a revocation of that token u need to store it in the db example scenario : somoene knew ur password in the app and u want to reinstialise ur password and log him out , u won't be able to because his token is always valid since it didnt expire so u would wait for it to expire for u to log him out (or u would change the hashing key of the token from the server which is stupid haha) , but if u store it in the db u could revoke or invalidate it eaasily u could delete it... and when the badperson(that has ur password) tries to access a protected routes(with his valid token) ur server checks if his token is found in the db or not and since uve deleted it from the db when u reinitialised ur password the server would invalidate it because its not found in the db (even if the token is valid and not expired) ,ok now this approach is good but ur server isn't stateless like whenever u send a request ur server needs to go to the db to check for that token and here comes the refresh token , u store only the refresh token in the db and the access token u send it back to the user with a short period of time and whenever the user tries to send a request to the protected route the server doesnt need to check for db , and u make that token short lived so if u want to revoke the refresh token the access token is revoked in a short period of time and also theres a lot of cool stuff u can do to the refresh token like token rotation, reuse detection etc(https://www.youtube.com/watch?v=s-4k5TcGKHg&list=PL0Zuz27SZ-6PFkIxaJ6Xx_X46avTM1aYw&index=17&ab_channel=DaveGray) i mean u could still do these stuff even with just an access token but always remember less dbs queries better performance

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mohamedchine

79321449

Date: 2025-01-01 10:28:19
Score: 1
Natty:
Report link

I was also facing the same issue. It has solved with DataType I was passing was incorrect.

Instaed of MySqlDbType.. I was using - SqlDbType.

var SqlParameters = new List() { new MySqlParameter("@TableName", MySqlDbType.VarChar){ Value = sqlTable.TableName }, new MySqlParameter("@ColumnName", MySqlDbType.VarChar){ Value = string.Join(",", sqlTable.ColumnsName) }, new MySqlParameter("@ColumnValue", MySqlDbType.VarChar){ Value = string.Join(",", sqlTable.ColumnsValue.Select(x=> $"'{x}'")) }, };

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

79321447

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

For linux user

sudo apt-get update && apt-get upgrade  
sudo apt-get install protobuf-compiler libprotobuf-dev

protobuf-compiler includes protoc compiler and libprotobuf-dev includes the well-known types.

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

79321433

Date: 2025-01-01 10:08:15
Score: 0.5
Natty:
Report link

Simpler intuitive non-math explanation (I hope) ...

Those diagrams of shift register implementations are exactly the same, i.e. one of them is "wrong" (not what you were trying to demonstrate, but I understand what your intention was).

Consider only diagram (B) for the following, but either will work for this.

[This would be a easier to understand using CRC-8: C(x) = x^8 + x^2 + x^1 + x^0]

The LFSR is 5 bits long, and the message is 8 bits long, so it will take 8 shifts to get the message completely shifted-in. The last 3 bits of the message don't cause feedback until they are shifted-out, so an additional 5 zero bits have to be shifted-in to cause feedback. Voila, 13 shifts!

To answer why in one algorithm's case more shifts are needed, the difference is the initial LFSR value used!

More Shifts Algorithm (as above)

Set the initial LFSR value (say to 0, but it doesn't matter). The message is then shifted-in and it will have to be followed by 5 extra zero bits to get feedback on all the message bits.

Less Shifts Algorithm

Set the initial LFSR value to be XORed with 5 bits of the message, then the step of shifting-in the message is already (mostly) complete, effectively 5 shifts already done!

Now shift in the 3 remaining message bits followed by 5 zero bits = 8 shifts!

The message is longer than the LFSR, so 3 zero bits can be appended to the initial LFSR value before being XORed with the message.

Setting the initial LFSR value in this way is doing two things at once: setting the LFSR initial value and effectively shifting-in 5 bits of the message.

In both cases, effectively 13 bits are shifted!

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

79321424

Date: 2025-01-01 09:55:13
Score: 1.5
Natty:
Report link

No, Facebook does not provide a webhook for outbound messages messages sent from your Facebook Page to users. Webhooks in the Messenger Platform are designed to notify your server about inbound events.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Ahmed Amin Shahin

79321420

Date: 2025-01-01 09:49:12
Score: 1
Natty:
Report link

created a bug to make intellij more intelligent. its just painful that it does not find gradle by itself out of path. and second, if one tries to give the real path, intellij does not take it until it has downloaded gradle via the wrapper.

https://youtrack.jetbrains.com/issue/IDEA-341994/use-installed-gradle

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

79321416

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

you can check my comment over there hope it will help with com.github.bjornvester.wsdl2java

link

Reasons:
  • Whitelisted phrase (-1): hope it will help
  • Low length (1):
  • No code block (0.5):
Posted by: Ismail

79321409

Date: 2025-01-01 09:37:09
Score: 0.5
Natty:
Report link

MaterialTheme() was declared twice. This was the reason for the duplication.

val colorScheme = when {
        useDynamicColors && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
            if (useDarkTheme) dynamicDarkColorScheme(context = LocalContext.current)
            else dynamicLightColorScheme(context = LocalContext.current)
        }

        useDarkTheme -> DarkColorScheme
        else -> LightColorScheme
    }
// superfluous code :
//  MaterialTheme(
//      colorScheme = colorScheme,
//      content = content
//  )
// 
    CompositionLocalProvider(
        value = LocalRippleConfiguration provides RippleConfiguration(
            rippleAlpha = RippleAlpha(
                pressedAlpha = 0.5f,
                focusedAlpha = 0.4f,
                draggedAlpha = 0.4f,
                hoveredAlpha = 0.4f
            ),
            color = LACE
        )
    ) {
           MaterialTheme(
            colorScheme = colorScheme,
            content = content
        )
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Grimy Can

79321408

Date: 2025-01-01 09:36:09
Score: 1.5
Natty:
Report link

simple answer to this :

const btnImg = btn.querySelector("img");
const imgAlt = btnImg.alt;
console.log(imgAlt);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ayo crescent

79321407

Date: 2025-01-01 09:36:09
Score: 2.5
Natty:
Report link

I found the answer... Apparently, Windows Security disables permissions of some files from connecting to internet or other third party apps. Go to Windows Security > Protection History > Find your blocked file > Controlled folder access settings > Turn Off

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

79321401

Date: 2025-01-01 09:32:08
Score: 1
Natty:
Report link

Had the same issue and running isql under LD_DEBUG=libs showed exact place where the lib failed to load. Command like

"LD_DEBUG=libs isql host user pwd -v"

In my case the error was:

  2574:     find library=libffi.so.7 [0]; searching
  2574:      search path=/opt/conda/bin/../lib              (RPATH from file isql)
  2574:       trying file=/opt/conda/bin/../lib/libffi.so.7
  2574:     
  2574:     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0: error: symbol lookup error: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0 (fatal)
  [01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so' : file not found

Conda installation affected link to libffi.so.7 (actually goes to 8.x version)

So I had to remove 2 so.7 files (links actually) in conda directory like in https://stackoverflow.com/a/75045665 ansert, Zhanwen Chen comment. And it works smoothly after that.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Agat50

79321389

Date: 2025-01-01 09:21:05
Score: 1
Natty:
Report link

A "regular" tomcat (or any other servlet container) is installed on your file system, and you can see the "bin" folder, and the "webapps". But an Embedded tomcat works differently; it consists of a single Java web application along with a full Tomcat server distribution, packaged together and compressed into a single JAR, WAR or ZIP file.

You can still configure it, but it comes "inside" your JAR.

Read more:

https://medium.com/@youeleven/understamding-spring-boots-embedded-tomcat-container-8e1cc32bc689#:~:text=The%20embedded%20Tomcat%20container%20in%20Spring%20Boot%20revolutionizes%20the%20way,developers%20building%20modern%20web%20applications.

https://www.theserverside.com/definition/embedded-Tomcat

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: OhadR

79321388

Date: 2025-01-01 09:20:04
Score: 6.5 đŸš©
Natty: 5
Report link

I am having exact same issue, but following the above solution as well as adding babel or ts-parser, didn't help me. Do you guys have other suggestions i could try

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am having exact same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: shahriyar Rahman

79321380

Date: 2025-01-01 09:16:03
Score: 0.5
Natty:
Report link

Before you run the init command, you need to install dapr first. You can try this command winget install Dapr.CLI or inget install Dapr.CLI --source winget to install dapr in Windows.

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: frank

79321372

Date: 2025-01-01 09:06:00
Score: 6.5 đŸš©
Natty: 5.5
Report link

which string you used in Filter array?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): which
  • Low reputation (1):
Posted by: YashB

79321359

Date: 2025-01-01 08:47:56
Score: 2
Natty:
Report link

The issue is,that Class-level function attributes (including lambdas) become methods via Python’s descriptor protocol. python descriptor doc

Now, calling instance.boo() tries to pass the instance as the first argument—even if your code object has zero parameters. inspect.signature sees the mismatch (a code object with 0 parameters vs. a “bound method” expecting 1) and raises ValueError: invalid method signature. Adding at least one parameter (e.g., lambda self:) or decorating with @staticmethod aligns the function’s parameter list with how Python is actually calling it.

TLDR - A zero-argument function in a class is not a valid instance method signature, and inspect. signature flags it as invalid. Suppose you want a no-argument callable that doesn’t accept self. In that case, you must explicitly tell Python that it’s a staticmethod (or define it elsewhere) so that the automatic binding of self is disabled.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @staticmethod
  • Low reputation (1):
Posted by: Abraar

79321352

Date: 2025-01-01 08:39:51
Score: 9 đŸš©
Natty:
Report link

I am having the same problem. You wrote it is a known issue. Just a friendly check: any expectation on a time frame for that? Thanks in advance for any light you can shed on this.

Cheers, Alex

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Cheers
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Alexei Z

79321337

Date: 2025-01-01 08:25:49
Score: 1
Natty:
Report link

The modified way is the below:

df2.cache() # Marks the df2 as cachable
df2.count()  # Action to trigger computation and caching
df2.show()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Srinimf

79321336

Date: 2025-01-01 08:24:48
Score: 1.5
Natty:
Report link

Check if you have added ID or any other field as primary key properly for the parent and child tables.

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

79321335

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

In Windows

if your Android Studio install by default, you can use this command

1- flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" 2- flutter doctor

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Musab Muhammed

79321328

Date: 2025-01-01 08:16:47
Score: 1
Natty:
Report link

You commented out the line -

# HumanMessage(content="{question}")

So, I guess the current user message never gets included in the prompt on the same turn. That's why the chain is responding to the old message.

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

79321327

Date: 2025-01-01 08:14:46
Score: 2
Natty:
Report link

This is the line i added which fixed the issue...

ansible_ssh_common_args = -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: sjj

79321326

Date: 2025-01-01 08:14:46
Score: 2.5
Natty:
Report link

Rename the .prpt file to .prpt.zip

Unzip the files.

The SQL will be on datastores/sql-ds.xml

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Timo-thy

79321324

Date: 2025-01-01 08:14:46
Score: 4
Natty:
Report link

You could create a flow as following picture shows to filter users.

enter image description here

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

79321323

Date: 2025-01-01 08:12:45
Score: 2
Natty:
Report link

I will recommend to use the stripe hosted checkout integration using stripe npm package (https://www.npmjs.com/package/stripe) and here is the documentation link -> https://docs.stripe.com/api/checkout/sessions/create?lang=node It will return the "url" field in the response on which you have to redirect it. Because other stipe integration is old and deprecated.

Note: I have already used and integrated.

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

79321322

Date: 2025-01-01 08:12:45
Score: 4.5
Natty:
Report link

I’ve encountered a similar issue when switching to Cloudflare Workers. The build included unnecessary dependencies like Angular, Apache, and Rust, which made the project size balloon. Once I optimized my build configuration and removed the unused tools, the size was greatly reduced. If you're facing the same issue, I'd recommend reviewing your build and excluding any unnecessary libraries.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhammad Junaid

79321313

Date: 2025-01-01 07:58:42
Score: 2
Natty:
Report link

When you give neighbor bits to the check_cell, you should provide the bits from "q" instead of "data". because the output of cells will compute based on the current state of "q".

The meaning of x outputs, you computed not initialized data.

Flow: Init "data" to "q" -> Compute the next cell state based on the initialized "q".

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you give
  • Low reputation (1):
Posted by: Gwanghwi Seo

79321308

Date: 2025-01-01 07:53:41
Score: 0.5
Natty:
Report link

Not yet, but there is an ongoing ESLint proposal that seems ready for implementation by the team: https://github.com/typescript-eslint/typescript-eslint/issues/5647.

Show your support by giving it a thumbs up to help prioritize it!

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

79321303

Date: 2025-01-01 07:46:40
Score: 2.5
Natty:
Report link

Turns out that an expo project's path must only have English letters - and mine also had hebrew letters. So after moving the project to another folder in a path with only English letters the error stopped occuring.

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

79321290

Date: 2025-01-01 07:27:37
Score: 5
Natty:
Report link

Sorry I do not have the answer however I am experiencing exactly the same issue and was wondering if you found a resolution.

Reasons:
  • Blacklisted phrase (2): was wondering
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jojo

79321279

Date: 2025-01-01 07:14:34
Score: 3
Natty:
Report link

yes i understood your problem im also facing such issue but in short AWS S3 bucket or cloudinary

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

79321275

Date: 2025-01-01 07:10:33
Score: 0.5
Natty:
Report link

Answer: These are common challenges with Flutter CarPlay related to app lifecycle and background execution. Here are steps to resolve or mitigate these issues:

  1. Blank Screen When Opening CarPlay Without the App Open Ensure proper initialization in your app's didFinishLaunchingWithOptions (iOS entry point). Confirm that all required plugins for CarPlay and UI rendering are initialized.

  2. Blank Screen After Killing the App Handle app lifecycle transitions using WidgetsBindingObserver to detect and reinitialize CarPlay components when the app is reopened. Add logic to restore CarPlay sessions when the app is relaunched.

  3. Unable to Call APIs When the Device Is Locked Add the following to your Info.plist for background execution:

    UIBackgroundModesfetchprocessing

Use secure storage like Keychain for tokens, which remain accessible when the device is locked. Implement background fetch or retry logic for API calls.

Alternatives Check for updates or known issues in the Flutter CarPlay plugin repository. Consider implementing critical CarPlay features in native Swift/Objective-C code and exposing them to Flutter via platform channels.

Resources Apple's CarPlay Documentation Apple's Background Tasks Guide

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

79321273

Date: 2025-01-01 07:09:32
Score: 3.5
Natty:
Report link

Did you run/debug your app in Windows? That was my issue. I just need to change my device to build on Edge/Chrome.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: wuuyungwuu

79321268

Date: 2025-01-01 07:07:32
Score: 2.5
Natty:
Report link

In my case, the issue was that 'watchman' wasn't listed under Full Disk Access in macOS settings. To resolve it, I manually added 'watchman' to Full Disk Access in the Privacy settings. Once I did that, everything worked perfectly.

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

79321266

Date: 2025-01-01 07:03:31
Score: 1.5
Natty:
Report link

According to this issue, using Micro Frontends (MFE) with the Next.js app directory is not currently supported. This limitation will persist until Vercel implements module-federation in TurboPack.

In the meantime, I recommend exploring Next.js Multi-Zones as an alternative.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mahdi Ta'ala

79321263

Date: 2025-01-01 07:02:31
Score: 0.5
Natty:
Report link

To load your application context you have to mention it explicitly in web.xml. Like below. The name application-context.xml and location may differ

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring/application-context.xml</param-value>
</context-param>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam....

79321260

Date: 2025-01-01 06:55:30
Score: 3
Natty:
Report link

I am unsure about your use case but one thing that you can do is put the api call on a test page on a button and check the payload in the network section of the console.

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

79321252

Date: 2025-01-01 06:47:28
Score: 1
Natty:
Report link

SIMD should work faster that standard C code. Could you try the below suggestions?

  1. Try loop unrolling the for loop in msa_memcpy_test. Whole point of introducing SIMD is to eliminate the for loops by executing code in a vector fashion and avoid the for loop overheads. Although I am not sure if it will impact much given that SIMDs have ~1 CPI. You could use #pragma unroll for this.

  2. Try aligning addresses of *src, *dest. Unaligned memory addresses could impact SIMD performance. You'll have to do this when you call malloc in main(). There are functions that could do it for you or you could use some pointer arithmetic. See this - https://tabreztalks.medium.com/memory-aligned-malloc-6c7b562d58d0

  3. Do you really need that __builtin_msa_ld_w? You could type cast src to *v4i32 and pass it directly to __builtin_msa_st_w.

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rahul Shrotey

79321242

Date: 2025-01-01 06:35:26
Score: 1.5
Natty:
Report link

In 2021, that News Feed Eradicator browser extension added support for Instagram's website: https://github.com/jordwest/news-feed-eradicator/pull/105

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

79321235

Date: 2025-01-01 06:29:24
Score: 1.5
Natty:
Report link

For me including this statement at top import "react-native-get-random-values"; in the file where i am using the GooglePlacesAutocomplete Resolved the problem.

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

79321234

Date: 2025-01-01 06:29:23
Score: 10.5 đŸš©
Natty: 6.5
Report link

Did you find any solution? I tried modify the history stack but it still is redirecting to gateway.

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):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find any solution
  • Low reputation (1):
Posted by: A K M Fahim Kabir

79321233

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

Got it! If you're looking for a static URL for a Google Font, the best approach is to download the font files and host them yourself, as Google Fonts doesn't provide direct static URLs. Let me know if you'd like more details!https://cavamenudallas.com/

Also, feel free to check out Cava Menu Dallas for digital menu insights!

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

79321222

Date: 2025-01-01 06:18:20
Score: 3
Natty:
Report link

Here's a detailed guide I wrote on flashing firmware from one ESP32 to another: Flashing Firmware to an ESP32 Using Another ESP32. It covers the entire process step by step. Feel free to check it out and ask if you have any specific questions!

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aditya Bangde

79321219

Date: 2025-01-01 06:16:20
Score: 1
Natty:
Report link

FOUND THE ONE OF THE SOLUTIONS

Intercepting routes were not working on dev server. What I did is I deleted the .next folder and then made a build of my NEXTJS app. After building my NEXTJS app I served my build and Intercepted routes started working as Expected.

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

79321218

Date: 2025-01-01 06:09:18
Score: 3.5
Natty:
Report link

unless the third-party app supply interfaces

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

79321217

Date: 2025-01-01 06:07:18
Score: 2
Natty:
Report link

depend on what kind of application you try create. I create app MDI windows ,using only extjs , no server script. with custom components contain sub components . event become weird

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

79321213

Date: 2025-01-01 06:01:16
Score: 8.5 đŸš©
Natty: 6
Report link

Same Issue!

So do we have to wait user for 60 seconds or what?

after 60 seconds we have to ask the backend "Did you get the response?"

if not then ?

Reasons:
  • RegEx Blacklisted phrase (3): Did you get the
  • RegEx Blacklisted phrase (1): Same Issue
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Frontend

79321210

Date: 2025-01-01 05:58:14
Score: 4
Natty: 4.5
Report link

https://unitedcoders.world/blog/print_class_in_yolo.html Here is simple code for the print class name in yolo using ultraytics

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

79321206

Date: 2025-01-01 05:53:13
Score: 3
Natty:
Report link

Here's a detailed guide I wrote on flashing firmware from one ESP32 to another: Flashing Firmware to an ESP32 Using Another ESP32. It covers the entire process step by step. Feel free to check it out and ask if you have any specific questions!

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aditya Bangde

79321205

Date: 2025-01-01 05:51:13
Score: 1
Natty:
Report link

If you wanna open the keyboard from the side, the only way to achieve this is to make your own keyboard View, yes it's hard, but you can find examples of such views on GitHub, fork one of them, and adjust all of the design parameters you need. You'll get your design of the keyboard, and you probably will need to make some tricks around EditText, and override setOnTouchListener or setOnFocusChangeListener to achieve opening your own keyboard, not the system one.

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

79321200

Date: 2025-01-01 05:49:12
Score: 3.5
Natty:
Report link

https://unitedcoders.world/blog/print_class_in_yolo.html here is full code print class in yolov8 & yolov11

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

79321193

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

Verify Webhook Subscription: Ensure you’ve subscribed to the messages event in the Meta Developer Dashboard. Without this subscription, customer-initiated messages won’t trigger the webhook.

Test Webhook Accessibility: Check that your webhook is publicly accessible and responds with a 200 HTTP status code. Use tools like Postman or Webhook.site to inspect incoming requests.

Customer Opt-In: WhatsApp Cloud API requires that the customer has interacted with your business first. If this hasn’t happened, messages won’t trigger the webhook due to Meta’s privacy policies.

Analyze Logs: Check your webhook server logs to see if requests from WhatsApp servers are reaching your endpoint. Also, inspect the payload structure to ensure correct handling.

Re-Verify Webhook Setup: If everything seems fine, try re-verifying your webhook or re-subscribing to events in the Meta Developer Dashboard.

If you’ve verified all the above and the issue persists, it may be worth contacting Meta Support with detailed logs and examples for further investigation.

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

79321188

Date: 2025-01-01 05:21:08
Score: 1.5
Natty:
Report link

Most people has confusion about DPDK EAL parameters. The EAL parameters are documented here https://doc.dpdk.org/guides/linux_gsg/linux_eal_parameters.html. These EAL parameters are initialized by rte_eal_init().

Other parameters documented in testpmd and other applications are not handled by rte_eal_init(). They are custom parameters and the programmers has to parse and handle them all in the application. You will see getopt_long() api with struct option in testpmd and example applications to parse the custom command line arguments.

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

79321185

Date: 2025-01-01 05:18:07
Score: 1.5
Natty:
Report link

I'm not sure since I don't have experience on pico 2.

But like other micro controller programming like Arduino etc., adding while True: before the print statement would help it

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

79321181

Date: 2025-01-01 05:15:06
Score: 4
Natty: 4.5
Report link

CVPixelBufferBuffer utils for crop/scale/rotate

https://gist.github.com/lich4/d977986b92245aaf0f83aa0e1e0317de

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

79321163

Date: 2025-01-01 04:46:01
Score: 0.5
Natty:
Report link

welcome to programming, to Python, and StackOverflow.

Variables created during the execution of a script cease to exist when that script's execution ends. You cannot, therefore, record the number of times a script has run in a variable.

If you want information generated by or during the execution of a script to persist, you must save that information to a file in a process called serialisation.

In your case, you could write a snippet of code that executes every time some script (or even some function in that script - as in my example below) runs or is invoked, that opens a file, reads its contents, and then modifies those contents to reflect the fact that the script/function has been run/invoked.

I've set out a (somewhat elaborate) example below of how you might set something like this up. All this boilerplate code might seem excessive to merely count the number of times something has run - and it IS - but this approach could avail you if you wanted to capture more sophisticated diagnostic metrics about your script's operation (for instance, the values of some variables that were created during your script's execution).

import json
from pathlib import Path
from typing import Optional


def initialise_execution_count(path_to_file: Path) -> None:
    """
    If an execution count (json) file exists at the provided target
    path, opens the file and sets its "count" to 0. If the file doesn't
    exist, creates the file and sets count to 0.

    """

    with open(path_to_file, mode="w") as f:
        data: dict = dict(count=0)
        json.dump(data, f)


def read_execution_count(path_to_file: Path) -> int:
    """
    Reads the json file at the target path provided and returns the
    "count" value. If no file exists at the target path, initialises
    execution count at that target path and returns 0.

    """
    try:
        with open(path_to_file, mode="r") as f:
            data: dict[str, int] = json.load(f)
        return data["count"]
    except FileNotFoundError:
        initialise_execution_count(path_to_file=path_to_file)
        return 0


def increment_execution_count(path_to_file: Path) -> None:
    """
    Reads the currently recorded execution count at the target path, and
    updates the file at the target path to register the next higher
    count.

    """
    current_count = read_execution_count(path_to_file)
    new_count = current_count + 1
    with open(path_to_file, mode="w") as f:
        data = dict(count=new_count)
        json.dump(data, f)


def some_func(execution_count_file: Optional[Path] = None) -> None:
    """
    Some function that executes some logic and optionally takes an
    target path to an execution count file. If an execution count file
    is provided, calls increment_execution_count on the target path
    every time this function is run.

    This logic could be placed within a script so that every time the
    script is run, the execution count is incremented by one.

    """
    print("Running some func")
    if execution_count_file is not None:
        increment_execution_count(execution_count_file)


def main():
    """
    The main function that runs when this script is run. 
    """
    # Define the path to the file where I want the execution count to be 
    # recorded. 
    execution_count_filename = Path("some_func_execution_count.json")

    # Initialise the execution count. 
    initialise_execution_count(execution_count_filename)
    
    # Call "some_func" 10 times. This is analogous to running some 
    # script 10 times. 
    for _ in range(10):
        some_func(execution_count_file=execution_count_filename)
        # Print the current execution count to the screen. 
        print (read_execution_count(execution_count_filename))

if __name__ == "__main__":
    # If this confuses you - visit: 
    # https://stackoverflow.com/questions/419163/what-does-if-name-main-do
    main()
    
# Output: 

# Running some func
# 1
# Running some func
# 2
# Running some func
# 3
# Running some func
# 4
# Running some func
# 5
# Running some func
# 6
# Running some func
# 7
# Running some func
# 8
# Running some func
# 9
# Running some func
# 10

All this said, the proper way to record ("log") information generated by/during your code's execution is using logging. See this answer for more.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): In your case
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Vin

79321157

Date: 2025-01-01 04:41:00
Score: 2
Natty:
Report link
svgr({
  svgrOptions: {
    ref: true,
    svgo: false,
    titleProp: true,
    exportType: 'named',
  },
  include: '**/*.svg',
})

Adding these options to svgr might work refernce github issue https://github.com/vitest-dev/vitest/discussions/5271

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

79321156

Date: 2025-01-01 04:41:00
Score: 1.5
Natty:
Report link

Make sure you are using compatible versions of React, Zustand, and react-dom. In my case, it turned out to be my node version that was outdated. Switching to node v20.x from v16.x solved the problem.

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

79321147

Date: 2025-01-01 04:26:58
Score: 1.5
Natty:
Report link

How to export YOLO segmentation model with flexible input sizes

from ultralytics import YOLO
import coremltools as ct

# Export to torchscript first
model = YOLO("yolov8n-seg.pt")
model.export(format="torchscript")

# Convert to CoreML with flexible input size
input_shape = ct.Shape(
    shape=(1, 3, 
           ct.RangeDim(lower_bound=32, upper_bound=1024, default=640),
           ct.RangeDim(lower_bound=32, upper_bound=1024, default=640))
)

mlmodel = ct.convert(
    "yolov8n-seg.torchscript",
    inputs=[ct.ImageType(
        name="images",
        shape=input_shape,
        color_layout=ct.colorlayout.RGB,
        scale=1.0/255.0
    )],
    minimum_deployment_target=ct.target.iOS16
)

mlmodel.save("yolov8n-seg-flexible.mlpackage")

This creates an .mlpackage that accepts images from 32 32 to 1024 1024 (you can modify these bounds as needed). Default is 640 640.

Read about the stuff here:

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Rushil M

79321137

Date: 2025-01-01 04:11:56
Score: 0.5
Natty:
Report link

In Nestjs default it will omit any fields that have an empty array. To also take properties have an empty array. You can configure it on the loader options, make sure you install @grpc/proto-loader. Example:

const app = await NestFactory.createMicroservice<MicroserviceOptions>(AppModule, {
  transport: Transport.GRPC,
  options: {
    package: 'hero',
    protoPath: join(__dirname, 'hero/hero.proto'),
    loader: {
        defaults: true,
        arrays: true,
      },
    },
});

Nestjs: https://docs.nestjs.com/microservices/grpc#options
Proto-loader: https://github.com/grpc/grpc-node/blob/master/packages/proto-loader/README.md

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PhĂĄt Đỗ

79321134

Date: 2025-01-01 04:06:55
Score: 1
Natty:
Report link

The question has already been answered, but thought I would add the following documentation which provides a bit more information.

In short, Android Studio does not mention the minor version of Intellij used, so in order to find that the build number can be compared to Intellij release notes.

https://plugins.jetbrains.com/docs/intellij/android-studio.html#matching-versions-of-the-intellij-platform-with-the-android-studio-version

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

79321132

Date: 2025-01-01 04:02:54
Score: 2.5
Natty:
Report link

this is not a big issue , dont worry i'll help

1- close every thing 2- go to folder where you created your app for example E:\Hasaan\rn 2\awesomeproject 3-now open the vs code from here and re run the command npm run android

the error is beacuse either the scrip inst availble in your packge.json folder if the script is availble the you aint running the command incorrect directory [enter image description here][1][enter image description here][2]

perosnal help insta :@im_hasaan_ [1]: https://i.sstatic.net/QSCDkO5n.png [2]: https://i.sstatic.net/6EZn1tBM.png

Reasons:
  • Blacklisted phrase (1): enter image description here
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammad Hasaan Fa-21-BSSE-212

79321121

Date: 2025-01-01 03:38:51
Score: 0.5
Natty:
Report link

this worked for me. Pass env as a explicit variable and secrets too. https://colinsalmcorner.com/consuming-environment-secrets-in-reusable-workflows/#attempt-3-pass-the-environment-and-secrets

Reasons:
  • Whitelisted phrase (-1): this worked for me
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: deepak

79321117

Date: 2025-01-01 03:35:51
Score: 3.5
Natty:
Report link

01001101 01100001 01110010 01100011 01101111 01110011 00100111 01110011 00100000 01100011 01100001 01101110 01100011 01100101 01110010 00100000 00111001 00111001 00101110 00111001 00100000 01110010 01100101 01110000 01100101 01100001 01110100 01101001 01101110 01100111 00100000 00100101 00100000 01100110 01101001 01101110 01101001 01110011 01101000 01100101 01100100 00100000 01101011 01101001 01101100 01101100 01101001 01101110 01100111 00100000 01101000 01101001 01101101

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

79321107

Date: 2025-01-01 03:21:47
Score: 1
Natty:
Report link

The javascript property that indicates what the tag is tagName.

Once you resolve the locator to an element you could evaluate the property, something like this:

tagName = element.evaluate("el => el.tagName")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hal Patinkin

79321087

Date: 2025-01-01 02:53:41
Score: 1.5
Natty:
Report link

Hey not exactly what you are asking for but I have a dump here of subreddits you can use for random martymc.fyi/prefixed_names_and_subs_250k.json

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

79321073

Date: 2025-01-01 02:31:36
Score: 0.5
Natty:
Report link

what you have to do is make something like my "value" and use that to console.log() and then call that instead of i

const content = document.querySelector(".content")
let value = ""
let displayHTML = ""
let maxValue = prompt("number to fizzbuzz to")
if (maxValue > 2000){
   maxValue = 1000
}
for (let i = 1; i <= maxValue; i++) {
   if (i % 3 === 0 && i % 5 === 0) {
      value = 'fizzbuzz'
   } else if (i % 3 === 0) {
      value =  'fizz'
   } else if (i % 5 === 0) {
      value = "buzz"
   } else {
      value = '' + i
   }
   displayHTML += "<p>" +`&nbsp;&nbsp;${value}, ` + "</p>";
   content.innerHTML = displayHTML
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): what you have to
  • Low reputation (1):
Posted by: Andrew Borlin

79321071

Date: 2025-01-01 02:30:36
Score: 3
Natty:
Report link

You can look into https://github.com/jiangjianshan/msvc-pkg. This respository support to build GMP on Windows using MSVC toolset. Look into its README and very esay to use.

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

79321069

Date: 2025-01-01 02:21:35
Score: 1.5
Natty:
Report link

After checking Charles .keystore manually, I did find a reference to the intermediate CA. It was added as a root CA some time ago but then manually removed from the GUI for another root CA; however, it was not actually deleted from the keystore, and Charles was sending it behind the scenes. I had to reset the keystore, and now the behavior is as expected.

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

79321064

Date: 2025-01-01 02:12:32
Score: 6
Natty: 7.5
Report link

I have such a file, I can decrypt it but with the tool you gave me, but how can we compile it?

Reasons:
  • Blacklisted phrase (1): how can we
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sexi Gamer

79321062

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

If you wish to set the Resizable of all rows of the Datagridview to false, you can try to use the Row Template to Customize Rows in the Windows Forms DataGridView Control.

DataGridViewRow row = this.dataGridView1.RowTemplate;
row.Resizable = DataGridViewTriState.False;
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT

79321061

Date: 2025-01-01 02:06:31
Score: 0.5
Natty:
Report link

An alternate solution to the posted one (though significantly less ergonomic, it reduces the nesting)

template <typename... Ts>
inline auto transform_all(auto &&fn, std::optional<Ts> &&...optionals)
    -> std::optional<std::invoke_result_t<decltype(fn), Ts...>> {
  bool is_error = (!optionals.has_value() || ...);
  if (is_error) {
    return std::nullopt;
  }
  return fn(std::forward<decltype(optionals)>(optionals).value()...);
}

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

79321059

Date: 2025-01-01 02:02:30
Score: 0.5
Natty:
Report link

If I'm understanding your problem correctly, you want ledPin to be turned on when you run your sketch, correct?

Looking at your logic in sensor() it seems that you want ledPin to turn off when sensorPin is triggered. In this case it would make sense for you to set ledPin to HIGH in your setup function.

It can look something like this:

void setup() {
  pinMode(ledPin, OUTPUT);
  // Setting ledPin to on by default:
  digitalWrite(ledPin, HIGH);
  pinMode(sensorPin, INPUT);
  Serial.begin(9600);
  delay(2000);
  Serial.println("Available! Give command ('on' or 'off').");
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: K.Sx0000

79321056

Date: 2025-01-01 01:58:29
Score: 2
Natty:
Report link

I would like to run slow log 10 command in Redis cache to check which is taking so long time and I would like to know if it is possible to run the slow log 10 in azure portal or do we need to have third party app.

Azure Cache for Redis support most of Redis commands, including the SLOWLOG command.

And as @MarcGravell mentioned, Redis console in the Azure portal provides a secure way to run Redis commands. For more information about how to run Redis commands with Azure Cache for Redis, please check this doc: https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-development-faq#how-can-i-run-redis-commands-

enter image description here

Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • Blacklisted phrase (1): please check this
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @MarcGravell
  • High reputation (-2):
Posted by: Fei Han

79321053

Date: 2025-01-01 01:57:29
Score: 3
Natty:
Report link

You can try plugging and unplugging your micro:bit, but if it still doesn't work, just download your code file and transfer it manually through the file explorer.

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

79321048

Date: 2025-01-01 01:53:28
Score: 2
Natty:
Report link

Adding component="div" works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chuong Lac

79321046

Date: 2025-01-01 01:52:27
Score: 7.5
Natty: 8
Report link

Yes, that's exactly what I want to know!!! Just BASIC like we used on the C64. Or TRS-80. Or Apple Whatever. Or VIC20. Or Acorn. Beginners All-purpose Symbolic Instruction Code, DO YOU SPEAK IT?

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Tony Fish

79321045

Date: 2025-01-01 01:50:26
Score: 2
Natty:
Report link

In my case I just had to login gitlab from my browser. It asked for a mail verification, and after that, retrying "git push" worked fine.

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

79320995

Date: 2025-01-01 01:00:18
Score: 0.5
Natty:
Report link

This question appears to be a duplicate of another question here on SO.

I'm adding this answer b/c I feel that most of the answers here are (either) wrong/out-dated or too complicated. And strictly as an opinion, I'll opine that the authors/maintainers of git are suffering from something similar to what US President Joe Biden has! IOW, the fact that you cannot get a straight answer from git status spells dysfunction in git-world.

That said, my simplified answer to the Question "Check if pull needed in Git" is this:

## cd to git repo; e.g.
$ cd ~/blockhead.git
$ git pull --dry-run         # alternatively: 'git fetch --dry-run'
...
From thegitremote:/home/joe/git-srv/blockhead.git
   2acea0b..b797bb0  master     -> origin/master  # <=== THIS MEANS A CHANGE HAS BEEN MADE

IOW: If there is a diff between the local and remote repos, it will be expressed in the output of git pull --dry-run (similar to that shown above). If there is no diff the output will be null.

Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Seamus

79320978

Date: 2025-01-01 00:41:14
Score: 1.5
Natty:
Report link

Try verifying Privacy and Security > Third Party Cookie settings in Chrome. You can add an exception for the domain of your page that is hosting the iFrame.

For Firefox users, add an exception in Privacy and Security -> Enhanced Tracking Protection

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

79320961

Date: 2025-01-01 00:09:09
Score: 2
Natty:
Report link

In my case, I found that the EC2 instance was not properly associated with an Instance Role. In my case, this AWS re:Post page was helpful!

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

79320960

Date: 2025-01-01 00:09:09
Score: 1
Natty:
Report link

On Linux, by cgroups

Both cpu and memory limits are applied by the kubelet (and container runtime), and are ultimately enforced by the kernel. On Linux nodes, the Linux kernel enforces limits with cgroups. https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

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