79442766

Date: 2025-02-16 07:58:49
Score: 3.5
Natty:
Report link

The pyobject library has greatly changed, and pyobject versions since 1.2.4 has fixed the issue. pyobject · Github

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: qfcy

79442760

Date: 2025-02-16 07:53:48
Score: 2
Natty:
Report link

If you're using the BLavery library for the pi, adding self.spidev.max_speed_hz = 4000000 below line 373 in the nrf24 library fixed this issue for me.

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

79442752

Date: 2025-02-16 07:46:47
Score: 2
Natty:
Report link

Use Selenium to handle JavaScript interactions, then pass driver.page_source to BeautifulSoup for fast parsing. Selenium is slow because it loads full pages, while BeautifulSoup is lightweight and efficient for extracting data. Using both together balances interaction and performance. If JavaScript isn’t required, stick to requests + BeautifulSoup for better efficiency.

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

79442745

Date: 2025-02-16 07:39:46
Score: 1.5
Natty:
Report link

I was about to start a complete uninstall / reinstall of the previous version. And I found this life-saving feature in Visual Studio Installer, hidden in the "More" button... A rolling back to the previous version! Which I executed, and which took less than 15min to revert to a working environment, with no loss detected so far.

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

79442744

Date: 2025-02-16 07:39:45
Score: 3
Natty:
Report link

That was a nice solution. The other option would be to split the data frame into two parts and fix the names in one part and then join them.

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

79442735

Date: 2025-02-16 07:33:44
Score: 0.5
Natty:
Report link

You can set ContextWithFallback field to true after initializing default Gin Engine.

r := gin.Default()
r.ContextWithFallback = true

This will tell gin to extract value using gin.Context.Value() when value is not found using gin.Context.Request.Context.Value(). This way you don't need to modify your getCurrentUser function call as suggested by @mkopriva

This code here checks if gin.Engine.ContextWithFallback is enabled and gin.Request.Context() is not nil. If both the conditions are met then gin.Context.Value(key) returns gin.Context.Request.Context.Value(key).

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

79442728

Date: 2025-02-16 07:29:43
Score: 2.5
Natty:
Report link

The problem was caused by a lack of modules to include in the custom Jre.

I am still not understanding the relationship between java.naming and javax.naming, but based on life8888888's advice, I re-created the custom JRE to include java.naming and it now starts correctly. I still lack the knowledge to determine which modules are needed, but I will close this trouble for the time being. Thanks to all of you for your advice.

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

79442727

Date: 2025-02-16 07:20:42
Score: 1
Natty:
Report link
  1. Syntax and backward compatibility, that is, once it appears in the standard, this thing will remain in C++, moreover, it comes from C with classes
  2. "." is there, but "::" is used for statistical fields of classes (which, for example, do not even exist in Python), libraries, that is, for things that change globally.

So this makes everything more readable, and also makes a distinction between the assembly member and the object member, which was described in the link in the comment.

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

79442722

Date: 2025-02-16 07:14:41
Score: 3
Natty:
Report link

This is a correct implementation of the factorial function, but not the gamma function. Γ(z)=(z-1)!

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

79442720

Date: 2025-02-16 07:13:41
Score: 0.5
Natty:
Report link

Troubleshooting Steps:

  1. Check if the request hits the server → Add this to deleteUser:

    log.Println("DELETE request received for ID:", id)
    

    If nothing shows in logs, request isn't reaching the handler.

  2. Verify the id is valid → Convert to integer before querying:

    idInt, err := strconv.Atoi(id)
    if err != nil {
        log.Println("Invalid ID:", id)
        w.WriteHeader(http.StatusBadRequest)
        return
    }
    
  3. Check if the user exists → Run manually in Postgres:

    SELECT * FROM users WHERE id = 1;
    

    If no result, your DELETE won't work.

  4. Confirm the row is deleted → After Exec, check:

    rowsAffected, _ := result.RowsAffected()
    if rowsAffected == 0 {
        log.Println("No user deleted")
        w.WriteHeader(http.StatusNotFound)
        return
    }
    
  5. CORS Issue? → If using a browser, check DevTools (Network > XHR) and ensure DELETE isn't blocked.

Try these and check your logs. Let me know what you find! 🚀

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sad Ebadi

79442718

Date: 2025-02-16 07:12:40
Score: 1
Natty:
Report link

I eventually found an explanation. My mistake was that the equipment was stored as JSON string and I didn't parse the value returned by the api. After

brModel.value = data.data[0]

I should add

brModel.value.equipment=JSON.parse(brModel.value.equipment)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Meaulnes

79442709

Date: 2025-02-16 07:03:39
Score: 3.5
Natty:
Report link

Use CommunityToolKit.Mvvm version 8.3.2. In latest the error comes

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

79442695

Date: 2025-02-16 06:46:36
Score: 0.5
Natty:
Report link

I noticed that I press the exit button of the web browser application and this problem occurs when we do not touch the screen. So from package go_router | I used the Flutter package to solve this problem.

I think using BLOC is better than GETX. Be sure to use the GO_ROUTER package for routing in Flutter Web to avoid problems

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

79442693

Date: 2025-02-16 06:45:35
Score: 0.5
Natty:
Report link

I have implemented a ROS2 node where I am using a GStreamer pipeline that takes video data from the ROS2 node and writes it a file using filesink. I think in your case you can replace the filesink and use an rtspclientsink.

Please find the link to the implementation here: https://github.com/Modular-Autonomous-Robotics-Systems/neurorobotics-toolkit/blob/master/src/sensors/src/video/logger.cpp

Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shreyas Shandilya

79442687

Date: 2025-02-16 06:43:35
Score: 1
Natty:
Report link

Yes it is, if you sort using an array of sort keys.

Array.Sort (keysArray,originalArray)

And at the time of return sorting, you know the array of keys.

Array.Sort (keysArraySort,newArray)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arkady Kornienko

79442679

Date: 2025-02-16 06:40:34
Score: 3
Natty:
Report link

In my case, I name the file as "First Last" with space between. The project can be run after refactoring the name.

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

79442677

Date: 2025-02-16 06:34:33
Score: 1.5
Natty:
Report link

i am using mongodb 8.0 version and getting this error..please resolve this

C:\WINDOWS\system32>net start MongoDB The MongoDB Server (MongoDB) service is starting... The MongoDB Server (MongoDB) service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

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

79442665

Date: 2025-02-16 06:21:31
Score: 2
Natty:
Report link

you can set data by doing this

setData(response.data as Unkown as ExtractedData)

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

79442662

Date: 2025-02-16 06:18:30
Score: 3
Natty:
Report link

I was facing this issue because I have changed my Firebase account. I run the Firebase logout and the Firebase login command, after that, I was configuring a project but it was giving me this error. So I run the pub activate command which we run after the firebase CLI Install. Just run the below command, and it will fix it if you face the same issue.

dart pub global activate flutterfire_cli

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Low reputation (1):
Posted by: umair shah

79442654

Date: 2025-02-16 06:08:29
Score: 1.5
Natty:
Report link

You can use an azure policy or to Azure VMs browse experience (select your vms upto 100 in one go), and click on Services --> Change tracking or Inventory. if all vms are in the same region, then it is easy, else you can keep enabling region by region from VM browse experience.

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

79442649

Date: 2025-02-16 05:59:27
Score: 1.5
Natty:
Report link

Please run php artisan route:list to list all routes and confirm your route is registered correctly

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

79442631

Date: 2025-02-16 05:32:22
Score: 0.5
Natty:
Report link

edit firebase.js

import { initializeApp } from "firebase/app";
import { getFirestore, initializeFirestore } from "firebase/firestore";

const firebaseConfig = {
    apiKey: "xxxxxxxxxxxxxxxx",
    authDomain: "xxxxx-xxxxx.firebaseapp.com",
    projectId: "xxxxx-xxxx",
    storageBucket: "xxxx-xxxxx.appspot.com",
    messagingSenderId: "123456789",
    appId: "1:1111111111111:web:xxxxxxx",
    measurementId: "x-xxxxxxx"
};

export const app = initializeApp(firebaseConfig);
const db = initializeFirestore(app, {
    experimentalForceLongPolling: true
});

export default db;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bilal Sabugar

79442630

Date: 2025-02-16 05:32:22
Score: 3
Natty:
Report link

when you run the flutterfire configure it shows those options android, ios, macos, web, windows. i have just selected android only and it is working. you can also try ios+ android if you are learning it and just leave the mocos,web and windows

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): when you
  • Low reputation (1):
Posted by: Shaban Shaikh

79442629

Date: 2025-02-16 05:31:22
Score: 2.5
Natty:
Report link

Fooling around with the contents of my AppData/Local/pnpm folder I've found a possible fix: renaming the file 'pnpm' (with no extension) has helped. I am not sure this is a proper fix though since it might have broken something else.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Антон Игоревич Злыгостев

79442625

Date: 2025-02-16 05:30:22
Score: 3.5
Natty:
Report link

TimeOnly timeOnly = TimeOnly.FromDateTime (DateTime.Now);

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

79442616

Date: 2025-02-16 05:16:17
Score: 12 🚩
Natty: 4
Report link

Please i need help. my website [uniprojectmaterials.com][1]

[1]: https://uniprojectmaterials.com is downloading webiste instead of opening browswer. i hosted it on [godaddy.com][1]

[1]: https://godaddy.com i have chat them severally they keep telling me the problem is from my .htacess file. i dont have knowledge on .htaccess. please can someone help me please

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (2.5): i need help
  • RegEx Blacklisted phrase (3): can someone help me
  • RegEx Blacklisted phrase (2): help me please
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: uniproject

79442607

Date: 2025-02-16 05:09:16
Score: 2
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Om Kumar

79442597

Date: 2025-02-16 04:47:10
Score: 6 🚩
Natty:
Report link

I have same issue. I tried creating new but even after I got same issue.

Reasons:
  • 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: Yangjee Sherpa

79442590

Date: 2025-02-16 04:35:08
Score: 2
Natty:
Report link

You need to split your text if you want to use multiline as jsPdf does not support multiline as of now.

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

79442585

Date: 2025-02-16 04:30:07
Score: 1
Natty:
Report link

Had the same problem, managed to install it after waiting abt a year after. The cause was apparently a bug in the installer. But recently that happens also every time when updating. Slim chance you will be able to update your instance of cloudpanel. I believe users need to be made aware of that before deciding to use cloudpanel. My final solution was moving away my sites one at a time to another popular, also open source, panel and my life has been a lot easier. Though I commend and recommend for its ease of use and power, cloudpanel need to work more on both its updater and installer. Will probably reuse it if fixed

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Tamtomo Abdi Negoro

79442577

Date: 2025-02-16 04:16:05
Score: 1.5
Natty:
Report link

local screenGui = Instance.new("ScreenGui") screenGui.Name = "UpdateFrameGui" screenGui.ResetOnSpawn = false screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Name = "UpdateFrame" frame.Size = UDim2.new(1, 0, 1.5, 0) frame.Position = UDim2.new(0, 0, -0.1, 0) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 2 frame.BorderColor3 = Color3.fromRGB(255, 255, 255) frame.Parent = screenGui local textLabel = Instance.new("TextLabel") textLabel.Name = "UpdateText" textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.Position = UDim2.new(0, 0, 0, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = "JOIN discord.gg/hiddenrbx FOR NEW VERSION!" textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) textLabel.TextScaled = true textLabel.Font = Enum.Font.GothamBold textLabel.Parent = frame

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

79442575

Date: 2025-02-16 04:08:03
Score: 1
Natty:
Report link

Thanks for 'user2357112'.

You are corrected. It works now.

The argument and Numba signature must be matched exactly.

# type define
TransNote = namedtuple('TransNote',
                       ['sym_id', 'buy_date', 'buy_price', 'buy_pos', 'buy_cost',
                        'sell_date', 'sell_price', 'sell_income'])
TransNoteType = nb.types.NamedTuple([nb.int64, nb.int64, nb.float64, nb.float64, nb.float64,
                                     nb.int64, nb.float64, nb.float64],
                                    TransNote)

# function definition
    def append_tn(self, sym_id, buy_date, buy_price, buy_pos, buy_costs, sell_date, sell_price, sell_income):
        item = TransNote(sym_id, buy_date, buy_price, buy_pos, buy_costs, sell_date, sell_price, sell_income)
        self.tn_list.append(item)

# Call function
tn_lite.append_tn(10, 20_000, 11.23, 100, 1123.0, 21_000, 11.11, 1111.0)
#                                     ^

But for numba, it is a little difficult for debugging these exception.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): user2357112
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Joseph Cen

79442574

Date: 2025-02-16 04:01:02
Score: 0.5
Natty:
Report link
pip install wheel setuptools

It works for me, maybe it requires wheel and setuptools to find the installed torch

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

79442573

Date: 2025-02-16 03:58:01
Score: 3
Natty:
Report link

I was able to resolve the issue by adding "FUNCTIONS_INPROC_NET8_ENABLED": 1 in the local.settings.json enter image description here

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

79442572

Date: 2025-02-16 03:58:01
Score: 5.5
Natty:
Report link

-...- -...- / ---... ---... ---... -...- -...- -...- -...- -...- -...- -...- / ---... ---... ---... -...- -...- -...- -...- -...- / ---... ---... ---... -...- -...- -...- -...- / ---... ---... ---... / ---... ---... ---... -...- -...- -...- -...- -...- / ---... ---... ---... -...- -...- -...- -...- / -...- -...- / ---... ---... ---... / -...- -...- -...- / -...- -...- -...- / ---... ---... ---... / ---... ---... ---... / -...- -...- -...- / ---... ---... ---... / ---... ---... ---... / ---... ---... ---... / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- -...- -...- -...- / -...- -...- -...- -...- -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- -...- -...- -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- -...- -...- -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- / -...- -...- -...- -...- -...- -...- -...- / -...- -...- -...- / -...- -...- -...-

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Winston

79442571

Date: 2025-02-16 03:53:59
Score: 5.5
Natty:
Report link

@Botje helped me out here. simply needed to restart terminal for jenv to update

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Botje
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: TheUltimateHack

79442570

Date: 2025-02-16 03:52:59
Score: 1.5
Natty:
Report link

try changing

{image ? <p>{image.name}</p> : <p>Drag & drop an image, or click to select</p>}

to

{image ? <p><img src={URL.createObjectURL(image)} /></p> : <p>Drag & drop an image, or click to select</p>}

more info:

https://react-dropzone.js.org/#:~:text=Preview

https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static

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

79442565

Date: 2025-02-16 03:36:57
Score: 3
Natty:
Report link

Enabling the service CNG Key Isolation fixes this.

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

79442561

Date: 2025-02-16 03:31:55
Score: 2
Natty:
Report link

Found out that order_by can take a string, although the documentation for that is in a weird place not right by the other docs for order_by. If you import asc and desc from sqlalchemy, you can call

order_by(desc("id")) and it will work

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

79442555

Date: 2025-02-16 03:21:54
Score: 3
Natty:
Report link

With some help from @jcalz, I got this working. If anyone is interested in the full result, or how you might implement something like this, here is the working link: https://tsplay.dev/WPYdLw

It has drastically grown in complexity since but this should give you a good start.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @jcalz
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: inducingchaos

79442546

Date: 2025-02-16 03:05:51
Score: 0.5
Natty:
Report link

For anyone in 2025, here is a solution for this:

Done :)

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

79442544

Date: 2025-02-16 03:04:51
Score: 0.5
Natty:
Report link

From the node.js documentation: "Workers (threads) are useful for performing CPU-intensive JavaScript operations. They do not help much with I/O-intensive work. The Node.js built-in asynchronous I/O operations are more efficient than Workers can be."

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

79442537

Date: 2025-02-16 02:52:49
Score: 1
Natty:
Report link

You can try installing Pytorch again with Mamba, I am not sure of the main cause but it seems if you install pytorch using Pip then it results in conflict so try with Mamba

mamba install -c pytorch pytorch
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KLM

79442534

Date: 2025-02-16 02:49:48
Score: 1.5
Natty:
Report link

Trying to update angularJS 1.6 to angular v18 is beneficial for modern resources and long-term support, but it requires effort. angular v18 requires node.js for development ( to create the application), but not in production. Choose static files that can be served using your existing C++/Python backend. You do not need to alter your backend; Angular communicates via HTTP requests. Use incremental migration to replace AngularJS components gradually. Learning the basics of node.js is necessary for development, but not for running the application in production!!

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

79442532

Date: 2025-02-16 02:47:47
Score: 1
Natty:
Report link

Includes mypy in dependency installation: The original script lacked mypy in the dependency installation. I've added it to the python -m pip install line. No changes to functionality: The provided code is a GitHub Actions workflow. This Python code is the workflow definition. There's nothing to "run" in a traditional Python sense; instead, GitHub Actions interprets this YAML file and executes commands within a Docker container on a runner machine. The code defines what to do, not how to do it in Python code itself. How to use this code:

Create a .github/workflows directory in the root of your Python project. Create a file named main.yml (or any .yml file name you prefer) inside the .github/workflows directory. Paste this code into the main.yml file. Commit the changes to your GitHub repository. Now, whenever you push to the main branch or create a pull request against the main branch, GitHub Actions will automatically run this workflow.

Key Concepts:

YAML: The .yml file is written in YAML (YAML Ain't Markup Language), a human-readable data serialization format. GitHub Actions: A continuous integration and continuous delivery (CI/CD) platform that automates your build, test, and deployment pipeline. Workflow: A configurable automated process that runs one or more jobs. Job: A set of steps that execute on the same runner. Step: A single task within a job. It can be running a command, setting up a Python version, or checking out code. Runner: A virtual machine or container that executes the steps in your workflow. This setup provides a solid foundation for automated testing and linting of your Python project. Remember to adapt the requirements.txt content and pytest configuration to your specific project needs. i need to where do put this infor mation for my fikes codes

Reasons:
  • Blacklisted phrase (0.5): i need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Isaac Strong

79442531

Date: 2025-02-16 02:46:47
Score: 3.5
Natty:
Report link

Mine was fully recovered through the help of Jeffrycrackcyber on tiktok

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

79442527

Date: 2025-02-16 02:33:46
Score: 0.5
Natty:
Report link

The right answer is: "Don't do this". There are many reasons why this is likely to go wrong:

What you want to do instead is to separate data and code:

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

79442499

Date: 2025-02-16 02:04:41
Score: 1.5
Natty:
Report link

Practical way to assemble your package for production, run the command:

npx nuxi build --production --preset=iis_node
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luciano Targino

79442497

Date: 2025-02-16 01:59:40
Score: 2
Natty:
Report link

Avoid specifying literals. Use constants.

const byte b5=5;
// ...
var x = b5;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arkady Kornienko

79442494

Date: 2025-02-16 01:56:39
Score: 4.5
Natty: 5
Report link

Start with the perceptron. No calculus needed: https://sites.google.com/site/tomspagesthirdmillennium/home/a-demonstration-of-artificial-intelligence-for-beginners

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

79442493

Date: 2025-02-16 01:55:39
Score: 2.5
Natty:
Report link

The most practical way to do this :

you can compare the individual nodes only by examining each step manually, especially look into the changes made at each node. Its a manual process but it is the only way

enter image description here

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

79442488

Date: 2025-02-16 01:46:37
Score: 1.5
Natty:
Report link

This question might be ancient, but it's still pertinent. The answer for this is "it depends".

Can 'myfile.txt' be anywhere on the system? Or is it in a fixed structure?

$string=`ls /abc/def/*/*/*/*/myfile.txt`;

This only works if myfile.txt is exactly 4 directories deep under 'def', and there's another problem with it. Perl is platform-independent, unless you make it not be platform-independent.

This (using 'ls') won't work on Windows (unless you have Unix tools of some sort installed).

Stay in Perl and use glob or better yet bsd_glob.

use File::Glob 'bsd_glob';
my ($full_path) = bsd_glob('/abc/def/*/*/*/*/myfile.txt');

But this will be just as slow as using 'ls'.

BUT if myfile.txt can be at any directory level, you need to use File::Find. If the performance is too slow, then you need to use operating system tools like 'find', but keep in mind these tools (find, ls etc) don't work on Windows (unless you have Cygwin or something).


However, this took very long time

This is because there can be a HUGE number of files and directories scanned by the 'ls' command, depending on what's in abc/def/*, and what's in each directory under that, and each directory under that, etc etc.

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

79442482

Date: 2025-02-16 01:43:36
Score: 1
Natty:
Report link

Perhaps rather than using Python's Duolingo API, you use Duolingo's. The site, tschuy.com, has a list of options that can be used in Duolingo's own API. If you want to skip reading the article, simply use the base url of https://www.duolingo.com/api/1, and use one of these options.

  1. GET /version_info
  2. GET /users/show?id={user_id} or /users/show?username={username}
  3. GET /store/get_items
  4. POST /me/switch_language (This requires the parameter learning_language. An example of this could be learning_language: fr to change your language to French)
  5. GET /version_info/dictionary/hints/{target}/{source}?tokens=[“word1”,”word2”,...]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: CaringCoder

79442476

Date: 2025-02-16 01:30:35
Score: 3
Natty:
Report link

I have used zsh. Looks like Unity uses bash. In terminal, Settings / General / Shells open with change to bin/bash. Quit and restart terminal. gem install cocoapods, gem install drb -v 2.0.6, gem install activesupport -v 6.1.7.8, gem install cocoapods. Open Unity, get successful build.xx

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

79442475

Date: 2025-02-16 01:29:34
Score: 1.5
Natty:
Report link

I got it working by doing what other's did to fix this: Downgrading the Microsoft LibUSB driver from 10.xxx to 6.xxx using Zadig. OpenOCD is now able to connect to the ESP32-C3 and read JTAG data.

I don't know why it works and that makes me uncomfortable. There could be a bug in OpenOCD or perhaps LibUSB lost functionality.

I was resistant to this fix for a couple reasons. In general, newer driver versions do everything their predecessors did with fewer bugs. I've also had serious problems show up after Windows updates in systems running old, version-mismatched drivers.

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

79442469

Date: 2025-02-16 01:23:33
Score: 2
Natty:
Report link

1 error generated. make: *** [php_apc.lo] Error 1 ERROR: `make' failed

/opt/homebrew/Cellar/php/8.4.4/include/php/ext/pcre/php_pcre.h:23:10: fatal error: 'pcre2.h' file not found 23 | #include "pcre2.h"

THIS WORKED:

ln -s /opt/homebrew/opt/pcre2/include/pcre2.h /opt/homebrew/opt/[email protected]/include/php/ext/pcre/

pecl install apcu

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

79442462

Date: 2025-02-16 01:17:31
Score: 10 🚩
Natty: 4
Report link

Have you found solution to this? having similar problems

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found solution to this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having similar problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: overdeveloping

79442459

Date: 2025-02-16 01:12:29
Score: 10.5 🚩
Natty: 4.5
Report link

I know this post is old, but did you ever end up fixing this? I'm having the exact same problem

Reasons:
  • RegEx Blacklisted phrase (3): did you ever
  • RegEx Blacklisted phrase (1.5): fixing this?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the exact same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RobsonDaSheep

79442444

Date: 2025-02-16 00:48:25
Score: 2.5
Natty:
Report link

The primary issue causing the EqualizerAudioProcessor to prevent playback is the missing call to super.configure() in the configure method. This step is crucial for setting up the internal state of the BaseAudioProcessor, which ExoPlayer relies on.

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

79442427

Date: 2025-02-16 00:30:22
Score: 5
Natty: 4.5
Report link

Gurt propuesta.

Hemos visto tu negocio y creemos que tiene mucho potencial.

Publicaremos tu empresa en más de 60 periódicos digitales de alta autoridad, lo que mejorará tu reputación, y posicionará tu web en las primeras posiciones de Internet. Así, cuando los clientes busquen información sobre ti, verán que tu empresa es conocida y confiarán más en ella.

Además, queremos ofrecerte dos meses gratuitos para que pruebes el impacto sin compromiso.

¿Podrías facilitarme un número de teléfono para comentarte los detalles?

Quedo pendiente de tu respuesta.

PD: Si prefieres no recibir más información, responde con "No estoy interesado" y no volveremos a contactarte.

Reasons:
  • Blacklisted phrase (1): ¿
  • Blacklisted phrase (2): estoy
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Estefania

79442418

Date: 2025-02-16 00:25:21
Score: 1.5
Natty:
Report link

np.dot(arr1, arr2.T) seems fast enough (equivalent: np.tensordot(arr1, arr2, axes=(1,1)); see here for the tensordot documentation). If it's faster for your array sizes then why use your for loop version?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: jared

79442413

Date: 2025-02-16 00:20:20
Score: 3.5
Natty:
Report link

You can try https://kudock.com/ to get the docker run command with what container was created

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

79442405

Date: 2025-02-16 00:08:18
Score: 3
Natty:
Report link

The OP had the right idea almost 12 years ago. Views should be objects. Now there are ways to do this in Rails with ViewComponent or Phlex.

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

79442402

Date: 2025-02-16 00:05:17
Score: 0.5
Natty:
Report link

Ignore everything everyone else said and use re2j. It uses linear-time automata-based engine, unlike the builtin regex library of Java (and pretty much every other programming language) which uses the horrendously inefficient backtracking engine, which in Java—as if that wasn't bad enough already—is implemented recursively, making its performance 100x worse due to the method call overhead, and another 100x times worse when running in debug mode. There is also no risk of StackOverflowException which very well can happen in Java, due to the aforementioned recursion.

For the interested readers: https://swtch.com/~rsc/regexp/regexp1.html

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Борат Сагдиев

79442395

Date: 2025-02-15 23:58:16
Score: 2
Natty:
Report link

None of these things worked for me, but I have resolved this issue. To deploy on an arbitrary computer, I find that you MUST, in addition to what is noted here, also install this file:

SQLSysClrTypes12.msi

It is still available from Microsoft website, download from this link:

https://www.microsoft.com/en-us/download/details.aspx?id=56041

Figured this out by inspiration. Thank you Jesus

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: user7191223

79442393

Date: 2025-02-15 23:50:15
Score: 2.5
Natty:
Report link
git log --pretty=format: --name-only --diff-filter=A

from here

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

79442391

Date: 2025-02-15 23:45:14
Score: 0.5
Natty:
Report link

Using collapse::flag. Lagged columns are automatically renamed with a prefix.

d = data.frame(t = 1:6)

library(collapse)
flag(d, n = 0:2)
#   t L1.t L2.t
# 1 1   NA   NA
# 2 2    1   NA
# 3 3    2    1
# 4 4    3    2
# 5 5    4    3
# 6 6    5    4
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gusbourne

79442387

Date: 2025-02-15 23:42:13
Score: 0.5
Natty:
Report link

Use FreeAmazonPrimeDownload software FreeAmazonPrimeDownload is a useful application for those who want to download and watch Amazon Prime videos offline. Its interface is intuitive and easy to use, even for those who are not tech-savvy. You simply paste the link of the desired video, be it an episode, part of a series, or a full movie, and press the download button. Once downloaded, videos can be sorted and filtered based on various criteria, such as prepared, downloading, paused, completed, or failed. Additionally, it's possible to export the list of current files to a text document for later review.

The application offers the possibility to change the default output folder and replace it with a custom one. You can also specify the number of download threads allowed simultaneously and select the quality level for audio and video files. However, it is important to keep in mind that the higher the quality, the larger the resulting files will be, thus requiring more space on the device.

In summary, FreeAmazonPrimeDownload can be very useful for those who want to get more out of their Amazon Prime subscription and save movies for offline viewing. Once downloaded, videos can be copied to smartphones or other portable devices and enjoyed without restrictions, even when no longer connected to the internet. https://freegrabapp.com/

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

79442382

Date: 2025-02-15 23:32:12
Score: 3.5
Natty:
Report link

Check if yout matrix source don't contais a null element.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Edilon Francisco silva junior

79442379

Date: 2025-02-15 23:29:11
Score: 4
Natty:
Report link

just wondering if there's a way I can get rid of the 2d map on the side of the raycaster.

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

79442376

Date: 2025-02-15 23:26:10
Score: 1
Natty:
Report link

I solved it here and pub.dev

Based on a project that required this type of card, I published a simple package to make it accessible for others to use.

enter image description here

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

79442370

Date: 2025-02-15 23:21:09
Score: 2
Natty:
Report link

I made a rookie mistake. ESM modules should have a package.json with "type": "module". Also, the eslint file needs to have a cjs extension in ESM. This as well as making changes to the tsconfig will allow the build to deploy correctly to cloud run!

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

79442367

Date: 2025-02-15 23:20:09
Score: 2
Natty:
Report link

As mentioned by Raghavendra N and EvilDr there does not seem to be a working solution.

As I tested sending these icalendar requests, I noted something interesting which could be used as "some kind of hack".

When you are "the organizer of the meeting" you do not need to respond.

So when you send an invite to person A and you configure the meeting to be organized by person A, he/she will not get the options to accept/temporary accept/reject.

@EvilDr, is it possible for you to code your requests so that each invitation is send individually, so you can "patch" the organizer of the meeting to be the one you are inviting? If so, this should fix your problem.

I am a starter on StackOverflow, so my score is still low, otherwise I would have added this as a comment. Adding it as "an answer" is the only possibility for me.

This is the code which gave me the "you are the organizer, so you do not need to react" response:

using System.Net.Mail;
using System.Net.Mime;
using System.Text;

var from = "sender@mailserver";
var subj = "TEST EMAIL " + DateTime.Now.ToString("G");
var body = "We do not handle accepting/temporary accepting/decling the appointment it is automatically accepted.";
var recipient = "recipient@mailserver";
var recipientName = "Name of Recipient";

MailMessage msg = new MailMessage();
msg.From = new MailAddress(from);
msg.To.Add(recipient);
msg.Subject = subj;

AlternateView avBody = AlternateView.CreateAlternateViewFromString(body, Encoding.UTF8, MediaTypeNames.Text.Html);
msg.AlternateViews.Add(avBody);


// Generate Calendar Invite ---------------------------------------------------  
StringBuilder str = new StringBuilder();
str.AppendLine("BEGIN:VCALENDAR");
str.AppendLine("PRODID:-//Schedule a Meeting");
str.AppendLine("VERSION:2.0");
str.AppendLine("METHOD:REQUEST");
str.AppendLine("BEGIN:VEVENT");
str.AppendLine(string.Format("DTSTART:{0:yyyyMMddTHHmmssZ}", DateTime.Now.AddMinutes(+330)));
str.AppendLine(string.Format("DTSTAMP:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow));
str.AppendLine(string.Format("DTEND:{0:yyyyMMddTHHmmssZ}", DateTime.Now.AddMinutes(+660)));
str.AppendLine("LOCATION: " + "online TEAMS LINK");
str.AppendLine(string.Format("UID:{0}", Guid.NewGuid()));
str.AppendLine(string.Format("DESCRIPTION:{0}", msg.Body));
str.AppendLine(string.Format("X-ALT-DESC;FMTTYPE=text/html:{0}", msg.Body));
str.AppendLine(string.Format("SUMMARY:{0}", msg.Subject));
str.AppendLine(string.Format("ORGANIZER:MAILTO:{0}", msg.To[0].Address));

str.AppendLine(string.Format("ATTENDEE;CN=\"{0}\";RSVP=FALSE:mailto:{1}", msg.To[0].DisplayName, msg.To[0].Address));

str.AppendLine("BEGIN:VALARM");
str.AppendLine("TRIGGER:-PT15M");
str.AppendLine($"ACTION;RSVP=FALSE;CN=\"{recipientName}\":MAILTO:{recipient}");
str.AppendLine("DESCRIPTION:Reminder");
str.AppendLine("END:VALARM");
str.AppendLine("END:VEVENT");
str.AppendLine("END:VCALENDAR");


// Attach Calendar Invite ------------------------------------------------------  
byte[] byteArray = Encoding.ASCII.GetBytes(str.ToString());
MemoryStream stream = new MemoryStream(byteArray);

Attachment attach = new Attachment(stream, "invite.ics");
attach.TransferEncoding = TransferEncoding.QuotedPrintable;
msg.Attachments.Add(attach);

ContentType contype = new ContentType("text/calendar");
contype.CharSet = "UTF-8";
contype.Parameters.Add("method", "REQUEST");
contype.Parameters.Add("name", "invite.ics");

AlternateView avCal = AlternateView.CreateAlternateViewFromString(str.ToString(), contype);
avCal.TransferEncoding = TransferEncoding.QuotedPrintable;
msg.AlternateViews.Add(avCal);

//Now sending a mail with attachment ICS file. ----------------------------------  
SmtpClient smtpclient = new SmtpClient();
smtpclient.Host = "mailserver";
smtpclient.EnableSsl = true;
smtpclient.Port = 587;
smtpclient.Credentials = new System.Net.NetworkCredential("username", "password");
smtpclient.Send(msg);
Console.WriteLine("Email Sent");
Console.ReadLine();
Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @EvilDr
  • Low reputation (1):
Posted by: lordofcode

79442362

Date: 2025-02-15 23:11:07
Score: 1
Natty:
Report link

I know this is an old post and I have 0 rep. So here is my CRITICAL comment on using the $type = "$type%": When using like in mysql queries you need to escape the $type first, otherwise foul people can insert the special match patterns (+%_) themselves, use addcslashes() so line should be

$type = addcslashes($type, '+%_') . '%'

then your code won't do unexpected things like return the entire database when someone types %a into the search box which in example code would become %a% and using code above \%a% and probable have no match. See https://www.php.net/manual/en/function.addcslashes.php and https://mariadb.com/kb/en/like/

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

79442357

Date: 2025-02-15 23:06:06
Score: 2
Natty:
Report link

Certainly doable. I just finished a WinRT/UWP projection for the Extensible Storage Engine API in the form of a component DLL and companion .winmd file. I used Windows Runtime Library (WRL) in place of C++/WinRT to better understand the low level interface. The calling side of the binding just has to be WinRT/UWP compliant. I'm assuming Haskell has a library or add-on to perform that.

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

79442340

Date: 2025-02-15 22:45:02
Score: 4
Natty:
Report link

In my case the channel was private once I created a new public chat and used the chat @username, the issue was resolved.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @username
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alisa Fodorov

79442328

Date: 2025-02-15 22:33:59
Score: 4
Natty: 4.5
Report link

thanks. would not have been able to figure this out. Thanks for including the screen shots as well. I'll update if it works or not.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sr Bruno

79442307

Date: 2025-02-15 22:10:54
Score: 2.5
Natty:
Report link

When using Angular you should keep your static images in the ./assets folder and then refer to those images by using for example src="/assets/img.png".

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Igor Augustyński

79442300

Date: 2025-02-15 22:03:53
Score: 0.5
Natty:
Report link

As of November 2024, AWS introduced support for appending data to objects stored in Amazon S3 Express One Zone buckets.

Example in JavaScript AWS SDK v3

s3.send(
  new PutObjectCommand({
    Bucket: 'bucket',
    Key: 'fileKey',
    Body: 'some body',
    WriteOffsetBytes: 123,
  })
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CZ workman

79442295

Date: 2025-02-15 22:00:52
Score: 0.5
Natty:
Report link

I've tried this pattern with regex101.com and it seems to be working as described:

 example@___.com - no match 
 [email protected] - no match 
 [email protected] - match 
 [email protected] - match

So the regex itself seems to be "correct" - could it be that the issue is somewhere else in the code?

As a side note - it also matches lines like:

example@./com
example@x com

Dot . outside of character class construct [] means "any character". If you want it to match exactly dot character and nothing else, escape it with slash: \.

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

79442290

Date: 2025-02-15 21:55:51
Score: 1.5
Natty:
Report link

Add this to your Django settings file:

SHELL_PLUS = "ipython"
IPYTHON_ARGUMENTS = ["--ext", "autoreload", "-c", "%autoreload 2", "-i"]

and see this answer to understand how it works.

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

79442287

Date: 2025-02-15 21:50:50
Score: 0.5
Natty:
Report link

Communicating with JavaScript and Python is easy. All you need to do is use Python’s requests library to communicate. But this is just for the requests. You will also need a server to communicate. We can use Python’s Flask library to set up a server and communicate. There is also a part of Python’s Flask called jsonify that can allow you to turn our Python-generated format to JSON. We would also need to use Node.js’s child_processes() library to handle our communications with our Python while doing the main task of our JavaScript. This can work, if your Flask server is booted up. I forgot to boot it up and my HTML did absolutely nothing when I interacted with it. So boot up your Flask server and create the Pycommunicate.js package (or whatever you want to call it)

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

79442280

Date: 2025-02-15 21:47:49
Score: 1
Natty:
Report link

how are you?

I had the same problem and solved it by using P-User and password, instead of username and password

cf login -a <cloud_foundry_api> -u <your_p_or_s_user> -p <your_password>

The same thing happens for the BTP CLI.

I hope it works for you

Reasons:
  • Whitelisted phrase (-1): hope it works
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how are you
  • Low reputation (1):
Posted by: Gabriel Rodrigues

79442279

Date: 2025-02-15 21:44:48
Score: 1
Natty:
Report link

This is an old question but I found a solution. I'm using a QSortFilterProxyModel but it should work with your tree model. Just emit the dataChanged() signal with invalid model indicies like so:

dataChanged(QModelIndex(), QModelIndex());

This way no data is affected and the treeView refreshes.

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

79442277

Date: 2025-02-15 21:42:48
Score: 1
Natty:
Report link

After understanding more about how admins create segments in the Wix UI, it appears that segments are dynamic, in that you do not manually add a contact to a segment, but rather the segment is simply a filtered view of contacts updated once a day.

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

79442272

Date: 2025-02-15 21:36:47
Score: 1
Natty:
Report link

# Subject: Internal script counter.

# Example: time of file download, and so on.

now=$(date +'%s')sec;

echo ""

echo "[INF] Running script..."

echo ""

# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.

# Timmer command, Input: 5 seconds.

sleep 5s

InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")

# Output: 5 seconds.

echo "[INF] Internal run time of the script: $InfTimExe"

echo ""

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

79442270

Date: 2025-02-15 21:33:46
Score: 3
Natty:
Report link

Go to your NetBeans folder >project folder>src>main>create a resources folder>then images folder>paste your images here issue solved.

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

79442259

Date: 2025-02-15 21:25:45
Score: 3.5
Natty:
Report link

https://github.com/moses-palmer/pynput/issues/614#issuecomment-2661108140

the issues has been solved by moss palmer however as of the current writing it has not been

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

79442257

Date: 2025-02-15 21:24:44
Score: 1
Natty:
Report link

I've had similar problems, even just coping project files from one computer to another.

I found that if I "Clean" they build configurations, then re-build the app seems to work. My thinking is that the .O (object) files compiled with a "different" compiler are looking for things 'VCL.VIRTUALIMAGELIST.O' in the "wrong" place, Sydney compiled differently than the new x64 in Athens, or something like that.

Anyway: Right click Build Configuration, select Clean. Then Build

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

79442255

Date: 2025-02-15 21:22:44
Score: 3.5
Natty:
Report link

just clear your browsers local storage and also delete published views if you have them

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ah ab

79442247

Date: 2025-02-15 21:14:42
Score: 0.5
Natty:
Report link

Given your use case and based on @raghvendra-n's answer, you could take advantage of post_logout_redirect_uri parameter.

const signOut: JwtAuthContextType['signOut'] = useCallback(() => {
        removeTokenStorageValue();
        removeGlobalHeaders(['Authorization']);
        setAuthState({
            authStatus: 'unauthenticated',
            isAuthenticated: false,
            user: null
        });
        auth.signoutRedirect({post_logout_redirect_uri: "http://host:8080/connect/logout"});
    }, [removeTokenStorageValue]);

What I would like to add, is as can be seen from the code, signoutRedirect needs an absolute path to the URL

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @raghvendra-n's
  • Low reputation (0.5):
Posted by: pratikpc

79442236

Date: 2025-02-15 20:59:39
Score: 2
Natty:
Report link

I've been hitting this error as well, so did some testing.

It looks like this is being caused by a bug that has already been fixed in Next.js - it seems to have been introduced in 15.1.0, and it is fixed in the 15.2.0 canary releases.

Downgrading Next.js to 15.0.4 fixed the issue for me.

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

79442228

Date: 2025-02-15 20:48:37
Score: 1.5
Natty:
Report link

Yes, you're absolutely right, testing AWS SDK v2 is too way verbose.The main issue is that AWS removed interfaces from service clients (like s3.Client), so we can't just mock them directly like we did in v1. That forces us to stub entire clients, which is a pain.

In my opinion, it's better to Wrap AWS clients in a small interface and mock that instead.

Because of using struct instead of interfaces in AWS SDKv2 you cannot mock s3.Client directly.

How to fix? Instead of testing against s3.Client, define a minimal interface for only the methods you need:

type S3API interface {
    PutObject(ctx context.Context, params *s3.PutObjectInput) (*s3.PutObjectOutput, error)
}

type S3Client struct {
    Client *s3.Client
}

func (s *S3Client) PutObject(ctx context.Context, params *s3.PutObjectInput) (*s3.PutObjectOutput, error) {
    return s.Client.PutObject(ctx, params)
}

Now in your real code, you should depend on S3API not s3.Client which makes your mocking simpler.

With the interface in place, we don’t need AWS SDK stubs anymore. We can just do this:

type MockS3 struct{}

func (m MockS3) PutObject(ctx context.Context, params *s3.PutObjectInput) (*s3.PutObjectOutput, error) {
    if *params.Bucket == "fail-bucket" {
        return nil, errors.New("mocked AWS error")
    }
    return &s3.PutObjectOutput{}, nil
}

And you can do this magic everywhere like your entire code, and you might use a robust level of abstraction which not depend on AWS SDK.

See this:

type MyUploader struct {
    s3Client S3API
}

func (u *MyUploader) Upload(ctx context.Context, bucket, key string, body []byte) error {
    _, err := u.s3Client.PutObject(ctx, &s3.PutObjectInput{
        Bucket: &bucket,
        Key:    &key,
        Body:   body,
    })
    return err
}

With this setup, your service doesn’t care whether it’s using a real AWS client or a mock—it just calls PutObject().

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Amin Mortezaie

79442204

Date: 2025-02-15 20:32:33
Score: 4.5
Natty:
Report link

Excellent, this worked like a charm.

Reasons:
  • Blacklisted phrase (1): worked like a charm
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: rahul_jk

79442191

Date: 2025-02-15 20:22:31
Score: 1
Natty:
Report link

sorry to continue on old topic, but as experience shows Microsoft is pretty slow on the development lately. They just released support for UWP in .NET 9. There are some adjustments to do, but they promise that UWP API is available as before, no new features though (except supporting still the UWP technology stack on .NET 9, since it was based before on .NET Core 3.1 that is now out of service (since December 13, 2022).

It requires last update of Visual Studio 2022, v17.13. https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#desktop

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

79442189

Date: 2025-02-15 20:20:31
Score: 0.5
Natty:
Report link

"Canvas is not a constructor" any more. Use Canvas.createCanvas instead.

const http = require('http'); 
const fs = require('fs');
const Canvas = require('canvas');

http.createServer(function (req, res) {
    fs.readFile(__dirname + '/image.jpg', async function(err, data) {
        if (err) throw err;
        const img = await Canvas.loadImage(data);
        const canvas = Canvas.createCanvas(img.width, img.height);
        const ctx = canvas.getContext('2d');
        ctx.drawImage(img, 0, 0, img.width / 4, img.height / 4);

        res.write('<html><body>');
        res.write('<img src="' + canvas.toDataURL() + '" />');
        res.write('</body></html>');
        res.end();
    });

}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29660274

79442183

Date: 2025-02-15 20:18:30
Score: 1.5
Natty:
Report link

I was working with 2025.2.1 and noticed a huge slowdown and it didn't matter how big the project was. It was very odd as it would autocomplete very fast outside of a function, but then take a few seconds within a function after an arbitrary line of code.

I rolled back to 2024.10.1 and it is blazing fast again for autocomplete even on my large project with tens of thousands of lines of code.

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

79442181

Date: 2025-02-15 20:16:29
Score: 3
Natty:
Report link

Finally, they officially brought this feature to C# extension https://github.com/dotnet/vscode-csharp/issues/6834

Just go to settings and enable Format On Type:

enter image description here

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

79442176

Date: 2025-02-15 20:13:28
Score: 4
Natty:
Report link

Soved by adding iconipy "assets" folder into "_internal" as whole folder inside pyinstaller .spec file + add "iconipy" as hiddenimports: Soluiont

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jan Vaško

79442173

Date: 2025-02-15 20:09:28
Score: 1
Natty:
Report link

I tried the solution of setting sizes above but it has many problems in my case because the state must be set in my application based on stored preference and the expanded size is thus not known on construction.

I found it is much simpler to just set the visibility of enclosed panels false and revalidate. Sample code below for this effect in my code:

enter image description here

    static prefs=Preferences.node("myprefsnode"); // check, might be different for you
    private class GroupPanel extends JPanel {


        private TitledBorder border;
        private Dimension collapsedSize;
        private boolean collapsible = true, collapsed;
        final String collapsedKey;
        JPanel placeholderPanel = new JPanel();
        Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR),
                uncollapseCursor = new Cursor(Cursor.N_RESIZE_CURSOR),
                collapseCursor = new Cursor(Cursor.S_RESIZE_CURSOR);

        public GroupPanel(String title) {

            setName(title);
            collapsedKey = "GroupPanel." + getName() + "." + "collapsed";
            border = new TitledBorder(getName());
            border.setTitleColor(Color.black);
            setToolTipText(String.format("Group %s (click title to collapse or expand)", title));

            setAlignmentX(LEFT_ALIGNMENT);
            setAlignmentY(TOP_ALIGNMENT);
            // because TitledBorder has no access to the Label we fake the size data ;)
            final JLabel l = new JLabel(title);
            Dimension d = l.getPreferredSize(); // size of title text of TitledBorder
            collapsedSize = new Dimension(getMaximumSize().width, d.height + 2); // l.getPreferredSize(); // size of title text of TitledBorder

            collapsed = prefs.getBoolean(collapsedKey, false);
            setTitle();

            addMouseMotionListener(new MouseMotionAdapter() {
                @Override
                public void mouseMoved(MouseEvent e) {
                    if (isMouseInHotArea(e)) {
                        if (collapsed) {
                            setCursor(uncollapseCursor);
                        } else {
                            setCursor(collapseCursor);
                        }
                    } else {
                        setCursor(normalCursor);
                    }
                }

            });
            addMouseListener(new MouseAdapter() {

                @Override
                public void mouseClicked(MouseEvent e) {
                    if (!collapsible) {
                        return;
                    }

                    if (getBorder() != null && getBorder().getBorderInsets(GroupPanel.this) != null) {
                        Insets i = getBorder().getBorderInsets(GroupPanel.this);
                        if (e.getX()  " + getName());
            }
            setBorder(border);

        }

        public void setCollapsible(boolean collapsible) {
            this.collapsible = collapsible;
        }

        public boolean isCollapsible() {
            return this.collapsible;
        }

        public void setTitle(String title) {
            border.setTitle(title);
        }

        /**
         * @return the collapsed
         */
        public boolean isCollapsed() {
            return collapsed;
        }
    }
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @Override
  • User mentioned (0): @Override
  • User mentioned (0): @return
  • Low reputation (0.5):
Posted by: tobi delbruck