79217289

Date: 2024-11-23 06:37:14
Score: 0.5
Natty:
Report link

This solution works but input syntax is not as easy as in NodeJS:

$("Hello") - for string. $(25) - for number. $(true) - for bool.

here is the code:

window.$input = (() => {
  let waitingCallback = null;

  Object.defineProperty(window, '$', {
    get: () => {
      if (waitingCallback) {
        const callback = waitingCallback;
        waitingCallback = null;
        return callback;
      }
      return () => { };
    }
  });

  return prompt => {
    console.log(prompt);
    return new Promise(resolve => waitingCallback = resolve);
  };
})();

// modify the function body. use 'await $input()'
async function example() {
  const name = await $input('What is your name?');
  const age = await $input('How old are you?');
  console.log(`Your name is ${name} and you are ${age} years old.`);
}

// do not forget to call the function
example();
Reasons:
  • Blacklisted phrase (1): What is your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bachi

79217288

Date: 2024-11-23 06:37:14
Score: 1
Natty:
Report link

You have to remove opencv and its dependencies: sudo apt remove python3-opencv sudo apt autoremove Then install again with the version you want: sudo apt install python3-opencv=4.6.0 Hope it works.

Reasons:
  • Whitelisted phrase (-1): Hope it works
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lewis

79217275

Date: 2024-11-23 06:26:12
Score: 3
Natty:
Report link

window.getSelection() actually works fine. The problem here is because when the focus is lost, then the selection is cleared as well.

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

79217266

Date: 2024-11-23 06:16:10
Score: 1
Natty:
Report link

I ended up using this code that uses #include <stdio.h>.

   while (1) {
       // Send the ADC buffer over USB
       if (buffer_index >= BUFFER_SIZE) {
           // Send buffer to USB
           for (size_t i = 0; i < BUFFER_SIZE; i++) {
             printf("ADC0: %d, ADC1: %d\n", adc_buffer[i * 2], adc_buffer[i * 2 + 1]);
           }
           buffer_index = 0; // Reset buffer index
       }
       vTaskDelay(pdMS_TO_TICKS(100)); // Adjust delay as needed
   }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dustin LaRoche

79217263

Date: 2024-11-23 06:12:09
Score: 4
Natty:
Report link

in EditText

android:background="@null" android:inputType="textVisiblePassword"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: user28443117

79217259

Date: 2024-11-23 06:10:08
Score: 1
Natty:
Report link

The issue is the reset part of the sequence. For some reason, the Grafana parser doesn't seem to like 0; or 1; in the sequence's reset (closing) part.

For example:

You can see how some are working and some are not here: enter image description here

The difference is simply the reset (closing) part of the sequence. enter image description here

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

79217246

Date: 2024-11-23 05:57:06
Score: 0.5
Natty:
Report link

autoflake can now do this with the --expand-star-imports option, provided

So you could do something like

autoflake --expand-star-imports --remove-all-unused-imports --in-place --exclude "__init__.py"  my-python-project/*.py

Ref. https://pypi.org/project/autoflake/

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): can now
  • Low reputation (0.5):
Posted by: Gokulakrishnan Shankar

79217233

Date: 2024-11-23 05:50:04
Score: 3
Natty:
Report link

I know why!!!

I had an assume: some games were imported successfully, but the retor's list_game cannot list it, so I want to figure out which game was imported but unlisted.

When I manually imported those games, I found many games in the ROMs have same name, forexample, "Robotank" occur 3 times, that's why I imported 167 games, but only have 59 in list. because there are same games in the ROMs. I use this ROMS: https://www.atarimania.com/rom_collection_archive_atari_2600_roms.html

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Chuckie Zhu

79217226

Date: 2024-11-23 05:44:03
Score: 5
Natty:
Report link
clip().background().border().padding().clickable() 

All this modifiers require values. For example:

.clip(shape: Shape) 
.background(color: Color)

Or, if your code has this, can you provide mode code for understanding your problem ?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you provide
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Орест Третяк

79217218

Date: 2024-11-23 05:39:02
Score: 2.5
Natty:
Report link

For someone who cannot find "Python (.py)" in "Save and Export Notebook As" menu in the Jupyter notebook.

It may be called as "Executable Script" depending on the version.

It took me for a while to find this so I am guessing that there may be someone else facing the same challenge.

Executable Script instead of save as python (.py)

This page helped me: https://github.com/jupyter/notebook/issues/7079

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

79217217

Date: 2024-11-23 05:38:01
Score: 1
Natty:
Report link

you can import cookie like this

import { cookies } from "next/headers";

and after that you should use set method from cookie which you have imported from next/headers like this :

cookies().set('name of token', yourtoken ,  { httpOnly: true })

and then return your token

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

79217211

Date: 2024-11-23 05:36:01
Score: 0.5
Natty:
Report link

I removed the node_modules directory and reinstalled it, which worked.

Execute this command in your project root

sudo rm -rf ./node_modules
npm install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: ORHAN ERDAY

79217208

Date: 2024-11-23 05:35:00
Score: 1.5
Natty:
Report link

How to filter model views and retrieve data in the embedded Tandem Viewer?

After successfully initializing and starting the Autodesk Tandem Viewer, I can load and display the entire model. Based on a previous REST API call and user selection, I receive a twinId and a viewId.

Question 1: How can I display only the view (associated with the sViewId), not the entire model?

Question 2: How can I retrieve the data associated with the view (e.g., like the inventory table shown in the Tandem Viewer)?

Below is the relevant part of my current implementation:

displayFacility: function (sTwin, sViewId) {
  const app = this.oApp;
  return new Promise((resolve, reject) => {
    app.getCurrentTeamsFacilities()
      .then((facilitiesSharedWithMe) => {
        app.getUsersFacilities()
          .then((myFacilities) => {
            const aFacilities = [].concat(facilitiesSharedWithMe, myFacilities);
            const matchingFacility = aFacilities.find(facility => facility.twinId === sTwin);
            if (!matchingFacility) {
              const msg = `Facility with twinId '${sTwin}' not found.`;
              console.error(msg);
              reject(new Error(msg));
              return;
            }
            const currentFacility = app.displayFacility(matchingFacility, false, this.oViewer);
            resolve();
          });
      });
  });
}
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Peter

79217195

Date: 2024-11-23 05:18:57
Score: 3.5
Natty:
Report link

Directly use trim() to remove character from last of string

String a=1,2,3,4,5,;

I want to remove last ,

a.trim(); It'll get the task done

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pawan

79217174

Date: 2024-11-23 05:07:55
Score: 2
Natty:
Report link

Use:

if ((i + j) % 2 == 0)
    cout << "\033[47m\033[30m  \033[0m";
else
    cout << "  ";

See Colorizing text in the console with C++.

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

79217126

Date: 2024-11-23 04:46:52
Score: 2.5
Natty:
Report link

I don’t have experience with your immediate concern, but in case you or others reading this post missed it, Microsoft has posted this page, which is a gateway to migrating from Bing Enterprise Maps to Azure Maps, including a link to a migration guide.

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

79217119

Date: 2024-11-23 04:38:50
Score: 0.5
Natty:
Report link

1 hour and 2 dislikes, what a toxic community. I am glad gpt came out.

Anyway, I managed to use voice meeter as a fake microphone input. This way, I stream audio into a virtual cable (the one recorded by ffmpeg) and this virtual cable routes information to my actual headset -- so I can simultanously listen to it while recording it with ffmpeg. I am calling it from C++ as:

void startVideoRecording(std::string image_name) {
std::string ffmpegCommand = 
    "ffmpeg -f gdigrab -framerate 30 -i desktop -f dshow -i audio=\"Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)\" "
    "-c:v libx264 -preset veryfast -s 640x480 -pix_fmt yuv420p -acodec aac " + image_name;
std::system(ffmpegCommand.c_str());

}

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

79217115

Date: 2024-11-23 04:36:49
Score: 1.5
Natty:
Report link

If you define the second Curve Loop similar to the first one, you will have desired result. Namely, change the Curve Loop(2) = {12, 3, 5, -6, 7, 8}; to the Curve Loop(2) = {-6,5,3,12,8,7};.

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

79217111

Date: 2024-11-23 04:35:48
Score: 4.5
Natty:
Report link

I am having some problems. I am using React Native with Firebase and the getRedirectResult(auth) is consistently returning null even though I have already signed in with the google provider. I think it is because the page is doing a full reload?

 const provider = new GoogleAuthProvider();
    try {
      await signInWithRedirect(auth, provider)
      const result = await getRedirectResult(auth);
      if (result) {
        router.push('/HomeScreen');
      }
    } catch (error: any) {
        console.error(error);
    }

This is my code which doesnt work. Please help!

Reasons:
  • Blacklisted phrase (1): doesnt work
  • RegEx Blacklisted phrase (3): Please help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: clara

79217108

Date: 2024-11-23 04:29:47
Score: 2.5
Natty:
Report link

had the same error

turned out that my app is re-requesting (re-fetching) automatically while the search query is empty

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yousif AL Badri

79217092

Date: 2024-11-23 04:08:44
Score: 0.5
Natty:
Report link

vector<?> is not in the global namespace. It is in the std namespace, and unless you want to use usings, you are going to have to qualify all references to it. Simply replace all instances of vector<?> that do not have a std:: prefix (such as the one at line 15) with std::vector<?> and that particular error should go away.

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

79217077

Date: 2024-11-23 03:45:40
Score: 2.5
Natty:
Report link

padding-left: 15px; /* Adds padding */

box-sizing: border-box; /* Ensures padding doesn't increase the total width */

add this lines to .sections class

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

79217069

Date: 2024-11-23 03:33:38
Score: 1.5
Natty:
Report link

Source: How to Manage .Net Tools

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

79217068

Date: 2024-11-23 03:33:38
Score: 4.5
Natty: 6.5
Report link

I am using gitlab ci to build the project like that to the google appengine, so how can we override the gitlab variable on application.yml. Many thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): how can we
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nin Tran

79217039

Date: 2024-11-23 02:54:31
Score: 0.5
Natty:
Report link

The issue you’re encountering—where your Python application processes XML files correctly when run standalone but raises an “expecting an int” exception in Visual Studio Code (VS Code)—could stem from several factors. Let’s explore potential causes and solutions:

  1. Environment Differences: • Python Interpreter: Ensure that VS Code is configured to use the same Python interpreter as your standalone environment. Differences in interpreter versions or environments can lead to discrepancies in behavior. • Dependencies: Verify that all necessary libraries and modules are installed and consistent across both environments. Missing or mismatched dependencies can cause unexpected errors.

  2. Exception Handling and Debugging: • Detailed Logging: Enhance your exception handling to log detailed error messages, including stack traces. This can help pinpoint where the “expecting an int” exception originates. • Isolated Testing: Create minimal test cases that replicate the issue. This approach can help isolate the problematic code and determine if the issue is specific to VS Code.

  3. VS Code Configuration: • Extensions: Disable unnecessary extensions that might interfere with your Python environment. Some extensions can cause conflicts or unexpected behavior. • Settings: Review your VS Code settings, especially those related to Python and debugging, to ensure they align with your standalone environment.

  4. XML Parsing Considerations: • Parser Behavior: Different XML parsers may handle data types differently. Ensure that the parser you’re using is consistent across environments and that it correctly interprets the XML data types. • Data Validation: Implement validation checks to ensure that the XML data conforms to expected formats and types before processing.

  5. External Resources: • Similar issues have been discussed in the developer community. For instance, a Stack Overflow thread addresses exceptions encountered when parsing XML using lxml in Python. 

By systematically examining these areas, you can identify and resolve the discrepancies between your standalone script and its execution within VS Code.

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

79217038

Date: 2024-11-23 02:53:30
Score: 1
Natty:
Report link

nslookup <your-azure-config-endpoint>.azconfig.io run this command inside your VM to check the connectivity to your service endpoint. If it is fail you need to check your DNS settings. And check your Virtual machine NSG rules whether it blocking your request or not.

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

79217037

Date: 2024-11-23 02:53:30
Score: 4
Natty: 4.5
Report link

Do you execute the command php artisan storage:link ?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Trance Code

79217023

Date: 2024-11-23 02:40:27
Score: 3.5
Natty:
Report link

If you're open to using a service for this, you can try https://chatter-box.io/

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

79217022

Date: 2024-11-23 02:37:27
Score: 1.5
Natty:
Report link

You can try this way:

  1. right click on file .py, click on the arrow at "Open with"
  2. click on "choose another app"
  3. choose spyder 6 and tick on option always use this app for .py file
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hoàng Trần Văn

79217021

Date: 2024-11-23 02:37:27
Score: 2
Natty:
Report link

I am hitting this issue. CGI::Application with a Session plugin. Every request returns the same CGISESSID to different clients. I am running the latest versions of perl and (Fast)CGI.

see https://rt.cpan.org/Ticket/Display.html?id=17541

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

79217016

Date: 2024-11-23 02:31:26
Score: 0.5
Natty:
Report link

No, you are not right. The documentation on readonly struct is perfectly correct. Your question contains a broken link, the correct URL of this documentation page and section is this.

The explanation is pretty simple. Consider this example:

    readonly struct A {
        internal A(int first, string second) { First = first; Second = second; }
        internal readonly int First { get; init; }
        internal readonly string Second { get; init; }
    }

    static class ReadonlyUsage {
        static A value = new(0, "original value");
        internal static void Demo() {
            A a = new(1, "constant value");
            //a.First = 12; // will fail to compile
            a = new(2, "another value");
            // this is mutable:
            value = new(3, "one more value");
            //value.First = 13; // will fail to compile
            // still mutable:
            value = new(4, "How much longer?!");
        }
    }

What is mutable here? Nothing except ReadonlyUsage.value, and it makes ReadonlyUsage also mutable. It has nothing to do with struct A — it is immutable. Exactly as System.String.

Let's see: what about the assignment to A a? Does this assignment make ReadonlyUsage mutable? No. You assign a new value (and struct A is a value type) to a stack variable. It exists only in the stack and will be removed after the exit of a current stack frame. The stack does not belong to the class, it belongs to the thread calling ReadonlyUsage.Demo. The assignment does not modify anything in the Demo class if it was an instance class. We simply create a new struct A instance and never modify any of the already existing instances, that's why it is called immutable.

Now, what about the assignment to ReadonlyUsage.value? It is possible, because ReadonlyUsage is mutable. Again, we create new instances of struct A and never modify any of the already existing instances.

How to prevent the assignment to ReadonlyUsage.value? Easy: make it readonly, too:

static readonly A value = new(0, "original value");

That's it. I hope the misunderstanding is dismissed. Will you accept the answer then? If not, please ask further questions.

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79217006

Date: 2024-11-23 02:22:24
Score: 1
Natty:
Report link

Try this

Step 1: Go to Settings

Step 2: Click 'Apps'

Step 3: Click on 'Defaults apps'

Step 4: Click 'Choose default apps by file type'

Step 5: Scroll down to '.py' file types

Step 6: Click on 'Choose a default' if there is no default app, otherwise click the current default app and choose 'spyder'.

Done!

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anele Nkayi Aceoroal

79216998

Date: 2024-11-23 02:11:22
Score: 4
Natty: 6
Report link

notebook.output.scrolling is instantiated when there's some overflow; but i think the overflow is related to text lines.

How do i collapse for scrolling a cell with tons of figures?

Reasons:
  • Blacklisted phrase (1): How do i
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Brett Buzzanga

79216993

Date: 2024-11-23 02:05:21
Score: 3
Natty:
Report link

I want to leave this solution here for anyone trying to add the pin and show the actual place card with name and details (instead of just a pin with coordinates):

if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) {
    let encodedName = self.location.name.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
    let googleMapsURL = "comgooglemaps://?q=\(encodedName)&center=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)&views=satellite&zoom=15"
    UIApplication.shared.open(URL(string: googleMapsURL)!, options: [:], completionHandler: nil)
} else {
    print("Can't use comgooglemaps://")
}

This works perfectly if there's only one place with that specific name. Unfortunately, if there are multiple places with the same name (like if there's a bus station right next to your location), it will show a list of all matching places. I haven't found a way to only get the wanted place, even if I use it's ID.

Note: This solution requires the place name (location.name) in addition to the coordinates.

If anyone has a better solution that can handle multiple places with the same name, please share it in the comments as I'm also looking for one!

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fran.stante

79216990

Date: 2024-11-23 02:02:21
Score: 1.5
Natty:
Report link

If your PHP is running through a proxy like PHP-FPM, the proxy might report a timeout if the underlying PHP process is halted by the debugger. In that case you would still be able to debug and run the code line by line, but the output would never reach the proxy and the client of the request. Perhaps increasing timeout values somewhere in PHP-FPM configuration might help.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sinus the Tentacular

79216979

Date: 2024-11-23 01:52:18
Score: 2
Natty:
Report link

I am stuck at this issue now with AS Ladybug 2.1.

I did extensive search and did not find a solution. Some poster got rid of this issue but none worked in my case. And a few posted that the button does not have to be MaterialButton.

Here is the error message I had:

FAILURE: Build failed with an exception.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed com.bignerdranch.android.geoquiz.app-mergeDebugResources-43:/layout/activity_main.xml:49: error: attribute iconGravity (aka com.bignerdranch.android.geoquiz:iconGravity) not found. error: failed linking file resources.

Android resource linking failed com.bignerdranch.android.geoquiz.app-mergeDebugResources-43:/layout/activity_main.xml:49: error: attribute iconGravity (aka com.bignerdranch.android.geoquiz:iconGravity) not found. error: failed linking file resources.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andios

79216973

Date: 2024-11-23 01:48:17
Score: 0.5
Natty:
Report link

surely you can Depends in function get_user_token, but you should get the header by Request

def get_user_token(request: Request):
    x_user_token = request.headers.get('x_user_token')
    return return 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RockyDon

79216959

Date: 2024-11-23 01:31:14
Score: 1
Natty:
Report link

I would personally use ngOnChanges as a solution. With the set input function, you would need to create a variable like #_username and validate whether the variable has actually changed or not. Otherwise, you could end up in a loop or trigger the ExpressionChangedAfterItHasBeenChecked error. But I wonder, couldn't the parent component update its signal? This way, you would avoid having an input 'username' in your component and instead receive the signal directly in a computed property, making your component more independent and clean.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lucas Araujo

79216938

Date: 2024-11-23 01:14:10
Score: 2
Natty:
Report link

I solved this problem by downgrading Typescript version from 5.x.x to 4.x.x.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 신동혁

79216936

Date: 2024-11-23 01:12:10
Score: 2
Natty:
Report link

After looking into it further I found the following Reddit post which encounters a similar issue and uses keyboard.read_event(suppress=True). This prevents the event from being propagated further to the input().

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

79216926

Date: 2024-11-23 01:01:08
Score: 1
Natty:
Report link

Here is how you could pass the post using state.

<Link to={{pathname: `/blog/${post.id}`}} state={{post: post}}>Read More...</Link>

To access it from the destination component:

import { useLocation } from "react-router-dom";

const location = useLocation();
console.log(location.state.post)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ALFRED OKORONKWO

79216925

Date: 2024-11-23 01:00:08
Score: 2
Natty:
Report link

I've been having this same issue recently and it's driving me mad.

macOS Sequoia Version 15.1 python 3.9.6 64bit vscode insiders 1.96.0-insider (Universal)

Extensions: Python (microsoft) - rolled back to 2024.14.0 Pylance Python debugger github copilot github copilot chat

Read countless threads trying to find others with the same issue, trying all recommended solutions but no luck.

Your issue sounds identical to mine, running any more than a few selected lines of code at a time results in the output to terminal freezing up while executing the code, only running a few lines before getting stuck/frozen halfway through running a random line (depending on where I start the selection from).

It seems as though the code WILL run if I go line by line but in a file with 100+ lines this is not ideal.

This functionality was working fine before and something has broken it but I cannot for the life of me figure out what.

The only other major change to my computer recently was upgrading the OS to Sequoia, so i will likely try that next but was avoiding having to revert OS.

example of code stopping halfway through line selection

Reasons:
  • Blacklisted phrase (1): no luck
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tim V

79216922

Date: 2024-11-23 00:56:07
Score: 1
Natty:
Report link
cd ~/.m2 && find . -name "_*.repositories" | xargs rm -rf 

works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: yuming

79216911

Date: 2024-11-23 00:45:05
Score: 2.5
Natty:
Report link

/*!

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: kang seller

79216904

Date: 2024-11-23 00:27:02
Score: 0.5
Natty:
Report link

Like this:

const var1 = 'dynFuncName';
const obj = { [var1]() { throw 'error' } };
// or const obj = { [var1]: function() { throw 'error' } };
// or const obj = { [var1]: () => { throw 'error' } };

const fn = obj[var1];
fn();

Results in the following console error message:

VM83:5 Uncaught error
dynFuncName @   VM83:5
(anonymous) @   VM83:9
(anonymous) @   VM83:10

As per:

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

79216901

Date: 2024-11-23 00:24:02
Score: 0.5
Natty:
Report link

  cy.get('#warn-dialog-submit')
        .should(()=>{}) //this disable the failure if the element does not exist
        .then(($el) =>{
            if($el && $el.length){
               cy.wrap($el).click()
            }
        })


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

79216891

Date: 2024-11-23 00:16:00
Score: 1
Natty:
Report link

There is a property on the sprite batch for a scissor rectangle, use it to specify the area which it is allowed to draw within.

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

79216888

Date: 2024-11-23 00:13:59
Score: 0.5
Natty:
Report link

I finally made it back to this project and found a solution. Here are the arguments to ffmpeg I ended up using:

I believe -x264opts bluray-compat=1 was the key.

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

79216886

Date: 2024-11-23 00:10:59
Score: 2.5
Natty:
Report link

To upload data, send a GET request to https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php

A full example URL: https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=KCASANFR5&PASSWORD=XXXXXX&dateutc=2000-01-01+10%3A32%3A35&winddir=230&windspeedmph=12&windgustmph=12&tempf=70&rainin=0&baromin=29.1&dewptf=68.2&humidity=90&weather=&clouds=&softwaretype=vws%20versionxx&action=updateraw

The minimum required query parameters are:

Documentation for available parameters is at https://support.weather.com/s/article/PWS-Upload-Protocol

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

79216883

Date: 2024-11-23 00:04:57
Score: 5.5
Natty: 5
Report link

Konrad: Thank You so much. THX

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Blacklisted phrase (1): THX
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28440658

79216880

Date: 2024-11-23 00:03:57
Score: 2.5
Natty:
Report link

Thanks for letting us know, we recently added support for WebJobs in Linux and it is in Preview at the moment.

We will make sure the 'PythonScriptHost' works well for GA.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joaquín Vano

79216874

Date: 2024-11-23 00:00:56
Score: 3.5
Natty:
Report link

I tried your code, and after setting CommitChanges = true in the Customization Project Editor, I was able to get a filtered list by warehouse.

CommitChangeTrue

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

79216872

Date: 2024-11-22 23:57:56
Score: 1
Natty:
Report link

Simple way to know if loading vs not found in Vue:

const item = useObservable(Dexie.liveQuery(() => db.items.get(id.value).then(o => o || null)))

// Handle not found (undefined = still loading, null = not found)
watch(item, (newItem) => {
  if (newItem === null) {
    // HANDLE NOT FOUND
  }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter Coppinger

79216862

Date: 2024-11-22 23:50:54
Score: 4.5
Natty:
Report link

Found the answer https://github.com/vercel/next.js/discussions/52336 is was using pages router instead of app router

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hugo Del-Negro

79216847

Date: 2024-11-22 23:40:51
Score: 2.5
Natty:
Report link

So after troubleshooting a little more I was able to finally get it working. Turns out it was just some user-error on my part. In the reddit script I made three major errors, in my meme function I simply had an extra space between "def" and the function. Secondly I made some indention errors with the if statements inside the meme function. Then lastly I misspelled the "posts_lists" variable when assigning it to the "random_post" variable later in the same block of code

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

79216845

Date: 2024-11-22 23:40:51
Score: 1
Natty:
Report link

The best way is to loop over all pixels and create a diff image. In your loop you subtract the lower color value from the higher. That means black if the pixels are identical. So you should use 255 - pixelcolor and let it be the pixel value in the diff vector and when you are done, you save it as a png. I just made such a program in c++ and i used the windows imaging component to create raw byte vectors for both files and then looped over every pixel and every color to create a raw byte array with values. It reveals how jpegmini works but you have to multiply the close to zero values that you get. Quite revealing

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

79216842

Date: 2024-11-22 23:39:50
Score: 6 🚩
Natty:
Report link

I think I found sometihing that my help me to get the results I want to have. https://overthere.co.uk/2012/07/29/using-qstyleditemdelegate-on-a-qtableview/

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dag

79216828

Date: 2024-11-22 23:28:48
Score: 0.5
Natty:
Report link

Problem solved!

the problem was not using the correct name in my flyway.conf

flyway.url=jdbc:sqlserver://localhost:1433;databaseName=${DB_NAME};TrustServerCertificate=True;

this configuration was incorrect, and instead should have been:

flyway.url=jdbc:sqlserver://database:1433;databaseName=${DB_NAME};TrustServerCertificate=True;

I needed to use database from the docker-compose because thats what the database configuration was configured to use.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Marqueone

79216825

Date: 2024-11-22 23:27:47
Score: 0.5
Natty:
Report link

Like you mentionned it was a conflict with the plugin

mini.nvim When required : mini.indentscope.setup() which uses in line 226 :

 -- Which character to use for drawing scope indicator
 -- symbol = '╎',

That gave the dashed line in my previous examples.

My advertise is not to use both indent-blankline and mini.indentscope at the same time.

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

79216815

Date: 2024-11-22 23:18:46
Score: 2.5
Natty:
Report link

has somone it working in the rabbitmq version 4? For me it works acutaly only at Docker version rabbitmq:3.12.1-management

would be nice to use the latest one.

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

79216802

Date: 2024-11-22 23:11:44
Score: 3.5
Natty:
Report link

Did you check your middlewares and providers?

Use telescope for api requests debugging.

Try to use Cache

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Orhan Özyalçın

79216788

Date: 2024-11-22 23:04:43
Score: 2.5
Natty:
Report link

In order for this to work, you need a keytab file generated by your Domain Controller and your web server to send a WWW-Authenticate: Negotiate header to the client, so it sends a GSSAPI SPNEGO token (as outlined by @grawity_u1686)

This library django-auth-spnego should help you get started with and do the desired authentication for you. Disclaimer: I'm the maintainer.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • User mentioned (1): @grawity_u1686
  • Low reputation (1):
Posted by: alfonsrv

79216787

Date: 2024-11-22 23:03:43
Score: 1
Natty:
Report link

Based on the code provided, the command handler doesn't defer or reply in a timely manner, and the unknown interaction error is a common error to receive if you continue executing code and don't respond within the 3 seconds window it expects. I would add a defer/reply code set to your execution handler. See: https://discord.js.org/docs/packages/discord.js/14.16.3/CommandInteraction:Class

you can also see examples of how to reply and/or defer here: https://discordjs.guide/creating-your-bot/command-handling.html#executing-commands

In general, I would defer at the first line of the handler, do your handling, and then reply at the end.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: G-Force

79216770

Date: 2024-11-22 22:51:41
Score: 1.5
Natty:
Report link

Today, you can do:

[Flags]
public enum LongEnum : long
{
   ...
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: K Smith

79216765

Date: 2024-11-22 22:48:39
Score: 4.5
Natty: 4
Report link

Same issue as well with historical data. It is super shaky. not sure yet how to solve it, but Maybe writng a Script might help, instead using the formula.

There is as well sometimes the same issues using historical date (and time) when I changed the date to one day earlier it did work suddenly.

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Petra Samovski

79216757

Date: 2024-11-22 22:39:38
Score: 2
Natty:
Report link

I am trying to implement Arcgis with angular, everything is working fine map is displaying and layers are working until Item-Id is hardcoded (<arcgis-map item-id="sdfdfd43443433"...), but I want to assign "item-id" property dynamically, but it is not working correctly, not sure what am I missing here, here is the sample code


<arcgis-map [item-id]="itemId"></arcgis-map>
      OR
<arcgis-map item-id="{{itemId}}"></arcgis-map>

  @Component({
      selector: 'app-my-map',
      templateUrl: './my-map.component.html',
      styleUrls: ['./my-map.component.css']
    })
    export class MyMapComponent implements OnInit {
      itemId = 'YOUR_ITEM_ID'; // Replace with your actual item ID
    
      ngOnInit() {
      }
    }
Reasons:
  • Blacklisted phrase (1): I am trying to
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hari

79216756

Date: 2024-11-22 22:39:38
Score: 3.5
Natty:
Report link

CONNECTION_STRING= mongodb://[user_name]:[password]@127.0.0.1:27017/[Db_Name]?retryWrites=true&writeConcern=majority&authSource=admin

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Çağlar YILMAZ

79216748

Date: 2024-11-22 22:34:37
Score: 3.5
Natty:
Report link

Problem solved by adding the token : (action:posted_data:prog-info:0) as a value in this field

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

79216731

Date: 2024-11-22 22:24:34
Score: 2.5
Natty:
Report link

In Eclipse, under Run Configuration, you can show the command line Eclipse uses to run your program on the Dependencies tab.

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

79216727

Date: 2024-11-22 22:21:33
Score: 1
Natty:
Report link

I found a solution to get up-to-date data using the gcloud storage Python library, and it works effectively in "real time."

My guess is that using this approach, the gcloud storage library directly interacts with the Google Cloud Storage API instead of relying on file system synchronization through mounted volumes. This eliminates any potential caching or synchronization lag and ensures that the latest version of the data is always retrieved. I didn't expect such delays.

I'm keeping the post open because the question about delays and consistency when using mounted volumes in Cloud Run still stands. Not having high speed/consistency somehow kills some of the beauty of using the mounted volumes as local paths.

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

79216719

Date: 2024-11-22 22:17:33
Score: 3
Natty:
Report link

Guys they mean like when I give the first input and press enter the curser stays in the same line to take the next not moving to the next line, that's the point!

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

79216715

Date: 2024-11-22 22:13:31
Score: 6 🚩
Natty: 6
Report link

I have just downloaded Visual Studio 2022. I was previously using VS 2019. I have started a project to which I want to use a chart. Programs written with VS 2019 have the chart control in their toolboxes. I have started a new project in VS 2022 an there is no chart available. I've followed the advice in the first reply above to no avail.

What I am mystified is the chart is available in the older programs but not in the recent program. What do I have to do to get the chart control available?

Thanks, David.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have to do
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: David Snelling

79216710

Date: 2024-11-22 22:11:30
Score: 3.5
Natty:
Report link

Fetching everything from a collection.

Add collection names in list in the field section. Fetch that field data first. Then pass the field data to fetch the collection.

enter image description here

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

79216708

Date: 2024-11-22 22:11:30
Score: 0.5
Natty:
Report link

We were seeing the same thing. Maybe 5% of our videos did not have the maxres thumbnail. However, so far 100% of our videos have the standard resolution thumbnail, which is high enough resolution for our purposes, so we switched to that. That URL is mentioned in the answer from @android-enthusiast :

http://img.youtube.com/vi/<insert-youtube-video-id-here>/sddefault.jpg
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • User mentioned (1): @android-enthusiast
  • High reputation (-1):
Posted by: Eric Barr

79216701

Date: 2024-11-22 22:07:30
Score: 2.5
Natty:
Report link

I found a solution to my problem and wanted to post it here for anyone having a similar issue. Basically, I restructured the component by moving the logic out of the lifecycle hook and testing the new method directly.

Here is the new method:

  const onMountedHandlerAsync = async () => {
    applicationStore.updateShowSpinner(true);
    if (await disclosureStore.getDisclosuresListAsync()) {
      disclosures.value = disclosureStore.disclosures;
      if (
        disclosures.value.length > 0 &&
        disclosures.value.length === selectedDisclosures.value.length
      ) {
        emit('form-status-updated', true, null);
      }
      applicationStore.updateShowSpinner(false);
      goTo(0, { duration: 200, easing: 'linear' });
    }
  };

Here is the restructured lifecycle hook:

  onMounted(async () => {
    await onMountedHandlerAsync();
  });

Here is the unit test:

  it('should get disclosures from the disclosureStore and populates the component disclosures on the onMounted lifecycle', async () => {
    // Arrange
    const appStore = mockedStore(useApplicationStore);
    appStore.updateShowSpinner.mockImplementation(() => {});
    const disclosureStore = mockedStore(useDisclosureStore);
    disclosureStore.updateSelectedDisclosures.mockImplementation((selected: IDisclosure[]) => {
      const store = useDisclosureStore();
      store.$state.selectedDisclosures = selected;
    });
    disclosureStore.getDisclosuresListAsync.mockResolvedValue(true)
    disclosureStore.disclosures = [
      <IDisclosure>{
        id: 1,
        name: 'Disclosure 1',
        displayName: 'Disclosure 1',
        url: 'http://localhost/api/disclosures/disclosure-1',
      },
      <IDisclosure>{
        id: 2,
        name: 'Disclosure 2',
        displayName: 'Disclosure 2',
        url: 'http://localhost/api/disclosures/disclosure-2',
      },
      <IDisclosure>{
        id: 3,
        name: 'Disclosure 3',
        displayName: 'Disclosure 3',
        url: 'http://localhost/api/disclosures/disclosure-3',
      },
    ];
    wrapper.vm.selectedDisclosures = [
      <IDisclosure>{
        id: 1,
        name: 'Disclosure 1',
        displayName: 'Disclosure 1',
        url: 'http://localhost/api/disclosures/disclosure-1',
      },
      <IDisclosure>{
        id: 2,
        name: 'Disclosure 2',
        displayName: 'Disclosure 2',
        url: 'http://localhost/api/disclosures/disclosure-2',
      },
      <IDisclosure>{
        id: 3,
        name: 'Disclosure 3',
        displayName: 'Disclosure 3',
        url: 'http://localhost/api/disclosures/disclosure-3',
      },
    ];

    // Act
    await wrapper.vm.onMountedHandlerAsync();
    await flushPromises();

    const disclosures = wrapper.vm.disclosures;

    // Assert
    expect(disclosureStore.getDisclosuresListAsync).toHaveBeenCalled();
    expect(disclosures.length).equals(3)
  });
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having a similar issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Joe King

79216695

Date: 2024-11-22 22:06:29
Score: 0.5
Natty:
Report link

The last parameter of glDrawElements expects a pointer to an array of indices. Since you supply 0 (a NULL pointer), it will take the indices from the buffer bound to GL_ELEMENT_ARRAY_BUFFER. However, the binding of this buffer is not stored in the Vertex Array Object, so you will need to bind ebo before every render.

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

79216693

Date: 2024-11-22 22:05:29
Score: 3.5
Natty:
Report link

Referring to https://stackoverflow.com/a/78466486/13059668

If you want to use CmakeLists add the following line after add_executable

target_link_libraries(${PROJECT_NAME} PRIVATE "-lstdc++exp")
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michael

79216687

Date: 2024-11-22 22:03:29
Score: 2
Natty:
Report link

This simple expression worked for me

=B2.URL

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

79216673

Date: 2024-11-22 21:59:27
Score: 1.5
Natty:
Report link

Wherever you define {{ ownerList }} you should use {{ ownerList | raw }} instead.

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

79216671

Date: 2024-11-22 21:58:27
Score: 2.5
Natty:
Report link

that's happening because "hanging-balls" div has no height at all. So in reality you are not hovering to the balls. you could just give it a fixed height or 100%. I'm pretty sure that's the problem

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

79216667

Date: 2024-11-22 21:56:27
Score: 1
Natty:
Report link

The issue arises because sklearn.set_config(transform_output="pandas") is thread-local and does not persist across different threads, such as those used by Flask for handling requests. To fix this, explicitly set the configuration inside the request context by calling sklearn.set_config(transform_output="pandas") at the start of the predict() route. This ensures the pipeline uses the correct configuration for pandas output during the request handling process.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: سيد جمال Sayed gamal

79216664

Date: 2024-11-22 21:54:26
Score: 1.5
Natty:
Report link

I have solved this problem myself. After reading the client socket.io installation page I noticed that to use with NPM you need to use a bundler such as Webpack or Browserify.

I have started using Webpack now and it works a treat, I was avoiding it for a while because I am new to full stack development and wanted to keep it barebones. There was no mention of having to use a bundler on the typescript socket.io page.

Reasons:
  • Whitelisted phrase (-2): I have solved
  • RegEx Blacklisted phrase (1.5): I am new
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Scarmez

79216663

Date: 2024-11-22 21:53:26
Score: 2.5
Natty:
Report link

figured it by ChatGpt. The modal needs to be outside map function and i needed to make one more useState and with each click on the button that opens modal the setstate sets the current item in the map array as the one that needs to be shown in the modal. otherwise if you click on modal when its inside map function the state sets to true for all open modal buttons in the list

Reasons:
  • Blacklisted phrase (0.5): i need
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Danko Grgić

79216660

Date: 2024-11-22 21:48:25
Score: 1.5
Natty:
Report link

In the Actions section of the alarm, you can set up notifications for both:

• Alarm state (Unhealthy): Notify you when the domain goes down.

• OK state (Healthy): Notify you when the domain becomes reachable again.

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html

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

79216655

Date: 2024-11-22 21:45:24
Score: 4
Natty: 4
Report link

File is protect don't access how to this solve.

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

79216654

Date: 2024-11-22 21:45:24
Score: 3
Natty:
Report link

It seems to be a bug in 23.2.0 and 23.3.0, it works fine on 23.1.0 for me.

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

79216651

Date: 2024-11-22 21:44:23
Score: 1.5
Natty:
Report link

Apparently, it's not possible to do such a function in Move since it requires the witness (user who executes the transaction). So (I repeat, apparently) the only way is to have the user deploy a Coin bytecode in the frontend.

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

79216646

Date: 2024-11-22 21:42:23
Score: 1
Natty:
Report link

Few options can be tried to reduce the startup time of Glue jobs

Glue Job Configuration:

[As confirmed in comments changing the worker type has improved the startup time]

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

79216639

Date: 2024-11-22 21:39:22
Score: 1
Natty:
Report link

Vijay Raghavan Aravamudhan's answer worked for me. I'm just starting to learn, so I had no idea there were different terminals in Visual Studio Code.

Here are the options which I found when clicking the arrow highlighted (and choosing "bash" solved the problem for me).Options for various terminals.

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

79216630

Date: 2024-11-22 21:36:22
Score: 1.5
Natty:
Report link

I'm brand new to Stable Diffusion. I'm using it to generate some location pictures for an RPG campaign right now (personal use, not for publishing).

Currently using DreamshaperXL Turbo to generate at 1344x768 with DPM++ SDE Karras, 8 sampling steps, following by HiResFix using R-ESRGAN 4x+ upscaling to 2016x1152 with 0.3 denoising and 15 HiRes steps. (Feel free to tell me if any of this is totally wrong and not what I should be using)

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

79216628

Date: 2024-11-22 21:36:22
Score: 0.5
Natty:
Report link

Ok, I was able to use @Miao Tian-MSFT's answer to get the token I needed.

$accessToken = az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv

However, I also later discovered the piece I was missing - on the Agent job, be sure to check the "Allow scripts to access the OAuth token" box. That's what provides the $System.AccessToken to the scripts (making the above call unnecessary).

enter image description here

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • User mentioned (1): @Miao
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: end-user

79216619

Date: 2024-11-22 21:32:21
Score: 0.5
Natty:
Report link

Solved with this code...

var events = [];
for (var i=0; i < calendarCount; i++) {
           
            events.push({
            title: calendarObject[i].title,
            start: new Date(calendarObject[i].startDate * 1000),
            end: new Date(calendarObject[i].endDate * 1000),
            allDay: calendarObject[i].isAllDay,
            color: calendarObject[i].color
            }); 

}

and then 'events: events' in the calendar setup

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

79216615

Date: 2024-11-22 21:31:20
Score: 0.5
Natty:
Report link

In my Program.cs file I added:

builder.Services.Configure<CookieAuthenticationOptions>(CookieAuthenticationDefaults.AuthenticationScheme, options =>
{
    options.AccessDeniedPath = "/access-denied";
});

I added my custom AccessDenied.razor component/page and using

@attribute [Authorize(Roles = "Admin,Standard")]

at the top of pages or the AuthorizeView tag in the pages

<CascadingAuthenticationState>
                <AuthorizeView Policy="RequireValidUser" Context="ImpersonationComponent">
                    <Authorized>
                        <Login />
                    </Authorized>
                </AuthorizeView>
            </CascadingAuthenticationState>

I was able to get role based authorization working.

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

79216614

Date: 2024-11-22 21:31:20
Score: 1.5
Natty:
Report link
  1. Consider using the region header if you are working in a non-USA hub.
  2. Keep in mind that the User-id should be the admin id not the user you are trying to add.
  3. Try to add only one user using this call: https://aps.autodesk.com/en/docs/acc/v1/reference/http/admin-projects-project-Id-users-POST/ and see if that works… I am maybe not the professional one to answer, but I have tried too many things in the last couple of weeks so I hope my tips would help you.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pierre Wehbi

79216600

Date: 2024-11-22 21:26:19
Score: 1
Natty:
Report link
SELECT 
    element.rulegroupid,
    element.terminatingrule.ruleid AS ruleid,
    element.terminatingrule.action AS action,
    action,
    httprequest.clientip as IP

FROM 
    waf_logs
CROSS JOIN UNNEST(rulegrouplist) AS t(element)
WHERE action = 'BLOCK'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rafael Carreiro

79216594

Date: 2024-11-22 21:25:18
Score: 6 🚩
Natty: 5
Report link

Excelente respuesta @MikeMopo funciono perfecto, me ha salvado el día después de horas de investigación, muchas gracias

Reasons:
  • Blacklisted phrase (2): gracias
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @MikeMopo
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pixel347

79216585

Date: 2024-11-22 21:20:17
Score: 1
Natty:
Report link

I was faced with this same exact problem. I'm going to guess you and I were probably doing the same application challenge!

Using requests, I was able to pull down the raw HTML response from calling the page, then using BeautifulSoup I was able to turn it into a workable, parse-able object:

# Make request
html_response = requests.get(url=url)

# Parse html into a BeautifulSoup object
soup = BeautifulSoup(html_response.text, 'html.parser')

# Collect and return the first table (assuming the first table is what you want)
return soup.find('table')

From there, you can parse the table more precisely to pull out the data you want. Here are a couple examples of how you can work with a BeautifulSoup table to get what you need:

I'm refraining from copy-pasting my exact solution because I know others will use this to fill out the same job application challenge, but this gets you everything you need as long as you have a Python foundation.

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

79216571

Date: 2024-11-22 21:13:15
Score: 3.5
Natty:
Report link

I was facing the same issue on Windows, the issue was not really about the IDE. It was about the JAVA JDK was not installed properly, check following link:

https://www.youtube.com/watch?v=SQykK40fFds&ab_channel=GeekyScript

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sherif salah

79216569

Date: 2024-11-22 21:13:15
Score: 2.5
Natty:
Report link

Have you tried to disable antivirus, or add exception (Avast is making same problem to me)

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Digitalis Auroris

79216546

Date: 2024-11-22 21:02:13
Score: 1
Natty:
Report link

If you add the following line to your startup profile, the error goes away permanently.

Add-Type -Path "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.IO.Compression.dll" -ReferencedAssemblies System.IO.Compression

To get the location of your startup profile, type $profile while in PowerShell or PowerShell ISE. For ISE,it will look like Powershell_ise.ps1

For some weird reason, even though you put that at the top of the script where you're going to use system.io.compression, it doesn't see it unless you highlight that line and run selection.

By putting the line in your startup profile, it loads the assembly, and your script will run.

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