79152815

Date: 2024-11-03 13:37:45
Score: 5
Natty:
Report link

is this problem only in this project or all projects? is this project you downloaded or not created in your PC? is this your first time to run project? can you show Flutter doc and grade files? did you try flutter clean and after that flutter pub get?

Reasons:
  • Whitelisted phrase (-2): did you try
  • RegEx Blacklisted phrase (2.5): can you show
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): is this
  • Low reputation (1):
Posted by: Talat Saleh

79152813

Date: 2024-11-03 13:34:44
Score: 1
Natty:
Report link

Fixed it by changing

AddHandler WebView.NavigationStarting, AddressOf ImageViewerStarting

to

AddHandler WebView.CoreWebView2InitializationCompleted, AddressOf ImageViewerStarting    
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: gchq

79152812

Date: 2024-11-03 13:34:44
Score: 4
Natty:
Report link

Found the solution!

When getting episode information from the playack endpoint use this:

GET https://api.spotify.com/v1/me/player?additional_types=episode

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

79152801

Date: 2024-11-03 13:28:42
Score: 1
Natty:
Report link

I found the answer to my question here on Stack Overflow once I found the right search terms. The short answer is yes, you can add a component that has already been instantiated with data to the DI container. However, there are some caveats to consider.

  1. The componet must be created, have it's data added then added to the Service Collection before the DI container is built. Once the Service Collection is built it is read only.

  2. This constructor must be used when adding to the Service Collection:

    ServiceCollection.AddKeyedSingleton[TService](object ServiceKey, object myComponentInstance);

  3. When the Singlketon instance is pulled from the DI container and used, it is NOT automatically disposed of and remains in the DI container until an explict Dispose is called on that instance or the application as a whole is exited.

There are additional details in the answer as described in this Stack Overflow question: AddSingleton<>() vs AddSingleton()

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

79152800

Date: 2024-11-03 13:28:42
Score: 3
Natty:
Report link

Running Git’s garbage collection solve same issue

git gc

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

79152794

Date: 2024-11-03 13:22:41
Score: 0.5
Natty:
Report link

I was having the same issue on all of my IOS simulators, tried multiple things:

  1. flutter clean
  2. flutter pub get

but it didn't work.

The issue was with the FCM token for firebase push notifications. You wouldn't face this issue on any physical device , but if you have to work on the simulator than the solution that i figured was i commented out:

final fCMToken = await FirebaseMessaging.instance.getToken();

After this i stopped having the issue so i did all the work on the simulator and when i had to push out the build i enabled it again and it was working fine on the physical device.

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

79152776

Date: 2024-11-03 13:14:38
Score: 3
Natty:
Report link

It's not perfect by any means, but this is the closest that you can get right now: https://github.com/apache/iceberg-python

An example with polars+duckdb https://performancede.substack.com/p/iceberg-tables-via-duck-db-and-polars

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ben Epstein

79152764

Date: 2024-11-03 13:09:37
Score: 0.5
Natty:
Report link

add this

set :passenger_roles, :all

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Maysam Torabi

79152758

Date: 2024-11-03 13:07:37
Score: 3.5
Natty:
Report link

Open Xcode setting then from accounts click Download profiles manually

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

79152754

Date: 2024-11-03 13:06:36
Score: 1
Natty:
Report link

delta format made it work

df.write.format('delta') \
   .mode('overwrite') \
   .option("path", path) \
   .saveAsTable(f"{database_name}.{table_name}")

df = spark.table(f"{database_name}.{table_name}").limit(1)

df.write.format("delta")\ 
  .mode("overwrite")\
  .saveAsTable(f"{database_name}.{table_name}")
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ndndhjx Bznznz

79152747

Date: 2024-11-03 13:01:36
Score: 2.5
Natty:
Report link
  1. have u run (set MSMPI) on cmd to setup mpi on environment variables? if not u can include the library paths directly after installing mpi from

  2. remove #include "stdafx.h".

  3. I've tried steps from YouTube and it works for me https://www.youtube.com/watch?v=L-xJreZ55aU&t=159s

  4. if it didn't work just email me --> [email protected]

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lilian Shaddod

79152741

Date: 2024-11-03 12:59:35
Score: 4.5
Natty:
Report link

It is easy to find ith smallest in a O(Log n) time which is better than O(n). The approach is to augment the RB tree into an Order statistics tree. the detailed explaination is found at

https://cexpertvision.com/2024/11/03/augmenting-data-structures/

https://www.youtube.com/watch?v=kqdX4jsdYJM

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ashish Seth

79152728

Date: 2024-11-03 12:51:33
Score: 1
Natty:
Report link

install this npx @next/codemod@latest next-async-request-api .

type tParams = Promise<{ slug: string[] }>;

export default async function Challenge({ params }: { params: tParams }) {
  const { slug } = await params;
  const productID = slug[1];
}

just install it you did correct

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

79152722

Date: 2024-11-03 12:45:32
Score: 3.5
Natty:
Report link

laravel stores uses critical information on sessions

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

79152705

Date: 2024-11-03 12:34:30
Score: 0.5
Natty:
Report link

Here’s the complete and cohesive lecture note that includes the initial introduction to search strategies, followed by the in-depth examination of BFS, DFS, Limited Depth Search, Iterative Deepening, Bidirectional, and Backward Searches.


Lecture Notes on Search Strategies in Problem Solving


Topic: Search Strategies in Artificial Intelligence
Example: Romania Map Navigation Problem


1. Problem Formulation

In designing an artificial agent to solve a problem, the issue is often framed as a state space represented by a graph. The goal is to search for a path from an initial state to a goal state within this graph, with each node representing a possible state in the problem and each edge representing an action to transition between states.


2. Navigation Problem Example

Consider a common problem-solving example: navigating the Romania map to move from Arad to Bucharest. Starting from Arad, the agent explores reachable cities, forming a tree-like structure of possible routes. At each city, the agent evaluates the next steps, building a search tree within the state space. This tree represents various paths the agent could take, allowing it to systematically explore routes until it reaches the goal state, Bucharest.


3. Tree Search Algorithm

A tree search algorithm explores paths by expanding nodes (states) based on available actions, aiming to find a path from the start to the goal. Key elements of this algorithm include:


4. Node Data Structure

Each node in the search tree contains:


5. Frontier Data Structures

The frontier is the set of nodes awaiting expansion and can be structured in several ways, depending on the search strategy:


6. Types of Search Strategies

Search strategies fall into two main categories:

  1. Uninformed (Blind) Search: Uses only information available from the state space, without any extra knowledge of the goal's proximity.
  2. Informed (Heuristic) Search: Uses additional data, or heuristics, that estimate the cost to reach the goal, making the search more efficient in finding optimal solutions.

7. Evaluating Search Strategies

Each search strategy is evaluated based on:


8. Breadth-First Search (BFS)

Breadth-First Search (BFS) explores each level of the search tree one at a time before moving to the next level. BFS is well-suited for finding the shortest path in an unweighted graph, as it processes all nodes at each depth sequentially.


9. Depth-First Search (DFS)

Depth-First Search (DFS) explores as far down a branch as possible before backtracking to explore other branches. DFS uses a stack (LIFO structure) to keep track of the current path.


10. Limited Depth Search (LDS) and Iterative Deepening Search (IDS)

To overcome DFS limitations, depth restrictions can be applied.

Limited Depth Search (LDS)

Iterative Deepening Search (IDS)


11. Bidirectional and Backward Search

Two advanced strategies for further efficiency include bidirectional and backward searches.

Bidirectional Search

Backward Search


Summary of Algorithm Comparison

Algorithm Completeness Time Complexity Space Complexity Optimality
Breadth-First Search Complete (O(b^d)) (O(b^d)) Yes (uniform cost)
Depth-First Search Non-complete (O(b^m)) (O(b \cdot d)) No
Limited Depth Search Complete (bounded) (O(b^d)) Similar to BFS Non-optimal
Iterative Deepening Complete & Optimal (O(b^d)) (O(b \cdot d)) Yes
Bidirectional Search Complete (bi-directional) (O(b^{d/2})) (O(b^{d/2})) Yes

Conclusion

Each search strategy has distinct advantages and trade-offs depending on the problem constraints. BFS is optimal for memory-rich scenarios, while DFS suits memory-limited cases. Iterative Deepening effectively combines both strategies, and bidirectional search offers efficient exploration when start and goal states are well-defined. By understanding these algorithms, AI practitioners can choose the most efficient search strategy for a given problem.

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

79152694

Date: 2024-11-03 12:28:28
Score: 2.5
Natty:
Report link

I faced the same issue, and tried many of the recommendations here. The only one the ended up working was:

pip install playsound==1.2.2

happy coding!

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

79152680

Date: 2024-11-03 12:21:27
Score: 1.5
Natty:
Report link

Most issues tend to be typos: try changing .game-screen { height: 110vh; ... } to 100vh and see if that resolves the problem.

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

79152679

Date: 2024-11-03 12:20:26
Score: 2
Natty:
Report link

Instead of using Wait(), when you are making POST call use await, Same while reading the response of the request that will eliminate the use of Wait() and Result

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

79152673

Date: 2024-11-03 12:17:25
Score: 4.5
Natty:
Report link

Thanks to Wiktor, lookaround is not supported

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

79152660

Date: 2024-11-03 12:08:24
Score: 0.5
Natty:
Report link

Late to the show. Apparently things have changed.

Using

 --set controller.config.allow-snippet-annotations="true"

... with the helm installation, did work for me.

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

79152658

Date: 2024-11-03 12:06:23
Score: 1
Natty:
Report link

Consider the following solutions:

  1. When creating the post, make sure to use update_field() for the event_date field. This function saves the value in a way that ACF and WordPress recognize.

  2. Re-save the post meta with acf_update_value:

    $event_date = '2024-01-01'; // Example date

    acf_update_value($event_date, $post_id, 'event_date');

  3. If the event_date is stored as YYYYMMDD (the ACF default) or Y-m-d, ensure that the value set programmatically matches this format. Passing an incorrectly formatted date can cause issues with sorting if ACF expects YYYYMMDD.

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

79152657

Date: 2024-11-03 12:05:23
Score: 1.5
Natty:
Report link

https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html

When you delete a bucket, there may be a delay of up to one hour before the bucket name is available for reuse in a new region or by a new bucket owner. If you re-create the bucket in the same region or with the same bucket owner, there is no delay.

https://repost.aws/questions/QUSYkbtoqFS3mEjDVWsy-cEw/is-it-possible-to-delete-a-bucket-and-create-again-the-bucket-on-a-different-region-with-same-name

When you delete a bucket, there is indeed a propagation delay before the bucket name becomes available for reuse. This delay can vary and is not precisely defined by AWS, but it typically ranges from a few minutes to several hours

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Dileepa Mabulage

79152656

Date: 2024-11-03 12:04:23
Score: 1
Natty:
Report link

foreground notifications are handled automatically by the firebase messaging plugin. So on the onMessage function, you don't need to use flutterLocalNotification plugin to show the notification. Since firebase messaging handles the notification, and the flutterLocalNotification plugin is also showing a notification, you will get two notifications in the notification tray.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Abdulkabir Toyyib toykam

79152650

Date: 2024-11-03 12:01:22
Score: 1
Natty:
Report link

stateDiagram [*] --> NotStarted : User has not submitted any application

NotStarted --> Registration : User registers on the website
Registration --> HomePage : User successfully registers and logs in
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zoba mustafa

79152648

Date: 2024-11-03 12:00:22
Score: 1
Natty:
Report link

The problem was that App was running into an error. In order to prevent data overwriting, it checks to see if the subfolder (containing the results CSVs mentioned in my question) already exists, and raises an error if it does asking the user to move or rename the subfolder. The subfolder already existed when I called the app, and so it raised the error to stderr and I wasn't checking or catching that. I think the simplest fix is to have check = True in the subprocess call to confirm it is completing it properly.

This solution was mainly due to @axerotol who linked me to an answer where they were discussing subprocess calls in detail. This led me to assign the subprocess output to a variable which I then inspected in Spyder, which immediately highlighted the issue.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @axerotol
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tim Kirkwood

79152644

Date: 2024-11-03 11:56:21
Score: 5.5
Natty:
Report link

for beginners, click on "maven-build-scripts-found" button of the notification from intellij.

i found this solution on second week of start working with intellij.

Maven Build Scripts Found - IntelliJ - What are the build scripts, where are they cached?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: user26658525

79152643

Date: 2024-11-03 11:56:20
Score: 1.5
Natty:
Report link

You need to go to Account Console instead of workspace console.

The former has a url is accounts.azuredatabricks.net. It is static with web title as "Account console"

The latter has a url with format like https://adb-675114237288296.16.azuredatabricks.net. Its web title is Databricks

Ref: https://learn.microsoft.com/en-us/azure/databricks/admin/#establish-first-account-admin

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

79152642

Date: 2024-11-03 11:53:20
Score: 1.5
Natty:
Report link

To fully answer your question, there needs to be a lot more detail on your side. Are you using hand made equations? Are you using animators with preset values? Where and how do you use time scale? Assuming you're talking about animations, the solution is easy - just progress the frames more in your animation. It's difficult to explain so I'll give an example: Let's say in 1 frame of animation, Jupiter is meant to move 100 units of radial distance. Instead of moving it 100 units, move it 1000 units for a X10 time scale, or 10,000 units for a 100X time scale.

Assuming you're using physical equations, you're multiplying by deltaTime somewhere. When you're doing that, you can multiply the deltaTime by another factor, as long as you're consistent with that all along your system. I suggest making a TimeUtil class, which will handle multiplications so yo uwill not use time.deltaTime outside of that class.

Reasons:
  • Blacklisted phrase (1): how do you
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Alon Livne

79152641

Date: 2024-11-03 11:53:20
Score: 0.5
Natty:
Report link

The addEventListener() method accepts an optional object of options as its third argument. If you set the signal property, you can remove all event listeners.

/**
 * 
 * @param {number} delay 
 * @param {AbortSignal} [abortSignal]
 * @returns {Promise<void>}
 */
export default function timeoutPromise(delay, abortSignal) {
    return new Promise((resolve, reject) => {
        if(abortSignal) {
            abortSignal.throwIfAborted();
        }

        const clearController = new AbortController();

        const timeout = setTimeout(() => {
            clearController.abort();
            resolve();
        }, delay);

        abortSignal.addEventListener("abort", () => {
            clearController.abort();
            clearTimeout(timeout);
            reject(new Error("Aborted"));
        }, {
            signal: clearController.signal
        });
    });
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alexey

79152636

Date: 2024-11-03 11:50:19
Score: 2.5
Natty:
Report link

After going through different methodes I found online, I found that adding the override property to the load_dotenv() like this load_dotenv(override=True) resolved my issue.

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

79152631

Date: 2024-11-03 11:49:19
Score: 0.5
Natty:
Report link

I've faced with the same issue. I restarted docker services after pruning and it worked.

docker system prune

systemctl restart docker.service
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: beyza_k

79152627

Date: 2024-11-03 11:47:18
Score: 3
Natty:
Report link

In the end, this was caused by an incorrect import being set by the IDE. When I removed ‘tutorials’ from the path, langgraph was able to start successfully.

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

79152625

Date: 2024-11-03 11:45:18
Score: 1
Natty:
Report link

Optimize the Seek Method

Even though seek () is the common approach to get directly to the designated spot on the video; however, this may result in choppy playback if the underlying mechanism for the video is not well optimized for seeking. There are some recommendations in this respect:

Buffering and Caching: Add a buffer to the video player that is set to a certain number of frames before the current position. This can facilitate seeking and make the movement more seamless.

Use a Separate Thread: When there is a need to perform seeking, do so in a different thread so as not to block the primary UI thread. Clock.schedule_once function in Kivy is able to manage UI updates thanks to its ability of scheduling the updates without pauses in video playback.

Implement Smooth Seeking

Instead of jumping directly for fast forward and rewind, create a way of seeking that is smooth and transitions gradually:

from kivy.clock import Clock

class VideoPlayerApp(MDApp):

Existing methods…

def seek_video(self, delta):

Calculate new position

new_position = max(0, min(self.video.position + delta, self.video.duration))

self.video.seek(new_position)

def rewind_5s(self):

self.seek_video(-5)

def forward_5s(self):

self.seek_video(5)

3.Associate Responsiveness with Button Presses.

Make sure that the button responses are quite seamless in execution:

Typical Debounce Button Presses: This is the responsibility of the mechanic engineer as he/she will be compelled to add a gradual switch to avoid surge in the button presses.

def on_rewind_press(self):

if no self.is_seeking:

self.is_seeking = True self.rewind_5s() Clock .schedule_once( lambda dt: self.reset_seeking(), 0,5 )

def reset_seeking(self):

self.is_seeking = False

Ffplyayer Features.

Place a check on FFpy - Player documentation for feature pointers that may help handle video rendering in a better way :

Seek Precision: Some players have the option of seeking and controlling which specific parts of the video to seek (e.g. keyframe seeking vs timestamp seeking) thus ensure you get the ideal user practices for their specified needs.

Error Handling: Handle your seek calls with appropriate error handling measures so that you cover for any unexpected behavior.

  1. Testing and Debugging

Log Seek Operations: However, to understand why the video does occasionally hop erratically, add logging around your seek calls to capture the current position before and after seeking.

def rewind_5s(self): what is the broadcast of cbc news on sirius radio p.118 new_position posture starting such discipline ccuneate.

new_position = max(self.video.position - 5, 0) cut footage to appropriate angle essentially unwiped so flip shot is never perfectly straight over the hand. THIS MEANS THEY WILL BE ABOUT 30 SECONDS LATE IN CUTTING THE FINAL Total SHOTPat SRI PRABHAKAR bhatt sharma rap known as Sri Prabhu animations Pritviraj lip synchronization. �[email protected] 194 look grammar in a more casual and friendly tone. Look 36:6-38:53 Facebook five feeds ten pounds, silence.

print(f"Seeking from {self.video.position} to {new_position}") self.video.seek(new_position) def forward_5s(self): new_position = min(self.video.position + 5, self.video.duration) print(f"Seeking from {self.video.position} to {new_position}") tell people that its a programming space video, cut comes at 4:37 with the drones likely altering the position. They must be kept centered and as still as possible. self.video.seek(new_position)

Copy

Alternative Libraries

Nonetheless, if the issues still stick, you might want to try other libraries:

Gstreamer: US Intel 2006. v Justin timbers act and log in around an enormous spotlight. Curtis new tip more Collins to scan for Tanning Youtube Chris Evans community screening event mannequin shaped lights travel Hypershrink DOM visuals roaming throughout. It is a very powerful multimedia framework which might outperform the seeking and playback centered sections.

Conclusion

Following through those bullet points, targeting optimization to the largest performance bottlenecks moving part of seeking implementation, handling responsiveness of buttons considerably better and looking at other libraries if necessary means you can safely boost greatly the performance of Kivy video player. Testing and debugging with logging will also help in determining the specific issues and enhancing user experience.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sundram Yadav

79152611

Date: 2024-11-03 11:36:15
Score: 2
Natty:
Report link

press 'ctrl + Shift + p', type 'Settings sync: Turn off', then restart your Vs code IDE. Then Accounts > Turn on backup and sync settings'. this works for me :)

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Assassin's Emperor

79152609

Date: 2024-11-03 11:35:15
Score: 2.5
Natty:
Report link

@Dnavir: "It didn't show that exception until I made p:commandButton's ajax="false"."

commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated

Fixed with:

<p:commandButton value="p:doButtonActionListener actionListener" actionListener="#{beWhereWhenController.doButtonActionListener()}" ajax="false" process="@this" />
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Dnavir
  • Self-answer (0.5):
Posted by: NOTiFY

79152602

Date: 2024-11-03 11:31:14
Score: 1
Natty:
Report link

install next-auth beta latest version and in .env copy that AUTH_URL=http://localhost:3000/ this if you deploy in vercel or other platform place that url here the error will go away

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

79152594

Date: 2024-11-03 11:29:13
Score: 1.5
Natty:
Report link

If you have all of the split apks then the app can be installed with below command

adb install-multiple base.apk config.xxx.apk config.yyy.apk

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

79152586

Date: 2024-11-03 11:26:13
Score: 1
Natty:
Report link
// Pass std::string to execvp() example:

const size_t BUFFER_SIZE = 1024;

int run(const std::string &s) {

char buf[BUFFER_SIZE];
char* p = buf;

char* argp[BUFFER_SIZE/4];
char** pp = argp;
*(pp++) = p;

for (const auto c:s) {
  char next_char = c;
  if (c == ' ') {
    next_char = '\0';
    *(pp++) = (p + 1);     
  }
  *p++ = next_char;
  *p = '\0';
}
*pp = nullptr;

return(execvp(*argp, (char**)argp));

}

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: iz56

79152584

Date: 2024-11-03 11:26:13
Score: 0.5
Natty:
Report link

In C it is possible to create maps using lookup tables.
Here a example:

#include <stdio.h>

static int parse_numbers[] = {
    ['1'] = 'A',
    ['2'] = 'B',
    ['3'] = 'C'
};

int main(void) {
    printf("%c\n", parse_numbers['1']);
    printf("%c\n", parse_numbers['2']);
    printf("%c\n", parse_numbers['3']);

    return 0;
}

These are powerful to obtain exactly what you asked for. It works thanks enums.
In fact, the following syntax produces the same result (discouraged!):

#include <stdio.h>

enum numbers {
    number_1 = 1,
    number_2 = 2,
    number_3 = 3,
};

static int parse_numbers[] = {
    [number_1] = 'A',
    [number_2] = 'B',
    [number_3] = 'C'
};

int main(void) {
    printf("%c\n", parse_numbers['1']);
    printf("%c\n", parse_numbers['2']);
    printf("%c\n", parse_numbers['3']);

    return 0;
}

This syntax is very reluctant from changes. It is easy to make mistakes changing the enum or the struct. Please, stay away from this, use the first one.

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

79152576

Date: 2024-11-03 11:22:11
Score: 5.5
Natty:
Report link

I also tried this code but it doesn't work for me.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Robert Mihai Mancas

79152572

Date: 2024-11-03 11:21:11
Score: 2
Natty:
Report link

My introduction to vite was caught in a problematic VScode build.

This is problem with 1.95 October update of VScode, downgrade to 1.94 solve problem

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Прохор Гарагуля

79152565

Date: 2024-11-03 11:17:10
Score: 5.5
Natty: 4.5
Report link

Have you solved this issue? I'm having the same project like this

Reasons:
  • RegEx Blacklisted phrase (1.5): solved this issue?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Phan Kế Vĩnh Hưng

79152558

Date: 2024-11-03 11:11:09
Score: 1.5
Natty:
Report link

I had same issue, and finally fixed my problem by enabling curl extension (Line937 extension=curl) in php.ini.

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

79152557

Date: 2024-11-03 11:09:08
Score: 0.5
Natty:
Report link

I cam across same issue. After some time checking my directories i found out that pip install <lib> installing the packages on a anaconda folder.

I uninstalled the anaconda from my device and installed the packages again using pip install <lib>, issue went away.

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

79152551

Date: 2024-11-03 11:05:07
Score: 4.5
Natty:
Report link

I used the wrong login lol. I used the account-id and user-id from the account detailes instead of creating a key. enter image description here

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

79152549

Date: 2024-11-03 11:05:07
Score: 4
Natty:
Report link

driver.Manage().Window.Maximize();

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rony Barua

79152541

Date: 2024-11-03 11:00:06
Score: 1.5
Natty:
Report link

Although this question is a bit old, the short answer to the (slightly rephrased) question "Is it possible to execute a page's function from a Firefox extension?" is yes, but there are a few moving parts given the code snippet in the question.

The first part is that tabs.executeScript injects code into the "isolated" world of content scripts. A function defined in the web page exists in the "main" world of the web page itself. Both worlds share the DOM, but they each get their own window object. (There are several ways to load a content script. This question uses tabs.executeScript, so this answer stays with that way.)

The second part is that window.eval() can execute a page's function (in the "main" world) from a content script. An alternative method is to add the code to a <script> tag and attach it to the DOM. Be aware that the page's content security policy may prevent either or both of those methods. There are a few long-standing bugs about that, because page CSPs aren't supposed to apply to anything an extension does.1 2

The third part is that the code snippet in the question has some errors in it, particularly that tabs.executeScript has no third parameter. The example code below reuses as much of the question as possible and works.

manifest.json

{
  "manifest_version": 2,
  "name": "Answer",
  "description": "Answer a Stack Overflow question",
  "version": "0.1",
  "content_security_policy": "default-src 'none'; object-src 'none'",
  "browser_specific_settings": {
    "gecko": {
      "id": "[email protected]"
    }
  },
  "browser_action": {
    "browser_style": true,
    "default_popup": "popup.htm"
  },
  "permissions": [
    "activeTab"
  ]
}

popup.htm

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
    <div class="page-choice">developer.mozilla.org</div>
    <div class="page-choice">support.mozilla.org</div>
    <div class="page-choice">addons.mozilla.org</div>
    <script src="popup.js"></script>
  </body>
</html>

popup.js

( function () {
  'use strict';

  document.addEventListener( 'click', ( event)  => {
    if ( !event.target.classList.contains( 'page-choice' ) ) {
      return;
    }

    browser.tabs.query( {
      active: true,
      currentWindow: true
    } ).then( tabs => {
      let activeTab = tabs[0];
      console.log( 'activeTab: ', activeTab );
      console.log( 'activeTab id: ', activeTab.id );
      let activeTabUrl = activeTab.url;
      console.log( 'Active tab URL:', activeTabUrl );

      browser.tabs.executeScript( activeTab.id, {
        // executeScript injects into the "isolated" world
        // window.eval() in turn throws code into the "main" world
        code: 'window.eval( \'answer();\' )'
      } ).then( console.log, console.error );
    }, error => {
      console.error( 'Error getting active tab URL:', error );
    } );
  } );
} () );

page.htm (the web page)

<!DOCTYPE html><html lang="en"><head>
  <title>Answer</title>
  <script src="page.js"></script>
</head><body>
</body></html>

page.js

function answer() {
  return location.href;
}

debug console output

activeTab:  Object { id: 2, index: 1, windowId: 1, highlighted: true, active: true, attention: false, pinned: false, status: "complete", hidden: false, discarded: false, … }
activeTab id:  2
Active tab URL: file:///C:/Data/mozdev/stackoverflow/page.htm
Array [ "file:///C:/Data/mozdev/stackoverflow/page.htm" ]
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Nanigashi

79152540

Date: 2024-11-03 11:00:06
Score: 1
Natty:
Report link

Use Remember For Static Values

val items = remember { listOf("ACCOUNTS", "BUDGETS & GOALS") }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhammad Hamza

79152538

Date: 2024-11-03 10:59:05
Score: 3.5
Natty:
Report link

use "Forfiles" dos command to trace the n of days old created file. for ex. use the below command

Forfiles -p "C:\Work Data\Len's Files\Data\Quicken\BACKUP" -s -m *.QDF-backup /D "-14" /C "cmd /c del /q @path"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @path
  • Low reputation (1):
Posted by: abdul jabbar

79152537

Date: 2024-11-03 10:59:05
Score: 3.5
Natty:
Report link

@LucileDT! Try to go to the settings section and leave the only 'Bookmarks' suggestion option.

FF Manual

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @LucileDT
  • Low reputation (1):
Posted by: DesiredName

79152534

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

Modeless/vbModeless didn't work for me when I wanted to keep seeing a userform, but have the worksheet activated after I clicked on something on the userform.

AppActivate Application.Caption solved the issue :

I understand Modeless/vbModeless gives you the possibility to work on the sheet or on the userform, but it does not reactivate the sheet.

AppActivate Application.Caption does that.

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

79152531

Date: 2024-11-03 10:55:05
Score: 1
Natty:
Report link

Make sure that point_4326 is a POINT type with SRID 4326 defined in the table, as different SRID values might interpret the coordinates differently. Your code is for SRID 4326 so if you have anything else selected for point_4326 select SRID 4326. Since you named your POINT 'point_4326' you probably did select it but check it twice.

If everything is as I told you then try running your query but switch Lng and Lat. If it doesn't show error do SELECT query to see row id 4601 and check if Lng and Lat values are correctly inputed. If yes-reply to this, we'll figure it out then.

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

79152524

Date: 2024-11-03 10:49:03
Score: 3
Natty:
Report link

Did you set the extra module settings for reflection, needed by GWT?

See https://libgdx.com/wiki/utils/reflection

Also the libGDX help has moved to Discord now.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: londonBadger

79152523

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

I find these sites useful for cards. In general, the implementation of this code requires the use of JavaScript libraries or tools:

GSAP ScrollTrigger is a powerful tool for creating scroll-linked animations. By combining GSAP with ScrollTrigger

Intersection Observer API is a native JavaScript API that allows you to detect when an element enters or exits the viewport without needing external libraries.

ScrollMagic is a popular library for controlling scroll animations.

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

79152522

Date: 2024-11-03 10:48:03
Score: 1
Natty:
Report link

Try to add all-open plugin into compilerPlugins section:

    <compilerPlugins>
        <plugin>spring</plugin>
        <plugin>jpa</plugin>
        <plugin>all-open</plugin>
    </compilerPlugins>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mikhail Meleshkin

79152518

Date: 2024-11-03 10:46:02
Score: 1
Natty:
Report link

Your code appears to be correct and should function as expected. However, if you're manually navigating to the /cart page in the browser, that could cause an issue. When you reload or visit the cart page directly, the application's state may be lost, which could affect the functionality. To avoid this, try to navigate within the application itself, rather than refreshing or directly entering the /cart URL.

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

79152503

Date: 2024-11-03 10:38:01
Score: 2.5
Natty:
Report link

You do not need to call Read before. It is probably best if you don't. My guess is you will miss the first record if you do.

İnce bir hata için uyarınız çok iyi, teşekkür ederim

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

79152497

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

It was because of barryvdh/laravel-dompdf. As soon as I got rid of the bridge, the fonts worked properly.

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

79152492

Date: 2024-11-03 10:34:00
Score: 1
Natty:
Report link

If you use ASP.NET and run into this issue, simply add this line:

builder.Services.AddViteServices(options =>
{
    options.Server.UseReactRefresh = true; // Add this line
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leon

79152489

Date: 2024-11-03 10:30:57
Score: 10.5 🚩
Natty: 6.5
Report link

hi did u manage to get an answer to this? facing the same problem too.

Reasons:
  • Blacklisted phrase (1): answer to this?
  • RegEx Blacklisted phrase (3): did u manage to get an answer to this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: javinchua

79152487

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

Afaik, this is not possible.

However, you can setup Nginx and configure multiple ports here and forward these to your Quarkus application.

Or you need to run multiple instances of your app on different ports.

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

79152467

Date: 2024-11-03 10:16:54
Score: 1
Natty:
Report link

IT goldman, Thanks for your reply and especially thanks for pointing out that my code worked. Your comment prompted me to further my testing. In fact I use DOMPurify library in addition to ckeditor 5 (https://ckeditor.com/ckeditor-5/). Your comment pushed me to test my DOMPurify code outside the ckeditor context and indeed I realized by doing this that my code worked as expected.

So I then investigated to understand what was happening by continuing testing ckeditor context.

In fact I had left the “font” plugin active in ckeditor configuration and because of that ckeditor was constantly adding this unwanted <span> tag after DOMPurify sanitization. What disturbed me.

<span style="background-color:transparent;color:#000000;"></span>

This post helped me identify and fix my problem https://github.com/ckeditor/ckeditor5/issues/6492

After removing the font plugin in ckeditor configuration everything works as expected.

In fact I don't even need to add DOMPurify anymore because ckeditor's Paste from Office/Paste from Google Docs feature cleans up google docs code perfectly for my needs.

Thanks again for your help and for taking the time to answer me because it allowed me to take a step back and fix my problem.

Thanks also for the idea of ​​the temporary conversion of strong to strong. I will keep this logic in my back pocket because it will certainly be useful to me in other situations.

I will modify the title of my post and add the label ckeditor because in fact the problem concerned more ckeditor than DOMPurify.

Thanks again

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ripcurl

79152466

Date: 2024-11-03 10:15:54
Score: 4
Natty:
Report link

So, this was ciphers setup. Had to shuffle them to get the 200 Code as expected.

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

79152461

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

I am Pathik Singh, and I want to tell you that there are many plugins which can solve your problem like: 1). SiteOrigin Widgets Bundle 2). Custom Sidebars 3). Widget Options 4). WP Tab Widget 5). Meks Smart Author Widget

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pathik Singh

79152457

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

I know that some time has passed since the question but I'd like to answer too: normally dd closes itself without any warning when it said that the copy is done. If you have a USB with light you can see it still writes data even after dd is closed (or check for I/O if you haven't).

conv=fdatasync force dd to verify if everything is written before closing itself: it's way more secure than leaving it without, expecially when you write a bootable ISO file in a USB key.

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

79152454

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

Have you ever tried putting a ./ before the json file e.g.

fetch('./data.json')
    // rest of you're code
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Strongsloth

79152447

Date: 2024-11-03 10:06:51
Score: 2.5
Natty:
Report link

You can add Shortcode to your WordPress plugin. Using Shortcode like [i20_Sidebar_Widgets] you can add this to your WP Blog Sidebar. Place a text widget from WP > Widgets and add Shortcode to that. For Sample Code to Create Shortcode based WordPress plugin please visit and download the Source code from here https://wordpress.org/plugins/i20-sidebar-widgets/

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

79152446

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

The three Lines startog with clf should not be indented. To fix this, delete all the white space to the left of clf on those lines.

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

79152428

Date: 2024-11-03 09:49:48
Score: 1.5
Natty:
Report link

Update /etc/systemd/resolved.conf:

sudo nano /etc/systemd/resolved.conf

Add the following line:

DNS=8.8.8.8 1.1.1.1

Restart the service:

sudo systemctl restart systemd-resolved
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Houssem-eddin JALLOULI

79152422

Date: 2024-11-03 09:44:47
Score: 4
Natty: 4.5
Report link

You could create a default variablegroup "default" with 1 dummy variable. If the developer does not provide a specific group name then your pipeline used the "default" group, else the specific group?

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

79152419

Date: 2024-11-03 09:41:46
Score: 1
Natty:
Report link

The issue has been solved in https://github.com/tesseract-ocr/tesseract/issues/4343.

tesseract-ocr is installable once again from the tesseract-ocr-devel and tesseract-ocr-daily PPAs.

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

79152412

Date: 2024-11-03 09:39:46
Score: 1.5
Natty:
Report link

How can you assume that an async operation is quick? If it's a network operation, the user might have a slow internet connection and the operation my take time. If the operation is gps one, the user might have low gpa signal and the operation might take time or never happen.

In your example, lets assume that the user is fetching the location. If the user is able to navigate away from the screen while the setState takes place then you will receive an error.

Same thing happens with other cases, for example while widgets are being animated, when passing a callback to a modal that contains the context ( for example, navigation callback) etc.

Always assume the worst scenario when taking decisions like this. Assume low internet connection, low gps signal, etc.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can you as
  • Low reputation (0.5):
Posted by: A.Ktns

79152408

Date: 2024-11-03 09:33:44
Score: 4
Natty:
Report link

Please try clicking on the "Toggle device toolbar" sign.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Burak KÜKRER

79152406

Date: 2024-11-03 09:33:44
Score: 0.5
Natty:
Report link

It is in fact possible to predict the length of a Zip archive ahead of time. If :

I've done that in client-zip precisely to enable progress bars and remove the need for chunked encoding. I don't know if there's anything equivalent in Python (or anywhere else).

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Touffy

79152404

Date: 2024-11-03 09:31:44
Score: 0.5
Natty:
Report link

In C++, when you use std::move on an object, you're not actually converting it into an rvalue reference (T&&). Instead, you're casting it to an rvalue, which signals the compiler that it can treat the object as a temporary and, if possible, move from it instead of copying. However, std::move does not alter the underlying type; it merely provides a hint for the compiler to use move semantics.

Here’s what’s happening in both examples:

Example 1: A&& func(A& rhs)

In this version, the function func returns an A&& (an rvalue reference to A). When you return std::move(rhs), you're directly returning an rvalue reference, which matches the return type A&&. This makes sense and will compile as expected.

Example 2: A func(A& rhs)

In this case, the function func has a return type of A, which is a value (not an rvalue reference). However, when you return std::move(rhs), you're still casting rhs to an rvalue reference (A&&). Here’s why this still compiles and behaves as you observed:

Automatic Conversion: When you specify a return type of A (a value), the compiler expects to create and return an A object. If you provide an A&& (via std::move(rhs)), the compiler interprets this as an instruction to move-construct an A from rhs rather than copy it. The compiler sees that rhs is an rvalue and uses the move constructor to construct the return value.

Return Type Deduction and Temporary Materialization: The compiler will implicitly perform a move when returning an rvalue if the return type is by value. In this case, A func(A& rhs) specifies a return type of A, so the compiler treats std::move(rhs) as an rvalue, creating a temporary A using the move constructor.

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

79152377

Date: 2024-11-03 09:15:38
Score: 7.5 🚩
Natty: 5
Report link

I am doing the same thing as you in TVZ rn hahahahahah and this happens to me as well... C function calls copy a 100MB file with 1B buffer in 3 seconds, while system calls do it in 7-8 minutes have you figured it out?

Reasons:
  • RegEx Blacklisted phrase (3): have you figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gabriel Šiljevinac

79152337

Date: 2024-11-03 08:47:34
Score: 0.5
Natty:
Report link

When you call a class dynamically this way (e.g., with $class = "AdminController"; followed by new $class();), PHP looks it in the global namespace.

There are two ways of dynamically calling it-

  1. Specify Hardcode Namespace "Base\AdminController" so PHP knows exactly which namespace to look in.

  2. You can use NAMESPACE if you want to dynamically load any class within the same namespace

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Om Prakash Swami

79152335

Date: 2024-11-03 08:46:33
Score: 1.5
Natty:
Report link

A simple solution is to use these function :

For typescript

import * as bcrypt from 'bcrypt';

const cryptPassword = (plaintextPassword: string) => {
    const salt = bcrypt.genSaltSync(10);
    return bcrypt.hashSync(plaintextPassword, salt);
}

const comparePassword = (plaintextPassword: string, hashword: string) => {
    return bcrypt.compareSync(plaintextPassword, hashword);
}

export {
    cryptPassword,
    comparePassword
};

Using js

var bcrypt = require('bcrypt');

const cryptPassword = (plaintextPassword) => {
    const salt = bcrypt.genSaltSync(10);
    return bcrypt.hashSync(plaintextPassword, salt);
}

const comparePassword = (plaintextPassword, hashword) => {
    return bcrypt.compareSync(plaintextPassword, hashword);
}

export {
    cryptPassword,
    comparePassword
};

Thanks to https://stackoverflow.com/a/14015883/22469248

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick Zocli

79152333

Date: 2024-11-03 08:46:33
Score: 3
Natty:
Report link

When ever I (auto) execute the node tree, all objects in the collection just collapse into a single point.

There must be something with objects' origins...

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Johannes Zwilling

79152329

Date: 2024-11-03 08:39:33
Score: 1.5
Natty:
Report link

There are two places for android studio to filter logcat output. One is obvious, and we can easily set / remove filters in logcat windown. But the other is not easy to find.

settings -> tools -> logcat -> ignore tags.

We can add it easily from logcat window, but it won't be easy to remove it if you don't know this setting.

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

79152323

Date: 2024-11-03 08:35:32
Score: 2.5
Natty:
Report link

Maybe you could try Shadcn/ui. Material UI is often preferred by styled-component developers, but Shadcn/ui is based on Tailwind CSS and has a lot of great extends by social like these: awesome-shadcn-ui ."

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yen-Chun Lin

79152318

Date: 2024-11-03 08:34:31
Score: 0.5
Natty:
Report link

Let me response to @Onepower answer as these are common claims found on the internet. In terms of performance, the virtual DOM doesn’t have real advantages over direct DOM manipulation. At the end of the day, it’s the direct DOM updates that are happening.

1.  Batch Updates: The virtual DOM can batch updates, but this primarily occurs at the virtual DOM level. Actual updates to the real DOM aren’t always batched. If you want precise control over batch updates, vanilla JavaScript offers finer control. You can update multiple components in a single operation, though you may need to reattach event listeners if they are affected.
2.  Avoiding Unnecessary Re-renders and DOM Manipulations: This feature mainly benefits novice programmers. With good programming practices, you likely don’t need this optimization.
3.  Efficient Diffing Algorithm: The virtual DOM uses an efficient diffing algorithm to identify precise changes, reducing computational costs and improving performance. With direct DOM manipulation, however, diffing isn’t necessary since you code exactly what needs to be updated, eliminating this computational cost entirely.
4.  See Point 1.
5.  Rendering Optimization: The virtual DOM optimizes rendering by scheduling updates at appropriate times, which reduces visual glitches and keeps the UI responsive. Achieving this with vanilla JavaScript would require more sophisticated hand-coding.
6.  Server-Side Rendering Compatibility: React’s virtual DOM works with server-side rendering, enhancing performance and SEO. However, server-side rendering can improve performance and SEO regardless of whether a virtual DOM is used.

In short, if you practice good coding, the virtual DOM may not offer significant efficiency gains over vanilla JavaScript. The primary reason for using a virtual DOM is to simplify development, particularly in complex applications.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Onepower
  • Low reputation (1):
Posted by: Mchhangte

79152309

Date: 2024-11-03 08:30:30
Score: 2.5
Natty:
Report link

I experience the same, even the first example on the official Angular Material side does not work since months. And I am wondering, why so few people complain. This post is the only I found.

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

79152301

Date: 2024-11-03 08:22:29
Score: 3
Natty:
Report link

In Python, proper indentation is crucial, and incorrect indentation can lead to errors. To fix this, re-indent the first three lines using (Shift + Tab).

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

79152292

Date: 2024-11-03 08:10:26
Score: 0.5
Natty:
Report link

first run

flutter doctor 

if everything is not ok, then go for these steps clear cache by doing

flutter clean

then close and reopen your ide and run

flutter pub get 

it will download dependecies then run

flutter run --release

if it still doesn't work, give some more details.

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

79152289

Date: 2024-11-03 08:07:25
Score: 1
Natty:
Report link

If you place a hyperlink inside an IF statement or a CHOOSE statement, the original formatting of the cell is not changed. When copying, paste the formula.

=IF(TRUE, HYPERLINK("https://www.stackoverflow.com"))
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: MGonet

79152273

Date: 2024-11-03 07:55:21
Score: 8.5 🚩
Natty:
Report link

hey i see you have managed to work with auth0 on your expo app, im sorry i dont have an answer to your question, but im stuck and cant make auth0 window open at all at the line code: await authorize(); could you please tell me what im doing wrong? Auth0 doesnt work on Expo CLI development

Reasons:
  • Blacklisted phrase (1): doesnt work
  • RegEx Blacklisted phrase (2.5): could you please tell me what
  • RegEx Blacklisted phrase (1.5): im stuck
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Shirley Cohen

79152272

Date: 2024-11-03 07:54:21
Score: 8
Natty: 7
Report link

I want to know if it is a three-party evolutionary game, how should I set up the interaction logic between the three parties?

Reasons:
  • Blacklisted phrase (1): I want to know
  • Blacklisted phrase (1): how should I
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saber Mars

79152271

Date: 2024-11-03 07:54:20
Score: 2
Natty:
Report link

For me, the issue occurred because the project's Windows build file was running in the background. I had to end the task in Task Manager, and then it worked.

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

79152267

Date: 2024-11-03 07:50:19
Score: 5
Natty:
Report link

@pierpy linkedin was just an exmaple, yt dlp scarpes everything on the about page except the links. i understand its video/audio downlaoder but does scrape metadata; i wanna know if it can scrape the links too

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @pierpy
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: sam david

79152258

Date: 2024-11-03 07:43:18
Score: 1
Natty:
Report link

Hello I was facing the same issue but I have resolved the following setups

  1. Open the vscode command prompt and paste the following command

  2. code --verbose --vmodule="*/components/os_crypt/*=1"

it will rest all the features and open a new vscode where you can go and use the sync settings.

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

79152254

Date: 2024-11-03 07:40:17
Score: 2
Natty:
Report link

I think instead of sending CSV file directly to the remote windows server, it's better to save it on your Linux server and then send it to your remote windows server. first write a SQL script to output the query as CSV second create a Shell Script to Run the Query and Transfer the File

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

79152251

Date: 2024-11-03 07:36:16
Score: 3
Natty:
Report link

Clip Attributes (right-click on the clip in the Media Pool) and adjust the Pixel Aspect Ratio or Resolution to match the actual video dimensions.

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

79152245

Date: 2024-11-03 07:33:16
Score: 3.5
Natty:
Report link

I have another question:

My WD is: “folder”

I have my data in “folder/data”

I have my functional scripts in “folder/final”. (In the wd are only my drafts)

How can I run scripts in “folder/final” if the data to read in is in “folder/data”?

df <- fread(“DATA/file.csv”, sep=“;”, dec=“,”) only works if the script is in the wd.

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (0.5): How can I
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Isegrimm

79152242

Date: 2024-11-03 07:31:16
Score: 2.5
Natty:
Report link

Check the colorspace used by your drawingGroup. Alternatively you can pass the colorspace to drawingGroup

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

79152236

Date: 2024-11-03 07:28:15
Score: 2.5
Natty:
Report link

first Remove the Scroll Behavior: Ensure that you are not using a scroll behavior that modifies the app bar's appearance when the content is scrolled. then Set the AppBar Colors: You can specify a constant color for the app bar without relying on the scrolling behavior.

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

79152235

Date: 2024-11-03 07:28:15
Score: 1
Natty:
Report link

It seems that there is not problem with this kind of css selector because it is used in official addons too (addons website_slides > slides_tour.js):

{
    trigger: 'iframe li.breadcrumb-item:nth-child(2)',
    content: Markup(_t("Click on your <b>Course</b> to go back to the table of content.")),
    position: 'top',
}

How about using div name=product_id to select the parent of your nth-child?

Is the problem maybe due to the fact that the modal content does not exist yet when performing your test ?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Ahrimann Steiner

79152204

Date: 2024-11-03 07:05:11
Score: 2.5
Natty:
Report link

from tkinter import * w = Tk() def c(): global w print('Window closing') w.destroy() w.protocol('WM_DELETE_WINDOW', c)

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

79152193

Date: 2024-11-03 06:59:10
Score: 0.5
Natty:
Report link

I just reinstalled webpack globally using this command and it works for me

npm install -g webpack
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zerubbabel

79152174

Date: 2024-11-03 06:41:07
Score: 1
Natty:
Report link

try this in 2024

 npm run dev -- -H 0.0.0.0 -p 3000
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manifest Technology