79461929

Date: 2025-02-23 20:30:44
Score: 9
Natty: 7.5
Report link

Exactly same issue, any solutions to this?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solutions to this?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shiv Konar

79461923

Date: 2025-02-23 20:25:43
Score: 0.5
Natty:
Report link

It seems passing /Debug:FastLink to the linker does the job for the final executable (I tested on MSVC 19.43.34808), but it only solves half the problem, because the compiler still produces nondeterministic object files, so it doesn't help for caching the object files etc.

If anyone has a complete solution, please post it.

Reasons:
  • RegEx Blacklisted phrase (2.5): please post
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: user541686

79461921

Date: 2025-02-23 20:22:42
Score: 2
Natty:
Report link

Cloudinary should return a response header that include the error details in the x-cld-error header, and you can see the value by using your browser's web developer tools to examine that response.

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

79461920

Date: 2025-02-23 20:21:42
Score: 3
Natty:
Report link

the name: string, amount: name change name to number ⬆️

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

79461909

Date: 2025-02-23 20:15:40
Score: 4
Natty:
Report link

they removed the dl link, 2025 week 8

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

79461904

Date: 2025-02-23 20:14:40
Score: 2
Natty:
Report link

You can use PHP 8.1, which I recommend (I personally use PHP 8.1.10).

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

79461900

Date: 2025-02-23 20:12:39
Score: 0.5
Natty:
Report link

Since NextJs 13, tags are no longer required.

I like passing props into href for easy to read and organize code. Here's an example using app router [email protected]. Use "target" and "rel" like so to open your link in a new tab.

//// Some.tsx file

.....

    <Link
      href={siteConfig.links.login}
      target="_blank"
      rel="noreferrer"
      className={buttonVariants()}
    >
      Login
    </Link>

...... ////

Heres an example site config where you create a "site" object that can accept arrays and other objects...in this case we have an object called "links" with its child "URL" objects

/config/site.ts

  links: {
    twitter: 
"https://twitter.com/r_mourey_jr",
    github: 
"https://github.com/rmourey26/onyx",
    login: "https://onyx-rho- 
            pink.vercel.app/auth",
    signup: "https://onyx-rho- 
           pink.vercel.app/onboarding",
    linkedin: "https://linkedin.com/in/robertmoureyjr",
  },

}

....

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Filler text (0.5): ...........
  • Low reputation (1):
Posted by: rmourey26

79461898

Date: 2025-02-23 20:11:39
Score: 2
Natty:
Report link

To update this for anyone else looking, C# Dev Kit looks to add Code Coverage along with many other features.

F1 -> Test: Run All Tests with Coverage

This then displays in the file explorer, or in the "Test Coverage" panel of the "Testing" tab.

Code coverage indicator displayed in the file explorer

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

79461896

Date: 2025-02-23 20:10:39
Score: 0.5
Natty:
Report link

I found this same issue with a recently set up pass through cache with authentication. It was working with SOME image references - basically anything that wasn't one of dockerhubs 'official images'.

For example when I did an explicit pull for 'cachingregistry.example.com/debian:12-slim' it would fail with the authentication error - even though I had creds in my pass through registry and had valid authentication to the passthrough registry itself.

The solution was to add the 'library' prefix, pulling "cachingregistry.example.com/library/debian:12-slim". That resolved the authentication errors.

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

79461895

Date: 2025-02-23 20:10:39
Score: 2
Natty:
Report link

To my understanding, your goal is to keep the current week on the top row. Unfortenutly there is no way of doing this with the current configuration.

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

79461894

Date: 2025-02-23 20:09:38
Score: 1
Natty:
Report link

You can try my solution: https://github.com/darkfrei/SafeSaveLoad-Lua This library can save and load any data type except functions and userdata.

Reasons:
  • Whitelisted phrase (-2): solution:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: darkfrei

79461891

Date: 2025-02-23 20:07:38
Score: 1
Natty:
Report link

For it to work you have to pass the event (your model) as a parameter to the function and from the view pass the full value. Check your controller. Here is an example.

public function show (Event $event)
{
    return view('event.show', $event);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Francisco Rojas

79461890

Date: 2025-02-23 20:06:38
Score: 3
Natty:
Report link

Honestly, this sounds like malware. I would disable or uninstall all extension inside by the way, then enable one out of them coming to diagnose where the issue is coming from. If it continues, you may need to do a virus sweep and possibly uninstall and reinstall Chrome, all together.

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

79461889

Date: 2025-02-23 20:05:37
Score: 4.5
Natty:
Report link

I'm getting the error the question author says, but I'm not getting the error in the logs pointed here: https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues. I followed your approach, but I have gnome-keyring running, I installed sudo apt install libsecret-1-0 libsecret-1-dev, and "security.workspace.trust.enabled" was already true. But I'm still getting the same error when trying to login to GitHub.

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting the error
  • RegEx Blacklisted phrase (1): I'm still getting the same error
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Single line (0.5):
Posted by: David Torres

79461885

Date: 2025-02-23 20:04:37
Score: 1.5
Natty:
Report link

Had the same problem, reinstalling helped me, but first of all, try to check if it downloaded:

import ssl
print(ssl.OPENSSL_VERSION)

Otherwise try to use OpenSSL here

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

79461883

Date: 2025-02-23 20:02:37
Score: 3
Natty:
Report link

Traditional Datapower only captures 3 concurrent transactions. If there are more than 3 concurrent transactions only 3 will be recorded in probe but all will be sent to backend. If you wish to record all, set the probe limit to unbounded from probe settings

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

79461881

Date: 2025-02-23 20:00:36
Score: 4
Natty:
Report link

don’t react to these offer please.

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

79461877

Date: 2025-02-23 19:57:35
Score: 3
Natty:
Report link

I use 末. I don't speak Japanese but I'm lead to believe it means "end" which makes it kind of appropriate: https://jitenon.com/kanji/%E6%9C%AB

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

79461873

Date: 2025-02-23 19:54:35
Score: 1.5
Natty:
Report link

Your task seems to be best addressed by XSLT (eXtensible Style Sheet Language) which the main language for conversion of one XML into another (https://www.w3.org/TR/xslt-30/). If you stick to Python as your prefered programming environment, see How to transform an XML file using XSLT in Python? and be aware that you the standard python libraries process only XSLT 1.0. Your problem might involve regular expressions, which are only supported from XSLT 2.0 onwards. For this, the python port of Saxonica's saxon library is probably the best suited (https://pypi.org/project/saxonche/).

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

79461865

Date: 2025-02-23 19:51:34
Score: 1.5
Natty:
Report link

If you were to generalize this problem, to say "Does a string str end with a string suffix?" you could do the following:

#include <string.h>

int endswith(char* str, char* suffix) 
{
    // assuming that str and suffix are not NULL
    return strcmp(str + strlen(str) - strlen(suffix), suffix) == 0;
}

It would be trivial to add a check for NULL to the function as well:

#include <string.h>

int endswith(char* str, char* suffix) 
{
    return str && suffix && strcmp(str + strlen(str) - strlen(suffix), suffix) == 0;
}
Reasons:
  • RegEx Blacklisted phrase (1.5): fix?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Rusty

79461864

Date: 2025-02-23 19:49:33
Score: 0.5
Natty:
Report link

In OpenSSL 3.2+, replace

SSL_CTX_set_default_verify_paths(ctx);

with

SSL_CTX_load_verify_store(ctx, "org.openssl.winstore://");

This loads certificates from the Windows system store.

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

79461863

Date: 2025-02-23 19:49:33
Score: 1
Natty:
Report link

target can be an eventTarget interface, so you need to check what the target is

<input onInput={({target}) => {
  if (target instanceof HTMLInputElement) {
    onInput(target.value)
  }
}}/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (0.5):
Posted by: Anton

79461859

Date: 2025-02-23 19:44:32
Score: 11 🚩
Natty: 6
Report link

did you solve the problem? i m facing the same issue when googling from digital ocean droplet. got 403. On terminal works

Reasons:
  • RegEx Blacklisted phrase (3): did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you solve the
  • Low reputation (1):
Posted by: erre4

79461854

Date: 2025-02-23 19:40:31
Score: 1.5
Natty:
Report link

Already checked CI::$APP->config->item('controller_suffix') configuration. Is the 'controller_suffix' configuration loaded correctly?

One solution would be to create a config $config['controller_suffix'] = '';.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: The Pocket 006

79461852

Date: 2025-02-23 19:39:30
Score: 5
Natty: 6
Report link

Comment saisir un dropdown au clavier sur smartphone? Cordialement

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jean Claude BERNARD

79461850

Date: 2025-02-23 19:38:30
Score: 3
Natty:
Report link

For this kind of case, you should not give much attention to this detail. For example, you should give attention like when there is a form in mobile, does is responsive ?, are there any client side validations ?

Sometimes, these detail cases pull the developers back.

Thank You.

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mubarak Ali Shah

79461847

Date: 2025-02-23 19:35:29
Score: 1.5
Natty:
Report link

I suggest you try calling your maximise function with known values and then test if you are getting the proper results.

most folks will use a framework for unit testing but in a simple case, it is better to just walk through it in a debugger or printf/cout the various intermediate results of rentPU and profit for each loop value..

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

79461845

Date: 2025-02-23 19:34:29
Score: 1.5
Natty:
Report link

It seems this is not possible and this apparently inactive initiative from 2022 wanted to make it possible:

https://blog.rust-lang.org/inside-rust/2022/07/27/keyword-generics.html

There is https://docs.rs/maybe-async/0.2.6/maybe_async but it is not important enough for me to pull in another dependency.

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

79461826

Date: 2025-02-23 19:22:27
Score: 4
Natty:
Report link

If you wants to load llama model locally , you can check out this article where proper steps are mentioned.

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jack

79461819

Date: 2025-02-23 19:18:26
Score: 0.5
Natty:
Report link

I discovered that order is important in declaring laravel routes and that some can be greedy.

the first example doesn't work because the first line takes precedence over the second one

Route::get('/event/{event}', [EventController::class, 'show'])->name('event.show');
Route::get('/event/create', [EventController::class, 'create'])->name('event.create');

The right way to write routes in order is below

Route::get('/event/create', [EventController::class, 'create'])->name('event.create');
Route::get('/event/{event}', [EventController::class, 'show'])->name('event.show');
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: keyon8060

79461810

Date: 2025-02-23 19:10:24
Score: 0.5
Natty:
Report link

AppsScript charts are not the same as Google visualization charts, unfortunately. They used to be the same in the past, but AppsScript charts are now using the same internal library that sheets uses.

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

79461805

Date: 2025-02-23 19:08:24
Score: 2
Natty:
Report link

At this time FEB 2025: NVM recognizes already installed node versions. So this should not be an issue.

Another case: What if someone installs nvm and then node separately?? (This is how I came to this question.) You'll have to uninstall & reinstall node through nvm. OR You can uninstall nvm and reinstall it. (This is what solved my issue just now.)

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

79461792

Date: 2025-02-23 18:56:22
Score: 2
Natty:
Report link

first the data here should be of a boolean data type int trade_opened = false; // To check that there are no open trades. Some times the code compiles but the code might no work as intended

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

79461774

Date: 2025-02-23 18:40:19
Score: 2.5
Natty:
Report link

To quote from the Docker forum:

Looks like it’s a java bug specific to M4/Docker/MacOs 15.2. Really appreciate you taking a look, for now the recommended workaround of using JAVA_OPTS=“-XX:UseSVE=0” seems to be working.

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

79461768

Date: 2025-02-23 18:36:19
Score: 1.5
Natty:
Report link

Glad you found an answer

I've found the best way is to really create it in Polarion and convert it to text as in the video you mentioned

Have you had problems or noticed limitations with the customFields? I haven't been able to properly make a query with a customField (even when creating the filters in Polarion and changing it to a string, only works with normal fields) I've also found that putting more than one customFields in the fields will just return me one of them and not both. Pretty inconsistent all around

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

79461761

Date: 2025-02-23 18:28:18
Score: 1
Natty:
Report link

In my case the default database name which was created is 'postgres'. So with psql -d postgres I was able to connect to my server.

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

79461760

Date: 2025-02-23 18:28:18
Score: 2
Natty:
Report link

I can not sudo in AWS SageMaker AI

sudo: command not found

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

79461758

Date: 2025-02-23 18:26:17
Score: 2.5
Natty:
Report link

I think you're on the right path using a trigger instead of a sensor, however, I'd use the TriggerDagRunOperator. You can pass in the Dag ID of the Dag you want to trigger as well as any configurations. The logical date is optional.

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

79461743

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

The binary location and driver paths got mixed up. The driver path should be

PATH = "/opt/chromedriver-linux64/chromedriver"

and the binary location path should be

chrome_options.binary_location = "/opt/chrome-linux64/chrome"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Man made of meat

79461737

Date: 2025-02-23 18:14:13
Score: 1
Natty:
Report link

This is another rapid, simple and a bit different way to insert a row in a pandas dataframe at the top :

df.loc[-1] = [2,3,4]
df = df.sort_index().reset_index(drop = True)

and you will have this result :

    A   B   C
0   2   3   4
1   5   6   7
2   7   8   9
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Youssef Zied ELHECHMI

79461736

Date: 2025-02-23 18:14:13
Score: 2
Natty:
Report link

Actually I figured out the part why Raw option wasn't working. It turns out I was sending text and had to switch to JSON. So that answered one question that I have but don't know about the other one :(

Reasons:
  • Blacklisted phrase (1): :(
  • Whitelisted phrase (-2): I figured out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Piyussh

79461735

Date: 2025-02-23 18:12:13
Score: 0.5
Natty:
Report link

I recently got this same error, and applied the suggested fix. However, what was not shared in this StackOverflow post is that MySql.Data changed something internally: the IgnorePrepare property used to be True until 8.0.23. This change makes Prepare() actually create prepared statements on the server whereas it did not before. In our case the database ran out of prepared statements (Can't create more than max_prepared_stmt_count statements).

Removing Prepare() for statements that just use parameters and are not reused works better.

References:

https://mysqlconnector.net/tutorials/migrating-from-connector-net/

IgnorePrepare
true for ≤ 8.0.22; false for ≥ 8.0.23

https://dev.mysql.com/doc/relnotes/connector-net/en/news-8-0-23.html

The IgnorePrepare connection-string option was deprecated in the Connector/NET 8.0.23 release and removed in the Connector/NET 8.0.24 release.

The removed option instructed Connector/NET to ignore all calls to MySqlCommand.Prepare() that were made using the classic MySQL protocol. (Bug #31872906)
Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Diamondo25

79461720

Date: 2025-02-23 18:05:12
Score: 4
Natty: 4
Report link

اسم رب الأسرة رباعغ عدلي علي احمد بشارة ،تاريخ الميلاد17/11/1994 شمال دارفور الفاشر السكن/الحي النخيل الرقم الوطني 19209321512،الهاتف +24990524507 عدد أفراد الأسرة 2،زوجةحاملة نعم،عدداطفال أقل من6اشهر لايوجد،عدداطفال أقل من 5اشهر لايوجد ،رقم بنكك2798117 , إسم صاحب رقم الحساب عدلي علي احمد بشارة ،رقم وطني صاحب الحساب 19209321512

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Adli Ali

79461711

Date: 2025-02-23 18:02:10
Score: 6.5 🚩
Natty:
Report link

Any update on this? I am facing the same issue. Happens only for certain regions (numbers with certain country code - in my case Libyan numbers) and works as expected for numbers with other country codes.

Reasons:
  • Blacklisted phrase (1): update on this
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hamza Ali

79461699

Date: 2025-02-23 17:57:09
Score: 2
Natty:
Report link

There are multiple potential issues in the above code mentioned:

  1. The CAST syntax is incorrect:
WHERE CAST user_id = CAST(:tenantId AS uuid)

The correct syntax is as follows:

WHERE user_id = CAST(:tenantId AS uuid)
 OR
WHERE user_id::uuid = :tenantId::uuid
  1. The tenantId being a string:

Even if tenantId is indeed a valid uuid, it is coming from req.params, which is always a string in JavaScript. I would suggest you to validate the tenantId before passing it into the query by using regex or a npm package.

You can check the following links:

https://www.npmjs.com/package/uuid#uuidvalidatestr

How to test valid UUID/GUID?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Priyanka Bangarwa

79461688

Date: 2025-02-23 17:53:08
Score: 3
Natty:
Report link

Ctrl+Shift+X I just got to Mac OS M1 Pro Sequoia 15

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Иван 26rus

79461679

Date: 2025-02-23 17:50:08
Score: 1
Natty:
Report link

You can do this from the command line.

msinfo32.exe /report %TMP%\report.txt && type %TMP%\report.txt | findstr.exe /B /C:"Embedded Controller"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 5p0ng3b0b

79461676

Date: 2025-02-23 17:49:07
Score: 2
Natty:
Report link

IMPORTANT!! to whom has the issue insists, try to add standalone: false in the component instead of removing it at all then restart the run

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

79461660

Date: 2025-02-23 17:38:05
Score: 1.5
Natty:
Report link

It looks like the hostname or the port isn't inputted correctly.

Hostname error:

ssh: Could not resolve hostname haha: \335\362\356\362 \365\356\361\362 \35 5\345\350\347\342\345\361\362\345\355.

Port error

[21:53:23.150] Failed to parse remote port from server output

Make sure you put the ip address or the domain name of the server in correctly, otherwise it won't work.

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

79461657

Date: 2025-02-23 17:38:05
Score: 2.5
Natty:
Report link

I think I fix it its builder.spec:

requirements = python3, kivy, mediapipe, tensorflow, numpy, pillow

shiuld check the correct names of packages =) PIL is pillow, random docent exist etc.

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

79461643

Date: 2025-02-23 17:30:04
Score: 3.5
Natty:
Report link

Just Download and install "J-Link Software" for example version Jlink V7.22b

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

79461641

Date: 2025-02-23 17:28:03
Score: 0.5
Natty:
Report link

As per https://github.com/microsoft/vscode/issues/212296, this issue is OS agnostic. Downgrading to C# Dev Kit Extension version 1.5.20 worked for me, but later versions might work as well. This is on Windows 11.

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

79461636

Date: 2025-02-23 17:27:03
Score: 1
Natty:
Report link

Change this:

self.il = CTkButton(self,

to:

self.il = CTkButton(app,

Screenshot:

enter image description here

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

79461632

Date: 2025-02-23 17:24:02
Score: 1
Natty:
Report link

Yes, Airflow currently only supports SqlAlchemy <2.0. You can see here in the constraints they recommend using when installing Airflow.

To get around Airflow constraints, you can use the PythonVirtualEnvOperator or the ExternalPythonOperator.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: bcincy

79461622

Date: 2025-02-23 17:18:01
Score: 1
Natty:
Report link
import pytz

entry["serverTimeStamp"] = datetime.datetime.now(pytz.timezone('US/Eastern')).strftime('%Y-%m-%d %H:%M:%

Others would try it with this module. We use the pytz module to do them. The thing run

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

79461611

Date: 2025-02-23 17:12:00
Score: 2.5
Natty:
Report link

I was having this issue earlier today, but when I changed the call to model.fit() to verbose=0, it cleared the issue up. Clear all browser cache before execution, ensure you do not have the program variables displayed in your Chrome interface, and stick to verbose=0 setting.

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

79461610

Date: 2025-02-23 17:10:59
Score: 0.5
Natty:
Report link

You have a bug related to the matrix indices calculation when you accumulate the output values.

This line:

*(C + i * n) += *(A + i * n + k) * *(B + k * n + j);

Should be changed to:

//----------vvv-----------------------------------------
*(C + i * n + j) += *(A + i * n + k) * *(B + k * n + j);

I.e. you need to add the second index, exactly like you did when you zeroed the output elements before the innermost loop (*(C + i * n + j) = 0;).

Live demo

A side note:
In order to "catch" such bugs, it is recommended to use a debugger.
See: What is a debugger and how can it help me diagnose problems?.

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: wohlstad

79461605

Date: 2025-02-23 17:07:59
Score: 1
Natty:
Report link

include <stdio.h> #include <stdlib.h>

int main(int argc, char *argv[]) {

int num;
int smaller=0;

printf("Input integers: ");
scanf("%d", &num);

if (num<smaller) {
    printf("*** value %d is smaller than %d \n", num, smaller);
}
smaller=num;

return 0;

}

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

79461604

Date: 2025-02-23 17:07:59
Score: 2.5
Natty:
Report link

Since I do not have the reputation to comment yet, I would like to add that (at least) in my case the python code line in the (otherwise excellent) first answer

print("Hard Disk Model: %s" % model)

outputs a bytes object rather than a regular Unicode string; you might want to re-write this (and the following) line as

print(f"Hard Disk Model: {model.decode('utf-8')}")

Second, if called by a non-existant drive, an OSError 22 ("Invalid argument") is thrown when calling fcntl.ioctl. You might want to embed that part of the code in try/except.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I do not have the reputation to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: THN

79461601

Date: 2025-02-23 17:02:57
Score: 7.5 🚩
Natty:
Report link

Thank you so much for your help. More details are given below:

  1. No JavaScript Console Errors
  1. Data Attributes Appear in the Rendered HTML
  1. base.html Layout

base.html :

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" th:fragment="layout(content)"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head th:fragment="title">
    <meta charset="UTF-8">
    <title>StokSense</title>

    <!-- Bootstrap CSS -->
    <link rel="stylesheet"
          th:href="@{https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css}" />
    <!-- Bootstrap Icons -->
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
    <!-- Custom CSS -->
    <link rel="stylesheet" th:href="@{/css/custom.css}" />

    <style>
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
        body {
            display: flex;
            flex-direction: column;
        }
        main {
            flex: 1;
        }
    </style>
</head>

<body
        th:with="
    currentUser=
      ${(#authentication != null and #authentication.name != 'anonymousUser')
        ? @userService.findByEmail(#authentication.name)
        : null}
  "
        th:classappend="${currentUser != null and currentUser.theme=='dark'} ? ' dark-mode' : ''"
>

<!-- NAVBAR -->
<header th:fragment="header">
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container-fluid">
            <!-- Logo -->
            <a class="navbar-brand" th:href="@{/}">
                <i class="bi bi-box-seam me-1"></i> StokSense
            </a>
            <button class="navbar-toggler" type="button"
                    data-bs-toggle="collapse"
                    data-bs-target="#navbarNav"
                    aria-controls="navbarNav"
                    aria-expanded="false"
                    aria-label="Menu">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <!-- Ürünler -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.products}" th:href="@{/products}"></a>
                    </li>
                    <!-- Kategoriler -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.categories}" th:href="@{/categories}"></a>
                    </li>
                    <!-- Satın Alma -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.purchases}" th:href="@{/purchases}"></a>
                    </li>
                    <!-- Tedarikçiler -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.suppliers}" th:href="@{/suppliers}"></a>
                    </li>
                    <!-- Müşteriler -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.customers}" th:href="@{/customers}"></a>
                    </li>
                    <!-- Satış -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.sales}" th:href="@{/sales}"></a>
                    </li>
                    <!-- Raporlar -->
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" th:text="#{menu.reports}" th:href="@{/reports}"></a>
                    </li>
                    <!-- Admin Panel -->
                    <li class="nav-item" sec:authorize="hasRole('ADMIN')">
                        <a class="nav-link" th:text="#{menu.adminPanel}" th:href="@{/admin/index}"></a>
                    </li>
                    <!-- Forecast -->
                    <li class="nav-item" sec:authorize="hasRole('ADMIN') or hasRole('PREMIUM')">
                        <a class="nav-link" th:text="#{menu.forecast}" th:href="@{/premium/forecast}"></a>
                    </li>
                    <!-- Kullanıcı Panelim -->
                    <li class="nav-item" sec:authorize="hasAnyRole('STANDARD','PREMIUM')">
                        <a class="nav-link" th:text="#{menu.dashboard}" th:href="@{/user/dashboard}"></a>
                    </li>
                    <!-- Plan Yükselt -->
                    <li class="nav-item" sec:authorize="hasRole('STANDARD')">
                        <a class="nav-link" th:text="#{menu.planUpgrade}" th:href="@{/user/plans}"></a>
                    </li>
                </ul>

                <!-- Sağ kısım (Giriş / Profil) -->
                <ul class="navbar-nav ms-auto">
                    <!-- Giriş -->
                    <li class="nav-item" sec:authorize="!isAuthenticated()">
                        <a class="nav-link" th:href="@{/login}" th:text="#{menu.login}"></a>
                    </li>
                    <!-- Kayıt -->
                    <li class="nav-item" sec:authorize="!isAuthenticated()">
                        <a class="nav-link" th:href="@{/register}" th:text="#{menu.register}"></a>
                    </li>

                    <!-- Dil Seçimi (icon ekledik) -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle"
                           href="#"
                           role="button"
                           data-bs-toggle="dropdown"
                           aria-expanded="false">
                            <i class="bi bi-translate me-1"></i>
                            Dil Seçenekleri
                        </a>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li>
                                <a class="dropdown-item" href="?lang=tr">Türkçe</a>
                            </li>
                            <li>
                                <a class="dropdown-item" href="?lang=en">English</a>
                            </li>
                        </ul>
                    </li>

                    <!-- Profil Dropdown (giriş yapmış) -->
                    <li class="nav-item dropdown" sec:authorize="isAuthenticated()">
                        <a class="nav-link dropdown-toggle" href="#"
                           role="button" data-bs-toggle="dropdown"
                           aria-expanded="false"
                           th:text="#{menu.profile}"></a>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li>
                                <a class="dropdown-item" th:href="@{/profile}">
                                    <i class="bi bi-gear-wide-connected me-1"></i>
                                    [[#{menu.profile}]]
                                </a>
                            </li>
                            <li>
                                <form th:action="@{/logout}" method="post" class="m-0">
                                    <button class="dropdown-item" type="submit">
                                        <i class="bi bi-box-arrow-right me-1"></i>
                                        [[#{menu.logout}]]
                                    </button>
                                </form>
                            </li>
                        </ul>
                    </li>
                </ul>

            </div>
        </div>
    </nav>
</header>

<main>

    <div th:replace="${content}"></div>
</main>

<!-- FOOTER -->
<footer class="bg-light text-center text-lg-start mt-5" th:fragment="footer">
    <div class="text-center p-3">
        [[#{footer.copyright}]]
    </div>
</footer>

<!-- Bootstrap JS -->
<script th:src="@{https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js}"></script>

</body>
</html>

4. Order Form Template

order-form.html :

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Ön Sipariş Oluştur - Naaaa</title>

</head>
<body th:replace="~{base :: layout(~{::content})}">


<div th:fragment="content" class="container mt-4">
    <h2>Ön Sipariş Oluştur</h2>

    <!-- Basit form (Spring MVC) -> method="post" -->
    <form th:action="@{/orders/save}"
          th:object="${order}"
          method="post"
          class="needs-validation"
          novalidate>

        <!-- Sipariş ID (hidden) -->
        <input type="hidden" th:field="*{id}" />

        <!-- Müşteri Seçimi -->
        <div class="mb-3">
            <label for="customerSelect" class="form-label">Müşteri Seçiniz</label>
            <select id="customerSelect"
                    th:field="*{customer.id}"
                    class="form-select"
                    required>
                <option value="" disabled selected>Seçiniz</option>
                <option th:each="c : ${customers}"
                        th:value="${c.id}"
                        th:text="${c.name}">
                </option>
            </select>
            <div class="invalid-feedback">Lütfen bir müşteri seçiniz.</div>
        </div>

        <!-- Ürün Seçimi -->
        <div class="mb-3">
            <label for="productSelect" class="form-label">Ürün Seçiniz</label>
            <select id="productSelect"
                    th:field="*{product.id}"
                    class="form-select"
                    required>
                <option value="" disabled selected>Seçiniz</option>
                <!--
                  data-price: Her ürünün "price" değerini HTML5 data attribute olarak tutuyoruz.
                  Seçilen üründe bu attribute'u JS ile okuyup "Net Birim Fiyat" alanına set edeceğiz.
                -->
                <option th:each="p : ${products}"
                        th:value="${p.id}"
                        th:attr="data-price=${p.price}"
                        th:text="${p.name}">
                </option>
            </select>
            <div class="invalid-feedback">Lütfen bir ürün seçiniz.</div>
        </div>

        <!-- Net Birim Fiyat -->
        <div class="mb-3">
            <label for="netUnitPrice" class="form-label">Net Birim Fiyat</label>
            <input type="number"
                   step="0.01"
                   th:field="*{netUnitPrice}"
                   class="form-control"
                   id="netUnitPrice"
                   placeholder="The price of the selected product will appear automatically"
                   required />
            <div class="invalid-feedback">Net birim fiyat alanı zorunlu.</div>
        </div>


        <div class="mb-3">
            <label for="taxRate" class="form-label">Vergi Oranı</label>
            <input type="number"
                   step="0.01"
                   th:field="*{taxRate}"
                   class="form-control"
                   id="taxRate"
                   placeholder="0.18 => %18"
                   required />
            <div class="invalid-feedback">Lütfen geçerli bir vergi oranı giriniz.</div>
        </div>

        <!-- Miktar -->
        <div class="mb-3">
            <label for="quantity" class="form-label">Miktar (Adet)</label>
            <input type="number"
                   th:field="*{quantity}"
                   class="form-control"
                   id="quantity"
                   value="1"
                   min="1"
                   required />
            <div class="invalid-feedback">En az 1 adet olmalıdır.</div>
        </div>

      
        <button type="submit" class="btn btn-primary">Kaydet</button>
        <a th:href="@{/orders/my}" class="btn btn-secondary">İptal</a>
    </form>
</div> 

<!-- JS (Bootstrap ve script) -->
<script th:src="@{https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js}"></script>
<script>
    
    (function () {
        'use strict';
        const forms = document.querySelectorAll('.needs-validation');
        Array.from(forms).forEach(form => {
            form.addEventListener('submit', function (event) {
                if (!form.checkValidity()) {
                    event.preventDefault();
                    event.stopPropagation();
                }
                form.classList.add('was-validated');
            }, false);
        });
    })();

    
    document.addEventListener('DOMContentLoaded', function() {
        const productSelect = document.getElementById('productSelect');
        const netPriceInput = document.getElementById('netUnitPrice');

        productSelect.addEventListener('change', function() {
           
            const selectedOption = productSelect.options[productSelect.selectedIndex];
           
            const price = selectedOption.getAttribute('data-price');
            
            if (price) {
                netPriceInput.value = price;
            }
        });
    });
</script>
</body>
</html>

5. Behavior Observed

6. Browser / Tools

Maybe you want to see it;

OrderController.java :

package com.stoksense.controller;

import com.stoksense.model.*;
import com.stoksense.service.*;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDateTime;
import java.util.List;


@Controller
@RequestMapping("/orders")
public class OrderController {

    private final OrderService orderService;
    private final ProductService productService;
    private final CustomerService customerService;
    private final UserService userService;
    private final SaleService saleService;

    public OrderController(OrderService orderService,
                           ProductService productService,
                           CustomerService customerService,
                           UserService userService,
                           SaleService saleService) {
        this.orderService = orderService;
        this.productService = productService;
        this.customerService = customerService;
        this.userService = userService;
        this.saleService = saleService;
    }


    @GetMapping("/my")
    public String myOrders(Authentication auth, Model model) {
        User user = userService.findByEmail(auth.getName());
        if (user == null) {
            return "redirect:/login?notAllowed";
        }
        // Customer
        Customer cust = customerService.findByEmail(user.getEmail());
        if (cust == null) {
            model.addAttribute("orders", List.of());
            return "orders/my-orders";
        }
        // siparişleri al
        List<Order> orders = orderService.getOrdersByCustomer(cust);
        model.addAttribute("orders", orders);
        return "orders/my-orders";
    }


    @GetMapping("/add")
    public String showAddOrderForm(Model model, Authentication auth) {
        Order order = new Order();
        order.setOrderDate(LocalDateTime.now());
        order.setStatus(OrderStatus.PENDING);

        // Giriş yapan user => Customer
        User user = userService.findByEmail(auth.getName());
        if (user != null) {
            Customer c = customerService.findByEmail(user.getEmail());
            if (c != null) {
                order.setCustomer(c);
            }
          
            List<Product> userProducts = productService.getAllProductsByEmail(user.getEmail());
            model.addAttribute("products", userProducts);
        } else {
            model.addAttribute("products", List.of());
        }

        
        model.addAttribute("customers", customerService.getAllCustomers());
        model.addAttribute("order", order);

        return "orders/order-form"; // templates/orders/order-form.html
    }


    @PostMapping("/save")
    public String saveOrder(@ModelAttribute("order") Order order,
                            Authentication auth) {

        User user = userService.findByEmail(auth.getName());
        if (user == null) {
            return "redirect:/login?notAllowed";
        }

        // Müşteri atanmamışsa
        if (order.getCustomer() == null || order.getCustomer().getId() == null) {
            Customer c = customerService.findByEmail(user.getEmail());
            if (c == null) {
                return "redirect:/orders/my?noCustomer";
            }
            order.setCustomer(c);
        }

        // Ürün stok kontrol & stok düş
        if (order.getProduct() != null && order.getProduct().getId() != null) {
            Product p = productService.getProductById(order.getProduct().getId()).orElse(null);
            if (p == null) {
                return "redirect:/orders/my?productNotFound";
            }
            if (p.getStockQuantity() < order.getQuantity()) {
                return "redirect:/orders/my?insufficientStock";
            }
            p.setStockQuantity(p.getStockQuantity() - order.getQuantity());
            productService.saveProduct(p);

            // netUnitPrice boşsa => product.price
            if (order.getNetUnitPrice() == null || order.getNetUnitPrice() == 0) {
                order.setNetUnitPrice(p.getPrice());
            }
        }

        // totalAmount
        double net = (order.getNetUnitPrice() != null) ? order.getNetUnitPrice() : 0;
        double tax = (order.getTaxRate() != null) ? order.getTaxRate() : 0;
        int qty = (order.getQuantity() != null) ? order.getQuantity() : 1;
        double total = (net * qty) * (1 + tax);
        order.setTotalAmount(total);

        // Durum => PENDING
        if (order.getStatus() == null) {
            order.setStatus(OrderStatus.PENDING);
        }

        orderService.save(order);
        return "redirect:/orders/my?created";
    }


    @GetMapping("/complete/{id}")
    public String completeOrder(@PathVariable("id") Long id, Authentication auth) {
        Order order = orderService.getOrderById(id);
        if (order == null) {
            return "redirect:/orders/my?notfound";
        }
        User user = userService.findByEmail(auth.getName());
        if (user == null) {
            return "redirect:/login?error";
        }
        Customer cust = customerService.findByEmail(user.getEmail());
        if (cust == null || !order.getCustomer().getId().equals(cust.getId())) {
            return "redirect:/orders/my?unauthorized";
        }

        if (order.getStatus() != OrderStatus.CONFIRMED) {
            order.setStatus(OrderStatus.CONFIRMED);
            orderService.save(order);

            // Satışa dönüştür
            saleService.createSaleFromOrder(order);
        }

        return "redirect:/orders/my?completed";
    }

}

ProductController.java :

package com.stoksense.controller;

import com.stoksense.model.Product;
import com.stoksense.service.CategoryService;
import com.stoksense.service.ProductService;
import com.stoksense.service.UserService;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Controller
@RequestMapping("/products")
public class ProductController {

    private final ProductService productService;
    private final UserService userService;
    private final CategoryService categoryService;

    public ProductController(ProductService productService,
                             UserService userService,
                             CategoryService categoryService) {
        this.productService = productService;
        this.userService = userService;
        this.categoryService = categoryService;
    }

    @GetMapping
    public String listProducts(@RequestParam(value = "search", required = false) String search,
                               Model model,
                               Authentication authentication) {
        // Eskisi gibi ürün liste mantığı
        if (authentication == null) {
            model.addAttribute("products", List.of());
            return "product-list";
        }
        String email = authentication.getName();
        var products = productService.getAllProductsByEmail(email);

        if (search != null && !search.trim().isEmpty()) {
            String lower = search.trim().toLowerCase();
            products = products.stream()
                    .filter(p -> p.getName() != null &&
                            p.getName().toLowerCase().contains(lower))
                    .toList();
            model.addAttribute("search", search);
        }

        long totalUserProducts = productService.countAllProductsByEmail(email);
        long totalStock = products.stream().mapToLong(Product::getStockQuantity).sum();
        double averagePrice = 0.0;
        if (!products.isEmpty()) {
            double sumPrices = products.stream()
                    .mapToDouble(p -> (p.getPrice() != null ? p.getPrice() : 0.0))
                    .sum();
            averagePrice = sumPrices / products.size();
        }

        model.addAttribute("products", products);
        model.addAttribute("totalUserProducts", totalUserProducts);
        model.addAttribute("totalStock", totalStock);
        model.addAttribute("averagePrice", averagePrice);

        return "product-list";
    }

    /**
     * GET /products/add
     * Yeni ürün ekleme formu (Kategorileri de modele ekleyelim).
     */
    @GetMapping("/add")
    public String showAddProductForm(Model model, Authentication authentication) {
        model.addAttribute("product", new Product());

        // Kullanıcının kategorilerini bul
        if (authentication != null) {
            var user = userService.findByEmail(authentication.getName());
            if (user != null) {
                // Tüm kategoriler
                var categories = categoryService.getAllCategoriesByEmail(user.getEmail());
                model.addAttribute("categories", categories);
            } else {
                model.addAttribute("categories", List.of());
            }
        } else {
            model.addAttribute("categories", List.of());
        }

        return "product-form";
    }

    @PostMapping("/save")
    public String saveProduct(@ModelAttribute("product") Product product,
                              Authentication authentication) {

        if (authentication != null) {
            var user = userService.findByEmail(authentication.getName());
            product.setOwner(user);
        }

        productService.saveProduct(product);
        return "redirect:/products?success";
    }

    /**
     * GET /products/edit/{id}
     * Düzenleme formu (Kategori listesi de ekleyelim).
     */
    @GetMapping("/edit/{id}")
    public String showEditProductForm(@PathVariable("id") Long id,
                                      Model model,
                                      Authentication authentication) {
        var opt = productService.getProductById(id);
        if (opt.isEmpty()) {
            return "redirect:/products?notfound";
        }
        Product product = opt.get();
        model.addAttribute("product", product);

        // Kullanıcının kategorilerini bul
        if (authentication != null) {
            var user = userService.findByEmail(authentication.getName());
            if (user != null) {
                var categories = categoryService.getAllCategoriesByEmail(user.getEmail());
                model.addAttribute("categories", categories);
            } else {
                model.addAttribute("categories", List.of());
            }
        } else {
            model.addAttribute("categories", List.of());
        }

        return "product-form";
    }

    @GetMapping("/delete/{id}")
    public String deleteProduct(@PathVariable("id") Long id) {
        productService.deleteProduct(id);
        return "redirect:/products?deleted";
    }

    @GetMapping("/bulk-update")
    public String showBulkUpdateForm(Model model, Authentication authentication) {
        if (authentication == null) {
            model.addAttribute("products", List.of());
            return "bulk-update";
        }
        var user = userService.findByEmail(authentication.getName());
        var products = productService.getAllProductsByEmail(user.getEmail());
        model.addAttribute("products", products);
        return "bulk-update";
    }

    @PostMapping("/bulk-update")
    public String processBulkUpdate(@RequestParam("productIds") List<Long> productIds,
                                    @RequestParam("newStock") List<Integer> newStockValues) {
        for (int i = 0; i < productIds.size(); i++) {
            productService.updateStockQuantity(productIds.get(i), newStockValues.get(i));
        }
        return "redirect:/products?bulkUpdated";
    }
}

Thank you very much in advance for your help, if there is anything else you would like to see, please let me know.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): no luck
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (3): Thank you very much in advance
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rosicky

79461600

Date: 2025-02-23 17:02:57
Score: 1
Natty:
Report link

In my case, if you create a nested project with a parent project that has several dependencies installed. Make sure that the dependences are not shared with the child folder (where package.json from the cloud function is used). Internally, your project may not have errors, but when deployed, sharing dependencies will affect cloud functions. shared dep

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: Nanda Z

79461595

Date: 2025-02-23 17:00:56
Score: 0.5
Natty:
Report link

Inside android/gradle.properties, change newArchEnabled=true to newArchEnabled=false

Once try this: if works: well and good. if not turn back the false to true :)

Reasons:
  • Whitelisted phrase (-2): try this:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chirayu Batra

79461593

Date: 2025-02-23 16:59:56
Score: 1
Natty:
Report link

The idea is to pick an image from your phone, convert it to a format MongoDB can store, and upload it. If you're using a different mobile framework or driver (like for Swift or Kotlin)

Set Up Your MongoDB Connection then Pick an Image from the Phone after that Store the Image in MongoDB and then Put It All Together

BSON documents (including all fields) can’t exceed 16MB. If your JPEG/PNG is close to this, test it to ensure the whole document (with metadata) fits. For larger files, you’d need GridFS, but I don't think it is required here although that is more complex.

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

79461586

Date: 2025-02-23 16:55:55
Score: 5.5
Natty: 5
Report link

I don't have enough reputation to comment. As another person said, I also resolved this problem on Thonny/Pico by removing "freq = 40000' from the I2C object statement.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Charles Brombaugh

79461581

Date: 2025-02-23 16:54:54
Score: 7.5 🚩
Natty: 5
Report link

I'm having the same issue but with C#. Should I assume that this isn't a bug, but that it's just not supported yet in the C# extension?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: yaz

79461572

Date: 2025-02-23 16:49:53
Score: 5.5
Natty: 4.5
Report link

I am facing the same problem. en_US language works fine. My template is in another language, approved by Meta for the test given telephone number. The issue should be for the demo telephone number is tight to the English (en_US) language.

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Carlos Mendez Comas

79461564

Date: 2025-02-23 16:45:52
Score: 2.5
Natty:
Report link

One workaround is dynamically renaming the exported sheet name using Apps Script.

However "{bookname} - " will remain.

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

79461559

Date: 2025-02-23 16:42:51
Score: 1
Natty:
Report link

../android/settings.gradle

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "8.3.2" apply false
    id "org.jetbrains.kotlin.android" version "1.9.24" apply false
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hammad Khan

79461557

Date: 2025-02-23 16:41:51
Score: 1
Natty:
Report link

I encountered the same problem then I updated my yfinance using the following command pip install --upgrade yfinance to 0.2.54 and it worked

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arash Mohamadpour

79461556

Date: 2025-02-23 16:39:50
Score: 2
Natty:
Report link

Well, I managed to do what I wanted. Basically it's a pie chart, and when you click on a slice, it is replaced by its children and a transition is triggered to squish the parents and remove them from the pie.

Here is the solution I made, it works well and the code is (too) thoroughly commented.

enter image description here

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

79461555

Date: 2025-02-23 16:39:50
Score: 2
Natty:
Report link

The client does use javascript. Install the @hapi/nes in your frontend and make sure you import it like this import Nes from "@hapi/nes/lib/client and it will work

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

79461554

Date: 2025-02-23 16:38:50
Score: 0.5
Natty:
Report link

there is less experience with FHIR R5 than there is with FHIR R4. With FHIR R4, IHE has a very helpful Implementation Guide for use of AuditEvent - https://profiles.ihe.net/ITI/BALP/index.html

When we tried to update BALP to R5, as an experiment, we found that somethings were not possible anymore, so we put in jira tickets to make R6 better again.

That said, Here is my response to your questions.

  1. The IP address where the user is, can be represented in the .agent that holds the user identity; with the IP address encoded in the .agent.networkString. If you have a hostname, that would be the string. If you don't have a hostname, then the IP address is encoded in numeric "Literal address form using square brackets '[]' as a v4 string (in dotted notation), or v6 string (in colon notation)." Quoted from the AuditEvent.agent.network[x] requirements. You would use networkURL if you know more about the IP address, such as the network protocol (e.g. http) being used.

  2. The country from which the user is connecting from, would tend to be part of the Resource used to describe the user, if it is a characteristic of the user. Such as Patient.address, Practitioner.address, PractitionerRole.location, etc. (Noting that all users regardless of their medical credentials are Practitioners. Practitioner is not limited to clinical users. When the location is more dynamic, then it would go into the .agent.location.

  3. In R4 there is an agent.network.type. We looked at the possibilities and realized that when we move the network.address into a URL format, then the protocol on the URL format would indicate the type of network address. This works really well for servers, but as you point out the client of a web address could be anything. However the historic network.type was about protocol not kind of client. If you need to know this level of detail, I would recommend you record it as another .agent using the Device resource in the .agent.who.

Most of the time in FHIR contained resources are discouraged, but recording AuditEvents tend to be one place where one would use a contained resource WHEN there is not a persisted resource (Practitioner, Location, etc) for that agent. It is better to record facts than lose them due to not having a persisted agent resource defined.

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

79461551

Date: 2025-02-23 16:34:48
Score: 7 🚩
Natty: 5.5
Report link

Файл написан кириллицей та же ошибка, надо переименовать в латиницу

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Роман Сергеев

79461550

Date: 2025-02-23 16:34:48
Score: 3.5
Natty:
Report link

macos (in the relevant dir.): ./paclient -verbose

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

79461549

Date: 2025-02-23 16:34:48
Score: 5
Natty: 5.5
Report link

Anyone now if it is possible to get the click callback link on this windows toast notification ?

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

79461548

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

For some reason the SignalR didn't deserialize the object I was passing from the hub to my Blazor app properly, so my subscription didn't recognize it. I'm not sure why this only happens when I run Blazor in a container, but that's what I found. It could be related to the fact that the object had the JsonPropertyName attribute on all of its properties, but I'm not really sure, but this object was from a third party library, so I don't have any control over it. I ended up using Newtonsoft to manually serialize the object on the hub and then manually deserialize it on Blazor. That way the hub and client are only dealing with a string. This fixed my problem.

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

79461543

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

I may be late but I tried different approaches but the best I could do is solve it manuelly simply using useState:

const [isSubMenuOpen, setIsSubMenuOpen] = useState(true);

   <SubMenu
      open={isSubMenuOpen}
      onOpenChange={() => setIsSubMenuOpen(true)} 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roland Exauce

79461540

Date: 2025-02-23 16:29:47
Score: 2
Natty:
Report link

they're using YAML to make your life difficult when you want to add fonts or something like this. sometimes you will waste 15 minutes with the indentation which is counter productive tbh.

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

79461538

Date: 2025-02-23 16:27:46
Score: 4
Natty: 4.5
Report link

Here's a nice description from Microsoft on that topic: https://learn.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/set-up-vb-project-using-class

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

79461537

Date: 2025-02-23 16:27:46
Score: 2
Natty:
Report link

It appears to be a bug in Discord. If you do a interaction.response.send_message in your on_submit function, the window behaves correctly. But if you do an interaction.channel.send instead, you get this error.

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

79461536

Date: 2025-02-23 16:26:46
Score: 2.5
Natty:
Report link

boss why had you done this It was like a Ray of light for me and at the end it was like bald man giving's reflection of torch light Which means i am again at the start line

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hastar2.0 again

79461531

Date: 2025-02-23 16:23:45
Score: 3.5
Natty:
Report link

Answering my own question here, you have to use UIFindInteraction

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

79461530

Date: 2025-02-23 16:22:45
Score: 3
Natty:
Report link

I think your id datatype have an issue use datatype BIGINT UNSIGNED which id you want to make for foreignkey

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

79461518

Date: 2025-02-23 16:17:44
Score: 1.5
Natty:
Report link

In playwright.config.ts file, need to provide path of "chrome.exe" from program files. Update the code like below,

projects: [ { name: 'chromium', use: { browserName: 'chromium', launchOptions: { executablePath: 'C:\Program Files\Google\Chrome\Application\chrome.exe' } } } ]

This issue occurs due the by default it was unable to find the chrome.exe file.

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

79461507

Date: 2025-02-23 16:12:43
Score: 1.5
Natty:
Report link

You cannot override the route. But you can add a suffix or additional parameters to differentiate.

i.e. /some-page /some-page/{id]

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

79461503

Date: 2025-02-23 16:09:42
Score: 1.5
Natty:
Report link

If you change the Culture after a page is rendered, or the app is running with i.e. StreamRendering, you should force a reload of the page. Best way to is to trigger a javascript page reload event, or using Navigation

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

79461498

Date: 2025-02-23 16:06:41
Score: 7.5 🚩
Natty: 6
Report link

Sorry, no answer, but I am having a similar problem. I am trying to use adafruit-blinka on a Pi Zero W. Starting from a clean SD card I have installed the Rpi OS and I have done a manual blinky install as documented by Adafruit.

I am using a virtual environment. If I run a python3 "shell" then import board and dir(board) seem to work just fine.

If I create a python script containing "import board" it fails reporting "module board not found".

Any Clues, Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Blacklisted phrase (1): I am having a similar problem
  • Blacklisted phrase (1): I am trying to
  • No code block (0.5):
  • Me too answer (2.5): I am having a similar problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: David Whiteley

79461483

Date: 2025-02-23 15:56:39
Score: 3
Natty:
Report link

I have the same too, you can try changing the Elastic IP, I reassociated it with a new Elastic IP, and the problem was solved

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

79461478

Date: 2025-02-23 15:50:37
Score: 3.5
Natty:
Report link

The redis client will automatically calculate

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

79461466

Date: 2025-02-23 15:34:35
Score: 3
Natty:
Report link

It's now 2025 and this issue is occurring for me. The Google Chrome process is eating up 11 of 16GB of RAM and 60-80% CPU on my local machine. I am running a very small dataset (700 x 9 dataframe) through a small Dense model (3 layers, 1,380 total parameters). I am creating 522 models, executing 300 epochs each but with early dropout of 2 each model executes for about 30 epochs on average. Each model runs only sequentially through this small model, so it doesn't make sense to me that this many local resources are being used up. Happens whether I clear cache from the browser or not. I am running on a Windows machine with Intel i7 8th gen CPU, with a Nvidia Geforce GTX GPU (the gpu is not being used by Chrome, which makes sense). Screen shot attached. If anyone has any ideas, it would be appreciated.

Screen shot of Colab

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): any ideas
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: J S

79461465

Date: 2025-02-23 15:33:34
Score: 2.5
Natty:
Report link

execute the RUN commands as below,have did it for diffusers lib RUN python3 -m pip install <module_name>

Ex. RUN python3 -m pip install diffusers

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

79461460

Date: 2025-02-23 15:28:33
Score: 1
Natty:
Report link

it's help me a lot to config angular 19 ssr on Cpanel . Thank you !

import express from 'express';
import fs from 'fs';
import path from 'path';
import { createApp as createAppRo } from './dist/folder/server/ro/server.mjs';
import { createApp as createAppEn } from './dist/folder/server/en/server.mjs';
import { createApp as createAppRu } from './dist/folder/server/ru/server.mjs';

const logFile = fs.createWriteStream(path.join(process.cwd(), 'server.log'), { flags: 'a' });

const originalLog = console.log;
console.log = function() {
    logFile.write(new Date().toISOString() + ': ' + Array.from(arguments).join(' ') + '\n');
    originalLog.apply(console, arguments);
};

const mainApp = express();



mainApp.use('/en', (req, res, next) => {
    console.log('Accessing English route');
    createAppEn('en')(req, res, next);  
});

mainApp.use('/ru', (req, res, next) => {
    console.log('Accessing Russian route');
    createAppRu('ru')(req, res, next);  
});


mainApp.use('/', (req, res, next) => {
    console.log('Accessing root route (RO)');
    createAppRo('ro')(req, res, next);  
});



const port = process.env.PORT || 3000;
mainApp.listen(port, () => {
    console.log(`Node Express server listening on http://localhost:${port}`);
});

export default mainApp;
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexandru Dabija

79461457

Date: 2025-02-23 15:24:33
Score: 1
Natty:
Report link

Do you need to use that specific library? You can achieve similar functionality with built-in modules:

import sys, select
i, _, _ = select.select([sys.stdin], [], [], 5)
print(f"Input: {sys.stdin.readline().strip()}") if i else print("No input given")

This will wait for user input for 5 seconds, but requires you to press the enter key to confirm your input, in which case it will also end the timer early.

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

79461437

Date: 2025-02-23 15:13:31
Score: 2.5
Natty:
Report link

I had this happen to me once when I had accidently pressed CTRL+F with the console focused. (Began search)
I had three letters 'orz' in the Filter, so it appeared as if I had no logs, but they were just being filtered.

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

79461422

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

To the best of my knowledge you're following Mosh's React 18 for Beginners tutorial and he is using v2 of Chakra UI which is different from Chakra UI v3.

I'd recommend that you install Chakra UI v2 to ensure code compatibility :)

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

79461407

Date: 2025-02-23 14:49:26
Score: 1
Natty:
Report link
<UModal v-model="isOpen" :ui="{ width: 'w-[50%] sm:max-w-none' }">
  <!-- modal content -->
</UModal>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chris Wong

79461400

Date: 2025-02-23 14:45:25
Score: 1.5
Natty:
Report link

So I basically solved it by not having a top bar in the Scaffold component. If anyone stumbles upon this issue, just try to remove your topBar from the Scaffold.

P.S. In the original code, you don't see a topBar because I removed the code that I thought was unnecessary, in this case the top bar and the bottom bar. Who knew that the top bar was the culprit? This is most likely a Compose bug. Anyway, I hope anyone that finds this exact issue will be able to solve it with this workaround.

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

79461397

Date: 2025-02-23 14:43:24
Score: 0.5
Natty:
Report link

In Laravel 11, you can chain both prefix() and middleware() methods before defining your route group. Here's how to achieve the same behavior as the previous version's array syntax:

Route::prefix('post')->middleware('auth')->group(function () {
    Route::get('all', [Controller::class, 'post']);
    Route::get('user', [Controller::class, 'post']);
});

For multiple middleware:

Route::middleware(['auth', 'admin'])
     ->prefix('admin')
     ->group(function () {
         // Your routes here
     });

You can also chain other route group features:

Route::prefix('api')
     ->middleware('api')
     ->domain('api.example.com')
     ->name('api.')
     ->group(function () {
         // Your API routes
     });

This fluent interface approach is the recommended way in Laravel 11 for grouping routes with shared configuration. The old array-based syntax has been deprecated in favor of this more readable method chaining syntax.

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Labib Ahmed

79461393

Date: 2025-02-23 14:39:24
Score: 2.5
Natty:
Report link

Go to File > Settings > Editor > Inspection Settings > Inspection Severity > Other Languages and uncheck Proofreading option.

JetBrains Rider Proofreading Options

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Namık Kemal KARASU

79461386

Date: 2025-02-23 14:29:21
Score: 6.5 🚩
Natty:
Report link

I hope everyone is fine. I also searched on stackoverflow but couldn't find it. Or maybe I didn't call correctly. I cannot send the reordering here to the back-end. I added SS. I would be very happy if you could help. I couldn't find where I made a mistake.

I added ss

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): you could help
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: İbrahim OKUYUCU