79175037

Date: 2024-11-10 14:08:05
Score: 1.5
Natty:
Report link

How can I correctly manage MySQL database connections across threads in Qt?

According to Qt themselves

A database connection must only be used from within the thread that created it. Moving a connection into another thread can be done with QSqlDatabase::moveToThread().

In addition, the third party libraries used by the QSqlDrivers can impose further restrictions on using the SQL Module in a multithreaded program. Consult the manual of your database client for more information

https://doc.qt.io/qt-6/threads-modules.html#threads-and-the-sql-module

What are the differences between these two QSqlDatabase declaration methods?

One of the 2 accepts connectionName as an argument

Adds a database to the list of database connections using the driver type and the connection name connectionName. If there already exists a database connection called connectionName, that connection is removed.

The database connection is referred to by connectionName. The newly added database connection is returned.

If type is not available or could not be loaded, isValid() returns false.

If connectionName is not specified, the new connection becomes the default connection for the application, and subsequent calls to database() without the connection name argument will return the default connection. If a connectionName is provided here, use database(connectionName) to retrieve the connection.

https://doc.qt.io/qt-6/qsqldatabase.html#addDatabase

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can I
  • Low reputation (0.5):
Posted by: pratikpc

79175029

Date: 2024-11-10 14:02:04
Score: 1.5
Natty:
Report link

When the $dataColumns variable is null you will get exactly this error:

Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given

However you don't have ($pieces)!

Same situation for me. Just check your logic to be sure your variable is not null! That worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: Danyal Shahmirzadi

79175028

Date: 2024-11-10 14:02:04
Score: 1.5
Natty:
Report link

I tried the following:

But unfortunately it keeps consistenet behavior to auto rotate device.

After that, I tested using a phone emulator the issue is not there.

The issue is not related to flutter, but all android tablet emulators.

I assume testing on real android tablets will not generate the same issue. I'll update answer after I test on a real device tablet!

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

79175025

Date: 2024-11-10 13:59:03
Score: 4
Natty:
Report link

This is impossible. More details can be found in the following link: https://discourse.threejs.org/t/can-we-play-sound-of-a-video-without-user-interaction/67865/2

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

79175021

Date: 2024-11-10 13:56:02
Score: 1
Natty:
Report link

I had the same problem and fixed it by creating a virtual environment and installing tkcalendar in it. I think the problem arises because tkcalendar or babble conflict with some other installed modules, thus a virtual environment isolates tkcalendar

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Suhan Wasim

79175009

Date: 2024-11-10 13:47:01
Score: 2.5
Natty:
Report link

What you are looking for is %:z. Its a directives Added in version 3.12.

https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes

UTC offset in the form ±HH:MM[:SS[.ffffff]] (empty string if the object is naive): +00:00

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you are
  • Low reputation (0.5):
Posted by: Sin

79175003

Date: 2024-11-10 13:42:00
Score: 1.5
Natty:
Report link

How about simplifying to base units then comparing e.g.,:

import pint
u = pint.UnitRegistry()    
u('nM').to_base_units() == u('nmol/L').to_base_units()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Sighonide

79174998

Date: 2024-11-10 13:36:59
Score: 1
Natty:
Report link

To fix the dependency cycle error:

  1. Check Dependencies: In Build Phases for both Insightfull and Insightfull WatchKit Watch App targets, ensure they aren’t listed as dependencies of each other.

  2. Verify Copy Files Phase: Remove Insightfull WatchKit Watch App from the Copy Files or Embed App Extensions phase under the Insightfull target.

  3. Clear Derived Data: Delete Derived Data for Insightfull in Xcode → Settings → Locations.

  4. Check Info.plist: Make sure Info.plist files for both targets don’t reference each other. Rebuild the project to see if this resolves the cycle.

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

79174986

Date: 2024-11-10 13:31:58
Score: 2.5
Natty:
Report link

I upgraded the Angular Project It was angular CLI 18.2.5 to angular CLI 18.2.11 and received this error.

I did a npm update and then a npm outdated to confirm the versions installed were correct, still no luck.

I ended up completely wiping the node_modules folder and reinstalling with npm install! Problem solved.

Reasons:
  • Blacklisted phrase (1): no luck
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tonyfilho

79174985

Date: 2024-11-10 13:30:58
Score: 1
Natty:
Report link

I like @Javier answer (which I actually used in my code, so thanks!). I needed to perform further work on that, and I found a quick and dirty way of doing the same

data <- data.frame(
entry = paste0("Entry.", 1:10),
"A" = c(0,0,0,0,1,0,1,1,0,0),
"B" = c(1,0,0,0,1,1,1,1,1,0),
"C" = c(1,1,1,1,0,0,1,0,1,1))
aggregate(data$Entry,by=list(data$A,data$B,data$C),FUN="length")
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fabio Marroni

79174984

Date: 2024-11-10 13:30:58
Score: 1
Natty:
Report link

The problem you are facing is probably caused by prerender. JSinteroop is not accesbile while prerendering the page thus, protectedLocalStorage is null because it relies on JS.

I always disable prerendering so I do not need to deal with it. It' s annoying so it's best to split your app into 2 part. The one for not logged users (promo page/ contact page etc.) and actual app that needs your state.

On the other hand you could implement your own logic for error handling and dealing with preload.

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

79174978

Date: 2024-11-10 13:27:57
Score: 2
Natty:
Report link

val workbook: Workbook = Workbook() val ws = wb.newWorksheet("Sheet1") ws.value(currentRow, currentCol, LocalDate.now()) ws.style(currentRow, currentCol).format("dd.MM.yyyy").set()

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

79174972

Date: 2024-11-10 13:23:56
Score: 2.5
Natty:
Report link

Elastic collisions are not as intuitively to implement. This might be a handy solution: https://github.com/joembedded/Elastic-Collisions

Reasons:
  • Whitelisted phrase (-2): solution:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jo Embedded

79174961

Date: 2024-11-10 13:18:55
Score: 0.5
Natty:
Report link

I also got the same error when I was training an Image classification model with a reference-style image dataset. Here I implemented a Custom Dataset Class by extending from torch.utils.data import Dataset class. Same as you I haven't encoded my target labels and they are just a tuple of class names(strings). Since PyTorch tensors don't accept string data directly, I had to convert these labels into integer-encoded tensors before using them in model training.

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

79174955

Date: 2024-11-10 13:13:53
Score: 5.5
Natty:
Report link

NO! This answer still hasn't solved my problem. I encountered the same issue with the prompt "Error while fetching extensions. Failed to fetch", but it's really a computer problem. I turned on VPN once while running vsCode normally, and since then my vsCode has been like this. I couldn't find any extensions. I tried uninstalling and deleting the configuration folder, which made the situation worse. I even cleared all the extensions I had before! I have also tried changing the system's proxy files, resetting the network in computer settings, and turning on and off VPN again, but none of these have worked. Oh my god, what should I do? Do I have to reinstall the system!?T_T

Reasons:
  • Blacklisted phrase (2): what should I do
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Eight

79174942

Date: 2024-11-10 13:02:51
Score: 1
Natty:
Report link

There is an official documentation of how to install word plugins.

https://learn.microsoft.com/en-us/office/dev/add-ins/publish/publish

You can choose any method you prefer to install your plugin.

Other than that, check that you are using MessageBox, from winapi, correctly.

You marking some functions as "C". Are you sure that MessageBox is a C, not C++ function?

int MessageBox( [in, optional] HWND hWnd, [in, optional] LPCTSTR lpText, [in, optional] LPCTSTR lpCaption, [in] UINT uType );

uTyPe parameter is the only non-optional parameter to the function. You pass zero to the parameter. Is this expected?

Turn on warnings for your compiler. The one that i see straight away, is that function parameters is unused.

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

79174937

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

The issue has been resolved. Apple uses a non-standard location for the attributes, which is unsupported by GCC. However, an adapted version for GCC 14.2 is now available that addresses this compatibility for macOS only. Updated packages are available also on Homebrew.

For more details refer to this closed GitHub issue: https://github.com/iains/gcc-14-branch/issues/12

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

79174929

Date: 2024-11-10 12:54:49
Score: 4.5
Natty:
Report link

I find way to handle this problem by giving custom format to my datetimepicker and try to save it as a string instead of date type.

enter image description here

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

79174920

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

Instead of model.fc, you may need to use model.classifier to point to the correct layer in your model.

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

79174918

Date: 2024-11-10 12:46:47
Score: 3
Natty:
Report link

Dont use entire link for cloning repo, just try till autogen i.e.

git clone https://github.com/microsoft/autogen

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

79174916

Date: 2024-11-10 12:44:47
Score: 0.5
Natty:
Report link

finnally found the solution after long hours of internet search.

you must add these 2 lines :

def create_image(image_data, width, height, image_tag, texture_tag):
    with dpg.texture_registry():
        texture_id = dpg.add_static_texture(width, height, image_data, tag=texture_tag)

    # Add the image with drag and drop functionality
    dpg.add_image_button(texture_id, tag=image_tag, payload_type="image_payload", drag_callback=drag_callback, drop_callback=drop_callback)

    # add this to enable drap&drop:
    with dpg.drag_payload(parent=image_tag, drag_data="dragdata", payload_type="image_payload"):
        dpg.add_text("popup drag")
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jack Wolf

79174915

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

In my case i just changed <BrowserRouter/> with <HashRouter/> if you use one.

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

79174906

Date: 2024-11-10 12:41:46
Score: 3
Natty:
Report link

I have run this same code for some experiments. It's highly possible you have unexpected behaviors.

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

79174899

Date: 2024-11-10 12:35:45
Score: 0.5
Natty:
Report link

I have created this shell script inspired from various SO posts and some example scripts I found long back online.

https://github.com/bkrajendra/android_backup

Script can be executed on Win/Mac/Linux and needs to have adb cli tools. Use gitbash or MobaXterm on Windows

Usage:

./backup.sh [-r remote_folder] [-l local_folder]
e.g. ./backup.sh sdcard/DCIM/Camera /f/Photo/A52

This will also resume download if gets broken in between.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
Posted by: Rajendra

79174881

Date: 2024-11-10 12:23:42
Score: 1.5
Natty:
Report link

For windows users, nvm for Windows is a little tricky.

Check 1. The node path is actually in the Environment variables. in my case, it is ~\AppData\Roaming\npm The node path is necessary

Check 2. The %NVM_HOME% and also %NVM_SYMLINK% is set. And they also should be set in the PATH variable

See if they are properly set

Check 3. The npm path actually contains the node.js. If it doesn't, it probably is a reminant of the old installation. In my case, I remove it with rm -rf. The reason it blocks nvm, is that nvm(fow windows) have to set up sym link in that path. If there is a real file in the path, nvm(for windows) will fail silently. Original NPM package

The above image is missing the node. instead it should be like:

Proper nvm synlink

Even if the symlinks doesn't work, and the environment variables are wrong, It should be possible to run node and npm from this directory directly.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shi Kin Ma

79174879

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

I've successfully installed tensorflow , win10 terminal as follows:

conda create -n env363 python=3.6.3 anaconda # my problem was python version
> conda activate env363

The tensorflow versions installed are:

Name Version Build Channel
tensorflow 1.14.0 h39a9291_0 conda-forge
tensorflow-base 1.14.0 py36h9f0ad1d_0 conda-forge
tensorflow-estimator 1.14.0 py_0

Any further enhancements is much appreciated

Reasons:
  • Blacklisted phrase (1): appreciated
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Khaled Saleh

79174875

Date: 2024-11-10 12:20:41
Score: 2.5
Natty:
Report link

I recently struggled with this as well, according to https://rapier.rs/docs/user_guides/bevy_plugin/colliders#active-collision-types, you have to explicitly enable collisions between specific types of rigid bodies and colliders. Check the documentation of ActiveCollisionTypes to see which flags you need.

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

79174873

Date: 2024-11-10 12:20:41
Score: 3
Natty:
Report link

In windows file explorer and search *jpg or whatever file format you want to select and then copy-paste to desired location.

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

79174871

Date: 2024-11-10 12:20:41
Score: 3
Natty:
Report link

Their are two character one girl and one boy. This is a online game the character can control by player and their are option of romace i.e., kiss, hug, talk etc.

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

79174866

Date: 2024-11-10 12:16:41
Score: 5
Natty:
Report link

My netatmo refresh token has also been expired (> 3 hrs old). I have the same error here: I can not refresh the access - and refresh code. I used the 'ChatGPT' method/code as suggested by @Tabsy21. The output I get is:

400
{"error":"invalid_grant"}
Reasons:
  • RegEx Blacklisted phrase (1): I have the same error
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same error
  • User mentioned (1): @Tabsy21
  • Low reputation (0.5):
Posted by: ni_hao

79174864

Date: 2024-11-10 12:15:40
Score: 10
Natty: 7
Report link

I'm having the exact same problem and don't understand the solution outlined here. Could someone explain, please?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could someone explain
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the exact same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user1958370

79174844

Date: 2024-11-10 12:02:37
Score: 4
Natty: 4
Report link

Simply, place procedure Discard(..) in Public section of form1 declaration

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

79174842

Date: 2024-11-10 12:01:36
Score: 0.5
Natty:
Report link

Unfortunately, the incorrect version number is hard-coded in the code.

For reference: https://github.com/hammerjs/hammer.js/blob/v2.0.8/hammer.js#L2148

Release tag is 2.0.8 but inside the file is says 2.0.7.

Sadly this is the last release (now 8 years ago) and the library seems to be abandoned.

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

79174821

Date: 2024-11-10 11:49:34
Score: 4.5
Natty: 6
Report link

Any update on this issue? I have the exact same use case but unable to create a threaded reply to bot trigger message in a space.

Reasons:
  • Blacklisted phrase (1): update on this
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ayush-t02

79174819

Date: 2024-11-10 11:49:33
Score: 1.5
Natty:
Report link

Spark's BloomFilter implementation uses a formula to calculate the optimal bit size based on the expected number of items and the desired false positive rate. This calculated bit size might not always be exactly equal to the value you might have anticipated. The library aims to provide a good balance between space efficiency and accuracy.

Reference - https://github.com/apache/spark/blob/master/common/sketch/src/main/java/org/apache/spark/util/sketch/BloomFilter.java#L211

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

79174814

Date: 2024-11-10 11:47:32
Score: 1.5
Natty:
Report link

It looks like you're trying to ensure that the image fits and clips correctly within the grid element while . The issue likely arises because the overflow property isn’t set on the parent container to handle clipping.

.bento3 { display: grid;

overflow: hidden; }

.bento3 > img {

width: 100%;

height: 100%;

object-fit: cover;

margin-top: 14px; }

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

79174813

Date: 2024-11-10 11:46:30
Score: 7.5 🚩
Natty:
Report link

Did you manage to fix this? I get a very similar error and stack trace. It make no sense. The application used to work and out of a sudden it started throwing this error:

Unhandled Exception:
System.ArgumentNullException: Value cannot be null. (Parameter 'obj')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.Threading.Monitor.Enter(Object obj, Boolean& lockTaken)
   at ObjCRuntime.Class.ResolveTokenReference(UInt32 token_reference, UInt32 implicit_token_type) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Class.cs:line 480
   at ObjCRuntime.Class.ResolveMethodTokenReference(UInt32 token_reference) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Class.cs:line 465
   at ObjCRuntime.Runtime.GetMethodFromToken(UInt32 token_ref) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 885
   at ObjCRuntime.Runtime.get_method_from_token(UInt32 token_ref, IntPtr* exception_gchand
le) in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:line 593
--- End of stack trace from previous location ---
   at ObjCRuntime.Runtime.RethrowManagedException(IntPtr exception_gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 573
   at Foundation.NSObject.InvokeOnMainThread(Action action) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:line 808
   at Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThread[UITraitCollection](Func1 factory)
   at Microsoft.Maui.ApplicationModel.AppInfoImplementation.get_RequestedTheme()
   at Microsoft.Maui.ApplicationModel.AppInfo.get_RequestedTheme()
   at Microsoft.Maui.Controls.Application..ctor(Boolean setCurrentApplication)
   at Microsoft.Maui.Controls.Application..ctor()
Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to fix this
  • RegEx Blacklisted phrase (1.5): fix this?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I get a very similar error
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Alex Saba

79174787

Date: 2024-11-10 11:36:27
Score: 3.5
Natty:
Report link

In my case, there was a column of data that had mixed data types - numbers stored as text mixed with integers. Removing that column (and I assume reformatting) fixed this.

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

79174779

Date: 2024-11-10 11:33:26
Score: 4.5
Natty: 5.5
Report link

hey i too need help with the wix forms and zoho campagins integration help me

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sigma Fox

79174776

Date: 2024-11-10 11:31:25
Score: 0.5
Natty:
Report link

I had to add paths compiler option to the tsconfig.app.json file instead of the tsconfig.json file for my IDE to recognize.

"paths": {
  "src/*": [
    "./src/*"
  ],
}

Along with the resolve config for vite.config.ts file.

resolve: {
  alias: {
    src: '/src',
  },
},
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Сүхболд A.

79174744

Date: 2024-11-10 11:21:22
Score: 1
Natty:
Report link

As explained at https://developer.apple.com/documentation/combine/performing-key-value-observing-with-combine you can create a combine listener

statusObserver = player.publisher(for: \.timeControlStatus)
    .receive(on: DispatchQueue.main)
    .sink { newStatus in
        isPlaying = newStatus == .playing
    }

where isPlaying: Bool and statusObserver: AnyCancellable? are private @State properties on my view.

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

79174741

Date: 2024-11-10 11:19:22
Score: 1.5
Natty:
Report link

I had the same issue, deleting the VS folder did not work for me.

Unloading and loading the project resolved the issue for me.

You can do this in Visual studio by right clicking the project and selecting unload project and then clicking load project.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Larry Cummins

79174740

Date: 2024-11-10 11:19:22
Score: 2.5
Natty:
Report link

Launching lib\main.dart on Infinix X6525 in debug mode... Running Gradle task 'assembleDebug'... /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:538:4: Error: Undefined name 'mustBeOverridden'. @mustBeOverridden ^^^^^^^^^^^^^^^^ /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:538:4: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor. @mustBeOverridden ^ /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:541:4: Error: Undefined name 'mustBeOverridden'. @mustBeOverridden ^^^^^^^^^^^^^^^^ /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:541:4: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor. @mustBeOverridden ^ /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:544:4: Error: Undefined name 'mustBeOverridden'. @mustBeOverridden ^^^^^^^^^^^^^^^^ /C:/Users/j/AppData/Local/Pub/Cache/hosted/pub.dev/rive-0.13.4/lib/src/rive_core/artboard.dart:544:4: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor. @mustBeOverridden ^ lib/views/screens/bottom_nav_screens/menu/menu_screen.dart:31:13: Error: 'MenuController' is imported from both 'package:flutter/src/material/menu_anchor.dart' and 'package:mine_lab/data/controller/menu_controller/menu_controller.dart'. Get.put(MenuController(menuRepo: Get.find())); ^^^^^^^^^^^^^^ lib/views/screens/bottom_nav_screens/menu/menu_screen.dart:9:1: Error: 'MenuController' is imported from both 'package:flutter/src/material/menu_anchor.dart' and 'package:mine_lab/data/controller/menu_controller/menu_controller.dart'. import 'package:mine_lab/data/controller/menu_controller/menu_controller.dart'; ^^^^^^^^^^^^^^ lib/views/screens/bottom_nav_screens/menu/menu_screen.dart:123:38: Error: The getter 'logoutLoading' isn't defined for the class 'Object?'.

FAILURE: Build failed with an exception.

Process 'command 'C:\Users\j\AppData\Local\Android\Sdk\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 49s Exception: Gradle task assembleDebug failed with exit code 1

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @mustBeOverridden
  • User mentioned (0): @mustBeOverridden
  • User mentioned (0): @mustBeOverridden
  • User mentioned (0): @mustBeOverridden
  • User mentioned (0): @mustBeOverridden
  • User mentioned (0): @mustBeOverridden
  • Filler text (0.5): ^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^
  • Low reputation (1):
Posted by: Fahrain Sallus

79174715

Date: 2024-11-10 11:07:19
Score: 3.5
Natty:
Report link

The start-sleep cmdlet is involved in the script I need to use; while it's alright to trigger the execution when the task is created or modified in Task Scheduler, I am not sure how the 60 secs of sleep are interacting from within the script block along with the Task Scheduler. (I mean like, it could be the Scheduler has the task running by now, but is it the ps1 script performing sleep-start at the same time?)

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anton M

79174708

Date: 2024-11-10 11:03:19
Score: 1.5
Natty:
Report link

In my csae, ubuntu wsl is used, wsl version is key, see https://github.com/pytorch/pytorch/issues/73487

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

79174703

Date: 2024-11-10 11:00:18
Score: 2
Natty:
Report link

In Strapi v5; there two new notions that you need to have clear understanding of for your daily CRUD operations. Here is what you have to consider:

Notice: As for v5.2.0, user-permissions pluging still working with id attribute for CRUD operations soespectially for this plugin, use id instead of documentId

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

79174693

Date: 2024-11-10 10:52:17
Score: 1
Natty:
Report link

controllerThread sets the suspendRequested flag to true when it wants to pause threadA. threadA checks this flag if it's in run() method and, if it's set, it enters a waiting state using wait() or Thread.sleep(). To resume threadA, the controlling thread sets suspendRequested back to false and calls notify() to wake threadA up.

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

79174690

Date: 2024-11-10 10:51:16
Score: 0.5
Natty:
Report link

I also do not have it in the list. But I also have this warning yellow box enter image description here

Let none and it would work.

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

79174687

Date: 2024-11-10 10:50:16
Score: 3.5
Natty:
Report link

Try running the command from git bash, not CMD.

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

79174682

Date: 2024-11-10 10:49:16
Score: 0.5
Natty:
Report link

There is some misunderstanding, in that there never is a "user" [IIS AppPool\{AppPoolName}].

[IIS AppPool\{AppPoolName}] is a "virtual account", & is completely 'unmanaged' by IIS/Windows, and as such is not available via normal means. I think they could have named it better, because the word "account" is a bit of a misnomer (in the traditional sense). It's really a "deterministic unmanaged SID", which windows will let you use in security contexts as if it 'were' an account/user.

Aside/Details: Therefore, Microsoft/WindowsTeam does not have a process which keeps an easily accessible record of all of the "virtual account(s)" that have executed (as there is no 'creation', just 'usage'; a chicken with no egg). This is hack is possible due to the role of SIDs in Windows combined with the deterministic nature of the SIDs generated for the "virtual account in question". It's just a SID prefix based on the account class (i.e. [IIS AppPool\*] === S-1-5-82-*) combined with the UInt32 representation of the SHA-1 of the (lowercase, for IIS AppPool; uppercase, for other services) username.

This is why, when creating permissions in MSSQL Server for an IIS AppPool, the documentation states:

!!!DO NOT CLICK SEARCH!!!

How to add the ApplicationPoolIdentity to a SQL Server Login https://learn.microsoft.com/en-us/archive/blogs/ericparvin/how-to-add-the-applicationpoolidentity-to-a-sql-server-login

... as you can't search (or verify) that it exists, because it only 'exists' when you're using it. So while there will be traces of a virtual account's existence (i.e. the traces it leaves behind as it's bound to an executing service {in logs}, in configuration files, & usually the permissions created on resources for it to be effective). The "deterministic unmanaged SID" only 'exists' at "run time" of the service (and most often will not have a user profile). For instance, if you create a new AppPool, but don't actually start it; there won't be a trace it was there (via icacls.exe, below). However, as the AppPool is running you will see the 'virtual account / user' in task manager for w3wp.exe, as well as the config entry.

So now that that's "clear", let's dig into the question, "So the question is, how do I check that these IIS AppPool service accounts exist in Powershell?" .. because "{you} need to configure databases to automatically grant permissions to the correct account for IIS".

Short Answer -- You Don't (& don't "need" to).

Longer Answer -- If you're using MSSQL, you can follow the instructions above ("How to add the ApplicationPoolIdentity to a SQL Server Login") prior to even creating the Application Pool!

If you're using some other resource (db, file, etc.), you can do the following to bind the SID to a local group, & then use the GUI to apply access to that group:

#  PowerShell AS Admin  ->
#  ADSI  ===  System.DirectoryServices.DirectoryEntry
$group = [ADSI]"WinNT://$Env:ComputerName/{SomeSecGrpName},group"
Write-Host $group.Path
#  group  ===  WinNT://{ComputerName}/{SomeSecGrpName},group
$newAppPoolName = "SomeAppPoolName"
$ntAccount = New-Object System.Security.Principal.NTAccount("IIS APPPOOL\$newAppPoolName")
Write-Host $ntAccount
#  $ntAccount  ===  IIS APPPOOL\SomeAppPoolName
$strSID = $ntAccount.Translate([System.Security.Principal.SecurityIdentifier])
Write-Host $strSID
#  $strSID  ===  S-1-5-82-1567671121-388969313-3181147451-2359319770-4988630401
#  $strSID  -  note  -  not a valid SID above
$user = [ADSI]"WinNT://$strSID"
$group.Add($user.Path)

... then use the group "SomeSecGrpName".

However, lets say you want to know if the IIS AppPool ever ran and/or you want an easy way to get access to the SID; which you can then use to secure items. You can do the following:

Ensure Security Isolation for Web Sites https://learn.microsoft.com/en-us/iis/manage/configuring-security/ensure-security-isolation-for-web-sites

icacls.exe c:\inetpub\temp\appPools\{SomeAppPoolName}\{SomeAppPoolName}.config /save {d:\SomeDirectory}\icacls_{SomeAppPoolName}_output.txt

... gets us a file, containing the SID to use for security permissions.

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: George 2.0 Hope

79174671

Date: 2024-11-10 10:41:14
Score: 1.5
Natty:
Report link

From Microsoft documentation, I understand that it is essential to ensure that the begin and end functions are accessible in the same namespace as your container. This accessibility allows the compiler to locate these functions through Argument-Dependent Lookup (ADL).

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

79174664

Date: 2024-11-10 10:35:13
Score: 1
Natty:
Report link

MYSQL decides the relevant strategy: MATERIALIZATION (or) DUPSWEEDOUT based on the cost even if we force it (according to MySQL manuals for SEMIJOIN Hint). On the other hand, there is another Hint SUBQUERY, which you can use since nested subqueries are present in your query, which uses the materialization strategy.

The modified code below will use the MATERIALIZATION strategy:

EXPLAIN FORMAT=TREE
SELECT /*+ **SUBQUERY(@subq2 MATERIALIZATION)** */ rse.*
FROM rubric_session_elements rse
WHERE rse.rubric_session_id IN (
    SELECT /*+ QB_NAME(subq2) */ rs.id
    FROM rubric_sessions rs
    WHERE rs.template_id IN (
        SELECT /*+ QB_NAME(subq1) */ a.rubric_template_id
        FROM activities a
        WHERE a.group_id = 123
    )
);

Please let me know if you need more information.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Srinimf

79174660

Date: 2024-11-10 10:32:13
Score: 0.5
Natty:
Report link

Keep It Simple!

You can use lnk-cli to create a directory link.

Here’s my setup using TypeScript:

Step 1: Install lnk-cli

Step 2: Common Folder

enter image description here

Only include the code files you want (no package.json, tsconfig.json, etc.)

Step 3: Package.json

enter image description here

See the highlighted text. Just add the "lnk" command to create the directory link before watching the TypeScript files.

Step 4: .gitignore

enter image description here

The common folder has the main code, so you can ignore these linked folders. Any changes in one of the three locations (common, functions/common, or server/common) will automatically reflect in all linked locations.

Done!

enter image description here

Now you can import the common files like this. (No additional need to adjust tsconfig.json)

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Edelcio Molina

79174651

Date: 2024-11-10 10:27:11
Score: 0.5
Natty:
Report link

After you set the visibility to GONE, add

ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) tvQuestion.getLayoutParams();
layoutParams.topToBottom = R.id.tvQuestionNumber;
tvQuestion.setLayoutParams(layoutParams);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user27894462

79174641

Date: 2024-11-10 10:21:09
Score: 5
Natty:
Report link

after asking around my question on Image.sc forum, I found that the problem can be solved if I downgrade keras from 3.6.0 to 3.4.1 (Google Colab version).

However, the bad news is that a new bug appeared. When I set

discriminator.compile(loss = "binary_crossentropy", optimizer = Adam(learning_rate = 0.0002, beta_1 = 0.5), metrics = ["accuracy"])
# Set non-trainable after compiling discriminator
discriminator.trainable = False

discriminator still becomes non-trainable even if it had been compiled before turning off the trainable tag, and no re-compilation of the discriminator afterwards. Please refer to discriminator.summary() before and after turning off the trainable flag.

discriminator.summary before freezing
Model: "functional_1"
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Layer (type)                         ┃ Output Shape                ┃         Param # ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ input_layer_1 (InputLayer)           │ (None, 28, 28, 1)           │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ flatten (Flatten)                    │ (None, 784)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_4 (Dense)                      │ (None, 512)                 │         401,920 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ leaky_re_lu_3 (LeakyReLU)            │ (None, 512)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_5 (Dense)                      │ (None, 256)                 │         131,328 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ leaky_re_lu_4 (LeakyReLU)            │ (None, 256)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_6 (Dense)                      │ (None, 1)                   │             257 │
└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘
 Total params: 533,505 (2.04 MB)
 Trainable params: 533,505 (2.04 MB)
 Non-trainable params: 0 (0.00 B)
discriminator.summary after freezing but no recompile
Model: "functional_1"
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Layer (type)                         ┃ Output Shape                ┃         Param # ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ input_layer_1 (InputLayer)           │ (None, 28, 28, 1)           │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ flatten (Flatten)                    │ (None, 784)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_4 (Dense)                      │ (None, 512)                 │         401,920 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ leaky_re_lu_3 (LeakyReLU)            │ (None, 512)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_5 (Dense)                      │ (None, 256)                 │         131,328 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ leaky_re_lu_4 (LeakyReLU)            │ (None, 256)                 │               0 │
├──────────────────────────────────────┼─────────────────────────────┼─────────────────┤
│ dense_6 (Dense)                      │ (None, 1)                   │             257 │
└──────────────────────────────────────┴─────────────────────────────┴─────────────────┘
 Total params: 533,505 (2.04 MB)
 Trainable params: 0 (0.00 B)
 Non-trainable params: 533,505 (2.04 MB)

There are a lot of reports about this tag working aberrantly A GitHub discussion Another GitHub discussion To circumvent this problem, I have to turn discriminator trainable before I train it and then off before I train the entire GAN in each epoch cycle

discriminator.trainable = True
discriminator.train_on_batch(x = realhalf, y = np.ones((half_size, 1)))
discriminator.trainable = False
combined.train_on_batch(np.random.normal(0, 1, (batch_size, 100)), np.array([1] * batch_size))

But honestly I feel a bit unsecure using these packages since the bug has been there since almost a decade ago. I did a brief search and some recommended PyTorch instead (Redit discussion)? If anyone knows about these packages, please feel free to let me know. Thanks in advance!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): anyone knows
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Henryk W

79174638

Date: 2024-11-10 10:19:09
Score: 2.5
Natty:
Report link
int col=StringGrid1->Col;
int row=StringGrid1->Row;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: hadi ranjdoust

79174631

Date: 2024-11-10 10:14:07
Score: 4
Natty:
Report link
document.getElementById("myInput").value =uuid.v4()
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: R K

79174629

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

After receiving @JarMan's comment, I verified the Qt and I found that my Qt pointed to the build host Qt installation. After I manually pointed to the cross-compiled Qt from the Yocto SDK, the error disappeared.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @JarMan's
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Robert

79174628

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

The error comes because we didn't select Firebase features right before hitting Enter button just hit space button to select the feature.

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

79174626

Date: 2024-11-10 10:11:06
Score: 2
Natty:
Report link
gdal.Translate(self.output, raster_dataset, format='GPKG',
                                       creationOptions=['APPEND_SUBDATASET=YES'])

It works.

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

79174620

Date: 2024-11-10 10:08:05
Score: 4
Natty: 6.5
Report link

Damm jack has the biggest baseball bat Grand slam that was a Hit setup change,up switch hitters nice try next time bring Jill LL COOL J's classic I need love hahahahah hackers why are you wasting your time, figured you out thanks too the hacker on my Google account . Swear he thinks he invincible.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anthony M

79174616

Date: 2024-11-10 10:04:04
Score: 2
Natty:
Report link

Using useTemplateRef since Vue 3.5+ is the recommended way from the current official doc to obtain the reference with Composition API.

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

79174597

Date: 2024-11-10 09:53:02
Score: 2
Natty:
Report link

Error cause

Error resolution

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

79174589

Date: 2024-11-10 09:49:01
Score: 2
Natty:
Report link

Sorry @jcalz, I was to answer you specifically yesterday but was too tired and simply forgot it.

Yes, what you mention on your comment is what I was after. Little I knew I was taking TS to it's pants, so I finally plan to settle on something like this:

[
  /* One entry */
  {
    string: 'foo',

    function_1 (x) {
      let ret : number = x;
      return (ret);
    },

    function_2 (x) {
      let ret: number = x;
      return (ret);
    }
  },

  /* Another entry */
  ...
]

This is a construction I've seen for example, in prosemirror's schema (except for mine's being inside an array). If that's also a problem I'll then reparent these with an object and get rid of the array altogether.

For those calling it laziness: I wouldn't have devoted a whole day to try to solve this if that was the particular case.

Well, thank you all for you time and you attention!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jcalz
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user1476851

79174568

Date: 2024-11-10 09:40:59
Score: 2
Natty:
Report link

rm -rf ~/.gradle/caches

Try this if your running inside docker

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ankush katkar

79174565

Date: 2024-11-10 09:39:59
Score: 2.5
Natty:
Report link

This is a network issue. You can first check if the API URL is accessible using the code in this thread.

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

79174547

Date: 2024-11-10 09:30:57
Score: 2
Natty:
Report link

Well, this error is familiar, because it gave me sleepless nights. 415 Unsupported Media Type. I think this means that the content type of the request doesn't match what spring-boot expects. Since you've confirmed that your BE API works, I suspect tat the issue is in how React is making the request. Just making educated guesses here. Here are a few things you can try:

  1. Check that the field names in your FormData match the param names in your controller. FormData (caption, file, and postTypeName)

  2. Please check your axios version. I put this here because some versions of axios have known issues with FormData

  3. Remove Content-Type header I think because axios automatically sets the Content-Type header to multipart/form-data with a boundary, which is essential for FormData to work properly. Manually setting Content-Type can interfere with this. So Try removing 'Content-Type': 'multipart/form-data' from the headers like this:

const response = await axios.post(url, formData, {
  headers: {
    "Authorization": `Bearer ${token}`,
  },
});
  1. You can set postTypeName in FormData instead of RequestParam: Since you've currently added postTypeName as a RequestParam, it might not work as expected in a FormData object. Instead, please ensure that postTypeName is added as a RequestPart parameter in your controller. Do you understand?

I would also improve your addPostWithImage endpoint like this.

@PostMapping(value = "/posts/add", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
@ResponseStatus(HttpStatus.CREATED)
@ApiResponse(responseCode = "400", description = "Please check the payload or token")
@ApiResponse(responseCode = "200", description = "Post added with image")
@Operation(summary = "Add a new Post with optional image")
@SecurityRequirement(name = "studyeasy-demo-api")
public ResponseEntity<?> addPostWithImage(
        @Parameter(content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE)) @RequestPart("caption") PostPayloadDTO postPayloadDTO,
        @RequestPart(value = "file", required = false) MultipartFile file,
        @RequestPart("postTypeName") String postTypeName, // I changed this from RequestParam to RequestPart
        Authentication authentication) {
    ...
}

These are some of the issues I could immediately spot with your code. Try and change them and please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Nelson Ekpenyong

79174540

Date: 2024-11-10 09:29:56
Score: 2
Natty:
Report link

I fix the similar issue by installing the referenced dlls from NuGet. My case was like: LibraryA needs System.Runtime(6.0.0.) but somehow the dll path
was not correct. I just removed the existing LibraryA references and re-install them from NuGet.

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

79174523

Date: 2024-11-10 09:20:54
Score: 0.5
Natty:
Report link

The answers here are not wrong, but not precise either. Your problem has nothing to do with the BigDecimal class as such, but with the nature of doubles.

A double is internally represented as an exponential, you could imagine the computer storing something looking like 0.22 * 2^15. However not every number can be represented accurately this way (for your case see: https://www.binaryconvert.com/result_double.html?decimal=049051053046054057). This inaccurate representation is what you pass to the BigDecimal constructor.

In conclusion, the input argument for your BigDecimal constructor is the approximation that you see in the end. The BigDecimal constructor did nothing wrong, its input was inaccurate.

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

79174522

Date: 2024-11-10 09:20:54
Score: 1.5
Natty:
Report link

The UAC will come always, try to run this in admin, right click run as admin or change the app executable or the apps entire folder and give it all elevated administrator permissions. Then UAC prompt will be skipped, or if you as I can see are already using Auto Hotkey, there are many scripts available for this, where it automatically clicks Yes (Button 1) when it detected the UAC admin prompt, you can activate it keeps running on loop and that's good for you, or if you can, disable UAC, [DON'T, this is last resort.]

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

79174519

Date: 2024-11-10 09:17:53
Score: 3
Natty:
Report link

I know how to remove from the blacklist without having to download from the extension store again. Is your extension deployed under a non Google domain

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

79174515

Date: 2024-11-10 09:16:53
Score: 2.5
Natty:
Report link

ARRGGH!

The problem came from the CMakeLists.txt for one of the static libs which contained:

target_link_libraries(${PROJECT_NAME} PUBLIC libraw libtiff ZClass )

David

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

79174514

Date: 2024-11-10 09:16:53
Score: 1.5
Natty:
Report link

You can do this without needing to use the gcloud CLI/API. You can add this role to your user through the IAM section however you need to make sure you're in the settings for your organization, not your project. The dropdown at the top of the page will let you switch over and then the role will be visible when you search for them on the right side.

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

79174508

Date: 2024-11-10 09:09:52
Score: 2
Natty:
Report link

Solved the same issue with below VS code setting:

File > Preferences > Settings> Search 'Extensions'>Python

Under Python: Default Interpreter Path, update 'Python: Select Interpreter'

Screencap

Reference for Setting descriptions for python.defaultInterpreterPath:

https://github.com/microsoft/vscode-python/wiki/Setting-descriptions#pythondefaultinterpreterpath

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

79174483

Date: 2024-11-10 08:51:46
Score: 8.5 🚩
Natty: 5.5
Report link

I am having the exact same requirements did you find your answer?

Reasons:
  • RegEx Blacklisted phrase (3): did you find your answer
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Uday Kumar

79174477

Date: 2024-11-10 08:47:45
Score: 1
Natty:
Report link

Well, useRef is a hook in React for functional components. It has function that provides a mutable reference to a DOM element. Creating a ref without useRef just uses the React.createRef() method. The typical difference between them is that we normal use useRef hook for the functional component and the Creating a ref without useRef for the class component. And the second difference is that createRef method creates a new ref object each time the component re-renders but the useRef hook only returns the same ref object through the component's lifecycle so doesn't need the re-render. I think the benefit of useRef is that it can have any mutable value without causing a re-renders unlike the createRef method.

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

79174468

Date: 2024-11-10 08:44:44
Score: 2.5
Natty:
Report link

The reason is because of the node version. The solution is to use lts. I was using the latest.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sixtus Agbo

79174461

Date: 2024-11-10 08:41:44
Score: 2
Natty:
Report link

Have you tried using this solution from a bit of an older post?

The post was: Stackoverflow Post which was based on this blog from 2015. The way this post outlines on fixing the issue is by manually compiling OpenCV yourself. (By my understanding). You could also try checking the official docs to compile with that: OpenCV Docs

If this doesn't work however you could try just cloning the github repo (I know not the greatest way but it should work..)

$ sudo apt-get install git
$ git clone https://github.com/opencv/opencv.git
Reasons:
  • Blacklisted phrase (1): this blog
  • Blacklisted phrase (1): Stackoverflow
  • Whitelisted phrase (-1): Have you tried
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: AboveAphid

79174443

Date: 2024-11-10 08:29:42
Score: 3
Natty:
Report link

In my case the debugger had left "convert" open. None of the .cs that were designer would show up. I closed "convert" and restarted the project

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

79174441

Date: 2024-11-10 08:29:42
Score: 1.5
Natty:
Report link

During troubleshooting, I noticed that using the AWS CLI instead of Boto3 gave slightly different output. I tried running the script within the same account for both the EC2 client and Network Manager, and it worked. It seems Boto3 is performing a check to ensure that the core network and VPC are in the same account, but it's throwing an incorrect error, indicating a "wrong input."

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Palma palermo

79174439

Date: 2024-11-10 08:28:41
Score: 2
Natty:
Report link

As Robert mentioned in the comments, this depends on certain parameters sent to Google Play when requesting the download link. Based on my research, the key parameter is Vending.version, which specifies the version of Google Play that is making the download request. The last version that can request the app without split APKs is 80913000, which represents a specific Google Play version. After this version, it’s no longer possible to download a solid APK.

Additionally, some apps have implemented restrictions within themselves, so even setting this parameter to 80913000 won't allow the app to be downloaded. You can see this in the link below, where, starting from a certain app version, even on ApkCombo, downloading a unified APK file is no longer possible:

https://apkcombo.com/space-takeover-over-city/risk.city.dominations.strategy.io.games/download/apk

Reasons:
  • Blacklisted phrase (1): the link below
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Micle

79174436

Date: 2024-11-10 08:27:41
Score: 2
Natty:
Report link

WhatsApp Profile Image Size – 500 x 500 px (use this size to get the best profile picture) WhatsApp Square Post to Send Image Size – 800 x 800 px WhatsApp Story to Share Image Size – 750 x 1334 px

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hamid Reza Heidary

79174431

Date: 2024-11-10 08:25:39
Score: 11 🚩
Natty: 4
Report link

hey i am also facing the same issue can you help me Export encountered errors on following paths: /(main)/agency/page: /agency /(main)/subaccount/page: /subaccount /_error: /404 /_error: /500 /_not-found /site/page: /site Error occurred prerendering page "/site". Read more: https://nextjs.org/docs/messages/prerender-error TypeError: Cannot read properties of null (reading 'useContext')

Reasons:
  • Blacklisted phrase (1): i am also facing the same issue
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (2): hey i am
  • No code block (0.5):
  • Me too answer (2.5): i am also facing the same issue
  • Low reputation (1):
Posted by: Shiven Narang

79174429

Date: 2024-11-10 08:24:38
Score: 0.5
Natty:
Report link

Jon Betts’s answer is useful when you only want a Cache-Control header.

If you don’t mind also adding an Expires header, the following one-liner replaces the upstream header with a new Cache-Control header and an equivalent Expires header

expires 10;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NodeUnderflow

79174411

Date: 2024-11-10 08:11:35
Score: 2
Natty:
Report link

This is probably related to the installed version, in my case, I had this issue with version 10.0.1 so I downgraded the @videogular/ngx-videogular package version to v9.0.0 and the icons problem got fixed.

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

79174408

Date: 2024-11-10 08:10:35
Score: 1
Natty:
Report link

If you need really good compression , I’ve used on ChatGPT “SentenceSqueezer”, it usually compresses in neighborhood 60-85% of instruction sets and it’s so simple, guaranteed not to lose context because it makes an acronym out of each sentence or line , tell it to leave periods in there place or whatever you desire, gives pre and post count with a mapping table, and it may do meta compression using one symbol. The other one is “Tokenizer GPT Instruction Compressor” also in the same platform but uses single placeholders for words that repeat more than 3 times I. BElieve, outputs same stats on compression mapping table etc, may be worth a try, I’m new so I may be way off if this will work for you, hopefully so. But if they both have worked for me in not having to ever worry about how technical I need my instructions to be

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Papa T

79174407

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

They have suggested differently from their support site. Please check Atlassian. Support

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

79174405

Date: 2024-11-10 08:08:34
Score: 4
Natty: 5
Report link

I personally used https://github.com/MartinKuschnik/WmiLight, it works liked margic!

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

79174396

Date: 2024-11-10 08:01:32
Score: 1.5
Natty:
Report link

To access your Laravel Herd apps from a Docker container, create a shared network using docker network create my-network. Run both your Laravel Herd apps and the Docker container on this network. Inside the container, you can access myapp1.test by its IP address or hostname, which should be resolvable within the network. For more complex setups, consider using Docker Compose to define services, networks, and dependencies.

Source: Terus

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

79174395

Date: 2024-11-10 08:01:32
Score: 2.5
Natty:
Report link

Since I installed vscode as "Flatpak" application, it has restricted access to the file system. I uninstalled and installed the .deb package from https://code.visualstudio.com. This installation has access to the /usr/local folder.

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

79174387

Date: 2024-11-10 07:54:31
Score: 0.5
Natty:
Report link

the following approach worked for me:

  1. remove old url get remote remove origin
  2. add new url git remote add origin /your/repo/url
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shatlyk

79174385

Date: 2024-11-10 07:53:31
Score: 0.5
Natty:
Report link

I use this in my GH-Action Workflow:

APP="myciapp"
APP_USER_ID="$(curl -SsL 'https://api.github.com/users/${APP}%5Bbot%5D' | jq '.id' -r)"
git config --global user.name "${APP}[bot]"
git config --global user.email "${APP_USER_ID}+${APP}[bot]@users.noreply.github.com"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nils

79174384

Date: 2024-11-10 07:52:30
Score: 2.5
Natty:
Report link

first thank you for your answer.

I try this code: https://codepen.io/jeromeminn/pen/gOVQVaX [https://codepen.io/jeromeminn/pen/gOVQVaX][1]

    <style>

.parent {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 40px;
grid-row-gap: 0px;
}

.container {
display: flex; /* or inline-flex */
flex-direction: row;
flex-wrap: nowrap;
justify-content:space-between;
gap: 10px;
}

.item {
flex-grow:1;
flex-basis:0;
    
}
        
</style>

    <div class="parent">
<div style="background-color: #B5B5B5; width: fit-content"><h1>go to market</h1></div>
<div style="background-color: #C7C7C7; width: fit-content"><h1>branding &amp; sustainability</h1></div>
<div style="background-color: #CDCDCD; width: fit-content"><h1>product as a service</h1></div>
</div>
    
<div style="clear: both"></div>
    
<div class="container" style="width: 100%">
<div class="item" style="background-color: #B5B5B5; width: fit-content"><h1>go to market</h1></div>
<div class="item" style="background-color: #C7C7C7; width: fit-content"><h1>branding &amp; sustainability</h1></div>
<div class="item" style="background-color: #CDCDCD; width: fit-content"><h1>product as a service</h1></div>
</div>

but as you can see, no one function. I can't set a width in pixels or percentage as the 3 columns haven't got the same length of text, and if i set the width to "fit-content" for the parent div, it's OK, the space is redistributed like i want but when the text wrap on 2 lines the H1 tag don't take the width of the text but add extra space on the right (maybe the browser don't be able to calculate the new width ?!).

Thank you, regards Jerome

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-2): try this code
  • RegEx Blacklisted phrase (1): i want
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jeromeminn

79174383

Date: 2024-11-10 07:52:30
Score: 1
Natty:
Report link

In build.gradle (app module), you wrote in the dependency section:

implementation 'gun0912.ted:tedpermission:2.2.3'

it is now

implementation 'io.github.ParkSangGwon:tedpermission-normal:3.4.2'

It currently works with SdkVersion 34.

You may refer to the documentation:

https://github.com/ParkSangGwon/TedPermission

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

79174380

Date: 2024-11-10 07:50:30
Score: 7
Natty: 7
Report link

When I connect my wallet this type of problem show <Must provide authorization header with EIP-191 Timestamp Bearer token< Any solution here..?

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: MD MAHADI

79174379

Date: 2024-11-10 07:50:29
Score: 1
Natty:
Report link

For FreeBSD/Macos:

find /path/to/ -type f ... -exec stat -f '%B %N' {} \; | sort -nr | awk '{print $2}'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: George Eliozov

79174378

Date: 2024-11-10 07:49:29
Score: 1
Natty:
Report link

I had the same issue where everything worked fine locally with Spring Boot, but failed when running in Docker. Adding the following dependencies resolved the problem:

implementation 'net.sf.jasperreports:jasperreports-jdt:7.0.1'

implementation 'org.eclipse.jdt:ecj:3.21.0'

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andres Castellanos

79174367

Date: 2024-11-10 07:44:28
Score: 1.5
Natty:
Report link

When you are giving the child class a parent to inherit from, in this case; Parent, it literally inherits everything Parent has; it's attributes, methods, more. In this case you are REASSIGNING attribute which is already defined since you grabbed it from Parent. Therefore you would need to do attribute2 = attribute / 2 or attribute /= 2.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you are
  • Low reputation (1):
Posted by: OhioSkibidiSigmaToeTickler69

79174362

Date: 2024-11-10 07:37:26
Score: 3
Natty:
Report link

life is easy you live breathe and play slot gacor Just that :)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: slog gacor nagacc

79174354

Date: 2024-11-10 07:33:26
Score: 3
Natty:
Report link

Use Keyboard Manager for customizable keyboard shortcuts

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