79137965

Date: 2024-10-29 15:49:39
Score: 3
Natty:
Report link

You need to create a service account set up with Domain-wide Delegation to allow it to call the watch method as a given user

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

79137962

Date: 2024-10-29 15:49:39
Score: 1
Natty:
Report link

If I understand correctly, you have a program in go that run on Windows and Linux and you encounter some issues when you try to test your program (When you run a MongoDB container). I think the issue could accrue because of the difference in Linux and window or WSL for this purpose, the way WSL work is it translate the commends the Karnal get to Windows and throw them back at you, I recommend doing serial things:

  1. add the option of giving more premtions to containers on Linux, for example c groups
  2. differentiate between different OS, (Linux, mac, Windows, WSL)
  3. try to work only on one OS for the time until everything work, then add support to other
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: syb

79137961

Date: 2024-10-29 15:48:39
Score: 1.5
Natty:
Report link

Thank you very much, mzjn! Your hints were correct. I was curiously running all python commands in the venv but the sphinx-build. I proofed this assumptions by adding

sys.path.append(os.path.abspath('../../'))
print('Sphinx runs with the following prefix:'+sys.prefix)

to my conf.py, which I got from wpercy and I will leave these lines there, for later debugging. After knowing this I tried to do it as migonzalvar describes it:

With the environment activated:

$ source /home/migonzalvar/envs/myenvironment/bin/activate
$ pip install sphinx
$ which sphinx-build
/home/migonzalvar/envs/myenvironment/bin/sphinx-build

Which still did not work. Only after I deactivated the venv and uninstalled sphinx globally via pip uninstall sphinx, sphinx-build started to use the venv (as I intended).

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: tschomacker

79137958

Date: 2024-10-29 15:47:39
Score: 1
Natty:
Report link

Locate the file android/app/build.gradle

set a proper package name here.

android {
  namespace = "com.example.scan" //set proper package name
  .....
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mahbub

79137954

Date: 2024-10-29 15:47:39
Score: 0.5
Natty:
Report link

A simple modification of @conmak's answer to still return a dictionary with None as values when the function has named arguments but no defaults:

def my_fn(a, b=2, c='a'):
    pass

def get_defaults(fn):
    ### No arguments
    if isinstance(fn.__code__.co_varnames, type(None)):
        return {}
    ### no defaults
    if isinstance(fn.__defaults__, type(None)):
        return dict(zip(
            fn.__code__.co_varnames, 
            [None]*(fn.__code__.co_argcount)
        ))
    ### every other case
    return dict(zip(
        fn.__code__.co_varnames, 
        [None]*(fn.__code__.co_argcount - len(fn.__defaults__)) + list(fn.__defaults__)
    ))

print(get_defaults(my_fn))

Should now give:

{'a': None, 'b': 2, 'c': 'a'}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @conmak's
  • Low reputation (0.5):
Posted by: Yohann O.

79137944

Date: 2024-10-29 15:45:38
Score: 3.5
Natty:
Report link

When working with a large number of elements in an Array, PostgreSQL uses a bitmap heap scan. To leverage the primary key index instead, provide the values directly rather than using an Array.

For more information read this article:https://www.datadoghq.com/blog/100x-faster-postgres-performance-by-changing-1-line/

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Advaith s

79137917

Date: 2024-10-29 15:38:36
Score: 1
Natty:
Report link

for those who want to list notebooks in their Workspace directory, try:

dbutils.fs.ls("file:/Workspace/Users/<your_email>")

This will list the files in your user's personal workspace in databricks. Note: file: at the beginning of the path.

See also official doc: https://docs.databricks.com/en/files/index.html#do-i-need-to-provide-a-uri-scheme-to-access-data

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

79137916

Date: 2024-10-29 15:38:36
Score: 0.5
Natty:
Report link

Probably lstModifiedDate is not exposed by design, to prevent developers from going in this direction. Instead, GraphAPI exposes Delta Queries which return not only modified entities but also created and deleted.

Delta Query for users example.

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

79137909

Date: 2024-10-29 15:36:36
Score: 0.5
Natty:
Report link

Probably lstModifiedDate is not exposed by design, to prevent developers going in this direction. Instead, GraphAPI exposes Delta Queries which return not only modified entities but also created and deleted.

Delta query for users example.

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

79137901

Date: 2024-10-29 15:33:35
Score: 0.5
Natty:
Report link

Your problem is that put_nowait() under the hood is trying to wake up all pending tasks. But asyncio doesn't handle the situation when this method is called from a synchronous function outside the event loop. So your event loop doesn't get a notification from an external thread to wake up - it doesn't wake up.

I don't recommend using run_coroutine_threadsafe() because it will make your external thread dependent on the event loop: it will be blocked until the event loop executes your coroutine. If you use call_soon_threadsafe(), the queue will actually update only after the event loop has handled your callback. This leaves the only reasonable solution, which is to use a queue that is both async-aware and thread-aware.

I don't know what the status of Janus is right now. It hasn't actually been updated in 3 years. I even created an issue about it. So I want to offer you my package, which is called aiologic.

from aiologic import SimpleQueue

queue = SimpleQueue()

queue.green_put(42)  # sync
await queue.async_get()  # async

Unlike janus.Queue, it never creates additional threads to notify an external thread.

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

79137893

Date: 2024-10-29 15:31:34
Score: 1
Natty:
Report link

Adding on @Ilya Pasternak answer, for the react hook form users I've created a fully typed hook that will simplify and encapsulate the logic:

export const useReactiveTranslatedForm = <T extends AnyObject>(
  getSchemaFunction: () => ObjectSchema<T>,
  defaultValues: DefaultValues<T>
) => {
  const { i18n } = useTranslation()
  const memoizedSchema = useMemo(() => getSchemaFunction(), [i18n.language])
  const form = useForm<T>({
    resolver: yupResolver(memoizedSchema),
    defaultValues
  })
  useEffect(() => {
    if (form.formState.isSubmitted) {
      form.trigger()
    }
  }, [i18n.language])
  return form
}

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

79137890

Date: 2024-10-29 15:31:34
Score: 4
Natty:
Report link

It seems to be there again 🙌

https://github.com/elastic/elasticsearch-php

Thank you for the fast fixing elastic team!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: IMM0rtalis

79137876

Date: 2024-10-29 15:27:33
Score: 1.5
Natty:
Report link

Try to specify the sizes attribute, e.g.

<img 
  srcset="assets/images/image-1280.jpg 1280w, assets/images/image-3840.jpg 3840w"
  sizes="(max-width: 600px) 480px, 800px"
  src="assets/images/image-3840.jpg" 
  width="100%"
  alt="Cyber Prototype">

Reference: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Siu Pang Tommy Choi

79137871

Date: 2024-10-29 15:25:33
Score: 1
Natty:
Report link

View:

Index:

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

79137868

Date: 2024-10-29 15:25:33
Score: 2
Natty:
Report link

Very helpful the accepted answer from @adam-wenger, just want to add this screenshot for clarification on the SSMS 2022 enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @adam-wenger
  • Single line (0.5):
  • High reputation (-2):
Posted by: Jaider

79137862

Date: 2024-10-29 15:23:32
Score: 1
Natty:
Report link

I am using vscode and typescript and discovered that you just need to import the function/variable you want to reference and the link starts working:

/**
 * @deprecated Use {@link func} instead
 */
const func_deprecated = () => {}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nazar

79137852

Date: 2024-10-29 15:21:32
Score: 0.5
Natty:
Report link

This may be for several reasons, firstly you do not update the browser cache when the page is reloaded, this is a common situation that leads to these kind of problems, the solution is to disable caching, and second, you need to make sure that the server is running in npm development mode run serve (or yarn serve if using Yarn), or you can create a project again to check if this hot reload works.

Good Luck!

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: AhegaoTian

79137850

Date: 2024-10-29 15:20:29
Score: 11.5 🚩
Natty: 5
Report link

te ayudo este codigo? o lograste armar otro? estoy en una situacion muy similar.... todas mis muestras fueron tomadas fuera de laboratorio por eso no todas tienen la misma escala a pesar de tener todas la misma referencia...

Gracias, saludos.

Ernesto.

Reasons:
  • Blacklisted phrase (2): Gracias
  • Blacklisted phrase (1): todas
  • Blacklisted phrase (1.5): saludos
  • Blacklisted phrase (2): estoy
  • RegEx Blacklisted phrase (2.5): misma
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ernesto Orrillo

79137835

Date: 2024-10-29 15:16:28
Score: 2.5
Natty:
Report link

Try to put this into your tsconfig

"esModuleInterop": true

"allowSyntheticDefaultImports": "true"

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

79137826

Date: 2024-10-29 15:15:28
Score: 2
Natty:
Report link

Eventually, I realized where the problem was, it seems that Meta doesn't update its documentation quickly enough. The On-Premises API is sunsetting, so we can't use the documentation from the certificate. We only need to register the number using the endpoint "https://graph.facebook.com/v20.0/[phone-number-id]/register" without associating any certificate. Here is the documentation: https://graph.facebook.com/v20.0/[phone-number-id]/register.

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

79137825

Date: 2024-10-29 15:14:27
Score: 2
Natty:
Report link

If you have an existing spf record (usually when you have outlook set up or any other email provider) you need to combine both spf records.

In my case, I had outlook configured in my dns records and adding another TXT spf record didn't work until I merged them using this tool which I found after finding this video two days later which solved the error.

I was getting a: "We can't verify that this email came from the sender so it might not be safe to respond to it." error message.

Reasons:
  • Blacklisted phrase (1): this video
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: martiwg

79137812

Date: 2024-10-29 15:11:27
Score: 1
Natty:
Report link

Ran the following command and encounter similar error messages:

flutter build ios --obfuscate --split-debug-info=[Directory]

Error (Xcode): Warning: The generated assembly code contains unobfuscated DWARF debugging information.

Encountered error while building for device.

Found out that the error was caused by custom IconData I just added. Add const in front resolved the error.

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

79137810

Date: 2024-10-29 15:10:26
Score: 2
Natty:
Report link

Please try below configuration in your angular.json file (path: projects..architect.build.options.stylePreprocessorOptions)

Configuration:

"stylePreprocessorOptions": { "includePaths": [ "." ] }

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

79137808

Date: 2024-10-29 15:10:26
Score: 2
Natty:
Report link

No point in collecting to a list when it is not been used. Better to remove "collect(Collectors.toList()" and change from map to foreach

list.stream().foreach(event -> { ..... })

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

79137807

Date: 2024-10-29 15:10:26
Score: 0.5
Natty:
Report link

As of Jackson 2.13.1 and beyond the @JsonAlias annotation is available which is used during deserialization to populate a filed in the object which has a different name in the JSON. The 'id' attribute could be annotated with this annotation, @JsonAlias("_id") to read _id from MongoDB to 'id'

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

79137800

Date: 2024-10-29 15:09:26
Score: 3.5
Natty:
Report link

Without the z-index hack, part of the prefix button border (in focus) will be covered by the input field, which look like this:

Preview

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Siu Pang Tommy Choi

79137792

Date: 2024-10-29 15:06:25
Score: 1
Natty:
Report link

You could write your own parser

namespace po = boost::program_options;

std::pair<std::string, std::string> short_flag_parser(const std::string& s)
{
    // one letter arguments work with single dash
    if (s[0] == '-' && s.size() == 2) {
        return make_pair(s.substr(1), std::string());
    } else {
        return make_pair(std::string(), std::string());
    }
};

int main() {
    desc.add_options()
        ("help, h", "produce help message");
    

    po::variables_map vm;
    po::store(po::command_line_parser(ac, av).options(desc).extra_parser(short_flag_parser).run(), vm);
    po::notify(vm);    

    if (vm.count("help")) {
        std::cout << desc;
        return;
    }
}
Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexander Popov

79137789

Date: 2024-10-29 15:06:25
Score: 1
Natty:
Report link

If you are using Javascript you can use the .toISOString() method of the date object

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

79137783

Date: 2024-10-29 15:04:25
Score: 0.5
Natty:
Report link

The suggested fix does not work if the script attaching the shadow root is inline in the page.

For example:

<script>
const shadowHost = document.getElementById('shadow-host');
const shadowRoot = shadowHost.attachShadow({ mode: 'closed' });
...
</script>

the reason is that the script element created in e.g., shadowInject.js in BlackHole's answer, requires the browser to fetch the script and that is done asynchronously, while the script inline in the page is executed immediately as the page loads and therefore the script overrides Element.prototype.attachShadow after it's already been called.

If anyone can think of a solution, here are some of the things I tried and did not work or were not viable solutions for other reasons:

  1. inject an inline script instead of a script with src attribute e.g.,
let script = document.createElement('script');
script.innerText = '...hook attachShadow...';
(document.head||document.documentElement).append(script);

this is not a viable solution because it requires unsafe-inline to the CSP and that is the worst possible thing.

  1. inject a preload for the script before injecting the script element - this doesn't help either and the inline script in the page still calls Element.attachShadow before it is hooked.

It baffles me that in 2024 extensions do not have easy and streamlined access to content inside shadow roots (while devtools does!) and need to resort to this kind of hack. If anyone can think of a way to either gaining access to the DOM content of a shadow root from a chrome extension AFTER it's been created OR alternatively, to ensure Element.attachShadow is hooked before any script can invoke it.... I will be endlessly grateful :)

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uriel G

79137779

Date: 2024-10-29 15:04:25
Score: 1
Natty:
Report link

I finally found the solution. It was simply due to the browser which allow cookies only on domain, not 127.0.0.1

So, replace this line

$client = static::createPantherClient(['port'=>8080]);

By that one

$client = static::createPantherClient(['hostname'=>'localhost', 'port'=>8080]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: hadf

79137764

Date: 2024-10-29 15:00:24
Score: 3
Natty:
Report link

Several approaches described in https://kb.altinity.com/altinity-kb-queries-and-syntax/pivot-unpivot/

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

79137761

Date: 2024-10-29 15:00:24
Score: 1.5
Natty:
Report link

Setting the following before spark-submit resolved similar issue for me...

export SPARK_LOCAL_HOSTNAME=localhost  
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SKakarlamudi

79137759

Date: 2024-10-29 14:59:24
Score: 2
Natty:
Report link

It will be a little hard for anyone to pinpoint your issue. You may want try assigning the activity to a different group and see if you still get the error. I think that this batch process posts this log message once and will say "Found X open activities with no group ID" for the total number of activities in with a null group ID. Are you saying you checked every open activity in PC and all have a non-null groupID?

This KB article seems to indicate that the groupID must be null for this error to occur. Login required for this link.

https://partner.guidewire.com/s/article/What-statistics-does-Team-Screens-batch-process-create

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: SteveDripps

79137750

Date: 2024-10-29 14:58:24
Score: 1
Natty:
Report link

I'm sorry I am adding this as an answer, but the system here does not allow me to comment untill I have gained 50 rep. So this probably should just be a comment to the accepted answer, but alas. I'll try to make it worth your while.

Importing a config can be made better by specifying what you are importing.

Instead of just import config, you can do from config import foo, bar, listofthings, which makes you actually know (better) what you are importing, and way less susceptible to unexpected behaviour from someone "hacking" the config file.

In addition, this also makes it so you don't have to reference your variables with dot-notation as blinky = config.foo['blinky'], but just blinky = foo['blinky']

In addition you can also import classes and functions, which is way harder with another method.

So I see some benefit to doing it this way.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danny Kip

79137742

Date: 2024-10-29 14:56:23
Score: 2
Natty:
Report link

If you are starting from a Quickboot snapshot, you won't be able to take new snapshots. If you delete your Quickboot snapshot and restart your emulator, then you should be able to take snapshots.

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

79137735

Date: 2024-10-29 14:53:22
Score: 5.5
Natty: 6.5
Report link

what if you have install tha SDK in unity but when you build the game it still syas that you don't have SDK?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what if you have in
  • Low reputation (1):
Posted by: Ega Abigail

79137726

Date: 2024-10-29 14:51:21
Score: 3
Natty:
Report link

can now be done by setting native_scale = True

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can now
  • Low reputation (1):
Posted by: RunicSJC

79137724

Date: 2024-10-29 14:51:21
Score: 1.5
Natty:
Report link

I recommend using Redis Stack, which integrates Redis with the additional modules for search, JSON, probabilistic data structures, and time series.

Note also that Redis 8 M01 is available for testing. From Redis 8 on, the standard Redis Community Edition will integrate search (including full-text, vector, numeric, geo, and exact match) and the rest of the capabilities.

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

79137720

Date: 2024-10-29 14:50:21
Score: 0.5
Natty:
Report link

You are overwriting the value of char which each loop iteration. This code will behave as you expect:

value = input("Input a string: ")
char = input("Input a character to count: ")[0]
count = 0
for c in value:
    if c == char:
        count += 1
print(f"The character '{char}' appears {count} times.")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zico

79137712

Date: 2024-10-29 14:48:20
Score: 1.5
Natty:
Report link

Welcome back to Unity. So I belive that I know the problem but I cant confirm it through comments since I dont have enough reputation to do so. If its somehow wrong I will make sure to update.

When you made the script you likly attached the prefab version of the player. The one from the editor section instead from the level scene. Which means that it will grab the vector3 position from the prefab instead of the current "live" one in scene. Since you likly have the prefab with the same or similar transforms as the gameobject that contains this script it appears like its spawning at the transform of the script.

The solution is to either use the prefab that appears in the level editor or have the player send its own transform to the script through a method.

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (1.5): I dont have enough reputation
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Montain Production

79137711

Date: 2024-10-29 14:48:20
Score: 0.5
Natty:
Report link

In spaCy, there are indirect methods to retrieve frequency-related information for a word form or lemma based on the data the model was trained on, though spaCy doesn’t provide explicit frequency counts.

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

79137702

Date: 2024-10-29 14:46:20
Score: 0.5
Natty:
Report link

The xl()-function returns a Pandas dataframe.

Hence, it can be iterated over by the following (adapted from this post):

arr=xl("B2:B3")
tot=1
for index, row in arr.iterrows():
    tot*=(1+row[0])
tot-1

or, as looping each row isn't really necessary when it is a df, the same can be done by

arr=xl("B2:B3")
tot=(arr[0]+1).product()
tot-1
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RuneS

79137697

Date: 2024-10-29 14:45:19
Score: 1.5
Natty:
Report link

If you are writing a library, a class not being referenced within your project does not imply it won't be used by your users.

Write unit tests and set up a test coverage report. Then you will have a better idea whether those uncovered lines of codes are actually "unused" in your situation.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Siu Pang Tommy Choi

79137691

Date: 2024-10-29 14:43:19
Score: 2
Natty:
Report link

From Unity's iOS environment setup

"To support iOS and other Apple operating systems, a Unity project requires:

The iOS Build Support module."

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

79137687

Date: 2024-10-29 14:43:19
Score: 0.5
Natty:
Report link

Updating Android Studio, Xcode, macOS, and Kotlin Multiplatform plugin of Android Studio to the latest versions solved the problem for me.

versions

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: CarterChen247

79137679

Date: 2024-10-29 14:42:18
Score: 0.5
Natty:
Report link

Updating Android Studio, Xcode, macOS, and Kotlin Multiplatform plugin of Android Studio to the latest versions solved the problem for me.

versions

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: CarterChen247

79137675

Date: 2024-10-29 14:41:18
Score: 2.5
Natty:
Report link

I have created a project that match windows build version to a manifest, enabling you to download the manifest for your specific build, download all the pdb's and take them to the isolated network.

Repo - https://github.com/ErezAmihud/WindowsSymbolsByVersion

Website - https://erezamihud.github.io/WindowsSymbolsByVersion/

NOTE: if the windows version you use is not there, open an issue and I will make it a priority.

Also, if you have the exe of your specific build, you can extract it, extract the install.wim (sources/install.wim) and then run symchk on those binaries.

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

79137670

Date: 2024-10-29 14:40:18
Score: 0.5
Natty:
Report link

The only solution I've found so far is a total hack:

Instead of using a full detent, use context.maximumDetentIdentifier to ensure the detent is never actually full:

sheet.detents = [.custom(resolver: { context in
    0.999 * context.maximumDetentValue
})]

Screenshot of the same view controller in the question but with the presenting view controller underneath not scaled or dimmer

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

79137667

Date: 2024-10-29 14:40:18
Score: 1
Natty:
Report link
  1. Stable and recommended approach

Create a new angular application in version 16 and start adding internal libraries and feature modules.

Advantages:

Disadvantages

  1. Unstable approach

Upgrade angular application's version one by one with unstable code in local, complete all the migrations and fix the breaking changes at the end.

Advantages:

Disadvantages:

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

79137656

Date: 2024-10-29 14:35:14
Score: 8.5 🚩
Natty: 5
Report link

I am also facing the same error. I am following the same video. Did you come up with a solution for this?

Reasons:
  • RegEx Blacklisted phrase (1): I am also facing the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jasleen Kaur

79137650

Date: 2024-10-29 14:35:14
Score: 3
Natty:
Report link

I faced the same problem as you, and the way I got it to work was by encompassing the whole thing in parentheses.

Example:

pChar = ((char*)pVoid);

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

79137646

Date: 2024-10-29 14:33:13
Score: 2.5
Natty:
Report link

After going through all the settings of TextEditor/C#/CodeGeneration in VS, the answer was found.

Selecting Automatic turned on the behavior as I knew it.

Maybe this saves someone hours of research and frustration. I was doubting myself so much.

Scrrenshot of VS Tools/Options/TextEditor/C#/CodeGeneration

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

79137642

Date: 2024-10-29 14:32:13
Score: 2
Natty:
Report link

Delete Podfile.lock under ios folder then run pod install.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hillary Bett

79137637

Date: 2024-10-29 14:31:13
Score: 3
Natty:
Report link

If you are not seeing logs in explorer dashboard, ensure you are pointing to the correct Datadog site. In my case I was incorrectly pointing to default US1.

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

79137631

Date: 2024-10-29 14:30:13
Score: 2
Natty:
Report link

First of all, retrieve each value separately from $_GET using the specific key name.

Secondly, concatenate the values (if that’s the intention) or store them in an array.

As mentioned above, just access it directly an concatenate it.

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

79137620

Date: 2024-10-29 14:29:12
Score: 2
Natty:
Report link

Salesforce recently changed sandbox refresh behavior and will mark users as "Frozen" on refresh. I had to "Unfreeze" the user defined as the Run As user in the Client Credentials Flow settings, and this resolved the issue.

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

79137619

Date: 2024-10-29 14:29:12
Score: 0.5
Natty:
Report link

I have run into this type of problem before, it is most likely because you have more than 1 version of Python or more than 1 version of pip so the pip/python version you have installed pyrebase to is not the same version you are using in your editor. What worked for me is uninstalling all of the pip and python versions from my computer including all the folders in the c drive then install a fresh copy of Python then try installing pyrebase from pip again, that should fix it. Hope that Works.

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

79137610

Date: 2024-10-29 14:25:12
Score: 3.5
Natty:
Report link

I have created a VSCode extension that serves this purpose and streamlines file creation. Feel free to check it out at VSCode extensions marketplace

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

79137605

Date: 2024-10-29 14:23:11
Score: 4
Natty: 5
Report link

This did not work for me; F was not defined.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Barry DeCicco

79137598

Date: 2024-10-29 14:21:10
Score: 0.5
Natty:
Report link

Same issue here. In my case it was having troubles finding the $releasever. Managed to fix it by editing the docker-ce.repo with:

sudo vi /etc/yum.repos.d/docker-ce.repo

and replaced all the $releasever with 7, making it look like this:

[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/7/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/7/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/7/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/7/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/7/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/7/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: João Silva

79137589

Date: 2024-10-29 14:18:09
Score: 1
Natty:
Report link

I have used Sendgrid and Twilio, both have a free tier for hobby / testing, at least last I checked, and neither requires a domain (you do need to specify a return address of course).

For both, you make an API call to their service and it sends an email. I used Twilio to test a Proof of Concept app I built when I was at Blue Cross.

Good luck!

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

79137585

Date: 2024-10-29 14:17:09
Score: 0.5
Natty:
Report link

Angular 18. Setting value to empty string on click event compiled and worked:

<input
    type="file"
    #fileInput
    accept="image/*"
    (change)="onFileChanged($event)"
    (click)="fileInput.value = ''"
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Edward Olamisan

79137583

Date: 2024-10-29 14:17:07
Score: 10.5 🚩
Natty: 4
Report link

Even i am getting the same error, can you pleasse help me in solving this error

<< Error executing action install on resource 'dnf_package[httpd]' >>

below is the command chef-client -zr "recipe[apache-cookbook::r5]"

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you pleasse help me in
  • RegEx Blacklisted phrase (1): i am getting the same error
  • RegEx Blacklisted phrase (2): Even i am
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): i am getting the same error
  • Low reputation (1):
Posted by: Vishwas S S

79137567

Date: 2024-10-29 14:13:06
Score: 1
Natty:
Report link

You can achieve the Send action by using TextInputAction.send

TextFormField(
  textInputAction: TextInputAction.send,
  onFieldSubmitted: (value) {
    // Handle the action
  },
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user27894462

79137563

Date: 2024-10-29 14:12:04
Score: 7 🚩
Natty: 6
Report link

Did you manage to increase the performance? I also just started working with model based RL and was shocked how slow it was

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: SimJon1

79137562

Date: 2024-10-29 14:12:03
Score: 2.5
Natty:
Report link

use this to create project in react native cli

react native version 0.76

npx @react-native-community/cli init FaceDetect

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

79137551

Date: 2024-10-29 14:09:00
Score: 10 🚩
Natty: 5.5
Report link

HI did you figured it out I have same problem

Reasons:
  • Blacklisted phrase (1): I have same problem
  • RegEx Blacklisted phrase (3): did you figured it out
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel M_D

79137550

Date: 2024-10-29 14:09:00
Score: 3.5
Natty:
Report link

Yes, that is perfectly correct queue configuration.

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

79137539

Date: 2024-10-29 14:03:59
Score: 0.5
Natty:
Report link

IIRC: The error you're encountering arises because PowerShell does not automatically interpret $sql as a single MySqlCommand object but rather as an array of MySqlCommand objects (as specified in your parameter declaration). This can cause issues when you try to access properties like CommandText, which do not exist for an array type.

You should change [MySql.Data.MySqlClient.MySqlCommand[]]$sql to [MySql.Data.MySqlClient.MySqlCommand]$sql, which ensures $sql is treated as a single MySqlCommand object.

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

79137537

Date: 2024-10-29 14:02:56
Score: 6.5 🚩
Natty:
Report link

Can you please share your nginx config

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please share your
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you please share you
  • Low reputation (0.5):
Posted by: Farhan

79137534

Date: 2024-10-29 14:02:56
Score: 2
Natty:
Report link

Assuming the Customer Portal is the page you're referring to here in which you click "Return to [site]" and are redirected to the wrong page, then most likely the code that is creating the Customer Portal session is passing this incorrect return_url. I'm not familiar with this Vercel template at all, but if you have access to the code, then you need to modify this return url.

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

79137530

Date: 2024-10-29 14:01:56
Score: 2.5
Natty:
Report link

Ok the difference comes from a small difference of JPA configuration between both.

The cause is the presence of the property "hibernate.query.substitutions", "true=1 false=0" and this seems to be in conflict with the converter.

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

79137527

Date: 2024-10-29 14:00:56
Score: 1.5
Natty:
Report link

If you're on a Juypter notebook environment. try restarting the kernel. it worked for me.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ali alsadadi

79137515

Date: 2024-10-29 13:58:55
Score: 1
Natty:
Report link

Thank you horseyride. i was able to make your solution work.

As i continued googling, I also came across the "earlier" DAX function, which allows me to add a column easily. It is not done in the import like I asked, but does what i wanted by keeping the amount of data imported to the original single table set.

EARLIER(, )

the formula I used is this:

NextOrderDate = 
  CALCULATE(
      MIN(Orders[OrderDate]),
      FILTER(
          Orders,
          Orders[Item] = EARLIER(Orders[Item]) && 
          Orders[OrderDate] > EARLIER(Orders[OrderDate])
      )
   )
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ArbyWon

79137499

Date: 2024-10-29 13:53:54
Score: 2
Natty:
Report link

Code should work fine. Problem is in timer duration. The duration 5000 is actually seconds not milliseconds. So your timer will be fired but after 5000 seconds(i.e. after 1 hour 23 minutes and 20 seconds). If you want to fire it after 5 seconds then set the duration to 5 only.

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

79137498

Date: 2024-10-29 13:53:54
Score: 1
Natty:
Report link

This is a GCC bug, filed as member char array with string literal initializer causes = {} to fail.

It was Fixed for GCC 11.

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

79137486

Date: 2024-10-29 13:49:53
Score: 3
Natty:
Report link

The visibilitychange listener did not go off for me using firefox 115.14.0esr (64-bit). So it doesn't seem to work for refresh detection.

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

79137485

Date: 2024-10-29 13:49:53
Score: 0.5
Natty:
Report link
  1. get-login is deprecated. Use get-login-password instead.

  2. You must pass a token from aws ecr get-login-password to the docker login.

For example: aws ecr get-login-password --region "${REGION}" | docker login --username AWS --password-stdin ${ECR_REGISTRY}

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

79137484

Date: 2024-10-29 13:49:53
Score: 1
Natty:
Report link

To bind a server to multiple ports, you’ll need separate Socket instances for each port since a single socket instance can only bind to one specific IP address and port combination.

Instead of having a single listener socket, you can create a list or dictionary of Socket instances, with each socket bound to a different port. For each port, create a new socket, bind it to the desired IP and port, and begin accepting connections.

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

79137476

Date: 2024-10-29 13:46:52
Score: 2
Natty:
Report link

I decided to use const chromium = require("chromium");

// Use Puppeteer to generate the PDF from HTML
  const browser = await puppeteer.launch({
    args: [
      "--no-sandbox",
      "--disable-setuid-sandbox",
      "--disable-dev-shm-usage",
      "--single-process",
      "--no-zygote",
    ],
    executablePath: chromium.path,
  });

https://www.npmjs.com/package/chromium

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

79137470

Date: 2024-10-29 13:45:52
Score: 1
Natty:
Report link

Don't worry about double execution when developing with React, my guess: Strict Mode with a development build

Why did you set the const function drawDealerCard as a dependecy for your useEffect hook? This hook triggers upon changes of the provided dependencies, hence it gets called upon changes of isDealerHidden and drawDealerCard. I reckon to only keep isDealerHidden.

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

79137461

Date: 2024-10-29 13:42:51
Score: 3.5
Natty:
Report link

Try this. There is some new animations that might mess things for you https://medium.com/@adityaramadhan.biz/new-tabbar-transition-animation-in-ios-18-and-xcode-16-ea4b2c4d84d4

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Code Ninja

79137460

Date: 2024-10-29 13:42:51
Score: 4
Natty:
Report link

Please check below link hope it may help you https://www.techrobbers.com/2019/11/how-to-create-list-using-template-in.html

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

79137440

Date: 2024-10-29 13:36:50
Score: 0.5
Natty:
Report link

In the Conditional Formatting options, set Apply to to Values and totals.

Set Apply to: Values and totals

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Sam Nseir

79137434

Date: 2024-10-29 13:35:49
Score: 1
Natty:
Report link

Importance.Max and Priority.High, cause the device to vibrate when the notification is created, even if enableVibration is false. I set the importance and priority to low and the vibration stopped.

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

79137431

Date: 2024-10-29 13:33:49
Score: 0.5
Natty:
Report link

I believe I’m an excellent fit for this role because of my strong foundation in WordPress development, my problem-solving abilities, and my dedication to producing high-quality work. I have hands-on experience with WordPress customization, theme and plugin development, and optimizing website performance, all of which align with the needs of this role.

In my previous projects, I’ve successfully built and customized WordPress sites, implementing responsive designs and ensuring cross-browser compatibility to create seamless user experiences. Additionally, I am proficient in HTML, CSS, JavaScript, and PHP, allowing me to make impactful front-end and back-end improvements tailored to client requirements.

Beyond technical skills, I bring a proactive approach to problem-solving and am always open to learning new tools and techniques to enhance my work. I also understand the importance of deadlines and am committed to delivering projects on time while maintaining a high standard of quality.

With my skills and commitment, I am confident I can contribute meaningfully to your team and help achieve the company’s goals for this internship.

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

79137420

Date: 2024-10-29 13:31:48
Score: 0.5
Natty:
Report link

Pure Css Solution that worked for me in Angular

 ::ng-deep {
.p-datatable-wrapper::-webkit-scrollbar {
    scrollbar-width: none; /* Hides the scrollbar */
  }
}
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RKS

79137419

Date: 2024-10-29 13:30:48
Score: 3
Natty:
Report link

The problem was that CMake generated a very long string with several paths and these paths, as I understand it, were passed to the PrepareForDirectorySync method. Due to the very large length of the string, the PrepareForDirectorySync method returned an error and stopped the build.

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

79137412

Date: 2024-10-29 13:28:48
Score: 1
Natty:
Report link

If you are having problems with your NGINX ingress controller that are preventing requests from being handled as intended please make sure that the Proxy-buffering should be disabled to process requests without waiting for the initial request to finish, and you can also use the particular annotations to regulate how requests are handled. For more details, see here.

Additionally you can try utilizing ingress controller annotations and server-snippet annotation, or you can override the current Nginx Ingress Controller's ConfigMap.

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

79137385

Date: 2024-10-29 13:20:46
Score: 0.5
Natty:
Report link

You can try window function like this,

COUNT(department_referral) AS most_referrals,
        ROW_NUMBER() OVER (PARTITION BY patient_race ORDER BY COUNT(department_referral) DESC) AS referral_rank
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Busra Ecem Sakar

79137371

Date: 2024-10-29 13:16:44
Score: 3
Natty:
Report link

It's simple, your entity "Shawarma" depends of your entity "Ingredient" in its records, if you want to delete an ingredient, you need to verify it isn't into any "Shawarma"

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

79137354

Date: 2024-10-29 13:11:43
Score: 0.5
Natty:
Report link

I would advice to use a different field that can be retrieved with either the Entra ID connector or Office365Users, but if this is the only option I think you could map the description field to onPremiseExtensionAttributes

And then retrieve it using Graph APIs user endpoint

https://graph.microsoft.com/v1.0/users?$select=onPremisesExtensionAttributes

This is the response. As you can see there's 15 free attributes, if non are mapped already

"value": [
    {
        "onPremisesExtensionAttributes": {
            "extensionAttribute1": null,
            "extensionAttribute2": null,
            "extensionAttribute3": null,
            "extensionAttribute4": null,
            "extensionAttribute5": null,
            "extensionAttribute6": null,
            "extensionAttribute7": null,
            "extensionAttribute8": null,
            "extensionAttribute9": null,
            "extensionAttribute10": null,
            "extensionAttribute11": null,
            "extensionAttribute12": null,
            "extensionAttribute13": null,
            "extensionAttribute14": null,
            "extensionAttribute15": null
        }

Regarding the licensing issue, graph api can actually be called from canvas apps using the Office365Groups connector. Here is a good tutorial from Reza

Tried it in app and it was successful

Set(glbTestGraphCall, Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/users?$select=onPremisesExtensionAttributes", "GET", ""));

Got the same response in the monitor as it was in Graph explorer, so you could use these attributes in the app as well

Reasons:
  • Blacklisted phrase (1.5): a good tutorial
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: alienwife

79137347

Date: 2024-10-29 13:09:42
Score: 1
Natty:
Report link

I would like to suggest an adaptation of @whereisalext's answer. By creating a dict of supported units with their respective sizes and then iterating from larger to smaller, the same behaviour can be achieved with less code:

def humanbytes(num_bytes: int) -> str:
    """Return the given bytes as a human friendly B, KB, MB, GB, or TB string."""
    units_map = {
        'TB': 2**40,
        'GB': 2**30,
        'MB': 2**20,
        'KB': 2**10,
        'B': 1,
    }
    # determine unit and factor
    for unit_name, unit_factor in units_map.items():
        if unit_factor <= num_bytes:
            break
    # build response
    return f'{float(num_bytes/unit_factor):.2f} {unit_name}'

Output:

1 == 1.00 B
1024 == 1.00 KB
500000 == 488.28 KB
1048576 == 1.00 MB
50000000 == 47.68 MB
1073741824 == 1.00 GB
5000000000 == 4.66 GB
1099511627776 == 1.00 TB
5000000000000 == 4.55 TB
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @whereisalext's
  • Low reputation (1):
Posted by: Brian Bjarke Jensen

79137335

Date: 2024-10-29 13:07:41
Score: 2.5
Natty:
Report link

I'm pretty sure this is what would help you:

https://github.com/smnbbrv/ngx-spec

However, could you perhaps show your scripts in package.json? Because even if it's generated and some changes were made, your test will not be ran anyways.

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

79137333

Date: 2024-10-29 13:06:41
Score: 0.5
Natty:
Report link

After some extra research, I've come up to a working solution, although it is not what I expected, as I intended to retrieve the whole secret address as a property of the certificate.

If I concatenate the keyvault address with the certificate data like this:

resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = {
  name: keyVaultName
}

resource apiManagementName_resource = {

   [... some other settings ...]

   hostnameConfigurations: [
   {
     type: 'Proxy'
     hostName: 'my-url.my-domain.com'
     keyVaultId: '${keyVault.properties.vaultUri}secrets/${certificateName}'
     certificateSource: 'KeyVault'
     defaultSslBinding: true
     negotiateClientCertificate: false
   }
}

Then the certificate is attached properly to the custom domain field in the api management.

Also as it does not include the version, it is supposed to be taking the last one so if renovated, it should keep working.

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

79137325

Date: 2024-10-29 13:04:40
Score: 3.5
Natty:
Report link

As mentioned in the official Azure Cosmos DB Gremlin API documentation, transactions are unfortunately not supported. Cosmos DB docs stating transactions aren't supported

See link below for reference:

https://learn.microsoft.com/en-us/azure/cosmos-db/gremlin/support?source=recommendations#unsupported-features

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

79137310

Date: 2024-10-29 13:00:39
Score: 4
Natty:
Report link

To build on what @Gaël J said. Here's a image of what he's talking about.

enter image description here

I would have added to the original answer but stackoverflow has too many edits in the queue. :/

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Austin Poole

79137308

Date: 2024-10-29 12:58:38
Score: 4
Natty:
Report link

Add the [Required] data annotation

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

79137306

Date: 2024-10-29 12:58:38
Score: 2
Natty:
Report link

Go to your cmd and type ipconfig it will give you the local ip address of your pc.. You can add the ip address into the ALLOWED_HOSTS = []

and if you want to allow for all of the IP's then just do this ALLOWED_HOSTS = [*]

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

79137297

Date: 2024-10-29 12:54:37
Score: 1
Natty:
Report link

Yes, root has access to any folder it can even be d--------- and root would still be able to read and write that folder.

As for sudo, it depends on the permissions. If a regular user is able to sudo su - and become root, then it's root and it can read and write that folder.

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