79323669

Date: 2025-01-02 12:19:53
Score: 2.5
Natty:
Report link

Thanks to Vin, I proceed as follow:

It is easy to program with a while loop and a stopper based difference between f_init and new_f

f=0.1 -> v=0.487 m/s -> Re=58522 -> f=0.02 -> v=1.09m/s -> Re=130861 -> f=0.017 -> v=1.1.18 -> Re=141938 and this is the final solution given in the book

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kerdiorp

79323668

Date: 2025-01-02 12:19:53
Score: 1
Natty:
Report link

1. Disable Browser Caching for Protected Pages Prevent the browser from caching sensitive pages such as the user profile page. Use the appropriate HTTP headers to instruct the browser not to cache the page.

Add the following headers to your protected pages in your .NET 8 MVC application:

Response.Headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"; Response.Headers["Pragma"] = "no-cache"; Response.Headers["Expires"] = "-1";

Alternatively, create a reusable filter or middleware to apply these headers globally to protected pages: public class NoCacheFilter : ActionFilterAttribute { public override void OnResultExecuting(ResultExecutingContext context) { context.HttpContext.Response.Headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"; context.HttpContext.Response.Headers["Pragma"] = "no-cache"; context.HttpContext.Response.Headers["Expires"] = "-1"; base.OnResultExecuting(context); } }

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

79323652

Date: 2025-01-02 12:12:52
Score: 1.5
Natty:
Report link

I came across this issue as well with apache http client version 5.3.1. I enabled ssl debug logs with -Djavax.net.debug=all

and I can see it tries to close the connection and timeouts again :)

12:32:06,747 DEBUG [qtp1341085586-38] DefaultManagedHttpClientConnection - local http-outgoing-1 Close connection
javax.net.ssl|WARNING|62|qtp1341085586-38|2025-01-02 12:32:08.761 CET|SSLSocketImpl.java:1214|input stream close depletion failed (
"throwable" : {
  java.net.SocketTimeoutException: Read timed out
    at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:283)
    at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:309)
    at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
    at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
    at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
    at java.base/java.net.Socket$SocketInputStream.read(Socket.java:961)
    at java.base/sun.security.ssl.SSLSocketInputRecord.deplete(SSLSocketInputRecord.java:498)
    at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.readLockedDeplete(SSLSocketImpl.java:1210)
    at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.deplete(SSLSocketImpl.java:1184)
    at java.base/sun.security.ssl.SSLSocketImpl.bruteForceCloseInput(SSLSocketImpl.java:802)
    at java.base/sun.security.ssl.SSLSocketImpl.duplexCloseOutput(SSLSocketImpl.java:655)
    at java.base/sun.security.ssl.SSLSocketImpl.close(SSLSocketImpl.java:579)
    at org.apache.hc.core5.http.impl.io.BHttpConnectionBase.close(BHttpConnectionBase.java:256)
    at org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnection.close(DefaultBHttpClientConnection.java:68)
    at org.apache.hc.client5.http.impl.io.DefaultManagedHttpClientConnection.close(DefaultManagedHttpClientConnection.java:158)
    at org.apache.hc.core5.io.Closer.close(Closer.java:48)
    at org.apache.hc.core5.io.Closer.closeQuietly(Closer.java:71)

Obviously it uses the same timeout setting here.

Anyone aware about solution to this ?

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

79323651

Date: 2025-01-02 12:12:52
Score: 1.5
Natty:
Report link

when you use deferUpdate(), you can't edit your interaction because it marks the button as if you clicked it. What you can try to do is

i.update({ components: [new ActionRowBuilder().addComponents(startButton, endButton)] })

instead of using deferUpdate() then editReply().

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

79323649

Date: 2025-01-02 12:12:52
Score: 1.5
Natty:
Report link

In this article, I am going to guide you through a step by step process of restoring your application’s data backed up on iCloud and tracking the download progress on the way. Please note that this article is an extension of a previously posted article where I have gone through the process of backing up your application’s data on iCloud. If you have not read through the first part of this series, please stop right here and go through the first part of the article here.

    import Foundation

class Restore: NSObject {
    
    var query: NSMetadataQuery!

    override init() {
        super.init()        
    }
}

Next, let’s initialise our query by adding a new method initialiseQuery() and calling it from our viewDidLoad() method. This will initialise our query and provide a predicate to search for our sample.mp4 file on the iCloud drive.

import Foundation

class Restore: NSObject {


var query: NSMetadataQuery!

override init() {
    super.init()
    
    initialiseQuery()
}

func initialiseQuery() {
    
    query = NSMetadataQuery.init()
    query.operationQueue = .main
    query.searchScopes = [NSMetadataQueryUbiquitousDataScope]
    query.predicate = NSPredicate(format: "%K LIKE %@", NSMetadataItemFSNameKey, "sample.mp4")
}

}

Step 2, adding notification observers: Now, we are going to add notification observers to listen for the updates returned by our query. Specifically, we will listen to NSMetadataQueryDidStartGathering, which will let us know when the query starts gathering information and NSMetadataQueryGatheringProgress, giving us the progress of the gathering and NSMetadataQueryDidUpdate, that’ll be called each time an update about the operation is available.

    import Foundation
    
    class Restore: NSObject {
        

    var query: NSMetadataQuery!

    override init() {
        super.init()
        
        initialiseQuery()
        addNotificationObservers()
    }
    
    func initialiseQuery() {
        
        query = NSMetadataQuery.init()
        query.operationQueue = .main
        query.searchScopes = [NSMetadataQueryUbiquitousDataScope]
        query.predicate = NSPredicate(format: "%K LIKE %@", NSMetadataItemFSNameKey, "sample.mp4")
    }
    
    func addNotificationObservers() {
                        
        NotificationCenter.default.addObserver(forName: NSNotification.Name.NSMetadataQueryDidStartGathering, object: query, queue: query.operationQueue) { (notification) in
            self.processCloudFiles()
        }
        
        NotificationCenter.default.addObserver(forName: NSNotification.Name.NSMetadataQueryGatheringProgress, object: query, queue: query.operationQueue) { (notification) in
            self.processCloudFiles()
        }

        NotificationCenter.default.addObserver(forName: NSNotification.Name.NSMetadataQueryDidUpdate, object: query, queue: query.operationQueue) { (notification) in
            self.processCloudFiles()
        }
    }
}

Now that we have added our observers, let’s add a function to process the information. Let us add a function called processCloudFiles() where we are going to process the NSMetadataQuery updates.

@objc func processCloudFiles() {
    
    if query.results.count == 0 { return }
    var fileItem: NSMetadataItem?
    var fileURL: URL?
    
    for item in query.results {
        
        guard let item = item as? NSMetadataItem else { continue }
        guard let fileItemURL = item.value(forAttribute: NSMetadataItemURLKey) as? URL else { continue }
        if fileItemURL.lastPathComponent.contains("sample.mp4") {
            fileItem = item
            fileURL = fileItemURL
        }
    }
    
    try? FileManager.default.startDownloadingUbiquitousItem(at: fileURL!)
    
    if let fileDownloaded = fileItem?.value(forAttribute: NSMetadataUbiquitousItemDownloadingStatusKey) as? String, fileDownloaded == NSMetadataUbiquitousItemDownloadingStatusCurrent {
        
        query.disableUpdates()
        query.operationQueue?.addOperation({ [weak self] in
            self?.query.stop()
        })
        print("Download complete")
    
    } else if let error = fileItem?.value(forAttribute: NSMetadataUbiquitousItemDownloadingErrorKey) as? NSError {
        print(error.localizedDescription)
    } else {
        if let keyProgress = fileItem?.value(forAttribute: NSMetadataUbiquitousItemPercentDownloadedKey) as? Double {
            print("File downloaded percent ---", keyProgress)
        }
    }
}

Let’s go through the function above step by step. We are iterating the query.results and fetching the NSMetadataItem and URL for the file uploaded on iCloud. Once we have our fileURL, we are going to start the download from iCloud.

Next, to track the progress of the download, we are checking for two keys on the fileItem, which is an instance of our NSMetadataItem. These keys, NSMetadataUbiquitousItemDownloadingStatusKey and NSMetadataUbiquitousItemDownloadingStatusCurrent gives us the state of the downloading and the state of the downloaded file (if any) in our local iCloud directory.

To get the progress of downloading, we call NSMetadataUbiquitousItemPercentDownloadedKey on our fileItem, which returns us the progress as a Double value.

Step 3, adding a method to start download: Now, finally add a getBackup() method in our Restore.swift file, in which we will write the code to start the download process.

func getBackup() {
    
    query.operationQueue?.addOperation({ [weak self] in
        self?.query.start()
        self?.query.enableUpdates()
    })
}

Step 4, adding a button to start the download: Let us now move to our ViewController.swift file and add a new button to start the download of the iCloud file. Add the following code in your viewDidLoad() method just below the code where the uploadButton is added.

let downloadBtn = UIButton(frame: CGRect(x: UIScreen.main.bounds.midX - 150, y: button.frame.maxY + 30, width: 300, height: 40))
downloadBtn.setTitle("Download from iCloud", for: .normal)
downloadBtn.addTarget(self, action: #selector(self.downloadFromCloud), for: .touchUpInside)
view.addSubview(downloadBtn)

If you followed all the steps correctly, your ViewController.swift file should appear as follows:

All right then! Everything looks good so far, it’s time to now test out the code that we have written and see it in action.

Once we run the code and take a backup as described in the previous article, we could verify the file was indeed uploaded to the iCloud drive. Now, we are going to switch to our other phone, login into the same iCloud account with which we took the backup and start downloading the file. You’ll see with some progress the file is downloaded on the new device and is visible in its iCloud directory.

Conclusion Backing up our data to iCloud and restoring from iCloud is really not that difficult if we follow the appropriate steps. I hope I was able to help you with the process, let me know if you have any questions. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ios Developer helper

79323643

Date: 2025-01-02 12:08:51
Score: 1.5
Natty:
Report link

The following article describes quite well how horizontal spacing in lists behaves across different browsers, based on the browser's default user-agent stylesheets and list-related styles set by an author (including an embedded live example to play around with different settings in this regard):
"Everything You Need to Know About the Gap After the List Marker"

To roughly summarize and answer the question:


"... three shots of the same code ..."

Since the (CSS) styling is clearly different between the three examples, I assume that the question is saying that the markup is the same for all three.
There may be more styling involved in the examples that changes the horizontal spacing of the list elements. Please provide the full code, including the three different CSS styles, so that this can be addressed in more detail.

Also note, as already mentioned in other answers, that the markup is incorrect, as each nested ul element must be a direct child of an li element - see "Proper way to make HTML nested list".

Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: glmvc

79323640

Date: 2025-01-02 12:08:51
Score: 2
Natty:
Report link

This error happens when the .htaccess redirects the request to another url (via GET) or when the user auth is not valid and the request is redirected by default to '/login' page by laravel if the 'Accept: application/json' request header is not present.

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

79323638

Date: 2025-01-02 12:07:51
Score: 2
Natty:
Report link

Yes, your understanding is mostly correct! Just ensure that the DELETE operation removes both the store configuration and the data files on the filesystem. If you're working with Geoserver or a similar system, verify that the DELETE operation also triggers file deletion or clean-up.

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

79323628

Date: 2025-01-02 12:03:50
Score: 2.5
Natty:
Report link

Error: Internal: stream terminated by RST_STREAM with error code: INTERNAL_ERROR when running docker build -t test-node .

This issue might be caused by improper text encoding in your Dockerfile or other project files. Ensure that all files, especially the Dockerfile, are saved with UTF-8 encoding.

In VS Code, you can fix this by:

Click the encoding indicator in the status bar (e.g., CRLF or another format). Select "Save with Encoding" and choose UTF-8. Retry the build after saving the files. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahmed El marrouni

79323623

Date: 2025-01-02 12:01:49
Score: 3
Natty:
Report link

Add Background to the carousel component. Because the background is white, the dots are not visible.

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

79323584

Date: 2025-01-02 11:44:46
Score: 2
Natty:
Report link

try regularization techniques : L1 and L2 which will remove the unnecessary columns eventually. Regularization can help the model generalize better when dealing with high-cardinality features. Ensure that you're applying appropriate regularization to avoid overfitting,

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

79323577

Date: 2025-01-02 11:42:45
Score: 2
Natty:
Report link

I managed to solve that issue by adding a very old SHA1 , SHA256 key which was stored on my pc.

I used this command.

&"D:\Programs\Android Studio\jbr\bin\keytool" -list -v -alias androiddebugkey -keystore "$env:USERPROFILE.android\debug.keystore" -storepass android

Also Ensure all of the SHA1 and SHA256 keys are added with the updated google-services.json file.

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

79323575

Date: 2025-01-02 11:41:44
Score: 8.5 🚩
Natty: 6
Report link

hey were u able to debug this out I'm stuck at the same error.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • RegEx Blacklisted phrase (3): were u able
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prithu

79323560

Date: 2025-01-02 11:31:41
Score: 4
Natty:
Report link

I did also get the same issue, however it was not updating my java version or karate version.

I had a dependency spring-cloud-starter-netflix-eureka-client that caused my problem.

Either removing this dependency, or having this dependency lower than karate's dependencies worked. I suspect other spring-cloud dependencies might have a similar effect.

This DID NOT WORK

<dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
      <groupId>com.intuit.karate</groupId>
      <artifactId>karate-junit5</artifactId>
      <scope>test</scope>
</dependency>

Swapping them DID work

<dependency>
      <groupId>com.intuit.karate</groupId>
      <artifactId>karate-junit5</artifactId>
      <scope>test</scope>
</dependency>
<dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
Reasons:
  • Blacklisted phrase (1): DID NOT WORK
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): also get the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stefan

79323558

Date: 2025-01-02 11:29:40
Score: 2.5
Natty:
Report link

It is still failing with password : 'neo4j' as the document says this is the initial password. What to do?

I also tried with password I pass in docker-compose file and it fails with that as well.

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

79323556

Date: 2025-01-02 11:28:40
Score: 1.5
Natty:
Report link

(I don't have enough 'SO reputation' to leave a comment in the thread, so ill post my comment to frouhi here.)

Wonderful, I am glad to hear Iris-ZO is working well for you:) IRIS-ZO only requires an implementation of the CollisionChecker base class that determines if a configuration is in our out of collision. The a potential way to add nonlinear constraints would be to extend the implementation SceneGraphCollisionChecker to also accept nonlinear constraints (e.g. like so and so). In this extension one would have to treat constraint violations also as collisions.

I hope this helps for now!

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Peter Werner

79323554

Date: 2025-01-02 11:27:39
Score: 4
Natty: 5
Report link

Why Authorize and ValidateAntiForgeryToken both together are creating 400 Bad Request

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (1):
Posted by: Mohammed Umar Farooq

79323553

Date: 2025-01-02 11:27:39
Score: 2
Natty:
Report link

Exports are not yet supported by the bundler ( Metro ) that is used by Expo. Check the documentation for more info: https://metrobundler.dev/docs/package-exports/

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

79323552

Date: 2025-01-02 11:27:39
Score: 1.5
Natty:
Report link

I just change the commit:

git checkout qc
git commit --amend --no-edit
git push origin qc
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gabriel Carrera

79323550

Date: 2025-01-02 11:26:39
Score: 1.5
Natty:
Report link

GHC infers a type signature for h from its definition, and the unexpected type signature is the result. You won't be able to use h though until you have matching instances around.

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

79323549

Date: 2025-01-02 11:26:39
Score: 0.5
Natty:
Report link

Welcome to StackOverflow and congratulations on a very detailed first question.

If your agents are initialized correctly, there is just one point you are missing. On the CarSource block, when you go into Initial Speed you will see a lightbulb on the left side of the text control. This lightbulb shows you any special variables available in that context.

In this case, you have self (which points on the block itself) and car, which points to the instance of car being created. If you want to use this information, you could set the initial speed for example to car.velocidadeEmergencia() - which will call the function on each instance.

Again, it is very important in this case that the agents (cars) are initialized correctly. In this case, it is correct since the modoEmergencia variable has an initial value.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Enrico

79323546

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

Add this atribute to your main activity:- android:fitsSystemWindows="true".

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

79323544

Date: 2025-01-02 11:23:38
Score: 1.5
Natty:
Report link

The error npm ERR! Error: EPERM: operation not permitted, rename occurs when your project is actively running, locking certain files and preventing npm from modifying them.

Stop the Running Project

Use Ctrl + C in the terminal or terminate any background process using the project files.

After stopping the project, retry the command that caused the error.

Retry Desired command

After the command completes, restart your project.

Restart Project

Why This Happens ?

When a project is actively running, it locks certain files in the project directory. This lock prevents npm from performing operations that involve renaming, modifying, or deleting files. By stopping the running process, you allow npm to proceed without interference.

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

79323536

Date: 2025-01-02 11:20:36
Score: 1
Natty:
Report link

As I can't comment on this old post, I am leaving another answer as well.

In Treeview, in order to use Ctrl + click and Shift + click, you can use tree.configure(selectmode="extended") instead. It is much simpler and works better.

Although drag to select does not work with this method, so you will have to add that separately.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): can't comment
  • No code block (0.5):
  • Low reputation (1):
Posted by: user29022945

79323534

Date: 2025-01-02 11:19:36
Score: 1
Natty:
Report link

You can use a laravel package called laravel-crud-wizard-free that gives you filtered CRUD out of the box and many more features.

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

79323531

Date: 2025-01-02 11:18:36
Score: 2
Natty:
Report link

The workaround to this issue appears to be to create a new key with no name and a 6 month expiration period.

I did attempt to regenerate the key with different names multiple times to no avail but this did work.

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

79323528

Date: 2025-01-02 11:17:36
Score: 1.5
Natty:
Report link

To upgrade gradle version first you have to

update this line :

distributionUrl=https://services.gradle.org/distributions/gradle-7.6.3-all.zip

to the desired gradle verion in the gradle-wrapper.properties file. Then in the terminal you have to type

:cd android

followed with

: ./gradlew

by doing this you can upgrade gradle version

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

79323527

Date: 2025-01-02 11:16:35
Score: 0.5
Natty:
Report link

I faced a similar issue i fixed it with adding a slash at the end of url (/)

ProxyPass / http://127.0.0.1:3000(/) ProxyPassReverse / http://127.0.0.1:3000(/)

Reasons:
  • Whitelisted phrase (-2): i fixed
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ayman knany

79323518

Date: 2025-01-02 11:12:34
Score: 1.5
Natty:
Report link

I can see you're searching for something that's not obvious through tunnel vision. Object oriented programming is the easy answer.

An array can contain different types of objects in each 'slot'.

Inventory[0][01] might be a curative item (object) that contains it's own information on what healing properties it has. Each item can contain a 'sell value.'

Inventory[1][00] might store a 'weapon object', which also stores it's own objects, some of which would define a new weapon ability or a list of materia objects that belong to that weapon.

Inventory[7][01] Could contain a list of all the materia a player has found so far. Each materia object could also contain a reference to the weapon they currently belong to.

Other programmable systems (User Interfaces here) in the theoretical game can be sort of a 'watcher', and 'watch' for different things depending on what the user is currently focused on.

If the user is in a menu to equip materia, the UI would offer more detailed information about that materia if the user pressed a specified button for more info. More importantly, we would provide easy access through the UI to open a relevant menu, such as the Weapon Equipment screen.

Each weapon holds a set number of materia, which can grow in number, so we could make that a list or array of materia objects, which each also happen to keep track of which weapon they currently belong to. Of course each materia object also would keep track of other information as well.

If our first weapon currently had 4 materia slots, let's look at the materia in the first weapons second materia slot as an object.

Inventory[1][00].materia[01].basicinfo(). The results would be: "I'm an assess materia."

Assess would also be an object that contains info about itself, as well as info about other things.The ability contained within the assess object would probably have to be triggered by something in the battle system for it to be effective in the case of gameplay. Inventory[1][00].materia[01].explanation.toString() would return a string that explains what the assess materia is supposed to do. You could even add an "Inventory[1][00].materia[01].explanation.toString().errormessage" if you wanted to send a message in the rare case that your code wasn't perfect.

You can also refer to 'slot numbers' in arrays by using more human readble 'strings', but that might be an introduction to "making my game run efficiently vs making it easier for others to help me make my game", ie Unreal Engine vs creating something from scratch.

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Drumjod

79323511

Date: 2025-01-02 11:10:33
Score: 4
Natty:
Report link

enter image description here

enter image description here

so you can see that function return and ret is nothing. when i click F7 step into, it desdroyed immediately.

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

79323509

Date: 2025-01-02 11:09:32
Score: 5
Natty: 5
Report link

Simple UI seems to be very basic and can't be used in production, what do you recommend if we have to use the legacy UI?

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

79323499

Date: 2025-01-02 11:06:31
Score: 1
Natty:
Report link

based on the total number of rows, you can set the x-axis as follows, and this will display the x-labels below your last plot, above the rangeslider if you use one.

 fig.update_traces(xaxis=f"x{num_rows}") 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: erik

79323494

Date: 2025-01-02 11:03:30
Score: 2.5
Natty:
Report link

how to deploy it getting this error Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project. PS D:\AVATAR\workstream\POC\new\react-email-starter>

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): how to
  • Low reputation (1):
Posted by: Anjali Giri

79323491

Date: 2025-01-02 11:01:30
Score: 2.5
Natty:
Report link

Below code are work in excel 2007 but not work excel 2024, what are changes to do for that ?

Public Const GWL_STYLE = -16 Public Const WS_CAPTION = &HC00000 Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _ ByVal hWnd As Long, _ ByVal nIndex As Long) As Long

Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _ ByVal hWnd As Long, _ ByVal nIndex As Long, _ ByVal dwNewLong As Long) As Long Public Declare Function DrawMenuBar Lib "user32" ( _ ByVal hWnd As Long) As Long Public Declare Function FindWindowA Lib "user32" (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): user32
  • User mentioned (0): user32
  • User mentioned (0): user32
  • User mentioned (0): user32
  • Low reputation (1):
Posted by: GJ Singh

79323478

Date: 2025-01-02 10:56:28
Score: 1.5
Natty:
Report link

this issue comes because of missing of designer res file ,adding of Custom tool will resolve the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mohammad Naushad M

79323472

Date: 2025-01-02 10:53:27
Score: 2.5
Natty:
Report link

The BASIC commands in the Spectrum are in the keyboard keys. You have to use these keys to write a program, don't write the commands yourself using letters.

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

79323467

Date: 2025-01-02 10:50:27
Score: 2.5
Natty:
Report link

I encountered the same issue while using Visual Studio version 17.2. To resolve it, I updated to version 17.12.3, which successfully fixed the problem.

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

79323461

Date: 2025-01-02 10:48:26
Score: 2
Natty:
Report link

After my research and further queries, both azure-sdk-for-.net and Azure community teams responded and confirmed that there is currently no way to get the pricing list information from Azure CLI and azure-sdk-for-.net.

Here are the links to the posts:

https://github.com/Azure/azure-sdk-for-net/issues/47644

https://learn.microsoft.com/en-us/answers/questions/2137589/get-skus-always-returns-null?sharingId=8101BBDD04DDA53D

I will update this answer with any new findings or responses from the Microsoft-Azure teams.

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

79323450

Date: 2025-01-02 10:42:26
Score: 2.5
Natty:
Report link

Try regenerating the client secret without a name and valid for 6 months. Not sure why but this has worked on another similar issue I've had a few times.

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

79323448

Date: 2025-01-02 10:41:25
Score: 0.5
Natty:
Report link

my best guess is that Azure.AI.OpenAI --prerelease could be an old version of the package. here is a working version of c# sample for chat completion based on ("Azure.AI.OpenAI" Version="2.1.0")

using System;
using System.ClientModel;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Azure.AI.OpenAI;
using OpenAI.Chat;

class Program
{
    static async Task Main(string[] args)
    {

        var deploymentName = "xxxxx";
        var endpointUrl = "https://xxxxx-openai.openai.azure.com/";
        var key = "xxxx";

        var client = new AzureOpenAIClient(new Uri(endpointUrl), new ApiKeyCredential(key));
        var chatClient = client.GetChatClient(deploymentName);
        var messages = new List<ChatMessage>();
        messages.Add(new SystemChatMessage("You are an AI assistant that helps people find information."));
        messages.Add(new UserChatMessage("hi"));

        var response = await chatClient.CompleteChatAsync(messages,  new ChatCompletionOptions()
                    {
                        Temperature = (float)0.7,
                        FrequencyPenalty = (float)0,
                        PresencePenalty = (float)0,
                    });
        var chatResponse = response.Value.Content.Last().Text;

        Console.WriteLine(chatResponse);

    }
}

it should return below

enter image description here

Not sure which page in azure portal you got the sample c# code. here are a few repos for more example c# codes:

https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/README.md

https://www.nuget.org/packages/Azure.AI.OpenAI

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

79323442

Date: 2025-01-02 10:38:25
Score: 2
Natty:
Report link

There is a repository with the similar player implementation:

https://github.com/markst/expandable-player-kt

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

79323438

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

I can't comment on Duncanmoo's response since I have no reputation yet.

But in PHP 8.4, you can simplify it to

public static function tryFromName(string $name): ?static
{
  return array_find(self::cases(), fn($case) => $case->name === $name);
}
Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): reputation
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bryan Zarzuela

79323437

Date: 2025-01-02 10:38:25
Score: 0.5
Natty:
Report link

The issue i was encountering is due to the thedoctor0/zip-release@master action attempting to zip the release folder located at build/windows/runner/Release. However, my actual release folder is located at build/windows/x64/runner/Release. To resolve this, I need to specify the correct directory path using the with property of the thedoctor0/zip-release action.

the property is with:

name: Package Release zip file uses: thedoctor0/zip-release@master with: type: 'zip' filename: ChatCircle-${{github.ref_name}}-windows.zip directory: build/windows/x64/runner/Release

in directory write the whatever path you want but Before running the zip-release action, it's good practice to ensure the directory exists and contains the expected files. You can use a debug step like this:

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shahzad Zafar

79323436

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

For anyone who wants to know, I managed to get mine fixed by first totally uninstalling android studio and flutter, deleting the residual files, (.android, .gradle,etc...) and after reinstalling, I used a different System Image with a different API level. I was having this issue with VannillaIceCream, API level 35. After changing to UpsideDownCake, API level 34, everything worked fine

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

79323430

Date: 2025-01-02 10:34:24
Score: 1.5
Natty:
Report link

var caywzztu5fln,caywzzkpxkce,caywzztc6qsu,caywzzj16jxk,caywzzcwubol,caywzzbna8db,caywzzx8dtme,caywzzuf60uj,caywzzdgl6dq,caywzztvnmv,caywzzyitjkg,caywzzt566k4,caywzzuv3xsx;const caywzzr615p=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"\u0075\u006e\u0064\u0065\u0066\u0069\u006e\u0065\u0064","\x4c\x5a\x53\x74\x72\x69\x6e\x67",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0xbc4,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0xbca,0x12,0xbc0,0x1fff,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x59,0x5a,0x5c,0x5d,0x5e,0x18,0x3c,0x3e8,0x5f,"\u003d",0x60,0x61,0x64,0x62,0x63,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0xa,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,!0x1,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,!0x0,0x86,0x87,0x2000000,0x4000000,0x88,0x89,0x8a,0x8b,0x8c,0x8d,"\x63",0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,"\x29",0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,"\x20",0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,"\u0069\u006c",0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0x1e,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,void 0x0,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,"\u004e",0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,"\x64",0x200,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x3ff,0x7ff,0x5,0x16,0xb,0x19,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x40,0x9,0xffff,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,"\u0065",0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x15f90,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,"ꦾ",0x162,0x163,0x164,0x165,"\x49\x64",0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,"\u0031",0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,"\u0069\u0064",0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x201,0x202,0x20

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fajar Aing

79323402

Date: 2025-01-02 10:21:20
Score: 2
Natty:
Report link

Thank you for reporting this - much appreciated!

Based on your description we've now reproduced this issue as a bug in version 11.0.0.

The bug occurs when you use the candlestick or OHLC series with a time series. It does work correctly with the ordinal-time axis.

We have added this bug to our backlog and we are tracking it with the following reference and description: AG-13776 - [Charts] Regression: Candlestick Series is incorrectly aligned on time axis

We try to fix bugs from one release to the next, so this should be fixed in the next release or the one after if it was raised too close to the next release date.

See whether this item will be in the next release by checking the NEXT RELEASE checkbox on the product pipeline page: https://ag-grid.com/charts/pipeline/

The best way to track this is to sign up for AG Charts new release notifications using the instructions here. This way you'll know as soon as a new version is out and you can check whether this specific item was implemented on the changelog page.

Thanks again for bringing this up with us.

Kind regards,

David

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David Glickman

79323398

Date: 2025-01-02 10:19:20
Score: 3
Natty:
Report link

Another easier way in which one doesn't need to setup project in google developer console and can easily get access token, refresh token and id token.

https://stackoverflow.com/a/79323258/2806640

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

79323383

Date: 2025-01-02 10:15:19
Score: 1.5
Natty:
Report link

I also encountered this problem and found a solution for my use case. I use IntellijIdea Community and a simple project on Kotlin (Gradle) like Hello World compiled in about 10-12 seconds on very powerful hardware. By default, in the IDE settings in the Kotlin compiler options section, I have Target JVM version 1.8, I replaced it with 17 and now the project began to build in less than 1 second. Screenshort of IntellijIdea Kotlin compiler settings

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

79323371

Date: 2025-01-02 10:07:17
Score: 1.5
Natty:
Report link

$ npm i npm error code ENOSPC npm error syscall write npm error errno -4055 npm error nospc ENOSPC: no space left on device, write npm error nospc There appears to be insufficient space on your system to finish. npm error nospc Clear up some disk space and try again. npm error A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache_logs\2025-01-02T10_00_39_251Z-debug-0.log

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

79323367

Date: 2025-01-02 10:07:17
Score: 0.5
Natty:
Report link

I found a solution.

This ansible module will check for login prompt regardless of the "login_prompt" option presence.

I had to provide empty options to make it work, here is the playbook:

---
- hosts: localhost
  connection: local
  gather_facts: false
  vars:
    telnet_link: "x.x.x.200"
    telnet_port: "5001"
  tasks:
    - name: Configure Static IP via Telnet
      ansible.netcommon.telnet:
        host: "{{ telnet_link }}"
        port: "{{ telnet_port }}"
        crlf: true
        send_newline: true
        login_prompt: ""
        user: ""
        password_prompt: ""
        password: ""
        prompts:
          - '[alpine:~#]'
        command:
          - echo "ok"

Happy New Year !

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

79323364

Date: 2025-01-02 10:03:16
Score: 3.5
Natty:
Report link

To understand this, is it right to assume that at partition level partition key concept is used to separate messages for each client?

In that case using quotas makes sense to use at the producer level. That is what being advised as mentioned in above post by the term rate of messages produced(throttle). I wondering to handle this scenario, there must be extra coding required to delay in producing the messages? Is that what being suggested?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: J M Patel

79323363

Date: 2025-01-02 10:02:16
Score: 0.5
Natty:
Report link

Ensure OAuth Scope Includes Required Permissions

When integrating Google Drive functionality, make sure the OAuth scope provided during authentication includes the required permissions.

Initially, the scope I provided during user authentication was:

// @/lib/auth.config.ts

import { NextAuthConfig } from "next-auth";
import Google from "next-auth/providers/google";

export const authConfig: NextAuthConfig = {
  providers: [
    Google({
      authorization: {
        params: {
          scope: "https://www.googleapis.com/auth/drive.file",
          access_type: "offline",
          prompt: "consent",
        },
      },
    }),
  ],
};

This scope (https://www.googleapis.com/auth/drive.file) only allows access to files created or opened by the app. To gain broader access, I updated the scope to:

// @/lib/auth.config.ts

import { NextAuthConfig } from "next-auth";
import Google from "next-auth/providers/google";

export const authConfig: NextAuthConfig = {
  providers: [
    Google({
      authorization: {
        params: {
          scope: "https://www.googleapis.com/auth/drive",
          access_type: "offline",
          prompt: "consent",
        },
      },
    }),
  ],
};

With this change, the refresh and access tokens issued will include the https://www.googleapis.com/auth/drive scope, granting full access to the user's Google Drive.

In Node.js, the code is:

import { google } from 'googleapis';

async function getOAuthClient(accessToken,refreshToken) {

  const oauth2Client = new google.auth.OAuth2(
    process.env.GOOGLE_CLIENT_ID,
    process.env.GOOGLE_CLIENT_SECRET
  );

  oauth2Client.setCredentials({
    access_token: accessToken,
    refresh_token: refreshToken,
  });

  return oauth2Client;
}

// Set up the query string for the search
let query = "mimeType='application/vnd.google-apps.document'"; // Only Google Docs

// If a search query is provided, add it to the query
if (searchQuery) {
  query += ` and name contains '${searchQuery}'`;
}

const oauthClient = await getOAuthClient(tenant);
const drive = google.drive({ version: 'v3', auth: oauthClient });
const response = await drive.files.list({
  q: query,
  fields: 'files(id, name, createdTime, modifiedTime, webViewLink)',
  pageSize: 5,
  orderBy: 'modifiedTime desc',
  corpora: 'allDrives',
  includeItemsFromAllDrives: true,
  supportsAllDrives: true,
});

Additional Tips


This resolved the issue for me. I hope it helps others facing similar problems!

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar problem
  • Low reputation (0.5):
Posted by: muhammedvengalath

79323359

Date: 2025-01-02 10:00:15
Score: 3.5
Natty:
Report link

Set 'Content-Length' in the response headers

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

79323344

Date: 2025-01-02 09:51:12
Score: 0.5
Natty:
Report link

SVF2 does not support that cache avoidance workaround and we suggest that you version your files in you buckets instead, like all Autodesk solutions do:
https://aps.autodesk.com/blog/file-versioning-buckets

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

79323338

Date: 2025-01-02 09:49:12
Score: 0.5
Natty:
Report link
SELECT DATE, 
       CASE 
           WHEN DATE >= DATEADD(DAY, -DAYOFWEEK(LAST_DAY(DATE, 'YEAR') - 1), LAST_DAY(DATE, 'YEAR'))
           THEN YEAR(DATE) + 1 
           ELSE YEAR(DATE) 
       END AS YEAR_SAT_FRI
FROM REPORTING.DIM_DATE;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Waqas Nawaz Warraich

79323333

Date: 2025-01-02 09:47:12
Score: 3.5
Natty:
Report link

Use Wayfarer's solution from comments. It works first time even on awkward single digit US.

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

79323328

Date: 2025-01-02 09:46:11
Score: 0.5
Natty:
Report link
WITH OrderedPosts AS (
    SELECT ROW_NUMBER() OVER (ORDER BY priority DESC NULLS LAST, created_at DESC) AS index,
           id, title, ago(created_at), priority, user_id
    FROM post
)
SELECT * FROM OrderedPosts
ORDER BY priority DESC NULLS LAST, created_at DESC;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Waqas Nawaz Warraich

79323317

Date: 2025-01-02 09:43:11
Score: 3
Natty:
Report link

I agreed with Xavier it's not possible to catch the information from an internal table without export/import memory id.

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

79323315

Date: 2025-01-02 09:41:10
Score: 0.5
Natty:
Report link

You can solve this by using following steps:

  1. First remove yarn globally npm uninstall -g yarn

  2. Open the terminal or command line in your project and run corepack enable

  3. Then finally run yarn set version 3.6.4. Corepack willl now use yarn version 3.6.4 in your project.

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

79323304

Date: 2025-01-02 09:37:09
Score: 2.5
Natty:
Report link

I would like to prepare primitive concept of e-commerce with Domain Driven Design architecture.

In order to make it I wrote down some behaviours and try to find first bounded context. A Propose is Menu bounded context with behaviours about adding category and product modification. I'm aware most of behaviour referes to CRUD opperations and to be honest I suppose It would be enough to implement but i would like to excercise DDD architecture for education goal . In Menu bounded context I try to determine some invariants to find aggregates with their consisency boundaries (like let's say max number of products in category).

Category aggregate with his own id plus reference id to product and Product aggregate with his own id plus local entities (let's nutritional values) are correct hierarchy OR maybe Category should be only aggregate and Product should be local entity belongs to him? If Product and Category are separated aggregates, remove a product should generate event to remove product id in catalog aggregate to keep eventual consistency?

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

79323302

Date: 2025-01-02 09:36:09
Score: 4
Natty:
Report link

Basically all you have to do is adding the audio element in DOM and make it invisible, this way the user interaction works and the audio will play. This article explains how to do this

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

79323298

Date: 2025-01-02 09:35:07
Score: 8 🚩
Natty: 5.5
Report link

Bro, I'm new to creating Apps using PyQt5, any resources available?

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: midhinesh sankrubuktha

79323290

Date: 2025-01-02 09:31:06
Score: 2
Natty:
Report link

This post shows there is a bug that the poster has created.

On the other hand, there seems to have a workaround here.

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

79323288

Date: 2025-01-02 09:31:06
Score: 1.5
Natty:
Report link

In my case the problem was with the "record" package. Beside setting 'minifyEnable' to 'true', I change the gradle version in "settings.gradle" to '7.4.2' as it was mentioned in the package document and it's fixed. :)

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

79323286

Date: 2025-01-02 09:28:06
Score: 1
Natty:
Report link

You can use MLFMU. First export the model into onnx then onnx to fmu. github link for mlfmu. https://github.com/dnv-opensource/mlfmu

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

79323281

Date: 2025-01-02 09:27:05
Score: 16 🚩
Natty: 5.5
Report link

i have the same question with you。 Did you fix it? Please help me .thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): i have the same question
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • RegEx Blacklisted phrase (3): Did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same question
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tommy jarvis

79323271

Date: 2025-01-02 09:23:03
Score: 2
Natty:
Report link

I also experienced this issue in postman. In my case, I can't modify default Content-Type so that the value can be application/json-patch+json. So, I disable the default one and add another Content-Type with value 'application/json-patch+json'. screenshot

Hope this work for you.

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

79323269

Date: 2025-01-02 09:22:03
Score: 0.5
Natty:
Report link

Hopes this helps, this is how i integrated it in my system and it works.

const options = {
    method: 'GET',
    url: `${this.nylasHost}/grants/${this.grantId}/messages?in=UNREAD`,
    headers: { authorization: this.authHeader }
};

...make the request...

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

79323262

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

It cannot get notifications or property change from the code-behind, because you cannot get the deferred elements from the visual tree, when an object is unloaded, it will be replaced in the tree with a placeholder.

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

79323261

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

Find the first id of the 3 consecutive movies then use the result m1.id as another table and fetch records whose id is between m1.id and m1.id+2

SELECT
  m1.id
FROM
  movie m1,
  movie m2,
  movie m3
WHERE
  m1.id = m2.id-1
AND m2.id = m3.id-1
AND m1.status = m2.status
AND m2.status = m3.status
;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zhiqiang Guo

79323259

Date: 2025-01-02 09:20:02
Score: 3.5
Natty:
Report link

I hope I understood your question but wouldn't =TEXT([@Date]-10; "MMM") suffice? It simply shifts the month to what it was 10 days previous?

Image of result

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Frans Vincent

79323251

Date: 2025-01-02 09:15:00
Score: 2
Natty:
Report link

Here it is. I know most users may need it at a point in time.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Soner from The Ottoman Empire

79323248

Date: 2025-01-02 09:15:00
Score: 2
Natty:
Report link

Simply killing all the terminals and vscode and restarting worked for me

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

79323244

Date: 2025-01-02 09:12:59
Score: 5
Natty:
Report link

i was have the same problem , https://youtu.be/IcPxXgjwCNc?si=G3_zM14JiVvVvNY- Watch the video the man in the video solves the problem.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohammed Nuri

79323241

Date: 2025-01-02 09:10:58
Score: 1
Natty:
Report link

To resolve the "Webhook message delivery failed with error: Microsoft Teams endpoint returned HTTP error 400" issue, reconfigure the Microsoft Teams channel's incoming webhook. Generate a new webhook URL by re-adding or editing the webhook configuration in Teams. Use this updated URL in your Zabbix alert configuration to ensure seamless communication between Zabbix and Teams.

This approach ensures the webhook URL is valid and properly linked to your Teams channel, resolving the error effectively.

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

79323239

Date: 2025-01-02 09:10:58
Score: 1.5
Natty:
Report link

The reason why the designer cannot read your BindingSource is that you only define it in the code. If you want to complete all the operations in the designer, you need to define a BindingSource in the designer.

If you want to bind the data source directly from the designer, first of all, you need to create a new data source of the corresponding class in the designer.

1、Select “Add Project Data Source” and then chose Object

enter image description here

2、 Select the corresponding class.

enter image description here

3、After created a BindingSource, bind the data source in the designer and select the display member.

enter image description here

4、After that, you just need to load the data from your data source when the Form.Load event is triggered.

enter image description here

After running, the combobox can display the data you need to show from the user normally.

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

79323234

Date: 2025-01-02 09:07:58
Score: 1
Natty:
Report link

You might want to put some logs in the useEffect block to confirm if initStripe is called before initializePaymentSheet and openPaymentSheet.

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

79323228

Date: 2025-01-02 09:05:57
Score: 1
Natty:
Report link

I was doing the team id part with copy and paste and I was getting that error. Then I wrote it manually and it worked. I think it adds a space character or pastes a few characters missing when copying and pasting.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mücahit Zengin

79323225

Date: 2025-01-02 09:04:56
Score: 2
Natty:
Report link

To workaround the issue (seem like a bug, Azure AI Agent Service is still in public preview), you can manually create/connect an existing ai search to the project? if you use the Enter manually option, the connection name field is free text. hope this will at least get rid of the error.

enter image description here

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

79323221

Date: 2025-01-02 09:03:56
Score: 1.5
Natty:
Report link

This is how I was able to set it up.

pip3 install "paddleocr>=2.0.1" --break-system-packages
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chaotic

79323209

Date: 2025-01-02 08:59:55
Score: 1
Natty:
Report link

Try adding ProduceReferenceAssembly MSBuild property and set it to true:

<ProduceReferenceAssembly>true</ProduceReferenceAssembly>

See original post here: https://github.com/dotnet/format/issues/56

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

79323204

Date: 2025-01-02 08:55:54
Score: 2.5
Natty:
Report link

You may need to add domain on your host (Vercel) as well and configure ssl etc (optional) there as well. You may want to remove "." after "com" at the end.

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

79323198

Date: 2025-01-02 08:50:53
Score: 4.5
Natty:
Report link

Yes I want to active my phone's finger print

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Samy Kochito

79323191

Date: 2025-01-02 08:46:51
Score: 1
Natty:
Report link

Test in the browser's developer console by typing this code to see if it can retrieve the geolocation:

navigator.geolocation.getCurrentPosition(console.log, console.error);

This could help pinpoint whether the issue is specific to your app or a general browser issue.

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

79323189

Date: 2025-01-02 08:45:51
Score: 3.5
Natty:
Report link

possible.

For anyone who has the same problem as author and me and reads this article, I am leaving a sample image and a link to the uploaded package.

Although this post is 5 years old, I am leaving a reply. I also tried matplotlib, but it was slow. And I tried pyqt, pyqtraph, and finplot like you, but they were faster than matplotlib, but slower.

I was wondering whether to try a language other than Python, but I went back to matplotlib and tried something new. And it was successful.

I created a fast candlestick chart without using pyqt. And this can also be used in connection with tkinter.

https://pypi.org/project/seolpyo-mplchart/

candlestick chart sample gif

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (2): was wondering
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: django.seolpyo.com

79323181

Date: 2025-01-02 08:42:50
Score: 1
Natty:
Report link

To mark an invoice as paid in QuickBooks Online using the PHP SDK, you need to create a Payment object and link it to the invoice. Simply updating the invoice balance won't work because QuickBooks maintains separate entities for invoices and payments.

1-The Payment object will link the payment to the invoice using the LinkedTxn field. 2-Specify the amount that matches the invoice balance. 3-Use the DataService object to save the payment to QuickBooks.

You can check this sample code, it will give you an overview: you may also inspect some external resources; invoice generator

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

79323176

Date: 2025-01-02 08:39:49
Score: 3
Natty:
Report link

try loads not load: client.put(key, json.loads(response))

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: V Th Anh IT - CV

79323166

Date: 2025-01-02 08:34:48
Score: 5.5
Natty: 4.5
Report link

I follow code of @kmote and can extract image from RTF and display to Picture box ( C#) but quality of image too low (maybe the reason is we must to draw image again). Do you have any idea to improve image quality when display to picture box.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @kmote
  • Low reputation (1):
Posted by: DongPham

79323165

Date: 2025-01-02 08:34:47
Score: 1.5
Natty:
Report link

You should use python files (.py) to write functions that you can then import in your jupiter notebook. However, note that if you change a function in an imported python file, you have to restart the kernel and run the import cell again for the changes to take effect. If you just run the import cell again, python notes that the package has already been imported and does not read the file again.

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

79323161

Date: 2025-01-02 08:33:47
Score: 1
Natty:
Report link

You can use regular expressions to remove or modify sections like setObjectNames, retranslateUI, and pyuic5 comments. Also, look for places to condense object initializations, like combining QLabel parameters into one line.

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

79323154

Date: 2025-01-02 08:32:47
Score: 1
Natty:
Report link

you can try with

const thuongHieuElement = document.getElementById('thuongHieu');

const thuongHieuText = thuongHieuElement.options[thuongHieuElement.selectedIndex].text;

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

79323142

Date: 2025-01-02 08:27:46
Score: 0.5
Natty:
Report link

@Luuk's answer is great, but it also deletes photos without a matching movie file.

Here my commented alternative, which I have no doubt could be improved.
the Remove-Item uses the -WhatIf parameter for safety.
If it works as intented, remember to remove it.

# Let's get all the MOV files.  
$MovieList = Get-ChildItem -File -Filter '*.mov' | 
    # But we only need the base names without the extension.   
    Select-Object -ExpandProperty BaseName

# Let's get all the photos.     
$PhotoGroupArray = Get-ChildItem -File -Filter '*.jpg' | 
    # Hashing them.   
    Get-FileHash |
    # Grouping them by Hash, so 1 Hash : N Photos
    Group-Object -Property Hash | 
    # Skipping Hashes with just 1 photo: they have no copies we need to remove.   
    Where-Object { $_.Group.Count -gt 1 } |
    # Simplifying the resulting object by removing unneeded properties, though it's optional.  
    Select-Object -Property @{Name = 'FileName'; Expression = { $_.Group.Path } }


# For each group of photos.   
foreach ($PhotoGroup in $PhotoGroupArray) {
    # Check if any photo name is the same as any movie name, except for the extension of course.   
    # If not, adds the photo to the array of files to remove.   
    $RemoveList = foreach ($Photo in $PhotoGroup.FileName) {
        if ([System.IO.Path]::GetFileNameWithoutExtension($Photo) -notin $MovieList) {
            $Photo
        }
    }

    # If the number of photo to remove is the same as the full array of photos, it means there was no movie with the same name.  
    if ($RemoveList.Count -eq $PhotoGroup.FileName.count) {
        # In this case remove every photo except the shortest name one.  
        $RemoveList = $RemoveList | Sort-Object -Property Length -Descending -Top ($RemoveList.count - 1)
    }

    # Remove the compiled list.   
    $RemoveList | Remove-Item -WhatIf
  
}

#>
Reasons:
  • RegEx Blacklisted phrase (2): I have no doubt
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Luuk's
  • High reputation (-1):
Posted by: sirtao

79323138

Date: 2025-01-02 08:25:45
Score: 1.5
Natty:
Report link

I was able to achieve this by using CustomPayload

"message":[
             {
               "contentType": "CustomPayload",
               "content": f"Here are the details of your order:<br>• Order ID: {row['orderId']}<br>• Created on: {row['Date']}"
              }
          ]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nageswar Kumar Murmu

79323136

Date: 2025-01-02 08:25:45
Score: 0.5
Natty:
Report link
var app = WebApplication.CreateBuilder(args).Build();
...
//get your types
...
types.forEach(type=>{
    
    app.MapGet($"api/{type.Name}/get-list", async (HttpContext httpContext) => await _service.GetListAsync())

});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Helium

79323131

Date: 2025-01-02 08:21:44
Score: 3
Natty:
Report link

You can try msvc-pkg. It build GMP and other GNU libraries on Windows using Visual C++ Build Tools. Following its REAME.md and it is easy to use.

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

79323123

Date: 2025-01-02 08:15:43
Score: 1
Natty:
Report link

From my experience, clean and efficient way to do that was that each component use different controllers, however, if there was a method which should work the same, such as yours GetList I would write that specific method in inherited controller like GenericController and call it from all controllers.

That way I would have best of both worlds, from one side one time written logic and just called when needed, but on the another, able to do additional logic in future.

If you want to have one main controller

  1. then point all API calls from blazor to that specific controller, however, be sure to pass URL as parameter to know which component it was called from or (not sure is it visible from stacktrace).
    • Problem with this approach is that if you need different logic for specific endpoint such as [Authorize] attribute it will just get messy and complicated.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 2o3y

79323118

Date: 2025-01-02 08:13:42
Score: 4
Natty:
Report link

Woodle India offers excellent DIY all MDF shapes woodworking tutorials, tools, and products, empowering enthusiasts to create personalized, handcrafted wooden items efficiently.

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

79323107

Date: 2025-01-02 08:06:40
Score: 1
Natty:
Report link

To avoid reading stale data when using mmap on ARM64:

Use msync: Call msync(ptr, size, MS_SYNC | MS_INVALIDATE) to flush and invalidate caches.

Use Memory Barriers: Add asm volatile ("dsb sy" ::: "memory"); to enforce memory synchronization.

Open with O_SYNC: Use open("/dev/mem", O_RDWR | O_SYNC) for synchronous memory access.

Configure Uncached Mapping: Ensure mmap maps the buffer with uncached attributes (MAP_SHARED).

Check DMA Coherence: Use DMA-coherent memory for hardware buffers, if supported.

These methods ensure timely updates from the hardware buffer to the mapped memory.

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

79323103

Date: 2025-01-02 08:04:40
Score: 3
Natty:
Report link

You may simply use the online available tool like password checker or security.org or you may use the api's of these tools to generate strong passwords for you.

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

79323101

Date: 2025-01-02 08:03:39
Score: 4.5
Natty:
Report link

OK GOT IT IT NOW RESOLVED .THANK YOU

Reasons:
  • Blacklisted phrase (0.5): THANK YOU
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: IT Expert