79367349

Date: 2025-01-18 14:53:54
Score: 3
Natty:
Report link

Ditched the simple-peer package for the browser's built-in RTCPeerConnection. Handled everything with peerConnection's exposed functions and conditions. Everything works and the feature is in production now.

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

79367345

Date: 2025-01-18 14:50:53
Score: 3.5
Natty:
Report link

Thanks alot to @kissu. The resolution is to refer to the .mjs file directly

import * as Dexie from 'dexie/dist/dexie.mjs';
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @kissu
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ian Teoh

79367343

Date: 2025-01-18 14:49:53
Score: 1
Natty:
Report link

Go into your terminal or cmd prompt and enter pip install pygame. This should install the pygame library onto your computer, allowing you to import it.

Edit: Also make sure you import it with: import pygame, all lowercase.

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

79367340

Date: 2025-01-18 14:48:52
Score: 1
Natty:
Report link

Try to check your client IP ether the addr with any IP addr checker like https://api.datascrape.tech/latest/ip or https://www.cloudflare.com/cdn-cgi/trace with and without proxy - the IP should be different. This way you will find out, whether the proxy is used or not.

If the proxy is used and you still limited by target WEB site - pay attention on your fingerprint like SSL fingerprints and TCP fingerprints. You can test them and find more info here https://datascrape.tech/tools/browser-leaks-test/

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

79367318

Date: 2025-01-18 14:30:49
Score: 1
Natty:
Report link

There's docker start, see 'How restart a stopped docker container' for the options of the command along the lines of docker start container_name.

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

79367310

Date: 2025-01-18 14:23:48
Score: 0.5
Natty:
Report link

Yes, there are several efficient ways to store Facebook profiles and their friend connections. Since the data essentially represents a graph structure (profiles as nodes and friendships as edges), the most appropriate storage methods revolve around graph-based data structures and databases. One approach is

  1. Graph Databases • Examples: Neo4j, ArangoDB, OrientDB • Description: Graph databases are designed to store and query graph-based data. They provide native support for nodes (profiles), edges (connections), and properties (e.g., profile attributes like name, age, etc.). • Advantages: • Optimized for traversing relationships (e.g., finding mutual friends, shortest paths). • Query languages like Cypher (Neo4j) make querying relationships intuitive. • Scalable for large social networks.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Praveen Ramanayake

79367306

Date: 2025-01-18 14:20:47
Score: 2.5
Natty:
Report link

MPC USES A SET OF PREVIOUS INPUTS(KNOWN AS HORIZON) TO COMPUTE A NEW SET OF MEASUREMENTS THROUGH OPTIMIZATION WHICH ARE ALSO USED AS PREDICTED NEXT STAGE INPUTS. A CONTROL MODEL IS DEFINED FOR YOUR PROBLEM AND A SET OF CONSTRAINTS FOR OPTIMIZATION.

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

79367304

Date: 2025-01-18 14:18:46
Score: 3.5
Natty:
Report link

I think it is a background issue. Use clyrbg.com and add the icon back

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

79367301

Date: 2025-01-18 14:17:46
Score: 1.5
Natty:
Report link

Powershell 3.0+

$wi = New-Object -Com WindowsInstaller.Installer
$wi.SummaryInformation("C:\PathTo\my.msi").Property(6)

Powershell 2.0

$WI = New-Object -ComObject WindowsInstaller.Installer
$SI = $WI.GetType().InvokeMember("SummaryInformation", "GetProperty", $null, $WI, @("C:\PathTo\my.msi"))
$SI.GetType().InvokeMember("Property", "GetProperty", $null, $SI, @(6))

6 = PID_COMMENTS
https://learn.microsoft.com/en-us/windows/win32/msi/summaryinfo-summaryinfo

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

79367294

Date: 2025-01-18 14:12:45
Score: 1.5
Natty:
Report link

Let me say hi to every ghorban in this community.I faced a similar issue while trying to create my own custom exception class. To make things easier, I created some macros to throw my custom exception. However, I made the mistake of forgetting to include #include in the macros file. This omission caused the compiler to fail in a rather confusing way. Adding the correct header resolved the issue. I actually have no idea what this mistake has to do with missing semicolon but i hope my excperience could help you guys too.

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

79367279

Date: 2025-01-18 14:07:44
Score: 3.5
Natty:
Report link

Md.Noman Hossain uzzul delete Facebook message conduction

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

79367274

Date: 2025-01-18 14:02:44
Score: 2.5
Natty:
Report link

I faced this issue with spring boot version 3.4.1. It turns out that correct version of spring-cloud-starter-openfeign needed to be used. For spring boot version 3.4.1, it was 2024.0.X. See the page Spring Cloud 2024.0.0

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

79367273

Date: 2025-01-18 14:01:43
Score: 2
Natty:
Report link

It turns out removing the conan installation done with the Windows installer and reinstalling conan with pip fixes the problem. Be sure to clear the caches. That's a pitfall

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

79367270

Date: 2025-01-18 14:00:43
Score: 0.5
Natty:
Report link

January 2025 Updated Solution

My setup uses uv for the package manager. uv is the fastest Python package manager, and VScode is the most common code editor.

To build a new venv with uv and VScode:

Open a new terminal

  1. mkdir folder_name
  2. cd folder_name
  3. uv init
  4. uv venv
  5. source .venv/bin/activate
  6. uv add ipykernel

Open the folder in VScode 7. Check Python and Jupyter VScode extension are installed and active. 8. Open a new .ipynb file. 9. Select venv kernel in right, top dropdown.(Select another kernel > venv in .venv folder) 10. For mac(OSX) > F1 (command pallette) > Python: Select interpreter > Select Python interpreter in .venv file.

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

79367269

Date: 2025-01-18 14:00:43
Score: 0.5
Natty:
Report link

Use minDate instead of startDate

'minDate' => date('d M', time())

Note: you need to specify the format you have in your widget. Also don't forget that this setting should be located in pluginOptions

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

79367266

Date: 2025-01-18 13:59:43
Score: 2.5
Natty:
Report link

This method has no effect on Android V. because android v used aidl method. I'm not sure if there is a similar function on Android V. I look forward to your answer.

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

79367264

Date: 2025-01-18 13:58:43
Score: 0.5
Natty:
Report link

Write this in your gradle.properties file

org.gradle.parallel=true
org.gradle.configuration-cache=true

It could improve build performance. If your project is bigger, you should split it into multiple modules.

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

79367255

Date: 2025-01-18 13:54:42
Score: 1
Natty:
Report link

I found that in compose ui 1.8.0-alpha08 added modifier stylusHoverIcon but I had not make it work. It supposed to be using like that:

Modifier.stylusHoverIcon(icon = PointerIcon.Hand, true)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max Lebedev

79367254

Date: 2025-01-18 13:53:41
Score: 2
Natty:
Report link

Gradle has always been written in groovy. Recently, they have updated it, so you can pick between Groovy and Kotlin. So if you select Gradle - Groovy, it will be the same as it has always been.

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

79367249

Date: 2025-01-18 13:50:40
Score: 7
Natty: 7.5
Report link

I don't have any answers I have a developer account that did not make all of my emails are connected even emailed outside of Google my phone's my TVs my computers everything my mom's phone her Wi-Fi my husband's phone his wife either all connected I didn't I don't know anything about this I don't know anything about phones or computers I didn't authorize it didn't tell anyone they could do it does anyone know what is going on????

Reasons:
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2): does anyone know
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brandy Irby

79367247

Date: 2025-01-18 13:49:39
Score: 1
Natty:
Report link

The answer below demonstrates how to configure the GIT repository to use the Python virtual environment to both run Python applications and be automatically activated in the bash terminal within VSCODE.

This includes using GIT commands in the bash terminal.

This way, you will never again need to worry about activating the venv.

Git Bash does not recognize Python virtual environment created by Poetry

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

79367246

Date: 2025-01-18 13:48:39
Score: 3
Natty:
Report link

Adding options.add_argument('--remote-debugging-pipe') fixed the issue.

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

79367229

Date: 2025-01-18 13:38:37
Score: 0.5
Natty:
Report link

For anyone still facing this issue, here is my solution (based on @ceifard solution):

In the parent component TS:

someObj = new TestObj();

protected getObjCopy(obj){
 return Object.create(obj);
}

In the parent component template:

<app-stuff [inputObj]="getObjCopy(someObj)"></app-stuff>

In AppStuffComponent TS:

ngOnChanges(changes: SimpleChanges){
 console.log("Changes to inputObj detected !");
}

What is nice here is that we are able to use the properties and methods of someObj in AppStuffComponent. A possible drawback is the performances, I did not check precisely.

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

79367227

Date: 2025-01-18 13:37:37
Score: 2
Natty:
Report link

same like onPageFinished there is a method called onPageStarted() by using that you can show your own custom loader before the loading

or else

domStorageEnabled = true;

mediaPlaybackRequiresUserGesture = false;

use this two to remove

let me know if you got it or not....

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

79367226

Date: 2025-01-18 13:37:37
Score: 2.5
Natty:
Report link

da537071facfff833ecf2d2f97b5f9ccf2cb5b6f b044a4d7db261351f51119aba035d03fba8ae436a6e430a03bcb6af458e3bbaf1df386734b3b1a47https://github.com/Sk4524/PingPong/blame/a6e430a03bcb6af458e3bbaf1df386734b3b1a47/PingPong.py

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Homestyle Cooking

79367214

Date: 2025-01-18 13:28:35
Score: 3
Natty:
Report link

i am not sure about the code .However if you use ternary operator ,it will be better .Just suggesting

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

79367213

Date: 2025-01-18 13:27:35
Score: 1
Natty:
Report link

Here's what I ended up doing. @wohlstad said "you can encapsulate a single boolean parameter (with current and previous values) in a class" and that gave me the idea to do this:

class MemorableVar {
    public: 
        MemorableVar() {
            x = false;
            prev_x = false;
        };

        // Setters:
        void set(bool x0) {prev_x = x; x = x0;};

        // Getters:
        bool get() {return x;};
        bool get_prev() {return prev_x;};
        bool changed() {return (x != prev_x);};

    private:
        bool x;
        bool prev_x;
};

In this approach, you use setters to control the variable value, and the previous value is remembered every time you do so.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @wohlstad
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: James Strieter

79367212

Date: 2025-01-18 13:26:34
Score: 4.5
Natty: 5.5
Report link

see https://ecourse.org/news.asp?which=6021 on how to use conda virtual environment in RStudio.

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

79367211

Date: 2025-01-18 13:26:34
Score: 3.5
Natty:
Report link
 const detailCellRenderer = useMemo(() => {
 return ({ data }: ICellRendererParams) => {
  const record: ReqCountDetailData = data;

 return (
    <RequestDetail reqTypeId={reqTypeId} MasterCode={record.Id}/>
  );
};

}, []);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (0.5):
Posted by: Sadegh Maasoomi

79367196

Date: 2025-01-18 13:20:32
Score: 3
Natty:
Report link

Check the .next directory and the mentioned chunk 675 to see if there is any issue with the code.

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

79367175

Date: 2025-01-18 13:04:29
Score: 1
Natty:
Report link

Solr is not running. You'll need to look in Tomcat's other logs to find out why. catalina.log is where I would start, but sometimes you'll also need to look in local.log. (These are not access logs.)

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

79367173

Date: 2025-01-18 13:02:28
Score: 1.5
Natty:
Report link

My two cents. We are @18.01.2025, i'm trying out MAUI .NET 9 version.

It seems sufficient to use IgnoreSafeArea="True" in the Grid or in other layouts to overwrite the Safe areas.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Lorenzo Melato

79367160

Date: 2025-01-18 12:52:26
Score: 3
Natty:
Report link

Because you're using await, you should be calling ListIndexesAsync instead of ListIndexes.

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

79367155

Date: 2025-01-18 12:48:25
Score: 1
Natty:
Report link

Yes, you can modify the name attribute in an XML file using XDT (XML Document Transform) by specifying a transform rule in your configuration file, such as:

<Template name="TemplatePath" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" name="TemplatePath1"/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahmed

79367149

Date: 2025-01-18 12:43:24
Score: 0.5
Natty:
Report link

A very simple solution that works with dynamic type: overlay your icon over another icon, e.g. a circle.

You can create a helper component to make this easier:

struct Icon: View {
    var name: String

    var body: some View {
        Image(systemName: "circle")
            .opacity(0)
            .overlay {
                Image(systemName: name)
            }
    }
}

preview of Icon component in use

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

79367148

Date: 2025-01-18 12:43:24
Score: 3
Natty:
Report link

Thank you so much for all the valuble inputs :) I will look into ggbraid::geom_braid and ggh4x::stat_difference and try to get it right.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Indy

79367132

Date: 2025-01-18 12:29:21
Score: 2.5
Natty:
Report link

This answer is more of a work-around. The first button defined in the dialog receives this highlighting. In my case I have seven pages of buttons. To resolve having one of the selections highlighted I reordered the button definitions. Since I have buttons to select the page to be displayed, I added those buttons first. Now when the dialog is displayed all the buttons are displayed without highlight except the page button. Since I initialize with page 1 viewed and that is the first button defined, all looks proper. I don't know the reason for this all but it does seem related to the default button for the dialog. I tested with various messages like DM_SETDEFID, BM_SETSTYLE and DM_SETDEFID but was never able to rid myself of the highlight. Another way might be to first create an unused button and make it invisible. For now, I have probably spent too much of your time fussing with this. I have the result I want in the app even if I lack understanding of the reason behind it.

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

79367125

Date: 2025-01-18 12:26:19
Score: 6.5 🚩
Natty: 5.5
Report link

How to control secondary display?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Test account

79367119

Date: 2025-01-18 12:23:16
Score: 6.5 🚩
Natty:
Report link

I am unable to install mysql package in my windows 11 so that cannot able to run mysql in python editor. Kindly help.

Reasons:
  • Blacklisted phrase (3): Kindly help
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Isita

79367116

Date: 2025-01-18 12:21:16
Score: 3.5
Natty:
Report link

Finally, i put a foreground service (at the same time than the existing WallpaperService) and disabled battery optimisation, and it seems to work, my WallpaperService stays alive

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

79367111

Date: 2025-01-18 12:18:15
Score: 1.5
Natty:
Report link

This is currently not possible but there is an open issue about it: https://github.com/microsoft/vscode/issues/41909

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Code on the Rocks

79367103

Date: 2025-01-18 12:13:14
Score: 1.5
Natty:
Report link

Unfortunately Amazon is one of the hardest websites to be scrape, UNLESS you are a professional scraper However you can start learning & use advanced Python packages like:

Selenium, Scrapy, undetected-chromedriver

Combined with

Residential proxies, Captcha solver

Have fun

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

79367093

Date: 2025-01-18 12:08:12
Score: 1
Natty:
Report link

When the extension stuck in installing restarting Vscode did not work for me and I could not go to the setting of that extension to disable it. But I found this method: One of the other methods is to disable this extension(while it is stuck in installation) with this option:

  1. Press Ctrl+Shift+X to see list of extensions. (Here you should see that specific extension says installing)
  2. On top of that panel (which opens on the left) click on 3 dots
  3. Click on Show Running Extensions

It opens a new page listing all extensions so you can uninstall that extension with right click.

It will solve the problem.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When the
  • Low reputation (0.5):
Posted by: Prof.Plague

79367086

Date: 2025-01-18 12:01:11
Score: 1
Natty:
Report link

As @Shawn and @fuz mentioned, adding a prefixing _ is required for all C code built for the macOS ABI.

Therefore, the corrected code would become:

    .global main                                                        // 1 
main:                                                                   // 2 
    stp     x21, x30, [sp, -16]!    // push onto stack                  // 3 
    mov     x21, x1                 // argc -> x0, argv -> x1           // 4 
                                                                        // 5 
top:                                                                    // 6 
    ldr     x0, [x21], 8            // argv++, old value in x0          // 7 
    cbz     x0, bottom              // if *argv == NULL goto bottom     // 8 
    bl      _puts                   // note that there is a `_`         // 9   
    b       top                     // goto top                         // 10 
                                                                        // 11 
bottom:                                                                 // 12 
    ldp     x21, x30, [sp], 16      // pop from stack                   // 13 
    mov     x0, xzr                 // return 0                         // 14 
    ret                                                                 // 15 
                                                                        // 16 
    .end         

Fixed part:

bl    _puts  // with the addition of the leading `_` 
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Shawn
  • User mentioned (0): @fuz
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Silicon

79367080

Date: 2025-01-18 11:58:11
Score: 3
Natty:
Report link

Allen Jose's solution worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raj Kumar Pandit

79367073

Date: 2025-01-18 11:53:10
Score: 1.5
Natty:
Report link
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Green Collect

79367071

Date: 2025-01-18 11:51:09
Score: 3
Natty:
Report link

You should use Jenkinsfile instead of Execute Shell

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

79367069

Date: 2025-01-18 11:50:09
Score: 1.5
Natty:
Report link

There is a problem with your Application code Here remove .* from annotation spring will read them as part of package and remove unnecessary annotations if your classes are the part of your subpackage ,EnableJpaRepositories EntityScan ComponentScan spring will read them automatically just use springbootApplication if they are not part of subpackage then use these annotations verify your package structure i think that's the issue .

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

79367067

Date: 2025-01-18 11:48:08
Score: 0.5
Natty:
Report link

For everyone coming here in search of an implementation:

I used the code snippet from the original question and wrote a command line tool for it. When compiled it takes n and m as command line arguments (with input parsing yoinked from https://stackoverflow.com/a/2797823/25165526)

I also included caching to drastically speed up run time. (for inputs n = 134, m = 32 it went from 44 seconds to 0.008 seconds)

#include <iostream>
#include <string>
#include <utility>
#include <unordered_map>
#include <boost/container_hash/hash.hpp>

long long p (long long n, long long m) {
    using pair = std::pair<int, int>;
    static std::unordered_map<pair, long long, boost::hash<pair>> cache = {};
    
    pair key = pair(n, m);
    if (cache.contains(key)) {
        return cache[key];
    }

    long long intermediate;
    if (n == m) {
        intermediate = 1 + p(n, m - 1);
        cache[key] = intermediate;
        return intermediate;
    }
    if (m == 0 || n < 0) {
        cache[key] = 0;
        return 0;
    }
    if (n == 0 || m == 1) {
        cache[key] = 1;
        return 1;
    }

    intermediate = p(n, m - 1) + p(n - m, m);
    cache[key] = intermediate;
    return intermediate;
}

int parse_arg(std::string arg) {
    try {
        std::size_t pos;
        int x = std::stoi(arg, &pos);
        if (pos < arg.size()) {
            std::cerr << "Trailing characters after number: " << arg << '\n';
        }
        return x;
    } catch (std::invalid_argument const &ex) {
        std::cerr << "Invalid number: " << arg << '\n';
    } catch (std::out_of_range const &ex) {
        std::cerr << "Number out of range: " << arg << '\n';
    }
    return -1;
}

int main(int argc, char *argv[]) {
    if (argc != 3) {
        std::cout << "Use with arguments <n> <k> where n is the target value and k is the maximum value a sum element may have" << std::endl;
        return -1;
    }

    // parse inputs
    int n, k;
    n = parse_arg((std::string) argv[1]);
    k = parse_arg((std::string) argv[2]);
    
    // calculate all possible sums
    long long possible_sums = p(n, k);

    std::cout << possible_sums << std::endl;
    return 0;
}

comopiled with:

g++ -std=c++20 -o integer_partition integer_partition.cpp
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user25165526

79367064

Date: 2025-01-18 11:46:08
Score: 2
Natty:
Report link

It seems that the app password on google was deleted (not by me). So I had to regenerate a new app password and it all working fine. Hope this helps anyone out there who comes across the same issue.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rncjay

79367060

Date: 2025-01-18 11:45:07
Score: 1.5
Natty:
Report link

As @Abra mentioned in the comment, you can try binding the preferred widths of the ComboBox and TextFields together in your start() method:

comboBox.prefWidthProperty().bind(textField1.widthProperty());
textField1.prefWidthProperty().bind(textField2.widthProperty());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Abra
  • Low reputation (0.5):
Posted by: Sithila Somaratne

79367052

Date: 2025-01-18 11:43:07
Score: 2
Natty:
Report link

Declare CarList cartList ; variable globally and assign value it in FutureBuilder, than you can easily access it anywhere in your dart file.

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

79367045

Date: 2025-01-18 11:40:06
Score: 2
Natty:
Report link

Just make sure your path leading to the file you want decompress does not include any whitespace in it. I renamed a folder that had whitespace and it solved the "Permission denied" issue for me.

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

79367040

Date: 2025-01-18 11:35:05
Score: 1.5
Natty:
Report link

Same error:

[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
  Download at https://visualstudio.microsoft.com/downloads/.
  Please install the "Desktop development with C++" workload, including all of its default components

I have Visual Studio Code installed, several times from -https://visualstudio.microsoft.com/downloads/-

Reasons:
  • RegEx Blacklisted phrase (1): Same error
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexey Gonzalez

79367039

Date: 2025-01-18 11:32:05
Score: 2.5
Natty:
Report link

No, my friend, you cannot run .NET Framework 4.8 on macOS because .NET Framework is not cross-platform like .NET Core or its later versions, now commercially known as .NET 5 through .NET 9. If you want to run .NET on a Mac, you'll need to upgrade your solution to .NET Core or a newer version of .NET

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

79367037

Date: 2025-01-18 11:28:03
Score: 1.5
Natty:
Report link

If you getting error like cannot find type "Your_Custome_class" in scope. Just Import the UIKit in project space. or the place you get the error.

for eg :

import Foundation import UIKit // I added this to fix my error.

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

79367034

Date: 2025-01-18 11:28:03
Score: 3
Natty:
Report link

Get-ADUser -Filter * -Properties * | Select-Object name, LastLogonDate, MemberOf | export-csv -path c:\temp\userexport.csv

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

79367021

Date: 2025-01-18 11:18:01
Score: 3
Natty:
Report link

Create a setup of your release .exe using "inno setup", then you can easily share to anyone.

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

79367014

Date: 2025-01-18 11:09:00
Score: 0.5
Natty:
Report link

It seems to me that all screens can be in a separate module, for example authentication modules, settings modules and others which consist of an implementation and an interface, the implementation will contain screens, dependency injection, business logic and the interface will provide the ability to run the required functionality. Other modules as needed will depend only on the interface module. As a result, there will be no screens in the :app module.

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

79367008

Date: 2025-01-18 11:08:00
Score: 2
Natty:
Report link

The HotTable component might fail to render with the "non-commercial-and-evaluation" license key if it's used outside its intended purpose, like creating Traffic Rider Mod APK stats tables. Ensure correct license usage, compatible versions of Handsontable, and valid implementation to display gameplay data like unlocked bikes, scores, and levels effectively.Click here for More Details

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

79366997

Date: 2025-01-18 10:56:57
Score: 3
Natty:
Report link

If you have pointers to vector-elements and you have not reserved space before push_back(), those pointer could get invalid, when the vector resizes and when it moves its element-addresses to more space.

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

79366996

Date: 2025-01-18 10:54:57
Score: 1
Natty:
Report link

I wrote a gradle-plugin to convert between Android translation strings.xml files and Excel which you can include your in android project:

android-translations-converter-plugin

With the task exportTranslationsToExcel you can export all your strings.xml to a single Excel file

With importTranslationsFromExcel you can import them back

Being a gradle-plugin you can easily automate it to run on every build or as a pre-commit. This is further described in the README.md

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

79366990

Date: 2025-01-18 10:50:56
Score: 1
Natty:
Report link

I think they are not the same as Gemini 1.5

Please try

from google import genai
from google.genai.types import Tool, GenerateContentConfig, GoogleSearch

google_search_tool = Tool(
    google_search = GoogleSearch()
)

response = client.models.generate_content(
    model=model_id,
    contents="When is the next total solar eclipse in the United States?",
    config=GenerateContentConfig(
        tools=[google_search_tool],
        response_modalities=["TEXT"],
    )
)

for each in response.candidates[0].content.parts:
    print(each.text)

This is updated reference document.

https://cloud.google.com/vertex-ai/generative-ai/docs/gemini-v2

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

79366988

Date: 2025-01-18 10:49:55
Score: 2
Natty:
Report link

I recently released a gradle plugin exactly for this purpose, to convert between android translations (strings.xml files) and Excel:

android-translations-converter-plugin

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

79366985

Date: 2025-01-18 10:47:55
Score: 2.5
Natty:
Report link

It seems like lastLessOne might conflict with AngularJS’s internal scope properties. Try renaming it to something more unique, like previousLast, and see if that resolves the issue. For more laughs and fun puns, check out https://allfunnypuns.com/ for the best collection of funny puns!

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

79366969

Date: 2025-01-18 10:34:52
Score: 0.5
Natty:
Report link

I'm the author of bun-plugin-html, and these errors are actually generated by bun-plugin-html, to let the user know if there has been issues with linking things! I'll make a release to add an option to suppress these errors. You can view the issue I've made for tracking this here.

Thank you for using bun-plugin-html!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bjorn Beishline

79366968

Date: 2025-01-18 10:34:52
Score: 3
Natty:
Report link

I just had to reactivate my Access Keys from the console

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

79366966

Date: 2025-01-18 10:33:52
Score: 1.5
Natty:
Report link

A better solution, which does allow one to upgrade to a more recent version of mapbox-gl, is defined here: https://stackoverflow.com/a/68468204/13702327

This allowed me to upgrade from [email protected] (where the above problem did not occur) to [email protected] (where it did). All without changing the version of node, which is at 18.x.

Note that in your test source structure you must define this before reaching code which loads any import of 'mapbox-gl'. If your mapbox-dependent code is structured in libraries, and your tests depend on those libraries, this will be when the library's index.ts is loaded - even in a test which does not specifically depend upon a mapbox-depending entity with that library.

So, per the linked answer, best to define it in a test-setup file.

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

79366964

Date: 2025-01-18 10:32:52
Score: 0.5
Natty:
Report link

Use sprintf("var_%02d", n) instead of paste0("var_", n) to name the columns, to ensure that leading zeroes are added to the column names (e.g. var_01, var_02, etc). Ordering should be easier after that (if needed at all). Change the 2 in %02d to the appropriate number of digits the numbering should have.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Zé Loff

79366959

Date: 2025-01-18 10:30:51
Score: 0.5
Natty:
Report link

i ended up just making a normal .js file in the /public folder and using it. the rest of the app was react based .jsx and when it build it makes a .js file that i can render in a popup using the content.js and background.js i made

i think that is the way i worked around the problem with but i'm not sure i leaved the project after some struggling with it

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

79366958

Date: 2025-01-18 10:30:50
Score: 13
Natty: 7.5
Report link

did you solve that problem?? i have same problem so if you did it can i get some source about that??

Reasons:
  • Blacklisted phrase (1): i have same problem
  • RegEx Blacklisted phrase (3): did you solve that problem
  • RegEx Blacklisted phrase (1.5): solve that problem??
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have same problem
  • Ends in question mark (2):
  • Starts with a question (0.5): did you solve that
  • Low reputation (1):
Posted by: Hong seongnam

79366955

Date: 2025-01-18 10:27:50
Score: 2
Natty:
Report link

for me the problem was that I had a folder as parent of the project folder and it was called "Cross Platform" and it called it "Cross" and then said that the folder doesn't exists which was true, I changed the folder name to "CrossPlatform" without space and the build ran well

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

79366950

Date: 2025-01-18 10:24:48
Score: 4
Natty:
Report link

You can set default profile to your custom profile and then Thunderbird will start your profile when you click mailto: link.


Click in menu Troubleshooting Information and go to about:profiles

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

79366949

Date: 2025-01-18 10:23:48
Score: 1.5
Natty:
Report link

You can get the required output by using range

mylist = ['X', 'Y', 'Z']
allvar = ''
for char in mylist: allvar += char
print (allvar)
XYZ
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emmanuel Eke

79366948

Date: 2025-01-18 10:23:46
Score: 9 🚩
Natty:
Report link

I have same issue not showing custom-theme colour, did you get the answer.

Reasons:
  • RegEx Blacklisted phrase (3): did you get the answer
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Harsh Singhal

79366945

Date: 2025-01-18 10:20:45
Score: 1
Natty:
Report link

This usually occurs when the Laravel application tries to call itself but fails to establish a connection. There are several ways to solve this problem:

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

79366939

Date: 2025-01-18 10:15:44
Score: 1
Natty:
Report link

Got it working now... It first worked, as I also clear the session by sign out the user. Now the session is deleted, user is signed out on app and got an error page. Here the user now can login again with new credentials

Can someone say, how secure this workaround is?

protected override async Task<InteractionResponse> ProcessLoginAsync(ValidatedAuthorizeRequest request)
{
    var user = request.Subject;
    var httpContext = _httpContextAccessor.HttpContext;

    //Check first if user was authenticated
    if (user == null || !user.Identity.IsAuthenticated)
    {
        return await base.ProcessLoginAsync(request);
    }

    var clientId = request.Client.ClientId;

    //Check if user has correct client access role which is defined in appsettings
    if (_clientAccessRoleConfig != null && _clientAccessRoleConfig.TryGetValue(clientId, out var requiredRoles))
    {
        var userRoles = user.FindAll(JwtClaimTypes.Role).Select(r => r.Value);

        if (!userRoles.Any(r => requiredRoles.Contains(r)))
        {
            //Call signout to logout the current login and clean the session
            var authenticationService = httpContext.RequestServices.GetRequiredService<IAuthenticationService>();
            await authenticationService.SignOutAsync(httpContext, "Identity.Application", null);

            //Redirect to error page
            return new InteractionResponse
            {
                Error = "Unauthorized",
                ErrorDescription = "No permission to access this app"
            };
        }
    }

    return await base.ProcessLoginAsync(request);
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
Posted by: Tobi

79366938

Date: 2025-01-18 10:14:44
Score: 2.5
Natty:
Report link

Please open my Facebook account https://www.facebook.com/m.12js?mibextid=rS40aB7S9Ucbxw6v

Mujhe page reload karna aata nahin Hai kripya aap hi karte Hain aur mera account open karde... Main pichhle 2 sal se koshish kar rahi hun main password bhul Gai hun 🙏

Reasons:
  • Blacklisted phrase (0.5): 🙏
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Manju Jhanwar Sharda

79366928

Date: 2025-01-18 10:10:43
Score: 5
Natty:
Report link

Redeem code You need 10 referrals to generate a code. Share this link to get referrals:

https://telegram.me/redeemai9651bot?start=7676402576

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dev Nag

79366918

Date: 2025-01-18 10:05:41
Score: 1.5
Natty:
Report link

I also faced this problem and I solved it by deleting the android/app folder in the framework.jar enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ferdinand Hu

79366917

Date: 2025-01-18 10:04:41
Score: 1
Natty:
Report link

The selected answer will not work if your directory contain space. In my case, one of the folders in my path contain space and the selected answer did not work for me. What worked was:

cd "path/to/folder/cont aining/classes" && java ClassName arg1 arg2 && cd %cd%

This will execute your class and still remain in your current working directory

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

79366915

Date: 2025-01-18 10:02:39
Score: 8 🚩
Natty: 5
Report link

I had the same problem on Windows. Could you tell me please, how you solve this problem, if you solve?

Reasons:
  • Whitelisted phrase (-1): I had the same
  • RegEx Blacklisted phrase (2.5): Could you tell me
  • RegEx Blacklisted phrase (1.5): solve?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Макс Попов

79366911

Date: 2025-01-18 10:00:38
Score: 0.5
Natty:
Report link

After a class with my teacher he told us where the problem is. It is the log_interval as with models DQN, PPO, SAC, TD3 the value of 1000 is to large. Default values can be found in library documentation, I just set it to 1 as that was fine for my goal in the assigment.

Keep in mind if you want to compare them at the same points in time you need to make another fix as for some models it counts as epoch so they dont make timestamps to tensorboard at the same time.

correct code:

model_ppo.learn(total_timesteps=350000,log_interval=1, progress_bar=True)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex Robert Petrovič

79366903

Date: 2025-01-18 09:55:37
Score: 0.5
Natty:
Report link

use Environment.NewLine(checked in MAUI)

String contact_str = "Contact: " + name;
String email_str = "Address: " + email;
String age_str = "Age: " + age;
DisplayAlert(contact_str + Environment.NewLine + email_str + Environment.NewLine + age_str);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Олег Ладыко

79366901

Date: 2025-01-18 09:55:37
Score: 1
Natty:
Report link

python3 -m pip show urllib3 python3 -m pip show requests

If the paths point to /usr/local/lib, these are overriding system packages. Remove the conflicting Python packages to avoid interference.

sudo pip3 uninstall urllib3 requests requests-toolbelt

Reinstall the certbot package to ensure all its dependencies are intact.

sudo apt update sudo apt install --reinstall certbot python3-certbot

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

79366900

Date: 2025-01-18 09:55:37
Score: 4
Natty: 4
Report link

pip install mysql-connector (works mostly)

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

79366897

Date: 2025-01-18 09:53:36
Score: 3.5
Natty:
Report link

It seems on latest Android Studio Ladybug | 2024.2.1 Patch 3 it's here:

Open selected file menu screenshot

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

79366887

Date: 2025-01-18 09:48:35
Score: 1
Natty:
Report link
 <TableBody>
    {table.getRowModel().rows?.length ? (
      table.getRowModel().rows.map((row, **index**) => (
        <TableRow
          key={row.id}
          data-state={row.getIsSelected() && 'selected'}
          **className={`${index % 2 === 0 ? 'bg-muted' : 'bg-transparent'}`}**
        >
          {row.getVisibleCells().map((cell) => (
            <TableCell key={cell.id}>{flexRender(cell.column.columnDef.cell, cell.getContext())}</TableCell>
          ))}
        </TableRow>
      ))
    ) : (
      <TableRow>
        <TableCell colSpan={columns.length} className='h-24 text-center'>
          No results.
        </TableCell>
      </TableRow>
    )}
  </TableBody>

light dark

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

79366886

Date: 2025-01-18 09:48:35
Score: 3.5
Natty:
Report link

remove type : "module" from package.json and you are good to go.

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

79366876

Date: 2025-01-18 09:44:34
Score: 1.5
Natty:
Report link

when you get error after typing:

from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "Your second variable is:", second print "Your third variable is:", third

just go to terminal and type: python (the file you've named .py) argv1 argv2 argv3

btw you can change argv1 argv2 argv3.. for example in the command terminal line I wrote: python ex13.py code type print

I'll get: python ex13.py The script is called: ex13.py Your first variable is: code Your second variable is: type Your third variable is: print

It's so easy but continue until the end, even with the nonsense fault in the terminal.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): when you
  • Low reputation (1):
Posted by: kaite

79366871

Date: 2025-01-18 09:42:33
Score: 1.5
Natty:
Report link

Uninstalling all of the env packages in pip and reinstalling python-dotenv resolved the issue.

pip uninstall python-dotenv
pip uninstall dotenv-python
pip uninstall load-dotenv
pip uninstall dotenv

pip install python-dotenv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: absolutebob

79366869

Date: 2025-01-18 09:41:33
Score: 1
Natty:
Report link

Most shared hosting providers don’t allow running Supervisor scripts, so if you're on shared hosting, cron jobs are the best alternative to handle Laravel jobs, queues, and scheduling. Here's how you can set it up:

  1. Using Cron Jobs for Queues

  2. Using Laravel Scheduler,

    php /project-path/artisan schedule:run >> /dev/null 2>&1

Budget Consideration If you or your client has the budget, consider moving to a VPS (Virtual Private Server). A VPS gives you full control over the server, allowing you to use Supervisor for managing queues more efficiently. It’s a better option for handling Laravel queues and jobs in production.

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

79366864

Date: 2025-01-18 09:39:32
Score: 2.5
Natty:
Report link

I have made the the output more descriptive, I interpreted the predictions by mapping them to the corresponding probability variable Check out my repo Introduction to AI with cs50

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

79366863

Date: 2025-01-18 09:39:32
Score: 2
Natty:
Report link

We did a similar migration only we migrated to rsbuild instead of rspack. Sice we also rely on react-intl and thus formatjs for internationalization we were facing a similar problem and if I am not mistaken we ran into the exact same or a similar error. We solved this by using @swc/plugin-formatjs using the following config in rsbuild.config (it should be very straightforward to apply this to rspack itself in a similar way):

...
tools: {
        swc: {
            jsc: {
                experimental: {
                    plugins: [
                        [
                            '@swc/plugin-formatjs',
                            {
                                idInterpolationPattern:
                                    '[folder]/[name].[ext]_[sha512:contenthash:base64:8]',
                                ast: true,
                            },
                        ],
                    ],
                },
            },
        },
    },
...

For us this currently only works with the 1.x.x version range of the @swc/plugins-formatjs plugin. At the moment any newer version we tried lead to a panic I described here: https://github.com/swc-project/swc/issues/5060. Other than that it seems to work fine.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar problem
  • Low reputation (1):
Posted by: momesana

79366857

Date: 2025-01-18 09:35:31
Score: 1.5
Natty:
Report link

Here, the fastest method I would say is to just use math. To do this, you need to put this line at the top of your program: import math

Then, this would be the syntax to check the square root: math.sqrt(num)

Another method with just regular arithmetic is to do num**(0.5), although I am pretty sure math.sqrt does it faster anyway.

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

79366856

Date: 2025-01-18 09:34:31
Score: 3
Natty:
Report link

It was a useful text, you can read my article for more information https://B2n.ir/w21124

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

79366851

Date: 2025-01-18 09:29:30
Score: 2.5
Natty:
Report link

That was good information after adding the if name == "main": and app.run(debug=True), I ran the server and viewed the webpage. I now have to correct the http files in the templates.

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

79366849

Date: 2025-01-18 09:28:30
Score: 1
Natty:
Report link

One option is that you can hide the message with a simple css code:

.hot-display-license-info {
    display: none;
}

But since this is not the answer I'm looking for, I'm not interested to go this way, but for others this may help them.

Be careful, as you're going to see a warning in the console (so this might not be a good thing to use in production)

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

79366844

Date: 2025-01-18 09:25:29
Score: 3
Natty:
Report link

Completely agree w the question asked - it defies the index constraint even in example with 20,100,10,12,5,13. Didn't understand the explanations

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

79366834

Date: 2025-01-18 09:18:27
Score: 1
Natty:
Report link

Many thanks to Andre: rollback to the previous version 16.0.18227.20162 of Office 2019 and disabling Office updates resolved the problem:

cd C:\Program Files\Common Files\Microsoft Shared\ClickToRun
officec2rclient.exe /update user updatetoversion=16.0.18227.20162
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bughater