79462555

Date: 2025-02-24 05:53:32
Score: 1
Natty:
Report link

Can you try by adding correct permission to the user from admin console first?

admin/manage/identity/ is the correct permission.

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: Siluni Pathirana

79462552

Date: 2025-02-24 05:51:31
Score: 0.5
Natty:
Report link

Are you sure you are setting up the branch name correctly, as i take the same 2 files as they are and added them to a test repo i have and just changed the branche name to master as this is my branch name and it worked

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

79462548

Date: 2025-02-24 05:48:31
Score: 2
Natty:
Report link

If you're looking for a solution to root detection and Frida bypass detection, I have implemented a plugin that can detect Frida Runtime Instrumentation (open ports, injected libraries, running processes).

You might find cordova-plugin-rootguard useful. Let me know if you have any questions!

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

79462543

Date: 2025-02-24 05:45:30
Score: 1.5
Natty:
Report link

If the OWASP Dependency-Track dashboard is empty, it could be due to several reasons:

  1. No Dependencies Uploaded: Ensure that you’ve uploaded your project’s dependency data (e.g., BOM files) into Dependency-Track for analysis.

  2. Incorrect Configuration: Double-check your project settings and integrations to ensure they're properly set up.

  3. Data Processing Delay: It could be a temporary issue where the system is still processing the data or there was an error during the process.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tech Establishment Team

79462539

Date: 2025-02-24 05:41:30
Score: 3
Natty:
Report link

I got this same warning from a blank Kotlin project from a most recently installed Android Studio.

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

79462536

Date: 2025-02-24 05:36:28
Score: 1
Natty:
Report link

the bootstrap package do not add custom html afaik. it adds simply bootstrap classes to anchors.

<a class="btn btn-success" href="t3://page?uid=8">test</a>

this can be done via the config.yaml of your ckeditor config in the styles section.

see https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Examples.html (edited)

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

79462533

Date: 2025-02-24 05:35:28
Score: 1
Natty:
Report link

I changed the model to not include cross effects as that was what was causing the singularities. Here is what I changed.

lm.price.new1 <- lm(price ~ bedrooms + bathrooms + sqft_living + sqft_lot + floors +
                     waterfront + view + condition + grade, data = kc_house_data)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: stella1897

79462531

Date: 2025-02-24 05:35:28
Score: 0.5
Natty:
Report link

I have done this before as follows

Add a column between A and B set B2 to equal "=if(A2="",B1,A2)" Fill down and hide the column.

In what is now E2 (Total) the following formula should work "=SUMIFS(E2:E15,B2:B15,A2,C2:C15,"Adjustment")"

I get the following

Result

Remember to hide column B I hope this helps

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kudapucat

79462526

Date: 2025-02-24 05:32:28
Score: 0.5
Natty:
Report link

Happiness is built on a strong foundation of essential pillars that contribute to overall well-being and fulfillment. The key pillars of happiness include mental well-being, where a positive mindset and self-awareness help navigate life’s challenges; physical health, which involves regular exercise, balanced nutrition, and proper rest; meaningful relationships, as strong connections with family, friends, and community foster emotional support and joy; personal growth, through continuous learning, goal-setting, and self-improvement; and purpose, where aligning daily actions with values and passions brings deeper satisfaction. At IILIFE, we believe that by nurturing these pillars, individuals can create a more balanced and fulfilling life. Discover more insights on happiness and personal growth at IILIFE. For Java development, automating the installation of JDK for Windows within a Java program can be done using scripting and package managers like Chocolatey or leveraging API-based downloads. This ensures a seamless setup for developers.

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

79462523

Date: 2025-02-24 05:30:27
Score: 1
Natty:
Report link

you can try to use append query in PQ to combine three tables into one. Then you can build the visuals based on the combined table.

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Ryan

79462521

Date: 2025-02-24 05:30:27
Score: 1
Natty:
Report link

There is no way to update the message as console.log does not return any id/reference or in-built method that we can use. You can find a workaround using clear method that console provide.

function logMessage(message) {
    console.clear()  
    console.log(message)  
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ashutosh nanaware

79462516

Date: 2025-02-24 05:24:26
Score: 2.5
Natty:
Report link

RUN cp -r apps/client/.next/static/* apps/client/.next/standalone**/public**/_next/static

public 을 제거하고 사용해보세요. 해결이 되셨으면 좋겠습니다

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

79462491

Date: 2025-02-24 05:06:23
Score: 3
Natty:
Report link

try this website

do copy and paste into Ms word.

this is example: python js

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

79462488

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

The key issue is that my in-app purchase products won’t become active until I’ve completed the Paid Apps Agreement (along with any required banking and tax information). Once that agreement is fully in place, my products should move out of the “Developer Action Needed” state.

Here are a few steps I followed:

By focusing on these steps, especially completing the Paid Apps Agreement, I was able to resolve the issue.

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

79462487

Date: 2025-02-24 05:05:23
Score: 3.5
Natty:
Report link
SELECT  * FROM (SELECT jk.lingkungan_id,SUM(CASE WHEN j.sidi_id=1 AND j.jk=1  THEN 1 ELSE 0 END)L,SUM(CASE WHEN j.sidi_id=1 AND j.jk=2  THEN 1 ELSE 0 END)P,SUM(CASE WHEN j.sidi_id=1  THEN 1 ELSE 0 END)JLH FROM jemaat j JOIN jemaat_kel jk ON (jk.nokk = j.nokk) GROUP BY jk.lingkungan_id UNION ALL SELECT pmk.lingkungan_id,
     SUM(CASE WHEN pmk.jk=1  THEN 1 ELSE 0 END)L,
     SUM(CASE WHEN pmk.jk=2  THEN 1 ELSE 0 END)P,
     SUM(CASE WHEN pmk.jk IN(1,2)  THEN 1 ELSE 0 END)JLH
     FROM tbl_pmk pmk
      JOIN jemaat j
      ON (pmk.jemaat_id = j.jemaat_id)
      GROUP BY pmk.lingkungan_id ) AS combined GROUP BY lingkungan_id ORDER BY lingkungan_id;

After I tried the script above, the result only got 4 columns like this enter image description here how to display the 2nd query ?

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Franky Moedak

79462484

Date: 2025-02-24 05:01:22
Score: 2
Natty:
Report link

Idk to much about docx_template. But, i'm creating a package to generate values to/from Docx documents (by now it is not finished) that makes the same thing.

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

79462483

Date: 2025-02-24 05:00:22
Score: 0.5
Natty:
Report link

Just tried to insert records in batches with batch size set to 100 and it worked. Now, I am going to increase the batch size to 200, 500 etc. and see what could be the maximum batch size.

for (let i = 0; i < cacheusers.length; i += 100) {
await AppDataSource.createQueryBuilder()
  .insert()
  .into(UsersCacheORM)
  .values(cacheusers.slice(i, i + 100))
  .execute();
}    
Reasons:
  • Blacklisted phrase (1): what could be
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ranjeet

79462472

Date: 2025-02-24 04:52:21
Score: 2
Natty:
Report link

The texture might not be updating correctly because it may not load completely before being applied to the material. To fix this issue, implement a callback function to ensure the texture is applied only after it is fully loaded.

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

79462469

Date: 2025-02-24 04:51:21
Score: 0.5
Natty:
Report link

At me, git pull at default will take ff-only(nothing in config at pull.rebase or pull.ff):
Remote: A -- B
Local: A
=> Local: A -- B

Remote: A -- B
Local: A -- C
--rebase:
=> Local: A -- B -- C
--no-rebase:
=> Local: A -- C -- B

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

79462452

Date: 2025-02-24 04:26:16
Score: 4.5
Natty:
Report link

I reviewed the docs (https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-9.0#apply-a-render-mode-to-the-entire-app) and apparently had to add @rendermode="InteractiveServer" to the Routes and HeadOutlet elements in App.razor. I'm not entirely sure why this fixed it since my .razor was already using @rendermode InteractiveServer locally. Perhaps the rendermode needed to be set globally like that to support MudBlazor's components too? Not sure.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: SoroushAU

79462441

Date: 2025-02-24 04:12:15
Score: 3.5
Natty:
Report link

Sorry I found that I had a custom dialect on the project that was adding that sentence. Is now resolved.

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

79462439

Date: 2025-02-24 04:10:15
Score: 2.5
Natty:
Report link

Check out @krozamdev/masked-password. It helps hide password inputs from autofill detection or password manager detection.

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

79462432

Date: 2025-02-24 04:05:13
Score: 0.5
Natty:
Report link

Using SlickPDF (new in 2025)

  1. Go to https://app.slickpdf.com
  2. Type Markdown text into the editor, add <hr page> where you want a page break
  3. Click File > Print

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Franklin P Strube

79462431

Date: 2025-02-24 04:04:13
Score: 1
Natty:
Report link

In PyCharm, here are the different ways to run code in the Python Console: From Python Console: Shift + Enter: Execute the current line or selected code Alt + Shift + E: Execute selection in console Control + Enter (on Mac: Command + Enter): Execute the current line and move to the next line From Editor: Alt + Shift + E: Execute selected code in console Right-click and select "Execute Selection in Python Console" If these shortcuts don't work: Check your keymap settings: Go to File → Settings → Keymap (on Mac: PyCharm → Preferences → Keymap) Search for "Execute" Look for "Execute Selection in Console" and verify/modify the shortcuts

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

79462424

Date: 2025-02-24 03:58:12
Score: 0.5
Natty:
Report link

The main idea here is to pass a valid User-Agent string instead of using a generator object, and also tweak the browser fingerprint settings to avoid the bot check. First, you need to replace the cyclic object created by itertools.cycle with a random selection of a single User-Agent string (e.g., using random.choice(user_agents)). Make sure SeleniumBase is set up with the correct browser binary path and anti-automation options when initializing. If you’re still being detected, try it with selenium-stealth module and clear the browser fingerprint data to keep each session independent.

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

79462422

Date: 2025-02-24 03:56:12
Score: 0.5
Natty:
Report link

Was getting the same "newer version of conda exists" warning and the provided update command (conda update -n base conda) was not actually updating conda itself, looping me right back to the warning. The following worked:

conda update conda --all

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

79462417

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

Thanks to the two responses. I've used one to create a short term fix. It turns out that the best solution to this was to contact MI5 through their webform, supply them with some UserAgent and IP data, and they've assured me they'll get us through the firewall in due course!

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

79462395

Date: 2025-02-24 03:34:07
Score: 2
Natty:
Report link

If you want to install NodeJS >= 18 on High Sierra, you need to build from source or use custom binary for macOS 10.13. Here are the examples for NodeJS 20 (build from source) and NodeJS 22 (binary install).

If you don't want to build from source or use alternative install, you can only stick with NodeJS 17.9, which is the latest release for macOS 10.13.

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

79462392

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

just run the command with -E to force preservation of environment variables.

sudo -E certbot certonly --dns-route53 --dns-route53-propagation-seconds 30 -d mydomain.com -d *.mydomain.com -i apache

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

79462369

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

There isn't a great solution for this currently, as the typeFilter query parameter is explicitly defined to not support _include. The best approach would be to parse the returned MedicationDispense resources and then run a new export for the relevant Medications.

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

79462360

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

Try this api https://reccobeats.com/docs/apis/get-recommendation, it's also have the audio features base recommendation.

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hoàng Nguyễn

79462357

Date: 2025-02-24 02:56:00
Score: 1.5
Natty:
Report link

After this question was raised, the blog post Building XNU for macOS 11.2 (Intel + Apple Silicon) provided much of the necessary information on both building and booting the XNU kernel, although the post is probably now overdue a refresh.

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

79462351

Date: 2025-02-24 02:48:59
Score: 3
Natty:
Report link

Yes, thank you so much! I've been struggling with this issue for a long time and was even quite frustrated. All I just changed the location of Derived Data in Xcode under Settings > Locations to a custom path, and then re-run Flutter. Your advice solved a major problem for me—God bless you!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: C.H.E.N Haha

79462343

Date: 2025-02-24 02:38:57
Score: 0.5
Natty:
Report link

I see a lot of useful information in the previous answer, but just want to give a very brief response to the original question.

User data is executed during the Final stage of the cloud-init tool process. There are five stages: Detect, Local, Network, Config, and Final. The last one is where your user_data script(s) run. This usually includes

You can read more here.

So the user_data script(s) run not before or after, but during the Final stage of cloud-init.

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

79462330

Date: 2025-02-24 02:26:55
Score: 0.5
Natty:
Report link

If your code importing windows.h works when you set .link_libc = true, then you have no choice.

Zig will happily try and internally translate headers you throw at it irrespective of libc being available. Only when that import/translate fails will it point out that fact to you as it very likely is the source of your problem.

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

79462328

Date: 2025-02-24 02:25:54
Score: 2.5
Natty:
Report link

Your game is still keeping too many entities active in memory and performing updates on them.

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

79462327

Date: 2025-02-24 02:23:54
Score: 4.5
Natty: 4.5
Report link

for me the link below is working npx --yes @react-native-community/cli@next init --version "latest"

ref

https://microsoft.github.io/react-native-windows/docs/getting-started

Reasons:
  • Blacklisted phrase (1): the link below
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sadik Ibrahim

79462325

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

I did everything right with adding dependencies in pom.xml, but Intellij as smart IDE saw a vulnerability in querydsl dependencies. And I just clicked to ignore that vulnerability to remove enormous dependency highlighting. That is problem:)

It was ignored and not downloaded to External Libraries. Btw I needed the querydsl-jpa dependency to be downloaded in External Libraries to properly import com.querydsl.jpa.impl.JPAQuery

I just deleted those dependencies, refreshed pom.xml, and added it again without ignoring them.

There is image of this thing: image with vulnerable dependency in Intellij

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andrew Koskin

79462321

Date: 2025-02-24 02:16:52
Score: 4
Natty:
Report link

I followed @5ton3's approach of removing .gcloudignore from and adding the virtual env dir. to .gcloudignore. It also worked strangely enough.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @5ton3's
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zaki

79462320

Date: 2025-02-24 02:15:52
Score: 1.5
Natty:
Report link

Another cause of this issue is with the .NET version the project is using. If the .NET version installed in your local machine is higher than the project's .NET target version, it will cause that error. You have to down grade the .NET version installed in your local machine or you upgrade the .NET target version of your project

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

79462319

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

As @mavix mentioned in a comment to another post:

In python3, dict.keys() returns a 'dict_keys' object instead of a list, which does not support indexing Blockquote

One solution to this would be converting that object into a list by iterating through it. It's not the most elegant solution and shouldn't really be used if can be avoided.

first_key = [key for key in prices.keys()][0]
#           ^Converts keys into a list    ^Takes the first key from the list
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @mavix
  • Low reputation (0.5):
Posted by: Lev Slinsen

79462318

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

you can try the ones below:

Query query = Query();
Criteria criteria = Criteria.where("id").is(model).and("fuels").elemMatch(Criteria.where("id").is(fuel));
query.fields().elemMatch(Criteria.where("id").is(fuel));
query.addCriteria(criteria);
mongoTemplate.findOne(query, your_class);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xiulei lv

79462313

Date: 2025-02-24 02:12:51
Score: 3
Natty:
Report link

Spotify has deprecated the Recommendation API https://community.spotify.com/t5/Spotify-for-Developers/Changes-to-Web-API/td-p/6540414.

As a replacement, I use this API https://reccobeats.com/docs/apis/get-recommendation for my project. It's very similar to Spotify recommendation API.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hoàng Nguyễn

79462303

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

Check if your are referencing the declared mapping(uint256 => string) with the name _tokenURI correctly

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

79462301

Date: 2025-02-24 02:06:50
Score: 1
Natty:
Report link
var notification = new NotificationCompat.Builder(context, CHANNEL_ID)
.SetSmallIcon(Resource.Drawable.ic_stat_name)
.SetContentTitle(title)
.SetContentText(body)
.Build();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Charles Henington

79462300

Date: 2025-02-24 02:06:49
Score: 3.5
Natty:
Report link

I know this is kind of generic, but it applies to all code.

C++ has a reputation to be pretty slow. One reason is due to it having a garbage collector. This uses much more memory (ram). Rust, however, does not have this resulting in faster code.

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Not_real_hacker

79462298

Date: 2025-02-24 02:04:49
Score: 3.5
Natty:
Report link

Does the huawei ArkTS is similar to flutter dart language? Do i need to build from scratch the app that is already build in dart? and how about the dev eco dont available outside china

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhd Luqman

79462295

Date: 2025-02-24 01:59:48
Score: 2.5
Natty:
Report link

I had this recently and it turned out to be an MDM policy on my Mac that was intending to block external USB devices from being mounted, but ended up also blocking downloaded volumes from being mounted.

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

79462280

Date: 2025-02-24 01:44:46
Score: 3
Natty:
Report link

This document should help, it uses a lambda: https://nicegui.io/documentation/section_action_events Example:

from datetime import datetime
from nicegui import ui

label = ui.label()
ui.timer(1.0, lambda: label.set_text(f'{datetime.now():%X}'))

ui.run()
Reasons:
  • Blacklisted phrase (1): This document
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jason S

79462277

Date: 2025-02-24 01:41:45
Score: 0.5
Natty:
Report link

import pandas as pd df = pd.DataFrame(columns=["StudentID", "StudentName", "StudentMajor","StudentAge"])

def checkID(df,id): if id in df['StudentID'].values: return True else: return False

while 1: print('TIIS Student Management System\n1. Add Student\n2. View Students\n3. Update Student\n4. Delete Student\n5.Exit') x=input('enter your choice:') match x: case '1': while 1: id=input('enter Student ID:') #if id in df['StudentID'].values: if checkID(df,id): print('user already exist') continue name=input('enter name of student:') major=input('enter Major of Student:') age=input('enter age of student:') print(df) df.loc[len(df)] = [id, name, major, age] print('student added successfully')
break case '2': if df.empty: print('no student available') else: print(df)
case '3': while 1: id=input('enter StudentId to update:') if checkID(df,id): name=input('enter name of student:') major=input('enter Major of Student:') age=input('enter age of student:') index = df[df['StudentID'] == id].index[0] if name: df.at[index, 'StudentName'] = name if major: df.at[index, 'StudentMajor'] = major if age: df.at[index, 'StudentAge'] = age print('student updated sucessfully!') break else: print('Student ID not found') case '4': id=input('enter StudentId to delete:') index = df[df['StudentID'] == id].index[0] df.drop(index, inplace=True) case '5': break case _: try: if int(x): print('invalid choice please try again') except ValueError: print('Invalid input. please enter a number between 1 and 5')

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

79462272

Date: 2025-02-24 01:35:44
Score: 0.5
Natty:
Report link

There is few APIs that do exactly that what you need. The one I am using is https://qrbar-code.intami.pl

It can decode QRCodes form images and PDFs.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: m-szalik

79462270

Date: 2025-02-24 01:33:44
Score: 0.5
Natty:
Report link

Switch to the source database

use sourceDB;

Fetch all documents from the source collection

let documents = db.sourceCollection.find().toArray();

Switch to the target database

use targetDB;

Insert the documents into the target collection

db.targetCollection.insertMany(documents);

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

79462263

Date: 2025-02-24 01:23:42
Score: 0.5
Natty:
Report link

I cannot get the "compare" URL to work. Here is a hack to make it possible to compare a file against a different version.

  1. Go to the file view on one of the commits. On the file's menu bar, next to the "Download" icon, there is the "Open raw" button. Click on it and opens the raw file. Select All and Copy.

  2. Go to the file view of the other commit you want to compare. On the file's menu bar, click on the "Edit" button and select "Edit single file" (you may need to fork the project or create a private branch if it is locked).

  3. Paste over the raw file and click on "Preview changes"

It should show you the changes, which is the diff between the 2 versions.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: some user

79462261

Date: 2025-02-24 01:17:41
Score: 1.5
Natty:
Report link

I was banging my head against a wall with this as well but as it turns out, VS Code will fail to install on the remote machine if tar is not present on the remote machine. Make sure tar is installed and try again, because the installation script that it runs seems to take advantage of that program.

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

79462260

Date: 2025-02-24 01:17:41
Score: 4.5
Natty:
Report link

enter image description here

no troll why does my brick look like this?

from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

app = Ursina()

player = FirstPersonController()
ground = Entity(model='plane', texture='grass', scale=20, collider='box')
house = Entity(model='cube', texture='brick', scale=2, collider='box')

app.run()
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: TheWorstOne

79462254

Date: 2025-02-24 01:14:40
Score: 5
Natty:
Report link

I have same issue in chorma only. I reslove this issued by Reactime26.1 extension use in react when i make it disabled its sloved the error i hope some one help

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Low reputation (1):
Posted by: Payal Patel

79462248

Date: 2025-02-24 01:10:38
Score: 12.5 🚩
Natty: 4.5
Report link

Did you get any answer for this problem. Even i have a similar issue where i want to know which test case is covering a particular scenario , which is essentially a bug.

Reasons:
  • Blacklisted phrase (1): i want to know
  • RegEx Blacklisted phrase (3): Did you get any answer
  • RegEx Blacklisted phrase (1): i want
  • RegEx Blacklisted phrase (2): Even i have
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have a similar issue
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Geetika6

79462247

Date: 2025-02-24 01:10:38
Score: 3.5
Natty:
Report link

For anyone having trouble you should just put “listen” (without the “”) in the options on the open level node, have a great day.

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

79462240

Date: 2025-02-24 01:06:37
Score: 2
Natty:
Report link

You will get a User UID for Game Center accounts even though the Identifier is blank. You may need to enrich your data by using the UID as a Document in Firestore collection of "users".

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

79462230

Date: 2025-02-24 00:56:36
Score: 0.5
Natty:
Report link

from reportlab.lib.pagesizes import A4

from reportlab.pdfgen import canvas

from reportlab.lib.colors import HexColor

Définition des couleurs

title_color = HexColor("#785D42")  # Marron doré

text_color = HexColor("#000000")   # Noir

Création du fichier PDF

pdf_output_path = "/mnt/data/carte_remerciement.pdf"

c = canvas.Canvas(pdf_output_path, pagesize=A4)

width, height = A4

Ajout du titre

c.setFont("Helvetica-Bold", 20)

c.setFillColor(title_color)

c.drawCentredString(width / 2, height - 100, "Marhba bikoum")

Texte principal

c.setFont("Helvetica", 14)

c.setFillColor(text_color)

text = [

"La pièce embaumée par l'odeur du henné,",

"le cœur bercé par les chants traditionnels",

"",

"Les yeux inondés par l'émotion",

"et vous auprès de moi pour célébrer ce moment",

"",

"Merci de votre présence",

"",

"Meriem",

"mercredi 23 avril 2025"

]

Position du texte

y_position = height - 150

for line in text:

c.drawCentredString(width / 2, y_position, line)

y_position -= 25

Sauvegarde du PDF

c.save()

Retourner le fichier généré

pdf_output_path

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

79462203

Date: 2025-02-24 00:23:31
Score: 2.5
Natty:
Report link

Back in the 70s worked on a banking system mostly IBM assembler. Dates were in 2 bytes. 5 bits day, 4 bits month and 7 bits year. If cobol wanted to use it call an assembler subroutine that would return DDMMYY. Could have returned DDMMYYYY but no one was printing the 19 then anyway.

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

79462202

Date: 2025-02-24 00:22:31
Score: 1
Natty:
Report link

By default, my tests werent showing up as it shows in the @Tyler Liu answer, so I had to make some changes as defined here.

My.csproj:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>net9.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
        <IsPackable>false</IsPackable>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="coverlet.collector" />
        <PackageReference Include="Microsoft.NET.Test.Sdk" />
        <PackageReference Include="xunit" />
        <PackageReference Include="xunit.runner.visualstudio" />
    </ItemGroup>

    <ItemGroup>
        <Using Include="Xunit" />
    </ItemGroup>
</Project>

As long as you have the C# Dev Kit extension installed, then the unit tests should show up in the testing pane and you should be able to click into the tests, set break points, and debug the tests

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Tyler
  • Low reputation (1):
Posted by: Mr.Meeseeks

79462192

Date: 2025-02-24 00:11:28
Score: 9.5
Natty: 7
Report link

I want to Add Camera preview to my project ,but not in Xcode I want to do it on Swift play ground, can anyone guide me thru it ?

Reasons:
  • Blacklisted phrase (1): guide me
  • RegEx Blacklisted phrase (2.5): can anyone guide me
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vaibhav Kulkarni

79462190

Date: 2025-02-24 00:09:28
Score: 2
Natty:
Report link

I was having the same issue. The stored proc in itself executes but the job fails if the proc is part of job step. Finally, I managed to work around this issue by using PowerShell command in PowerShell job step:

Invoke-Sqlcmd -ServerInstance "SQLInstanceName,Port" -Database "DBName" -Query "EXEC dbo.usp_storedprocname " -AbortOnError -QueryTimeout 65535

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

79462186

Date: 2025-02-24 00:05:27
Score: 3
Natty:
Report link

This postProcessModel(Model model) method is an example that shows how to process the XJC model at an earlier stage.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rick O'Sullivan

79462178

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

My easy workaround to fix this VS Code bug that only happens once in a while :

You switch to another file, and open back your file.

That's it :)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Jack'

79462176

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

It also could happen when you have try catch wrapped in your startup and catch block swallows the real error.

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

79462175

Date: 2025-02-23 23:54:25
Score: 3.5
Natty:
Report link

Any idea on this? Trying the same, but did not succeed.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Marco Klein

79462150

Date: 2025-02-23 23:25:21
Score: 1
Natty:
Report link

Their is a new method for accomplishing this is in the docs.

{
    "vscode-neovim.compositeKeys": {
        "jk": {
            "command": "vscode-neovim.escape",
        },
    },
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jeff_V

79462146

Date: 2025-02-23 23:21:20
Score: 12.5 🚩
Natty: 5.5
Report link

Having the same problem, did you ever get this resolved?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever get this resolved
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dylan Wolf

79462143

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

I created a feature request to run the debugger an existing terminal, which would make this easy: https://github.com/microsoft/vscode/issues/241259

And another one to allow specifying shell commands to run before the debugger in debugging configurations: https://github.com/microsoft/vscode-python-debugger/issues/621

You can upvote these on GitHub if you would like this added.

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

79462138

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

The short answer is: you can't. I emailed MAMP's support directly about this question and was told very bluntly "you can't and we aren't adding an option to stop it." What I did was install the "Tab Auto Close" browser extension and added a regex rule as follows: "https://www.dropbox.com(.)*127.0.0.1". This auto closes it for me, but you may have to adjust the regex expression depending on the URL it opens for you.

Really scummy practice from MAMP if you ask me.

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

79462136

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

It is possible to use the onkeypress() function, however, the name of the shift key is "Shift_L", which is the shift key on the left, and "Shift_R", which is the shift key on the right. This is what the code should look like:

import turtle
walk_speed=10
def sprint():
    global walk_speed
    walk_speed+=8
def slow():
    global walk_speed
    walk_speed-=8
screen.onkeypress(sprint, "Shift_L")
screen.onkeyrelease(slow, "Shift_L")
screen.onkeypress(sprint, "Shift_R")
screen.onkeyrelease(slow, "Shift_R")
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29769305

79462134

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

I've had the same proble I can't tell you this is gonna solve yours, as I'm just learning, but in my case I had forgotten to add parentheses () at the end of a function. Best of luck.

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

79462130

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

I already solved the problem, instead of using the manual redirect windows.location.replace(cognitoHostedURI) use the await signInWithRedirect () and it will automatically redirect to cognito hosted UI with required parameters.

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

79462126

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

This may not be a real answer but I have found where this "thing" is drawn.

qtreeview.cpp

style()->drawPrimitive(QStyle::PE_PanelItemViewRow, &opt, painter, this);

I have commented it and recompiled and its gone.

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

79462124

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

The issue lies in axios, i didnt know, what axios has sometimes problems using a http Proxys with https:// requests. A good workaround is found here at github:

https://github.com/axios/axios/issues/4531#issuecomment-1081264893

const axios = require('axios');
const { HttpProxyAgent, HttpsProxyAgent } = require('hpagent')

const httpAgent = new HttpProxyAgent({
    proxy: 'proxy url'
})
const httpsAgent = new HttpsProxyAgent({
    proxy: 'proxy url'
})

const instance = axios.create({ httpAgent, httpsAgent });

instance.post('http://example.com')
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: UsAA12

79462123

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

Put this in the page <head> tag:

<meta name="theme-color" content="rgb(10, 10, 10)" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="rgb(50, 50, 50)" media="(prefers-color-scheme: dark)">
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: wiri

79462116

Date: 2025-02-23 22:53:14
Score: 1.5
Natty:
Report link

To generate an text file from a sheet, download the sheet as TSV, but use File Extension ".txt" (or whatever extension you need.)

E.g. to generate an HTML file from a sheet, download the sheet as TSV, but use File Extension ".html"

Output works well for HTML, but may be a bit "tabby" for plain text output.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: M. Hoffman

79462115

Date: 2025-02-23 22:53:13
Score: 6 🚩
Natty:
Report link

Please can you give me the link where to find the Growatt API documentation

Reasons:
  • RegEx Blacklisted phrase (2.5): Please can you give me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jorge Morocho

79462111

Date: 2025-02-23 22:51:12
Score: 0.5
Natty:
Report link

If you run your api call inside a function, and use the below method to convert back to a HashMap before returning the api response back to global scope, this will resolve the issue. This function reclusively converts all LazyMap's within the payload.

def convertLazyMap(obj) {
    if (obj instanceof Map) {
        def serializableMap = [:]
        obj.each { key, value ->
            serializableMap[key] = convertLazyMap(value)
        }
        return serializableMap
    } else if (obj instanceof List) {
        return obj.collect { convertLazyMap(it) }
    } else {
        return obj
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: David Mehoves

79462095

Date: 2025-02-23 22:33:09
Score: 1
Natty:
Report link

So what I ended up doing for this case is this. In my FollowController, for the store method I did this.

    public function store(StoreFollowRequest $request, User $user)
    {
        $request->validated();

        $user = $request->user();

        $user->followings()->attach($request->follow_id);

        return UserResource::make($user);
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jamie Holcomb

79462092

Date: 2025-02-23 22:31:09
Score: 0.5
Natty:
Report link

Remove the white space then c sound the character.You can use the trim() function in php to remove white spaces before strlen()

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Samuel Olufemi

79462064

Date: 2025-02-23 22:12:05
Score: 1.5
Natty:
Report link

Another option is to group many statements into one policy, so you can manage the statements separately.

So for my situation I'm managing the policies in Terraform modules, so I pass the role around and feed it into a module and have that module attach the necessary permissions.

I'm going to switch this so that the module outputs the statement blocks and then I will merge the statements into one policy and attach it to the role.

So basically just invert the hierarchy of the data structures.

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

79462048

Date: 2025-02-23 21:53:02
Score: 1
Natty:
Report link

Try something like this:

<Route path="/" element={<Home />} />

https://reactrouter.com/start/library/routing

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Łukasz Daniel Mastalerz

79462030

Date: 2025-02-23 21:42:59
Score: 1.5
Natty:
Report link

In my case setting windowInsets to zero wasn't enough. There was still top padding applied by the SearchBar itself. So I used Modifier.windowInsetsTopHeight(WindowInsets(0.dp)) and the trick was done. This case happens not only for the Text component, but also for others.

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

79461992

Date: 2025-02-23 21:19:55
Score: 2.5
Natty:
Report link

I deleted both SerchComponent.jsx and UseBebounce.jsx then recreated them and I forgot to import useEffect in SearchComponent.jsx. Now it's working.

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

79461989

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

Maybe it is late but anyway

void

print_array(int* b)
{
  
  int size=0;

  while(b[size]!='\0'){
  size++;
  }
  
  for (int i = 0; i < size; i++)
    {
      printf("%d", b[i]);
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fobox

79461979

Date: 2025-02-23 21:14:53
Score: 4
Natty:
Report link

Please don’t react to these offer.

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

79461978

Date: 2025-02-23 21:14:53
Score: 0.5
Natty:
Report link

The problem was here:

field("Tracking No."; Rec."Tracking No.") { }
field(Carrier; Rec.Carrier) { }
field(Status; Rec.Status) { }
field("Related Document No."; Rec."Related Document No.") { }
field("Last Update"; Rec."Last Update") { }

No ApplicationArea in those fields, so no fields were displayed.

Here is a simplified example for someone that could need it:

table 63200 "Parcel Tracking"
{
    DataClassification = ToBeClassified;
    TableType = Temporary;

    fields
    {
        field(1; "Tracking No."; Code[50]) { }
        field(2; Description; Text[250]) { }
        field(3; "Carrier"; Code[20]) { }
        field(4; "Status"; Text[50]) { }
        field(5; "Last Update"; DateTime) { }
        field(6; "Related Document No."; Code[20]) { }
    }

    keys
    {
        key(PK; "Tracking No.", Description) { Clustered = true; }
    }

    procedure FillTrackingRows(DocumentNo: Code[20])
    begin
        Reset();
        DeleteAll();        

        "Tracking No." := '123456';
        "Carrier" := 'UPS';
        "Status" := 'In Transit';
        "Last Update" := CURRENTDATETIME;
        "Related Document No." := DocumentNo;
        Insert();

        "Tracking No." := '2131234';
        "Carrier" := 'GLS';
        "Status" := 'In Transit';
        "Last Update" := CURRENTDATETIME;
        "Related Document No." := DocumentNo;
        Insert();
    end;
}

page 63200 "Parcel Tracking"
{
    PageType = List;
    SourceTable = "Parcel Tracking";
    DeleteAllowed = false;
    InsertAllowed = false;
    ModifyAllowed = false;
    SourceTableTemporary = true;

    layout
    {
        area(content)
        {
            repeater(General)
            {
                field("Tracking No."; Rec."Tracking No.") 
                {
                    ApplicationArea = All;
                }
                field(Carrier; Rec.Carrier) 
                {
                    ApplicationArea = All;
                }
                field(Status; Rec.Status) 
                {
                    ApplicationArea = All;
                }
                field("Related Document No."; Rec."Related Document No.") 
                {
                    ApplicationArea = All;
                }
                field("Last Update"; Rec."Last Update") 
                {
                    ApplicationArea = All;
                }
            }
        }
    }
}

pageextension 63200 "Sales Order Ext" extends "Sales Order"//42
{
    actions
    {
        addlast(Processing)
        {
            action(Tracking)
            {
                ApplicationArea = All;
                Promoted = true;
                PromotedCategory = Process;
                Image = Track;

                trigger OnAction()
                var
                    ParcelTracking: Record "Parcel Tracking" temporary;
                begin
                    ParcelTracking.FillTrackingRows(Rec."No.");            

                    Page.Run(Page::"Parcel Tracking", ParcelTracking);
                end;
            }
        }
    }
}

And here the results:

enter image description here

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

79461975

Date: 2025-02-23 21:13:53
Score: 2.5
Natty:
Report link

I was able to resolve the issues in my Java implementation of YOLOv5 object detection after some debugging and corrections. Issues Faced and Solutions:

(1) Incorrect Class IDs:

Initially, all detections returned class ID 0. As pointed out in the helpful answer by Ariya (thank you so much!), I was mistakenly extracting the class ID using int classId = (int) row[5];. This was incorrect because YOLOv5 outputs multiple class confidence scores per detection:

Row format: [x, y, w, h, objectness, class1_conf, class2_conf, ..., class_n_conf]

The correct approach is to:

Extract the maximum confidence score among the class probabilities.

Identify the index of the highest confidence, which corresponds to the class ID. (2)Bounding Box Offset

The bounding boxes were incorrectly placed due to improper scaling. The original Java implementation did not correctly map the YOLO output coordinates back to the original image dimensions. The solution involved:

Adjusting for YOLOv5’s normalization and scaling.

Applying proper padding correction using the original width and height.

Fixed Code:

public static int getPredictedClassID(float[] row) {
    int classID = -1;
    float maxConfidence = -Float.MAX_VALUE;
    for (int i = 5; i < row.length; i++) {
        if (row[i] > maxConfidence) {
            maxConfidence = row[i];
            classID = i - 5; // Adjust index to match class label
        }
    }
    return classID;
}

(2)Bounding Box Offset

The bounding boxes were incorrectly placed due to improper scaling. The original Java implementation did not correctly map the YOLO output coordinates back to the original image dimensions. The solution involved:

Adjusting for YOLOv5’s normalization and scaling.

Applying proper padding correction using the original width and height.

Fixed code:

float cx = row[0] * origWidth / inputSize;
float cy = row[1] * origHeight / inputSize;
float w = row[2] * origWidth / inputSize;
float h = row[3] * origHeight / inputSize;

float x1 = cx - w / 2;
float y1 = cy - h / 2;
float x2 = cx + w / 2;
float y2 = cy + h / 2;

(3)Implemented Non-Maximum Suppression (NMS)

To filter out redundant overlapping boxes, I implemented NMS to keep only the best detections per object.

NMS Implementation:

public static List<float[]> nonMaxSuppression(List<float[]> detections, float confThreshold, float iouThreshold) {
    List<float[]> filteredDetections = new ArrayList<>();
    detections.sort((a, b) -> Float.compare(b[4], a[4])); // Sort by confidence

    while (!detections.isEmpty()) {
        float[] best = detections.remove(0);
        filteredDetections.add(best);
        detections.removeIf(det -> iou(best, det) > iouThreshold);
    }
    return filteredDetections;
}

I hope this helps others facing similar issues!

Note: These code snippets are not fully optimized and can be improved. The final confidence score in my case is objection*class_i_confidence.

Sources: https://medium.com/@pooja123tambe/yolov5-inferencing-on-onnxruntime-and-opencv-dnn-d20e4c52dc31

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1): hope this helps
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: CoffeeCoding

79461972

Date: 2025-02-23 21:10:52
Score: 1
Natty:
Report link

Here's an example of how to do this in SageMath 9.5 operating under Jupyter Notebook:

var_names_orig = ['x_1', 'x_2'] pol_ring_orig = PolynomialRing(QQbar, names=var_names_orig, order='degrevlex')

var_names_reord = ['x_2', 'x_1'] pol_ring_reord = pol_ring_orig.change_ring(names=var_names_reord, order='lex')

pol_orig = 2 * all_vars_orig[1] + 3 * all_vars_orig[0]^2

pol_reord = pol_ring_reord(pol_orig)

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

79461958

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

I tried to use the interpreter of python installed in the system and chose this in tools, project options.

Then I loaded again reticulate and rgee packages, and tried to use the function ee_install_upgrade() and reviewed that all the items were ok. Finally logged in GEE with ee_initialize()

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

79461954

Date: 2025-02-23 20:56:49
Score: 1
Natty:
Report link

You can use eslint-plugin-import-group

It is written just for specific imports and supports sorting.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ilia Brykin

79461953

Date: 2025-02-23 20:53:49
Score: 1
Natty:
Report link

You can use eslint-plugin-import-group

It is written just for specific imports and supports sorting.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ilia Brykin

79461952

Date: 2025-02-23 20:52:48
Score: 1
Natty:
Report link

Using XJC to generate code from a DTD is less capable then generating code from an XSD, see these links for similar historically unresolved issues:

If you can convert your DTD to XSD ...

Description.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    <xs:element name="Description">
        <xs:complexType mixed="true">
            <xs:sequence>
                <xs:element minOccurs="0" maxOccurs="unbounded" ref="ShortName"/>
            </xs:sequence>
            <xs:attribute ref="xml:lang" use="required"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="ShortName" type="xs:string"/>
</xs:schema>

... then XJC can generate code like this ...

Description.java

// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// and modified to reduce space.
package generated;

import java.io.Serializable;
import java.util.*;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "content" })
@XmlRootElement(name = "Description")
public class Description
{
    @XmlElementRef(name = "ShortName", type = JAXBElement.class, required = false)
    @XmlMixed
    protected List<Serializable> content;
    public List<Serializable> getContent()
    {
        if (content == null)
            content = new ArrayList<>();
        return this.content;
    }

    @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true)
    protected String lang;
    public String getLang()
    {
        return lang;
    }
    public void setLang(String value)
    {
        this.lang = value;
    }
}
Reasons:
  • Blacklisted phrase (1): these links
  • RegEx Blacklisted phrase (1): see these links
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rick O'Sullivan

79461951

Date: 2025-02-23 20:51:48
Score: 1
Natty:
Report link

You can use eslint-plugin-import-group.

It is written just for specific imports.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ilia Brykin

79461946

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

The line "Failed to resolve import "UseDebounce" from src/SearchComponent.jsx. Does the file exist?" means that vite failed to find UseDebounce because it couldn't be found.

The most popular reason for this error is that you either wrote "UseDebounce.jsx" wrong, or that the file is not in the correct directory

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

79461940

Date: 2025-02-23 20:40:46
Score: 3.5
Natty:
Report link

My DB has 250 tables. I selected 10 and was able to export the data to .sql file

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

79461933

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

I solved this problem with the following code in the command prompt:

C:\APPS>python -m PyInstaller --onefile -w Prog1.py

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tony Cardinal