79181383

Date: 2024-11-12 13:51:07
Score: 4.5
Natty: 5
Report link

Here is a related issue on nextui: https://github.com/nextui-org/nextui/issues/3583

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

79181382

Date: 2024-11-12 13:51:07
Score: 1.5
Natty:
Report link

When using a Makefile project (instead of a CMake project) with VSCode edit the STM32-for-VSCode.config.yaml file. Find the section linkerFlags: and change as follows:

linkerFlags: 
  - -Wl,--print-memory-usage -u _printf_float
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: paulvR

79181381

Date: 2024-11-12 13:51:07
Score: 1.5
Natty:
Report link

I don't know if you have solved this or not but here is a solution i tried after trying all solutions out there.

Update your NPM to current version also update mongoose and most importantly update "NODE JS" to the current version after that add allow access from everywhere and restart everything it should work i guess

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

79181380

Date: 2024-11-12 13:50:04
Score: 10.5 🚩
Natty: 6.5
Report link

Did you fixed you problem?. if please reply :)

Reasons:
  • Blacklisted phrase (1.5): please reply
  • RegEx Blacklisted phrase (3): Did you fixed
  • RegEx Blacklisted phrase (1.5): fixed you problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you fix
  • Low reputation (1):
Posted by: Shalinda Lakshan

79181377

Date: 2024-11-12 13:49:04
Score: 1.5
Natty:
Report link

I was able to achieve what I wanted by subscribing to a method in the checkout totals javascript class.

'Magento_Checkout/js/model/totals'

totals.getItems().subscribe(function (items) {
                
}.bind(this));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shaun

79181369

Date: 2024-11-12 13:47:03
Score: 1
Natty:
Report link

Yes, each environment must have ipykernel and jupyter. There is a convenient package, https://github.com/anaconda/nb_conda_kernels that allows to invoke jupyter notebook or jupyter lab from the base environment and have access to other knernels in other environments.

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

79181365

Date: 2024-11-12 13:45:02
Score: 0.5
Natty:
Report link

You can use BaseScene.ball.setFlipX(true); to flip the ball, and BaseScene.ball.setFlipX(false); to unflip the ball

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

79181361

Date: 2024-11-12 13:45:00
Score: 7 🚩
Natty: 6.5
Report link

When we use the encodeURIComponent method, URLs are encoded twice on iOS physical devices. However, they work correctly on Android, web, and the iOS simulator.

How can we resolve this issue?

Reasons:
  • Blacklisted phrase (1): How can we
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When we use the
  • Low reputation (1):
Posted by: Naveen Rawat

79181360

Date: 2024-11-12 13:43:59
Score: 0.5
Natty:
Report link

First, please close your 1st modal. Then open 2nd modal.

const openSuccessModal = useCallback(() => {
    // closes the verification modal
    setVerificationModalVisible(false);
    // open the success modal
    setTimeout(
      () => {
        setSuccessModalVisible(true);
      },     
      50,
    );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Avijit

79181352

Date: 2024-11-12 13:41:59
Score: 2.5
Natty:
Report link

const data = results.filter((item) => item.id === productId) data is array, which means it should be product: { ...data[0], images: [...data[0].images] },

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Сергей Тристан

79181349

Date: 2024-11-12 13:41:59
Score: 2
Natty:
Report link

I tried that little function of webbrowser on a windows machine and it works, you might try reinstalling python on your machine.

If the error persist downgrade python.

Let me know if it works.

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

79181347

Date: 2024-11-12 13:40:58
Score: 4
Natty:
Report link

Thanks to Vladimir's comments, here is the answer: in VS: Project>Properties>

... in addition to using Math Kernel Library Sequential /Qmkl:sequential,... for Runtime library, you have to use /libs:static

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

79181346

Date: 2024-11-12 13:40:58
Score: 1
Natty:
Report link

Yes. iOS allows constructing and sending ICMP packages. Many years ago, Apple published example code for this, which is the core part of this: https://github.com/samiyr/SwiftyPing

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

79181345

Date: 2024-11-12 13:40:58
Score: 0.5
Natty:
Report link

Wrapping MenuItem directly breaks Select's functionality. Try making MenuItem the parent.

<MenuItem value="option">
    <Tooltip title="big text to display as tooltip">
        <Typography>short summary to display as option</Typography>
    </Tooltip>
</MenuItem>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: İbrahim Akar

79181339

Date: 2024-11-12 13:39:58
Score: 2.5
Natty:
Report link

In my case it was combination of bad dependency declaration in Gradle (implementation instead of compileOnly) and shadowJar which I believe renames the dependency classes packaged in the jar.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vladimír Michálek

79181338

Date: 2024-11-12 13:39:58
Score: 1.5
Natty:
Report link

Chain of Responsibility suits scenarios where multiple handlers might process the request, and you want flexible control over which one handles it (or if none do). It’s ideal when each handler can decide to pass the request along the chain.

Decorator, on the other hand, is purely for enhancing functionality—adding new behaviors or responsibilities directly to objects without affecting others of the same class. It’s best when you need layered, composable behaviors on a single object.

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

79181337

Date: 2024-11-12 13:38:58
Score: 2.5
Natty:
Report link

[988f21e7-df59-4669-b950-bd26ccefbba5] this is one type of thread id [gAo4cUGr] this is another.

can you write regex to extract log.txt file in python

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

79181335

Date: 2024-11-12 13:38:56
Score: 6.5 🚩
Natty: 5
Report link

Is it possible to include the signature directly within the PDF itself, rather than navigating to different screens for a signature just like signature-pad and other options?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: Theja swaroop

79181334

Date: 2024-11-12 13:37:55
Score: 4
Natty:
Report link

я решил проблему в ручную установив [email protected]

brew tap rbenv/tap
brew install rbenv/tap/[email protected]

и дальше просто повторил команды где у меня возникла эта ошибка

brew tap apple/apple http://github.com/apple/homebrew-apple
brew -v install apple/apple/game-porting-toolkit
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: AydaTop1GG

79181332

Date: 2024-11-12 13:37:55
Score: 2.5
Natty:
Report link

Looks like its related to using a sub-rule ('\'' expression):

'$' currencyExpression? expression ('\'' expression)?

If I change the expression grammar to:

expression
    : '$' currencyExpression? expression'\''expression      #finAmountWithNB10
    | '$' currencyExpression? expression                    #finAmount 

It's now parsing the way I want:

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Renaud

79181329

Date: 2024-11-12 13:37:55
Score: 0.5
Natty:
Report link

An OPC UA Client should not need to care about this.
The OPC UA Server should report a Bad_NodeIdUnknown status when the monitored node disappears and should automatically continue to report values when the node re-appears.
The Subscription and MonitoredItem can stay alive the whole time.

If the server does not behave like this, then have a look if the server supports ModelChangeEvents. A server can report ModelChangeEvents when nodes or references appear or disappear. A Client can subscribe for the ModelChangeEvent and receive the information which nodes have changed. As for any event Subscription, Events can be subscribed on any event propagating node, e.g. a parent object, a folder or on the "Server" node to receive all events.

If none of the previous ways work, then the cyclic read seems to be the only solution.

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

79181325

Date: 2024-11-12 13:36:55
Score: 2.5
Natty:
Report link

If you need ROM maps in memory that you will access in different compilation units you can allocate the memory in the first unit:

extern const unsigned char BPG_Arial29x32[] = {
    // Font Info
    0x00,                   // Unknown #1
    0x00,                   // Unknown #2
...
}

In the other unit there are two options to declare in the headers:

extern const unsigned char* BPG_Arial29x32;

OR

extern const unsigned char BPG_Arial29x32[];

The second is always working, and the first let the software 'hang' if you use it in that way:

inline static map<const unsigned char*, const char*> fontSoftToString = {
    {BPG_Arial29x32, "BPG_Arial29x32"}
};

inline static map<string, const unsigned char*> stringToSoftFont = {
    {"BPG_Arial29x32", BPG_Arial29x32}
};

But it works if you use it as a function parameter:

declare: SetTextFontRom(const unsigned char* font)
use: SetTextFontRom(BPG_Arial29x32);

Why is this and why this is not 'compatible'?

Reasons:
  • RegEx Blacklisted phrase (0.5): Why is this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sam

79181324

Date: 2024-11-12 13:35:54
Score: 2
Natty:
Report link

You should also consider contributing to the translations on Weblate: https://hosted.weblate.org/projects/allauth/django-allauth/fa/.

But remember that it takes some time to add these translations to the project.

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

79181319

Date: 2024-11-12 13:33:53
Score: 2
Natty:
Report link

Your $user object doesn't have an ID yet.

Ensure that you have the $user saved to the database, so that you can safely get it's ID.

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

79181312

Date: 2024-11-12 13:32:53
Score: 9.5
Natty: 7
Report link

I can't vote even comment blow the @Mark's answer. That's the great answer and help me out. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2): help me out
  • RegEx Blacklisted phrase (2): can't vote
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Mark's
  • Single line (0.5):
  • Low reputation (1):
Posted by: wjing

79181310

Date: 2024-11-12 13:31:52
Score: 1.5
Natty:
Report link

Try below steps to solve your problem

  1. Delete Model Snapshot. Check if there’s a ModelSnapshot file in the Migrations folder (usually named something like ModelSnapshot.cs). Sometimes this file keeps a record of the current model state. So delete this file manually.

  2. After deleting migrations and snapshots, rebuild your project. And re-add initial migration.

  3. If you had any custom configurations, such as Fluent API configurations or .Entity mappings, ensure they’re also removed.

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

79181304

Date: 2024-11-12 13:30:52
Score: 3
Natty:
Report link

usethis command on command prompt. after this it works

C:>set ORACLE_HOME=C:\app\name\product\21c\dbhomeXE

C:>set PATH=%ORACLE_HOME%\bin;%PATH%

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

79181299

Date: 2024-11-12 13:28:51
Score: 4.5
Natty: 5
Report link

According to this comment you also need to some stuff inside the buildtools: https://github.com/twintproject/twint/issues/1407#issuecomment-1141734344

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

79181293

Date: 2024-11-12 13:27:51
Score: 0.5
Natty:
Report link

The fundamental difference between DPDK (Data Plane Development Kit) and RDMA (Remote Direct Memory Access) lies in their primary purposes and operational mechanisms.

DPDK:

DPDK is a set of libraries and drivers designed for fast packet processing in user space.

It bypasses the kernel to achieve high performance and low latency, allowing direct access to network hardware and memory.

Commonly used in network functions virtualization (NFV) and software-defined networking (SDN) to accelerate packet processing tasks.

RDMA:

RDMA enables direct memory access from one computer’s memory to another without involving the CPU, operating system, or cache.

This technology is aimed at reducing latency and increasing throughput, primarily used in high-performance computing and storage applications.

Implemented in high-speed network interfaces and storage systems for fast data transfers between systems.

In essence, DPDK focuses on optimizing packet processing speeds in user space, while RDMA aims to facilitate high-speed, low-latency data transfers between systems.

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

79181290

Date: 2024-11-12 13:26:50
Score: 5.5
Natty: 5.5
Report link

Maybe somebody knows the same query for postgres?

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

79181283

Date: 2024-11-12 13:25:50
Score: 0.5
Natty:
Report link

--This only shows columns that are not null, but can be amended for different criteria.

CREATE or alter PROCEDURE listcols_dynamic as --Created with help from AI bing BEGIN DECLARE @sql NVARCHAR(MAX) = 'SELECT '; DECLARE @columns NVARCHAR(MAX) = '';

--Initial Columns
SET @columns = 'static_field1,  static_field2,  '


IF EXISTS (SELECT 1 FROM mytable WHERE Col_1 IS NOT NULL)
    SET @columns = @columns + 'Col_1, ';                                
IF EXISTS (SELECT 1 FROM mytable WHERE Col_2 IS NOT NULL)
    SET @columns = @columns + 'Col_2, ';                                
IF EXISTS (SELECT 1 FROM mytable WHERE Col_3 IS NOT NULL)
    SET @columns = @columns + 'Col_3, ';                                
IF EXISTS (SELECT 1 FROM mytable WHERE Col_4 IS NOT NULL)
    SET @columns = @columns + 'Col_4, ';                                
IF EXISTS (SELECT 1 FROM mytable WHERE Col_5 IS NOT NULL)
    SET @columns = @columns + 'Col_5, ';

-- Remove the trailing comma and space if necessary
if right(@columns,2)=', '
 SET @columns = LEFT(@columns, LEN(@columns) - 1);

-- Complete the SQL statement
SET @sql = @sql + @columns + ' FROM mytable';

--Debug
--print @sql;

-- Execute the dynamic SQL
EXEC sp_executesql @sql;

END;

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @sql
  • User mentioned (0): @columns
  • Low reputation (1):
Posted by: Geoff

79181278

Date: 2024-11-12 13:24:49
Score: 0.5
Natty:
Report link

I has been almost 2 years, but I think I found a solution. I do not completely why it works though. It would seem that in some cases the display() does not evaluate the result of previous lazy operations. So if you just use df.cache() after these lazy operations, it should work correctly. Hope this helps !

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eliott Bourrigan

79181272

Date: 2024-11-12 13:23:49
Score: 3.5
Natty:
Report link

in my case it was enough to change the computer password.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Santos J. Marte M.

79181270

Date: 2024-11-12 13:22:49
Score: 2.5
Natty:
Report link

Jetbrains has a new Code-coverage tool in development, named Kover, which is a gradle-plugin.

https://kotlin.github.io/kotlinx-kover/gradle-plugin/

It is in an early version for now, and this article mentions it does not support instrumentation tests yet, but that might be outdated since it seems to have preliminary support for Jetpack Compose:

https://github.com/Kotlin/kotlinx-kover/issues/601

And the official docs mention support for Android and build-variants, but indeed, no support for instrumentation tests for now, according to the Features-paragraph:

Support for Kotlin Android projects with build variants (instrumentation tests executing on the Android device are not supported yet).

If you test this, please let me know if it works for you.

Reasons:
  • Blacklisted phrase (1): this article
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: arne.jans

79181269

Date: 2024-11-12 13:22:48
Score: 1
Natty:
Report link

To handle Node.js modules like fs in Next.js 13 with TurboPack, isolate server only code in API routes or use next/dynamic with { ssr: false } for client side only components, as TurboPack does not use Webpack's configuration fallbacks.

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

79181262

Date: 2024-11-12 13:20:48
Score: 1
Natty:
Report link

I had this error too, and it was from incorrect port forwarding settings.

The Safari error message here is wrong. It just means there's no (HTTP/1.0 (normal WWW) responding in the other end.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Antti Rytsölä

79181258

Date: 2024-11-12 13:18:47
Score: 3
Natty:
Report link

Okay everyone, using this method PermissionChecker.checkSelfPermission() fixed my problem.

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

79181251

Date: 2024-11-12 13:17:47
Score: 0.5
Natty:
Report link

The only way to steadily get summary data for further processing is to use formulas instead of a pivot table.

The recently introduced functions PIVOTBY and GROUPBY can help you as well as other functions already available for the years.

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

79181247

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

As stated above, Curl will only get you cookies that the server sets but not JavaScript cookies (or server cookies that are guarded). The solution is to run a headless browsers like selenium.

i found a great tutorial to set everything up: https://www.zenrows.com/blog/selenium-php#install-selenium-in-php

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: cookie-newb

79181241

Date: 2024-11-12 13:14:46
Score: 2
Natty:
Report link

Provide ShoppingListStore in your component

providers: [ShoppingListStore],
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aria

79181235

Date: 2024-11-12 13:12:45
Score: 1.5
Natty:
Report link

the must fast way is to update your rustc compiler :

rustup update stable

I was facing a such situation, but then I updated my rustc, the problem has been resolved.

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

79181225

Date: 2024-11-12 13:09:44
Score: 0.5
Natty:
Report link

TL;DR:

Install notebook in the virtualenv:

pip install notebook

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

79181208

Date: 2024-11-12 13:05:44
Score: 1.5
Natty:
Report link

Additional to all solutions above:

Make sure that you have selected a solution in the solution explorer. If you are in the folder view and have not selected a solution via double click, the references won´t show up.

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

79181207

Date: 2024-11-12 13:05:44
Score: 1.5
Natty:
Report link
enabledBorder: OutlineInputBorder(
              borderRadius: BorderRadius.circular(borderRadius),
              borderSide: const BorderSide(
                width: 0,
                style: BorderStyle.none,
              ),
            ),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: dbencak

79181176

Date: 2024-11-12 12:56:42
Score: 3.5
Natty:
Report link

Setting the bcrypt version to "4.0.1" will solve this for me.

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

79181174

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

I have got this response from AWS Support:

I have received an update from the team indicating that the issue was due to a recent update of the AppSync service, and they have rolled back the changes. We have tested this on our end and it is functioning properly now. Please feel free to test it on your end and let me know if the issue persists.

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

79181161

Date: 2024-11-12 12:51:41
Score: 1
Natty:
Report link

Found a solution that works for me:

The TMP object can't be masked in 3d space as far as I can tell.

This needs to be performed simultaneously with both a sprite mask for the sprite objects and a canvas image mask for the text objects (As TMP(UI) objects). Further, the canvas image mask has to be the parent of the text objects.

To make this work, I need a very specific stacking of objects: Canvas rendered in world space, which holds the sprite objects and an image object that (at least to begin with) has nothing on it.

Then, when the card is ready to be masked, create a sprite mask and an image on the canvas image object that match, and create a mask component to the image object.

This is bulky and annoying, but it does work. I need to keep the sprite mask and the image object in-step to make the masking appear clean to the user.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): works for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JFRApplications

79181160

Date: 2024-11-12 12:51:41
Score: 4
Natty:
Report link

I switched to FBXSDK wich solved everything.

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

79181159

Date: 2024-11-12 12:50:41
Score: 1.5
Natty:
Report link

They mostly block requests from server,bots or scrappers based on TLS Fingerprinting . Which detects whether the request is coming from a real browser or not.

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox fixes this issue by simulating the TLS fingerprint of various browsers

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

79181158

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

Adding these 2 environments worked for me:

export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
export CC=aarch64-linux-gnu-gcc
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lu ji

79181149

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

Can I take a look at the component?

Also, I think you should focus on logging the values of the state every time a component re-renders, instead of relying on the 'Yes' and 'No' output, if you want to catch the error faster and solve for it in the most effective manner.

Everytime, a state/prop changes in the component, you would get a log and you can check if there is a time when the state is being set wrongly or something.

You could also alternatively use a debugger.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can I
  • Low reputation (0.5):
Posted by: Hamza Murtaza

79181148

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

There's NO example from MDN that lets you sort tables by clicking on anything.

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

79181130

Date: 2024-11-12 12:43:39
Score: 2.5
Natty:
Report link

Installing git lfs and running git lfs pull fixed the problem.

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

79181119

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

It's worked me, try this in your component.

import $ from "jquery"; window.$ = window.jQuery = $;

Add bootstrap cdn ([email protected]) in index.html

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sakthivel maticz

79181115

Date: 2024-11-12 12:38:38
Score: 2.5
Natty:
Report link

@Tedinoz 1) Before Copy A data check value on same data just update Bcolum before copy and Past i want to check if same value ist exists in Acolum . if the same value exists want to update the bcolum value in same row. other weis add data in new row... Have try the getA1Notation i have try this but its now work its effect on all cell i want just limit the cell's

function onEdit(){
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("entry");
//get data of C4:I4
var range = sheet.getRange(4, 3, 1, 7);
if (range.getA1Notation()){
    CopyRow();
  }
}
Reasons:
  • Whitelisted phrase (-1): try this
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Tedinozbefore
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: John Kater

79181114

Date: 2024-11-12 12:38:38
Score: 3
Natty:
Report link

I'm still facing that issue with current PrimeNg 17 and created a new PrimeNg bug report with stackblitz example for reproduction: https://github.com/primefaces/primeng/issues/16729

Let's see, what the PrimeNg team can do...

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

79181102

Date: 2024-11-12 12:34:36
Score: 1
Natty:
Report link

You should add belong function to cmake file. It will solve the problem of fatal error: rabbitmq-c/amqp.h: No such file or directory 2 | #include <rabbitmq-c/amqp.h>.

find_library(RABBITMQ_LIB librabbitmq)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zeynepin_yari

79181100

Date: 2024-11-12 12:33:36
Score: 1.5
Natty:
Report link

this works for me try adding this in Cargo.toml

openssl = { version = "0.10", features = ["vendored"] }

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shyam Raghuwanshi

79181080

Date: 2024-11-12 12:27:34
Score: 1
Natty:
Report link

As per https://github.com/scikit-learn/scikit-learn/pull/20161 and https://github.com/scikit-learn/scikit-learn/issues/11198 , while cv_results_ replaces grid_scores_ you need to use mean_test_score ( or std_test_score ) along with it.

Try the below

plt.figure(figsize=(16, 9))
plt.title('Recursive Feature Elimination with Cross-Validation', fontsize=18, fontweight='bold', pad=20)
plt.xlabel('Number of features selected', fontsize=14, labelpad=20)
plt.ylabel('% Correct Classification', fontsize=14, labelpad=20)
plt.plot(range(1, len(rfecv.cv_results_['mean_test_score']) + 1), rfecv.cv_results_['mean_test_score'], color='#303F9F', linewidth=3)
#plt.plot(range(1, len(rfecv.cv_results_['std_test_score']) + 1), rfecv.cv_results_['std_test_score'], color='#309f51', linewidth=3)
plt.show()
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vishal

79181078

Date: 2024-11-12 12:27:34
Score: 1
Natty:
Report link

Please use this code to hide the menu for all users (Set active="False" attribute):

<menuitem id="res_partner_menu_customer" name="Customers" parent="crm_menu_sales" action="base.action_partner_form" sequence="5" active="False"/>

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

79181064

Date: 2024-11-12 12:23:33
Score: 1
Natty:
Report link

Even after trying the above methods if you are not able to get JSON body on req.body and you are using express then add the following line of code:

app.use(express.json());
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ashwin Chandran

79181059

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

To find the last or first full weekend of a month in PHP, you can create a function that checks whether both the Saturday and Sunday of the weekend fall within the same month. This ensures you have a "full weekend" without it spilling over into the previous or next month.

Here is the demo: Click Here

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

79181057

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

You can use Rosetta. its a Django application that eases the translation of Django projects.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 7Berlin

79181050

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

There is another solution, not so good but it works like a quick fix:

CMD-SHELL, echo "Ok" || exit 1

It uses icmp protocol to comunicate to the machine.

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

79181047

Date: 2024-11-12 12:17:31
Score: 1
Natty:
Report link
  1. remove your vendor folder
  2. run this command composer install --optimize-autoloader
  3. then try these commands php artisan cache:clear php artisan config:clear php artisan view:clear

hope that it will resolved your issue

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

79181042

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

Till Gerrit 3.11.0-rc1-85-gb19f7cf685, there is no key to reply to the comment in the code directly. However, when the cursor is in the line where the comment is given, you can use tab key to jump to REPLY button after around 3 jumps.

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

79181036

Date: 2024-11-12 12:13:28
Score: 8.5 🚩
Natty:
Report link

Not a solution (since i cannot comment because of rerely used profile), have you got any solution? I wanted to fetch the details of job candidates for a search query.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (0.5): i cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DOMINATOR X

79181021

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

Your best bet is to use langchain, and initialize two different conversation chains, using two different instances of ConversationBufferMemory(), in order to retain different memories. You can then decide how to handle the back and forth between the two bot, changing the behavior inside the loop

from langchain_community.chat_models import ChatOpenAI
from langchain.chains import ConversationChain
from langchain.memory import ConversationBufferMemory

number_of_turns = 5
llm_model = ChatOpenAI(model_name="gpt-4o-mini", openai_api_key=OPENAI_API_KEY)

# initialize two different memories for the two bot
bot1_memory = ConversationBufferMemory()
bot2_memory = ConversationBufferMemory()

# Create two conversation chains with separate memories
bot1_chain = ConversationChain(llm=llm_model, memory=bot1_memory)
bot2_chain = ConversationChain(llm=llm_model, memory=bot2_memory)

# Start messages for each bot
bot1_start = (
    "I want to play a game with you: ... my word start with a, can you guess it?"
)
bot2_start = (
    "I want to play a game with you too: ...my word start with b, can you guess it?"
)

# first turn
bot1_reply = bot1_chain.run(input=bot1_start)
print(f"Bot 1: {bot1_reply}")
bot2_reply = bot2_chain.run(input=bot2_start)
print(f"Bot 2: {bot2_reply}")

# loop for as many turns as you want
for turn in range(number_of_turns):
    print(f"Turn number {turn}")
    bot1_reply = bot1_chain.run(input=bot2_reply)
    print(f"Bot 1: {bot1_reply}")
    bot2_reply = bot2_chain.run(input=bot1_reply)
    print(f"Bot 2: {bot2_reply}")
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrea Figini

79181017

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

Enter the Laravel container

First check if the storage folder link is in your public folder. If you can't find it, run

php artisan storage:link

https://laravel.com/docs/11.x/filesystem#the-public-disk

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

79180995

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

The issue has been resolved. The problem was caused by adding an await operation, which caused the task to be canceled.

Here is the line of code : var response = _httpClient.PutAsync(requestUrl, content);

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

79180994

Date: 2024-11-12 12:04:25
Score: 4.5
Natty:
Report link

I just solved the problem. The problem was Express 4.x , now treats app.listen() as an asynchronous operation, so listener.address() will only return data inside of app.listen()'s callback. If I declare port statically,Code going well but it is also not good usage because it still static. Have an any idea to make it dynamic?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Onur Güvensoy

79180979

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

Nothing worked for me except this

headerBackButtonDisplayMode: "minimal",
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lasitha Lakmal

79180971

Date: 2024-11-12 11:55:23
Score: 3.5
Natty:
Report link

If you are using spring boot 3.0 or heigher version then add a defult "access policies" then it will work fine enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sharat Sahoo

79180969

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

-v or --volume: This option is used by users in the docker run command to set up a bind mount at the time of the container run, mapping a host path to a container path.

Binds in HostConfig: This only visible when you inspect a container, shows the actual bind mounts applied to the container as configured by -v or --mount or --volume. It’s not a command but a record of the mount configuration. it is recorded as part of the docker image build

If we summerise, -v will create the mount, and Binds will reflect it in Docker’s internal configuration.

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

79180957

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

Your command is correct when used in a cmd terminal but powershell works differently.

See https://github.com/npm/cli/issues/3136

The 3 suggestions work for me

'--'
---
-- --

I have opened a docs issue with jest

See Terminal Shells for controlling terminals in vscode.

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

79180956

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

First, make sure there really aren't public admin REST API calls exposed for your use case, by reviewing the reference at https://www.keycloak.org/docs-api/latest/rest-api/index.html

While I am not familiar with what public APIs/SPIs Keycloak actually provides, looking at the linked Javadoc, these do not appear public API/SPI. Which means that things can change without warning in the next version. Nevertheless, you should be able to implement a Keycloak extension to achieve what you need, see linked extensions for reference/inspiration: https://www.keycloak.org/extensions

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

79180954

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

I’ve actually built a tool called Skifta that might suit your needs here. It’s made for anonymizing data in SQL dumps, like replacing emails, even when there are multiple per line, and it handles unique values to avoid conflicts. Might save you a lot of hassle! There is a built in transformer that's made for handling emails.

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

79180949

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

Hi I solved a similar issue just by un checking the Lightweight checkout in my jobs. After doing that the git pulling works as a charm.

enter image description here

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Severin Mbekou

79180942

Date: 2024-11-12 11:46:21
Score: 1
Natty:
Report link

This probably changed since 2020 when the original question was asked, and now I can create Linux based, Python functions on Azure portal and have the in-portal python code editor.

The only requirement, as far as I can see, is to create/use the storage account for the function when creating Function App - as well as Azure Files connection. Without the Azure Files connection, I can create/edit functions only using VSCode.

azure portal - create function app - storage tab

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

79180940

Date: 2024-11-12 11:46:18
Score: 7 🚩
Natty: 5
Report link

@Amit, it works like a charm, to be sure. How to add "Posted by" before the Author's Name? Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Amit
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: zc quiz

79180935

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

Use VideoCapture(0) and Videocapture(1) instead of 1 and 2

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

79180934

Date: 2024-11-12 11:45:18
Score: 3
Natty:
Report link

enter image description hereFor those using Docker Desktop and experiencing the same error, I followed this solution of uninstalling the local Postgres on my machine, and it worked perfectly.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sawe onwong'a peter

79180932

Date: 2024-11-12 11:44:18
Score: 2
Natty:
Report link

These errors are caused by white spaces in the folder name, such as React Native.

Problem solved after changing the name to ReactNative.

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

79180920

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

Use this:

python -m nltk.downloader popular
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gajen Lee

79180918

Date: 2024-11-12 11:39:17
Score: 2.5
Natty:
Report link

CkEditor has this feature. It's paid though.

Documentation

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

79180908

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

Still pip is blocked but i can able to see the pop up of pip pip popup showing

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

79180896

Date: 2024-11-12 11:32:15
Score: 1
Natty:
Report link

I queried this with Microsoft support and got a response a few days later. Setting it to false is a best practice thing to reduce password resets and such. Not a technical limitation.

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

79180888

Date: 2024-11-12 11:28:15
Score: 0.5
Natty:
Report link

The error occurs because pytest does not automatically set the Frappe application context as the bench run-tests command does. To fix this, what you can do is manually initialize the Frappe context in your tests by using pytest fixtures. Set up the context with frappe.init() and frappe.connect() before running the test, and clean up afterward with frappe.destroy(). What this does is that it ensures that the necessary application context is available during test execution. Also make sure to apply patches correctly, as incorrect patching can also cause issues.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jatin Garg

79180885

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

You can call onChange() event of p-multiSelect like:

<p-multiSelect [options]="cities" 
        [(ngModel)]="selectedCities2" 
        defaultLabel="Select a City" optionLabel="name"
        display="chip" 
        (onChange)="selectedCities2 = elm.value" 
        #elm>
</p-multiSelect>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zoha Irshad

79180877

Date: 2024-11-12 11:25:14
Score: 4
Natty:
Report link

This Odoo data module module will help you: https://techfinna.com/odoo-data-model/

#odoo18 #datamodel

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

79180871

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

You need to add the following text to the strings.xml file:

<string name="text_today">Today is %1s</string>

Then there is:

val date = SimpleDateFormat("EEEE").format(Date())
textview.text = getString(R.string.text_today, date)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyễn Mạnh Cường

79180851

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

You might be interested in this: 'EncodeableFactory.GlobalFactory.AddEncodeableType(typeof(Opc.Complex.Types.YourComplexType))'

You will have to define (auto generate if possible) your complex type in your c# code beforehand.

This answer can point you in the right direction. It uses the custom complex 'Vector' type.

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

79180848

Date: 2024-11-12 11:17:12
Score: 0.5
Natty:
Report link

Both lastday and date list of a month:

    function mliste(y=2024,m=2){//Here 2 means February
        var lastday = new Date(y,m,0).getDate();
        var daylist=[...Array(lastday+1).keys()]; daylist.shift();  
        return daylist; 
        //return lastday; 
    }
    console.log(mliste());

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

79180841

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

Basically the problem is the android:windowIsTranslicent. More information here: android:@Theme.Translucent Locks orientation to Portrait?

To fix that either add android:screenOrientation="sensor" to the activity (only one in compose app) or find a different way to create a custom splash screen.

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

79180824

Date: 2024-11-12 11:08:09
Score: 2.5
Natty:
Report link

This issue is mostly caused by directories and sub-directories that have large files in them. You should use a heuristic approach as to how you deal with such situation. To determine the particular directory use the verbose tag(-v) with the git add command.

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

79180808

Date: 2024-11-12 11:05:08
Score: 3
Natty:
Report link

as a work-a-round i just created an ant step targeting a non existent "DUMMY_STOP". this was good enough for my purposes, just stoping the script at a desired location.

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

79180796

Date: 2024-11-12 11:00:07
Score: 2
Natty:
Report link

With the assumption you are actually running Keycloak, refer to this guide -https://www.keycloak.org/server/caching - where you find out that switching the JGroups stack for Infinispan is done by --cache-stack=tcp.

Reasons:
  • Blacklisted phrase (1): this guide
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rado

79180787

Date: 2024-11-12 10:58:06
Score: 1
Natty:
Report link

The border is always inner. So you can just add an opaque white border that fades out the background color like so:

Container(
  width: 200,
  height: 200,
  decoration: BoxDecoration(
    color: Colors.green,
    border: Border.all(
      color: Colors.white.withOpacity(0.5),
      width: 4,
    ),
    borderRadius: BorderRadius.circular(20),
  ),
),

Result:

enter image description here

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

79180780

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

The idea given by @Erwin_Kalvelagen is correct, however, if you really want to keep constraints linear we need to avoid product of two different variables appear in our formula. Here is a way to avoid using the deltas. Let's say I have two variables x and y and I want the constraint x≠y. So we need x<y or x>y. x>y is same as x-y=M for a positive M, so we add x-y-M=0 if your linear solver accepts equality for constraints (for example linprog from scipy.optimize) or x-y-M>=0 and putting the bound M>=1. But that's not the end, because if it was, then why not simply adding x-y>=0 without need of an extra auxiliary variable, M, right? Then for x<y, we use N, another positive number. x<y is same as x-y=-N or x-y+N<=0 together with N>=1. But we don't want both of them be satisfied together, because they can't. So what to do? I modify the bounds for M and N to be free (no lower or upper bound) instead of positive, but adding a new constraint M+N>=1, this will guarantee that at least one of them is positive, and because we know both can't be positive at the same time, it means exactly only one will become positive. Thus either x<y or y>x will happen and we have x≠y for sure.

To wrap up x≠y is the same as

x-y-M>=1,
x-y+N<=-1,
M+N>=1.

Of course you can play with it for example using y-x-N>=1 instead of the second line etc. Also I considered integer domain, you can play with it for the other domain scenarios.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Erwin_Kalvelagen
  • Low reputation (0.5):
Posted by: AmirHosein Sadeghimanesh

79180778

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

Just in case anyone comes across this (like I did) and had issues with long regeneration times despite using the incremental tag.

Turns out clearing the cache fixed it bundle exec jekyll clean

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