79437943

Date: 2025-02-13 23:15:39
Score: 6 🚩
Natty:
Report link

I am also getting a blank/black screen with only the cursor showing. Pls suggest is there is any resolution

Reasons:
  • RegEx Blacklisted phrase (2.5): Pls suggest
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Narendra

79437936

Date: 2025-02-13 23:12:38
Score: 2
Natty:
Report link

In fact, Gilbert's suggestion painted the string centered around the rotation point, so the rotated string has extra space (r.height - textWidth) / 2. If I subtract this value from x-position, it starts working perfectly. So, the simplified correct version should be:

            g2d.drawString(text, x0 - r.height / 2, y0 + fontMetrics.getDescent());

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex B.

79437933

Date: 2025-02-13 23:10:37
Score: 1
Natty:
Report link

There is now a NuGet package called Microsoft.AspNetCore.SystemWebAdapters that provides the features of VirtualPathUtility from System.Web to an ASP.NET Core application.

https://github.com/dotnet/systemweb-adapters

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

79437919

Date: 2025-02-13 22:58:35
Score: 4
Natty: 4.5
Report link

Wish to proceed the discussion after a long time. I've just tried above two repositories, and they all reported to me that the gdal cannot be imported.

  1. For developmentseed/geolambda I set up a simple python 3.10 lambda in us-east-1, and added the
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda:4" 
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3" 

with environment variables:

GDAL_DATA=/opt/share/gdal
PROJ_LIB=/opt/share/proj (only needed for GeoLambda 2.0.0+)

I just add one line in python "from osgeo import gdal" It shows error like cannot import gdal.

  1. For lambgeo/docker-lambda I user prebuilt lambda layer, like
{
    "region": "us-east-1",
    "layers": [
      {
        "name": "gdal38",
        "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal38:4",
        "version": 4
      }
    ]
  },

And with recommended environment variables.

GDAL_DATA: /opt/share/gdal
PROJ_LIB: /opt/share/proj

Also, I got the same error with cannot find gdal. Do you have any idea if I configure some wrong during the approach?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Samuel Wei

79437916

Date: 2025-02-13 22:53:34
Score: 2
Natty:
Report link

Check your browser's extensions. In my case "Grammarly" extension was the reason, because some extensions inject some codes into the pages. The error disappeared when I disabled the extension.

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

79437915

Date: 2025-02-13 22:52:33
Score: 9.5
Natty: 7
Report link

I’ve the same identical problem. Did you solved it?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solved it
  • RegEx Blacklisted phrase (1.5): solved it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: pigreco

79437914

Date: 2025-02-13 22:52:33
Score: 3.5
Natty:
Report link

Add true_names: false under cert_key_chain family.

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

79437912

Date: 2025-02-13 22:49:32
Score: 4.5
Natty: 5
Report link

In my case it was previously setup for GHE.com so needed to undo https://docs.github.com/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom

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

79437906

Date: 2025-02-13 22:47:31
Score: 1
Natty:
Report link

import {
  toRaw,
  isRef,
  isReactive,
  isProxy,
} from 'vue';

export function deepToRaw<T extends Record<string, any>>(sourceObj: T): T {
  const objectIterator = (input: any): any => {
    if (Array.isArray(input)) {
      return input.map((item) => objectIterator(item));
    } if (isRef(input) || isReactive(input) || isProxy(input)) {
      return objectIterator(toRaw(input));
    } if (input && typeof input === 'object') {
      return Object.keys(input).reduce((acc, key) => {
        acc[key as keyof typeof acc] = objectIterator(input[key]);
        return acc;
      }, {} as T);
    }
    return input;
  };

  return objectIterator(sourceObj);
}

By hulkmaster https://github.com/vuejs/core/issues/5303#issuecomment-1543596383

You can also wrap the sourceObj with unref like this. objectIterator(unref(sourceObj))

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

79437905

Date: 2025-02-13 22:46:31
Score: 0.5
Natty:
Report link

History: Principles of In-process Functions

Previously your Function code and the Azure Functions runtime shared the same process. It's a web host, and it's your Functions code, all running in one process.

The runtime handled the inbound HTTP requests by directly calling your method handler.

Background: Principles of Isolated Functions

The Azure Functions Host runtime is still responsible for handling the inbound HTTP requests. But, your Functions app is a totally separate .NET application, running as a different process. Even in a different version of the .NET runtime.

If you run it locally you'll see two processes:

  1. The Functions Host process (Func.exe on Windows, dotnet WebHost on Debian Linux)
  2. A separate .NET process launched with your Functions app

Your Isolated Functions app isn't too much different from a console app. It's definitely not a web host.

This makes even more sense when you consider that the entrypoint is Program.cs. It's clear that no other code is involved in initialising your app. That's quite different from In-process where you define a Startup class - i.e. a method called by the Azure Functions runtime code because they're part of the same process.

Actual answer: How the pipeline works

So if your Functions are running in something similar to a console app, how is it handling HTTP triggers if it's not a web host any more?

The answer is that your Functions app, although isolated, has a gRPC channel exposed. The Functions Host process handles the HTTP requests for you, and passes them to your Functions app through the gRPC channel.

The gRPC channel in your Functions app isn't obvious, and it's not something you explicitly open or have control over. You might stumble across it in a stack trace if you hit a breakpoint or have an unhandled exception.

The pipeline becomes:

  1. Host process receives HTTP request
  2. Host process calls your Functions app via gRPC
  3. Functions app calls your Middleware classes, if you registered any
  4. Functions app calls your Function method, and you return a response
  5. Functions app returns the response back to the Host process via gRPC
  6. Host process returns the HTTP response back to the caller

Other notable differences in the pipeline

As mentioned above, Isolated lets you add your own Middleware classes into the processing pipeline. These run in your Function code immediately before the actual Function method is called, for every request. In-process had no convenient way to achieve this.

Even though your Functions aren't handling the HTTP call directly, helpfully your Middleware classes can still access a representation of the HTTP request that's passed in from the Host. This enables you to check HTTP headers, for example. It's particularly useful in your Middleware classes because you can perform mandatory tasks like authentication, and it's guaranteed to execute before handling the request.

host.json

This part of your question has a good answer here: https://stackoverflow.com/a/79061613/2325216

References

https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-in-process-differences https://github.com/Azure/azure-functions-dotnet-worker

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Andrew B

79437898

Date: 2025-02-13 22:43:30
Score: 1
Natty:
Report link

You should store property Counter2.Text or Counter.Text instead of the textbox component itself

screenshot

Also 1 TinyDB component would be sufficient, just use different tags like Counter1, Counter2

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

79437894

Date: 2025-02-13 22:42:29
Score: 4.5
Natty: 5
Report link

Download the windows port of WOL from:

https://brainforcesolutions.com/software/wol.zip

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

79437882

Date: 2025-02-13 22:35:28
Score: 0.5
Natty:
Report link

It works for me to define the type to deserialize as following:

var ridt = JsonConvert.DeserializeObject<T>(ri_bdy);
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DavidL Viva

79437881

Date: 2025-02-13 22:34:28
Score: 1
Natty:
Report link

I got it! You still follow Apple Insider's tutorial, but you have to target a specific file hidden deep within MacOS. Copy and paste the image/icon you want into the Get Info pane of the file: /Library/Frameworks/Python.framework/Versions/3.13/Resources/Python.app

Your path might be be different because of a different verison of Python - just replace the 3.13 with your version.

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

79437875

Date: 2025-02-13 22:31:27
Score: 3.5
Natty:
Report link

You need to create a custom validator for this.

Please, check this post: Validate each Map<string, number> value using class-validator

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

79437873

Date: 2025-02-13 22:30:27
Score: 3.5
Natty:
Report link

riov8 gave me the solution here with their great vscode extension. Explicitly i like how you can point to a json file and extract values so i didnt have to make multiple files

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

79437870

Date: 2025-02-13 22:29:27
Score: 3
Natty:
Report link

In my case it was a problem at the build step (nest build), I tried Basil's answer and it didn't work at first then I did new clear build cache & deploy to make it

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

79437868

Date: 2025-02-13 22:29:26
Score: 4.5
Natty: 5
Report link

Seems something like this will be finally implemented in Android 16: https://developer.android.com/about/versions/16/features#hybrid-auto-exposure

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

79437863

Date: 2025-02-13 22:25:25
Score: 0.5
Natty:
Report link

This appears to still be an issue in 2025, so rather than post a new question I thought it cleaner to add to this conversation. For now I have settled for adding a sleep into my code to make it wait for the duration of the track. Each track object contains its duration so this is easy enough. But it is a klunky, highly volatile, solution. Pausing the track messes it up, for example.

So here's where hopefully some smarter people can weigh in. There are 2 other potential fixes I have noticed in my testing. Developer Tools are your friend here.

First, the index.js script that gets loaded into the hidden iframe DOES contain definitions for item_end and track_ended. But they don't seem to be emitting to the parent. I don't know if this is a bug or intentional by Spotify. But I do see in the network traffic a POST event from fetch to https://cpapi.spotify.com/v1/client/{client_id}/event/item_end so the event is firing, it's just not getting back to our app code from the embedded player. I wasn't successful in any attempts to intercept that fetch() call as a way to determine the track had ended.

Second, in Chromium-based browsers anyway, the embedded player logs typical events like load, play, pause, and ended, as viewable in the Developer Tools Media tab. (https://chromium.googlesource.com/chromium/src/+/refs/heads/main/media/base/media_log_events.h) If there's a way to listen for these library calls then that's a possibility too.

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

79437862

Date: 2025-02-13 22:23:25
Score: 2.5
Natty:
Report link

For env vars:

message(STATUS "$ENV{BLABLA}")

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: w.t

79437860

Date: 2025-02-13 22:23:25
Score: 1
Natty:
Report link

I had this issue:

This version (1.5.15) of the Compose Compiler requires Kotlin version 1.9.25 but you appear to be using Kotlin version 1.9.24 which is not known to be compatible.  Please consult the Compose-Kotlin compatibility map located at https://developer.android.com/jetpack/androidx/releases/compose-kotlin to choose a compatible version pair (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).

and fixed playing with the Expo version downgrading to 52.0.19

Checkout this thread: https://github.com/expo/expo/issues/32844#issuecomment-2643381531

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

79437858

Date: 2025-02-13 22:19:24
Score: 1
Natty:
Report link

My analogy to this is, it is like a library (BigQuery) and clustering is like books on shelves by genre. If there are a lot of books (rows) that don't have a genre (NULL), they are all like one big shelf of unclassified books. It reads more files because searching in books with no genre, BigQuery has to check all that big unclassified shelf reading a lot of unnecessary books. And with clustering, books with no genre (NULL), it is like one big shelf of unclassified books in the library. BigQuery checks more data than needed, which makes everything slower. Perhaps if you can pre-filter the NULL then cluster it to remove the NULL cluster or try to put ‘E’ on the later in the clustering order otherwise if not frequently needed, remove it if possible.

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

79437849

Date: 2025-02-13 22:13:23
Score: 2
Natty:
Report link

I just came across this error and after exploring various blogs, I find out that adding this ""APIKeyExpirationEpoch": -1, "CreateAPIKey": -1" ,as mentioned in comment above, is deprecated and causing this error [NoApiKey: No api-key configured]. My way is to simply run the amplify update api, having previously deleted apikey expiration epoch -1 to start with a clean slate.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jose-Luis Morales Watanabe

79437845

Date: 2025-02-13 22:11:23
Score: 1.5
Natty:
Report link

Yes "401 Anonymous caller does not have storage.objects.get access" suggests that authentication is required to download the necessary files from Google Cloud Storage but your environment lacks proper credentials.

Did you run?

gclient auth-login

and verify that you can access the bucket?

gsutil ls gs://chromium-tools-traffic_annotation/
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Ian Carter

79437840

Date: 2025-02-13 22:09:22
Score: 2
Natty:
Report link

The original question is quite old, but for anyone facing similar issues: I created a library facing this issue: https://github.com/wlucha/ng-country-select

It avoids resource path issues by using emoji flags and offers features like multilingual search, default country selection, and Angular Material styling.

It’s easy to integrate and works with modern Angular versions.

Reasons:
  • Whitelisted phrase (-2): for anyone facing
  • No code block (0.5):
  • Me too answer (2.5): facing similar issue
  • Low reputation (1):
Posted by: WALL

79437839

Date: 2025-02-13 22:09:22
Score: 3
Natty:
Report link

I think both are supposed to work, but have you tried switch the matching IDs from the Entity.Id to the Entity.Guid to see if that works?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: Jeremy Farrance

79437838

Date: 2025-02-13 22:09:22
Score: 2
Natty:
Report link

I actually found what it is. I was regenerating the OIDC application registration on every restart. In the past with OpenIdDict pre version 6 this would work, but apparantly with the version 6 this means that also all stored tokens are invalidated.

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

79437830

Date: 2025-02-13 22:07:21
Score: 3.5
Natty:
Report link

resolved, forget to put picam2.start(). It should be placed in at the start of the while loop.

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

79437823

Date: 2025-02-13 22:03:21
Score: 1
Natty:
Report link

Root cause : I have installed some *.rpm which have modified some files related to mercurial in /usr/lib64/python2.7, that is what put the mess in pythonhome. Fix : To fix all the mess I have got a new /usr/lib64/python2.7 folder from identical machine(as they are all virtual machines) to replace and everything goes well now. Hope this will help someone.

Reasons:
  • Whitelisted phrase (-1): Hope this will help
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Donald M

79437821

Date: 2025-02-13 22:03:21
Score: 3.5
Natty:
Report link

I've found the answer.

I needed to find the correct gateway via

docker network inspect -v

That's it

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Giovanni Zago

79437817

Date: 2025-02-13 22:01:20
Score: 2
Natty:
Report link

The question is old, but if someone encounters this issue, the @wlucha/ng-country-select library is a great solution for adding a country dropdown with flags in Angular: https://github.com/wlucha/ng-country-select

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

79437812

Date: 2025-02-13 22:00:19
Score: 2
Natty:
Report link

Try using scikit-fda==0.7.1, i read that in newer versions the code was refactored, but not all the code was updated.

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

79437809

Date: 2025-02-13 22:00:19
Score: 1
Natty:
Report link

Console.app shows you an Error Log by default. I believe you can also view Crash Reports by opening files with an '.ips' extension. A Core Dump is an object file that can be explored with a debugging tool such as valgrind or gdb.

You can read more about Console.app here.

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

79437795

Date: 2025-02-13 21:51:18
Score: 2
Natty:
Report link

For future reference, please provide what the correct output should be instead of just an example output.

You can perform a group by, take the unique States for each ID, then take the value counts of that

combinations = df.group_by('id').agg(pl.col('state').unique())
counts = combinations.select(pl.col('state').value_counts().alias('counts'))
print(counts.unnest('counts'))

assert (counts.select(pl.col('counts').struct.field('count').sum()) == df.n_unique('id')).item()

# Alternatively, as a single expression:
print(df.select(
    pl.col('state').unique().implode()
    .over('id', mapping_strategy='explode')
    .value_counts()
    .struct.unnest()
))

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide what
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: etrotta

79437793

Date: 2025-02-13 21:49:17
Score: 1
Natty:
Report link

make sure to use WebSocket with an uppercase "S" and instantiate it with new. Check if window.opener.WebSocket is accessible and use:

const websocket = new window.opener.WebSocket('ws://address');

If it still doesn’t work, verify the context and permissions between windows.

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

79437788

Date: 2025-02-13 21:47:16
Score: 4
Natty:
Report link

I actually found what I was looking for in terms of Git subtrees, similar to submodules but much easier to configure.

https://opensource.com/article/20/5/git-submodules-subtrees

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

79437786

Date: 2025-02-13 21:46:16
Score: 2.5
Natty:
Report link

const websocket = new window.opener.Websocket('{WebsocketAddress}');

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

79437783

Date: 2025-02-13 21:45:15
Score: 0.5
Natty:
Report link

clang-tidy doesn't have separate rules for prefixing members of class or struct. Technically, struct and class are the same, differing only in their default access levels. If a struct has private members or a class has public members, they function identically. This is why clang-tidy applies the same rules to both.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Oleksandr Kozlov

79437780

Date: 2025-02-13 21:43:15
Score: 2
Natty:
Report link

Keeping in mind as well, that the Camel code will establish a JMS connection to MQ, send the message, then drop the JMS connection for every iteration.

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

79437777

Date: 2025-02-13 21:41:14
Score: 2
Natty:
Report link

I added ENV var:

export DOTNET_ROOT=/opt/dotnet-sdk-bin-9.0/

after it everything works.

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

79437774

Date: 2025-02-13 21:39:14
Score: 1.5
Natty:
Report link

So far, I think this is a new feature. Until then, lambda was required to move the logs from S3 to cloud_watch..

https://aws.amazon.com/blogs/mt/sending-cloudfront-standard-logs-to-cloudwatch-logs-for-analysis/

My approach is to provision cloud_watch log_group and km key and attach CloudFront to CloudWatch_log_group via web. Probably AWS Cli will have support already for this.. But for now, I will wait a bit for official implementation.

Also, there is another solution called real-time logs using kinesis.

It seems that there is already work started in the provider. https://github.com/hashicorp/terraform-provider-aws/issues/40250

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

79437770

Date: 2025-02-13 21:36:13
Score: 0.5
Natty:
Report link

Could it be that the plane you are using is parallel to the XZ plane, while you need it to be parallel to the XY plane?

From Apple's documentation,

planeTransform: The transform used to define the coordinate system of the plane relative to the scene. The coordinate system's positive y-axis is assumed to be the normal of the plane.

The matrix matrix_identity_float4x4 represents the XZ plane. The matrix for the XY plane with normal in the +Z direction should be:

let xyPlaneMatrix = simd_float4x4(
      SIMD4<Float>( 1,  0,  0, 0),
      SIMD4<Float>( 0,  0,  1, 0),
      SIMD4<Float>( 0, -1,  0, 0),
      SIMD4<Float>( 0,  0,  0, 1)
   )
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thanh Duy Truong

79437763

Date: 2025-02-13 21:32:12
Score: 5.5
Natty: 5
Report link

Is the accepted answer really correct? I thought that once spark reads the data, the ordering may not necessarily be the same as what was persisted to disk?

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

79437761

Date: 2025-02-13 21:31:11
Score: 2.5
Natty:
Report link

For string. You may use Here-String syntax for multiline string assignment like

echo @"
here is the first string
location is $global:loc
"@

Ref: https://devblogs.microsoft.com/scripting/powertip-use-here-strings-with-powershell/

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

79437751

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

I have achieved it, It was necessary to detect the operating system and port the C# script to node.js, I'm not sure if this is the correct way to do it but it works fine for now.

note: any suggestions will be welcome.

const { exec, spawn } = require('child_process');
const os = require('os');

/**
 * Manages application elevation and admin privileges across different platforms
 */
class AdminPrivilegesManager {
    /**
     * Checks and ensures the application runs with admin privileges
     * @returns {Promise<void>}
     */
    static async ensureAdminPrivileges() {
        const isAdmin =  this.checkPrivilegesAndRelaunch();
        console.log('isAdmin',isAdmin);
    }

    static checkPrivilegesAndRelaunch() {
        if (os.platform() === 'win32') {
            exec('net session', (err) => {
                if (err) {
                    console.log("Not running as Administrator. Relaunching...");
                    this.relaunchAsAdmin();
                } else {
                    console.log("Running as Administrator.");
                    return true
                }
            });
        } else {
            if (process.getuid && process.getuid() !== 0) {
                console.log("Not running as root. Relaunching...");
                this.relaunchAsAdmin();
            } else {
                console.log("Running as root.");
                return true;
            }
        }
    }

    static relaunchAsAdmin() {
        const platform = os.platform();
        const appPath = process.argv[0]; // Path to Electron executable
        const scriptPath = process.argv[1]; // Path to main.js (or entry point)
        const workingDir = process.cwd(); // Ensure correct working directory
        const args = process.argv.slice(2).join(' '); // Preserve additional arguments

        if (platform === 'win32') {
            const command = `powershell -Command "Start-Process '${appPath}' -ArgumentList '${scriptPath} ${args}' -WorkingDirectory '${workingDir}' -Verb RunAs"`;
            exec(command, (err) => {
                if (err) {
                    console.error("Failed to elevate to administrator:", err);
                } else {
                    console.log("Restarting with administrator privileges...");
                    process.exit(0);
                }
            });
        } else {
            const elevatedProcess = spawn('sudo', [appPath, scriptPath, ...process.argv.slice(2)], {
                stdio: 'inherit',
                detached: true,
                cwd: workingDir, // Set correct working directory
            });

            elevatedProcess.on('error', (err) => {
                console.error("Failed to elevate to root:", err);
            });

            elevatedProcess.on('spawn', () => {
                console.log("Restarting with root privileges...");
                process.exit(0);
            });
        }
    }
}

module.exports = AdminPrivilegesManager;
Reasons:
  • RegEx Blacklisted phrase (2): any suggestions
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Francisco IA Lover

79437746

Date: 2025-02-13 21:22:09
Score: 2.5
Natty:
Report link

Add the following property to the aws-lambda-tools-defaults.json file in the directory where the Lambda function is at:

"code-mount-directory": "../../../"

Please have a look here for further details: https://github.com/aws/aws-extensions-for-dotnet-cli/discussions/332

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

79437727

Date: 2025-02-13 21:14:07
Score: 2
Natty:
Report link

If I am not mistaken, Transcient are created every GetService() call. Scoped are ThreadStatic (in normal apps), so they are created and exist through a thread's lifetime. However, given that IIS has a pool of application threads, scoped in web is likely per-HTTP request, so likely is implemented via a data slot or saved in the HttpContext.Items collection or as ambient data in Execution context via AsyncLocal.

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

79437717

Date: 2025-02-13 21:11:06
Score: 4
Natty: 4
Report link

I have MSSQL 2019 and TRIM still does not work, STRING_SPLIT does though.

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

79437716

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

This is an old thread but if anyone is still looking for how to refresh queries using VBA in Excel. I used this bit of code to easily do that:

Sub RefreshData()
Dim ws As Excel.Worksheet

For Each q In ActiveWorkbook.Queries
    q.Refresh
Next

End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luis Heredia

79437708

Date: 2025-02-13 21:07:05
Score: 3
Natty:
Report link

I reset the IDE, and did TypeScript: Restart, and ESLINT Restart after hitting F1 in vscode and the problem resolved.

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

79437682

Date: 2025-02-13 20:55:02
Score: 2.5
Natty:
Report link

This question is asking how to reverse proxy to an external URL using Azure front door without a proxy app or middleware.

Similar to netlify redirects with rewrite or the rewrite

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

79437671

Date: 2025-02-13 20:51:01
Score: 0.5
Natty:
Report link

Go to android\settings.gradle.kts and under plugins update the version of "org.jetbrains.kotlin.android" to the latest one according to this link: https://kotlinlang.org/docs/releases.html#release-details For example:

plugins {
    id("dev.flutter.flutter-plugin-loader") version "1.0.0"
    id("com.android.application") version "8.7.0" apply false
    id("org.jetbrains.kotlin.android") version "2.1.10" apply false
}
Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Elyasaf755

79437663

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

This particular recommendation seems to have been removed from the documentation as of 2025-02-13.

To me, it seems the visibility should be more closely related to the throttling rate? No real experience here (yet).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Dan Locks

79437659

Date: 2025-02-13 20:43:00
Score: 1.5
Natty:
Report link

Your fix of updating the networking settings on the AI Search service worked for me. Specifically to enable "Allow Azure services on the trusted services list to access this search service." Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: matt1616

79437658

Date: 2025-02-13 20:41:59
Score: 3
Natty:
Report link

Related to step 17, I created a Google Cloud client for a Web Application. I used the Client ID from that client and the scope 'https://www.googleapis.com/auth/drive.file'. I tried to run the curl command with those values filled in. I got the message: Only clients of type \u0026#39;TVs and Limited Input devices\u0026#39; can use the OAuth 2.0 flow for TV and Limited-Input Device Applications. Please create and use an appropriate client.

I didn't using the type 'TVs and Limited Input devices'. Why is it referencing it?

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

79437657

Date: 2025-02-13 20:41:59
Score: 4.5
Natty:
Report link

You may be interested in:

https://github.com/justingrote/fsharp

https://youtu.be/6jQqf-LTRGI?si=tsvO0ZufYYj5OGaz&t=5186

https://github.com/PalmEmanuel/YourFirstPSModuleInCSharp/tree/main/src/Example.6.FSharp

As some additional resources.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Justin Grote

79437655

Date: 2025-02-13 20:39:58
Score: 1.5
Natty:
Report link

9156895905 9156855296 9156824950 9156829971 9156860586 9156855182 9156800260 9156803817 9156802624 9156802651 9156801224 9156733655 9156693678 9156733970 9156733707 9156645457 9156641452 9156602424 9156600299 9156598798 9156605924 9156605563 9156562924 9156514060 9156474692 9156427972 9156384436 9156432736 9156383927 9156380436 9156384139 9156345550 9156252277 9156253163 9156166263 9156166934 9156172785 9156175407 9156124586 9156127613 9156130492 5512547901 9156017737 9155844261

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

79437654

Date: 2025-02-13 20:37:58
Score: 2
Natty:
Report link

Try add "python.analysis.includeAliasesFromUserFiles": true on your settings.json, as per https://code.visualstudio.com/docs/python/settings-reference#:~:text=includeAliasesFromUserFiles it will:

"include alias symbols from user files in auto-import suggestions and in the add import Quick Fix"

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abraão Zaidan

79437650

Date: 2025-02-13 20:35:57
Score: 1
Natty:
Report link

It sounds like you are attempting to add the jzos library into your OSGi bundle in the lib folder. Normally what we would expect to do is a wrapper OSGi bundle that is used within the IDE. This wrapper bundle exports the com.ibm.jzos classes and your bundle imports them. This should allow the compiling and IDE to be happy.

For full instructions have a look at https://www.ibm.com/docs/en/cics-ts/6.x?topic=djariojs-developing-java-applications-use-jzos-toolkit-api-in-osgi-jvm-server

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

79437641

Date: 2025-02-13 20:30:56
Score: 3.5
Natty:
Report link

Check your .dockerignore if there is any line with plugins you have to remove it first.

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

79437622

Date: 2025-02-13 20:22:54
Score: 1
Natty:
Report link

Its usually when a package renamed/redesigned for pip installation. In my case I was getting the same error for installing "sklearn" package. I tried pip install "scikit-learn" instead and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: h_dejavu

79437619

Date: 2025-02-13 20:20:54
Score: 3.5
Natty:
Report link

Bro you need to do some step by step tutorial and courses otherwise you would keep getting stuck in simplest of applications. My best bet for you would be doing this course

I Did this course myself and the benifits were worth mentioning.Now I have clear understanding of the the installation and outs of the system

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

79437614

Date: 2025-02-13 20:19:53
Score: 2.5
Natty:
Report link

Bluefish will covert all special characters to code. It’s supposed to handle letters, but also characters like m-dash and curly quotes. I’ve just started using it for that, so I’m not sure how thorough it is. You can also convert them all back. https://bluefish.openoffice.nl/index.html

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

79437612

Date: 2025-02-13 20:18:53
Score: 4.5
Natty:
Report link

Is there any chance you are using the Small Multiples feature in your plot? If so, @JeffUK was right the plot is being sorted alphabetically based on the y-axis instead of numerically based on the x-axis and there's no way to fix that. It's a limitation of the Small multiples feature: https://powerbi.microsoft.com/en-us/blog/announcing-small-multiples-public-preview/ Limitations: support for small multiples sort by measure

Reasons:
  • Blacklisted phrase (1): Is there any
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @JeffUK
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Mia May

79437606

Date: 2025-02-13 20:15:52
Score: 0.5
Natty:
Report link

It's not the answer to your problem per say, but I was dragged to your post by google so it might help others.

I had a very similar issue to the one described, and the problem was created by the structure of my Dockerfile.

RUN mix deps.get
RUN mix deps.compile
COPY . .
RUN mix compile

The COPY command overwrited _build and deps so the dependencies were recompiling every time.

If you use elixir with docker make sure that you either build the docker image with _build (and deps) as volumes (docker build -v ...) like @Adam Millerchip suggested or run mix deps.clean --all && mix clean in your project before running the Dockerfile.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Adam
  • Low reputation (0.5):
Posted by: Hadron

79437602

Date: 2025-02-13 20:13:51
Score: 0.5
Natty:
Report link

So the issue was not with antivirus, IDE, terminal or file permissions. It had to do with gradle's daemon. It might have to with the fact that the deamon gradle had a lock on a file in the build directory. This might have been caused because I changed the name of some folders in my project. Below are the steps I took to fix this.

1: Delete the build folder (not sure if this is necessary but just in case I included it here)

2: run the following command in your root directory: ./gradlew --no-daemon clean (This should clean out your build directory if you have not done the 1st step.)

3: then run the following command to build ./gradlew build --rerun-tasks -x test --rerun-tasks make sure that no task is skipped and -x test makes sure that you skip the test task which was useful in my situation as I did not have test.

4: then you can run the following to start spring boot. ./gradlew bootRun.

After this using the gradle daemon should work normally.

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

79437595

Date: 2025-02-13 20:10:50
Score: 2
Natty:
Report link

You may want to look into Unity Cloud's DevOps solutions for building your project on Unity's backend. You can target any platform, including Mac.

You can find the build automation documentation here. You can also set it up in Unity's cloud dashboard: https://cloud.unity.com/

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

79437584

Date: 2025-02-13 20:00:48
Score: 2
Natty:
Report link

You can create you custom type for this

File: global.d.ts

import React from "react";

declare global {
declare namespace ReactCustom{
type FC<P = {}> = ReactCustom.FC<P & { children?: React.ReactNode }>;
}
}

where the error is, for example:

const UserContextProvider: React.FC = ({ children }) => { ... }

you just need replace all with type custom created, without much effort, and it would look like this:

const UserContextProvider: ReactCustom.FC = ({ children }) => {...}

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rian R.

79437583

Date: 2025-02-13 20:00:48
Score: 2.5
Natty:
Report link

As stated by a GitHub user in this issue, you need to add use client to the top of the file.

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

79437582

Date: 2025-02-13 20:00:45
Score: 10 🚩
Natty:
Report link

I am also facing the similar problem. We have developed an APP using WinUI3 and required to run this on Kiosk Mode, but so far, no luck, but atleast you moved ahead little bit as I see that you are able to configure the app into Kiosk mode and atlease proceed. Could you please share the steps what and how you have done to at least enable this app into Kiosk mode?

Reasons:
  • Blacklisted phrase (1): no luck
  • RegEx Blacklisted phrase (2.5): Could you please share
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the similar problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: prashant shukla

79437563

Date: 2025-02-13 19:52:43
Score: 3.5
Natty:
Report link

Iam working on the same above mentioned topic , need some support. Help madtira

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

79437546

Date: 2025-02-13 19:42:41
Score: 1.5
Natty:
Report link

💡 Key Difference: IServiceScopeFactory is always a singleton, but IServiceProvider follows the lifetime of the class it’s injected into.

Feature IServiceProvider IServiceScopeFactory
Purpose Resolves dependencies Creates a new scope for resolving dependencies
Creates New Scope? ❌ No (not its primary purpose) ✅ Yes (optimized for scope creation)
Lifetime ❌ Depends on containing class ✅ Always Singleton
Usage Used in constructors and methods to get dependencies Used in background services & singletons to get scoped dependencies
Scoped Service Resolution ❌ Not safe in singletons ✅ Safe, as it creates a scope

Here's article, where I have tried to cover everything related to this topic.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Muhammad Umair Aslam

79437544

Date: 2025-02-13 19:39:40
Score: 4.5
Natty:
Report link

So it turned out that i just needed to download this code. https://github.com/opentk/GLControl

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lawrence Lewis

79437543

Date: 2025-02-13 19:39:40
Score: 0.5
Natty:
Report link

I seem to have solved this.

Extensions are identified by the file extension .appex and are are fetched from the app bundle on first launch, appearing in the Extensions pane of System Preferences (System Settings or whatever it's called in modern macOS) where they can be enabled or disabled with a checkbox - as I'm sure you know.

When the app is uninstalled, the app's extensions are still offered, rather annoyingly. Let's fix that now.

Before following the procedure below, close System Preferences to avoid issues.

The best way to to find those pesky extensions and delete them completely is to locate them with something like Thomas Templeman's excellent Find Any File. Search your User folder for the name of the extension, inserting dashes in place of spaces for the closest match. You may want to verify the exact name in the Contents/Resources/Library/Plugins folder inside the app bundle, looking for the .appex file extension.

For a sandboxed app you'll find the files your'e looking for as named folders in ~/Library/Containers/ and ~/Library/Application Scripts/

Example search results from Find Any File

In both cases what you'll see is the standard reverse URL for the developer and app used as the name of a folder. Trash these. In Find Any File you can do that from the results window, or double click on the item of interest and it will be opened in the Finder.

To the best of my knowledge, both these folders can be deleted without creating issues with a related .db folder - to the best of my knowledge it's simply a case of "It's not there, it won't be loaded".

If you searched you entire drive, you'll see similarly named folders deep within /private/var/folders/ but these need not - and therefore should not - be deleted. In case you accidentally did delete those, or anything else you shouldn't, make Finder active and hit Cmd+Z to undo.

Now you can reopen Extensions in System Preferences and enjoy no longer seeing redundant finder extensions offered.

In my case this procedure was necessary because using a particular Share Menu extension was freezing Finder, necessitating a force quit (and re-spawn) of Finder. I didn't want to run the risk of accidentally reenabling the extension later, as I still use the app. And, yes I'll let the dev know.

Lastly, I deleted the offending extension from Contents/Resources/Library/Plugins/ inside the App package. Upon relaunching the app, the buggy extension wasn't loaded by macOS and didn't appear in System Preferences.

This is a very important step if, like me, you still have the offending App in your Applications folder.

If you don't delete the offending plugin, the extension will reappear in System Preferences even if you don't relaunch the app because it's been added to the above locations again. Clearly there is a db somewhere telling the OS to scan apps for plugins (which doesn't purge them even when the app has been deleted). This may cause issues for others but it hasn't in my case. And take care not to "Undo" the deletion in Finder, as you won't see it happen unless you have the app bundle open at the time!

A note of caution I've seen some very well respected folk telling people not to try and delete Extensions at all. I respect their expertise and fully understand why they say this. But my hands-on experience is that it is both possible and safe to do in the case of redundant third party extensions, following the procedure above.

YMMV

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

79437542

Date: 2025-02-13 19:38:40
Score: 3
Natty:
Report link

I downloaded instead .NET 9.0 instead of the one being installed by autodesk installer 8.0.11 and it worked, retried the install and it did, thanks anyway

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Asterion_KΛI

79437541

Date: 2025-02-13 19:38:40
Score: 2.5
Natty:
Report link

In my case I got the id from a FormData object in which I had to first stringify it, but forgot to parse it and the string also contained double quotes.

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

79437534

Date: 2025-02-13 19:31:38
Score: 2
Natty:
Report link

I ended up figuring out the root issue. The newer versions of OpenXML seem to be incompatible with Power Tools. The simple way to fix it is to only bring in Power Tools and let it grab the version of OpenXML it prefers rather than installing OpenXML first.

This was using NuGet in Visual Studio.

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

79437528

Date: 2025-02-13 19:29:38
Score: 0.5
Natty:
Report link

So I can't figure why it needed to refresh but if you map allPartnerPros to globalThis.pros it seems to work. I couldn't figure why that the public member won't be set. But this is the workaround:

// allPartnerPros: PartnerPro[] = [];

get allPartnerPros(): PartnerPro[] {
   return globalThis.pros || []
}

set allPartnerPros(value: PartnerPro[]) {
    globalThis.pros = value;
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: adam

79437526

Date: 2025-02-13 19:27:37
Score: 1
Natty:
Report link

I had accidentally added the SHA-1 present in Upload key certificate instead of the App signing key certificate. Both of these are present so you might mistake them. Fixed it by:

  1. Copying the SHA-1 from App Signing Key Certificates and add it to firebase.
  2. downloading new google-services.json and replace in project.
  3. Build a new apk and update in Google Play.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hassaan J.

79437525

Date: 2025-02-13 19:27:37
Score: 2
Natty:
Report link

Caret is respecting the seed. When you set a seed, the output of the code that follows is then reproducible, which is why you consistently get 212213 222311 211333 212132 312211 213231 in that order. Setting seed does not mean that every function call that involves random number generation will give the same output, just that any sequence of function calls will give reproducible output.

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

79437515

Date: 2025-02-13 19:22:36
Score: 0.5
Natty:
Report link

Just naturally paste your first query inside the parenthesis, as in:

with v as 
(select * from (values ('a','b'),('c','d')) v (e,f))
select e from v where f='d';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Guillaume Outters

79437510

Date: 2025-02-13 19:19:35
Score: 3.5
Natty:
Report link

I just managed to fix this by changing to a single-column grid and foregoing the empty column idea. I'm still curious as to why browsers wouldn't recognize that div element. Glad I got a functional fix though, and thanks for the help!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael Mark

79437505

Date: 2025-02-13 19:18:35
Score: 3.5
Natty:
Report link

Pretty silly of me, but I think the problem is that the net was learning every step, instead of accumulating it's decisions and then learn them. I overlooked that.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Владислав

79437503

Date: 2025-02-13 19:17:35
Score: 2.5
Natty:
Report link

if you are using venv : add this : os.environ['PATH'] += os.pathsep + r'path\ffmpeg-master-latest-win64-gpl-shared\ffmpeg-master-latest-win64-gpl-shared\bin'

download it from : https://github.com/BtbN/FFmpeg-Builds/releases

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

79437502

Date: 2025-02-13 19:17:35
Score: 0.5
Natty:
Report link
struct ButtonBadgeView: View {
@State var showFavList = false
@State var items: [String] = []
var body: some View{
    HStack{
        BadgeView
            .frame(width: 44,height: 44)
            .onTapGesture {
                showFavList = true
            }
    }
}
var BadgeView: some View {
    GeometryReader { geometry in
        ZStack(alignment: .bottomLeading) {
            Image("heart_icon")
                .resizable()
                .scaledToFit()
                .padding(.top,4)
            
            // Badge View
            ZStack {
                Circle()
                    .foregroundColor(.red)
                Text("\(self.items.count)")
                    .foregroundColor(.white)
                    .font(Font.system(size: 12))
            }
            .frame(width: 20, height: 20)
            .offset(x: geometry.size.width / 2, y: -16)
            .opacity(self.items.count == 0 ? 0 : 1)
        }
    }
}

enter image description here

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

79437491

Date: 2025-02-13 19:12:34
Score: 3
Natty:
Report link

(long)Math.floor(a) for positive a

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Mathology

79437489

Date: 2025-02-13 19:11:33
Score: 3
Natty:
Report link

Yes, it would be nice if we could install our own packages since this is really the real advantage of using python because there is a package for every use case.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rodrigo P. Coelho

79437480

Date: 2025-02-13 19:09:33
Score: 2.5
Natty:
Report link

It was invalid JSON because of the last added , There might be a shorter way of writing in Mockoon (?? would love to hear) but this generates valid JSON, using handlebarsjs if @last and else

    "thumbnailItemIds": [
  {{#each @firstItems}}
    "{{id}}"
    {{#if @last}}
    {{else}}
    ,
    {{/if}}
  {{/each}}
]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @last
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: petervd81

79437477

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

In my project I faced this issue of conversion when I was adding the address of doctor on database , then toast used to send error message

address: Cast to string failed for value "{ line 1: 'sector 132 ', line2: 'gurgaon ,India' }" (type Object) at path "address" cast to string failed for value. after struggling for sometime I found the error that was present on schema .On schema , address : {type : _____} I had declared type key with some other data type and I was sending address as other data type other than that i mentioned on schema ,so this error was coming .

After debugging

const driverSchema = new mongoose.Schema({
name: {type:String, required:true},
email:{type:String, required:true, unique:true},
password:{type:String, required:true},
image:{type:String, required:true},
speciality:{type:String, required:true},
degree: {type:String, required:true},
experience: {type:String, required:true},
about:{type:String, required:true},
available:{type:Boolean, default:true},
fees:{type:Number, required:true},
address:{type:Object, required:true},
date: {type:Number, required:true}, // through this date we can know when the doctor was added in the database
slots_booked: {type:Object, default:{}}

},{minimize:false})

here's the data that i want to add to the database

const formData = new FormData()

        formData.append('image',docImg)
        formData.append('name',name)
        formData.append('email',email)
        formData.append('password',password)
        formData.append('experience',experience)
        formData.append('fees',Number(fees))
        formData.append('about',about)
        formData.append('speciality',speciality)
        formData.append('degree',degree)
        formData.append('address', JSON.stringify({line1:'sector 114',line2:'Gurgaon, India'}))
Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RAVIKANT MAHTO

79437474

Date: 2025-02-13 19:04:31
Score: 2
Natty:
Report link

Ensure Each Case Has an Assigned User

Your table should have a field that stores the username or user ID of the assigned person (e.g., AssignedTo). Get the Logged-in User If you're using Windows authentication, you can retrieve the current user's name.

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

79437450

Date: 2025-02-13 18:54:30
Score: 1.5
Natty:
Report link

OK, so it's 2025 now - and it couldn't be any easier - just use the correct logic using the following:

dim fso = CreateObject("Scripting.FileSystemObject")
if not fso is nothing then
   if not fso.FolderExists("TheFolderYouWantToExist") then
      fso.CreateFolder("TheFolderYouWantToExist")
   end if
   '....and so on....
end if

REFERENCE : https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/filesystemobject-object

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

79437449

Date: 2025-02-13 18:54:30
Score: 3
Natty:
Report link

I have also ran into this issue recently with Amazon doing similar steps trying to revert the minSDK. the Google Play Developer Console handles it fine, but not Amazon and I cannot revert back to an older minSDK

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mbaz

79437442

Date: 2025-02-13 18:50:28
Score: 3.5
Natty:
Report link

Try this project. I have successful experience using it. https://github.com/zhouhailin/freeswitch-externals

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alexander Danilov

79437441

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

Next.js uses specific extensions for it to work. Like:

If you use other extensions, it won't work.

So, your best answer is to use above extensions and write your code using jsx.

const page = () => (
    <div>
        <p>My html</p>
    </div>
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zarif Zuhayer

79437439

Date: 2025-02-13 18:49:28
Score: 0.5
Natty:
Report link

You can write it as a function, like:

B10(123)
B16(0AF)
B2 (101)
B8 (111)

Having a letter before the numbers ensures that it's compatible with the many languages that don't permit numbers as the first character.

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

79437436

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

My way of sectioning (especially when among declarations)

#if true
...
#endif

More advanced, as needed:

#define TESTING true  //here you can easily switch status of your code
...
...
#if TESTING
... // your commands for testing only
#endif

#if !TESTING
... // production mode code
#endif
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arpad Prp

79437435

Date: 2025-02-13 18:47:25
Score: 9.5 🚩
Natty: 5.5
Report link

Did you ever come up with a solution?

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: kingpin

79437409

Date: 2025-02-13 18:31:22
Score: 2.5
Natty:
Report link

React Router v7 is now supported on Vercel: https://x.com/vercel_changes/status/1890104465862332725

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

79437407

Date: 2025-02-13 18:29:21
Score: 1.5
Natty:
Report link

To enable paste protection

Chrome Version 132.0.6834.197, Feb 2024

In DevTools Preferences panel there's a button at the bottom of the list labeled "Restore defaults and reload" that enabled the allow pasting warning for me. Each other page I had open required just the reload to enable the warning.

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

79437403

Date: 2025-02-13 18:28:21
Score: 3
Natty:
Report link

In addition to the roles mentioned in the documentation, the iam.oauthClientViewer role should be added. With these three roles, we were able to connect using IAM authentication from our Dataflow job. An update to the documentation would be appreciated :)

Reasons:
  • Blacklisted phrase (1): appreciated
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Benjamin Coutellier