79284609

Date: 2024-12-16 12:11:39
Score: 1
Natty:
Report link

If anyone wonders how to do this for external content and retrieve an externalitemId:

Use the Graph Search API and request either the field substrateContentDomainId or fileID. The value after the comma in fileID and substrateContentDomainId should be the ExternalItem id.

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

79284605

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

We have documentation in Gen2 about this. You will need to add models and queries once you have set the Schema and Resources

Please follow the doc here

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

79284586

Date: 2024-12-16 12:01:36
Score: 2.5
Natty:
Report link

You can grab a list or an object along with its fields related to other objects or lists.

Example, imagine the following structure:

Events { Title Desc Organizer { Name, Photo } }

http://yourserver/api/events?populate[Organizer][populate][0]=Photo

You will return the list of events with your organizers and inside each organizer you will have the Photo included. You can populate as many relationships or media fields as the api allows.

More Here: https://docs.strapi.io/dev-docs/api/rest/guides/understanding-populate#populate-several-levels-deep-for-specific-relations

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: JustinoSE

79284585

Date: 2024-12-16 12:01:36
Score: 1.5
Natty:
Report link

WSO2 API Manager does not have this feature, as user management-related tasks are not part of the APIM scope. APIM only has basic user-related features. The password history feature is available in WSO2 Identity Server, as outlined in [1]. You will need to configure WSO2 IS with APIM to use these features. You can configure WSO2 IS as an external IDP by following this document [2].

[1] https://is.docs.wso2.com/en/6.0.0/guides/password-mgt/password-policies/#validate-password-history [2] https://apim.docs.wso2.com/en/latest/install-and-setup/setup/sso/configuring-identity-server-as-external-idp-using-oidc/

Reasons:
  • Blacklisted phrase (1): this document
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Chamila Adhikarinayake

79284575

Date: 2024-12-16 11:56:35
Score: 1
Natty:
Report link

See if this can be helpful:

dataLayer.push({
  event: 'view_item',
  ecommerce: {
    currency: 'USD',
    items: [{
      item_id: 'SKU123',  // What we're extracting
      item_name: 'Cool Product',
      price: 29.99
      // ... other product data
    }]
  }
});

Once you create this variable then you should create a new Custom Javascript variable and use this code (in this example we want to fetch the item_id of the first product)

function() {
  var ecomm = {{ecommerce}};
  if (!ecomm || !ecomm.items || !ecomm.items.length) {
    return undefined;
  }
  return ecomm.items[0].item_id || '';
}

In this way if you use GTM preview and select the DL Push which is supposed to have your eventModel and look into variables you should get the variable and not undefined

Let me know if this works, otherwise let's debug this, maybe you could share your eventModel DataLayer Push?

fetch_item_id

this is better explained in this article: https://blog.assertionhub.com/articles/extract-first-product-id-from-ga4-ecommerce-data-layer

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ivan Maddaluno

79284574

Date: 2024-12-16 11:56:35
Score: 1
Natty:
Report link

My issue was that I had misunderstood what access keys I was supposed to use. Initially, I thought that I had to use the access keys from the AWS Access Portal (see screenshot in EDIT1), but those keys are temporary and are supposed to be used for logging in to AWS from the terminal.

Instead, I am supposed to create an IAM user within my own account using the IAM dashboard (not the IAM Identity Center), and grant it the relevant permissions for pushing to the ECR and creating and deploying task definitions. In case this helps anyone, here are the permission policies I created:

// AllowPushToAllRepo 
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ecr:CompleteLayerUpload",
                "ecr:GetAuthorizationToken",
                "ecr:UploadLayerPart",
                "ecr:InitiateLayerUpload",
                "ecr:BatchCheckLayerAvailability",
                "ecr:PutImage"
            ],
            "Resource": "*"
        }
    ]
}

// CreateTaskDefinition
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "iam:PassRole",
                "ecs:RegisterTaskDefinition",
                "ecs:DescribeServices",
                "ecs:DescribeTaskDefinition",
                "ecs:UpdateService"
            ],
            "Resource": "*"
        }
    ]
}

(I am aware that setting the resource to "*" is a bad practice. I will change this once I figure out how to correctly set the ARN so that it points to the multiple different resources I want.)

This IAM user will be able to see the resources created by me in my account. I used this user's access keys to authorize the workflow.

As pointed out to me in another answer by Arnold Daniels, Amazon does not recommend this practice. Instead, I should be using the OIDC method. From what I understand, the OIDC method only allows a certain GitHub repository to perform actions on AWS, and this is why it is more safe. I will be looking into switching to that method in the future.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: A-Abe

79284565

Date: 2024-12-16 11:52:34
Score: 2
Natty:
Report link

I have come across this too in my development environment.

I can resolve it by stopping the local service, running:

rake assets:clobber

Then restarting the server.

In production, its fine, as I run:

bundle exec rake assets:precompile RAILS_ENV=production

as part of my deployment script.

Any work arounds for the development environment?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sean Mitchell

79284561

Date: 2024-12-16 11:51:33
Score: 2
Natty:
Report link

You can only prevent PlayMode domain reload, but you can't prevent domain reload if you edit script. (or use Assembly Definition for specify reload. it helps)

Go to Edit -> Project Settings -> Editor -> Enter Play Mode Settings then change to Do Not Reload Domain or Scene or just Reload Scene Only.

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

79284552

Date: 2024-12-16 11:48:32
Score: 0.5
Natty:
Report link

All these answers rely on capturing the output. Id recommend using the aws cli builtin profile functionality for this:

export AWS_PROFILE=111111111111-my-role
aws configure role_arn arn:aws:iam::111111111111:role/my-role
aws sts get-caller-identity
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: austinheiman

79284551

Date: 2024-12-16 11:48:32
Score: 2
Natty:
Report link

i was facing the same issue and here is what i have done and this works fine with me i have installed both java version 8 and 17 and in system variable i added one variable JAVA_HOME with value pointing to the java i want to use let's say java 8 like this enter image description here and in the path i have removed any older java bin paths there and added new one with value

%JAVA_HOME%\bin

like this enter image description here

but make sure to make it the first entry in path also when you want to change the java version you will just need to change the path for the JAVA_HOME variable i can recommend you also to create executable bat file to change the JAVA_HOME path if you do this a lot

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali Alzantot

79284527

Date: 2024-12-16 11:41:30
Score: 2
Natty:
Report link

Since I can't comment because of the weird stackoverflow rules.. In 2024 there's an aditional compiler error that needs to be fixed in v8\third_party\icu\source\i18n\fmtable.cpp:

diff --git forkSrcPrefix/source/i18n/fmtable.cpp forkDstPrefix/source/i18n/fmtable.cpp
index c3ede98328e200eebdd662990d97dbc9df60e113..4f36e0163915bd23ee7ce3a46ab0c6b7e0d6b4c4 100644
--- forkSrcPrefix/source/i18n/fmtable.cpp
+++ forkDstPrefix/source/i18n/fmtable.cpp
@@ -56,7 +56,7 @@ using number::impl::DecimalQuantity;
 // Return true if *a == *b.
 static inline UBool objectEquals(const UObject* a, const UObject* b) {
     // LATER: return *a == *b;
-    return *((const Measure*) a) == *((const Measure*) b);
+    return *((const Measure*) a) == *b;
 }
 
 // Return a clone of *a.

Other than this follow MakotoE's instructions.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): can't comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ty Rymer

79284526

Date: 2024-12-16 11:41:30
Score: 0.5
Natty:
Report link

The key concept in Dijkstra's algorithm is that once you visit a node, you never have to visit it again. This is because we always explore the cheapest path first, so the first time we arrive at a node is guaranteed to be the cheapest way to get there.

It's also why we must explore the cheapest path first, and why negative weights (which destroy our assumption) invalidate Dijkstra's algorithm.

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

79284525

Date: 2024-12-16 11:40:30
Score: 2
Natty:
Report link

Webhooks are supported in OpenAPI 3.1 which was probably not available when you posted this question.

I notice there is an x-webhooks extensions for 3.0 see https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-webhooks but I'm not sure how widely supported it is by OpenAPI clients.

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

79284510

Date: 2024-12-16 11:36:29
Score: 3.5
Natty:
Report link

Iframe cannot dynamically extract css into

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

79284502

Date: 2024-12-16 11:32:28
Score: 3
Natty:
Report link

Try

string path = Process.Start(new ProcessStartInfo("where", "java")
{
    UseShellExecute = false,
    RedirectStandardOutput = true,
    CreateNoWindow = true
}).StandardOutput.ReadToEnd().Trim();

Help: where /?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: x troy

79284498

Date: 2024-12-16 11:29:26
Score: 1
Natty:
Report link

You can pipe the exit code to true to ensure the follow up command is ran.

npx playwright test --project=chrome || true && npm run generateReport
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jalen

79284491

Date: 2024-12-16 11:27:26
Score: 2
Natty:
Report link

As of writing this answer, Google team has implemented a way to see "address group" details. There is now a link:

Firewall rule details

New page is opened which shows which IPs are allowed:

Address group details

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Aleks Vujic

79284490

Date: 2024-12-16 11:26:25
Score: 1.5
Natty:
Report link

I found this to be of great help:

  1. The easiest thing to do is to set the VerticalOptions on the ScrollView to "StartAndExpand". This will trigger the legacy behavior for StackLayout and make it act as if it were a single-column Grid. (This is effectively what it's doing in Forms when it special-cases the "ScrollView inside StackLayout" behavior.)
  2. [My prefered solution] Alternatively, replace the outer StackLayout with a Grid. This will constrain the ScrollView vertically and allow for scrolling. "But wait, I want to stack things above the ScrollView." Okay, divide your Grid up into two rows, and put a StackLayout in the first row source: https://github.com/dotnet/maui/issues/12452#issuecomment-1683054644
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Marius Rusu

79284484

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

in App pubspec.yaml file add dependency_overrides, like this

dependency_overrides:
   B: {git: {url: 'xxx', ref: '0.1.0'}}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: tics matics

79284480

Date: 2024-12-16 11:22:24
Score: 0.5
Natty:
Report link

One solution would be to:

  1. Detect lines in your second image using either the Hough Transform, RANSAC or any other suitable technique.
  2. Check for the intersections of these lines in the 2D/image space. These are your 3D mesh vertices (with z coordinates = 0). The lines connecting these vertices are edges.
  3. Create new vertices by using the x and y coordinates of the previous vertices and replacing z by your walls height (z_height).
  4. Connect these vertices to the others: vertices with the same x and y coordinates (but z=0 and z=z_height) share an edge and the edges in the z=0 plane are the same than in the z=z_height plane.
  5. Create quad faces from the edges (or break them into tri faces if needed). Be careful that the vertices/edges order must stay consistent (usually counter-clockwise).
  6. Save the result in a file, in whatever format you want: STL, OBJ, OFF, etc.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: el_grezeq

79284476

Date: 2024-12-16 11:22:24
Score: 2
Natty:
Report link

Here’s what I suspect: In my opinion, this happens because hydration is not occurring properly. That’s why the related components are rendered using CSR. You’ll likely need to make some adjustments. it is not about lazy loading.

Why do I think this?

  1. When I converted a CSR project to SSR, I had no issues with lazy-loaded routes.
  2. The Angular Hybrid Rendering guide doesn’t mention eager or lazy-loaded routes as a specific issue.

What you should check:

  1. https://angular.dev/guide/hydration
  2. https://sap.github.io/spartacus-docs/server-side-rendering-coding-guidelines/
Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: BarisGC

79284469

Date: 2024-12-16 11:20:23
Score: 2.5
Natty:
Report link

UV has a defaut command for migrate uvx pdm import pyproject.toml

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

79284465

Date: 2024-12-16 11:19:23
Score: 1.5
Natty:
Report link

I think you are having a cors problem try adding this to you default filterchain

        .cors(Customizer.withDefaults())
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hamza Naceur

79284447

Date: 2024-12-16 11:11:21
Score: 2
Natty:
Report link

This XML. file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied

The bucket you access does not belong to you. you. 675ED967EE88453339540778 worktracking-imgs.oss-ap- southeast-1.aliyuncs.com

0003-00000905

https://api.alibabacloud.com/troubleshoot? q=0003-00000905

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: This XML. file does not appear

79284428

Date: 2024-12-16 11:06:19
Score: 1
Natty:
Report link

After some trial and error, I've figured it out what the problem was:

  1. Had to update my rules in MULTILINE_PARSER to not consider time, stream and logtag
  2. add parser flag in MULTILINE_PARSER and point to cri, which will parse every line and remove time, stream and logtag

This way the multiline parser will know which lines are to be merged.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Marco Emídio

79284423

Date: 2024-12-16 11:05:19
Score: 1.5
Natty:
Report link

For mocking request/response, you can use Beeceptor, which lets you create custom endpoints and simulate API responses, enhancing your testing capabilities.

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

79284399

Date: 2024-12-16 10:55:17
Score: 5
Natty:
Report link

Was it resolved? I understand that the replicate_commands function can be used starting from Redis 6.0.0 version. If it's a Windows OS, it seems you need to use docker.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Was it
  • Low reputation (1):
Posted by: 정지훈

79284396

Date: 2024-12-16 10:54:16
Score: 0.5
Natty:
Report link

I am using uv and yes "yes" | uv sync -vvvv worked for me. I guess that should also for pip if it prompts you to input "yes" manually

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

79284392

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

I was facing the same issue. Go to pubspec.yaml

and change file picker to exact this version :

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

79284387

Date: 2024-12-16 10:50:15
Score: 0.5
Natty:
Report link

This is a standard instructive message from Android Studio once you update the targetSdkVersion. It's meant to remind that with each new API level, there might be changes to system behaviors, permissions, or deprecated APIs that could possibly affect your app.

When you alter targetSdkVersion to 35, Android Studio prompts you to review the Behavior Changes introduced in API 35 (Android 14). It’s not necessarily pointing to any issue with your code; rather, it’s a precautionary message encouraging you to verify that your app is compatible with the new behaviors.

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

79284383

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

I had just the same problem. 2 text and one date attribute in a select. First sort the date descending - instead of 25 rows I had 31. Sort date ascending, I had 110 rows instead of 25. On SQL Server it was as expected... always the number of TOP x. In MS Access I had to add ALL select fields into the order clause, to have the concrete number. Looks like it took other dates identical with the 25th in the result..

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

79284370

Date: 2024-12-16 10:45:14
Score: 3.5
Natty:
Report link

This works:

#page-container :is(h2):not(a h2)

Thanks @C3roe for answering in comments.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bulbasaur

79284361

Date: 2024-12-16 10:41:13
Score: 1.5
Natty:
Report link

Another thing to consider is checking the PostgreSQL configuration for potential misalignments, like incorrect wal_level or checkpoint_timeout settings. Misconfigurations here can sometimes cause issues during recovery if checkpoints or WAL segments don’t align properly.

It’s also worth verifying that the storage layer (e.g., file system or RAID) isn’t introducing corruption. Silent disk errors can occasionally lead to problems like this.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: help upback cloud

79284359

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

It's hard to tell what can be done without knowing more details about the data transformations you're performing.

csv is (I believe) written in pure Python, whereas pandas.read_csv defaults to a C extension [0], which should be more performant. However, the fact that performance isn't improved in the pandas case suggests that you're not bottlenecked by I/O but by your computations -- profiling your code would confirm that.

In general, during your data manipulations, pandas should be a lot more memory-performant than csv, because instead of storing your rows in Python objects, they are stored in arrays behind the scenes.

The general principle for performant in-memory data manipulation for Python is to vectorize, vectorize, vectorize. Every Python for loop, function call, and variable binding incurs overhead. If you can push these operations into libraries that convert them to machine code, you will see significant performance improvements. This means avoiding direct indexing of cells in your DataFrames, and, most importantly, avoiding tight for loops at all costs [1]. The problem is this is not always possible or convenient when you have dependencies between computations on different rows [2].

You might also want to have a look at polars. It is a dataframe library like pandas, but has a different, declarative API. polars also has a streaming API with scan_csv and sink_csv, which may be what you want here. The caveat is this streaming API is experimental and not yet very well documented.

For a 2-5GB CSV file, though, on an 8GB machine, I think you should be able to load the whole thing in memory, especially given the inefficiency of CSV files will get reduced once converted to the in-memory Arrow data format.


[0] In some cases pandas falls back to pure Python for reading, so you might want to make sure you're not falling into one of those cases.

[1] I find this is usually where Python performance issues are most apparent, because such computations run for every single row in your dataset. The first question with performance is often less "how do I my operations quicker?", but "what am I doing a lot of?". That's why profiling is so important.

[2] You can sometimes get around this with judicious use of shifting.

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Movpasd

79284353

Date: 2024-12-16 10:39:12
Score: 3
Natty:
Report link

After trying most of the things above and none works, what i did was to just move the flutter folder from the path to bin, and then replace it back and it works.

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

79284348

Date: 2024-12-16 10:37:11
Score: 1.5
Natty:
Report link

I managed to fix the issue by importing like this:

const ExcelJS = await import('exceljs');
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Milagros Lasarte

79284347

Date: 2024-12-16 10:37:11
Score: 3.5
Natty:
Report link

I am having errors trying to deploy flask to vercel. First , I had to remove pywin32 from my requirements file , then I got this eror about unzipped maximum size.

Should I switch to AWS hosting?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: petercli

79284326

Date: 2024-12-16 10:26:09
Score: 0.5
Natty:
Report link

I was able to accomplish the desired result with the following modified version:

<?php
require_once('plugins/pretty-json-column.php');


$adminer = new AdminerPlugin([]);

return new AdminerPrettyJsonColumn(
    $adminer
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Neveh

79284323

Date: 2024-12-16 10:25:08
Score: 1
Natty:
Report link

Try this, this will solve the issue.

!pip3 install -q torch==2.2.0 torchtext==0.17.0 --index-url https://download.pytorch.org/whl/cu118

!pip install -q -U portalocker==2.8.2

`

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: rahul bhole

79284321

Date: 2024-12-16 10:25:08
Score: 2
Natty:
Report link

There is an automated tool for creating AI email bot: https://proxiedmail.com/en/ai-email-bots You can create an email on a service domain or your domain, set up a prompt and you will get copies of the user+bot communication to your email as well. So, you can also participate in conversations. No coding skills are required.

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

79284320

Date: 2024-12-16 10:24:08
Score: 1.5
Natty:
Report link

Top-level navigation refers to a navigation of a top-level traversable. Top-level traversables are browsing contexts that can directly contain top-level browsing contexts, like browser tabs, windows, or specific iframes with permissions to act as navigable contexts.

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

79284318

Date: 2024-12-16 10:24:08
Score: 3.5
Natty:
Report link

For anyone finding this question and having similar problems:

Change your domain

.local is a reserved domain for mDNS as written in RFC 6762. Therefor you will from time to time encounter "strange" problems as some devices/implementation are fixed to mDNS as soon as .local is encountered.

Use something different like .home or .corp, and beware that .lan could work... but is undefinied and could change in the future.

(For .home & .corp there are referebces in RFCs that they are used in home and small business networks and should be avoided in global skopes.)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having similar problem
  • Low reputation (1):
Posted by: FoxRomeo

79284313

Date: 2024-12-16 10:21:08
Score: 0.5
Natty:
Report link

In order to get the best out of "slices" and use them properly, we need to have a good grasp of the internals of them. They're composed of three machine words:

  1. A pointer to the backing array,
  2. Current length of slice,
  3. Capacity of the backing array.

slice header

These three items together form what's called Slice Header. When you pass a slice as an argument to a function, you are actually passing a copy of this header. Therefore whatever change done on the copy of this header, is not visible to the original slice created at the main function and it remains intact.

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

79284312

Date: 2024-12-16 10:21:08
Score: 1
Natty:
Report link

Since I didn't want to add a function for something so simple I did the following:

ALTER TABLE MyTable
ALTER COLUMN MyColumn TYPE int[] USING TRANSLATE(MyColumn, '[]', '{}')::int[]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xBlue

79284311

Date: 2024-12-16 10:21:08
Score: 0.5
Natty:
Report link

Not so elegant solution but very simple. I needed to send functions to a VM but it would be a minor tweak to send to remote session instead.

I have a custom PS module in C drive: C:\myModule.psm1

function Write-OutputString {
    param(
        $OutputString
    )
    
    $OutputString
}

In this example the module is sent as string to the remote session:

$ScriptOnHost = {
    param(
        $Module
    )

    # Initialize all function in module
    Invoke-Expression $Module
    
    # Call function from module 
    Write-OutputString -OutputString "Hello World!"
}

$VMSession = New-PSSession -VMName $VMName -Credential $VMCredentials

# Module as string
$ModuleOnHost = Get-Content "C:\myModule.psm1" -Raw

Invoke-Command -Session $VMSession -ScriptBlock $ScriptOnHost -ArgumentList $ModuleOnHost
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joel Metsi

79284309

Date: 2024-12-16 10:19:07
Score: 3.5
Natty:
Report link

@belgoros: you still can get the predicate instance via criteriaQuery.orderBy(yourOrderCriteria) .getRestriction();

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @belgoros
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Then Chanthavithou

79284305

Date: 2024-12-16 10:18:07
Score: 3.5
Natty:
Report link

I had to specifically add "require('dayjs/locale/ca');" so that the "ca" locale worked.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Marina Gavin at Qinera

79284299

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

Like @C3roe says this code snippet works great i think. In the css code #page-container :not(a) > h2 excludes the a tags with h2

#page-container > h2,
#page-container :not(a) > h2 {
  font-size: 20px;
  color: #df1425;
  font-family: Arial, sans-serif;
}
<div id="page-container">
      <h2>I want this to have styling changes</h2>
      <a>
        <h2>
          I don't want this to have styling changes because this is inside a tag
        </h2></a
      >
      <div>
        <h2>I want this to have styling changes</h2>
        <a>
          <h2>
            I don't want this to have styling changes because this is inside a
            tag
          </h2></a
        >
      </div>

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Low reputation (0.5):
Posted by: webworm84

79284293

Date: 2024-12-16 10:14:06
Score: 2.5
Natty:
Report link

Its a reanimated version issue. npm add [email protected] Install previous version. Its working

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

79284290

Date: 2024-12-16 10:13:06
Score: 0.5
Natty:
Report link

From the command line (or clicking a shortcut for the same command) use

firefox -P

You'll be prompted to pick a profile. Double-click one to launch it. (You can also add and delete them in the same dialog.)

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

79284281

Date: 2024-12-16 10:08:04
Score: 1
Natty:
Report link

You can try to check history length. Like this:

function navigateBack() {
  if (window.history.length <= 1) {
    navigation.push(HOME_PAGE);
  } else {
    navigation.back();
  }
}

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

79284272

Date: 2024-12-16 10:06:04
Score: 1
Natty:
Report link

I would suggest using state for chart options so that you can set initial settings like empty title which will be overwritten with API data later (in the example simulation using setTimeout). You can also use simplified built-in loader.

Demo: https://stackblitz.com/edit/react-bp3amudu?file=index.js

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

79284261

Date: 2024-12-16 10:03:03
Score: 3.5
Natty:
Report link

For me, after updating this setting, .net 6 finally shows up. enter image description here toggle off "Add newly recommended components for installed workloads on update" enter image description here

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

79284245

Date: 2024-12-16 09:59:02
Score: 2.5
Natty:
Report link
  1. Put favicon in public folder with favicon.ico fileName.
  2. Then press shift+f5 in browser.
  3. It'll clear cache and favicon will appear.
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mr Karan

79284236

Date: 2024-12-16 09:56:01
Score: 3
Natty:
Report link

I got the same problem I created a plugin in pom who transform the imports from javax to jakarta and everything is compiled and working :

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <configuration>
                        <target>
                            <!-- Remplacer javax par jakarta -->
                            <replaceregexp flags="g">
                                <regexp pattern="javax"/>
                                <substitution expression="jakarta"/>
                                <fileset dir="${project.basedir}/src/main/java/com/smi/generated" includes="**/*.java"/>
                            </replaceregexp>
                            <replaceregexp flags="g">
                                <regexp pattern="generated"/>
                                <substitution expression="com.smi.generated.generated"/>
                                <fileset dir="${project.basedir}/src/main/java/com/smi/generated" includes="**/*.java"/>
                            </replaceregexp>

                        </target>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

But certainly there is another thing that replace JAXB who knows it ? thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): I got the same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Alaa Ben Jaber

79284234

Date: 2024-12-16 09:56:01
Score: 4
Natty:
Report link

Thank you everyone for such generous answer to a stupid question. I proceeded to post this here without even learning the basics of backend.

I was so naive to ask that I am getting the data logged on terminal but how can I get it on frontend LOL!

I was looking to create a stock market ticker kind of component for Indian stocks but couldn't find an API like Yahoo Finance (Yahoo Finance only had US stocks).

So, I scoured the web and found Angel Broker which provided APIs to get the data.

So, I hit npm i smartapi-javascript

and thought that everything is correct why the hell wouldn't it show up in the webpage.

Back then, didn't knew shit about DOM just knew HTML and CSS.

Thank You for understanding my concern and spending your time to answer my stupid query in detail

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thank You
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): stupid question
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jeet Pattani

79284232

Date: 2024-12-16 09:54:00
Score: 1.5
Natty:
Report link

Step 1: Check your python version use poetry to create an env which is equal to the installed python version. The version running on your machine will be used by poetry(Windows). Others can try with the documentation code for mac I guess.

For Mac:

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

79284228

Date: 2024-12-16 09:54:00
Score: 3.5
Natty:
Report link

If there is a method to parse a blob of blobentry? I dig out the AOSP,but I found it difficulty, and it looks like my device runs in the TE and the blob is parsed by the trusty.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arashimu

79284222

Date: 2024-12-16 09:51:58
Score: 6 🚩
Natty: 4
Report link

It looks like the key 2 is not propagated to the actual model deployment ever (we're using open ai), thus it doesn't really work. The model deployment seems to get always key 1. Also, I don't really understand why model deployment actually has any key specified if that is actually set on the service level. Do you have any input on this?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Piotr Naszarkowski

79284215

Date: 2024-12-16 09:48:57
Score: 2.5
Natty:
Report link

Make sure that RoleGuard is not a Global Guard.

Global Gaurds > Controller Guard > API Endpoint Guard

You can read more about it here: https://docs.nestjs.com/guards#binding-guards

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

79284211

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

I couldn't reach that schematic page, because of a bad gateway error. However, I managed to find some schems, where I could see a resistor attached to RST and 3V. The second to the right of crystal. If you turn the board, it coincides with the description of Harm Berntsen.

Well, IT DOES NOTHING.

My 8266 keeps hanging at wake up.

enter image description here

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

79284209

Date: 2024-12-16 09:46:56
Score: 2.5
Natty:
Report link

For anyone looking for a solution for a similar situation. I didn't find a perfect solution for my problem, I had to change how redirect url endpoint is working, previously it was directly redirecting the request to the Identity provider service and I changed that to simple return a 200 and redirect url as string, which frontend sets in an anchor in href. After that it doesn't run into CORS issue as the browser doesn't check it.

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

79284206

Date: 2024-12-16 09:45:56
Score: 3
Natty:
Report link

That line solved the case for me: pip install grpcio==1.60.1

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

79284204

Date: 2024-12-16 09:45:56
Score: 0.5
Natty:
Report link

It probably means that the rule lib has found no C++ sources, i.e. it looks like your variable SOURCES is empty.

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

79284201

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

I faced the same problem and i think in udp_ send function, the headers will be added to your pbuf and it increases the len element of pbif. So you have two choices, first you should free the pbuf and allocate it in the next cycle. Second you can truncate the added headers using pbuf_free_header function, in this case no free pbuf and reallocation needed.

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

79284186

Date: 2024-12-16 09:38:54
Score: 2
Natty:
Report link

you can use LIKE keyword instead of isequal (=) to sign.

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

79284183

Date: 2024-12-16 09:38:54
Score: 1.5
Natty:
Report link

This is what solved it for me

You change the theme in MainActivity, search for line base.SetTheme(Resource.Style.MainTheme)

Remove this line, and the extra bar will go away

The Maui.SplashTheme inherits from Maui.MainTheme.NoActionBar, so by using base.SetTheme(Resource.Style.MainTheme), and not base.SetTheme(Resource.Style.MainTheme_NoActionBar)` you reenables the action bar

see: https://github.com/dotnet/maui/blob/2e4ca4a4d16017fcafbf16d07e6f299456004fff/src/Core/src/Platform/Android/Resources/values/styles.xml#L37

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

79284171

Date: 2024-12-16 09:31:53
Score: 1.5
Natty:
Report link

2024 Updated answer

You can increase the severity of the CA1069 analyzer to make the compiler report it as error and prevent compilation.

dotnet_diagnostic.CA1069.severity = error

see more https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1069

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

79284166

Date: 2024-12-16 09:30:53
Score: 1.5
Natty:
Report link

The error 0x800706BE is apparently quite commonly used by the WMI framework, if you look at the various reports on the Internet. Unfortunately, the event logs are also unusable.

In my case, the cause was ultimately quite simple. When restructuring the sample code in https://learn.microsoft.com/en-us/windows/win32/wmisdk/supplying-data-to-wmi-by-writing-a-provider, I had built in an error: The method DllGetClassObject deleted the factory after its use even if QueryInterface was successful. As a result, the CreateInstance method could of course never be called.

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

79284159

Date: 2024-12-16 09:26:51
Score: 0.5
Natty:
Report link

If you have an SSH config file, you can retrieve your Host alias from there and use the following command ,say, to clone your repository:

git clone git@github-{your alias name here}:username/projectname.git

For example, with the following SSH config:

Host github-azizkale
 HostName github.com
 User git
 IdentityFile ~/.ssh/azizkale

Your command would be:

git clone git@github-azizkale:azizkale/projectname.git

Make sure:

1- Your SSH key is created and stored at ~/.ssh/azizkale.

2- The public key (azizkale.pub) has been added to your GitHub account under Settings > SSH and GPG keys.

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

79284156

Date: 2024-12-16 09:24:51
Score: 1.5
Natty:
Report link

Make a compromise, perhaps can approximately achieve. create settings.json in .vscode and type like this:

"cmake.debugConfig": {
    "externalConsole": true
}

Then use "debug" instead of "launch".

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

79284155

Date: 2024-12-16 09:24:51
Score: 2.5
Natty:
Report link

The latest version of chakra-ui, v3(as of now) does not have Modal Component like the previous version. You can do the same with Dialog Component in this version.

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

79284148

Date: 2024-12-16 09:17:50
Score: 2.5
Natty:
Report link

NGXS provides a way of getting Selectors as signals, try

todoCount = select(TodoCountState.count);

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

79284135

Date: 2024-12-16 09:13:49
Score: 1.5
Natty:
Report link

For me the issue was due to incompatible versions of poetry and packaging. It got fixed after running pip install --upgrade packaging

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

79284129

Date: 2024-12-16 09:10:49
Score: 1.5
Natty:
Report link

The error ValueError: Only instances of keras.Layer occurs when you add an invalid object (like a string or uninitialized layer) to a Keras model.

Common Causes: Non-Layer Object: Adding something like a string or function instead of a Keras layer.

Fix: Ensure all objects in the model are valid Keras layers. python Copy code model = Sequential([Dense(64, activation='relu')]) # Correct Uninitialized Layer: Forgetting to initialize a layer.

Fix: Add parentheses when defining layers. python Copy code layer = Dense(64) # Correct

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: client work

79284122

Date: 2024-12-16 09:07:48
Score: 0.5
Natty:
Report link

Converting an Android APK to a Samsung TPK is challenging because the two formats cater to entirely different platforms—Android and Tizen OS. Here's how you can approach it:

  1. Use Tizen Studio: Download and install Tizen Studio, Samsung's official IDE for creating TPK files.
  2. Adapt Your App: If you have the source code, rebuild your app to be compatible with Tizen APIs. Samsung smart TVs primarily support web apps, often developed using React.js (which you're already using). Tizen Studio provides templates and tools to streamline this process.
  3. Rewriting for Tizen: React Native does not directly support Tizen, so you may need to rewrite your app using a compatible framework like React.js or plain JavaScript for a web-based Tizen app.

Direct APK-to-TPK conversion tools, like the POLARIS App Generator you mentioned, are either outdated or unreliable. The most efficient method is rebuilding the app for Tizen from scratch.

If you’re developing apps for IPTV platforms, consider exploring examples like MagisTV Premium, an Android app that offers advanced features for smart TVs and similar devices. Examining such apps could provide valuable insights into optimizing cross-platform compatibility.

Let me know if you'd like further details on using Tizen Studio or transitioning your app for Samsung devices!

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

79284119

Date: 2024-12-16 09:07:47
Score: 4
Natty:
Report link

I actually managed to derive an analytical expression for the (shortest) distance between nodes, which you can find here:

https://www.researchgate.net/publication/379118066_Exact_analytic_expressions_for_discrete_first-passage_time_probability_distributions_in_Markov_networks

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

79284111

Date: 2024-12-16 09:01:46
Score: 1
Natty:
Report link

It wasn't simple to find out how to solve this but finally i get the solution :

    filter {
  grok {
    match => {
      "message" => [
        '%{TIMESTAMP_ISO8601:log_timestamp} thread-%{INT:thread_id} SOAP message <<(?<soap_in>.*?)>>',
        '%{TIMESTAMP_ISO8601:log_timestamp} thread-%{INT:thread_id} SOAP message >>(?<soap_out>.*?)<<'
      ]
    }
  }
  aggregate {
  task_id => "%{thread_id}"
  code => "
    map['soap_in'] ||= []
    map['soap_out'] ||= []
    map['thread_id'] ||= []
    map['thread_id'] = event.get('thread_id')

    if event.get('soap_in')
      map['soap_in'] << {'soap_in' => event.get('soap_in'), 'log_timestamp' => event.get('log_timestamp')}
    end

    if event.get('soap_out')
      map['soap_out'] << {'soap_out' => event.get('soap_out'), 'log_timestamp' => event.get('log_timestamp')}
    end

    if map['soap_in'] && map['soap_out']
      event.set('thread_id', map['thread_id'])
      event.set('soap_in', map['soap_in'])
      event.set('soap_out', map['soap_out'])
      event.cancel()
   end
   "
  push_previous_map_as_event => true
  timeout => 3
}
  mutate {
    remove_field => ["message"]
  }
}
Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user3761024

79284107

Date: 2024-12-16 08:59:45
Score: 1
Natty:
Report link

Refer to class-cannot-find-another-class-in-the-same-namespace Ensure that the files in the v2 folder have their Build Action correctly set to Compile:

Remember close VS2017 down, reopening, Clean and Rebuild the project after setting Build Action

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

79284105

Date: 2024-12-16 08:58:45
Score: 1.5
Natty:
Report link

git does not add empty files to source control. Try adding some content to the file dir-name/file.txt and then try

git add dir-name/file.txt
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raviraj

79284103

Date: 2024-12-16 08:56:44
Score: 1
Natty:
Report link

Example Directory and Path Setup If your Index.cshtml file is referencing all.min.css, the path should look like this:

<link rel="stylesheet" href="~/css/admin/all.min.css" />

Let me know if it still doesn’t work, and we can debug further.

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

79284097

Date: 2024-12-16 08:52:43
Score: 1.5
Natty:
Report link

The problem could be a wrong sonar url.

We had this issue in bitbucket pipelines where we defined SONAR_HOST_URL as environmental variable. However, there was an empty space at the end of URL and this was causing the same problem.

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

79284096

Date: 2024-12-16 08:52:43
Score: 0.5
Natty:
Report link

Yes, @ is an immediate load into the A register. Dealing with the limited number of actual registers in the physical hardware is part of the challenge.

Some techniques that may be useful to you:

If I am not mistaken (and I may well be, it's the middle of the night and I have insomnia), you can implement POP Local 2 in 8 instructions.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Trebor the MadOverlord

79284095

Date: 2024-12-16 08:52:43
Score: 1
Natty:
Report link

Yes, use a frame. A frame is designable like form and you can create an instance in code, see https://stackoverflow.com/a/1499646/1431618.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Uli Gerhardt

79284092

Date: 2024-12-16 08:51:43
Score: 2
Natty:
Report link

The latest getopt portable implementation written by mingw-w64 project is on:

https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-crt/misc/getopt.c https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/getopt.h

Just compile the getopt.c with your code's target object together. I've tried it on Visual Studio 2022 CMake Project and it works fine.

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

79284076

Date: 2024-12-16 08:44:42
Score: 3
Natty:
Report link

Given n circle centers, compute the convex hull of the circles (which can be done in O(n log n)). Since the convex hull is necessarily a convex polygon, you can apply Welzl’s algorithm to its vertices.

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

79284068

Date: 2024-12-16 08:43:41
Score: 1.5
Natty:
Report link

I have also stuck at this problem for a long time. Finally I find out that there're some troubles on my Nginx RTMP that it cannot resolve the ip address from a host name. After I replaced localhost with 127.0.0.1, everything turned well.

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

79284066

Date: 2024-12-16 08:42:41
Score: 2.5
Natty:
Report link

According to ISO 13400-2, it is clearly stated that ISO 13400-3 DoIP defines OSI Layer 2 (Data Link) and OSI Layer 1 (Physical). On top of this, UDS defines OSI Layer 7 (Application) and OSI Layer 6 (Presentation). Therefore, based on the standard, I believe the answer is yes.

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

79284065

Date: 2024-12-16 08:41:40
Score: 7.5 🚩
Natty: 5
Report link

I am encountering the same issue here, with CORS enabled on the backend server, I am receiving 403 responses. Any clue on how to solve?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dawsar Jomaa

79284064

Date: 2024-12-16 08:40:39
Score: 1
Natty:
Report link

Solution

Thinking track

# example
server:
  port: ${SERVER_PORT:8080}

Solution detail

# application.yml
spring:
  config:
    import: "sm://"
  datasource:
    url: jdbc:postgresql://localhost:5432/cehr?currentSchema=XXXX
    username: ${sm\://psql-username}
    password: ${sm\://psql-password}
@Service
public class XXXService extends CommonService {

    @Value("${spring.datasource.username}")
    private String username;

    @Value("${spring.datasource.password}")
    private String password;

    @Value("${sm://psql-username}")
    private String username2;

    @Value("${sm://psql-password}")
    private String password2;

    @Value("${sm\\://psql-username}")
    private String username3;

    @Value("${sm\\://psql-password}")
    private String password3;

    public void execute() {

        System.out.println("username = " + username);
        System.out.println("password = " + password);

        System.out.println("username2 = " + username2);
        System.out.println("password2 = " + password2);

        System.out.println("username3 = " + username3);
        System.out.println("password3 = " + password3);

        System.out.println("psql-username = " + secretManagerTemplate.getSecretString("sm://psql-username"));
        System.out.println("psql-password = " + secretManagerTemplate.getSecretString("sm://psql-password"));
    }
}
# output
username = ********** (correct)
password = ********** (correct)
username2 = //psql-username
password2 = //psql-password
username3 = ********** (correct)
password3 = ********** (correct)
psql-username = ********** (correct)
psql-password = ********** (correct)

Conclusion

In this article, we found that how to use gcp secretmanager after Spring-Boot upgrade to version 3.4.0. I thing it's a luxurious trouble. Also see: Official website. Enjoy it.

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

79284063

Date: 2024-12-16 08:40:39
Score: 1
Natty:
Report link

code to convert a day of the week number to the weekday name in R:

    weekdays(as.Date("2024-01-01") + (day_number - 1))
    day_number <- 3  # Wednesday
print(weekdays(as.Date("2024-01-01") + (day_number - 1)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shyam Kumar

79284052

Date: 2024-12-16 08:37:38
Score: 6.5 🚩
Natty: 4.5
Report link

do you find the solution? because i also got confused about upload face to library

Reasons:
  • RegEx Blacklisted phrase (2.5): do you find the
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ZZZ

79284047

Date: 2024-12-16 08:36:37
Score: 2.5
Natty:
Report link

As @user5182503 (Pavel K. ?) observed, in JavaFX 9+, access to the package containing the required Property Bundle is disallowed.

However, there is a new URL Scheme jrt: to read Content from the Runtime.

Here is an answer using that new functionality.

It was written and tested under Windows 11 Pro with the Zulu JDK FX 17 runtime from Azul Systems Inc. and is based on the answer submitted by @Silvio Barbieri.

Hope you like it:

package com.stackoverflow.q71053358;

import static javafx.scene.control.ScrollPane.ScrollBarPolicy.AS_NEEDED;

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import java.util.StringJoiner;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceDialog;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.Control;
import javafx.scene.control.MenuItem;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.control.TextArea;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.stage.Stage;

/**
 * Example for
 * <a href="https://stackoverflow.com/questions/71053358/">Stackoverflow Question 71053358</a>
 * <br><br>
 * Tested with Zulu JavaFX JDK 17.
 * <br><br>
 * Demonstrates use of the <code>jrt:</code> URL Scheme to access
 * Properties in Packages that in recent JDK's are not accessible.
 */
public class EmulateDefaultContextMenu extends Application {

    private static final class JrtURL {

        private static final String JAVA_RUNTIME_SCHEME = "jrt:";

        private        final URL    url;

        public JrtURL(final String module, final String package_, final String member) throws MalformedURLException {
            this.url = new URL(new StringJoiner("/")
                    .add(JAVA_RUNTIME_SCHEME)
                    .add(module)
                    .add(package_)
                    .add(member)
                    .toString());
        }

        public InputStream openStream() throws IOException {
            return this.url.openStream();
        }
    }

    private static final class Key {

        public final String key;

        public Key(final String... keyParts) {
            this.key = Stream.of(keyParts).collect(Collectors.joining());
        }
        public String lookupString(final ResourceBundle bundle) {
            return bundle.getString(this.key);
        }
    }

    public  static enum Ability {
        ENABLED,
        DISABLED;

        public boolean isEnabled()  {return this == ENABLED;}
        public boolean isDisabled() {return this == DISABLED;}
    }

    private static enum LogSeverity {
        ERROR,  // <- High Severity
        WARN,
        INFO,
        DEBUG,
        TRACE;  // <- Low Severity
    }

    private static final String   TEXT_AREA_MODULE     = "javafx.controls";
    private static final String   TEXT_AREA_PKG        = "com/sun/javafx/scene/control/skin/resources";
    private static final String   TEXT_AREA_PROPS      = "controls.properties";
    private static final String   TEXT_AREA_PROPS_DE   = "controls_de.properties";

    private static final String   TEXT_AREA_MENU       = "TextInputControl.menu.";

    private static final Key      TEXT_AREA_UNDO       = new Key(TEXT_AREA_MENU, "Undo");
    private static final Key      TEXT_AREA_REDO       = new Key(TEXT_AREA_MENU, "Redo");
    private static final Key      TEXT_AREA_CUT        = new Key(TEXT_AREA_MENU, "Cut");
    private static final Key      TEXT_AREA_COPY       = new Key(TEXT_AREA_MENU, "Copy");
    private static final Key      TEXT_AREA_PASTE      = new Key(TEXT_AREA_MENU, "Paste");
    private static final Key      TEXT_AREA_DELETE     = new Key(TEXT_AREA_MENU, "DeleteSelection");
    private static final Key      TEXT_AREA_SELECT_ALL = new Key(TEXT_AREA_MENU, "SelectAll");

    private        final TextArea logTextArea          = new TextArea();

    @Override
    public void start(final Stage primaryStage) throws Exception {
        /*
         * Set up Logging ScrollPane...
         */
        final var logScrollPane = new ScrollPane(logTextArea);

        logTextArea.setStyle   ("-fx-font-family: 'monospaced'");
        logTextArea.setEditable(false); // Side-effect.: CTRL-A, CTRL-C & CTRL-X are ignored

        logTextArea.addEventFilter(KeyEvent.KEY_PRESSED, e -> {

            if (e.isShortcutDown()) { // (CTRL on Win, META on Mac)

                if (e.getCode() == KeyCode.Y     // Suppress CTRL-Y
                ||  e.getCode() == KeyCode.Z) {  // Suppress CTRL-Z
                    e.consume();
                }
            }
        });

        logScrollPane.setHbarPolicy (AS_NEEDED);
        logScrollPane.setVbarPolicy (AS_NEEDED);
        logScrollPane.setFitToHeight(true);
        logScrollPane.setFitToWidth (true);

        /*
         * Generate the Context Menu...
         */
        try {
            final var jrtURL        = new JrtURL(TEXT_AREA_MODULE, TEXT_AREA_PKG, TEXT_AREA_PROPS);
            final var jrtURL_de     = new JrtURL(TEXT_AREA_MODULE, TEXT_AREA_PKG, TEXT_AREA_PROPS_DE);

            final var nullBundle    = getNullBundle();                          // Failing-all-else.: use Key as Title
            final var bundle_en     = getPropertyBundle(jrtURL,    nullBundle); // Fallback to English Titles
            final var bundle        = getPropertyBundle(jrtURL_de, bundle_en);  // German Titles, if available

            final var contextMenu   = newContextMenu(logTextArea);
            /*
             * For completeness, the following Items are ALL those that would be generated for a fully-enabled TextArea.
             * As our TextArea is not editable and CTRL-Y & CTRL-Z are ignored, some are superfluous.
             * The superfluous are assigned to a null Context Menu (i.e. none) & will therefore not appear.
             * Nevertheless, the Listeners for the full functionality are included.
             */
            final var itemUndo      = addMenuItem (null,        bundle, TEXT_AREA_UNDO,       Ability.DISABLED, e -> logTextArea.undo());
            final var itemRedo      = addMenuItem (null,        bundle, TEXT_AREA_REDO,       Ability.DISABLED, e -> logTextArea.redo());
            final var itemCut       = addMenuItem (null,        bundle, TEXT_AREA_CUT,        Ability.DISABLED, e -> logTextArea.cut());
            final var itemCopy      = addMenuItem (contextMenu, bundle, TEXT_AREA_COPY,       Ability.DISABLED, e -> logTextArea.copy());
            ;                         addMenuItem (null,        bundle, TEXT_AREA_PASTE,      Ability.ENABLED,  e -> logTextArea.paste());
            final var itemDelete    = addMenuItem (null,        bundle, TEXT_AREA_DELETE,     Ability.DISABLED, e -> deleteSelectedText());
            ;                         addSeparator(null);
            final var itemSelectAll = addMenuItem (contextMenu, bundle, TEXT_AREA_SELECT_ALL, Ability.DISABLED, e -> logTextArea.selectAll());
            ;                         addSeparator(contextMenu);
            ;                         addSeparator(contextMenu);
            ;                         addMenuItem (contextMenu,         "Change Log Level",   Ability.ENABLED,  e -> changeLogThreshold());

            logTextArea.undoableProperty() .addListener((obs, oldValue, newValue) -> itemUndo.setDisable(!newValue));
            logTextArea.redoableProperty() .addListener((obs, oldValue, newValue) -> itemRedo.setDisable(!newValue));
            logTextArea.selectionProperty().addListener((obs, oldValue, newValue) -> {
                itemCut      .setDisable(newValue.getLength() == 0);
                itemCopy     .setDisable(newValue.getLength() == 0);
                itemDelete   .setDisable(newValue.getLength() == 0);
                itemSelectAll.setDisable(newValue.getLength() == newValue.getEnd());
            });
        } catch (final IOException e) {
            e.printStackTrace();
        }

        /*
         * Set the Scene...
         */
        primaryStage.setTitle("Question 71053358");
        primaryStage.setScene(new Scene(logScrollPane, 480, 320));
        primaryStage.show();

        /*
         * Generate some Content every now-and-again...
         */
        final Runnable runnable  = () -> {
            Platform.runLater(() -> logTextArea.appendText(ZonedDateTime.now().toString() + '\n'));
        };
        Executors.newScheduledThreadPool(1).scheduleAtFixedRate(runnable, 2, 9, TimeUnit.SECONDS);
    }

    private static final PropertyResourceBundle getPropertyBundle(final JrtURL jrtURL, final ResourceBundle parentBundle) throws IOException {

        try (final var inputStream = jrtURL.openStream())
        {
            return new PropertyResourceBundle(inputStream) {
                {
                    this.setParent(parentBundle /* (may be null) */);
                }
            };
        }
    }

    private static final ResourceBundle getNullBundle() {
        return new       ResourceBundle() {
            @Override
            protected Object handleGetObject(final String key) {
                return key;
            }
            @Override
            public Enumeration<String> getKeys() {
                return Collections.emptyEnumeration();
            }
        };
    }

    private static ContextMenu newContextMenu(final Control control) {

        final ContextMenu      contextMenu = new ContextMenu();

        control.setContextMenu(contextMenu);

        return                 contextMenu;
    }

    private static MenuItem addMenuItem(final ContextMenu parent, final ResourceBundle  bundle,  final Key titleKey, final Ability ability, final EventHandler<ActionEvent> handler) {
        return              addMenuItem(                  parent, titleKey.lookupString(bundle),                                   ability,                                 handler);
    }

    private static MenuItem addMenuItem(final ContextMenu parent,                                final String title, final Ability ability, final EventHandler<ActionEvent> handler) {

        final var                 child = new MenuItem(title);
        ;                         child.setDisable (ability.isDisabled());
        ;                         child.setOnAction(handler);

        if (parent != null) {
            parent.getItems().add(child);
        }

        return                    child;
    }

    private static SeparatorMenuItem addSeparator(final ContextMenu parent) {

        final var                 child = new SeparatorMenuItem();

        if (parent != null) {
            parent.getItems().add(child);
        }

        return                    child;
    }

    private void deleteSelectedText() {

        final var range = logTextArea.getSelection();

        if (range.getLength() == 0) {
            return;
        }
        final var                 text    = logTextArea.getText();
        final var                 newText = text.substring(0, range.getStart()) + text.substring(range.getEnd());

        logTextArea.setText      (newText);
        logTextArea.positionCaret(range.getStart());
    }

    private void changeLogThreshold() {

        final var header  =
                """
                Only messages with a Severity
                greater than or equal to the Threshold
                will be logged.
                """;

        final var choices = Arrays.asList(LogSeverity.values());

        final var chooser = new ChoiceDialog<LogSeverity>(LogSeverity.INFO, choices);
        ;         chooser.setTitle      ("Log Level");
        ;         chooser.setContentText("Threshold.:");
        ;         chooser.setHeaderText (header);

        ;         chooser.showAndWait().ifPresent(choice -> logTextArea.appendText("-> " + choice + '\n'));
    }

    public static void main(final String[] args) {
        launch(args);
    }
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @user5182503
  • User mentioned (0): @Silvio
  • Low reputation (0.5):
Posted by: Dave The Dane

79284041

Date: 2024-12-16 08:34:36
Score: 7.5 🚩
Natty: 6.5
Report link

Книга которая помогла мне изначально понять как создавать сайты посмотрите было очень интересно ее читать https://zelluloza.ru/books/20299-KAK_SOZDAT_SAYT_NOVIChKU-Baryshnikov_Maksim/

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: maks

79284027

Date: 2024-12-16 08:30:34
Score: 1
Natty:
Report link

in a button or other event you can enter:

foreach (DataGridViewRow row in dataGridView1.Rows)
if (convert.toString(row.Cells[0].Value) == "ITM-000001")
    dataGridView1.Rows.RemoveAt(row.Index);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ramin Morsali

79284021

Date: 2024-12-16 08:29:34
Score: 0.5
Natty:
Report link

No it's not possible, with Python it's only possible to call 1 method above.

def a(): # a can't call c
    def b():
        def c(): # c can't call a and t, but can call d
    def d():
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nzosim

79284011

Date: 2024-12-16 08:22:33
Score: 2.5
Natty:
Report link

They’re generated by expo and contain .gitignore files in each.

Good to check them in.

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

79284004

Date: 2024-12-16 08:19:32
Score: 0.5
Natty:
Report link

It is more simple. Use the following code in cmd.

npx -p @angular/[email protected] ng new my-angular-14-project

Note: replace 14.0.0 with the angular version you need to create the project.

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

79283995

Date: 2024-12-16 08:14:31
Score: 2.5
Natty:
Report link

Try this

Import console console.clear()

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Swift user

79283986

Date: 2024-12-16 08:09:29
Score: 2
Natty:
Report link

API Gateway isn’t designed for outbound traffic or Layer 3 routing; for enhanced Layer 7 security and control, use a reverse API Gateway (for example Lunar.dev) between your backend and AWS Gateway to manage and secure outbound API requests effectively.

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