79203994

Date: 2024-11-19 15:22:31
Score: 1
Natty:
Report link

As the helper message said, are you sure django is installed ? do you use virtualenv ? You can verify if django installed by :

django-admin --version

If you are using virtualenv make sure it has been activated. Otherwise, if django is installed but still not detected, try to add python libraries to PATH :

export PYTHONPATH=${PYTHONPATH}:/Installed/library/Python/to/site-packages
source ~/.bash_profile
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: khalidgt

79203981

Date: 2024-11-19 15:20:30
Score: 3
Natty:
Report link

In case anyone is still having problems with this, I found when I was not signed into chrome, the permission check did not work correctly, leading to no video. If you're using Visual Studio, the default debug Chrome will not have a user. Logging in, incognito, or switching to a different browser seems to work.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Travis E Miller

79203979

Date: 2024-11-19 15:19:29
Score: 7.5 🚩
Natty:
Report link

CopyArgumentError - [Xcodeproj] Unable to find compatibility version string for object version 70. I am getting this error when trying to use it. Anyone know how to fix it?

CocoaPods Error: Unable to find compatibility version string for object version '70' after adding Share Extension

Reasons:
  • Blacklisted phrase (1): I am getting this error
  • RegEx Blacklisted phrase (1.5): how to fix it?
  • RegEx Blacklisted phrase (1): I am getting this error
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Edon Freiner

79203977

Date: 2024-11-19 15:18:29
Score: 1.5
Natty:
Report link

Thanks for your question! Such a channel is not (to our knowledge) physically possible, because this additional Hilbert space must have always existed.

It is not that your channel creates this Hilbert space, but that it maps a state which was originally confined to a subspace (i.e. $H_A$) to the entire space (i.e. $H_A\otimes H_B$).

Therefore, to construct this channel, represent your original state in this new, enlarged space (essentially by adding zeros), and define your Kraus operators over the same.

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

79203976

Date: 2024-11-19 15:17:29
Score: 1
Natty:
Report link

Answer: many of the functions defined in windows.h are actually macros that resolve to some related name with a suffix. So windows.h gets very unhappy if you try to redefine its macros, but it works fine to undefined them afterward:

#include <windows.h> 
#include <mmsystem.h>
#undef GetCursor

Worked like a charm.

Reasons:
  • Blacklisted phrase (1): Worked like a charm
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Joymaker

79203968

Date: 2024-11-19 15:16:28
Score: 1
Natty:
Report link

I had the same issue when I had leftover <%= javascript_include_tag("turbo", type: "module") %> directives in my code.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Irina Lindt

79203955

Date: 2024-11-19 15:14:27
Score: 4.5
Natty:
Report link

Answering here, incase any one else facing the same issue.

  1. The HttpSession was not getting invalidated cause the JSESSIONID was not coming in the logout request due to the SameSite changes happened. So need to configure this.
  2. The Logout response was not being sent cause of the X-Frame-Options: Deny set by the spring security. https://docs.spring.io/spring-security/reference/features/exploits/headers.html#headers-frame-options so cause of this it was not setting the responses in my case.
Reasons:
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sasirekha Kumaran

79203950

Date: 2024-11-19 15:11:26
Score: 4
Natty:
Report link

CockroachDB has trigger support in public preview starting next week (Nov 2024). https://www.cockroachlabs.com/docs/v24.3/triggers.html

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

79203939

Date: 2024-11-19 15:07:25
Score: 1
Natty:
Report link

Converting a website into a mobile application can be done efficiently using several approaches. The choice depends on the complexity of the website, your target audience, and the desired features of the app.

  1. Progressive Web App (PWA)

A PWA is a mobile-friendly version of your website that behaves like an app when accessed from mobile devices.

Optimize your website for mobile responsiveness. Use service workers to enable offline functionality. Add a manifest.json file to define the app's name, icon, and display properties. Deploy and test the PWA.

Advantages: Works across all platforms without needing separate development for iOS or Android.

This is one of the method we use.

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

79203934

Date: 2024-11-19 15:06:24
Score: 6.5 🚩
Natty: 5
Report link

I am also facing the same issue, i think the issue is with sourcemapping. i saw in some post mapping the launch.json to output directory ( dist )

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: abhishek hegde

79203929

Date: 2024-11-19 15:05:23
Score: 4.5
Natty:
Report link

Does this problem still persist in material date picker if so,

Ngmodel binding is not working here in your example any idea?

Reasons:
  • Blacklisted phrase (1): any idea?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: Sharad

79203924

Date: 2024-11-19 15:04:23
Score: 1
Natty:
Report link

validateRecord routine just allows you to raise exceptions/errors or override. Also you can try to change the content of local fields, but it will not allow you to change CORE records. As it is mentioned in previous answer, you need to implement defaultFieldValues method to make changes on record. 2 important point with respect L3 Java Extensibility:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Paúl Pasquel

79203922

Date: 2024-11-19 15:02:22
Score: 1.5
Natty:
Report link

Asked for help on the streamlit forums and got a great answer: https://discuss.streamlit.io/t/mocking-out-a-postgres-connection-in-session-state-with-pytest-monkeypatch/85907/9

The gist is to organize the session into multiple classes instead of a nested one.

class FakeSession:
    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_value, traceback):
        return None

    def execute(self, statement):
        return [[100]]

    def commit(self):
        pass


class FakeConnection:
    session = FakeSession()


class FakeSessionState:
    conn = FakeConnection()


class Test_Burger:
    def test_flip_burger(self, monkeypatch):
        fake_session_state = FakeSessionState()
        monkeypatch.setattr(st, "session_state", fake_session_state)
        borger = Burger()
        assert borger.flip_burger() == ["100"]
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lunchbox7804

79203910

Date: 2024-11-19 14:59:22
Score: 3
Natty:
Report link

@TargetApi(23) void solicitarPermisos(){ if (ContextCompat.checkSelfPermission(this,permiso) != PackageManager.PERMISSION_GRANTED) { // Should we show an explanation? if (shouldShowRequestPermissionRationale( Manifest.permission.READ_EXTERNAL_STORAGE)) { // Explain to the user why we need to read the contacts } requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); // MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE is an // app-defined int constant that should be quite unique return; } }

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Epic LL

79203899

Date: 2024-11-19 14:55:20
Score: 6 🚩
Natty: 6.5
Report link

I have a question over the same. where do I declare the $sheet variable so that iam able to call the setcolumn method. like $sheet=? where do I do this?

Reasons:
  • Blacklisted phrase (1.5): I have a question
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jay

79203893

Date: 2024-11-19 14:54:20
Score: 0.5
Natty:
Report link

Try this

Path path = Paths.get("your path");
Files.createDirectories(path.getParent());
Files.createFile(path);
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Piroman

79203892

Date: 2024-11-19 14:54:20
Score: 2.5
Natty:
Report link

You can resolve this by extending the Window interface to include cookieStore. Create a declaration file (e.g., window.d.ts) and add declare global { interface Window { cookieStore: CookieStore; } }. This will let TypeScript recognize the API and compile correctly.

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

79203890

Date: 2024-11-19 14:53:19
Score: 0.5
Natty:
Report link
var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="0.6cm" height="0.6cm"><g style="fill-opacity:0.7; stroke:black; stroke-width:0.2em;"><circle cx="0.3cm" cy="0.3cm" r="9" style="fill:yellow;" transform="translate(0,0)"/></g></svg>';
      svg = btoa(svg);

An example of circle created in javascript

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

79203887

Date: 2024-11-19 14:52:19
Score: 1.5
Natty:
Report link

See: Deploying Angular SSR (v17, 18 & 19)Websites on AWS Lambda

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

79203878

Date: 2024-11-19 14:50:19
Score: 2
Natty:
Report link

The same question asked by the same person, but the answer accepted is different, it is good to share it here too. Here: https://serverfault.com/questions/487006/redirecting-all-sub-pages-to-another-subpage-using-htaccess?newreg=b825d1fee10b48cba7366e740c21b770

Please give credit to Laetitia on original post:

RedirectMatch 301 /answer-now/.* http://www.itdost.com/questions

I would add that if you need to rewrite multiple subsub /answer-now/Food/burger to http://www.itdost.com/questions/, you will need to add \/.* at the end.

RedirectMatch 301 /answer-now/.*\/.* http://www.itdost.com/questions
Reasons:
  • RegEx Blacklisted phrase (2.5): Please give
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: MaxiGui

79203873

Date: 2024-11-19 14:49:18
Score: 1
Natty:
Report link

I found the answer in this stackoverflow page In my case It worked by importing the module MatMenuModule in myCompoenent.modules.ts

import {MatMenuModule} from '@angular/material/menu';

@NgModule({
    imports: [
      MatMenuModule,
... ]
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): It worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nohaSan

79203869

Date: 2024-11-19 14:47:17
Score: 5.5
Natty:
Report link

This is frequently an issue with the file format. Is the icon an .ico file?

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

79203866

Date: 2024-11-19 14:46:17
Score: 1.5
Natty:
Report link

Why isn’t the Livewire component responding to the broadcasted event even though the event is being successfully received by the browser?

It may be a namespace issue, try adding a dot prefix to the event in the getListeners() function:

public function getListeners(): array
{
        return [
        "echo:marketplace-listings,.marketplace-listing-created" => 'refreshListings',
    ];
}

as explained here: Livewire not responding to Model Broadcast Events #4831

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (1):
Posted by: Gabriel

79203863

Date: 2024-11-19 14:46:17
Score: 3
Natty:
Report link

I Found an ugly way to solve that.

Doxygen Comment upon the function

Hover the Doxygen commented function

Maybe the @brief cause the issue.

Doxygen Comment Without @Brief

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

79203858

Date: 2024-11-19 14:43:17
Score: 2.5
Natty:
Report link

Move the pay action into the success part of loading the sound file, after changing this its working my end.

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

79203857

Date: 2024-11-19 14:43:17
Score: 0.5
Natty:
Report link

as i searched it seems that asComposeImageBitmap() is only available in iosMain module . so we should define separate files .

in commonMain:

@Composable
expect fun rememberBitmapFromBytes(bytes: ByteArray?):ImageBitmap?

in iosMain:

@Composable
actual fun rememberBitmapFromBytes(bytes: ByteArray?): ImageBitmap? {
    return remember(bytes) {
        if (bytes != null) {
            Bitmap.makeFromImage(Image.makeFromEncoded(bytes)).asComposeImageBitmap()
        } else {
            null
        }
    }
}

in androidMain:

@Composable
actual fun rememberBitmapFromBytes(bytes: ByteArray?): ImageBitmap? {
    return remember(bytes) {
        if (bytes != null) {
            BitmapFactory.decodeByteArray(bytes,0,bytes.size).asImageBitmap()
        } else {
            null
        }
    }
}

so the org.jetbrains.skiko can just be used in ios module

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

79203849

Date: 2024-11-19 14:40:16
Score: 2.5
Natty:
Report link

I suggest you using html2canvas library instead. It will make the screenshot only of the current window. You cannot do this via Screen Capture Api. https://html2canvas.hertzen.com/

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

79203842

Date: 2024-11-19 14:39:15
Score: 2.5
Natty:
Report link
   // I am having the same problem using tailwindCss with React currently.
    
    /I have an EJS Project I'm currently working on and I am using tailwindCss and It's working here's what the Tailwindconfig file looks like 
    
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./public/**/*.{js,css}",
    "./views/**/*.ejs",
    "./node_modules/tw-elements/js/**/*.js",
  ],
  darkMode: "class",
  plugins: [require("tw-elements/plugin.cjs")],
};

   //your Vscode might give you a suggestion to change to ES lint version , you can choose to ignore it or do it . It should work. Here's my postcss file config 

export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same problem
  • Low reputation (1):
Posted by: Okoro Daviz Ezichi

79203831

Date: 2024-11-19 14:35:14
Score: 1
Natty:
Report link

I discovered something after struggling with a similar issue where the git graph button in the source control panel went missing. In VSCode user settings, there is an option called SCM: Provider Count Badge. This was set to none.

The setting says "Controls the count badges on Source Control Provision headers. These headers appear in the Source Control view when there is more than one provider or when the SCM: Always Show Repositories setting is enabled, and in the Source Control Repositories view."

When I changed this from "None" to "Auto", the Git-Graph button showed up again within the source control menu to the left of the three dot 'more actions..." button.

Took me forever to figure this out so hopefully this helps someone out.

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

79203819

Date: 2024-11-19 14:33:14
Score: 1
Natty:
Report link

Asked the same question in the Firebase Google group. Seems like the Firebase team will update the server certificate on their end:

You are correct. Firebase servers will handle these updates.

https://groups.google.com/g/firebase-talk/c/KM9qydwykyg/m/V130qhduAQAJ

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

79203815

Date: 2024-11-19 14:31:13
Score: 1
Natty:
Report link

As Richard Hipp from the SQLite forum has told me:

You cannot use a WITHOUT ROWID table as an external content table. The external content table must be a rowid table. The "content_rowid=" argument to FTS5 must refer to a column of type INTEGER PRIMARY KEY. If you make the "content_rowid=" refer to a TEXT PRIMARY KEY column, it won't work.

Removing the WITHOUT ROWID and content_rowid=path fixes the issue.

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

79203784

Date: 2024-11-19 14:24:11
Score: 3
Natty:
Report link

I also started to have this issue latelly, I dont know how to fix.. the solution i found was running

ng test --browsers=Chrome --source-map=true

and then debug in the chrome dev tools

Reasons:
  • RegEx Blacklisted phrase (2): I dont know how to fix
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: pazBR

79203778

Date: 2024-11-19 14:22:10
Score: 0.5
Natty:
Report link

In Oracle, AUTHID is a clause that used in declaration of PL/SQL stored procedures, functions, and packages to specify the execution of the code.

It indicate whether the PL/SQL code executes with the privileges of the definer or executer user.

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

79203772

Date: 2024-11-19 14:20:10
Score: 1
Natty:
Report link

The utcnow is deprecated

Replace this

datetime.utcnow()

With this

from datetime import datetime, timezone

datetime.now(timezone.utc)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Oussama Bouchikhi

79203767

Date: 2024-11-19 14:18:09
Score: 2
Natty:
Report link

Make sure that the columns used in your WHERE clause have indexes.

Ensure date column is using the correct format amd ensure that SQL Server isn't performing a type conversion that could affect the performance.

You can also add an ORDER BY clause and ensure it has a index.

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

79203764

Date: 2024-11-19 14:17:09
Score: 2.5
Natty:
Report link

When you build Docker image, then it is built for the architecture of the machine on which the build process was running.

So what you try to do is running the WS GW Interface script, based on broken dependencies...

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

79203749

Date: 2024-11-19 14:14:08
Score: 4
Natty: 4.5
Report link

disable right click on web page using JavaScript Like this site

https://www.watchbandexpert.com/collections/tissot/products/tissot-t063610-rose-gold-steel-watch-band-bracelet

https://www.watchbandexpert.com/

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

79203741

Date: 2024-11-19 14:12:07
Score: 0.5
Natty:
Report link

Don't test this method. It actually doesn't have any logic. It's also not some business domain method. Don't test it. You don't have to have 100% test coverage. It's quite bad practice.

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

79203736

Date: 2024-11-19 14:10:06
Score: 1.5
Natty:
Report link

It seem to be logged for the incoming requests, most likely to later identify and fix the issues with the service. So, by sending random-random user agents you would make their work a little harder. You might also get banned for not complying with the service requirements. I suppose a random string is ok for one off testing, but for a regularly used script or a tool you better construct an actual user-agent string that identifies it.

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

79203732

Date: 2024-11-19 14:09:06
Score: 0.5
Natty:
Report link

In my case device had no free memory left on device to install new build.

I could run the build unless uninstalling previous app.

Even running the build from XCode did not show this as error reson.

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

79203730

Date: 2024-11-19 14:09:06
Score: 1
Natty:
Report link

You could try exporting the cert and importing it to the current user's trusted certification store, per the instructions in Method 2 here (might need to add an extra snap-in for the current user):

https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/installation/warnings-untrusted-certificate

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

79203719

Date: 2024-11-19 14:07:06
Score: 3.5
Natty:
Report link

try to give a .frame(width: size, height: size) to your expanded stack

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

79203716

Date: 2024-11-19 14:05:05
Score: 0.5
Natty:
Report link

iOS 16+ update

    if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
       let window = scene.windows.first,
       let rootViewController = window.rootViewController {
        rootViewController.dismiss(animated: true, completion: nil)
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kadir

79203712

Date: 2024-11-19 14:04:05
Score: 1.5
Natty:
Report link

I had a similar issue because my ElasticClient had no

.EnableApiVersioningHeader()

Specified in its settings.

After this line was added, the error disappeared.

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

79203709

Date: 2024-11-19 14:04:05
Score: 0.5
Natty:
Report link

You absolutely can have both and x64 architecture will be prioritized if the code was built for AnyCPU. You should have this is mind for the following dev story :

I just experienced a lot of debugging on my side relevant to this question. .NET runtimes can make a difference whether they were installed for x64 or x86 for C++/CLI applications.

For days I looked around on why my program was working on machines of programmers but not on users' machines, and the cause was found to be that Visual Studio downloads both runtimes, but an install via the .NET website only downloads one, and most of the time you will use x64. But for my case, I needed x86 as the library I was creating was to be used for legacy x86 code.

Note : the dotnet command will most likely only show you x64 installs, as the PATH probably prioritize x64 paths.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alecsou

79203695

Date: 2024-11-19 14:01:04
Score: 1.5
Natty:
Report link

I had the same error code and the problem was the wrong snowflake account. But it was not through the Jupyter.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Marosinho

79203694

Date: 2024-11-19 14:01:04
Score: 1.5
Natty:
Report link

Did some more digging and found the following solution

var selfJoin = 
    from child in Context.GlobalDocumentClassification
    from parent in Context.GlobalDocumentClassification
    select new { child, parent };

var query = from item in selfJoin
    where item.child.HierarchyId.IsDescendantOf(item.parent.HierarchyId) &&
        EF.Constant(ids).Contains(item.parent.Id)
    select item.child.Id;

code

This produces SQL-Server cross join query and allows for the use of IsDescendantOf() in the queries where clause.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Did some
  • Low reputation (0.5):
Posted by: Norbert Hüthmayr

79203685

Date: 2024-11-19 13:58:03
Score: 1
Natty:
Report link

Thanks for the comments on the post, and the answer provided above. I used a combination of the two to come to a solution which works great. For geom_label_repel() and geom_label(), I used a label = ifelse() statement rather than filtering the data itself. Thanks again to the commenter and the proposed answer for helping me solidify this result.

# Set repel threshold
threshold <- 0.055

# Plot
survey %>% 
  ggplot(aes(x = pct, y = 1, fill = fct_rev(answer))) +
  geom_col(color = "black") +
  theme_minimal() +
  scale_x_continuous(labels = label_percent(),
                     # Expand so the labels aren't off-plot
                     expand = expansion(mult = c(0.025, 0.025))) +
  scale_y_discrete(labels = NULL) +
  geom_label_repel(aes(label = ifelse(pct < threshold, percent_format(accuracy = 1)(pct), NA),
                       color = fct_rev(answer)),
                   fill = "white",
                   size = 3.25,
                   fontface = "bold",
                   label.size = 1,
                   label.r = unit(2.5, "pt"),
                   show.legend = FALSE,
                   na.rm = TRUE,
                   position = position_stack(vjust = 0.5, reverse = FALSE),
                   # Set direction so that repel is only "up" or "down" on plot
                   direction = "y",
                   # Set ylim to prevent labels going off the bar
                   ylim = c(.6, 1.3),
                   # Set seed so they always place in same position
                   seed = 12345
  ) +
  geom_label(aes(label = ifelse(pct >= threshold, percent_format(accuracy = 1)(pct), NA),
                 color = fct_rev(answer)),
             fill = "white",
             size = 3.25,
             fontface = "bold",
             label.size = 1,
             label.r = unit(2.5, "pt"),
             show.legend = FALSE,
             na.rm = TRUE,
             position = position_stack(vjust = 0.5, reverse = FALSE),) +
  scale_fill_manual(values = c("tomato4", "tomato", "royalblue", "royalblue4")) +
  scale_color_manual(values = c("tomato4", "tomato", "royalblue", "royalblue4"), guide = "none") +
  guides(fill = guide_legend(position = "bottom", nrow = 2, reverse = TRUE)) +
  labs(
    title = NULL,
    subtitle = NULL,
    caption = paste("Respondents N =", survey[1,]$respondents),
    fill = NULL,
    color = NULL,
    x = NULL,
    y = NULL
  )

fixed plot with correctly repelled labels

It also ended up working for all 20-ish plots in my .Rmd file, with some modifications here and there to the seed = argument to get them to place where I wanted.

final plot from my document

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Morrigan

79203683

Date: 2024-11-19 13:57:02
Score: 1
Natty:
Report link

Goto: ...\google-cloud-sdk\lib\googlecloudsdk\command_lib\util\ssh\ssh.py

Change this line from:

if platforms.OperatingSystem.IsWindows():

to this:

if not platforms.OperatingSystem.IsWindows():

now it let you connect using system's ssh.

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

79203682

Date: 2024-11-19 13:57:02
Score: 3.5
Natty:
Report link

I’m also encountering the same issue while creating a virtual machine. It requires enabling the Computer/cloud Engine API, but after that, it shows a billing account issue.

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

79203678

Date: 2024-11-19 13:55:02
Score: 0.5
Natty:
Report link

I hope this can help someone else. All the settings were correct on GCP. I just never realized that I needed to update the URI to reflect that I was using the private endpoints. I had to go to MongoDB to obtain the new URI (in my case, replacing cluster1 for cluster1-pl-0) and then I had to go to GCP Secrets Manager in order to create a new version of the URI. As simple as that.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): hope this can help
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lenni

79203676

Date: 2024-11-19 13:54:02
Score: 1
Natty:
Report link

Yes, you can reduce or filter options in a question based on a previous answer in Google Forms using the "Go to section based on answer" feature or conditional logic. Here's how you can do it:

Method 1: Using "Go to section based on answer" Create multiple sections in your form for different sets of questions.

Click on the "Add section" button (two horizontal lines) to create a new section for the next set of questions. Create the first question that will determine the options for the next question. For example, a multiple-choice question asking "What type of product are you interested in?"

Set up conditional logic for the second question:

In your form, add a new question (e.g., a dropdown or multiple-choice question) that will display different options based on the answer to the first question. Click on the three dots (⋮) on the bottom-right of the first question and select "Go to section based on answer." For each option in the first question, specify which section should follow, based on the user's response. Customize the second question in each section to show relevant options based on the first answer.

Example:

If the first question asks "What type of product are you interested in?" and you have options like "Electronics" and "Clothing," you can create separate sections for each type. In the "Electronics" section, ask about specific electronic products, and in the "Clothing" section, ask about clothing-related questions. Method 2: Using "Response validation" and hidden sections for dynamic filtering Though Google Forms doesn't allow dynamically hiding individual options in a multiple-choice or dropdown question based on a prior answer (like some other platforms), you can set up your form structure with sections and conditional navigation, as described above.

By combining sections and navigating between them based on responses, you can effectively "filter" the next set of options for the user.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tech Traveller Mallesh

79203670

Date: 2024-11-19 13:53:01
Score: 6 🚩
Natty: 6
Report link

Thx a lot!! Was wondering... it used to have a transfer button but now the video tag doesn't.

Reasons:
  • Blacklisted phrase (1): Thx
  • Blacklisted phrase (2): Was wondering
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Liz Rodrigues

79203664

Date: 2024-11-19 13:51:00
Score: 1.5
Natty:
Report link

For anyone who is also seeing their vertical lines being not drawn at all, or being drawn in the wrong place (particularly in number-based line graphs), if you specify labels then your value or xMin/xMax must be an index value of the closest matching label.

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

79203650

Date: 2024-11-19 13:47:59
Score: 2.5
Natty:
Report link

Is this sticky session only work with alb.ingress.kubernetes.io/target-type: ip. What about type instance? I'm using AWS alb ingress controller. And in the ingress.yaml file I have added all the required annotations required for sticky session except the target type annotation.

Ps: my stickiness is also working working. But it is enabled in ingress yaml file

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: Abhijith

79203649

Date: 2024-11-19 13:47:59
Score: 1.5
Natty:
Report link

Resolved by following steps

Remove the build and .cxx folder in the android/app/ directory.

Run the command in terminal:

Change in file

Run the project :

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

79203642

Date: 2024-11-19 13:44:58
Score: 8
Natty: 7
Report link

Hey bro did you manage to fix it ?? I have the same erro

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to fix it
  • RegEx Blacklisted phrase (1.5): fix it ??
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Filipe

79203630

Date: 2024-11-19 13:40:57
Score: 0.5
Natty:
Report link

In my case device had no free memory left to install new build.

I could run the build unless uninstalling previous app.

Even running the build from XCode did not show this as error reson.

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

79203627

Date: 2024-11-19 13:40:57
Score: 2
Natty:
Report link

This is the answer if it's just a response without any other key-value pairs, but just the bearer token as a response.

   let data =res.body ;
    bru.setEnvVar("token",data);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TylerBalaskovitz

79203626

Date: 2024-11-19 13:39:56
Score: 1.5
Natty:
Report link

to integrate telegram login functionality into a react native app, you can use telegram official Widget for logging in with Telegram along with web based authentication

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

79203625

Date: 2024-11-19 13:39:56
Score: 1
Natty:
Report link

p-values are also calculated for models estimated using the library ordinal:

Install and load the package

if (!require(ordinal)) install.packages("ordinal")

library(ordinal)

Fit an ordinal logistic regression model using clm()

ologit_model <- clm(response_var ~ predictor1 + predictor2, data = your_data)

Summary of the model

summary(ologit_model)

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

79203614

Date: 2024-11-19 13:36:56
Score: 0.5
Natty:
Report link

Like most vendors.. they don't want you doing this yourself.

Communication The LIS/HIS function of BC-30s enables the communication between the analyzer and the PC in laboratory through Ethernet, including sending analysis results to and receiving worklist from PC. The LIS/HIS communication protocol involved in communication of BC-30s are 15ID and HL7. For details about the connection control, and the introduction, message definition and examples, please contact Mindray Customer Service Department or your local distributor.

This was taken from https://keul.de/media/pdf/mindray/BC-30s_handbuch.pdf

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

79203611

Date: 2024-11-19 13:35:55
Score: 2
Natty:
Report link

I would suggest it is not good practice to set the NOTCOUNT to OFF at the end of the procedure. Firstly it is not necessary as it is scope based, and secondly there is no way of telling what it was before we set it to NOCOUNT ON so arbitrarily setting it to the default OFF could actually be misleading as well as being totally unnecessary and bloating the code.

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

79203582

Date: 2024-11-19 13:26:53
Score: 2.5
Natty:
Report link

QRGEncoder qrgEncoder = new QRGEncoder(preSharedKey, null, QRGContents.Type.TEXT, smallerDimension); ServerSocket server = new ServerSocket(6678); Socket socket = server.accept();

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

79203580

Date: 2024-11-19 13:25:53
Score: 1.5
Natty:
Report link

Sorry, I downloaded and used go version go1.23.0 windows/386 by mistake. I used echo %PROCESSOR_ARCHITECTURE% to check my CPU architecture as amd64. After I reinstalled the go language for amd64 and checked go env, my fuzzy query no longer reported this error. And it is consistent with the document results. Very important sentence: Go fuzzing with coverage instrumentation is only available on AMD64 and ARM64 architectures currently.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 李晓川

79203570

Date: 2024-11-19 13:21:52
Score: 1.5
Natty:
Report link

Use the below dockerfile and run the command

FROM microsoft/iis:latest RUN powershell c: mkdir volume RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot* WORKDIR /inetpub/wwwroot COPY content/ . EXPOSE 80

docker run -d -h containername -v C:\Users\admin\Desktop\iis-demo\content:C:\volume -p 2001:80 dockerimage

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

79203569

Date: 2024-11-19 13:20:52
Score: 1.5
Natty:
Report link

The project requires being built using .Net Standard 2.0 as a framework. Any newer framework will make any generators unable to run.

Switching my existing .Net 8 project failed to get the analyzers to run so instead I created a new project and followed Andrew Lock's guide (found here: https://andrewlock.net/creating-a-source-generator-part-1-creating-an-incremental-source-generator/) to format the .csproj file, re-added the generators from my previous project and included this new project as a reference in the project that contains the attribute it looks for. After these steps it was able to analyze the project and output the expected code.

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

79203565

Date: 2024-11-19 13:18:51
Score: 1
Natty:
Report link

None of the answers so far address an important part of the question, i.e. that only a fixed number of deadlocks are to occur. This allows the user to test whether their retry algorithm will succeed after a certain number of attempts. To the technique shown by others for creating deadlocks, I've added a technique for creating autonomous transactions so that I can decrement a counter in a trigger without it being rolled back. There are a few steps to this, but all of them are simple and straightforward, and none of them require you to alter your production code.

Apologies for the poor code formatting, I tried!

  1. Create the proc create_deadlock as per https://sqlperformance.com/2013/11/t-sql-queries/single-tx-deadlock

CREATE proc create_deadlock as begin -- Always run this in a transaction, otherwise it will run to -- completion and you'll get an unwanted type created. if @@TRANCOUNT < 1 begin raiserror('create_deadlock should be run in a transaction', 16, 1); return 50000; end

DECLARE @sqlText NVARCHAR(256);
SET @sqlText =
'CREATE TYPE dbo.UNWANTED_TEMP_TYPE FROM VARCHAR(320);'
EXEC (@sqlText);
SET @sqlText =
'DECLARE @x TABLE (e dbo.UNWANTED_TEMP_TYPE);'
EXEC (@sqlText);

end

  1. Create a table to hold the number of deadlocks you want on a given table:

    CREATE TABLE deadlock_limits( TableName sysname NOT NULL, Limit int NULL, CONSTRAINT pk_deadlock_limits PRIMARY KEY CLUSTERED ( TableName ASC ) ) ON PRIMARY

  2. Create a proc to update deadlock_limits:

    create procedure set_deadlock_limit @TableName sysname, @Limit int as begin

     set nocount on;
    
     update deadlock_limits set Limit = @Limit where TableName = @TableName;
     if @@ROWCOUNT = 0
         insert into deadlock_limits (TableName, Limit) values (@TableName, @Limit);
    

    end

  3. Create a loopback server, so we can create autonomous transactions, as per https://learn.microsoft.com/en-us/archive/blogs/sqlprogrammability/how-to-create-an-autonomous-transaction-in-sql-server-2008:

    EXEC sp_addlinkedserver @server = N'loopback',@srvproduct = N' ',@provider = N'SQLNCLI', @datasrc = @@SERVERNAME EXEC sp_serveroption loopback,N'remote proc transaction promotion','FALSE'

  4. Enable RPC for your loopback server in Linked Server Properties, as per https://stackoverflow.com/a/55797974/10248941

  5. Create a trigger on a table that your calling code will attempt to update. A deadlock will occur when you attempt the update:

    CREATE TRIGGER test_force_deadlock_on_MyTable ON dbo.MyTable AFTER INSERT,DELETE,UPDATE AS BEGIN

     set nocount on;
    
     -- Read the deadlock_limits table to see if there is a limit on how many deadlocks to create.
     -- If the limit is null, this means no limit.
     declare @num_locs int;
     select @num_locs = Limit from deadlock_limits where TableName  = 'MyTable';
    
     if @num_locs is null or @num_locs > 0
     begin
         if @num_locs > 0
         begin
             declare @NewLimit int = @num_locs - 1
             exec loopback.CertEaseEthigen_set_deadlock_limit 'MyTable', @NewLimit;
         end
         -- Force a deadlock
         exec create_deadlock;
     end
    

    END

And that's it. To test how your calling code handles deadlocks, set the number of deadlocks you want in deadlock_limits and enable the trigger:

exec set_deadlock_limit 'MyTable', 1
alter table MyTable enable trigger test_force_deadlock_on_MyTable

The trigger will decrement the Limit in the deadlock_limits table each time it runs. Because it calls set_deadlock_limit via the loopback server, the new value of Limit will not be rolled back. Each time you attempt the write the Limit counter will decrement, and it when it reaches zero your write will succeed:

update MyTable set Number = 1;  -- First time fails with a deadlock
update MyTable set Number = 1;  -- second time succeeds

When you are done testing, you need only disable the trigger:

alter table MyTable disable trigger test_force_deadlock_on_MyTable
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @TableName
  • User mentioned (0): @Limit
  • User mentioned (0): @server
  • User mentioned (0): @datasrc
  • Low reputation (0.5):
Posted by: Rik Bradley

79203564

Date: 2024-11-19 13:18:51
Score: 0.5
Natty:
Report link

Inspired by @daniel-l-vandenbosch, I'd prefer this one, without overloading ;-)

CREATE OR REPLACE FUNCTION iif(condition boolean, true_result anyelement, false_result anyelement)
    RETURNS anyelement
    LANGUAGE SQL
    IMMUTABLE PARALLEL SAFE AS
'SELECT CASE WHEN condition THEN true_result ELSE false_result END';

This is using ANYELEMENT instead of TEXT, so it should work with more datatypes without casting/conversion.

Also added immutable and parallel safe to improve performace.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @daniel-l-vandenbosch
Posted by: frankhommers

79203558

Date: 2024-11-19 13:17:51
Score: 0.5
Natty:
Report link

type 'String' is not a subtype of type 'int' of 'index' generally faced when you try to access a value from a map or list where the key or index is expected to be of type int, but you're providing a String (or vice versa). In your code, the problem is likely with how the API response data is being parsed in the fetchSertifikasi method.

Possible issue can be:

In fetchSertifikasi, you're returning response.data['data'], assuming it contains a list of dynamic objects (like maps). However, in your main project, the data field might not have the expected structure, or some fields (e.g., id_sertifikasi) might not have the correct data type (e.g., being a String instead of an int).

Debuging steps

Step 1: Log the response from the API to see its exact structure and confirm data types.

Step 2: Ensure Consistent Data Types If the API is returning id_sertifikasi as a String instead of int, you should modify how you handle this data.

Step 3: Check JSON Parsing If you expect specific data types from the API, use a model class to parse and validate the JSON

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

79203545

Date: 2024-11-19 13:12:50
Score: 2.5
Natty:
Report link

the problem is mainly your python version so

in your bash

deactivate your environment with :

conda deactivate

then create a new environment :

conda create -n env python=3.8

activate it :

conda activate env

now install tensorflow :

conda install tensorflow

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

79203543

Date: 2024-11-19 13:11:50
Score: 2.5
Natty:
Report link

According to my textbook, two processes must have two pipes to achieve two-way communication. For the parent and child processes, this should also be true.

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

79203540

Date: 2024-11-19 13:11:50
Score: 3
Natty:
Report link

@Jonas thanks for the suggestion. This is my updated code and test ran successfully.

public async Task CreateTransaction_OnSuccess_ReturnStatusCode200()
{
    //Arrange
    var mockTransactionService = new Mock<ITransactionService>();
    var transactionRequest = TransactionFixture.CreateTransaction();
    var transactionResponse = new TransactionResDto { Status = true };
    mockTransactionService.Setup(service => service.CreateTransactionAsync(It.IsAny<TransactionReqDto>()))
                        .ReturnsAsync(transactionResponse);
    var mockTransactionController = new TransactionController(mockTransactionService.Object);
    //Act
    var result = (OkObjectResult) await mockTransactionController.CreateTransaction(TransactionFixture.CreateTransaction());
    //Assert
    result.Should().BeOfType<OkObjectResult>();
}
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Jonas
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Seyi Agboola

79203533

Date: 2024-11-19 13:07:49
Score: 3.5
Natty:
Report link

What if I'd like to have ssl set to true for serving the application, but false for e2e tests?

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 I
  • High reputation (-1):
Posted by: Donovant

79203532

Date: 2024-11-19 13:07:49
Score: 1
Natty:
Report link

From Spring Boot version 3.0 and above, Java 8 is no longer supported. If you wish to use Java 8, you must use Spring Boot version 2.x or earlier. Below is a compatibility list of Spring Boot versions and their supported Java versions:

Spring Boot Version Compatible Java Versions [1.x spring supports 6, 7, 8 version of java] [2.x spring supports 8, 9, 10, 11, 17 version of java ] [3.x spring supports 17 and above version of java ]

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

79203529

Date: 2024-11-19 13:06:49
Score: 0.5
Natty:
Report link

Does it have to be via fmt? Should be fairly straight-forward without:

#include <vector>
#include <iostream>
#include <iomanip>

int main ()
{
    std::vector<int> v = {1,1,2,3,5,8,13,21,34};
    
    for (size_t i = 0; i < v.size(); ++i) {
        std::cout << ((i > 0) ? "|" : "") << std::setfill(' ') << std::setw(2) << v[i] ;
    }
}
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: André

79203527

Date: 2024-11-19 13:06:49
Score: 2.5
Natty:
Report link

class MyClass: def init(self, name, age): self.name = name self.age = age

obj = MyClass(name="Alice", age=30) obj_dict = obj.dict print(obj_dict)

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

79203526

Date: 2024-11-19 13:06:49
Score: 1
Natty:
Report link

Another reminder that was tripping me up. If you don't put:

'order' => 'ASC',

in there, it won't perform the orderby. You can of course also do a DESC, but the direction must be stated. Was confused by this because in normal SQL, the ASC/DESC is optional and defaulted to ASC.

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

79203521

Date: 2024-11-19 13:04:48
Score: 0.5
Natty:
Report link

you need to load the .env like this

  const env = loadEnv(process.env.NODE_ENV, process.cwd(), "");
  return {
    plugins: [react(), legacy()],
    define: {
      __APP_ENV__: env,
      "process.env": env
    },
  };
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Irrfan23

79203518

Date: 2024-11-19 13:02:48
Score: 2
Natty:
Report link

this fixed for me

 npm install @mui/material @emotion/react @emotion/styled --force
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: efesydss

79203516

Date: 2024-11-19 13:02:48
Score: 1.5
Natty:
Report link

IORW allows to do both write-and-read in one call, if you need to pass params for the "read" operation , the ioctl alllows you to pass a struct with BOTH the params by "write" , and then do a "read" to pass data from kernel to user.

i.e. the kernel code will do "copy from user" + preare the data + "copy to user".

Also read/write are blocking , only one thread can call it , i think ioctl can be called by multiple user threads, same as poll()

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

79203507

Date: 2024-11-19 13:00:47
Score: 1.5
Natty:
Report link

Your code causes an issue because the initialization of MailMessage and its properties occurs directly within the class scope, which is not allowed. Instead, this should be done within a method, like Main() or another function. Class-level statements in C# can only declare fields and methods.

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

79203501

Date: 2024-11-19 12:59:47
Score: 0.5
Natty:
Report link

Django is a Python web development framework used for full-stack web applications, including both front-end and back-end.

Django Rest Framework (DRF) is a library built on top of Django specializes in simplifying the process of building robust APIs.Django is a Python web development framework used for full-stack web applications, including both front-end and back-end.

Django Rest Framework (DRF) is a library built on top of Django specializes in simplifying the process of building robust APIs. It allows you to reuse chunks of code instead of reinventing the wheel. It also nudges you to write better, cleaner, and less error-prone code.

REST (Representational State Transfer) refers to an architectural style for designing networked applications. API (Application Programming Interface) is a set of rules that allows one software application to interact with another.

In short:
Django is for web development.
Django Rest Framework is for building REST APIs in Django, making it easier and more efficient than doing so with regular Django alone.

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

79203479

Date: 2024-11-19 12:51:45
Score: 3.5
Natty:
Report link

When you are inside the folder: git stage .

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): When you are in
  • Low reputation (1):
Posted by: Gil Salomon

79203474

Date: 2024-11-19 12:50:44
Score: 4
Natty: 5
Report link

can confirm - in a modal make sure you don't reload the bootstrap.js

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: Paul Matthews

79203468

Date: 2024-11-19 12:48:43
Score: 3
Natty:
Report link

The closest I know of is libcloudproviders but I haven't used it.

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

79203465

Date: 2024-11-19 12:47:43
Score: 2
Natty:
Report link

Same issue with circuitbreaker. The problem are the ReadOnlyHttpHeaders from netty.

java.lang.UnsupportedOperationException: null at org.springframework.http.ReadOnlyHttpHeaders.remove(ReadOnlyHttpHeaders.java:135)

https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway/gatewayfilter-factories/removerequestheader-factory.html also not working.

<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId>
        </dependency>
spring:
  cloud:
    gateway:
      routes:
        - id: test-route
          uri: id: test-route
          uri: http://httpbin.org/
          predicates:
            - Path=/test/**
          filters:
            - StripPrefix=1
            - name: CircuitBreaker
              args:
                name: exampleCircuitBreaker
                fallbackUri: forward:/fallback
Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TechnicalFreak

79203462

Date: 2024-11-19 12:46:42
Score: 8 🚩
Natty: 5
Report link

Curious to know, were you able to configure and run the app successfully from the customized URL context with "/front/"?

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arindam Kundu

79203445

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

I installed Mayavi version 4.8.2 using MacPorts.

Steps:

  1. port install vtk +python39
  2. port install py39-mayavi

I had been struggling in installing Mayavi using MacPorts for the last two months.

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

79203437

Date: 2024-11-19 12:38:40
Score: 3.5
Natty:
Report link

Esse erro ocorre quando você passa uma função em um onClick() usando React.JS:

<Button type="button" onClick={rodarFuncao(parametro)}>
   Excluir
</Button>

Só que de vez de fazer do jeito que mostrei você tem que passar () =>, por exemplo:

<Button type="button" onClick={() => rodarFuncao(parametro)}> // Jeito certo
   Excluir
</Button>
Reasons:
  • Blacklisted phrase (3): você
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raul UM

79203431

Date: 2024-11-19 12:34:39
Score: 2
Natty:
Report link

SideInputsseems not to be supported by DirectRunner, see the docs, here

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: no-stale-reads

79203426

Date: 2024-11-19 12:32:38
Score: 1.5
Natty:
Report link

If you are developing an API, for authentication, you should use:

builder.Services.AddKeycloakWebApiAuthentication(builder.Configuration);

For a web app, use:

builder.Services.AddKeycloakWebAppAuthentication(builder.Configuration);

For authorization, use:

builder.Services.AddKeycloakAuthorization().AddAuthorizationServer(configuration);

You can follow the migration guide below:

Source:https://nikiforovall.github.io/keycloak-authorization-services-dotnet/migration.html

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

79203422

Date: 2024-11-19 12:32:38
Score: 0.5
Natty:
Report link

So in my situation in case anyone ever comes across this. For purposes of security, I created a seperate user to purely run my nextjs application. Additionally I sought such a third party application out to run it in the background since when i would run

npm run dev nohup&

this would ultimately fail due to the background services unable to "access" the application files due to ownership being given to the created account. I say this because this ultimately would made pm2 produce failed commands and unable to actually start the nextjs server. Long story short I ended up updating permissions on the folder itself and was able to get this working with

pm2 start "npm run dev" --name "nextjs server"

and whenever I need to check logs i do

pm2 logs "nexjs server"

if i update files sometimes it automatically propagates when i use git but sometimes it does not so you can do

pm2 restart "nextjs server"

or

pm2 stop "nextjs server"

pm2 start "nextjs server"

Dont forget! sometimes you need to do maintenance and restart server. run pm2 save and it will save the processes you are running cause I imagine your running some kind of backend as well.

I know this was probably more then you needed but the other commands did not work to get my nextjs going and if your running into same issues maybe this will help you!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kid Yume

79203420

Date: 2024-11-19 12:31:38
Score: 1
Natty:
Report link

Check CMakeLists.txt: Ensure your CMakeLists.txt includes the proper PyBind11 configuration:

cmake_minimum_required(VERSION 3.12) project(cmake_example)

set(CMAKE_CXX_STANDARD 14) find_package(pybind11 REQUIRED)

pybind11_add_module(cmake_example src/main.cpp)

2.Rebuild the Project: After confirming the CMakeLists.txt is correct, rebuild the project by running:

Code: python setup.py build

3.Ensure Correct Python Version: Verify that the Python version used in your virtual environment matches the one used during the build process (python --version).

4.Check the Build Output: After rebuilding, check the output directory for the .pyd file (e.g., cmake_example.cp311-win_amd64.pyd) and make sure it's in your Python path (e.g., same directory as the test script). Then run the test again.

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

79203416

Date: 2024-11-19 12:30:38
Score: 1.5
Natty:
Report link

It is possible to create such a Shelve CL.

To do this, it is necessary to:

However, an error will occur when unshelving this Shelve CL: enter image description here

In other words, Perforce is somewhat limited in this regard.

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

79203415

Date: 2024-11-19 12:30:38
Score: 4
Natty: 7
Report link

I installed awx operator in aks, it's working, but I have issue with env variables injected by aks. even though I added the no_proxy env with ENV in my Containerfile, AKS overrirde my values. You have idea how can I force env variables to automation-job pod created by awx when a playbook is runnging by awx.??

Reasons:
  • Blacklisted phrase (0.5): how can I
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Said Dadda

79203414

Date: 2024-11-19 12:30:37
Score: 1.5
Natty:
Report link

Some testing frameworks, like JUnit, might mark a test as passed or failed prematurely if there are incorrect assertions or missing verifications. Ensure: Assertions and verifications are placed correctly. The test doesn’t conclude after testing the first function.

You can also test both the function seprately

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

79203412

Date: 2024-11-19 12:29:37
Score: 0.5
Natty:
Report link

Trivial loop function:

function loop()
    -- your code here
    while true do
        -- your loop code there
    end
end

More not trivial loop:

function loop ()
    -- your loop code there
    return loop()
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: darkfrei

79203401

Date: 2024-11-19 12:24:35
Score: 1
Natty:
Report link

//you are right, just need to handle floating points for corner cases

double termOfGP(int A,int B,int N) { double nthTerm = (A * (double) ( (double) pow(B, N-1) / (double) pow(A, N-1) ) );

 return nthTerm;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nitin

79203390

Date: 2024-11-19 12:20:34
Score: 2
Natty:
Report link

According to MaterialIconsUrlProvider.kt, the icons are bundled in jar and loaded from "images/material/icons/". Not sure which jar actually contains it, though. I couldn't find it in current version or any old version I downloaded.

After a commit at 2020-01-16, they support loading it from sdk, so now it's all in Sdk/icons/material.

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