79537357

Date: 2025-03-26 22:05:41
Score: 2.5
Natty:
Report link

Just in case anyone needs the solution the reason was very silly. I forgot to add AppCheck capability to my target and change the entitlement key to "production".

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

79537354

Date: 2025-03-26 22:03:41
Score: 1.5
Natty:
Report link

Here's a oneliner for you:

df = pd.concat([df.pop("column_name"), df], axis=1)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jeyes Unterwegs

79537351

Date: 2025-03-26 22:01:40
Score: 1.5
Natty:
Report link
<activity
    android:name="com.example.MainActivity"
    android:theme="@style/Theme.AppCompat.NoActionBar" />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Juan C Nuno

79537344

Date: 2025-03-26 21:58:40
Score: 2
Natty:
Report link

I eventually stumbled upon an answer in the configuration settings (as expressed in the sitecore/admin/showconfig.aspx display). It turned out a .config file from a different environment had gotten into my local environment and was overwriting/patching Publishing.PublishingInstance with an unusable value. Once this was identified and located I was able to remove the spurious .config file and restore my local environment to normal publishing behavior.

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

79537343

Date: 2025-03-26 21:58:40
Score: 2.5
Natty:
Report link

You can try just smash ur PC into chunks
Just go away from pc and try to focus on monitor , then make a little "jog" and smash ur fist into . then try to use ur legs to pull of the system block and more

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

79537339

Date: 2025-03-26 21:56:39
Score: 1.5
Natty:
Report link

try setting this to true so the bot can receive messages because otherwise it cannot see the sent commands:

intents.messages = False  # Disable unnecessary permissions
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: anaya

79537335

Date: 2025-03-26 21:54:39
Score: 3.5
Natty:
Report link

No, but a proposal was submitted for one in late 2023, so it may come to the language eventually: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3195.htm

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

79537328

Date: 2025-03-26 21:49:38
Score: 0.5
Natty:
Report link

There is another Applescript method to get around the security settings, and it returns two lists. First is a list of all System Fonts (all styles) and the second is all the Font Families (which is exactly the same as returned in the method previously described). It uses the atsutil in a "do shell script" command and pushes the result to the clipboard which then can be pasted into any field. The Applescript is only one line. FileMaker Pro script looks like this...

Perform Applescript [ "do shell script "atsutil fonts -list | pbcopy"" ]
Paste [ Select ; Fonts::FontInputText ]

The text returned looks like this and you can do whatever you need to style text

System Fonts:
    AcademyEngravedLetPlain
    Agenda-Black
    AlBayan
    AlBayan-Bold
    AlNile
    AlNile-Bold
    AlTarikh
        ...
System Families:
    Academy Engraved LET
    Agenda
    Al Bayan
    Al Nile
    Al Tarikh
        ...
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Derf

79537325

Date: 2025-03-26 21:45:37
Score: 1.5
Natty:
Report link
cleanstring = response.text.replace("'","")

My problem was that the response.text is immutable, so I needed to create a new variable and assign the cleaned string to it.
Then I used cleanstring in my call where response.text would have gone.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Myles

79537319

Date: 2025-03-26 21:40:36
Score: 2
Natty:
Report link

I eventually found the solution :

const JimpLib = require('jimp'); console.log('JimpLib', Object.keys(JimpLib)); // returns different lib features such as loadFont

const Jimp = JimpLib.Jimp; // returns our usual Jimp class representing an image var img = await Jimp.read('/path/image.png');

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

79537318

Date: 2025-03-26 21:40:36
Score: 1
Natty:
Report link

For me this issue occurred after I cleaned my DerivedData folder. I thought it was supposed to simply rebuild the necessary files/folders.

I managed to fix it by changing Derived Data location to Custom Location. Steps;
In XCode -> File -> Workspace Settings -> Derived Data: from Default Location to Custom Location. I created a folder named DerivedData in my Documents section and chose that one.

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

79537317

Date: 2025-03-26 21:40:36
Score: 3
Natty:
Report link

[shif + insert] worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mohammed solmon

79537311

Date: 2025-03-26 21:36:35
Score: 1.5
Natty:
Report link

It can be configured by individual project, go here:

  1. Go to Project Tab

  2. Click the three dots

  3. Open

  4. Uncheck "Members"

enter image description here

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

79537308

Date: 2025-03-26 21:35:35
Score: 2.5
Natty:
Report link

just wondering if someone made ESP-RTC work.

RTSP has high latency, and I think ESP-IDF can work for live video

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

79537307

Date: 2025-03-26 21:33:34
Score: 1
Natty:
Report link

I'd check this using regex like this:

"MYabcVaLUe".matches( "^[a-fG-Z]+$") // true
"JaCKsoN".matches( "^[a-fG-Z]+$") // false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arno

79537306

Date: 2025-03-26 21:33:34
Score: 9 🚩
Natty: 6.5
Report link

I have the same problem. Every other SPF or DKIM tools, besides Postmaster Tool, show as correct with no errors/issues. Logic is not present in Postmaster Tools results, at least in my case which seems to also be the case for Ching. Does anybody have a clue?

For instance, in https://mxtoolbox.com/ all checks for SPF, DKIN and DMARC show in green, meaning success.

Appreciate any clues from you guys, thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Does anybody have a clue
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Juan Torres

79537305

Date: 2025-03-26 21:31:33
Score: 5.5
Natty:
Report link

The solution to your problem has already been described. Here it is: https://stackoverflow.com/a/73865129

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

79537297

Date: 2025-03-26 21:23:31
Score: 3.5
Natty:
Report link

Copy then "Raw Paste" does not reformat the code.

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

79537296

Date: 2025-03-26 21:22:31
Score: 1.5
Natty:
Report link

You could do something like this:

open class GoogleMapsMarker: GMSMarker, UIAccessibilityIdentification {
    public var accessibilityIdentifier: String?
}

then:

let marker = GoogleMapsMarker()
marker.accessibilityElementsHidden = false
marker.accessibilityIdentifier = "Map pin"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30072908

79537280

Date: 2025-03-26 21:08:28
Score: 1
Natty:
Report link

Better approach is to add your device as a testdevice (look in logcat as it scrolls down there) and use your production ids.

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

79537264

Date: 2025-03-26 20:58:26
Score: 2.5
Natty:
Report link

What version of Java is your IntelliJ project using? The error you received is almost certainly caused by an unsupported Java version. I would try Java 17.

Edit: Major Version 68 is Java 24, if you're working with an older project this is almost certainly not supported. Try Java 17.

Here's some documentation on how to change your SDK.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: AaronCreor

79537259

Date: 2025-03-26 20:56:25
Score: 0.5
Natty:
Report link

For larger databases, where (not) exists is usually faster, especially on indexed columns such as id.

SELECT id, name
FROM t1
WHERE NOT EXISTS (
    SELECT id
    FROM t2
    WHERE t1.id= t2.id
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: summer7

79537250

Date: 2025-03-26 20:53:25
Score: 3
Natty:
Report link

Not official but you can use :
https://rapidapi.com/boztek-technology-boztek-technology-default/api/youtube-search-download3

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: İlyas Yıldırım

79537248

Date: 2025-03-26 20:52:24
Score: 5
Natty: 5
Report link

Utilizing VPI significantly slows down execution. Doesn't vendors like Synopsis provide functions to access the passed structures or arrays without utilizing VPI?

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

79537244

Date: 2025-03-26 20:50:24
Score: 2
Natty:
Report link

After looking more into https://pyinstaller.org/en/stable/operating-mode.html

I am realizing that although we name the file .pyz it is, in fact, not a .pyz but an executable for Ubuntu

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

79537243

Date: 2025-03-26 20:50:24
Score: 2.5
Natty:
Report link

Just switch renderResults() to , direct function components inside jsx have restricted lifecyle.

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

79537239

Date: 2025-03-26 20:48:22
Score: 6 🚩
Natty:
Report link

I am having same issue I also have userid no pcc or epr, attached is my output

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vijaya Vishwanath

79537237

Date: 2025-03-26 20:47:22
Score: 1.5
Natty:
Report link

For me, the error was caused because git did not get installed in the devcontainer, because I had made changes that accidentally switched the architecture of the docker images without ever making any changes to specify it back to how it was before.

So adding this property in .devcontainer/docker-compose.yml under services: appName: fixed it

platform: linux/amd64

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

79537236

Date: 2025-03-26 20:46:21
Score: 2
Natty:
Report link

Edited code and got it working. Thank you, @nico_haase!

$instituteEntities = [];

        for ($i = 0; $i < count($instituteList); $i++) {
            $institute = new Institute();
            $institute->setName($instituteList[$i]);
            $instituteEntities[] = $institute;
            $manager->persist($institute);
        }

        for ($i = 0; $i < count($departmentList); $i++) {
            $department = new Department();
            $department->setName($departmentList[$i]);
            $department->setInstitute($instituteEntities[rand(0, count($instituteEntities) - 1)]);
            $manager->persist($department);
        }
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @nico_haase
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Славик Михненко

79537231

Date: 2025-03-26 20:44:21
Score: 4
Natty:
Report link

As @ZyntaaX has said, just ensure there is no comma after each key inside your .env file where you store all the API keys. That should do the trick

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

79537215

Date: 2025-03-26 20:34:18
Score: 1
Natty:
Report link

After David's explanation. Here is the better version of the code:

local fs = 'D:\\proj\\qlua100\\app\\data\\source\\orders_daily.csv'
local fd = 'D:\\proj\\qlua100\\app\\data\\source\\orders_daily.xlsx'
local command = '""csv2xls.cmd" -fs '..fs..' -fd '..fd..' --zoom 90"'
os.execute(command)

I replaced double square brackets with single quotes and added escapes for slashes. Now it is possible to use variables. Double quotes are the property of Windows CMD interpreter and must be used in this way. As far as I understand they separate the command and its parameters. This version is much better to my eyes. Thank you David for your help.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user22099079

79537214

Date: 2025-03-26 20:34:18
Score: 2
Natty:
Report link

Private Sub TextBox2_GotFocus()

Debug.Print "TextBox2_GotFocus started"

TextBox2.BringToFront - Run-Time error 1004 Bring ToFront method of OLEObject class failed

TextBox2.Activate

Debug.Print "TextBox2_GotFocus completed"

End Sub

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

79537210

Date: 2025-03-26 20:32:18
Score: 1.5
Natty:
Report link

Yes, you must enter the dependency characters within a parenthesis and double quotation marks. Example given below:

implementation("de.hdodenhof:circleimageview:3.1.0")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: James Allan

79537197

Date: 2025-03-26 20:27:16
Score: 1
Natty:
Report link

Log Analytics supports the creation of linked BigQuery datasets which let BigQuery have read access to the underlying data.

The correct and supported method to programmatically query the data within the my_project.global._Default._Default dataset is through the BigQuery API.

There are duplicate log entries in your Log Analytics results. Log Analytics doesn't perform the same type of deduplication that is performed by the Logs Explorer. To resolve duplicate log entries, you may try the list of items provided in the document.

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

79537194

Date: 2025-03-26 20:25:16
Score: 2
Natty:
Report link

I found a good workaround for this issue. I'm using the wait_for module. This module also works in strategy free. Just set a Timeout (in seconds) and a when condition.

- name: wait for something
  ansible.builtin.wait_for: 
    timeout: 20 
  when: 
    - some_condition

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/wait_for_module.html

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

79537192

Date: 2025-03-26 20:23:15
Score: 7.5
Natty: 7.5
Report link

@Mian Saeed Akbar

This is very useful, thanks. Will it always (in any graph) give the optimal/minimal weight of any path?

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @Mian
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: user30072487

79537190

Date: 2025-03-26 20:23:15
Score: 0.5
Natty:
Report link

I just cmd+Q on Xcode and reopened, and seems to build now. For me this happened after a merge, and I had run: cd ios && pod deintegrate && cd .. && rm -rf node_modules && yarn install && cd ios && pod install && cd .. - Maybe worth checking node versions as well. I was installing the packages with a wrong node version. NVM is your friend in this case.

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

79537180

Date: 2025-03-26 20:15:13
Score: 1
Natty:
Report link

Newtonsoft Json.Linq methods generally return the nullable type explicitly. This can be confusing to some users if they are using "var". When method is returning nullable objects, one should always check if an actual value is returned by using the "HasValue" or "HasValues" extension method.

Note that when using a nullable type object, check for value by using "if (type.HasValue)" instead of "if (type == null)". The first way is much cleaner.

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

79537179

Date: 2025-03-26 20:13:13
Score: 2.5
Natty:
Report link

I’m experiencing a similar issue. Whenever I right-click or perform a copy action in any text field, I get memory leak errors. They’re usually related to NSMenu. They’re very minor, but quite annoying.

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

79537171

Date: 2025-03-26 20:09:11
Score: 6.5 🚩
Natty: 6
Report link

Please what was the answer? Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: betrand

79537152

Date: 2025-03-26 20:03:09
Score: 3.5
Natty:
Report link

The answear is that you have to remove the read:guardian-factors from the checked scopes.

This is in case you checked all the scopes for your api (like I did) and like this documentation suggests.

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: alexandervonwl

79537149

Date: 2025-03-26 20:01:09
Score: 0.5
Natty:
Report link

Oh, my dear. I'm du%& as a post.

The token \s also matches \r and \n and that's why it is stepping over the line break.

Just doing:

  const VALUE_PART = {
    scope: "addition",
    begin: /[:=]/,
    end: /$/, // Match until the end of the line
    excludeBegin: true, // Ensure the separator is not included
    excludeEnd: true,
  }

does the trick. Fiddle is updated.

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

79537137

Date: 2025-03-26 19:56:08
Score: 3
Natty:
Report link

you dont have to use Pinia. with inertia this not good idea , beacouse inertia already state management so u need to share it among pages global

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

79537124

Date: 2025-03-26 19:47:06
Score: 0.5
Natty:
Report link

Finally I figured out the root cause:

Some parts of my JSP page are dynamically loaded in the client Side within iFrame , which cut my single JSP page into multiple JS context. The trigger and its related component fell into different JS context.

The fixing is simple, I just put them together.

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

79537116

Date: 2025-03-26 19:43:05
Score: 7 🚩
Natty: 5
Report link

I want to implement the same for my application. Could you show code snippet to see how did you implement with save_object() and renderImage()? Will be very useful.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Could you show code
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Praveen

79537112

Date: 2025-03-26 19:42:05
Score: 1
Natty:
Report link

Check Your Source File Location

The location of the source file (e.g., main.cpp) that includes #include "renderer.h" matters. When you use quotation marks in an include statement like #include "renderer.h", the compiler looks for the header file:

  1. In the same directory as the source file, by default.

  2. In any additional include directories specified in the project settings.

If your source file is in the same directory as "renderer.h" (i.e., the project folder), the include statement should work without further changes. However, if your source file is in a subdirectory (e.g., a "src" folder), the compiler won't find "renderer.h" in that subdirectory unless you adjust the path. For example:

If "renderer.h" is in the project root and your source file is in a "src" subdirectory, use #include "../renderer.h" to go up one directory.

You can go to Solution Explorer, locate your source file and "renderer.h". Right-click each file, select "Open Containing Folder" and compare their locations.

I recommend you watch this video to understand include errors in C++.

Reasons:
  • Blacklisted phrase (1): this video
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joao

79537101

Date: 2025-03-26 19:38:04
Score: 0.5
Natty:
Report link

Thank you very much for the replies, I certainly was in DLL Hell. As suggested, I switched my compiler to msys2 but I was still getting a very similar DLL error when trying to compile my code from cmd:

The procedure entry point crc32_combine could not be located in the dynamic link library C:\msys64\ucrt54\bin\..\lib\gcc\x86_64-w64-mingw32\14.2.0\cc1plus.exe

I ended up spending a while going back and forth with chat gpt to troubleshoot the error and was eventually recommended to try a where zlib1.dll command in cmd. This pointed me to a folder called GtkSharp which after deleting, resolved any issues I had compiling or running my code from cmd. Unfortunately I am not positive where this folder came from in the first place, my best guess would be that it was something left over from a previous compiler installation.

At this point Vs code was now giving me an error:

(preLaunchTask 'C/C++: g++.exe build active file' terminated with exit code -1)

but Deleting the .vscode folder of my project let the code compile.

I can’t say for certain that what I did would resolve my original error as I’m quite happy leaving well enough alone at this point. I am also uncertain where chat gpt got zlib1.dll from.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Uhypocrite

79537100

Date: 2025-03-26 19:38:03
Score: 4
Natty: 4
Report link

DDB Streams now supports PrivateLink

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/privatelink-streams.html

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

79537097

Date: 2025-03-26 19:36:03
Score: 1
Natty:
Report link

Include a primary dns, e.g. google 8.8.8.8:

<ExtraParameters>+CGDCONT=1,"IP","UMTS";+CDNSCFG="8.8.8.8"</ExtraParameters>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Paul-ET

79537096

Date: 2025-03-26 19:35:02
Score: 1
Natty:
Report link

Sure. This component its comming from one lib of mine.

TS:

import { Component, Input, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'sued-text-link',
  template: 'Label: {{ label }}',
  styleUrls: ['./sued-text-link.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class SuedTextLinkComponent {
  @Input({ required: true }) label: string;
}

Im just trying to create one component in one angular library and show the content. This label prop, I need to be one object {text: string, size: number}, but I do this in question to simplify.

I cannot understand what Im doing wrong.

Here its app.module:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';

import { SuedComponentsModule } from 'node_modules/sued-components';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    SuedComponentsModule,
  ],
  exports: [
    SuedComponentsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

SuedComponentsModule:

import { NgModule  } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SuedTextLinkComponent } from './components/sued-text-link/sued-text-link.component';

@NgModule({
  declarations: [
    SuedTextLinkComponent
  ],
  exports: [
    SuedTextLinkComponent
  ],
  imports: [
    CommonModule,
  ]
})
export class SuedComponentsModule { }

PS: Im using npm link

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jeferson Fillipe Nolasco

79537093

Date: 2025-03-26 19:32:02
Score: 1.5
Natty:
Report link

As has been said in the comments by @Slaw and @Anonymous:

The algorithm that your teacher is after is (partly pseudocode):

while (remainingElements > 0) {
    int i = <random index>;
    if (board[i] != 0) {
        print board[i];
        board[i] = 0;
        remainingElements--;
    }
}

For picking a random index into your board you need to use random.nextInt(board.length).

Notice that we only decrease remainingElements when a number is picked and printed, not every time through the loop. This causes the loop to repeat more times than there are elements in the board array. Eventually the random index will also pick the last remaining elements, remainingElements will be decreased to 0 and the loop will terminate.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @Slaw
  • User mentioned (0): @Anonymous
  • Low reputation (1):
Posted by: Lily Devi

79537081

Date: 2025-03-26 19:26:01
Score: 4
Natty:
Report link

The solution was to use a Nested Scroll View, instead of a regular scroll view.

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

79537071

Date: 2025-03-26 19:21:59
Score: 1.5
Natty:
Report link

Slowly but surely, this post by Chrome for developers will take precedence over any answer given here: The select element can now be customized with CSS

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

79537061

Date: 2025-03-26 19:17:58
Score: 12
Natty: 7
Report link

did you solve this issue? im facing the same question rn

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

79537060

Date: 2025-03-26 19:17:58
Score: 0.5
Natty:
Report link

An alternative could be Power Query which is available in legacy Excel such as Excel 2013.

enter image description here

let
    Source = Excel.CurrentWorkbook(){[Name="Tabelle2"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Level", Int64.Type}, {"Item Number", type text}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "User Column", each if [Level] = 0 then [Item Number] else null),
    #"Filled Down" = Table.FillDown(#"Added Custom",{"User Column"}),
    #"Removed Duplicates" = Table.Distinct(#"Filled Down", {"Item Number", "User Column"}),
    #"Removed Columns" = Table.RemoveColumns(#"Removed Duplicates",{"User Column"})
in
    #"Removed Columns"
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user22566114

79537056

Date: 2025-03-26 19:15:57
Score: 1
Natty:
Report link

I used tguen's answer to solve the same problem. I had to add the constructor

Editor() : QTextEdit() {}

to editor.hpp in the public part to be able the call the editor by using

editor = new Editor;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zoltán Kovács

79537054

Date: 2025-03-26 19:14:57
Score: 2.5
Natty:
Report link

A solução aqui foi:

Criei a pasta arquivo no resources e colei lá o logo.png

InputStream input= this.getClass().getClassLoader().getResourceAsStream(arquivo/logo.png);
        File fileout = new File("logo.png");
        FileUtils.copyInputStreamToFile(input, fileout);

.addInlineAttachment("logo.png", fileout, "image/png", "<[email protected]>" ));

Reasons:
  • Blacklisted phrase (2): solução
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Filipe Moutinho

79537052

Date: 2025-03-26 19:12:57
Score: 2
Natty:
Report link
Can't bind to 'label' since it isn't a known property of 'sued-text-link'.

Well, does your "sued-text-link" has input called label? Also please do show your components code

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

79537041

Date: 2025-03-26 19:08:56
Score: 2.5
Natty:
Report link

After the Chrome Browser lost my account for the third time in the last three years, I came to a simple conclusion: never to use Chrome again. That's all. You must respect yourself. Android, Google and its products are evil for humanity. Take care of yourself.

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

79537035

Date: 2025-03-26 19:04:55
Score: 1.5
Natty:
Report link

CodeSkool uses websocket to connect to the board. As the website is served on SSL, but the board does not have any SSL, you need to allow mixed content.

https://forum.codeskool.cc/t/websocket-issue/55/2

Scratch uses Scratch Link a separate executable to do that, but that's a wrong choice as per CodeSkool team, so they just ask to allow mixed content.

Also CodeSkool has their own forum, where you can ask any doubts.

https://forum.codeskool.cc/

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

79537033

Date: 2025-03-26 19:04:55
Score: 2
Natty:
Report link

I would get 'Server refused key' all the time and could not work out why. I could connect when using the windows SSH from command line and so I know everything like IP address was correct but then BAM I saw this post and updated to 8.3 and it worked... Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Stew McG

79537025

Date: 2025-03-26 18:59:53
Score: 6 🚩
Natty: 5.5
Report link

which dependencies did you have to download manually?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): which
  • Low reputation (1):
Posted by: Henrique Avati

79537022

Date: 2025-03-26 18:58:53
Score: 2
Natty:
Report link

I have a similar problem: I want to know which module import which library/module, so I wrote a short script:

#!/usr/bin/env python3
"""show_imports.py: Show imports from files"""

import argparse
import ast
from collections import defaultdict
from pathlib import Path

def find_imports(path: Path, found: dict):
    content = path.read_text()
    module = ast.parse(content, path)
    for entity in ast.walk(module):
        if isinstance(entity, ast.Import):
            for alias in entity.names:
                found[alias.name].add((path, entity.lineno))
        elif isinstance(entity, ast.ImportFrom):
            found[entity.module].add((path, entity.lineno))

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("dir")
    options = parser.parse_args()
    root = Path(options.dir).resolve().relative_to(Path.cwd())

    if root.is_file():
        paths = [root]
    elif root.is_dir():
        paths = root.rglob("*.py")
    else:
        raise SystemExit(f"{root} is not a valid dir or file")

    found = defaultdict(set)
    for path in paths:
        find_imports(path, found)

    for mod, paths in found.items():
        print(mod)
        for path, lineno in sorted(paths):
            print(f"  {path}({lineno})")


if __name__ == "__main__":
    main()

You can run this script and pass in either a single python script, or a directory. In the case of directory, all python scripts in there will be analyzed. Here is a sample run of the script against itself:

$ ./show_imports.py show_imports.py
argparse
  show_imports.py(4)
ast
  show_imports.py(5)
collections
  show_imports.py(6)
pathlib
  show_imports.py(7)

Notes

Reasons:
  • Blacklisted phrase (1): I have a similar problem
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar problem
  • High reputation (-2):
Posted by: Hai Vu

79537021

Date: 2025-03-26 18:58:53
Score: 1
Natty:
Report link

As christoph-rackwitz suggest in his link I want an inscribed rectangle . I eventually gave some good instructions to ChatGPT and it came up with an answer. I've included it in the app and tested it on several image pairs and it crops them effectively. Here is the relevant code:

def find_corners(image):
  # Finds the four extreme corners of the valid image region (non-black pixels).
  coords = np.column_stack(np.where(np.any(image > 0, axis=2)))
    
  top_left = coords[np.argmin(np.sum(coords, axis=1))]
  bot_left = coords[np.argmax(coords[:, 0] - coords[:, 1])]
  bot_right = coords[np.argmax(np.sum(coords, axis=1))]
  top_right = coords[np.argmax(coords[:, 1] - coords[:, 0])]

  return top_left, bot_left, bot_right, top_right

def get_overlap_region(imageL, imageR):
    #Compute the largest overlapping area after alignment.

    left_corners = find_corners(imageL)
    right_corners = find_corners(imageR)
       
    left_TL, left_BL, left_BR, left_TR = left_corners
    right_TL, right_BL, right_BR, right_TR = right_corners
    
    top_limit = max(left_TL[0], left_TR[0], right_TL[0], right_TR[0])
    bot_limit = min(left_BL[0], left_BR[0], right_BL[0], right_BR[0])
    left_limit = max(left_TL[1], left_BL[1], right_TL[1], right_BL[1])
    right_limit = min(left_TR[1], left_BR[1], right_TR[1], right_BR[1])
          
    return imageL[top_limit:bot_limit, left_limit:right_limit], imageR[top_limit:bot_limit, left_limit:right_limit]

-----

    imageLaligned, imageRaligned = find_alignment(imageL, imageR)
    imageLcropped, imageRcropped = get_overlap_region(imageLaligned, imageRaligned)
      
    cropH = min(imageLcropped.shape[0], imageRcropped.shape[0])
    cropW = min(imageLcropped.shape[1], imageRcropped.shape[1])
    
    imageLcropped = imageLcropped[:cropH, :cropW]
    imageRcropped = imageRcropped[:cropH, :cropW]
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ChrisOfBristol

79537018

Date: 2025-03-26 18:56:52
Score: 11.5 🚩
Natty:
Report link

@LMC by cropping, I meant, cutting a fragment of an image and saving as another file. So, for example

img[500:1500, 500:1500]

would give an image from 500th to 1500th pixel "vertically" and from 500th to 1500th pixel "horizontally".

@Konstantin Makarov there are two issues with your codes (both not working for me):

  1. I want to save an image as .dcm file, not .png. The reason why I need a cropped dcm file is because I got many layers from the scanner, each in the different resolutions; and I need them in the same resolution in order to be able to read them in the segmentation program, as ITKSnap or 3DSlicer.
  2. As far as I understand your codes, you assumed that I got one .dcm file with many layers - this is not true for me, I got separate files for the each layer. I mean, each layer is lets say in (x,y) coordinates, and the next layer is some distance (in z direction) from the previous one.
    Could you please edit the code, given the above clarification?
@etauger I got numpy. Your code doesnt work for me. It gives an error for the last line of code (saving file). The error is below:
"C:\Program Files\Python\Python313\python.exe" D:\praca\GUMED\serce\testy2.py 
Traceback (most recent call last):
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 29, in tag_in_exception
    yield
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 826, in write_dataset
    write_data_element(fp, get_item(tag), dataset_encoding)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 686, in write_data_element
    raise ValueError(
    ...<3 lines>...
    )
ValueError: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\praca\GUMED\serce\testy2.py", line 10, in <module>
    ds.save_as(r"D:\praca\GUMED\dicom\mrxs\1_AORTA\AO_1_014_Masson\3_0-test-cropping.dcm")
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\dataset.py", line 2642, in save_as
    pydicom.dcmwrite(
    ~~~~~~~~~~~~~~~~^
        filename,
        ^^^^^^^^^
    ...<6 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 1455, in dcmwrite
    write_dataset(fp, dataset)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 825, in write_dataset
    with tag_in_exception(tag):
         ~~~~~~~~~~~~~~~~^^^^^
  File "C:\Program Files\Python\Python313\Lib\contextlib.py", line 162, in __exit__
    self.gen.throw(value)
    ~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 33, in tag_in_exception
    raise type(exc)(msg) from exc
ValueError: With tag (7FE0,0010) got exception: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information
Traceback (most recent call last):
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 29, in tag_in_exception
    yield
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 826, in write_dataset
    write_data_element(fp, get_item(tag), dataset_encoding)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 686, in write_data_element
    raise ValueError(
    ...<3 lines>...
    )
ValueError: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information


Process finished with exit code 1
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): doesnt work
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (3): not working for me
  • RegEx Blacklisted phrase (2): doesnt work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @LMC
  • User mentioned (0): @Konstantin
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Marcin Nowak

79537015

Date: 2025-03-26 18:55:51
Score: 0.5
Natty:
Report link

In addition to InSync's solution, you can also do this:

from typing import Self

class A:
    B: 'A'
    
A.B = A()

This is an example of a forward reference, and mypy handles those by putting the type name in quotes.

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

79537006

Date: 2025-03-26 18:49:50
Score: 10 🚩
Natty: 5
Report link

Im still facing the same error and I've followed all the suggested answers, and no avail. I've added the PHP version to my linter.yml file which matches my composer version, and Im still getting the same error. Any help is appreciated!

2025-03-26 18:40:10 [FATAL] Failed to run composer install for /github/workspace. Output: Your lock file does not contain a compatible set of packages. Please run composer update.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help is appreciated
  • RegEx Blacklisted phrase (1): Im still facing the same error
  • RegEx Blacklisted phrase (1): Im still getting the same error
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same error
  • Me too answer (0): getting the same error
  • Low reputation (1):
Posted by: Mohsen Mahmoud

79537002

Date: 2025-03-26 18:45:49
Score: 3
Natty:
Report link

you can give index to them and put them in a list or array. is you cross first object increment index counter and get other object.

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

79537000

Date: 2025-03-26 18:45:49
Score: 2
Natty:
Report link

And if all else fails, try a different cable. I ended up using my Gopro cable instead, and it worked right away.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: John Sullivan

79536992

Date: 2025-03-26 18:41:48
Score: 1.5
Natty:
Report link

It should be


  encoded_key = file("${path.module}/public_key.pem")

not

  encoded_key = filebase64("${path.module}/public_key.pem")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sparsespeculator

79536976

Date: 2025-03-26 18:33:46
Score: 2
Natty:
Report link

You might encounter the 1603 error. You can fix it by running CMD as an administrator and then using the command: winget install -e --id Memurai.MemuraiDeveloper. Alternatively, navigate to the directory containing the MSI file and run msiexec /i <filename>.msi.

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

79536960

Date: 2025-03-26 18:28:45
Score: 4
Natty: 5
Report link

OJDBC Extensions: https://github.com/oracle/ojdbc-extensions/tree/main Help you set your credentials in Azure Key Vault with no code change (though you need to add the jar dependencies). https://blogs.oracle.com/developers/post/jdbc-config-providers

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

79536952

Date: 2025-03-26 18:26:44
Score: 3
Natty:
Report link

You can make another project and uncheck the box in the bottom where was "module.info.java", for me, it works fine without one.

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

79536950

Date: 2025-03-26 18:24:44
Score: 3.5
Natty:
Report link

Thanks m,ate, worked for me, also! :-)

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

79536945

Date: 2025-03-26 18:23:43
Score: 1.5
Natty:
Report link

Based on @fenton solution, but possible to do Object.keys(Color)

export enum Color {
  Green = "GREEN",
  Red = "RED",
}

export namespace Color {
  export declare const values: readonly Color[];
  export declare function stringify(mode: Color): string;
}

Object.setPrototypeOf(Color, {
  values: Object.values(Color),
  stringify: (color: Color): string => {
    switch (color) {
      case Color.Green:
        return "Зеленый";
      case Color.Red:
        return "Красный";
    }
  },
});
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @fenton
  • Low reputation (1):
Posted by: Artur Beltsov

79536943

Date: 2025-03-26 18:23:43
Score: 4
Natty:
Report link

i am facing another type of problem

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

79536936

Date: 2025-03-26 18:20:42
Score: 0.5
Natty:
Report link

Thank you very much for your feedback and help. I now know that this website is not for beginner Programmers. My brain is struggling to wrap around the coding concept. Thankfully, I have found some beginner Python forums and I will direct my questions there. Secondly, yes I agree that Zybooks is awful. We are literally unable to delete or change existing code as the program will not allow you too. It can be frustrating when asking for help or using tutoring as they often point out the errors.

Lastly, with your help I found the problem. Here is the corrected code with 5/5 tests passed.

string = input()
valid = True
i = 0

while valid and i < len(string) :
    # To be valid, the string can only contain digits 
    # and a sign character (+ or -) as the first character.
    if i == 0: 
        if not (string[i].isdigit() or string[i] in ['+','-']) : 
            valid = False
    else :
        if not string[i].isdigit() : 
            valid = False
    i += 1

if valid :
    print("valid integer")
else :
    print("invalid integer")
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PS Ormenda

79536925

Date: 2025-03-26 18:18:41
Score: 1
Natty:
Report link

Ran into this as well; I believe this is a unique intersection of PHP 8.0 with versions of Xdebug >= 3.3.0. Downgrading to 3.2.x worked, however PHP 8.0 is of course end of life. Running a supported version of PHP along with a current/supported version of Xdebug is likely to resolve this more definitively.

Read elsewhere this is potentially related to https://bugs.xdebug.org/view.php?id=2222 so this might still be an issue, but for sure this is a version mismatch issue with Xdebug and language features utilized in the entity proxy.

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

79536909

Date: 2025-03-26 18:13:40
Score: 3.5
Natty:
Report link

If you want to host your own Reflex web app on a Digital Ocean droplet, you can follow the instructions:

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

79536898

Date: 2025-03-26 18:10:39
Score: 2
Natty:
Report link

You can use Grant-AzDiskAccess and look for the AccessSAS property to download the disk without copying in to an storage account.

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

79536890

Date: 2025-03-26 18:07:38
Score: 8.5 🚩
Natty:
Report link

Can you show the routes using the php bin/console debug:router command?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you show
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: TieneN10

79536889

Date: 2025-03-26 18:07:38
Score: 2
Natty:
Report link

On top of jareon's answer, you could also go to Clients > {your-client}. On Authentication flow you should disable the Direct access grants. This will disable the password grant type which should not be used and will be removed on OAuth 2.1 specification.

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

79536886

Date: 2025-03-26 18:06:37
Score: 1
Natty:
Report link

Yes, Reflex is fully built on web-socket communication from the Next.js frontend to the FastAPI backend.
It's explained more [in their docs](https://reflex.dev/docs/advanced-onboarding/how-reflex-works/)

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

79536872

Date: 2025-03-26 17:59:36
Score: 0.5
Natty:
Report link

The solution mentioned in this Postman community forum has worked for me.

Under the Advanced section of Token Configuration in Postman, go to the Token Request section, add a new Key called Origin and use the value as https://oauth.pstmn.io/v1/callback, assuming you have selected Authorize using Browser

enter image description here

enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: UBK

79536858

Date: 2025-03-26 17:56:35
Score: 1.5
Natty:
Report link

Please follow these procedure as stated on this documentation.

https://neo4j.com/docs/operations-manual/2025.02/configuration/connectors/

or this SO answer can also help you:

Neo4j setup in OpenShift

Reasons:
  • Blacklisted phrase (1): this document
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: jose_bacoy

79536854

Date: 2025-03-26 17:55:34
Score: 1.5
Natty:
Report link

I fixed the issue by using CMD instead of Powershell.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Krishna Teja Salimeda

79536847

Date: 2025-03-26 17:51:34
Score: 0.5
Natty:
Report link

Perhaps not a complete answer, but I think you need to re-examine your model logic a bit.

Two things to suggest:

In your result, you are concluding that vehicles disappear at Z1 and then new vehicles are produced there. How do you know they are different? (It is a rhetorical question... ;) ). You don't. With the model construct you have it is impossible to determine if a vehicle passes through a Z node or is replaced by a new vehicle. So, for all of the Z nodes, you need to add an artificial/synthetic adjacent node that is a source/sink to handle that. So this:



A --- Z1 --- N1 --- N2 --- B

needs to be augmented to this:



 A --- Z1 --- N1 --- N2 ---B
       |
       S1

And then you do normal conservation of flow at Z and track in/out at S

Before you do that, however, you should re-examine the logic of your model. Right now, because you are minimizing overall flow, you are at high risk of just making cars "go away" at Z nodes and having them appear at other Z nodes, because that is a lower OBJ value. What do you think you'd get with this model, with some sourcing at A and demand at B:


A --- Z1 --- N1 --- N2 --- N3 --- N4 --- Z2 --- B

I think you'd have ZERO flow at all of the N nodes. Think about it / mock it up with your data.You probably want to weight flows from Z to your new S nodes smartly such that they are modestly more expensive than any other shortest path connection.

Lastly, make a smaller model to test with. It is much easier to troubleshoot. After you are confident that it is working, then step up to the larger dataset.

Reasons:
  • Blacklisted phrase (1): How do you
  • RegEx Blacklisted phrase (2.5): do you know the
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: AirSquid

79536839

Date: 2025-03-26 17:48:33
Score: 4.5
Natty:
Report link

FortniteBattlePass+LebronEdits+LunchlyIsMyFavorite

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MagicalEpicCoder34

79536838

Date: 2025-03-26 17:48:33
Score: 3
Natty:
Report link

In Rive App we should explicitly emit events in order to view it in runtime. There are actually elements (next to joysticks) called 'event' that triggers due to conditions in State Machine logic.

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

79536828

Date: 2025-03-26 17:44:32
Score: 2.5
Natty:
Report link

As an alternative, I came across this API: https://reccobeats.com/docs/apis/extract-audio-features. It doesn't provide audio features directly but extracts them from an audio sample.

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

79536821

Date: 2025-03-26 17:41:31
Score: 3
Natty:
Report link

On the Solution Explorer, right click on the folder name and select CMake Workspace Settings. Change enable CMake to true and save, and CMake should work again.

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

79536820

Date: 2025-03-26 17:41:31
Score: 1
Natty:
Report link

While authentication with the JSON Web Token is still not available (the TCP transport is not recommended now and HTTP is preferred), you can ingest with Basic Auth into Telegraf Ingest data into QuestDB via Telegraf with autthentication

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

79536817

Date: 2025-03-26 17:40:31
Score: 0.5
Natty:
Report link

Update 2025, March, for Windows:

Multiple ways exist.

Fast, easy and expensive:

  1. Open the virtual machine in the Azure Portal

  2. Navigate to Monitoring/Insights and enable it

  3. Wait for everything to be set up and the first data to be propagated (5 minutes should be good). Refresh the page and you should see it.

Fast, somewhat complicated, way less expensive:

  1. Do the steps from "Fast, easy and expensive", but when you do it, make sure to note the "Data collection rule"

  2. Navigate to the previously noted Data collection rule

  3. Below Configuration/Data sources select Performance Counters
    Performance counters overview

  4. Select Custom and enter your counters. Replace X here with the Diskletters you need. If a letter does not exist on a VM, it's ignored. Don't forget to click Add

    Add custom performance counters

  5. Useful counters for Disk utilization are (X again placeholder):
    \LogicalDisk(X:)\Free Megabytes
    \LogicalDisk(X:)\% Free Space

  6. Select the newly added counters and click on Destinations:
    Selection of newly added counters

  7. Click on Add destination and add a new Destination, remove the existing one
    Destination adaptation

  8. Click on save

  9. Navigate back to the virtual machine where you started to and open Monitoring/Metrics and adjust the Metric Namespace. There you can find your Metrics:View Disk metrics on the machine

P.S.: To get a list of all counters available on your machine, run typeperf -q in a Powershell, run typeperf -q -? to get help on the command.

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

79536804

Date: 2025-03-26 17:33:29
Score: 1
Natty:
Report link

You could use the method on Color :

.toARGB32()
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: thetrutz

79536798

Date: 2025-03-26 17:31:29
Score: 4
Natty:
Report link

Well when you're using FormData to submit your receipt with images, the request.body is getting processed differently than with regular JSON payloads, causing your permission guard to not properly access the employee credentials.

The main problem is that when using FileFieldsInterceptor or any file upload interceptors, the form data fields are parsed differently. Your guard is trying to destructure employeeCode and employeePassword directly from request.body, but with multipart/form-data, these might be coming in as strings rather than as part of a JSON object.

import {
  CanActivate,
  ExecutionContext,
  ForbiddenException,
  Injectable,
  UnauthorizedException,
} from '@nestjs/common'
import { PrismaService } from '../prisma/prisma.service'
import { PermissionEnum } from '@prisma/client'
import { Reflector } from '@nestjs/core'
import { compare } from 'bcryptjs'

@Injectable()
export class PermissionGuard implements CanActivate {
  constructor(
    private prisma: PrismaService,
    private reflector: Reflector,
  ) {}

  async canActivate(context: ExecutionContext): Promise<boolean> {
    const requiredPermission = this.reflector.get<PermissionEnum>(
      'permission',
      context.getHandler(),
    )

    if (!requiredPermission) {
      return true
    }

    const request = context.switchToHttp().getRequest()
    const tokenId = request.user?.sub
    const isCompany = request.user?.pharmacy
    
    // Handle both JSON and FormData formats
    let employeeCode, employeePassword
    
    if (request.body) {
      // Handle FormData - values will be strings
      employeeCode = request.body.employeeCode || request.body.employee_code
      employeePassword = request.body.employeePassword || request.body.employee_password
    }

    if (!tokenId) {
      throw new UnauthorizedException('User not authenticated')
    }

    let permissions: PermissionEnum[] = []

    if (isCompany) {
      // If company login, we need employee validation
      if (!employeeCode || !employeePassword) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'Employee credentials required',
        })
      }

      const company = await this.prisma.company.findFirst({
        where: { id: tokenId },
        include: {
          employees: true,
        },
      })

      if (!company) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'Farmácia não encontrada',
        })
      }

      const employee = company.employees.find(
        (employee) => employee.code === employeeCode,
      )

      if (!employee) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'Funcionário não encontrado',
        })
      }

      const isPasswordValid = await compare(employeePassword, employee.password)

      if (!isPasswordValid) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'Credenciais incorretas',
        })
      }

      permissions = employee.permissions
    } else {
      const user = await this.prisma.user.findFirst({
        where: {
          id: tokenId,
        },
      })

      if (!user) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'User not found',
        })
      }

      const pharmacy = user?.pharmacies[0]?.pharmacy
      if (!pharmacy) {
        throw new UnauthorizedException({
          statusText: 'unauthorized',
          message: 'Company not encontrada',
        })
      }

      permissions = user.pharmaceutical.permissions
    }

    const hasPermission = permissions.some(
      (perm) => perm === requiredPermission,
    )

    if (!hasPermission) {
      throw new ForbiddenException(`Does not have the required permission: ${requiredPermission}`)
    }

    return true
  }
}

Key changes I made to fix your issue:

  1. More flexible field parsing: The updated guard now checks for different possible field names (employeeCode/employee_code) since form fields are sometimes sent with underscores.

  2. Null checking: Added validation to ensure the employee credentials are present when company login is detected.

  3. Better error handling: More descriptive error messages to help debug authentication issues.

  4. Safe property access: Added optional chaining in the user pharmacy access to avoid potential undefined errors.

If you're still having issues, you could also consider implementing a custom middleware specifically for handling employee authentication in FormData requests, which would run before your guard and populate request.body with the parsed credentials.

Reasons:
  • Blacklisted phrase (1): não
  • RegEx Blacklisted phrase (2): encontrada
  • RegEx Blacklisted phrase (2): encontrado
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ayodeji Erinfolami

79536788

Date: 2025-03-26 17:28:28
Score: 5.5
Natty: 4.5
Report link

Whereas i need an output as show below. Any suggestions on the fastest method, without using loop?

    in_column  out_column
0   5           1
1   5           2
2   5           3
3   8           1
4   13          1
5   13          2
6   13          3
7   13          4
8   13          5
Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2): Any suggestions
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Vishal Narsinghani

79536787

Date: 2025-03-26 17:28:28
Score: 2
Natty:
Report link

I managed to make it work using 64Bit version of msbuild as this would address the x64 tools.

"C:\Program Files\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe" "C:\Path\To\YourSolution.sln" /p:Configuration=Release /p:Platform=x64

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

79536780

Date: 2025-03-26 17:23:26
Score: 3
Natty:
Report link

You are right, React Admin does bring MUI in it's own dependencies.

However I believe package managers that use PnP (namely PNPM) are more strict regarding the dependencies: if you import from, say, @mui/material, directly in your own code, then you need to add an explicit dependency on @mui/material. The transitive dependency through react-admin is no longer sufficient.

Also, React Admin v5.6.4 included a fix to improve compatibility with some package managers, namely PNPM.

Does using this version help fix your issue?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix your issue?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: slax57

79536778

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

Thanks to Friede, I've made a function to calculate the distance of many points along a line. Posting here in case this is useful for future reference. https://gist.github.com/wpetry/bb85a1ec3c408b2ab5dae17bd1e7771c

v_distance_along <- function(points, line, dist_unit = "km") {
  # packages
  require(sf)
  require(sfnetworks)
  require(dplyr)
  require(units)
  # check inputs
  if (!inherits(points, "sf") && !inherits(points, "sfc")) {
    stop("'points' must be an sf or sfc object containing POINT or MULTIPOINT geometries.")
  }
  if (!inherits(line, "sf") && !inherits(line, "sfc")) {
    stop("'line' must be an sf or sfc object containing a LINESTRING or MULTILINESTRING geometry.")
  }
  if (!all(st_geometry_type(points) %in% c("POINT", "MULTIPOINT"))) {
    stop("The second argument must be POINT or MULTIPOINT geometries.")
  }
  if (!st_geometry_type(line) %in% c("LINESTRING", "MULTILINESTRING")) {
    stop("The first argument must be a LINESTRING or MULTILINESTRING.")
  }
  if (is.na(sf::st_crs(points)) | is.na(sf::st_crs(line))) {
    stop("Both 'points' and 'line' must have a defined coordinate reference system (see ?st_crs).")
  }
  if (sf::st_is_longlat(points) | sf::st_is_longlat(line)) {
    stop("")
  }
  if (sf::st_crs(points) != sf::st_crs(line)) {
    stop("'points' and 'line' must have the same coordinate reference system (see ?st_crs).")
  }
  if (!units::ud_are_convertible(dist_unit, "meter")) {
    stop("'dist_unit' must be a valid unit of length.")
  }
  line <- sf::st_cast(line, "LINESTRING")  # ensure single LINESTRING
  path <- sfnetworks::as_sfnetwork(sf::st_as_sf(sf::st_sfc(line$geometry)),
                                   directed = FALSE)
  near <- sf::st_nearest_points(points, line)
  snap <- suppressWarnings(sf::st_sfc(lapply(near, function(l) sf::st_cast(l, "POINT")),
                                      crs = sf::st_crs(line)))
  pathx <- sfnetworks::st_network_blend(path, snap)  # add snapped points to network
  dist <- pathx |>
    sfnetworks::activate("edges") |>
    sf::st_as_sf() |>
    dplyr::mutate(length = sf::st_length(x)) |>
    sf::st_drop_geometry() |>
    dplyr::mutate(dist = round(cumsum(units::set_units(length - length[1], dist_unit,
                                                       mode = "standard")), 1),
                  from = dplyr::case_when(  # re-order vertices, moving line end to last position
                    from == 1L ~ 1L,
                    from == 2L ~ max(from),
                    from >= 3L ~ from - 1L,
                  )) |>
    dplyr::select(from, dist)
  return(dist)
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): thx
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Will

79536770

Date: 2025-03-26 17:19:25
Score: 0.5
Natty:
Report link

I am able to get AEST timezone date time with below approach:

       let queryDate = result.values[1];
                    let queryDateObj = new Date(queryDate);
                    log.audit("queryDateObj",queryDateObj);
                    let ASTTimeZone = format.format({
                        value:queryDateObj,
                        type:format.Type.DATETIME,
                        timezone:format.Timezone.AUSTRALIA_SYDNEY
                    });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Maira S