79499972

Date: 2025-03-11 07:49:25
Score: 2
Natty:
Report link

Ok, i found the way to do that. using the following command:

npx create-vite@latest my-app-name --template react

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

79499971

Date: 2025-03-11 07:49:25
Score: 1.5
Natty:
Report link

You can also write this way...and this is for typescript code const userSchema = new mongoose.Schema({ username: String, email: String, password: String, firstname: String, lastname: String, mobile: { type: Number, validate: { validator: function (v: number) { return /d{10}/.test(v.toString()); }, message: "mobile number must be exactly 10 digits" }, }, });

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

79499955

Date: 2025-03-11 07:37:23
Score: 2
Natty:
Report link

The culprit for this was the log_subcmds option in sudoers, which itself uses ptrace and seccomp and has some documented limitations.

Thanks to DymOK on the TrueNAS forum who figured this out.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ab.

79499948

Date: 2025-03-11 07:35:22
Score: 11.5 🚩
Natty: 6
Report link

I face the same issues. Has anybody found any solutions?

I start a new project (maui .net8), i change the svg files (Colors, etc.) and in android everything works but in IOS the purple .NET icon & splash screen remains the same when i run app in local device.

Has anybody resolved this?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1.5): resolved this?
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I face the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Konstantinos Anagnostopoulos

79499945

Date: 2025-03-11 07:35:22
Score: 1.5
Natty:
Report link

Run and debug -> uncheck raised exception, uncaught exception

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79499929

Date: 2025-03-11 07:28:21
Score: 1
Natty:
Report link

As a workaround I manage to use dynamic sql:

CREATE OR REPLACE PROCEDURE p_json_test(v_id_1 NUMBER, v_id_2 NUMBER) IS
    v_sql VARCHAR2(4000);
BEGIN
    v_sql := 'INSERT INTO JSON_RESAULT_TABLE
              SELECT ID, JSON_OBJECT(*)
              FROM JSON_TABLE
              WHERE ID IN (:1, :2)';

    EXECUTE IMMEDIATE v_sql USING v_id_1, v_id_2;
END;
/

execute p_json_test(1, 2);

This approach solve an issue

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

79499923

Date: 2025-03-11 07:25:20
Score: 5
Natty: 4
Report link

Is there any way to convert rdf:PlainLiteral to string, the exception thrown by the swrl built-ins

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Sakshi

79499920

Date: 2025-03-11 07:23:19
Score: 3.5
Natty:
Report link

My facebook account is disabled please recover my id I don't done anything my account was hacked few days earlier

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

79499905

Date: 2025-03-11 07:16:17
Score: 6 🚩
Natty: 6
Report link

@christopher moore, thanks for your response

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @christopher
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Emmanuel Sharp

79499902

Date: 2025-03-11 07:14:16
Score: 1
Natty:
Report link

In my case(5.2.2) just replace in config.inc.php cookie to config and add 2 lines like bellow:

/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root'; //add this line
$cfg['Servers'][$i]['password'] = 'root'; //add this line
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahzar Mazhar

79499901

Date: 2025-03-11 07:13:16
Score: 3.5
Natty:
Report link

Like if you want to install, configure and start fail2ban, this can be done in 2 ways:

First one is to do it making sub-tasks:

enter image description here

The other way is do make sub-roles:

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: Omer

79499897

Date: 2025-03-11 07:08:15
Score: 2
Natty:
Report link

Haha....
The json was wrong:
{ title: "event2", start: "2025-03-15" }

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

79499894

Date: 2025-03-11 07:07:15
Score: 2.5
Natty:
Report link

I changed int argc, char *argv[] in the class constructor to int& argc, char **argv and everything worked

This solution was found when I tried to create a second window of the application

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

79499884

Date: 2025-03-11 07:02:14
Score: 3.5
Natty:
Report link

Try below things

1-canny edge detection method

2-template matching

3-edge detection

4-Hough circle transform

These must work, do let me know if you have any questions, cheers!

Reasons:
  • Blacklisted phrase (1): cheers
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Basavaraj Kalburgi

79499880

Date: 2025-03-11 07:01:13
Score: 6 🚩
Natty: 5
Report link

@Imran, How to replicate the same postman process in python. i am not able to get proper documentation on using confidentialclient library from msal.

Reasons:
  • Blacklisted phrase (1): i am not able to
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Imran
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: arunava manna

79499870

Date: 2025-03-11 06:55:12
Score: 1
Natty:
Report link

Use below commands in VS Code (PowerShell)

Remove-Item -Recurse -Force node_modules
Remove-Item -Force package-lock.json
npm install --legacy-peer-deps

NOTE: This will reset any issue and redownload the required items again.

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

79499863

Date: 2025-03-11 06:53:12
Score: 3
Natty:
Report link

The issue could also be a setting in VScode that selects language-specific themes. You can change that in your settings.json

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

79499861

Date: 2025-03-11 06:53:12
Score: 0.5
Natty:
Report link

Why the Error Occurs?

The issue occurs because the original approach uses:

None
if df_obsFinding["Rejection_Comments"] is None
else df_obsFinding["Rejection_Comments"].apply(len) != 0

However, the condition df_obsFinding['Rejection_Comments'] is None does not check each row individually. Instead, it evaluates wherther the entier column object is None, which will never be the case. As a result, the code proceeds to the else part and calls .apply(len). This iterates over the entier column, and when it encounters None values, it results in:

TypeError: object of type 'NoneType' has no len()

Correct Approach

To fix this, we must check each element in the column individually using apply(lambda x: isinstance(x, list) and len(x) != 0

Solution
df_ofComment = df_obsFinding.loc[
        (
            df_obsFinding["Comments"].apply(
                lambda x: isinstance(x, list) and len(x) != 0
            )
        )
        | (
            df_obsFinding["Rejection_Comments"].apply(
                lambda x: isinstance(x, list) and len(x) != 0
            )
        )
    ]
How this works?

isinstance(x, list) ensures x is a list before calling len(x). This is avoiding the errors from None values.
len(x) != 0 filters out empty lists.
✅ The logical OR (|) selects rows where either Comments or Rejection_Comments contain a non-empty list.


Handling Other Data Types (e.g., Strings)

If Comments or Rejection_Comments might contain strings, we should also check for str:

df_ofComment = df_obsFinding.loc[
        (
            df_obsFinding["Comments"].apply(
                lambda x: isinstance(x, (list, str)) and len(x) != 0
            )
        )
        | (
            df_obsFinding["Rejection_Comments"].apply(
                lambda x: isinstance(x, (list, str)) and len(x) != 0
            )
        )
    ]

Note: This ensures the solution works even if Comments or Rejection_Comments contain strings instead of lists.

Example

Input DataFrame


import pandas as pd

df_obsFinding = pd.DataFrame(
        data={
            "Post_Name": [
                "First Post",
                "Second Post",
                "Third Post",
                "Fourth Post",
                "Fifth Post",
            ],
            "Comments": [[], [1234], [1234], [], []],
            "Rejection_Comments": [None, [], [657], "Needs Review", [987]],
        }
    )

Data Preview

Post_Name Comments Rejection_Comments
First Post [] None
Second Post [1234] []
Third Post [1234] [657]
Fourth Post [] Needs Review
Fifth Post [] [987]

Filtered DataFrame (df_ofComment)

Post_Name Comments Rejection_Comments
Second Post [1234] []
Third Post [1234] [657]
Fourth Post [] Needs Review
Fifth Post [] [987]
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why the
  • Low reputation (1):
Posted by: Shevan Fernando

79499855

Date: 2025-03-11 06:50:11
Score: 2
Natty:
Report link

I'm having the same issue. I have set up Apache APISIX and its dashboard using Docker on Windows . The dashboard loads, but when I try to log in, it redirects back to the login page without any error message.

Login Error Screen Shot

docker-compose.yml

services:
  apisix:
    image: apache/apisix:${APISIX_IMAGE_TAG:-3.11.0-debian}
    restart: always
    volumes:
      - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
    depends_on:
      - etcd
    ##network_mode: host
    ports:
      - "9180:9180/tcp"
      - "9080:9080/tcp"
      - "9091:9091/tcp"
      - "9443:9443/tcp"
      - "9092:9092/tcp"
    networks:
      apisix:
 
  etcd:
    image: bitnami/etcd:3.5.11
    restart: always
    volumes:
      - etcd_data:/bitnami/etcd
    environment:
      ETCD_ENABLE_V2: "true"
      ALLOW_NONE_AUTHENTICATION: "yes"
      ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
      ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
    ports:
      - "2379:2379/tcp"
    networks:
      apisix:

  web1:
    image: nginx:1.19.0-alpine
    restart: always
    volumes:
      - ./upstream/web1.conf:/etc/nginx/nginx.conf
    ports:
      - "9081:80/tcp"
    environment:
      - NGINX_PORT=80
    networks:
      apisix:

  web2:
    image: nginx:1.19.0-alpine
    restart: always
    volumes:
      - ./upstream/web2.conf:/etc/nginx/nginx.conf
    ports:
      - "9082:80/tcp"
    environment:
      - NGINX_PORT=80
    networks:
      apisix:

  prometheus:
    image: prom/prometheus:v2.25.0
    restart: always
    volumes:
      - ./prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
    ports:
      - "9090:9090"
    networks:
      apisix:

  grafana:
    image: grafana/grafana:7.3.7
    restart: always
    ports:
      - "3000:3000"
    volumes:
      - "./grafana_conf/provisioning:/etc/grafana/provisioning"
      - "./grafana_conf/dashboards:/var/lib/grafana/dashboards"
      - "./grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini"
    networks:
      apisix:

  

  dashboard:
    image: apache/apisix-dashboard:latest
    restart: always
    depends_on:
      - apisix
      - etcd
    volumes:
      - ./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
    ports:
      - "9000:9000"
      - "9001:9001"
    networks:
      apisix:


networks:
  apisix:
    driver: bridge

volumes:
  etcd_data:
    driver: local

apisix_conf/config.yaml

apisix:
  node_listen: 9080              # APISIX listening port
  enable_ipv6: false

  enable_control: true
  control:
    ip: "0.0.0.0"
    port: 9092

deployment:
  admin:
    allow_admin:               # https://nginx.org/en/docs/http/ngx_http_access_module.html#allow
      - 0.0.0.0/0              # We need to restrict ip access rules for security. 0.0.0.0/0 is for test.

    admin_key:
      - name: "admin"
        key: edd1c9f034335f136f87ad84b625c8f1
        role: admin                 # admin: manage all configuration data

      - name: "viewer"
        key: 4054f7cf07e344346cd3f287985e76a2
        role: viewer

  etcd:
    host:                           # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
      - "http://etcd:2379"          # multiple etcd address
    prefix: "/apisix"               # apisix configurations prefix
    timeout: 30                     # 30 seconds

plugin_attr:
  prometheus:
    export_addr:
      ip: "0.0.0.0"
      port: 9091

dashboard_conf/conf.yaml



conf:
  listen:
    host: 0.0.0.0
    port: 9000
  etcd:
    endpoints:
      - http://etcd:2379
  log:
    error_log:
      level: debug   # Change to "debug" to see more details
      file_path: /usr/local/apisix-dashboard/logs/error.log
    access_log:
      file_path: /usr/local/apisix-dashboard/logs/access.log


  authentication:
    secret: secret_123              # secret for jwt token generation.
                        # NOTE: Highly recommended to modify this value to protect `manager api`.
                        # if it's default value, when `manager api` start, it will generate a random string to replace it.
    expire_time: 3600     # jwt token expire time, in second
    users:
      - username: admin   # username and password for login `manager api`
        password: admin123
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm having the same issue
  • Low reputation (1):
Posted by: MUDASAR ROUF

79499852

Date: 2025-03-11 06:48:11
Score: 0.5
Natty:
Report link

In Windows open task manager then end the tasks for adb.exe and then restart your pc then reopen your android studio. That worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: aida

79499847

Date: 2025-03-11 06:47:11
Score: 1.5
Natty:
Report link

my solution was


if (!app.Environment.IsProduction())
{
    app.Use((context, next) =>
    {
        context.Request.Scheme = "https";
        return next(context);
    });
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ward

79499846

Date: 2025-03-11 06:47:11
Score: 0.5
Natty:
Report link

In Windows open task manager then end the tasks for adb.exe. i restarted my pc and That worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: aida

79499844

Date: 2025-03-11 06:46:11
Score: 3.5
Natty:
Report link

Simply restarting the laptop helped me. Not sure if there was some cache issue.

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

79499838

Date: 2025-03-11 06:37:09
Score: 5
Natty:
Report link

Following your feedback, I looked at the ConsumeKafkaRecord and I think that yes you're right I could apply the following Flow: ConsumeKafkaRecord(ScriptedReader, CSVWriter) => MergeContent => UpdateAttributes => PutFile.

1/ In the ConsumeKafkaRecord, I'd like to use a ScriptedReader to convert and modify the json message and a CSVWriter to write the new message.

2/ MergeContent to merge the stream files.

3/ UpdateAttributes to change the file name.

4/ PutFile to write the file

The only problem is the header I want to write to the CSV file, as I only want one header.

Do you agree with this flow?

Thanks a lot.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Patrick Baie

79499833

Date: 2025-03-11 06:36:08
Score: 1
Natty:
Report link

To crawl a face image using Google Image Search engine, follow these steps:

1. Use Reverse Image Search

2. Use Google Lens

3. Automate with Python (For Crawling at Scale)

Crawling face images without consent may violate privacy laws. Always follow ethical and legal guidelines.

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

79499825

Date: 2025-03-11 06:32:07
Score: 1.5
Natty:
Report link

There 3 types of repos. you can delete like below.

local repo -> git branch -d branch_name

origin repo-> git branch --delete --remotes origin/branch_name

upstream repo-> git branch --delete --remotes upstream/branch_name

source : https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/delete-remote-Git-branches-github-gitlab-bitbucket-tracking-local

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

79499816

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

I have not looked into this specifically from the APS side of things, but The Building Coder shares quite a few posts on setting up section boxes:

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

79499807

Date: 2025-03-11 06:23:05
Score: 3.5
Natty:
Report link

Check the newest suggested standards here: https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

Sorry, I can't find the about:blank sniffing technique that was referred to by ruakh

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

79499803

Date: 2025-03-11 06:21:05
Score: 1.5
Natty:
Report link
@Service("customuserdetails")
public class CustomUserDetails implements UserDetailsService {
    @Autowired
    private UserRepo userrepo;
 
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {   
        Supplier<UsernameNotFoundException> s= () -> new UsernameNotFoundException("Error finding the user");
        
        User user=userrepo.findByUsername(username).orElseThrow(s);
        return user;
    }}

This is the implementation which is working. I had to change my security beans to @configuration, and I added @repository to my repo interfaces. I also ended up changing my User class to implement UserDetails.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @configuration
  • User mentioned (0): @repository
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Fitz chivalry farseer

79499782

Date: 2025-03-11 06:10:02
Score: 4
Natty:
Report link

Here is a demo given by react flow on how to download a diagram as image https://reactflow.dev/examples/misc/download-image

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

79499781

Date: 2025-03-11 06:10:02
Score: 2
Natty:
Report link

We and our 94 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may find out more about the purposes for which we and our partners use cookies or exercise your preferences by clicking the ‘Cookie Settings’ button below. You can revisit your consent choices or withdraw consent at any time by clicking the link to your cookie settings in our Cookie Policy. These choices will be signaled to our partners and will not affect browsing data.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lynette Sewell

79499776

Date: 2025-03-11 06:06:00
Score: 4
Natty: 4.5
Report link

I too faced a similar issue when using parallel stream API.

Below is the scenario; I have a list of transaction objects in reader part of a spring batch , when this list if passed to processor, used parallel stream to process the transaction object in a multi threaded mode. but unfortunately, the parallel stream is not consistent. it is skipping the records at times.

Any fix added in java.util.stream API?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ram

79499769

Date: 2025-03-11 05:58:59
Score: 1.5
Natty:
Report link

Use a set instead of an array for storing the visited nodes. Sets have O(1) lookup time, resulting in a total time complexity of O(n) for your algorithm, which is otherwise correct.

As for the statement that "going from node a to b to a isn't a cycle",

This is true if you consider simple graphs only and have to use the same edge twice, in multigraphs you may have more than one edge connecting a and b in which case a-b-a over distinct edges counts as a cycle.

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

79499762

Date: 2025-03-11 05:55:58
Score: 1.5
Natty:
Report link

Might be unrelated but I just had an experience with this, and the problem I had was the directory it was trying to build in which at that time was the Desktop, I've changed into a subfolder and it worked without any other steps required.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vlad Pop

79499756

Date: 2025-03-11 05:52:57
Score: 1
Natty:
Report link

Use importlib.util for a clean check Let me know if this code works for you.

import importlib  
if importlib.util.find_spec("library_name") is not None:  
    print("Installed")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikas Anand

79499752

Date: 2025-03-11 05:50:57
Score: 3.5
Natty:
Report link

Body must be at least 30 characters; you enteredBody must be at least 30 characters; you enteredBody must be at least 30 characters; you entered

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

79499746

Date: 2025-03-11 05:48:57
Score: 2
Natty:
Report link

enter image description hereHere it is, tune.

It also has other siblings such as tune_outline, tune_rounded, tune_sharp.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Covenant T. Junior

79499744

Date: 2025-03-11 05:47:56
Score: 3
Natty:
Report link

You can try again But now upgrade the ext.kotlin_version in this code and give me feedback if it is Run.

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

79499743

Date: 2025-03-11 05:47:56
Score: 1
Natty:
Report link
  1. Remove flexGrow: 1 from contentContainerStyle
  2. Setstyle={{flex:1}} on flatlist
  3. Ensure all parent view have flex:1
  4. Avoid Wrapping Flatlist inside another Scrollview
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mahammad Momin

79499724

Date: 2025-03-11 05:30:53
Score: 3
Natty:
Report link

I found that the methods mentioned in other answers are either unavailable on the online website or too complicated to operate. Let me recommend the latest available method I found. It supports removing line numbers and controlling fonts.

It can solve the problem of code display effect in Word.

https://www.codeinword.com/

example:

enter image description here

enter image description here

enter image description here

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

79499720

Date: 2025-03-11 05:29:53
Score: 1.5
Natty:
Report link

The 80 column IBM punch cards can contain binary data with each column representing a full binary byte. I used this all the time to output binary data. A compiler or assembler can produce and Object deck of cards, which is fed into a linker for execution. The obj was binary information. The object deck had different record types, the most typical format was the TXT record (https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=output-txt-record-format)

there also was a REP type which allowed you to patch an object deck on the fly. I did this on an IBM 360 & 370 machines

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

79499717

Date: 2025-03-11 05:28:53
Score: 2.5
Natty:
Report link
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ZONGLUN YUE

79499716

Date: 2025-03-11 05:27:53
Score: 0.5
Natty:
Report link

Use the reflect package to reduce this type of duplication.

// GetJsons decodes the JSON responses to the slice pointed
// to by target. The target argument must be a pointer to 
// a slice of cheese.
func GetJsons(urls []string, target any) []error {
    errors := make([]error, len(urls))
    v := reflect.ValueOf(target).Elem()
    v.Set(reflect.MakeSlice(v.Type(), len(urls), len(urls)))
    var wg sync.WaitGroup
    wg.Add(len(urls))
    for i, url := range urls {
        go func() {
            defer wg.Done()
            errors[i] = GetJson(url, v.Index(i).Addr().Interface())
        }()
    }
    return errors
}

Replace calls to GetJsonAs*Multiple with calls to GetJsons:

var hashmaps []Map
errors := GetJsons(urls, &hashmaps)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Cathy Wood

79499713

Date: 2025-03-11 05:22:52
Score: 1
Natty:
Report link

I spent several days researching and trying to determine why it was serving what appeared to be a cached instance of this file. Since I was at the end of my rope, I decided why not increment the version of the library and see what happens.

I incremented the package version from 0.0.1-alpha.0 to 0.0.1-alpha.1.

I then re-packaged the library and updated the dependency link in the workspace to reference the new version of the identity.worker tar ball.

Spooled up karma jasmine and executed some tests. to my surprise the karma dev server served the updated file.

The take away from this is in order for karma dev and maybe the angular dev environment to serve an updated file from a node modules location, the package version must be incremented.

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

79499705

Date: 2025-03-11 05:12:50
Score: 0.5
Natty:
Report link

Many of companies policies have restricted use of NVM on windows due to several reasons. In such cases there is another way we can manage multiple versions on windows.

First uninstall all node versions from your system control panel. Then you need to either download the binary / archived versions from the node page.

Download from here https://nodejs.org/en/download

If you don't found your exact version from above page then please check from node dist - https://nodejs.org/dist/

Then unzip the downloaded file, now add the location of unzip folder to path variable inside System environment variable.

NOTE : You need to close and restart all terminals to affect the changes.

If you need to change the version just update path variable to point point out another version location inside System environment variable and ready to use.

enter image description here

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

79499702

Date: 2025-03-11 05:09:50
Score: 2.5
Natty:
Report link

I have this problem when I use different wifi, I can't make calls to each other, but when I connect to the same network, I can still make calls to each other. I don't know what's wrong, I hope everyone can help me. This is my source code.

Code Fe:
https://github.com/qminhminh/test_call_video_webrtc
BE:
https://github.com/qminhminh/call_wbrtc_server

ERROR LOG
👍
016:064][60451] (stun_port.cc:460): Port[4918800:0:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[4918800:0:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:460): Port[4918e00:0:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[4918e00:0:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:607): UDP send of 20 bytes to host demo.espitek.com:3478 (14.224.216.x:3478) failed with error 0 : [0x00000031] Can't assign requested address
[016:064][60451] (stun_port.cc:460): Port[49a2600:1:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
[016:064][60451] (basic_port_allocator.cc:1118): Port[49a2600:1:1:0:host:Net[en1:2405:4803:b48b❌x❌x:x/64:Wifi:id=2]]: Port completed gathering candidates.
[016:064][60451] (stun_port.cc:607): UDP send of 20 bytes to host demo.espitek.com:3478 (14.224.216.x:3478) failed with error 0 : [0x00000031] Can't assign requested address
[016:064][60451] (stun_port.cc:460): Port[49a2c00:1:1:0:host:Net[lo0:0:0:0❌x❌x:x/128:Loopback:id=4]]: StunPort: stun host lookup received error 8

016:128][60451] (turn_port.cc:877): Port[601ea00:0:1:0:relay:Net[lo0:127.0.0.x/8:Loopback:id=3]]: Failed to send TURN message, error: 49
[016:128][60451] (turn_port.cc:1348): Port[601ea00:0:1:0:relay:Net[lo0:127.0.0.x/8:Loopback:id=3]]: TURN allocate request sent, id=484861424a35586a6d786465
[016:128][60451] (turn_port.cc:396): Port[6134000:1:1:0:relay:Net[en1:192.168.1.x/24:Wifi:id=1]]: Trying to connect to TURN server via udp @ demo.espitek.com:3478 (14.224.216.x:3478)

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have this problem
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: quang minh

79499698

Date: 2025-03-11 05:06:49
Score: 3
Natty:
Report link

I just face the same problem. There's probably not id but instance. You'll may resolve relate form's model to database table's Model

forms.py

from .models import DbTable # DbTable is your database table

def StudentRequestForm(forms.ModelForm):
/* your many forms */
class Meta:
    model = DbTable
    fields = '__all__' 
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same problem
  • Low reputation (1):
Posted by: BRSO

79499695

Date: 2025-03-11 05:04:49
Score: 0.5
Natty:
Report link

To connect Godaddy domain with Firebase Hosting with www redirect:

(Process to point www.yourdomain.com -> yourdomain.com)

  1. Goto Godaddy portal -> Forwarding -> Subdomains -> Add Forwarding -> Enter subdomain as www -> Add destination url as yourdomain.com

  2. Step 1 will add two A records

  3. Goto Firebase hosting -> Connect Domain -> Enter domain yourdomain.com -> Connect

  4. Add the A and TXT records provided by Firebase in the DNS records on Godaddy portal.

This steps worked for me & should solve the issue.

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

79499694

Date: 2025-03-11 05:03:49
Score: 2
Natty:
Report link

Can you try if below code chunk works?

WHERE sets.importDate >= :beginDate AND (sets.importDate <= :endDate OR :endDate IS NULL)
Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Amit K.

79499684

Date: 2025-03-11 04:54:47
Score: 5.5
Natty:
Report link

Thank you for outlining the issue you’ve been experiencing with the sheet metal bends and the beveling on the edge of the bend line. I understand that this slight bevel is causing a double cut during the laser cutting process, which can be quite challenging.

Regarding your question about using the InventorServer API, we will study the feasibility of extracting just the top or bottom face of the flat pattern using the API in combination with Forge. To better understand your specific situation and provide the most accurate solution, we would appreciate it if you could provide more details, such as:

  1. The specific version of Inventor you are using.

  2. Any sample data set or files where the beveling issue is occurring (if non-confidential and permissible).

  3. Any additional context on how you are currently exporting the flat pattern via DataIo.

  4. A video demonstrating the issue would be particularly helpful.

Once we have more information, we can explore possible solutions and API functionalities to address the problem.

Looking forward to your response.

Thanks and regards,

Chandra shekar G

Developer Advocate

Autodesk Platform Services (formerly Forge)

Stay updated with Autodesk Platform Services!

DevCon 2025 goes to Amsterdam! Join us - https://autode.sk/4eWNw66

Follow us on LinkedIn | YouTube
Subscribe to our Newsletter | Explore Tutorials & Code Samples
Join our Upcoming Events

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1.5): Looking forward to your
  • Blacklisted phrase (1.5): would appreciate
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chandra6ma

79499662

Date: 2025-03-11 04:33:43
Score: 1.5
Natty:
Report link

A 301 redirect means that the move is permanent.

  1. The browser caches the new URL and does not request the old one again.

  2. Search engines update their index, replacing the old URL with the new one.

  3. The new URL inherits the SEO ranking of the old URL.

A 302 redirect means that the move is temporary.

  1. The browser does not cache the new URL.

  2. Search engines do not update their index; they continue using the old URL.

  3. Each time the user requests the old URL, they get redirected again.

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

79499653

Date: 2025-03-11 04:23:41
Score: 3.5
Natty:
Report link

Not enough rep to post a comment so I'm writing an answer.

Sounds like you could have an SSH configuration mismatch between your /etc/ssh/sshd_config file on your Pi, and your /etc/ssh/ssh_config file on your Mac.

Can you post the uncommented text from your Pi's sshd_config file, your Mac's ssh_config file, and the ssh_config file from another computer that can successfully connect?

That should give us some starting information to debug what might be going on and I can edit my answer as we go.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you post
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: warp9000

79499650

Date: 2025-03-11 04:21:40
Score: 0.5
Natty:
Report link

If there is an issue when the form is rendering improperly due to css, then make sure that /static/ is same with STATIC_URL setting


css = {'all': ('/static/admin/css/widgets.css',), }

Reference https://www.dangtrinh.com/2014/01/django-use-django-admin-apps.html

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

79499635

Date: 2025-03-11 04:04:37
Score: 1
Natty:
Report link

After some try-and-error, I found a simple solution.

At the .env file, just add this

_PIP_ADDITIONAL_REQUIREMENTS=apache-airflow-providers-oracle 

and run the

docker compose up -d 

command will do.

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

79499622

Date: 2025-03-11 03:58:36
Score: 1.5
Natty:
Report link

I had the same problem, then i updated the drivers and restarted the computer. It worked.

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

79499620

Date: 2025-03-11 03:55:35
Score: 6.5 🚩
Natty:
Report link

Like your post, thanks for sharing

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fuver Viet Nam

79499617

Date: 2025-03-11 03:48:33
Score: 1
Natty:
Report link

As per official doc, you can override or change the default user agent the browser uses

export default defineConfig({
  e2e: {
    ...,
    userAgent: 'Mozilla/5.0 ~',
  },
  ...
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CHOI

79499609

Date: 2025-03-11 03:40:32
Score: 4
Natty: 4
Report link

Creating and Publishing React Npm Packages simply using tsup https://medium.com/@sundargautam2022/creating-and-publishing-react-npm-packages-simply-using-tsup-6809168e4c86

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sundar Gautam

79499591

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

First, you can check the devices that is available for inference.

import openvino as ov

core = ov.Core()

core.available_devices

Note that GPU devices are numbered starting at 0, where the integrated GPU always takes the id 0 if the system has one. For instance, if the system has a CPU, an integrated and discrete GPU, we should expect to see a list like this: ['CPU', 'GPU.0', 'GPU.1'].

If the GPU doesn't appear on the list, we would need to follow the steps below to configure your GPU drivers to work with OpenVINO.

The steps you can refer to this links in order to get the latest update.

https://docs.openvino.ai/2024/get-started/configurations/configurations-intel-gpu.html

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

79499586

Date: 2025-03-11 03:17:27
Score: 6 🚩
Natty: 5.5
Report link

https://rajrock38.medium.com/lost-your-uncommitted-changes-in-git-there-is-a-fix-2357ef58466 thank me later for sharing answer

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hemil

79499571

Date: 2025-03-11 03:03:24
Score: 1
Natty:
Report link

I had this problem today. Solved it by calling tcpip_init() before calling pppos_example_init():

  tcpip_init( NULL, NULL );
  pppos_example_init();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: grove188

79499569

Date: 2025-03-11 03:02:24
Score: 1
Natty:
Report link

I solve same problem with js function like that

function onDataBoundTree() 
{
jQuery.event.simulate = function () 
{
};
} 

My problem is there is filter textbox top of the treecomponent but I can't input any value on them. This Way solved my issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Y. Sinan ŞİMŞEK

79499566

Date: 2025-03-11 02:59:23
Score: 1
Natty:
Report link
minreturn = min(R)
dayofminreturn = R.index(midreturn)

mindepart = min(D[:dayofminreturn+1])
 #can fly there and back in the same day #


cheapestroundtrip = mindepart + minreturn
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: TACNY84

79499558

Date: 2025-03-11 02:51:22
Score: 0.5
Natty:
Report link

This issue nearly took my life, its been one month I have been trying to resolve this issue. But in the last I came to know that Antivirus was blocking me to send email and hence getting "Could not reach the remote Mailgun server" issue in my project.
I just disabled AVG Antivirus and it worked fine. I hope this will help someone.
Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): hope this will help
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahsan Alamgir

79499540

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

please add ,it should resolve the issue

<dependency>
    <groupId>org.springframework.ai</groupId>
    <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahmim

79499522

Date: 2025-03-11 02:07:15
Score: 0.5
Natty:
Report link
from random import randint

x = randint(1, 6)

class Die():
    """Make a class Die with one attribute called sides"""
    def __init__(self, sides = 6):
        self.sides = sides


    """Write a method called roll_die() that prints a random number"""
    def roll_die(self):
         for i in range(10):
            dice = randint(1, self.sides)
            print("Rolling " + str(dice))

print("\nRolling a 6 sided die:")
six_sided_die = Die()
six_sided_die.roll_die()

print("\nRolling a 10 sided die:")
ten_sided_die = Die(10)
ten_sided_die.roll_die()

print("\nRolling a 20 sided die:")
twenty_sided_die = Die(20)
twenty_sided_die.roll_die()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29962454

79499517

Date: 2025-03-11 02:04:14
Score: 0.5
Natty:
Report link
# Configurar el directorio base donde están los proyectos
$BaseDir = "C:\Ruta\A\Proyectos"

# Ruta al ejecutable de Visual Studio 2019 (ajustar si está en otro directorio)
$VSPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.com"

# Archivo CSV de salida
$OutputCSV = "C:\Ruta\De\Salida\metricas.csv"

# Encabezados del CSV
"Project, MaintainabilityIndex, CyclomaticComplexity, DepthOfInheritance, ClassCoupling, LinesOfCode" | Out-File -FilePath $OutputCSV

# Buscar todos los archivos .csproj en el directorio y subdirectorios
$Projects = Get-ChildItem -Path $BaseDir -Recurse -Filter "*.csproj"

# Procesar cada proyecto
foreach ($Project in $Projects) {
    $ProjectPath = $Project.FullName
    $SolutionDir = Split-Path -Path $ProjectPath -Parent

    # Ejecutar análisis de métricas en el proyecto
    $MetricsOutput = & "$VSPath" "$ProjectPath" /Clean /Rebuild /ProjectMetrics
    
    # Extraer los valores de métricas del output
    if ($MetricsOutput -match "Maintainability Index:\s+(\d+).*Cyclomatic Complexity:\s+(\d+).*Depth of Inheritance:\s+(\d+).*Class Coupling:\s+(\d+).*Lines of Code:\s+(\d+)") {
        $MaintainabilityIndex = $matches[1]
        $CyclomaticComplexity = $matches[2]
        $DepthOfInheritance = $matches[3]
        $ClassCoupling = $matches[4]
        $LinesOfCode = $matches[5]

        # Guardar resultados en CSV
        "$($Project.Name),$MaintainabilityIndex,$CyclomaticComplexity,$DepthOfInheritance,$ClassCoupling,$LinesOfCode" | Out-File -FilePath $OutputCSV -Append
    }
}

Write-Host "Métricas generadas y guardadas en: $OutputCSV"
Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alan Godinez Rodriguez

79499514

Date: 2025-03-11 02:01:13
Score: 4
Natty:
Report link

For large log files, I found this AI-powered debugging tool that automates

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

79499506

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

I had this with an Azure automation runbook. I found that I had to install/import ldap3 and then pyasn1 0.6.1.

The module import on my laptop brought down pyasn1 0.6.1 as well. Looks like Azure Automation didn't.

hth.

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

79499502

Date: 2025-03-11 01:45:11
Score: 1
Natty:
Report link

Other answers did not work for me, but I found another solution.

I installed Xcode, and then the upgrade succeeded.

Additional info:

Environment: MacBook Pro 2016, macOS Monterey

Using `brew upgrade glib -v`, I found that `/usr/bin/python3` was used during the `gobject-introspection` build.

Things I tried (but failed):

- Changed `PATH` to prioritize `/usr/local/bin/python3`

- Updated `PKG_CONFIG_PATH` to include `/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/pkgconfig`

Checked `python-3.9.pc`, which had 'prefix=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9' so,
- Changed it to 'prefix=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9'

Since other formulae required Xcode, I installed Xcode, and that resolved the issue.

One more thing I haven't tried yet:

/usr/bin/python3 -m pip install pkgconfig

might also help.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: やたすずめ

79499500

Date: 2025-03-11 01:44:11
Score: 1
Natty:
Report link
If you pre-pend "E.C.P.C" to every sting from your 255maxlength  DB you should be ok.

j/k this is not possible
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dominik Weber

79499498

Date: 2025-03-11 01:38:10
Score: 0.5
Natty:
Report link

I had a similar issue. I was able to gain access to repos i couldn't see by going here:

https://github.com/apps/claude-for-github/installations/select_target

Using this link, select the github user or organization, the all or specific repos to delegate access to the claude-for-github app.

Once granted, you still may not see all repos in the list, but I was able to successfully use the "paste Github URL" link in the Claude desktop app to add a private repo that did not appear in the list.

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • High reputation (-1):
Posted by: jxstanford

79499490

Date: 2025-03-11 01:32:08
Score: 1
Natty:
Report link

I also use Ubuntu on Virtualbox with a Windows 10 host. I managed to create a virtual environment with the following command successfully:
sudo python3 -m virtualenv --always-copy .venv

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

79499487

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

./filename.exe -extractdrivers filename_extracted

powershell command line , just change to same directory

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

79499485

Date: 2025-03-11 01:27:07
Score: 0.5
Natty:
Report link

Original define in the NVIDIA docs #define IDX2F(i,j,ld) ((((j)-1)*(ld))+((i)-1)) has no space between IDX2F and (i,j,ld). If there is the mistaken space then the IDX2F is substituted by (i,j,ld) ((((j)-1)*(ld))+((i)-1)) that is not expected. Since a fixed format is used for Fortran source then due to extra `(i,j,ld) ` resulting string exceeds 72 symbols and some right parenthesis 'are eated'. However, the used define operator has correct numbers of the left and right parenthesis.

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

79499484

Date: 2025-03-11 01:26:07
Score: 0.5
Natty:
Report link

Thanks for the clarification through the comment.

Since you cannot share the entire code, let's try to be in the same page.

  1. const data = (await request.json()) as ResumeFormData; → I assume this is post data coming from client http request.

  2. The following code launches chromium with the binary.

const browser = await puppeteer.launch({
    headless: true,
    args: [...chromium.args, "--no-sandbox", "--disable-setuid-sandbox"],
    executablePath: await chromium.executablePath(chromiumPack),
});
  1. This is the RAW html content that you will pass to the puppeteer page.
<!DOCTYPE html>
      <html>
        <head>
          <meta charset="utf-8">            
          <style>          
            @font-face {
              font-family: 'Noto Sans JP';              
              src: url('file://${process.cwd()}/public/fonts/NotoSansJP-Medium.ttf') format('truetype');
            }
            body {
              font-family: 'Noto Sans JP', sans-serif;
              margin: 0;
              padding: 20mm;
            }
            h1 {
              text-align: center;
              font-size: 24px;
              margin-bottom: 2rem;
            }
            h2 {
              font-size: 20px;
              margin-bottom: 1rem;
              border-bottom: 1px solid #ccc;
              padding-bottom: 0.5rem;
            }            
          </style>
        </head>
        <body>
          <h1>職務経歴書</h1>
          <h1>test</h1>

          <div class="section">
            <h2>基本情報</h2>
            <p>氏名: ${data.basicInfo.lastName} ${data.basicInfo.firstName}</p>
            <p>フリガナ: ${data.basicInfo.lastNameKana} ${
      data.basicInfo.firstNameKana
    }</p>...

I created a simple version since I don't have vercel, but tried to make it the same code as much as possible.

import puppeteer from "puppeteer";

(async () => {
  const document = `
    <!DOCTYPE html>
    <html>
    <head>
      <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
        body { font-family: 'Noto Sans JP', sans-serif; padding: 20px; }
        h1 { color: blue; }
        p { font-size: 14px; }
    </style>
    </head>
    <body>
      <h1>Hello world!</h1>
      <p>This is a PDF generated from raw HTML content.</p>
      <p>こんにちは、世界!</p>
    </body>
    </html>
  `

  puppeteer.launch().then(async browser => {
    let page = await browser.newPage()
    await page.goto('data:text/html;charset=UTF-8,' + document, {waitUntil: 'networkidle0'});
    await page.pdf({
      path: 'print.pdf',
      format: 'A4'
    })
    browser.close()
  });
})();

The following code will generate the following PDF with node index.js command.

proper Japanese genrated PDF

The important things to note are the following:

  1. Specify UTF-8.
await page.goto('data:text/html;charset=UTF-8,' + document, {waitUntil: 'networkidle0'});

If I remove the UTF-8, this will be the output.

garbled test

If you are still experiencing problem, it would be great if you can share the code that you are using to output the PDF. (No need to share your HTML content code)

Regards,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tatachiblob

79499458

Date: 2025-03-11 01:01:08
Score: 9 🚩
Natty: 6
Report link

Did you ever find the answer to this? I am struggling with this presently.

Reasons:
  • Blacklisted phrase (1): answer to this?
  • Blacklisted phrase (1): I am struggling
  • RegEx Blacklisted phrase (3): Did you ever find the answer to this
  • 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
  • Low reputation (0.5):
Posted by: grove188

79499438

Date: 2025-03-11 00:39:04
Score: 1.5
Natty:
Report link

The solution is very simple,

just when this error shows while trying to push file/files

do 'git push' again, it works!

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

79499435

Date: 2025-03-11 00:38:04
Score: 1
Natty:
Report link

Xcode Version 16.2/iOS 13 with view animation

@IBAction func keyPressed(_ sender: UIButton) {
        playSound(soundName: sender.currentTitle!)
        sender.alpha = 0.5
        UIView.animate(withDuration: 0.2) {
            sender.alpha = 1
        }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Javier Rivero

79499429

Date: 2025-03-11 00:31:03
Score: 3.5
Natty:
Report link

you just need too save the other file before calling any function from another file

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

79499425

Date: 2025-03-11 00:29:02
Score: 4
Natty:
Report link

Running your script directly in the R console (instead of within RStudio) might help, as RStudio can sometimes introduce additional memory overhead or restrictions. Are you on Windows?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Adna Zujo Lakisic

79499419

Date: 2025-03-11 00:22:01
Score: 2
Natty:
Report link

The issue was an incompatibility between my cluster's filesystem and the caching behavior. using the --cache_dir flag to point at the worker node's tmp

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

79499417

Date: 2025-03-11 00:18:00
Score: 4
Natty: 3.5
Report link

check out mine sudoku solver , it handle such as error

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

79499414

Date: 2025-03-11 00:15:59
Score: 5
Natty:
Report link

thank you very much Magdalena. we realize that the CSS isnt influencing the export and adding the styling via attributes does the trick

best regards

edwin

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): best regards
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: edwin.koh

79499410

Date: 2025-03-11 00:14:59
Score: 0.5
Natty:
Report link

Install Powershell 7 see this article

winget search Microsoft.PowerShell
winget install --id Microsoft.PowerShell --source winget
Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: YMH

79499409

Date: 2025-03-11 00:13:58
Score: 0.5
Natty:
Report link

Django’s default authentication backend (ModelBackend) expects username as the identifier. However, when a custom user model defines email as USERNAME_FIELD, Django does not recognize it during authentication.

To fix this, a custom authentication backend must be implemented as rightly highlighted by @7berlin above.

Step 1: Create a Custom Authentication Backend

Create a new file inside an appropriate app (e.g., users/auth_backend.py) and add:

from django.contrib.auth.backends import ModelBackend
from django.contrib.auth import get_user_model

UserModel = get_user_model()

class EmailBackend(ModelBackend):
    """
    Custom authentication backend to authenticate users using email instead of username.
    """

    def authenticate(self, request, email=None, password=None, **kwargs):
        if email is None or password is None:
            return None

        try:
            user = UserModel.objects.get(email=email)
        except UserModel.DoesNotExist:
            return None

        if user.check_password(password) and self.user_can_authenticate(user):
            return user

        return None

Step 2: Register the Custom Authentication Backend

Modify settings.py to tell Django to use this custom authentication backend:

AUTHENTICATION_BACKENDS = [
    'users.auth_backend.EmailBackend',  # Adjust path based on the project structure
    'django.contrib.auth.backends.ModelBackend',  # Keep Django's default
]

Why keep ModelBackend?

If Django’s default authentication (e.g., admin login with username) is still required, keeping ModelBackend as a fallback is a good practice.

Step 3: Update the Login Function

Modify the view handling authentication to use the new backend:

from django.contrib.auth import authenticate, login
from django.contrib.auth.models import update_last_login
from rest_framework.response import Response
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny

@action(detail=False, methods=["post"], permission_classes=[AllowAny])
def login(self, request):
    email = request.data.get("email")
    password = request.data.get("password")

    user = authenticate(request, email=email, password=password)  # Now works correctly
    if user:
        login(request, user)
        update_last_login(None, user)  # Updates last login timestamp
        return Response({"message": "Login successful!"})

    return Response({"error": "Invalid credentials"}, status=401)

Step 4: Restart the Django Server

After making these changes, restart Django to ensure the new authentication backend is applied:

python manage.py migrate
python manage.py runserver

Expected Outcome:

Additional Debugging Tips

If login still fails, check the following:

  1. Ensure migrations are applied (python manage.py migrate)
  2. Confirm that the email exists in the database
  3. Use print(user.check_password(password)) in the backend to verify password hashing
  4. Clear Django sessions (python manage.py shell → from django.contrib.sessions.models import Session; Session.objects.all().delete())

This solution was verified with the help of AI, but tested and refined manually.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @7berlin
  • Low reputation (0.5):
Posted by: krtk30

79499408

Date: 2025-03-11 00:13:58
Score: 3
Natty:
Report link

Select2 V.4.0.8

$('#dropdown_name').select2({ width: '100%', dropdownAutoWidth: true });

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

79499399

Date: 2025-03-11 00:03:57
Score: 3
Natty:
Report link

I experienced this issue and found the cause was importing vitest in the .stories file. Removing vitest as an imported dependency fixed the issue.

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

79499392

Date: 2025-03-10 23:57:55
Score: 11
Natty: 7.5
Report link

I have the same problem, if i change any configuration with the visual tool it brokes the file. Any suggestion?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2): Any suggestion?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sebastian

79499382

Date: 2025-03-10 23:48:53
Score: 0.5
Natty:
Report link

This worked for me

override func loadView() {
    super.loadView()
    createWebView()
}
Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29962222

79499379

Date: 2025-03-10 23:44:52
Score: 1.5
Natty:
Report link

Based on my understanding, the term "buffer" generally refers to a temporary storage space used to reduce the difference between input speed and output speed.

A buffer can be analogized as a bucket that collects rainwater. Even after the rain has stopped, we can still take water from the bucket.

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

79499365

Date: 2025-03-10 23:30:50
Score: 2.5
Natty:
Report link

Another simple way in pySpark of get the first value in a cell from a column in a pyspark Dataframe is:

myDF.first()["myColumn"]

this will give you the first value

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

79499361

Date: 2025-03-10 23:27:49
Score: 3
Natty:
Report link

Thanks all for the inputs and helps. I have not able to resolved this but there is a change of direction that we are to use front-end react implementation instead of optimising via backend implementation. React optimisation is also free.

Please close this question.

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

79499358

Date: 2025-03-10 23:25:49
Score: 0.5
Natty:
Report link

When you have an object property such as public UserDto Creator , this gets added to the generated OpenAPI schema as a $ref.

As per this issue, "In OpenAPI 3.0.x, in order to combine a $ref with other properties, the $ref needs to be wrapped into allOf"

I found the simplest solution was to add the below to the SwaggerGen initialization:

builder.Services.AddSwaggerGen(options =>
{
    ...
    options.UseAllOfToExtendReferenceSchemas();
}

Swashbuckle will then wrap the $ref in an allOf, and correctly set readOnly to true.

One issue with the accepted answer is that the UserDto object will be readOnly everywhere in the schema, not just for the BlogDto object. This can be a problem if you also need to specify an API for creating a UserDto, in which case the object would not appear in a POST request in the UI.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you have an
  • Low reputation (1):
Posted by: Tom Dron

79499355

Date: 2025-03-10 23:23:48
Score: 3
Natty:
Report link

im my case the problem was the mapper that not map the other proprerties when return to resource

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

79499353

Date: 2025-03-10 23:22:48
Score: 0.5
Natty:
Report link

Obviously it is possible to set up offline maps using a node.js web server to provide tiles from an .mbtiles file. However, I managed to set it up without any server. I used @capacitor-community/sqlite to extract tiles and serve them to openLayers. My code is

--- map.page.ts ----

async createMap() {
(...)
case 'offline':
  credits = '© MapTiler © OpenStreetMap contributors'
  await this.server.openMbtiles('offline.mbtiles');
  const olSource = await this.createSource();
  if (!olSource) return;
  olLayer = new VectorTileLayer({ source: olSource, style: vectorTileStyle });
break;
(...)
// Create map
this.map = new Map({
  target: 'map',
  layers: [olLayer, this.currentLayer, this.archivedLayer, this.multiLayer],
  view: new View({ center: currentPosition, zoom: 9 }),
  controls: [new Zoom(), new ScaleLine(), new Rotate(), new CustomControl(this.fs)],
});
(...)

createSource() {
  try {
    // Create vector tile source
    return new VectorTileSource({
      format: new MVT(),
      tileClass: VectorTile,
      tileGrid: new TileGrid({
        extent: [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
        resolutions: Array.from({ length: 20 }, (_, z) => 156543.03392804097 / Math.pow(2, z)),
        tileSize: [256, 256],
      }),
      // Tile load function
      tileLoadFunction: async (tile) => {
        const vectorTile = tile as VectorTile;
        const [z, x, y] = vectorTile.getTileCoord();
        try {
          // Get vector tile
          const rawData = await this.server.getVectorTile(z, x, y);
          if (!rawData?.byteLength) {
            vectorTile.setLoader(() => {});
            vectorTile.setState(TileState.EMPTY);
            return;
          }
          // Decompress
          const decompressed = pako.inflate(new Uint8Array(rawData));
          // Read features
          const features = new MVT().readFeatures(decompressed, {
            extent: vectorTile.extent ?? [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
            featureProjection: 'EPSG:3857',
          });
          // Set features to vector tile
          vectorTile.setFeatures(features);
        } catch (error) {
          vectorTile.setState(TileState.ERROR);
        }
      },
      tileUrlFunction: ([z, x, y]) => `${z}/${x}/${y}`,
    });
  } catch (e) {
    console.error('Error in createSource:', e);
    return null;
  }
}

---- server.service.ts -----

async getVectorTile(zoom: number, x: number, y: number): Promise<ArrayBuffer | null> {
  console.log(`🔍 Trying to get vector tile z=${zoom}, x=${x}, y=${y}`);
  if (!this.db) {
    console.error('❌ Database connection is not open.');
    return null;
  }
  // Query the database for the tile using XYZ coordinates
  const resultXYZ = await this.db.query(
    `SELECT tile_data FROM tiles WHERE zoom_level = ? AND tile_column = ? AND tile_row = ?;`,
    [zoom, x, y]  
  );
  if (resultXYZ?.values?.length) {
    console.log(`✅ Tile found: z=${zoom}, x=${x}, y=${y}`);
    const tileData = resultXYZ.values[0].tile_data;
    // Ensure tileData is returned as an ArrayBuffer
    if (tileData instanceof ArrayBuffer) {
      return tileData;
    } else if (Array.isArray(tileData)) {
      return new Uint8Array(tileData).buffer; // Convert array to ArrayBuffer
    } else {
      console.error(`❌ Unexpected tile_data format for ${zoom}/${x}/${y}`, tileData);
      return null;
    }
  } else {
    console.log(`❌ No tile found: z=${zoom}, x=${x}, y=${y}`);
    return null;
  }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): --------
  • Low reputation (1):
Posted by: Enric Terradellas

79499350

Date: 2025-03-10 23:20:47
Score: 0.5
Natty:
Report link

thanks guys for help,here is my take(from your ideas,incorporating incompatibilities vim<>sed)

i needed to delete lines(and not keep empty spaces) in owntracks logging where accuracy was higher than 400(i might refine later) inside .rec files:

sed -Eiz '/^.*\"acc\"\:([4-9][0-9][0-9])|([0-9]{4,})\}/d' *.rec

hope this helps someone edit: -E for [0-9] matching,-i for inplace edit,-z probably not usefull

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): i need
  • Whitelisted phrase (-1): hope this helps
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pavel Brand

79499346

Date: 2025-03-10 23:14:46
Score: 1
Natty:
Report link

When the engine executes bytecode, the C++ handlers stack up on the C++ call stack. At the same time, V8 maintains a virtual representation of the JavaScript stack, which holds the state corresponding to the JS calls. Thus, even though the actual call occurs on the C++ stack through the handler functions, V8 associates a frame in its virtual JS stack with each call. In other words, the JavaScript call stack relies on the C++ stack for the physical execution of calls, but it is enhanced by an abstraction layer that allows V8 to manage optimizations and specific execution details of the JavaScript code.

This approach enables V8 to benefit from the memory management and optimization of the native stack while retaining a logical and manipulable view of the JavaScript code execution.

In summary, the JavaScript call stack is not an independent memory stack; it is implemented by leveraging the C++ stack along with an abstraction layer that provides the specialized management necessary for executing JS in either interpreted mode or when compiled by TurboFan.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: user29962136

79499328

Date: 2025-03-10 23:04:44
Score: 0.5
Natty:
Report link

i know this late response but it could help someone
I don't know the real cause of your problem, but I recommend testing the SQL Server name first using the SQLCMD command in PowerShell. If it connects successfully, then the SQL Server name is correct, and there may be other issues to address:

  1. You might need to create the SSIS catalog (SSISDB) if it doesn't exist

  2. You may need to create the appropriate folder structure within the SSISDB

  3. Check the permissions of the user account you're using to ensure it has sufficient access rights

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

79499323

Date: 2025-03-10 22:59:43
Score: 1.5
Natty:
Report link

I kept getting the error message "TF401180: The requested pull request was not found." even though it worked fine locally using my own PAT token.

I am trying to check the status of a PR in a remote repo hosted in Azure DevOps while running a pipeline from a different repo in the same org and same project. I am using the access token of the pipeline, and the Build Service has permissions on the remote Git repo.

You can either turn off the protection for "Protect access to repositories in YAML pipelines" or review this documentation to understand it better: Secure access to Azure Repos from pipelines | Microsoft Docs.

It is probably a better option to simply checkout that other repo in your pipeline to ensure that your access token is scoped for that repo too.

settings

Reasons:
  • Blacklisted phrase (1): this document
  • Blacklisted phrase (1): I am trying to
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Josh Wright