79431390

Date: 2025-02-11 21:46:13
Score: 1.5
Natty:
Report link

No, it is not possible for the time being to use a custom domain. The only alternative is to use a url shortening service, such as Bitly or Rebrandly, which allow custom domains, then you can embed the original Google Form URL.

User will see the custom-domain url and then be redirected to the original Google url upon clicking.

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

79431389

Date: 2025-02-11 21:46:13
Score: 1
Natty:
Report link

The answer is:

def filter_sort_explicit(df, c, l):
    """
    a function that filters a [df] on [c]olumn by explicitly specificying the order of the values (in that column) in a [list]
    """
    return df.filter(pl.col(c).is_in(l)).sort(pl.col(c).cast(pl.Enum(l)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: likethevegetable

79431374

Date: 2025-02-11 21:40:12
Score: 1
Natty:
Report link

Please make sure the element is visible.

In Facebook\WebDriver the 'see' command actually checks visibility.

You may want to scroll to the element first.

$I->scrollTo($yourElementSelector);

Upside to the PhpBrowser is that it is quick.

On the other hand the Facebook webdriver support JavaScript.

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

79431373

Date: 2025-02-11 21:40:12
Score: 1
Natty:
Report link

You may have to make multiple requests to textract to get the entire result. The response from textract may have a NextToken entry. You have to use your original job_id and the NextToken to get the next set of results. And you need to keep repeating that until there is no NextToken.

Have a look at the getJobResults function here:

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

79431372

Date: 2025-02-11 21:39:11
Score: 0.5
Natty:
Report link
this might the answer:

    WITH json_data AS (
    SELECT PARSE_JSON('{
        "docId": 123,
        "version": 1,
        "docName": "Test doc",
        "attributtes": [
            {"key": "eff_date", "value": ["22-09-2024", "12-08-2022"]},
            {"key": "renew_flag", "value": ["Y"]}
        ],
        "created_by": "CCVVGG"
    }') AS data
)
SELECT 
    data:docId::INT AS docId,
    data:version::INT AS version,
    data:docName::STRING AS docName,
    data:created_by::STRING AS created_by,
    eff_dates.value::STRING AS eff_date,  -- Flatten eff_date values
    renew_flag.value::STRING AS renew_flag
FROM json_data,
LATERAL FLATTEN(input => data:attributtes) attr
LEFT JOIN LATERAL FLATTEN(input => attr.value:value) eff_dates ON attr.value:key::STRING = 'eff_date'
LEFT JOIN LATERAL FLATTEN(input => attr.value:value) renew_flag ON attr.value:key::STRING = 'renew_flag'
WHERE attr.value:key::STRING IN ('eff_date', 'renew_flag');
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Roshan Sharma

79431371

Date: 2025-02-11 21:39:11
Score: 1
Natty:
Report link

This is latest recommended approach from GCP docs here: https://cloud.google.com/run/docs/authenticating/public#terraform

resource "google_cloud_run_service_iam_binding" "default" {
  location = google_cloud_run_v2_service.default.location
  service  = google_cloud_run_v2_service.default.name
  role     = "roles/run.invoker"
  members = [
    "allUsers"
  ]
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: stefan2718

79431361

Date: 2025-02-11 21:32:09
Score: 4
Natty: 5
Report link

Thank you! Just what I was looking for in trying to create a hierarchy check

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3788592

79431352

Date: 2025-02-11 21:30:08
Score: 2.5
Natty:
Report link

In my case I had the x-amazon-apigateway-integration object sitting outside the method object. This doesn't break the OpenAPI spec but does break the CDK deployment. Simple typo.... a few days lost.

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

79431348

Date: 2025-02-11 21:28:07
Score: 4
Natty: 6.5
Report link

!curl -fsSL https://ollama.com/install.sh | sh works for me, thanks!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user616701

79431346

Date: 2025-02-11 21:27:06
Score: 5.5
Natty:
Report link

I have the same issue and got fixed after install XQuartz from https://www.xquartz.org. After installation, restart your Mac. And then

install.packages("tcltk")

install.packages("plot3D")

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: SummerXia

79431345

Date: 2025-02-11 21:27:06
Score: 1
Natty:
Report link

There is a prosibility to let the system throw an exception in this case:

checked(int.MinValue * -1)

will throw the exception
instead of:

unchecked(int.MinValue * -1)

will give the result of -2147483648 and no exception.
See also the link to learn.microsoft given in the answer of Rand-Random

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

79431342

Date: 2025-02-11 21:26:06
Score: 1
Natty:
Report link

By default the url that gitlab generates is on http protocol you need to change that to https and it should work.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: mekbib.awoke

79431340

Date: 2025-02-11 21:24:06
Score: 0.5
Natty:
Report link

This may not be the solution for everyone but the answer comes down to how cross compilation and linking works. What I am attempting to do here is create a static binary, there are two commands that can be used:

RUSTFLAGS="-Ctarget-feature=-crt-static" - dynamic linking of the c runtime.

RUSTFLAGS="-Ctarget-feature=+crt-static" - fully static compilation of C runtime.

There is also a separate issue here, the use of openssl-dev - this requires glibc to compile by default, you need to set this up to be compiled statically. I haven't got to the bottom of this yet but the three solutions I have found (2 work, 1 I haven't tried yet).

  1. Copy all certs and openssl object files to the scratch container - works.
  2. Compile and use static file in openssl OS distro - not tried.
  3. Use Cargo vendored openssl implementation

I am planning on writing a medium article where I added all my problems and findings, just think it might help others when I post this.

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

79431334

Date: 2025-02-11 21:21:04
Score: 5
Natty:
Report link

check out this website

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ifiokabasi Emmanuel

79431331

Date: 2025-02-11 21:20:04
Score: 1
Natty:
Report link

I had exactly the same error when trying to install cocoapods using the official instructions.
Trying to install ruby via brew wasn't much use either. What worked for me was brew install cocoapods

Reasons:
  • Blacklisted phrase (0.5): exactly the same error
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: IanF

79431323

Date: 2025-02-11 21:16:03
Score: 2.5
Natty:
Report link

I think this has to do with children margin and padding, make sure to specify margins and paddings, there is a great extension to show you borders so that you can see which one is pushing others or transforming them, the tool name : CSS outline you can fine i in google extensions.

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

79431312

Date: 2025-02-11 21:09:02
Score: 1.5
Natty:
Report link

With plm 2.6-5, both (balanced and unbalanced data) work on my end.

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

79431302

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

The implementation that Spring builds upon doesn't expose receiving pings to user code and just automatically responds with a pong when receiving a ping.
It's the same as this question for JSR 356: Receiving pings with Java EE Websocket API

However... looking at this Chrome bug, it seems that browsers don't necessarily send ping requests.
So you could send pings from the server, implement something equivalent in JS or just rely on the client reconnecting when the connection drops.

There's some discussion here: Sending websocket ping/pong frame from browser

Reasons:
  • No code block (0.5):
Posted by: scrhartley

79431301

Date: 2025-02-11 21:07:01
Score: 2.5
Natty:
Report link

Update - Mongoose Performance Issue and Fix

After upgrading Mongoose from version 6.12.9 to 8.10.0, queries executed inside AWS Lambda using the Serverless Framework became four times slower. However, the same queries remained fast when executed outside the framework (e.g., locally, in a manually deployed Lambda, or using the native MongoDB driver).

Extensive debugging revealed that the issue was not caused by Mongoose itself but rather by how it was bundled inside the Lambda function when using esbuild. Moving Mongoose to an AWS Lambda Layer restored optimal query performance. The fix was to explicitly exclude mongoose and mongodb in the esbuild configuration (exclude: ["mongoose", "mongodb"]). This ensured that the Lambda function used the version from the Lambda Layer instead of bundling its own copy, which resolved the performance issue.

Possible Cause

My theory is that this might be due to dynamic imports within the Mongoose module, which were affected by esbuild's tree shaking when packaging the Lambda function. Could this be the case? If so, is there a way to overcome this so Mongoose doese not need to be moved to an AWS Lambda Layer?

Alternative Solutions Tried

Upgrading esbuild and serverless-esbuild and including mongoose and mongodb in the esbuild bundle did not resolve the issue:

"esbuild": "^0.24.2"

"serverless-esbuild": "^1.54.6"

So far now, if anyone is facing this issue, simply move Mongoose to an AWS Lambda Layer.

I will continue to update if Mongoose replies with a fix.

Reasons:
  • Blacklisted phrase (1): is there a way
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: totomers

79431300

Date: 2025-02-11 21:06:01
Score: 2
Natty:
Report link

You can use "injectedJavaScript" prop available which would allow you to run block of javascript to manipulate website.

https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

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

79431295

Date: 2025-02-11 21:04:00
Score: 11.5
Natty: 8.5
Report link

@adam Were you able to find a solution for this?

Reasons:
  • RegEx Blacklisted phrase (1): Were you able to find a solution
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @adam
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Normall

79431289

Date: 2025-02-11 20:54:58
Score: 2
Natty:
Report link

My use of quoting quotes was causing the issue. If I change

test='"x"'

to instead be

test='x'

Then the argument accepts the variable.

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

79431288

Date: 2025-02-11 20:54:58
Score: 1.5
Natty:
Report link

Is SELECT ... INTO #temptable the only fast operation in SQL Server?

No.

Is there a way to make the UPDATE as fast as SELECT INTO?

No.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: T N

79431277

Date: 2025-02-11 20:48:56
Score: 3.5
Natty:
Report link

Thats it u need add Databricks as application exemple

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

79431273

Date: 2025-02-11 20:47:56
Score: 1.5
Natty:
Report link

I had a similar issue and was able to resolve it by checking the network configuration in Docker-Compose. Make sure Neo4j is running in the correct network and accessible from other containers.

A useful approach is to set NEO4J_URI as bolt://neo4j:7687 if “neo4j” is the service name in your docker-compose.yml. Also, checking the container logs (docker logs ) can provide more insights into potential errors.

I documented a similar case here: https://ollama.com/IBLAG/Certification

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

79431269

Date: 2025-02-11 20:45:55
Score: 3
Natty:
Report link

For those of you having the same issue with "node:fs", here is a next.config.(m)js that works :

const nextConfig = {
  // Your config
  webpack: (config, { nextRuntime }) => {
    if (nextRuntime !== "nodejs") {
      const { IgnorePlugin } = require("webpack");
      const ignoreNode = new IgnorePlugin({ resourceRegExp: /node:.*/ });
      config.plugins.push(ignoreNode);
    }
    return config;
  },
};

module.exports = nextConfig;
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Low reputation (1):
Posted by: Thomas Heniart

79431263

Date: 2025-02-11 20:43:54
Score: 5
Natty:
Report link

On Similar note, in a mat-container if we have a menu and on click anywhere inside the menu the menu closes. how to address such menu's?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rish90

79431259

Date: 2025-02-11 20:43:54
Score: 1
Natty:
Report link
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lalit Patel

79431258

Date: 2025-02-11 20:41:53
Score: 1
Natty:
Report link

Also, the writers of all these ARM documents are experts, so they occasionally don't take the time to define and explain the most simple basic things. It's part of the human condition that once you become an expert at something, you forget what it was like to be a novice, so you can't remember that novices need to know the "novice" things first. Expert teachers think differently; they remember what it was/is like to "not know," so they explain things from the ground up.

I ran into the same problem reading the "ARM® Cortex®-R Series Version: 1.0 Programmer’s Guide." It's crazy, but yeah, they don't explain these terms either in that document.

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

79431249

Date: 2025-02-11 20:36:52
Score: 1.5
Natty:
Report link

each service should have its own dockerfile. This could be contributing to or responsible for the problem. The command "npm start" never runs because that CMD directive is overwritten by the final CMD directive, so it never runs. So although it all builds successfully, both containers in this configuration are running your dotnet application and the angular service has port 4200 exposed but nothing is running on that port in that container.

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

79431248

Date: 2025-02-11 20:36:52
Score: 1
Natty:
Report link

You can also add your ajax action name in the filter "wcml_multi_currency_ajax_actions".

add_filter('wcml_multi_currency_ajax_actions', function($actions) {
    $actions[] = 'get_wc_products';
     return $actions;
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Iván Cuella

79431246

Date: 2025-02-11 20:33:52
Score: 2.5
Natty:
Report link

When you kill the app, Xcode will disconnect from your app and stop catching logs, performances data and anything. Even you reopen the app from your phone or simulator that won’t reconnect to Xcode. The only way to reconnect to your Xcode is rebuild and run the app again(cmd + r). But the lifecycle also restarts.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Tyler

79431245

Date: 2025-02-11 20:32:51
Score: 2
Natty:
Report link

So I reached out to PayPal and they are performing maintenance on their servers. No concerns from them about it being an old system, no suggestions that I should upgrade. So completely on their end and the upgrades should take a few weeks then back to normal. Also provided an alternate IP to access that would not have a problem. (and it works perfectly)

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

79431235

Date: 2025-02-11 20:30:51
Score: 0.5
Natty:
Report link
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lalit Patel

79431228

Date: 2025-02-11 20:28:49
Score: 4
Natty: 4
Report link

Check here : https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment it resolved my local issue.

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Smart Coder

79431226

Date: 2025-02-11 20:27:48
Score: 1
Natty:
Report link

I found out the issue was adding the big block of middleware to the bootstrap/app.php file. I think a lot of them are just added by default now. I did have to added my own middleware like this though and everything worked like usual again

        $middleware->api(append: [
            'consumer-login' => \App\Http\Middleware\CanFrontendLogin::class,
            'admin-login' => \App\Http\Middleware\CanAdminLogin::class
        ]);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: jordan dolan

79431217

Date: 2025-02-11 20:17:46
Score: 2.5
Natty:
Report link

Normally when an app with vite goes blank, it means there's an error on the client side,look for the console on the browser! i can't see any errors on your snippets, it might be inside other components!

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

79431210

Date: 2025-02-11 20:14:46
Score: 1
Natty:
Report link

Deleting the config file

.spyder-py3

From the system and restarting Spyder worked for me. I did try restarting kernel but again it kept looping around with IOStream.flush timeout error again.

if its mac this file should be in ~/Users/user/.config/.spyder-py3 or just as ~/Users/user/.spyder-py3

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

79431209

Date: 2025-02-11 20:13:45
Score: 2
Natty:
Report link

I added rabbitmq.conf file with these configs:

max_message_size = 536870912
frame_max = 536870912

and it can now accept larger messages.

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

79431207

Date: 2025-02-11 20:11:45
Score: 3
Natty:
Report link

You can download all changesets from planet.osm.org. The file https://planet.openstreetmap.org/planet/changesets-latest.osm.bz2 is updated once a week, then you can filter the changeset using the osmium-tool, e.g. https://github.com/osmcode/osmium-tool/blob/master/man/osmium-changeset-filter.md

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

79431206

Date: 2025-02-11 20:11:45
Score: 3
Natty:
Report link

just reply the first template message you sent. Then you're able to send other message types.

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

79431202

Date: 2025-02-11 20:09:44
Score: 4.5
Natty:
Report link

@s-mabdurrazak I followed this approach, but since i'm using officer to create a docx, it seems it's not working as expected. I ended up with an htm filem I ignore the reasons

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @s-mabdurrazak
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Mikael

79431200

Date: 2025-02-11 20:08:43
Score: 4.5
Natty: 4
Report link

I had this problem too, did you manage to find out more details about it?

Public Sub save_book()
    ' fasctinating.. cannot use .protect methods when
    ' using thisworkbook.save
    Application.SendKeys "^s", True
    DoEvents
End Sub

The above code will press keyboard short-cut CTRL+S. DoEvents allows the operating system to recognise the save before moving to the next part of your VBA code.

Not sure if excel allows you to change keyboard short-cuts though!

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to find out
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Nathan Bachetti

79431193

Date: 2025-02-11 20:07:43
Score: 3
Natty:
Report link

What helped me the most debugging this was to enable git tracing

in cmd line set GIT_TRACE=1

in powershell or pwsh $env:GIT-TRACE=1

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What help
  • Low reputation (1):
Posted by: TheBigBear

79431186

Date: 2025-02-11 20:05:42
Score: 1
Natty:
Report link

quote from https://learn.microsoft.com/en-us/ef/core/performance/advanced-performance-topics?tabs=with-di%2Cexpression-api-with-constant

When EF receives a LINQ query tree for execution, it must first "compile" that tree, e.g. produce SQL from it. Because this task is a heavy process, EF caches queries by the query tree shape, so that queries with the same structure reuse internally-cached compilation outputs. This caching ensures that executing the same LINQ query multiple times is very fast, even if parameter values differ.

So, in short, yes.

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

79431184

Date: 2025-02-11 20:04:42
Score: 1
Natty:
Report link

I was able to fix this by correcting the file extension on my favicon link. I had favicon.svg in /static, but my app.html still had

<link rel="icon" href="/%sveltekit.assets%/favicon.png" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dave Nash

79431175

Date: 2025-02-11 19:56:40
Score: 2
Natty:
Report link

recoil.js - Uncaught TypeError: Cannot destructure property 'ReactCurrentDispatcher' of 'import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' as it is undefined. at CountRenderer (App.jsx:857:17) CountRenderer @ App.jsx:857

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

79431172

Date: 2025-02-11 19:54:40
Score: 2
Natty:
Report link

curl --location ${OAUTH_URL} ${CURL_EXTRA_PARAMS}

Please test with echo $CURL_EXTRA_PARAMS in the script to see what the contents of the var are

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

79431169

Date: 2025-02-11 19:53:39
Score: 2
Natty:
Report link

Use this command to download chrome in your terminal

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

after the file is downloaded double click on the downloaded package it will be redirect you to app center of your Ubuntu install it. it will be saved in user/bin

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prajna S Shetty

79431162

Date: 2025-02-11 19:48:39
Score: 3.5
Natty:
Report link

A warm up solution like below can be used to warmup the gRPC Services.

https://github.com/ExpediaGroup/mittens

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

79431148

Date: 2025-02-11 19:38:36
Score: 0.5
Natty:
Report link

I had to do something insane to find a work around. We were initializing the kendo drop down list in asp/razor and not with javascript/jquery. I couldn't find an equivalent for:

valuePrimitive: true

So, i instead converted all null values in the result set for the field in question to spaces and that worked:

var result = _dbContext.EsFleetAuto.Where(es => es.FkSurveyId == SurveyId).OrderBy(x => x.LicensePlate);

foreach (var item in result)
{
    if (string.IsNullOrEmpty(item.AutoType))
        item.AutoType = "";
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Brian

79431147

Date: 2025-02-11 19:37:36
Score: 1.5
Natty:
Report link

I was able to install the n-2 version using the below command:

python3 -m pip install PyMSSQL

Below is the complete output

Collecting PyMSSQL Using cached pymssql-2.3.2.tar.gz (184 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli cwd: None Complete output (12 lines): Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in "ignore", category=DeprecationWarning, module=".*packaging\.version" File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings import re File "/usr/lib64/python3.6/re.py", line 142, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

WARNING: Discarding https://files.pythonhosted.org/packages/81/c8/2ce5b171581c2e4d5d9726aaa805eb01febc7ed70a3bf686e1e0f5501b07/pymssql-2.3.2.tar.gz#sha256=18089641b687be1ebd0f64f0d1ff977478a397ffa1af372bdf10dbec29cf6d2e (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output. Downloading pymssql-2.3.1.tar.gz (186 kB) |████████████████████████████████| 186 kB 9.2 MB/s Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli cwd: None Complete output (12 lines): Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in "ignore", category=DeprecationWarning, module=".*packaging\.version" File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings import re File "/usr/lib64/python3.6/re.py", line 142, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

WARNING: Discarding https://files.pythonhosted.org/packages/30/66/f98a16e1db6592b9ab7fa85a3cb5542b4304178b6ad67928e69927590493/pymssql-2.3.1.tar.gz#sha256=ddee15c4c193e14c92fe2cd720ca9be1dba1e0f4178240380b8f5f6f00da04c6 (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output. Downloading pymssql-2.3.0-cp36-cp36m-manylinux_2_28_x86_64.whl (4.5 MB) |████████████████████████████████| 4.5 MB 90.3 MB/s Installing collected packages: PyMSSQL Successfully installed PyMSSQL-2.3.0

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Filler text (0.5): ████████████████████████████████
  • Filler text (0): ████████████████████████████████
  • Low reputation (1):
Posted by: Arun

79431138

Date: 2025-02-11 19:32:35
Score: 2
Natty:
Report link

Try the following minimal example:

struct Spot {
    int x, y;
};

int main() {
    Spot{0, 1} == Spot{2, 3};
}

This doesn't compile, as you can test for yourself.

<source>(56): error C2676: binary '==': 'Spot' does not define this operator or a conversion to a type acceptable to the predefined operator

In this case, the error message is way clearer. The compiler doesn't know, how to compare to objects of type Spot and how should it, you never defined how that would work.

You can help yourself with a defined operator==() like the following:

bool operator==(const Spot& lhs, const Spot& rhs) {
    return lhs.x == rhs.x && lhs.y == rhs.y;
}
Reasons:
  • Blacklisted phrase (1): how should i
  • Whitelisted phrase (-1): Try the following
  • RegEx Blacklisted phrase (3): You can help
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Joel

79431127

Date: 2025-02-11 19:26:34
Score: 3
Natty:
Report link

for whomever has wamp v3.3 or above you can now configure your v-host from the icoon menu under "virtual host". It will prompt you to the server where you can put the domain name and folder. menu from the icon

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

79431126

Date: 2025-02-11 19:26:34
Score: 4
Natty:
Report link

Just a bonehead change by Shopify that has been reverted:

https://community.shopify.dev/t/webhook-headers-case-change/8021

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

79431124

Date: 2025-02-11 19:25:33
Score: 4
Natty:
Report link

I used Video DownloadHelper. Click the 3 dots on the download button, and click "Copy URL".

screenshot

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

79431120

Date: 2025-02-11 19:24:32
Score: 2.5
Natty:
Report link

The problem is that im using /pages/_app.jsx, getServerSideProps cannot be used with _app.jsx

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

79431119

Date: 2025-02-11 19:24:32
Score: 0.5
Natty:
Report link

Just solved it. Used another int.

random_number:
mov ah, 2Ch    
int 21h        

mov al, dl     
xor ah, ah     
mov cx, 10     
div cl         

mov dh, ah     
ret

Now when returning to generate_enemies:

generate_enemies:
mov ah, 0x13
mov al, 0x01
mov bh, 0
mov bl, 0x07
mov cx, 1
mov bp, enemy_pixel

mov dl, 79
int 0x10
ret

DH is already setted up with AH that matches its size.

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

79431109

Date: 2025-02-11 19:19:32
Score: 1
Natty:
Report link

Ok so I found out what I was doing wrong, there were two main things that I was doing wrong. The first thing is that when I got the directory uri with Intent.ACTION_OPEN_DOCUMENT_TREE I didn't get persistable uri permission, which I now do using Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION and contentResolver.takePersistableUriPermission(uri, takeFlags) the other part that I was doing wrong was the method of getting the outputStream as I needed to use a contentResolver for it val out = contentResolver.openOutputStream(newFile.uri) with these changes everything works as I intended!

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

79431108

Date: 2025-02-11 19:19:32
Score: 0.5
Natty:
Report link

Like mentioned in the comments by @JNevill , your query is mostly correct, you just need to use the data in the select like so and set the correct index in where clause

f.value:data::STRING

Sample query

SELECT
  party_id,
  f.value:data::STRING AS phone_number_new,
  -- f.value::STRING as phone_number
FROM
  main_parties,
  LATERAL FLATTEN(input => party_phones) f
WHERE
  f.index = 1;

Returns

enter image description here

or a filter with f.value:phoneType = 0 also works

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @JNevill
  • High reputation (-1):
Posted by: samhita

79431107

Date: 2025-02-11 19:18:31
Score: 1
Natty:
Report link

I was able to get the joystick to work for me, you must change the device descriptor to match your desired usage.

For a gamepad/joystick, change subclass to 0, protocol to 1, report length to 5 and device descriptor for 5 buttons max, joystick axis x, joystick axis y, and the hat switch. \x05\x01\x09\x02\xa1\x01\x85\x01\x09\x01\xa1\x00\x05\x09\x19\x01\x29\x05\x15\x00\x25\x01\x95\x05\x75\x01\x81\x02\x95\x01\x75\x03\x81\x01\x05\x01\x09\x30\x09\x31\x16\x00\xf8\x26\xff\x07\x75\x0c\x95\x02\x81\x06\x09\x38\x15\x81\x25\x7f\x75\x08\x95\x01\x81\x06\xc0\xc0

For a mouse and keyboard, refer to github repository https://github.com/thewh1teagle/zero-hid/blob/main/usb_gadget/init_usb_gadget

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

79431100

Date: 2025-02-11 19:15:31
Score: 2
Natty:
Report link

Solved multiple ports for angular with the server side dotnet cli using the --urls like this..

dotnet run --urls="https://localhost:7203;http://localhost:5001;"

The order matters.

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

79431097

Date: 2025-02-11 19:14:31
Score: 0.5
Natty:
Report link

Had similar issue with adding php_lua.dll to xampp.

I downloaded the dlls from here: https://pecl.php.net/package/lua/2.0.7/windows

For XAMPP I needed following version: 8.2 Thread Safe (TS) x64

What helped was copying the additional .dll which was in the archive - liblua.dll into the apache/bin folder.

After that it loaded successfully the extension.

Hope it helps someone :)

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope it helps
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: slawkens

79431091

Date: 2025-02-11 19:12:30
Score: 8
Natty: 7.5
Report link

I am currently experiencing the same problem, have you found a solution?

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TLinvest

79431090

Date: 2025-02-11 19:12:29
Score: 2
Natty:
Report link

Appears that my issue here was with how pry outputs the result of this concatenation. If I run the same code in an irb console, concatenation works as expected.

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

79431083

Date: 2025-02-11 19:06:28
Score: 3
Natty:
Report link

It can't be from anything like old files because I'm running a totally fresh windows 11 I'm just going to move on from firefox now

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

79431079

Date: 2025-02-11 19:05:28
Score: 1
Natty:
Report link

Thanks for your great post! Really helped me!

Still good for early 2025 :p

A few words on iOS:

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adrien p

79431073

Date: 2025-02-11 19:03:27
Score: 1
Natty:
Report link

You write:

I try to use MAWK where the match() built-in function doesn't have a third value for variable

gawk does support a third argument to match - an array in which to store the matched text and all captured groups. That is probably what you're looking for. It's documented here.

mawk apparently doesn't support this. Can you simply switch to gawk (e.g., sudo apt install gawk)? This allowed me to run an old script of mine that relied on the captured groups.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jason Eisner

79431070

Date: 2025-02-11 19:02:27
Score: 0.5
Natty:
Report link

For me it worked when I renamed my main.py file to lambda_function.pyinside the root folder of output code directory.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Zain ul Abideen

79431054

Date: 2025-02-11 18:57:26
Score: 1
Natty:
Report link

Irshad's solution worked for me for the first time, after I quit docker desktop and restarted it again, it didn't work and I got stuck again at Kubernetes is starting message.

Personally I changed the cluster settings and used Kind instead of Kubeadm and it work

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: George Nigoghossian

79431047

Date: 2025-02-11 18:54:25
Score: 1
Natty:
Report link

I have a solution.

Earlier, in the midst of coding, I realized that the code was pointing to a newer version.

I proceeded to the project properties and changed the TargetServerVersion to 2019. I corrected the issue and rebuilt waiting for errors, but none came.

Later after finishing the code and deploying, it was silently failing to execute the script task which other components are dependent on.

This was because that script task was completed before I changed the target version, and it caused it to break somehow.

I (copied the contents) and then deleted and rebuilt the script task.

I then rebuilt and deployed the package.

The deployed job now works correctly.

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

79431044

Date: 2025-02-11 18:53:25
Score: 3.5
Natty:
Report link

Você pode usar um SilverAppBar

Segue um exemplo de UI que pode exemplificar a lógica.

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: CustomScrollView(
          slivers: <Widget>[
            // SliverAppBar é o header expansível
            SliverAppBar(
              expandedHeight: 200.0, // Altura máxima do header
              floating: false, // Não flutua ao rolar
              pinned: true, // Fixa o header ao rolar
              snap: false, // Não "encaixa" ao rolar
              flexibleSpace: FlexibleSpaceBar(
                title: Text('Header Expansível'),
                background: Image.network(
                  'https://via.placeholder.com/400x200', // Imagem de fundo
                  fit: BoxFit.cover,
                ),
              ),
            ),
            // Conteúdo abaixo do header
            SliverList(
              delegate: SliverChildBuilderDelegate(
                (BuildContext context, int index) {
                  return ListTile(
                    title: Text('Item $index'),
                  );
                },
                childCount: 50, // Número de itens na lista
              ),
            ),
          ],
        ),
      ),
    );
  }
}
Reasons:
  • Blacklisted phrase (3): Você
  • Blacklisted phrase (1): Não
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marcony Monteiro

79431041

Date: 2025-02-11 18:53:25
Score: 1.5
Natty:
Report link

I encountered the same problem. For me, when I entered the (correctly formatted) raw json and tried to submit the post request, I got the 400 error. It was fixed by changing the submitted data format: To the far right of the body types, where you see the radio buttons "raw" then "binary" and "GraphSQL", you'll see "Text" - I just needed to select "JSON" from that drop down and it submitted without the error.

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

79431032

Date: 2025-02-11 18:51:24
Score: 1
Natty:
Report link

This is slightly more detailed than the comment by m.raynal.
First, to simplify the solution, divide the constraint by 2, i.e., you have 8X1 + 3X2 + 2X3 <= 12. Then for each weight W, W = 0 to 12, item i, i = 1 to 3, determine the maximum objective value f(i,W). This is the maximum of (a) if item i is not increased by 1 and (b) if i is increased by 1, at stage W. Then determine f(W) = max( f(1,W), f(2,W), f(3,W) ). The formula for f(i,W) = max( f(W-1), Vi + f(W-Wi) ), where Vi is value of item i and Wi is the weight of item i.

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

79431027

Date: 2025-02-11 18:47:23
Score: 4.5
Natty:
Report link

The answer by @KWV still applies to net8.0.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @KWV
  • Single line (0.5):
  • Low reputation (1):
Posted by: HTK

79431010

Date: 2025-02-11 18:40:21
Score: 4
Natty:
Report link

Figured it out, the macie job was in a different region than the S3 bucket.

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

79431003

Date: 2025-02-11 18:36:20
Score: 3.5
Natty:
Report link

maybe I am late but for follow up readers Microsoft recommends for Blazor Server Apps the AuthenticationStateProvider. You can inject it in your services as you want.

Best regards

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: RoXTar

79430999

Date: 2025-02-11 18:32:20
Score: 3.5
Natty:
Report link

Bug is fixed from RSP-42074 in Delphi 12.1 Alexandria

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

79430996

Date: 2025-02-11 18:31:18
Score: 12.5 🚩
Natty: 5
Report link

i have the same issue right now with buildozer apk conversion. could you tell how you solved it if incase u did solve it?

im getting error even tho i have tried everything i could: ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation.

Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Blacklisted phrase (1.5): m getting error
  • Blacklisted phrase (1): i have the same issue
  • RegEx Blacklisted phrase (2.5): could you tell how you
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mohammad Qasimi

79430985

Date: 2025-02-11 18:28:16
Score: 2
Natty:
Report link

Problem was not the Rect. Problem is because of the way iOS handles files and Apps in sandboxes.

https://github.com/emozgun/delphi-ios-file-storage-sharing

emozgun give a great explanation for that Problem and a Solution. Kastri and the ShareItems sample was my way to to go.

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

79430982

Date: 2025-02-11 18:27:16
Score: 2.5
Natty:
Report link

Wicket answered the why of your issue and how to solve it Google has outlined here: https://developers.google.com/workspace/add-ons/guides/debug

Essentially you have to setup a proxy so that the add on can make requests to and then those get directed to your local machine. Allowing you to develop/test much faster.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: toinhao

79430981

Date: 2025-02-11 18:26:16
Score: 0.5
Natty:
Report link
Add-Type @'
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Security.Principal;
using LSA_HANDLE = System.IntPtr;

public class UserRightsLsa
{
    private const int POLICY_CREATE_ACCOUNT = 0x00000010;
    private const int POLICY_LOOKUP_NAMES = 0x00000800;

    private const int STATUS_SUCCESS = 0x00000000;
    private const int STATUS_ACCESS_DENIED = unchecked((int)0xC0000022);
    private const int STATUS_INSUFFICIENT_RESOURCES = unchecked((int)0xC000009A);
    private const int STATUS_NO_MEMORY = unchecked((int)0xC0000017);

    [DllImport("advapi32.dll")]
    private static extern uint LsaNtStatusToWinError(int Status);

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    private struct LSA_UNICODE_STRING
    {
        internal ushort Length;
        internal ushort MaximumLength;
        internal string Buffer;
    }

    [StructLayout(LayoutKind.Sequential)]
    private struct LSA_OBJECT_ATTRIBUTES
    {
        internal uint Length;
        internal IntPtr RootDirectory;
        internal IntPtr ObjectName;
        internal uint Attributes;
        internal IntPtr SecurityDescriptor;
        internal IntPtr SecurityQualityOfService;
    }

    [DllImport("advapi32.dll")]
    private static extern int LsaOpenPolicy(
        LSA_UNICODE_STRING[] SystemName,
        ref LSA_OBJECT_ATTRIBUTES ObjectAttributes,
        uint DesiredAccessMask,
        out LSA_HANDLE PolicyHandle
    );

    [DllImport("advapi32.dll")]
    private static extern int LsaAddAccountRights(
        LSA_HANDLE PolicyHandle,
        byte[] AccountSid,
        LSA_UNICODE_STRING[] UserRights,
        uint CountOfRights
    );

    [DllImport("advapi32.dll")]
    private static extern int LsaClose(LSA_HANDLE ObjectHandle);

    private static Exception HandleLsaError(int ntStatus)
    {
        switch (ntStatus)
        {
            case STATUS_SUCCESS:
                return null;
            case STATUS_ACCESS_DENIED:
                return new UnauthorizedAccessException();
            case STATUS_INSUFFICIENT_RESOURCES:
            case STATUS_NO_MEMORY:
                return new OutOfMemoryException();
            default:
                return new Win32Exception((int)LsaNtStatusToWinError(ntStatus));
        }
    }

    private static LSA_UNICODE_STRING InitLsaString(string szString)
    {
        if (szString.Length > 0x7ffe)
            throw new ArgumentException("szString");

        return new LSA_UNICODE_STRING
        {
            Buffer = szString,
            Length = (ushort)(szString.Length * sizeof(char)),
            MaximumLength = (ushort)((szString.Length + 1) * sizeof(char))
        };
    }

    public static void Add(string username, string[] rights)
    {
        if (rights == null || rights.Length == 0)
            throw new ArgumentNullException("rights");

        SecurityIdentifier user;
        if (string.IsNullOrEmpty(username))
        {
            user = WindowsIdentity.GetCurrent().User;
        }
        else
        {
            try
            {
                user = new SecurityIdentifier(username);
            }
            catch
            {
                user = (SecurityIdentifier) new NTAccount(username).Translate(typeof(SecurityIdentifier));
            }
        }

        var sid = new byte[user.BinaryLength];
        user.GetBinaryForm(sid, 0);

        var userRights = new LSA_UNICODE_STRING[rights.Length];
        for (var i = 0; i < userRights.Length; ++i)
            userRights[i] = InitLsaString(rights[i]);

        var objectAttributes = new LSA_OBJECT_ATTRIBUTES();
        var lsaPolicyHandle = LSA_HANDLE.Zero;
        try
        {
            Exception ex;
            if ((ex = HandleLsaError(LsaOpenPolicy(null, ref objectAttributes,
                    POLICY_CREATE_ACCOUNT | POLICY_LOOKUP_NAMES, out lsaPolicyHandle))) != null)
                throw ex;

            if ((ex = HandleLsaError(LsaAddAccountRights(lsaPolicyHandle, sid, userRights, (uint)userRights.Length))) !=
                null)
                throw ex;
        }
        finally
        {
            if (lsaPolicyHandle != LSA_HANDLE.Zero)
                LsaClose(lsaPolicyHandle);
        }
    }
}
'@

function Add-UserRight {
    param(
        [string]$Username,
        [parameter(Mandatory)][string[]]$Rights
    )

    [UserRightsLsa]::Add($Username, $Rights)
}

I simplified https://stackoverflow.com/a/14469248, whittled down the requested access mask for the LSA handle to the bare minimum that's required to call LsaAddAccountRights, added the ability to assign multiple rights in one call and took the idea of being able to pass a SID (in string form) from UserRights.psm1 (which you might prefer instead if you want something a lot more featureful). C# 5 is targeted to retain PowerShell 5.1 compatibility.

Call it with Add-UserRight -Username username -Right SeUndockPrivilege,SeShutdownPrivilege. Username is a bit of a misnomer - you can specify other accounts, like Groups etc.

A possible pitfall is that if Username is omitted/is null or empty, the rights you specify for adding will be added to the user the script is running as.

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

79430977

Date: 2025-02-11 18:25:15
Score: 5.5
Natty:
Report link

hi i also wanted to create such a project. can i contact you and ask a couple of questions about this project

Reasons:
  • Blacklisted phrase (2): can i contact
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: w1n_ker

79430961

Date: 2025-02-11 18:18:13
Score: 1
Natty:
Report link

This will requires knowledge of Doubly Linked List In order to get O(N), you have to use 1.Doubly Linked list (for storing array elements ,cart) You can then perform deletion operation of specific index in O(1) 2. Use array/map to store the index(linked list Node) of first occurrence of element in DLL.

When query comes to delete element, look for Node to be deleted in array/map, go to the Node , delete it, (by linking previous to next node of to be deleted node) When query comes to append element, simply add Node to end;

You have to implement DLL with tail(general implementation says to maintain head) which means traversing DLL starting with tail, that way we you can append data at last (in O(1) rather than traversing whole list from head taking O(N)), you can add node after tail, and update the tail node.

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

79430949

Date: 2025-02-11 18:10:11
Score: 2.5
Natty:
Report link

I've got the same error but in my case the reason was the attempt to try to share "ts-lib" via Module federation (probably in combination with using a Shared worker)

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

79430938

Date: 2025-02-11 18:06:10
Score: 1
Natty:
Report link

Mongoose resolves references (ref) automatically when using .populate(), but if you need to query the referenced model directly, you must import it.

CASE 1 - When You DON'T Need to Import RoleModel If you're only populating the role field inside a UserModel query, Mongoose handles the reference automatically.

import UserModel from "@_models/user"; async function getUsersWithRoles() { const users = await UserModel.find().populate("role"); // No need to import RoleModel return users; }

Here, Mongoose knows role references Role and fetches the related data.

CASE 2 - When You NEED to Import RoleModel If you're performing a direct query on the RoleModel, you must import it.

import RoleModel from "@_models/role"; async function findAdminRole() { const adminRole = await RoleModel.findOne({ name: "Admin" }); // Direct query on RoleModel return adminRole; }

Since this query only involves the Role collection, Mongoose needs RoleModel explicitly.

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

79430934

Date: 2025-02-11 18:03:10
Score: 1
Natty:
Report link

Based on the yaml file you shared you're using shell /bin/sh but in the command you run you use /bin/bash. Try to run the :

kubectl alpha debug <biz_pod> -i -t --image=busybox -- /bin/sh

For additional workaround confirm that the ephemeral container was successfully injected. Look for the injected ephemeral container if it’s running or falling :

kubectl describe pod <biz_pod> 

You can also check the logs that will help you understand if the debug container is running or failing.

kubectl logs <biz_pod> -c debugger-<name> 

Is there a way to delete the ephemeral container without affecting the pod?

You cannot able to delete the ephemeral container after you have added it to a pod.

For additional information see the documentation below :

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: miracle

79430933

Date: 2025-02-11 18:03:09
Score: 4
Natty:
Report link

Same problem here. It is 2025 (and no one should use ckeditor anymore but we stuck on it through a third pary app).

I tried a bunch of different docTypes's, in both the top-level config.js and in core/config.js .

See that the docs are still there and the default value of this config is already html5.

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-docType

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: readonly.zone

79430930

Date: 2025-02-11 18:02:09
Score: 2
Natty:
Report link

The problem was that the 'key' part of appsettings.json needs to be inside the 'IdentityServer' part.

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

79430929

Date: 2025-02-11 18:02:09
Score: 2
Natty:
Report link

First at all, you missing the left brackets( in your default value of property rowContent. Secondly, You can't add @ViewBuilder to your stored property, @ViewBuilder is a @resultBuilder, check this: Result builders in Swift explained with code examples

I tried to achieve your goal, and here is my code:

struct MenuList<T: MenuListItem, RowContent: View>: View
{
    var body: some View { ... }

    private let rowContent: (T) -> RowContent
    
    init(@ViewBuilder rowContent: @escaping (T) -> RowContent = { (_: T) in EmptyView() })
    {
        self.rowContent = rowContent
    }
    
}

But it could be wrong since there not enough details about your code and what you actually want to do. Like what is MenuListItem and do you expect the generic T always the same type in one single MenuList? And why you want to save the closure to your property?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Tyler

79430928

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

pymodbus doesn't have a method for communicating with these function codes. (are they manufacturer specific?)

You can implement your own messages by inheriting ModbusPDU, see examples/custom_msg.py in the pymodbus codebase.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: idanp

79430923

Date: 2025-02-11 17:58:08
Score: 1
Natty:
Report link

You joined powershell and R terminal, so the command was sent to powershell. (See the link between R and powershell.) Delete all existed terminals and call a new R terminal can redirect target terminal.

However, even if you do, the triangle (Run Source button) executes Ctrl+Shift+S, which will call the source function and run the entire script. Does default Ctrl+Enter bother you?

If it is necessary to use the mouse and click to run code, locate the Run Selected Text option in the ... button of the terminal (upper right corner).

Reasons:
  • RegEx Blacklisted phrase (1): See the link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Near Lin

79430921

Date: 2025-02-11 17:58:08
Score: 2.5
Natty:
Report link

Not every detail for createAsyncThunk is placed under the same documentation page, specific information regarding typescript usage can be found under usage with typescript. Specifically about the createAsyncThunk function can be found further down the page.

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

79430920

Date: 2025-02-11 17:58:08
Score: 1
Natty:
Report link

So to answer OPs question: "How is this modeled in the buildspec "... its not... this can be modeled however using a JSON Configuration file for the Pipeline.

You cannot configure a build step with multiple actions with one or more buildspec files in a single codebuild project, nor can you use multiple codebuild projects in a build step when configuring an initial codepipeline from the GUI.

You will need:

You will deploy your codepipeline with the JSON configuration file to accomplish what you need.

See here for more information on this configuration file

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

79430896

Date: 2025-02-11 17:50:05
Score: 2
Natty:
Report link

Merci

Je n'arrive pas tout à fait à redémarrer le site malgré le fait que j'arrive à installer les différentes commandes

J'ai essayé le script, mais j'obtiens l'erreur suivante : sappel@ssh2:~$ python get-pip.py Segmentation fault

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

79430892

Date: 2025-02-11 17:48:05
Score: 1
Natty:
Report link

Updated 2025

IDEA(2024.3.2.2) now has a dedicated setting for this. (This may have been available since a previous version too)

Screenshot of IntelliJ IDEA settings for scroll speed

How to get there

  1. Open IDE settings
  2. Search for "scroll"
  3. You'll see the setting as in the Screenshot

scroll jump: quoting google -

a feature that allows you to quickly navigate through a code file by rapidly scrolling a large distance with a single mouse wheel action

scroll offset: Simply refers to how many lines to scroll by a single wheel scroll/scroll key

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

79430890

Date: 2025-02-11 17:46:04
Score: 1
Natty:
Report link

I'm not aware of and could not find a setting to prevent Visual Studio Code from collapsing deeply nested collections in Debug Console and Variables panel other than the things you already suggest. However, consider using memory_graph for a better representations of your data that shows references and what data is shared:

enter image description here

Full disclosure: I am the developer of memory_graph.

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

79430876

Date: 2025-02-11 17:42:03
Score: 2
Natty:
Report link

As others have said, this is a known issue that isn't planned on being implemented currently: https://github.com/spring-projects/spring-framework/issues/33934

However, they did implement type level mocking in spring framework 6.2.2, and are considering doing the same for @MockitoSpyBean. So if that gets implemented then you could consider switching to doing type level mocks on the class, if you don't care too much about what they return.

If you do need that when(...) though then you'll probably need to just stick with putting that @MockitoBean and when(...) in each class where it's used.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @MockitoBean
  • Low reputation (0.5):
Posted by: Parker H Gordon

79430873

Date: 2025-02-11 17:41:03
Score: 2
Natty:
Report link

Below pipeline works to dump caption in timed text format:

gst-launch-1.0 filesrc location=input.ts ! tsdemux ! queue ! h264parse ! ccextractor ! ccconverter ! cea608tott ! filesink location=test.cc

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

79430856

Date: 2025-02-11 17:35:02
Score: 1.5
Natty:
Report link

You have one error that I can see on line 7. You are using the assignment operator instead of the equality operator in your if statement. You probably know this but if you want to compare two values you use either == or ===. This is an easy mistake to make.

if (vals[a][i] = today) {

should be:

if (vals[a][i] === today) {

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality

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