79402921

Date: 2025-01-31 13:52:53
Score: 3
Natty:
Report link

Changing the package name worked for me as well! Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29447665

79402910

Date: 2025-01-31 13:48:52
Score: 0.5
Natty:
Report link

Well, I remembered in SQLX there are pre_operations { ... } so I experimented with this:

config {
  type: "table",
  schema: "debug",
  name: "test"
}

pre_operations {
  CREATE TEMP FUNCTION addition(a INT64, b INT64)
  RETURNS INT64
  AS (
      a + b
  );
---
  CREATE TEMP FUNCTION multiply(a INT64, b INT64)
  RETURNS INT64
  AS (
      a * b
  );
}

WITH numbers AS
  (SELECT 1 AS x, 5 as y
  UNION ALL
  SELECT 2 AS x, 10 as y
  UNION ALL
  SELECT 3 as x, 15 as y)

SELECT
    x,
    y,
    addition(x, y) AS added,
    multiply(x, y) as multiplied
FROM numbers

This works well when the job is executed, however it doesn't work when pressing "Run":

b0rk3d results saying "Function not found: addition at 15:5"

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Matt Scheurich

79402908

Date: 2025-01-31 13:47:51
Score: 1
Natty:
Report link

I am not able to reproduce the issue. Here's what I am trying:

quarkus create app hello-quarkus -x kubernetes

I copy and paste the properties from your post and then run

./mvnw clean install

I check the generated files under target/kubernetes/kubernetes.yaml|json and I am seeing:

            - name: JAVA_TOOL_OPTIONS
              value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
Reasons:
  • Blacklisted phrase (1): I am not able to
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: iocanel

79402904

Date: 2025-01-31 13:46:51
Score: 2
Natty:
Report link

Reposting Andrew Poelstra answer from https://github.com/rust-bitcoin/rust-bitcoin/issues/3969

It looks like you're setting your prevout to the 0th output of the transaction you're signing. But it needs to be the 0th output of the other transaction, a6935. BTW, I make this mistake constantly. I wonder if there's a good way to solve it in the API.

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

79402903

Date: 2025-01-31 13:45:51
Score: 3.5
Natty:
Report link

enter socket.io into the filtering bar then toggle 'Invert enter image description here

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

79402898

Date: 2025-01-31 13:44:51
Score: 1
Natty:
Report link

I just had the symptoms, I was doing changes in my files and nothing would show in GitKraken.

Turns out I startet a rebase, which gave an error, but I forgot to abort the rebose, so it was still trying to rebase and ignoring the changes in the files...

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

79402880

Date: 2025-01-31 13:36:48
Score: 11 🚩
Natty: 6.5
Report link

I'm working on something very similar. I'm using background-action service to stablish socket connection with my server, similar to yours I'm too facing this issue that the background-action service gets killed after unpredictable time. did you find any solution to this problem?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution to this problem
  • RegEx Blacklisted phrase (2): any solution to this problem?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Manthan Manral

79402879

Date: 2025-01-31 13:36:48
Score: 2
Natty:
Report link

Nowadays you can just set this inside the onCreate

supportActionBar?.hide()
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Otávio Dutra

79402871

Date: 2025-01-31 13:32:47
Score: 1
Natty:
Report link

10:56:50.859 3627 10040 D 2025-01-31 Launcher. AppLoader Task Hide the app component is com.google.ar.lens 2025-01-31 10:56:55.170 3627 10040 Launcher. AppLoader Task Hide the app component is com.google.ar.lens 2025-01-31 10:57:42.387 3627 10040 D Launcher. AppLoader Task Hide the app component is com.google.ar.lens 2025-01-31 10:58:37.671 3627 10040 D Launcher. AppLoaderTask Hide the app, component is com.google.ar.lens 2025-01-31 10:58:37.755 3627 10040 D Launcher. AppLoaderTask Hide the app component is com.google.ar.lens 2025-01-31 10:58:52.681 3627 10040 D Launcher. AppLoaderTask Hide the app component is com.google.ar.lens 2025-01-31 10:59:03.386 3627 10040 Launcher.AppLoaderTask Hide the app, component is com.google.ar.lens 2025-01-31 10:59:14.461 3627 10040 D Launcher. AppLoaderTask Hide the app, component is com.google.ar.lens 2025-01-31 10:59:14.710 3627 10040 D Launcher. AppLoaderTask Hide the app 2025-01-31 14:37:20.598 3627 10040 D Launcher. AppLoaderTask Hide the app component is com.google.ar.lens Launcher. AppLoader Task Hide the app component is com.google.ar.lens 2025-01-31 14:37:32.953 3627 10040 D component is com.google.ar.lens 2025-01-31 14:38:06.920 3627 10040 D component is com.google.ar.lens Launcher. AppLoaderTask Hide the app, 2025-01-31 14:38:07.293 3627 10040 D Launcher. AppLoaderTask Hide the app omnonont ir

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

79402870

Date: 2025-01-31 13:32:46
Score: 9
Natty: 8.5
Report link

were you able to find a solution? I'm really desperate right now. Thanks a lot!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): were you able to find a solution
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luc

79402869

Date: 2025-01-31 13:32:46
Score: 2.5
Natty:
Report link

It works since I update the $schema to "http://json-schema.org/draft/2020-12/schema#"

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

79402864

Date: 2025-01-31 13:30:46
Score: 0.5
Natty:
Report link

The error you are seeing suggests that the NFS mount is being used by several processes at once and that there is a locking problem on the NFS server, as stated in the comments.

Please be noted that LevelDB is designed to be used by a single process at a time. When you are trying for multiple processes this could also be done by using kubernetes mechanisms like Pod Affinity or Pod Anti-Affinity to make sure that only one pod can access the database at a time.

Adding to that you can also use the Pod Topology Spread Constraints which might help to resolve the constraint issue.

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

79402852

Date: 2025-01-31 13:24:45
Score: 1
Natty:
Report link
--lowquality

This param reduced my PDF from 2.6MB to just 102kb without (almost) any quality loss. If you have the newest version (0.12.6 or higher), then you likely won't have any filesize issues. I had to downgrade to 0.12.2.1 because of problems with transparent PNG's showing up as grayscale.

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

79402849

Date: 2025-01-31 13:24:45
Score: 1.5
Natty:
Report link

Changing the pre commit config to this seemed to do the trick:

# .pre-commit-config.yaml
repos:
-   repo: https://github.com/aws-cloudformation/cfn-lint
    rev: v1.23.1 # The version of cfn-lint to use
    hooks:
    -   id: cfn-lint
        files: final_stacks/.*\.(json|yml|yaml)$
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Steyn van Wyk

79402843

Date: 2025-01-31 13:22:44
Score: 1.5
Natty:
Report link

Take a look at this sample : zephyr/samples/boards/nrf/system_off/src/main.c

In older version of zephyr you had to use:

pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});

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

79402832

Date: 2025-01-31 13:20:43
Score: 1
Natty:
Report link

Unfortunately the Nextcloud documents are so weak.

you can find csrf token in this URL: your_nextcloud_domain/index.php/csrftoken.

I used it in angular and for this you should set it in two place: first, set it as request header as requesttoken. second, save it as cookie in your browser and send it along your request as requesttoken.

NOTE: for sending cookie along your request in angular you must set withcredentials:true in request options.like this: this.httpClient.put(this.baseUrl , data, {withCredentials:true});

Until here the csrf error has been solved but remember that you must send your credentials(username,password) in request header for authenticating user.

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

79402825

Date: 2025-01-31 13:17:42
Score: 2.5
Natty:
Report link

I had a similar problem where a glue job was not seeing the database in the catalog. The option "Use Glue data catalog as the Hive metastore" was not flag and it must be flag as true to solve this problem

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

79402824

Date: 2025-01-31 13:17:42
Score: 2.5
Natty:
Report link

After tracking the source of the problem, I found that jQuery (which is causing the issue) is only required by React Owl Carousel. I will consider using another carousel library so that I get rid of jQuery.

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

79402817

Date: 2025-01-31 13:13:41
Score: 1.5
Natty:
Report link

If you add the code to sitecustomize such as /usr/lib/python3.13/sitecustomize.py it will be loaded automatically in all sessions and virtual environments.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Markus Hirsimäki

79402816

Date: 2025-01-31 13:13:41
Score: 1
Natty:
Report link
j=input("Enter the value")
print("The word you entered is", j)
print("The last letter of",j,"is",j[len(j)-1])
  1. Typing : It asks us what value to type if we type a value if it is dynamic.
  2. Displays : It shows you the word you wrote.
  3. End : The last letter is said.
  4. Function : It is possible to find the last letter by this function.
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Racecar

79402815

Date: 2025-01-31 13:13:41
Score: 3
Natty:
Report link

For 2025

Here is the short process for vscode versions

enter image description here

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

79402812

Date: 2025-01-31 13:12:41
Score: 3.5
Natty:
Report link

it's "Gruvbox Theme" u can download it from Extentions:marketplace on VScode

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

79402802

Date: 2025-01-31 13:05:39
Score: 1
Natty:
Report link
CASE 
  WHEN curOther > .04 THEN curOther * 1  -- Keep the number as it is
  WHEN curOther >= .01 AND curOther <= .04 THEN curOther * .25  -- Multiply by 0.25 if between 0.01 and 0.04
  ELSE curOther  -- If it’s below .01, do nothing
END
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jose A

79402788

Date: 2025-01-31 12:58:37
Score: 1
Natty:
Report link

Had a similar issue where I was simply not able to install Microsoft.Data.SqlClient package.

I was able to solve it by clearing the nuget cache:

dotnet nuget locals all --clear

and then deleting my local nuget config:

del /q %AppData%\NuGet\NuGet.Config

Afterwards I was able to install the package.

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

79402787

Date: 2025-01-31 12:58:36
Score: 4
Natty:
Report link

Why not try ConstraintLayout, which I think is the dominant layout these days

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: Atrideistria l

79402782

Date: 2025-01-31 12:56:34
Score: 6 🚩
Natty: 6
Report link

The answer provided by @davidebacci is a working solution, but the performance is rather bad. Before, I was using a Nested Join (left outer join), but I needed an additional condition. This topic helped me in finding a way to implement this condition, but my model is not loading anymore.

Any hints on improving the performanc?

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @davidebacci
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: mb769

79402768

Date: 2025-01-31 12:47:32
Score: 3
Natty:
Report link

it was actually the opposite for me, using standard npm (over npx expo) to install worked.

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

79402766

Date: 2025-01-31 12:46:32
Score: 0.5
Natty:
Report link

For Linux and Windows WSL users (may work on Mac but untested)

  1. Download this ssh agent key caching script I created to your ~/.ssh/ folder

    key_agent.sh

  2. Link to it in your ~/.bashrc by adding these lines to the end of the file

    # Load the SSH key agent management script
    if [ -f "$HOME/.ssh/key_agent.sh" ]; then
      . "$HOME/.ssh/key_agent.sh"
    fi
    
  3. Finally in your terminal, set git to always use the ssh-agent by running the following

git config --global core.sshCommand "ssh -o IdentityAgent=$SSH_AUTH_SOCK"

The key agent script will check whether keys are already loaded and if so apply them to the current terminal or if not load any of the keys that have not been loaded and apply them.

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

79402764

Date: 2025-01-31 12:43:31
Score: 2
Natty:
Report link

The course was well-structured and informative.

Engaging and interactive sessions helped in better learning.

Practical tips and techniques were highly beneficial.

Could include more real-life examples for better understanding.

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

79402751

Date: 2025-01-31 12:36:29
Score: 1
Natty:
Report link

2025 - Copy all image tags using skopeo

Here are a few scripts that use skopeo to copy all tags from one registry to another. It also supports getting a list of "sub-registries" from GitLab and copy all of them. As well as copying Helm charts from GitLab Helm repo to OCI.

https://gist.github.com/StianOvrevage/c5f7d0783edf6aa84494cfdcde5ac5b4

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Stian Øvrevåge

79402745

Date: 2025-01-31 12:34:28
Score: 2.5
Natty:
Report link

Replace :

import * as saveAs from 'file-saver';

By :

import saveAs from 'file-saver';

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

79402743

Date: 2025-01-31 12:33:28
Score: 1
Natty:
Report link

As of February 2025, this is not possible.

I opened an issue at the GitHub's repo, as feature request.

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

79402736

Date: 2025-01-31 12:32:28
Score: 2.5
Natty:
Report link

I was pulling my hairs out over a similar issue.

The option for auto-completing quotes is actually called 'Auto Surround Mode' and you can change it per language: Tools->Options -> Text Editor -> C/C++ -> Advanced -> Text Editor -> Auto Surround Mode.

enter image description here

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

79402733

Date: 2025-01-31 12:30:27
Score: 0.5
Natty:
Report link

To render a custom year, you can use the renderYearContent prop as shown here https://reactdatepicker.com/#example-custom-year

renderYearContent={(year) => (
    <div>
      {`${year.toString().slice(-2)}-${(year + 1).toString().slice(-2)}`}
    </div>
  )}
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adam P.

79402727

Date: 2025-01-31 12:27:27
Score: 1
Natty:
Report link

I encountered the same issue on my iPhone. Updating iOS from 18.1 to 18.3 resolved the problem for me.

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

79402724

Date: 2025-01-31 12:26:26
Score: 2.5
Natty:
Report link

Would you consider using regular expressions to find Markdown syntax in your text?

I think it will help you to identify pieces of text easier.

For example: bold text is a pattern of: **\w+**

And this will help you avoid replacing irrelevant strings. You need to identift all markdown syntaxes and write similar conversions. I can help you with that too. Let me know if you are happy to utilize regex.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ali

79402721

Date: 2025-01-31 12:25:26
Score: 1.5
Natty:
Report link

Using a managed system identity with an Azure Function, to connect to the storage account. The fix was as @user71030 mentioned, to add Host.Results to the logging configuration with a level of information. The invocations seem to be slow to appear, in my case it took 3 minutes for it to show up. It had appeared in the log trace table before it appeared in the invocations list.

"logLevel": {
  "default": "Warning",
  "Host.Results": "Information",
  "Function": "Information"
},
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @user71030
  • Low reputation (1):
Posted by: Alan Joyce

79402720

Date: 2025-01-31 12:25:26
Score: 3
Natty:
Report link

Just resolved the same issue by figuring out that I had another alive connection to my H2 database - via IntelliJ's Database explorer.

If it can help anyone. Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: tdonnenfeld

79402719

Date: 2025-01-31 12:25:26
Score: 3.5
Natty:
Report link

Got the solution to the problem in the code. Still, I don't understand what is the logic behind it. Following are the modifications to the codes: (Thanks in advance for any further modification or comment )

from tkinter import *
import tkinter as tk
from PIL import ImageTk,Image
from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg,NavigationToolbar2Tk)
import matplotlib.pyplot as plt
from matplotlib.figure import Figure

# Variables for line plots
x= [1,2,3,4]
y=[4,5,6,7]

x1=[5,6,7,3,1]
y1=[8,9,10,2,4]

x2=[1,4,2,5,9,3]
y2=[2,5,1,6,1,4]

#-------------------------------------
# MODIFICATION TO EARLIER CODES

# the figure that will contain the plot 
fig1 = Figure(figsize = (5, 5),dpi = 100)
# list of squares 
# adding the subplot 
plot1 = fig1.add_subplot(111)
# plotting the graph 
plot1.plot(x,y)


# the figure that will contain the plot 
fig2 = Figure(figsize = (5, 5),dpi = 100)
# list of squares 

# adding the subplot 
plot2 = fig2.add_subplot(111)
# plotting the graph 
plot2.plot(x1,y1)

# the figure that will contain the plot 
fig3 = Figure(figsize = (5, 5),dpi = 100)
# list of squares 

# adding the subplot 
plot3 = fig3.add_subplot(111)
# plotting the graph 
plot3.plot(x2,y2)

#-------------------------------------
#Earlier part of the code which is replaced by above    
# # Creating figures
# fig1,ax1 = plt.subplots()
# ax1.plot(x, y, marker='o', label="Data Points",color='red')
# ax1.set_title("Basic Components of Matplotlib Figure")
# ax1.set_xlabel("X-Axis") 
# ax1.set_ylabel("Y-Axis")
# fig1.tight_layout()
# # plt.show()

# fig2,ax2 = plt.subplots()
# ax2.plot(x1, y1, marker='o', label="Data Points",color='green')
# ax2.set_title("Basic Components of Matplotlib Figure")
# ax2.set_xlabel("X-Axis") 
# ax2.set_ylabel("Y-Axis")
# fig2.tight_layout()

# fig3,ax3 = plt.subplots()
# ax3.plot(x2, y2, marker='o', label="Data Points",color='orange')
# ax3.set_title("Basic Components of Matplotlib Figure")
# ax3.set_xlabel("X-Axis") 
# ax3.set_ylabel("Y-Axis")
# fig3.tight_layout()
#-------------------------------------

fig_list = [fig1,fig2,fig3]



def frwrd(number):
    global Fw_Btn
    global Bck_Btn
    global exit_btn
    global frame1
    global Fig_Canvas
    frame1.destroy()
       
    #  Creating a frame in root
    frame1= Frame(root,bg= "green")
    frame1.grid(row=1,column=0,columnspan=3,padx=10,pady=10,sticky='nsew')    

    # Create a figure canvas again
    Fig_Canvas = FigureCanvasTkAgg(fig_list[number-1],master = frame1)
    Fig_Canvas.draw()
    Fig_Canvas.get_tk_widget().grid(row=0,column=0)





    #  Creating buttons again
    Fw_Btn = Button(root, text = '>>',command=lambda:frwrd(number + 1))
    Bck_Btn = Button(root, text = '<<',command= lambda: back(number - 1))
    if number ==3:
        Fw_Btn = Button(root, text = '>>',state=DISABLED)
    
    Fw_Btn.grid(row=0,column=2,sticky='nswe')
    Bck_Btn.grid(row=0,column=0,sticky='nswe')
    exit_btn.grid(row=0,column=1,sticky='nswe')
    

def back(number):
    global Fw_Btn
    global Bck_Btn
    global exit_btn
    global frame1
    global Fig_Canvas
    
    
    frame1.destroy()
    
    #  Creating a frame inplace of root
    frame1= Frame(root,bg= "green")    
    frame1.grid(row=1,column=0,columnspan=3,padx=10,pady=10,sticky='nsew')

    # Create a figure canvas again
    Fig_Canvas = FigureCanvasTkAgg(fig_list[number-1],master = frame1)
    Fig_Canvas.draw()    
    Fig_Canvas.get_tk_widget().grid(row=0,column=0) 
    # Creating buttons again
    Fw_Btn = Button(root, text = '>>',command=lambda:frwrd(number + 1))
    Bck_Btn = Button(root, text = '<<',command= lambda: back(number - 1))
    if number ==1:
        Bck_Btn = Button(root, text = '<<',state=DISABLED)   
    
    Fw_Btn.grid(row=0,column=2,sticky='nswe')
    Bck_Btn.grid(row=0,column=0,sticky='nswe')
    exit_btn.grid(row=0,column=1,sticky='nswe')
    

# root of tkinter
root = Tk()
root.geometry('700x600')

# Buttons
Fw_Btn = Button(root, text = '>>',command=lambda: frwrd(2))
Bck_Btn = Button(root, text = '<<',command= back,state=DISABLED)
exit_btn = Button(root,text = 'Exit',command=  root.quit)

# Placing buttons
Bck_Btn.grid(row=0,column=0,sticky='nswe')
exit_btn.grid(row=0,column=1,sticky='nswe')
Fw_Btn.grid(row=0,column=2,sticky='nswe')

#  Creating a frame in root
frame1= Frame(root,bg= "green")
frame1.grid(row=1,column=0,columnspan=3,padx=10,pady=10,sticky='nsew')

# Creating a figure canvas
Fig_Canvas = FigureCanvasTkAgg(fig1,master = frame1)
Fig_Canvas.draw()
Fig_Canvas.get_tk_widget().grid(row=0,column=0)

# Configureing the root
root.grid_columnconfigure([0,1,2],weight=1)
root.grid_rowconfigure(1,weight=1)
root.mainloop()
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: pranjal

79402718

Date: 2025-01-31 12:24:26
Score: 1
Natty:
Report link

I was able to fix the issue but still don't quite understand the why. We have Codeigniter 3 and Codeigniter 4 running side by side while we do a large migration project. I had my index.php for CI3 set to the production database. When my .env for CI4 was set to development, things didn't work. When I changed the index.php to development, and the two matched, I was able to stay logged in.

The code for CI4 pages shouldn't be hitting CI3 code, so I'm going to try to track down why that was happening. It's a complex configuration we have going on, but we have an extremely large code base that needs to be rewritten.

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

79402702

Date: 2025-01-31 12:19:24
Score: 2.5
Natty:
Report link

give this a try: the app registration probably needs to have accessTokenAcceptedVersion to 2 in its manifest (in old view).

enter image description here

or requestedAccessTokenVersion to 2 (in new view)

enter image description here

v1 and v2 token have different field name and issuer format.

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

79402697

Date: 2025-01-31 12:17:24
Score: 1.5
Natty:
Report link

As mentioned in my comment, I changed the value from Long to LongPtr for the variable lpfnEnum in the declaration of function EnumDisplayMonitors. Now the code compiles without any errors!

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

79402695

Date: 2025-01-31 12:17:24
Score: 4
Natty: 5
Report link

Thanks Daniel, got the only solution on the internet.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Priyam Pradhan

79402689

Date: 2025-01-31 12:14:23
Score: 3
Natty:
Report link

Login on port 8000 with your admin user: https://your-tenable-IP:8000 and select "Install docker" option:

enter image description here

Oficial docs

On "Web App scanning" try to re-download:

enter image description here

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

79402686

Date: 2025-01-31 12:13:22
Score: 6 🚩
Natty:
Report link

Facing the same issue. Pathetic dev support/forum. Doesn't even let one post the issue

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sahas

79402681

Date: 2025-01-31 12:11:21
Score: 1.5
Natty:
Report link

For linux, I found this oneliner to be super useful: echo 'all:;@echo $(SHELL)' | make -f-

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

79402678

Date: 2025-01-31 12:09:20
Score: 0.5
Natty:
Report link

Records are not meant as a short-cut to create a class. Instead, records are an

"anonymous, immutable, aggregate type"

that are

"structurally typed based on the types of their fields".

Their main use is to bundle multiple values of different types together. They can be used, for example, to return multiple values from a function (in a type-safe manner), or in the context of pattern-matching.

Reasons:
  • No code block (0.5):
Posted by: Dan R

79402677

Date: 2025-01-31 12:09:20
Score: 2
Natty:
Report link

If it's possible, you need firstly to sort datasets by (visitor_id) and then bucket with the same column (visitor_id) and same amount of buckets (1024). In case of sorted datasets by the same column and bucketed in the same number.

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

79402675

Date: 2025-01-31 12:09:20
Score: 0.5
Natty:
Report link

Once you are in screen space coordinates it should be pretty straightforward to check if either at least on of the quad's points lie within the screen area, or if any of the four screen points lie within the quad (this can be done with at max 12 dot products in 2D). Last one is needed if only part of one edge of the quad is onscreen. That should be it.

You can do the same thing in world space, using distance to plane (points inside view frustrum) and line-triangle intersection tests (frustrum edges against quad).

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

79402642

Date: 2025-01-31 11:58:17
Score: 0.5
Natty:
Report link

When you deploy code to azure, were all existing files/ddl are cleared? it could be that old dlls still on the app service (not cleaned).

Also check the zip or folder of build/published package locally to see if both System.Data and Microsoft.Data dll are actually both there.

Regarding The exception occurs when connection string is parsed, probably you mean `not parsed' so gives exception above? If local uses Microsoft.Data, the app service should too. check the difference in debug and release folder to see if all dlls are same.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: qkfang

79402640

Date: 2025-01-31 11:56:15
Score: 6.5 🚩
Natty: 5.5
Report link

it is very helpful to me but I need complete configuration step to configure master dns and slave dns from my end. Can you please give me an assistantance on it.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Can you please give me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Reddaiah

79402637

Date: 2025-01-31 11:56:15
Score: 5
Natty:
Report link

There is the discussion for it: https://github.com/orgs/bluez/discussions/1083

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ambrus Beke

79402633

Date: 2025-01-31 11:53:14
Score: 1.5
Natty:
Report link

Does Postgres handle JOIN queries differently? Yes, in a way. The difference is not specific to PostgreSQL but rather to SQL's three-valued logic (TRUE, FALSE, NULL) and how NULL interacts with conditions:

In a simple query, NULL != 'spam' results in NULL, which is not explicitly excluded, so those rows still appear. In a JOIN query with a WHERE clause, NULL != 'spam' causes rows to be excluded because the WHERE clause only keeps TRUE values. This is a fundamental SQL behavior, not a Postgres-specific feature.

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

79402614

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

when Container Apps Environment is deployed inside a vnet, additional supporting resource are created to support vnet like a load balancer in MC_ resource group.

if Container Apps Environment does not use vnet, then you should not see the additional load balancer.

Azure container app, how remove load balancer

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): when
  • Low reputation (0.5):
Posted by: qkfang

79402613

Date: 2025-01-31 11:44:11
Score: 9 🚩
Natty:
Report link

Unfortunately, I did not understand what do you mean by incremental value. Can you please describe it a little more?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please describe
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ali

79402603

Date: 2025-01-31 11:42:10
Score: 1.5
Natty:
Report link

Based on the description you have provided, my best answer is that if your Outh Client ID and API key are still available in Cloud Dashboard(which you can check here: https://console.cloud.google.com/apis/api/gmail.googleapis.com/credentials?authuser=2&inv=1&invt=AboUDA&project=inboxiq-432403), I assume you may have gone over the allotted API credits.

It is also standard for OAuth Playground to delete access tokens after 3589 seconds, so that could be it.

Apologies I couldn't be more helpful.

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

79402602

Date: 2025-01-31 11:41:10
Score: 2.5
Natty:
Report link
return Variables.CurrentValue;

C# code. It is there.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29446154

79402598

Date: 2025-01-31 11:40:09
Score: 3.5
Natty:
Report link

If you want to automate the process and make it interactive, you can use chatbot as an alternative. You can take this a step further by automating responses based on the feedback.

1. Managing User Input & Bot Responses

2. Using AI Assist for Smarter Replies

Reasons:
  • Blacklisted phrase (1): this guide
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): Could you share what
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Elyna

79402593

Date: 2025-01-31 11:39:09
Score: 3
Natty:
Report link

checkout drop_cap_text package here is the demo enter image description here

DropCapText(
    loremIpsumText,
    dropCap: DropCap(
    width: 100,
    height: 100,
    child: Image.network(
        'https://www.codemate.com/wp-content/uploads/2017/09/flutter-logo.png')
    ),
),

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: munsif.ali

79402591

Date: 2025-01-31 11:37:09
Score: 3
Natty:
Report link

Try with virtual keyboard once and then go back to your physical keyboard! This fixed the issue for me

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

79402576

Date: 2025-01-31 11:28:06
Score: 3
Natty:
Report link

In the future if somebody will be have the same problem with language from SSR you can try with that

export const getServerSideProps: GetServerSideProps = async context => {
if (context.req.url?.includes('/en/')) {
    context.locale = 'en'
}

That will works for me, so i will leave that here.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GaryNJ

79402568

Date: 2025-01-31 11:24:05
Score: 5.5
Natty:
Report link

Do you have timestamp column in the shared data?

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

79402564

Date: 2025-01-31 11:21:04
Score: 3
Natty:
Report link

Do you have an idea to fix it ?

When the user clicks the link, it goes to a page that asks for a 4-6 digit number.

The user then gets another email only containing the number. ONLY. NO HTML, a plain text email (that's what's known as an email) with no links, just the number with instructions.

Microsoft does not fills out forms and executes Javascript in plain text emails (it still follows links though).

Reasons:
  • RegEx Blacklisted phrase (1.5): fix it ?
  • RegEx Blacklisted phrase (2.5): Do you have an
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: hakre

79402554

Date: 2025-01-31 11:14:02
Score: 0.5
Natty:
Report link
void getData(char** dst) {
    *dst = malloc(sizeof(char) * 50);
    if (*dst == NULL) {
        fprintf(stderr, "Memory allocation failed\n");
        return;
    }
    sprintf(*dst, "This is a test.\r\n");
}

Directly allocates memory to *dst and check you can allocate memory.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: R.F.

79402551

Date: 2025-01-31 11:14:02
Score: 2
Natty:
Report link
CASE 
WHEN curOther <= 0.04 THEN curOther * 1.01 
ELSE curOther * 1.25 
END
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Neena

79402549

Date: 2025-01-31 11:13:01
Score: 3
Natty:
Report link

Ok ı find it ,

WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]

İf I don't want to specify the WinText however still it needs the extra comma anyway

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gökhan Dumlupınar

79402548

Date: 2025-01-31 11:13:01
Score: 4
Natty: 5
Report link

Thank you for this example. It is what i been looking for.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: yossep Binyoum

79402537

Date: 2025-01-31 11:09:00
Score: 1.5
Natty:
Report link

Did you mean this instead?

DelForm delForm = new DelForm ();
delForm.ShowDialog ();

Form is the parent class of all forms, and it is blank.

Show and Hide make the form non-modal. My guess is you are trying to make it modal, which is achieved with ShowDialog.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you mean this in
  • Low reputation (0.5):
Posted by: jaros

79402536

Date: 2025-01-31 11:08:00
Score: 3
Natty:
Report link
  1. Scrutinize the test_start_timer_delay Test Code Itself:

Verify Test Function Naming and Definition:

Typos and Syntax Errors: Double-check for any typos in the function name test_start_timer_delay both in the test definition and where it's being called or discovered by the test runner. Ensure correct Python syntax.

Accidental Recursion or Self-Reference: The error message's repetition is a red flag. Carefully review the code within test_start_timer_delay to ensure there are no accidental recursive calls to itself or any unintended self-referential logic that could cause a loop or stack overflow.

Name Collisions: Check if there's another function, variable, or class with the exact same name test_start_timer_delay in a broader scope (e.g., in the same module or imported modules). Name clashes can lead to unexpected behavior and errors.

Examine for Infinite Loops or Deadlocks:

Timer Logic Review: Since the test is about timer_delay, carefully review the code related to timers, delays, and any waiting mechanisms. Look for potential infinite loops or situations where the test might be waiting indefinitely for a condition that is never met.

GUI Event Loop Interaction (Crucial for GUI Tests): GUI applications are event-driven. Ensure your test correctly interacts with the GUI's event loop. Blocking the main GUI thread or not properly processing events can easily lead to deadlocks or unresponsive behavior.

Thread/Process Synchronization: If your timer or delay mechanisms involve threads or processes (e.g., using threading.Timer or multiprocessing), meticulously review your synchronization logic (locks, semaphores, queues). Incorrect synchronization is a common source of deadlocks and race conditions in concurrent programs.

Simplify the Test to the Absolute Minimum:

Start with a Minimal Test: Reduce test_start_timer_delay to the simplest possible test. For example, start with an empty function or a test that just asserts True is True. Run this minimal test. If it passes, it indicates the basic test setup is okay.

Gradually Add Complexity Back: If the minimal test works, incrementally add parts of your original test code back, step by step, running the test after each addition. This will help you pinpoint the exact line or block of code that introduces the error.

Isolate GUI Interactions: If the issue seems related to GUI elements, try to temporarily remove or mock out the GUI interactions to test the underlying timer delay logic in isolation, without the GUI complexity.

  1. Debugging and Error Tracing Techniques:

Insert Print Statements or Logging:

Execution Flow Tracing: Add print() statements at the very beginning and end of the test_start_timer_delay function. Add more print() statements around key operations, especially timer-related code, and before assertions. This will help you track how far the test execution progresses before failing.

Variable Inspection: Print the values of important variables at different points in the test to understand the state of your program as it runs.

Use Python's logging module: For more structured and configurable logging, use the logging module instead of print().

Run with Increased Unittest Verbosity: Use the -v flag when running your unittests (e.g., python -m unittest -v your_test_module.py or python -m unittest discover -v) to get more detailed output from the test runner. This might include more specific error messages, tracebacks, or information about test discovery and execution.

Employ a Python Debugger (pdb or IDE Debugger):

pdb (Python Debugger): Insert import pdb; pdb.set_trace() in your test_start_timer_delay code at a point you suspect the error occurs. When the test reaches this line, it will drop you into the pdb debugger, allowing you to step through code line by line, inspect variables, and examine the call stack.

IDE Debugger: If you are using an IDE like VS Code, PyCharm, or others, use its built-in debugger. Set breakpoints in your test code and run the test in debug mode. IDE debuggers often provide a more user-friendly interface for stepping through code and inspecting variables.

  1. Investigate Environment and Dependency Changes:

"Used to Work" Clue: The fact that the unittest previously worked is a crucial piece of information. Consider what might have changed in your environment or project since it was last successful:

Recent Code Changes: Carefully review the code changes made in your project around the time the test started failing. Even seemingly unrelated changes can sometimes have unexpected side effects.

Operating System or System Updates: Has the operating system or its version changed? Have there been any recent OS updates that might affect GUI behavior or resource management?

Python Version Changes: Are you using the same Python version as when the test was working? Subtle differences between Python versions can sometimes cause issues.

GUI Library or Dependency Updates: Have you updated any GUI libraries (like PyQt, Tkinter, wxPython, etc.) or other dependencies that your GUI software relies on? Library updates can introduce breaking changes or trigger previously hidden bugs. Try reverting to older versions of dependencies if you suspect this.

Resource Constraints:

System Load: Is the machine running the tests under heavy load? Resource contention (CPU, memory, disk I/O) can sometimes cause timeouts, crashes, or unexpected behavior in GUI applications, especially during automated tests. Try running the tests on a less loaded system.

Resource Limits: Are there any resource limits (memory limits, process limits, file handle limits) configured in your test environment that might be causing the Python process to be terminated prematurely?

By systematically working through these steps – carefully examining your test code, using debugging techniques, and investigating potential environment changes – you should be able to pinpoint the root cause of the test_start_timer_delay error and resolve it. The peculiar nature of the error message strongly suggests a problem within the test itself, so start by focusing your investigation there.

Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jest1s

79402521

Date: 2025-01-31 11:01:57
Score: 6 🚩
Natty: 4
Report link

Is there a way around for the list error:

The attempted operation is prohibited because it exceeds the list view threshold.

besides changing your complete sharepoint library?

Dennis

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Dennis de Jong

79402520

Date: 2025-01-31 11:01:56
Score: 2.5
Natty:
Report link

Azure AI Custom Translator Portal access can only be enabled through a public network. guess this is the reason... more details please refer to https://learn.microsoft.com/en-us/azure/ai-services/translator/custom-translator/how-to/create-manage-workspace

enter image description here

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

79402519

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

can you add more code to it if you are using the context above the MaterialApp there no Navigator is found try getting context below the MaterialApp in the widget tree;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can you add
  • Low reputation (1):
Posted by: munsif.ali

79402514

Date: 2025-01-31 10:58:55
Score: 13.5
Natty: 7.5
Report link

I have the same problem, did you manage to solve it?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: miguel tomaz

79402512

Date: 2025-01-31 10:57:54
Score: 3.5
Natty:
Report link

To properly import odoo without a sweat, there's a simple tutorial:

https://www.youtube.com/watch?v=Xcr7SQOGY2g

By watching above video, Import "odoo" could not be resolved Pylance (reportMissingImports) error is sorted.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hayagreeva Kasibhotla

79402504

Date: 2025-01-31 10:53:53
Score: 4.5
Natty:
Report link

Probably just an issue with nothing available on Mac :/

https://learn.microsoft.com/en-us/answers/questions/2101347/unable-to-install-azureml-sdk-on-mac-2021-silicon

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ATL

79402503

Date: 2025-01-31 10:53:53
Score: 0.5
Natty:
Report link

The Peppol Access Point (AP) setup and the configuration of the test bed can indeed be a bit confusing if you're unfamiliar with the specifics.

Will the Peppol Test Bed send both the SBDH and the AS4 message to the same URL?

The Peppol test bed sends two types of messages:

These two components are typically sent in separate HTTP requests to the endpoint you provide in the test bed configuration. However, the test bed will not send both the SBDH and AS4 message in the same HTTP request.

2. How to identify which is the SBDH and which is the AS4 message?

Here’s how you can differentiate them:

3. What URL should you provide in the test bed configuration?

You need to provide the same endpoint URL in the Peppol test bed configuration for both types of messages, because they will be sent as separate requests to the same endpoint. This means:

If you're using a single endpoint, you'll need to parse and handle both the SBDH metadata and the AS4 message in your system, so your endpoint should be prepared to:

4. What should your endpoint be able to handle?

Your endpoint URL should be configured to:

The endpoint should then process the SBDH metadata first and then act on the AS4 message once it is validated and processed. Ensure your endpoint is capable of distinguishing the SBDH metadata from the actual business document (user message) based on the request structure.

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

79402501

Date: 2025-01-31 10:52:52
Score: 1
Natty:
Report link

Exactly 5 months later, I managed to identify the source of the problem. If there are others who have this problem, I am sharing the solution now. The source of the problem was caused by a meta tag on my Layout page. Exactly below;

<base href="https://mywebsite.com">

After I deleted it from my head tags, everything worked fine. I didn't even remember when I wrote this tag. It drove me crazy for 5 months.

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

79402499

Date: 2025-01-31 10:51:52
Score: 2
Natty:
Report link

Langchain is a useless framework. Because there are a lot of code around but the main point is not covered. How on the Earth to make RAG chat with chat history? How to customize it? Where is working start point? Crazy documentation. Millions of incompatible versions omg

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: veaceslav.kunitki

79402498

Date: 2025-01-31 10:51:52
Score: 1
Natty:
Report link

In my case, I was using turborepo, and I forgot to add the build folder of a library in the outputs options of build

"tasks": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahil Yadav

79402491

Date: 2025-01-31 10:49:51
Score: 0.5
Natty:
Report link

For anyone who may be encountering the same problem, the solution was simple:

  1. Set your region parameter for Aws::S3::S3Client to containg smart in the end, e.g. us-south-smart.

  2. Set the location constraint using Aws::S3::Model::BucketLocationConstraintMapper to match the region. Corrected code:

    Aws::S3::Model::CreateBucketRequest request; request.SetBucket(bucket); Aws::S3::Model::CreateBucketConfiguration bucketConfig; bucketConfig.SetLocationConstraint(Aws::S3::Model::BucketLocationConstraintMapper::GetBucketLocationConstraintForName(region));//this is the key request.SetCreateBucketConfiguration(bucketConfig); const auto crtOutcome = client.CreateBucket(request); if (crtOutcome.IsSuccess()) { std::cout << "created bucket" << std::endl; }else { std::cout << crtOutcome.GetError().GetMessage() << std::endl; }

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

79402488

Date: 2025-01-31 10:48:51
Score: 3.5
Natty:
Report link

Need your help on this . Please dm me in telegram username : Looser8900 or linkedin

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

79402484

Date: 2025-01-31 10:47:51
Score: 2
Natty:
Report link

I recently encountered the same issue. To resolve this, I downgraded python version from 3.12.0 to 3.11.9. Because, as per Spark Python Supportability Matrix python version 3.12.0 is not compatible with any Spark version till 3.5.4.

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

79402482

Date: 2025-01-31 10:46:50
Score: 1.5
Natty:
Report link

Snowflake is described as SaaS because they enforce it through communications. Given the Snowflake capabilities it falls perfectly into the PaaS layer, even by their definition: "services that provide a foundation for developers to build custom business apps" like, for example, a database with analytical and ML capabilities would. It is not an ERP, it is not a CRM, it is not a Marketing Automation tool, it's a thin layer integrated with other PaaS offerings, but anyone with an unbiased opinion would tell you just that - PaaS, mainly used for Data Engineering tasks in conjuncture with other layers of the service offering (i.e. to be used for the Software layer).

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

79402479

Date: 2025-01-31 10:45:50
Score: 1.5
Natty:
Report link

I would use a parameter set for the date periods you are interested in and use a drop down box to toggle between them., it makes it easier for the users as the filter is visible and you can go directly to the date you want without having to drill down.

Arkady Zagdan on Medium has written a guide on how to do this https://medium.com/@arkady.zagdan/how-to-dynamically-change-the-date-frequency-across-all-your-charts-in-the-looker-studio-dashboard-4ca823af23bd

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Max_Stone

79402472

Date: 2025-01-31 10:43:50
Score: 1
Natty:
Report link

You can enable it by adding this line after you registered OpenTelemetry in services.

services.Configure<OpenTelemetryLoggerOptions>(x => x.IncludeScopes = true);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2042930

79402471

Date: 2025-01-31 10:43:50
Score: 1.5
Natty:
Report link

Hello i resolved my issue by deleting the existing fvm file and running fvm use again.

Reasons:
  • Whitelisted phrase (-2): i resolved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TIM

79402470

Date: 2025-01-31 10:43:50
Score: 1.5
Natty:
Report link

Check two approcaches:

// Mock the storage behavior
Storage::shouldReceive('disk')->with(StorageDiskName::DO_S3->value)->andReturnSelf();
Storage::shouldReceive('temporaryUrl')->andReturn($expectedUrl);


// Mock the fake filesystem
$fakeFilesystem = Storage::fake(StorageDiskName::DO_S3->value);
$proxyMockedFakeFilesystem = Mockery::mock($fakeFilesystem);
$proxyMockedFakeFilesystem->shouldReceive('temporaryUrl')->andReturn($expectedUrl);
Storage::set(StorageDiskName::DO_S3->value, $proxyMockedFakeFilesystem);

See more in the article: https://dev.to/tegos/testing-temporary-urls-in-laravel-storage-20p7

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

79402468

Date: 2025-01-31 10:42:49
Score: 1
Natty:
Report link

Here is a statement for the question:

SELECT t1.customer_id, COUNT(t2.customer_id) AS occurrences FROM table1 t1 LEFT JOIN table2 t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id;

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

79402463

Date: 2025-01-31 10:40:49
Score: 1.5
Natty:
Report link

As far as I know, with Flutter the easiest way is to use the package "flutter_local_notifications" as you already mentioned.

I also found an older FlutterFire documentation which confirms that.

https://firebase.flutter.dev/docs/messaging/notifications/#notification-channels

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

79402450

Date: 2025-01-31 10:36:48
Score: 1.5
Natty:
Report link

Thanks @Rushil Mahadevu, I forgot yesterday to update here that I've found a solution with the following component and I'll share it as well.

similar to your answer and the previous snipped I've shared it comes with the following features:

import { createRef } from "preact";
import { useLayoutEffect, useState } from "preact/hooks";
import type { JSX } from "preact/jsx-runtime";

// **********************************************************

export interface ContainerDocumentProps
{
    docWidth: number,
    docScale: number,
    docPadX?: number,
    children?: any,
}

// **********************************************************

export const ContainerDocument = (props: ContainerDocumentProps): JSX.Element =>
{
    const clientRef = createRef<HTMLDivElement>();
    const [areaWidth, setAreaWidth] = useState<number>(0);
    const [docScale, setDocScale] = useState<number>(0.0);

    const [userScollWidth, setUserScrollWidth] = useState<number>(0.5);

    const onUpdateScale = (el: HTMLElement): void =>
    {
        const clientWidth = el.clientWidth;

        const docPadX = props.docPadX ?? 0;
        const docWidth = clientWidth * 0.75;
        const docScale = (docWidth * props.docScale) / props.docWidth;
        const areaScaled = Math.max(clientWidth, (props.docWidth + docPadX) * docScale);

        el.scrollLeft = (areaScaled - clientWidth) * userScollWidth;

        setAreaWidth(areaScaled);
        setDocScale(docScale);
    }

    const onUpdateScroll = (ev: Event): void =>
    {
        const target = ev.target as HTMLDivElement;

        setUserScrollWidth(target.scrollLeft / (target.scrollWidth - target.clientWidth));
    }

    useLayoutEffect(() =>
    {
        const el = clientRef.current;

        if (el)
        {
            const observer = new ResizeObserver(() => onUpdateScale(el));
            onUpdateScale(el);

            observer.observe(el);
            return () => observer.disconnect();
        }
    }, [clientRef.current, props.docScale]);

    return (
    <div class="w-100 h-100 overflow-y-scroll overflow-x-auto d-flex"
        style="padding-top: 10vh; padding-bottom: 60vh;" ref={clientRef} onScroll={onUpdateScroll} >
        
        <div class="position-relative d-flex flex-column" style={""
            + `min-width: ${areaWidth.toFixed(0)}px; height: fit-content;`} >
            
            <div class="position-absolute top-0 start-50" style={"transform-origin: top center;"
                + `min-width: ${props.docWidth.toFixed(0)}px;`
                + `transform: translateX(-50%) scale(${docScale.toFixed(2)});`}
                children={props.children} />
        </div>
    </div>
    );
}

// **********************************************************
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Rushil
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: magg

79402440

Date: 2025-01-31 10:33:47
Score: 4.5
Natty:
Report link

I managed to solve this issue by setting the ProtectionLevel of my project and its packages to EncryptSensitiveWithPassword. It was previously set to DoNotSaveSensitive.

enter image description here

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

79402438

Date: 2025-01-31 10:31:46
Score: 3.5
Natty:
Report link

i-phone really sucks, everything works well in all othter platforms, but on IOS (specially with safari) always seems to have some kind of trouble, that's really anoying.

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

79402426

Date: 2025-01-31 10:27:45
Score: 1.5
Natty:
Report link

If the version from Visual Studio/Visual Studio Code does not match the latest installed .NET SDK please verify the path that is used by the application to load the SDK.

Control Panel -> Edit system environment variables -> Advanced Tab -> Environment Variables.

Check in System variables that MSBuildSDKsPath is pointing to your needed SDK.

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

79402422

Date: 2025-01-31 10:23:44
Score: 1.5
Natty:
Report link

As @j-kadditz mentioned I probably should parallelize the process using SIMD or other parallelizing utilities, which is what I eventually will end up doing.

But, I implemented a VERY fast and efficient algorithm, all thanks to @weather-vane who suggested the idea (back when this post was on the Staging Ground).

You basically write the first pixel (4 bytes), then for each iteration we double the size of memory to be written. So we write 4 bytes, the next iteration memcpy the data now it's 8 bytes, the next iteration memcpy everything again now it's 16 bytes, again and again while checking that doubling the block doesn't exceed the total image size. If it does, just write the remaining pixels/bytes.

void pxlImageClearColor(PXLimage* image, PXLcolor color)
{
    uint32_t nbytes = image->width * image->height * 4;

    memcpy(image->data, color.rgba, 4);

    uint32_t bytes_filled = 4;
    uint32_t next_fill;

    while (bytes_filled < nbytes)
    {
        next_fill = bytes_filled << 1;

        if (next_fill > nbytes)
        {
            next_fill = nbytes;
        }

        memcpy(image->data + bytes_filled, image->data, next_fill - bytes_filled);
        bytes_filled = next_fill;
    }
}

I profiled using gprof and check this out

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  us/call  us/call  name    
 47.67     19.58    19.58                             _mcount_private
 22.25     28.72     9.14 1137265408     0.01     0.01  pxlImageSetPixelColor
 19.04     36.54     7.82                             __fentry__
  9.30     40.36     3.82   200000    19.10   179.64  pxlRendererDrawTriangle
  1.44     40.95     0.59   200000     2.95    57.60  pxlRendererDrawRect
  0.17     41.02     0.07   200000     0.35     3.45  pxlRendererDrawLine
  0.05     41.04     0.02   200000     0.10     0.10  pxlImageClearColor
  0.05     41.06     0.02   200000     0.10     0.10  pxlWindowPresent
  0.02     41.07     0.01                             main
  0.00     41.07     0.00  2000000     0.00     0.00  pxlRendererSetDrawColor
  0.00     41.07     0.00   200000     0.00     0.00  pxlGetKey
  0.00     41.07     0.00   200000     0.00     0.10  pxlRendererClearColor
  0.00     41.07     0.00   100000     0.00     0.00  pxlWindowPollEvents
  0.00     41.07     0.00       10     0.00     0.00  _pxlFree
  0.00     41.07     0.00       10     0.00     0.00  _pxlMalloc

From 200 us/call to 0.1 us/call

The bottleneck now is _mcount_private, which is what gprof uses to record timing of functions.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @j-kadditz
  • User mentioned (0): @weather-vane
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: zakariamoknine

79402421

Date: 2025-01-31 10:23:44
Score: 1
Natty:
Report link

The reason Readonly appears not to function as you expect with primitive types like string, number, and boolean is due to what Readonly is designed to do and how primitive types are handled in JavaScript and TypeScript.

Here's a breakdown:

Purpose of Readonly: The Readonly utility type in TypeScript is designed to make all properties of an object type T readonly. It operates at the level of object properties. When you apply Readonly to an interface or a type representing an object, it changes the type definition such that you cannot reassign values to the properties of objects of that type.

Primitive Types vs. Object Types:

Primitive types (string, number, boolean, symbol, bigint, null, undefined) in JavaScript and TypeScript are passed by value. When you pass a primitive value to a function, the function receives a copy of that value. Any modifications you make to the parameter within the function do not affect the original value outside the function's scope.

Object types (including objects, arrays, and functions) are passed by reference. When you pass an object to a function, the function receives a reference to the original object. If the function modifies properties of this object, those changes are reflected in the original object outside the function.

Why Readonly Doesn't Prevent Reassignment of Primitive Parameters: In your inspect function examples with primitives:

inspect((str: Readonly) => { str = New string // Can change }) Use code with caution. TypeScript Here, Readonly for the str parameter doesn't prevent you from reassigning the variable str within the function. This is because:

Readonly itself doesn't fundamentally alter the nature of the string type in this context. It's still just a string.

You are reassigning the local variable str within the function's scope. Readonly is not designed to prevent reassignment of function parameters themselves, especially when dealing with primitives passed by value.

Readonly's effect is to prevent you from modifying properties of an object. Primitives don't have properties in the same way objects do.

Why Readonly Works for Object Properties: In your object example:

inspect<{str: string, num: number, bool: boolean}>((obj: Readonly<{str: string, num: number, bool: boolean}>) => { obj.str = New string // Can't change; yields compile time error }) Use code with caution. TypeScript Here, Readonly<{str: string, num: number, bool: boolean}> does work as expected. It makes the str, num, and bool properties of the obj parameter readonly. TypeScript's compiler will prevent you from reassigning these properties because Readonly modifies the type definition of the object to enforce readonly access to its properties.

Is there a way to make it work for primitive types?

Not in the way you might be thinking with Readonly. Readonly is specifically for object properties. There's no direct TypeScript feature using Readonly or a similar utility to prevent you from reassigning a primitive parameter variable within a function's body.

For primitive types passed by value, the fact that they are passed by value already provides a form of "readonly" behavior in terms of the original value outside the function. Modifying the parameter within the function doesn't affect the original value.

If you want to ensure that a function parameter, even if it's a primitive, is not intended to be reassigned within the function for code clarity or to signal intent, you could rely on code style, naming conventions (like using const if possible within the function body for local variables derived from the parameter), or code review practices. However, TypeScript itself doesn't provide a mechanism via Readonly or similar to enforce this kind of "parameter immutability" for primitives in terms of preventing reassignment of the parameter variable within the function's scope.

In summary: Readonly is for making object properties readonly. It doesn't prevent reassignment of function parameters themselves, especially when they are primitive types passed by value. For primitives, the pass-by-value mechanism inherently prevents modifications within a function from affecting the original value outside, which is a different form of "immutability" but not enforced by Readonly.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jest1s

79402420

Date: 2025-01-31 10:23:44
Score: 2.5
Natty:
Report link

I don't know if you imported the package, you can check the external libraries for okhttp3, you can also try to clean up Gradle cache and re-sync, I think the biggest problem is probably version incompatibility

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

79402414

Date: 2025-01-31 10:19:44
Score: 0.5
Natty:
Report link

I guess your crash occurs due to an IllegalArgumentException: Unknown URL, which indicates that the URI used in the insert operation does not match the URI pattern registered in the ContentProvider. First, ensure the AUTHORITY value in your UriMatcher matches exactly with what is used in AppDataProviderWrapper. Update the UriMatcher definition as follows:

private val sUriMatcher = UriMatcher(UriMatcher.NO_MATCH).apply {
    addURI(AUTHORITY, "globaldataapp", 1)
}

Similarly, in AppDataProviderWrapper, ensure you are using the correct URI:

private val mContentUri: Uri = Uri.parse("content://$AUTHORITY/globaldataapp")

Additionally, modify the insert() method in AppGlobalDataContentProvider to handle unknown URIs gracefully by logging the error instead of throwing an exception.

override fun insert(uri: Uri, values: ContentValues?): Uri? {
    return when (sUriMatcher.match(uri)) {
        1 -> {
            val value = values?.getAsString(KEY_VALUE) ?: return null
            sharedPreferences.edit().putString(KEY_VALUE, value).apply()
            context?.contentResolver?.notifyChange(uri, null)
            uri
        }
        else -> {
            Log.e("AppGlobalDataContentProvider", "Unknown URI: $uri")
            null
        }
    }
}

Your saveData() function should also handle potential failures when inserting into the ContentProvider:

fun saveData(data: Int) {
    val contentResolver = context.contentResolver
    val contentValues = ContentValues().apply {
        put(KEY_VALUE, data)
    }
    try {
        val resultUri = contentResolver.insert(mContentUri, contentValues)
        if (resultUri == null) {
            Log.e("AppDataProviderWrapper", "Failed to insert data into ContentProvider")
        }
    } catch (e: Exception) {
        Log.e("AppDataProviderWrapper", "Error inserting data", e)
    }
}

Furthermore, as you need to maintain data consistency across multiple user profiles, ensure that all reads and writes are performed using DeviceProtectedStorageContext, allowing the data to persist across different user sessions:

val context = context.createDeviceProtectedStorageContext()

Lastly, check your AndroidManifest.xml`` to ensure that android:exported="true"is set if other apps or system services require access. Also, consider addingandroid:directBootAware="true"``` to ensure preferences are accessible across user profiles. With these fixes, your application should correctly save and retrieve data across all user profiles without crashing.

Reasons:
  • RegEx Blacklisted phrase (1.5): Resolver?
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mohammad Misbah

79402410

Date: 2025-01-31 10:17:43
Score: 1
Natty:
Report link

I had same problems. The solution is, as mentioned previously, to load: library(multcomp) . However, still it isn't enough. Together with it you need to upload also:

library(mvtnorm) library(survival) library(TH.data) library(MASS)

Then, cld will work!

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

79402408

Date: 2025-01-31 10:17:43
Score: 2
Natty:
Report link

Table size: select databasename ,tablename ,cast(sum(currentPerm) / (102410241024) AS DECIMAL(7,2)) as "CurrentPerm in GB" ,cast(sum(PeakPerm) / (102410241024) AS DECIMAL(7,2) )as "PeakPerm in GB" from dbc.tablesizev where databasename = 'T_UAT_LZ_GWPOLICYCENTER_PS' and tablename= '' group by 1,2;

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

79402403

Date: 2025-01-31 10:15:42
Score: 5
Natty:
Report link

i'm a beginner so i could be wrong but from the handle_error part of the code it seems there could be a risk of a possible loop upon failure to close files (output and input)

Reasons:
  • RegEx Blacklisted phrase (2): i'm a beginner
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Atlas_