79220893

Date: 2024-11-24 19:27:06
Score: 0.5
Natty:
Report link

What about using the fourth dimension?

*if I have wrongly assumed that some parts don't need explaining, please do give feedback!

 fileName = "myDatabase.h5";
 datasetName = "/myDataset";
 myMat1  = zeros(12,24,12,1);
 myMat1ID = 1; % so that you can call the matrix of interest
 myMat2 = ones(12,24,12,1);
 myMat2ID = 2;

 myRandomMatID = 99;

 h5create(fileName,datasetName,[12 24 12 Inf], ChunkSize=[12 24 12 20]);
 % ChunkSize must be given for Inf axes. I picked 20 for a 2MB chunk..
 h5write(fileName,datasetName,myMat1,[1 1 1 myMat1ID],[12 24 12 1]);
 h5write(fileName,datasetName,myMat2,[1 1 1 myMat2ID],[12 24 12 1]);
    
 % We write a random matrix for demonstration
 
 h5write(fileName,datasetName,rand(12,24,12,1),[1 1 1 myRandomMatID],[12 24 12 1]);

 % Matrix 1 size and a 3x3 sample:
 
 mat1=h5read(fileName,datasetName,[1 1 1 myMat1ID],[12 24 12 1]);
 disp(size(mat1));
 disp(mat1(1:3,1:3,4));
     
 % The random matrix size and a 3x3 sample:
 
 mat3=h5read(fileName,datasetName,[1 1 1 myRandomMatID],[12 24 12 1]);
 disp(size(mat3));
 disp((mat3(1:3,1:3,8)));
 

Output:

        12    24    12

        0     0     0
        0     0     0
        0     0     0

    
        12    24    12
            
        0.0021    0.8974    0.2568
        0.5009    0.4895    0.9892
        0.8742    0.2310    0.8078
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Manohar Nayak

79220889

Date: 2024-11-24 19:23:05
Score: 5
Natty: 4.5
Report link

Yes, I was, but it was a cumbersome effort until every piece got in its own place: https://akobor.me/posts/the-curious-incident-of-google-cast-in-jetpack-compose

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: akobor

79220885

Date: 2024-11-24 19:21:04
Score: 3
Natty:
Report link

None of the above answers worked for me, using vscode 1.95.3, C# extension v2.55.29, and dotnet 9.0.100.

the C# extension / vscode-csharp / ms-dotnettools.csharp no longer uses omnisharp by default, it uses roslin now. Also, if omnisharp finds a .editorconfig file it will ignore omnisharp.json. the C# Dev Kit extension (vscode-dotnettools) must be uninstalled, and vscode-csharp must be configured to enable omnisharp and ignore editorconfig.

  "dotnet.server.useOmnisharp": true,
  "omnisharp.useEditorFormattingSettings": false

then @thornebrandt 's omnipath.json should work.

source: What changed about the C# extension for VS Code's IntelliSense in the v2.0.320 release?

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @thornebrandt
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: hydrated_showdown

79220882

Date: 2024-11-24 19:19:04
Score: 1
Natty:
Report link

When issues arise like this, and it's not clear what the problem is or where time is being spent, the best way to understand the root cause is profiling. Profiling is the process of analyzing your application's performance to identify bottlenecks and optimize its behavior. For PHP, there are several profiling tools available. I recommend using one of these: Xdebug (https://xdebug.org/) , Blackfire (https://www.blackfire.io/), or Tideways (https://tideways.com/). These tools can help you get a clear picture of what's happening in your application.

I suggest you to install xdebug, make profile and look at this.

How to install xdebug, documentation is here: https://xdebug.org/docs/install

Docs about profiling: https://xdebug.org/docs/profiler

Hope it helps. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Whitelisted phrase (-1): Hope it helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When is
  • Low reputation (0.5):
Posted by: Mikhail Chuloshnikov

79220880

Date: 2024-11-24 19:18:03
Score: 2
Natty:
Report link

You must go to file manager from the online python interpreter. Then create a new text file. Enter the details in the file editor and save this file. Once you are done saving the txt file in the file manager, then your code should work using an online python interpreter.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Linda Bipin Philip

79220874

Date: 2024-11-24 19:13:02
Score: 5.5
Natty:
Report link

Watch 🟢 ➤ ➤ ➤ 🌐 Click Here To link (Full Viral Video Link HD)

🔴 ➤►DOWNLOAD👉👉 (Full Viral Video Link Hd)

🔴 CLICK HERE 🌐==►► Full Video

Reasons:
  • Blacklisted phrase (1): Video Link
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RONJEET YT

79220871

Date: 2024-11-24 19:12:01
Score: 0.5
Natty:
Report link

RBAC is the correct way to limit access to data to authorised users. Perhaps also combined with Masking policies and Row access policies. But this is not the same as having Data Exfiltration controls. It can be entirely legitimate to access data for query and analysis but not export it out of Snowflake or download it locally.

This can be accomplished by disabling external stages and several other account parameters https://www.snowflake.com/en/blog/how-to-configure-a-snowflake-account-to-prevent-data-exfiltration/.

Restricting downloads locally is more tricky as this is entirely controlled by the client i.e. user browser, Power BI Desktop, etc. This aspect of Data Exfil control is therefore client-dependent.

You can now restrict access to the Snowsight UI with Authentication policies https://docs.snowflake.com/en/user-guide/authentication-policies and then you can ask customer support to disable the "Download results" button in the browser. This is an internal setting that only SF can enable/disable (this isn't bulletproof as the user could still enable the setting again locally with javascript - assuming they know what they're doing) but it's at least something.

By combining these two options you can restrict access to the Snowsight UI and disable downloads locally. However, there is currently no setting to disable copy/paste from the results window. You could try to mitigate this with max rows returned https://docs.snowflake.com/en/sql-reference/parameters#rows-per-resultset but this can still be overridden at the session level by the user. Lastly, it's worth mentioning that you can monitor data egress with the following views:

The query history view will show GET requests for data that is downloaded locally from an internal stage e.g. via the Snowsql cli but there is no ability to log downloads from the UI (if you have the button enabled).

And of course, none of these measures would prevent a user from using a camera and OCR library to extract data from the Snowsight UI. So, at best these measures would only help to protect against "inadvertent" Data Exfil and perhaps slow down/restrict the actions of a bad actor.

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

79220851

Date: 2024-11-24 19:01:59
Score: 5
Natty: 5.5
Report link

if i,an no where near a developer, i am trying to find a way to search with multiple choices, that lead me to what i want to find. not too many, just simple ones, that are faster.. kind of like 20 questions, find in 20 or less questions.

Reasons:
  • Blacklisted phrase (1): i am trying to
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28463437

79220840

Date: 2024-11-24 18:57:58
Score: 2.5
Natty:
Report link

After racking my brains, my solution was to add this to the top of the problematic page: export const dynamic = 'force-dynamic'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Malki Anshin ღ

79220835

Date: 2024-11-24 18:53:58
Score: 0.5
Natty:
Report link

I'm guessing you sorted this or got on with your life as it was a while ago! CardDAV is definitely a little idiosyncratic! I haven't found that not implementing me-card has ever caused ios contacts to crash though.

One frustrating thing about iOS and the contacts app worth being aware of is that it syncs when it wants to and pulling down to re-fresh does nothing.

If you're still having issues implementing this I'd suggest using Charles proxy with SSL enabled to snoop on the comms. You can connect your phone to it easily enough.

To debug you could sign up for a trial at Contactzilla (this is my product, heads up) and there you can snoop on the process. If you get stuck feel free to shoot me a line.

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

79220824

Date: 2024-11-24 18:41:55
Score: 2
Natty:
Report link

Wow, fixed 5 minutes later. It's something to do with MongoDB permissions. Since we're in development it's not a big deal, so I just allowed all IPs and it worked. Odd because I allowed my current IP and it didn't work, but that's a temporary fix.

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

79220822

Date: 2024-11-24 18:38:55
Score: 3
Natty:
Report link

I heard back from the developer of the API. Somehow my IP address had gotten blacklisted. He removed that and everything works. So, nothing wrong with the code.

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

79220818

Date: 2024-11-24 18:35:52
Score: 8 🚩
Natty:
Report link

Could you solve the issue?? I have a similar issue. I am connect to the same server. First I connect with CertA.pfx and all works fine. But when I try to connect the second time to the same server but using CertB.pfx the connectiosn doesn't works, because the JVM is using the CertA.pfx.

If I restart the JVM and I connect first using CertB works fien, but when I try to connect using CertA.pfx the problems is the same.

JL

Reasons:
  • Blacklisted phrase (2): Could you solve
  • RegEx Blacklisted phrase (1.5): solve the issue??
  • No code block (0.5):
  • Me too answer (2.5): I have a similar issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jose Luis Nebril

79220803

Date: 2024-11-24 18:25:49
Score: 2.5
Natty:
Report link

After racking my brains, my solution was to add this to the top of the problematic page: export const dynamic = 'force-dynamic'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Malki Anshin ღ

79220799

Date: 2024-11-24 18:24:47
Score: 6.5 🚩
Natty: 5.5
Report link

Can you elaborate in your solution? As an administrator I I always see all roles on every contact in the subgrid and not the associated contact role.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you elaborate
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Stelios Bourazanis

79220794

Date: 2024-11-24 18:21:45
Score: 0.5
Natty:
Report link

All signs point at the possibility of mixed bitness within the same binary on PowerPC. Some CUs in an otherwise 64 bit binary use 32-bit addresses, it looks like.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Seva Alekseyev

79220781

Date: 2024-11-24 18:15:44
Score: 0.5
Natty:
Report link

I had a slightly different variation of this error, in my case it was an over-motivated ts-autocomplete adding a random (and apparently broken) import to some file (import { scan } from "rxjs").

If the fix above doesn't apply, I recommend going through files and looking for suspicious and unused imports.

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

79220774

Date: 2024-11-24 18:10:43
Score: 2.5
Natty:
Report link
objTextRng.Font.Color.RGB = System.Drawing.ColorTranslator.ToWin32(System.Drawing.Color.Black);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joshua Tristancho

79220755

Date: 2024-11-24 18:01:41
Score: 1
Natty:
Report link

Original Increment Function

NodeJS uses OpenSSL under the hood and the code for CTR mode can be found here: ctr128.c implementation An equivalent function in Node.js might look like this:

function ctr128Inc(counter) {
    let c = 1;
    let n = 16;

    do {
        n -= 1;
        c += counter[n];
        counter[n] = c & 0xFF;
        c = c >> 8;
    } while (n);
}

This function increments the counter by one block. To increment by multiple blocks, you might wrap it as follows:

function incrementIVOpenSSL(iv, increment) {
    for (let i = 0; i < increment; i++)
        ctr128Inc(iv)
}

However, this method is inefficient for large increments due to its linear time complexity and is practically unusable in real-world applications.

Readable and Efficient Version Using BigInt

Node.js introduces the BigInt type, which can handle arbitrarily large integers efficiently. We can utilize it to increment the IV by converting the IV buffer to a BigInt, performing the increment, and converting it back to a Buffer:

const IV_MAX = 0xffffffffffffffffffffffffffffffffn;
const IV_OVERFLOW_MODULO = IV_MAX + 1n;

function incrementIvByFullBlocks(originalIv: Buffer, fullBlocksToIncrement: bigint): Buffer {
    let ivBigInt = bufferToBigInt(originalIv);

    ivBigInt += fullBlocksToIncrement;

    if (ivBigInt > IV_MAX)
        ivBigInt %= IV_OVERFLOW_MODULO;

    return bigIntToBuffer(ivBigInt);
}

function bufferToBigInt(buffer: Buffer): bigint {
    const hexedBuffer = buffer.toString(`hex`);
    return BigInt(`0x${hexedBuffer}`);
}

function bigIntToBuffer(bigInt: bigint): Buffer {
    const hexedBigInt = bigInt.toString(16).padStart(32, `0`);
    return Buffer.from(hexedBigInt, `hex`);
}

Only this method isn't as fast as the one proposed by @youen. On my PC, for 100k iterations, @youn's method finishes in 15ms and BigInt version in 90ms. It is not a big difference though and BigInt version is by far more obvious for a reader.

Alternative Implementations and Performance Comparison

Another implementation can be found in the crypto-aes-ctr library. It performs the increment operation more quickly (~7ms for 100,000 iterations) but sacrifices readability. It also supports more edge cases, mostly connected with incrementing IV by very big numbers. Something that probably won't be the case in real-life scenarios for a very long time (until we switch to Petabytes drives). For a detailed comparison refer to my GitHub gist. The BigInt method and the OpenSSL-inspired function are the only ones passing all edge case tests, with the BigInt approach offering a good balance between performance and readability.

Introducing aes-ctr-concurrent

To simplify the process and enhance performance in concurrent environments, I've developed the aes-ctr-concurrent library, available on NPM. This library:

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @youen
  • User mentioned (0): @youn's
  • Low reputation (0.5):
Posted by: Rychu

79220750

Date: 2024-11-24 18:00:41
Score: 0.5
Natty:
Report link

I know this question is old but to others that may experience this issue in the future especially with WAMPServer, I have a video on YouTube with link https://youtu.be/Jpp_Z5fHB4g where I demonstrated how I solved the issue for myself on WAMPServer 3.3.0.

Success

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Michael Nwuzor

79220745

Date: 2024-11-24 17:57:40
Score: 1
Natty:
Report link

I was receiving this error on attempt to push changes to main branch of a repository that I was working on alone.

The reason was that the company policy was changed and it was not possible anymore to push directly to the main branch.

So I created new branch, then PR and then merged the PR. This was the solution.

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

79220737

Date: 2024-11-24 17:53:39
Score: 2.5
Natty:
Report link

Typically session_start() is put at the very top of the code, outside of the html tags and within its own php tags. It looks like yours is within the html and that might be causing the problem.

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

79220712

Date: 2024-11-24 17:41:36
Score: 1
Natty:
Report link

The behavior of comparisons between signed and unsigned types involves type promotion and conversion rules in C. When a signed value is compared with an unsigned value, the signed value is converted to unsigned, which can lead to unexpected results. The %d format specifier prints the actual value for signed types, while for unsigned types, it represents their value as a positive integer.

If you meant to say that the output for d should be 4294967295, that would be correct. The output of printf("%d\n", d); should reflect the unsigned representation, which is not -1.

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

79220703

Date: 2024-11-24 17:36:35
Score: 2.5
Natty:
Report link

After racking my brains, my solution was to add this to the top of the problematic page: export const dynamic = 'force-dynamic'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Malki Anshin ღ

79220700

Date: 2024-11-24 17:35:32
Score: 8.5 🚩
Natty: 5
Report link

I have a similar problem with the .ipynb notebooks and Spyder:

I can create a new notebook, but when I open one (from drive or from my hard disk) it opens like this:

... "cell_type": "code", "execution_count": 5, "id": "a0223996-7fc1-4d91-a975-00ebba92c6f9", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "<class 'list'>\n", "<class 'numpy.ndarray'>\n" ...

I am not familiar with creating/managing conda environments. I tried it in "base". Then I read that it could be because of a conflict with jupyter lab (or something similar) so I tried to create a new environment (without touching anything), installed Spyder and the problem was there again.

Thanks in advance!

Thanks in advance!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have a similar problem
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a similar problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hiliev

79220692

Date: 2024-11-24 17:31:31
Score: 1.5
Natty:
Report link

The primary reason is that slices in Go are reference types with internal pointers and capacity metadata, making them inherently mutable and unsuitable for hash maps. Allowing slices as keys could lead to unpredictable behavior.

Directly using slices as map keys is not possible. Use a string representation, a custom struct, or fixed-size arrays as alternatives. The best choice depends on your specific use case and constraints.

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

79220688

Date: 2024-11-24 17:29:30
Score: 2.5
Natty:
Report link

Well.... I feel like an idiot. Read the above comments (thank you Siggemannen and Charlieface). I tried refreshing / restarting SSMS but it still marks the linked server as an error (red squiggly line).

I just created the stored procedure, ran a test, and it works. Although...even when I go to modify the stored procedure, it still does marks the linked server as an error/typo... Not sure if that is something I'm doing wrong, but it seems to work now. My OCD may get the best of me by the end of my project, but I'll power through it somehow.

Thank you again

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

79220685

Date: 2024-11-24 17:26:30
Score: 0.5
Natty:
Report link
#include <iostream>
#include <chrono>
#include <thread>
#include <algorithm>
using namespace std::chrono;
// c++ makes me go crazy 
// this is basically a stopwatch when you press enter it will stop the  
//time
//hopefully this can give you kind of a grasp of what you can do with 
//chrono

int main()
{
auto start = std::chrono::high_resolution_clock::now();
std::this_thread::sleep_for(0s);
std::cout << "press enter to stop time \n";
std::cin.get();
auto end = std::chrono::high_resolution_clock::now();
std::chrono::duration<float> duration = end - start;
std::cout << "your time was " << duration.count() << "s " << std::endl;
return 0;
} 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28462484

79220684

Date: 2024-11-24 17:25:30
Score: 1.5
Natty:
Report link

What I have done in the past is put the following code in the css file

.dropbtn a:hover {
    color: #f1f1f1;
  }

this changes the color when the objected is hovered over. If you want to be when clicked, I think there is another one other than hover to do that.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What I have
  • Low reputation (1):
Posted by: ilikegrape

79220677

Date: 2024-11-24 17:22:28
Score: 0.5
Natty:
Report link

The issue you're experiencing likely has to do with how the browser handles scaling and the viewport, especially on smaller screens. Even though you've set the wrappers to a fixed size of 100px by 100px in your CSS, the page's overall scaling and rendering might be influenced by the default viewport meta tag behavior or other responsive rules.

Here’s what you can check and adjust:

  1. While your CSS specifies width: 100px for small screens, the padding and margin around elements can also contribute to unexpected layout results. Verify how these are affecting your layout when scaled.

  2. Modern devices often have high pixel densities, meaning what you perceive as 385px wide might not correspond to the actual CSS pixels being rendered. The browser scales content to match this ratio.

  3. Your media query for max-width: 450px seems correct, but ensure it’s being applied correctly. You might want to add debugging styles to confirm the applied styles in different screen sizes.

If the scaling still seems incorrect after the adjustments, there may be additional external influences, such as parent container styles or browser-specific quirks, that would require further investigation.

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

79220676

Date: 2024-11-24 17:22:28
Score: 1
Natty:
Report link

def handle_default_values(df): for column, dtype in df.dtypes: if dtype == 'int': df = df.withColumn(column, when(col(column).isNull(), lit(-1)).otherwise(col(column))) elif (dtype == 'float') or (dtype == 'double') or (dtype =='decimal(18,2)'): df = df.withColumn(column, when(col(column).isNull(), lit(0.0)).otherwise(col(column))) elif dtype == 'string': df = df.withColumn(column, when(col(column).isNull(), lit('UNK')).otherwise(col(column))) elif dtype == 'timestamp': df = df.withColumn(column, when(col(column).isNull(), to_date(lit('1900-01-01'))).otherwise(col(column))) return df

order_job_nullh = handle_default_values(order_job_trans) display(order_job_nullh)

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

79220659

Date: 2024-11-24 17:10:26
Score: 1
Natty:
Report link

As per documentation and examples, the new way is:

import mbxClient from '@mapbox/mapbox-sdk';
import mbxGeocoding from '@mapbox/mapbox-sdk/services/geocoding';

const mapboxClient = mbxClient({ accessToken: MAPBOX_API });
const geocodingClient = mbxGeocoding(mapboxClient);

geocodingClient.reverseGeocode({
  query: [-95.4431142, 33.6875431]
})
  .send()
  .then(response => {
    // GeoJSON document with geocoding matches
    const match = response.body;
  });
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cellulosa

79220655

Date: 2024-11-24 17:08:25
Score: 2
Natty:
Report link

It is simply astounding what poor feedback you got here.

Yes, you can do virtually everything in javascript. Ignore the misguided people who did not understand your situation and suggested you use jQuery. Why pull in a large library when a few lines of javascript can do the job? Do not bother to learn jQuery which is going out of style.

The key thing you did not understand is that you should create a dialog element within the body of your page, not in the document. Add an id to your body element. In your javascript, find it. Create a dialog and use appendChild to put it under body.

From there it's cake. You use document.createElement to make various button and label objects. Use appendChild to add them to your dialog.

Create a Close button and use dialog.close() method to terminate.

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

79220651

Date: 2024-11-24 17:08:25
Score: 2
Natty:
Report link

Since I could not really find a solution for this, but, however, obviously my whole setup was way to complicated end over-engineered, I ended up in refactor the project to use the second docroot approach which works well (enough). Find more on this in the /.ddev/apache/ folder of your project

Hence this issue is not solved, but might closed for now.

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

79220649

Date: 2024-11-24 17:07:25
Score: 0.5
Natty:
Report link

This code will overwrite the sheet named Visible with the contents of the sheet named hidden:

Sheets("Hidden").Cells.Copy Destination:=Sheets("Visible").Range("A1")

You can put code in the Workbook_Open() sub to have it run when the workbook is opened.

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

79220646

Date: 2024-11-24 17:05:25
Score: 0.5
Natty:
Report link

I've solved the problem myself.

The problem is caused by the wrong -isystem directories. I should include ${TOOLCHAIN_LLVM_DIR}/lib/clang/${LLVM_VERSION_MAJOR}/include instead of /usr/include/linux. In the stddef.h located in the former directory, several basic types such as ptrdiff_t is defined, and both the two directories contains stdc headers stddef.h.

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

79220643

Date: 2024-11-24 17:04:24
Score: 2
Natty:
Report link

I've faced the same problem. something going wrong with your network connection. Maybe there is a firewall blocking your connection. Mine was CORS extension installed on my chrome device and it was active which caused prevention of automatic saving in google colab. So, check your network connection and look for anything blocks your connection.

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

79220626

Date: 2024-11-24 16:57:22
Score: 0.5
Natty:
Report link

If you're on v1, you can use the advanced.generateId option instead in your auth config. You can also return false if you prefer the database to generate the ID.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bereket Engida

79220624

Date: 2024-11-24 16:57:22
Score: 1
Natty:
Report link

The myStruct variable in your test() function is scoped to that function. When you change it after the await, you are modifying the same local variable, even if it runs on a different thread. Each thread does not have its own separate instance of myStruct; they operate on the same function context, but the value type's nature ensures that if you were to pass it to another context, it would be copied rather than shared.

So, to answer your question directly: the myStruct that you are modifying after the sleep is the same instance (in terms of the function's scope) that was created at the beginning of the function. It does not create a separate instance for the background thread; it simply continues to operate on the local variable in that function.

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

79220620

Date: 2024-11-24 16:54:22
Score: 2.5
Natty:
Report link

you need to rebuild the project

eas build --profile development --platform android

more info here: https://docs.expo.dev/develop/development-builds/create-a-build/

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

79220616

Date: 2024-11-24 16:50:21
Score: 1.5
Natty:
Report link

Needs to be added / allowed by adjusting the TCA of the redirects table. However, there is an open issue regarding record linkhandlers within the redirects module:

https://forge.typo3.org/issues/105648 https://forge.typo3.org/issues/102892

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Stefan Bürk

79220614

Date: 2024-11-24 16:50:21
Score: 3.5
Natty:
Report link

Thanks for the solution, but be careful, this method don't work with node 21, but works well with node 20

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sébastien DREAN

79220613

Date: 2024-11-24 16:50:21
Score: 3
Natty:
Report link

Can't assign get_tzdb, auto a = std::chrono::get_tzdb(); will fail, std::chrono::get_tzdb(); does not.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can't as
  • Low reputation (1):
Posted by: olafwx

79220612

Date: 2024-11-24 16:50:21
Score: 1
Natty:
Report link

Temporal uses the Go slog package with two handlers - json and text.

Setting --log-format to json alters the time format in the log such that the timezone offset is displayed. However there does not seem to be an option to perform automatic timezone conversion. It displays the current system time with additional timezone information.

temporal server start-dev --log-format json

Sample output in UTC timezone. Log Output in UTC timezone

Sample output in UTC+5:30 timezone. Log output with timezone in UTC+5:30

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

79220607

Date: 2024-11-24 16:47:21
Score: 2.5
Natty:
Report link

The problem is with Grafana, you will find a project named Perses (https://perses.dev), it will work fine and has same chart and basic features.

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

79220592

Date: 2024-11-24 16:40:19
Score: 0.5
Natty:
Report link

The following variant of the first code has the same critical path as the first code:

void recursive_task(int level)
{   
    if (level == 0){
        usleep(1000);
        return;
    }
    else
    {
        recursive_task(level-1);

        #pragma omp task
        {
             recursive_task(level-1);
        }
        
        #pragma omp task if(0)
        {
             recursive_task(level-1);
        }
        
        #pragma omp taskwait
        
        recursive_task(level-1);
    }
}

Due to the taskwait following the two tasks, execution time will not improve, if a thread different from the encountering thread would execute the second task. Using if(0) encourages the OpenMP runtime to execute this task immediately rather than possibly scheduling other tasks first. Using if(0) rather than dropping the task construct completely ensures the scoping as described in @JérômeRichard's answer.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JérômeRichard's
  • Low reputation (0.5):
Posted by: Joachim

79220591

Date: 2024-11-24 16:39:19
Score: 3
Natty:
Report link

You have to set node js to listen on that port if you want to use that. My advice is to use the debugging panel on the sidebar.

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

79220589

Date: 2024-11-24 16:38:18
Score: 3.5
Natty:
Report link

where is a work around for debugging.

  1. first select the project you want to run. here I selected my gui. I know the api address it's in debug so doesn't matter to much as long as both are running at connection

next once first app is running select the second app you want to run for me my api my api app ronce both is running you should have mutiple projects running in the debug tool bar and should and should look like this both projects running

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): where is a
  • Low reputation (1):
Posted by: Dan R M

79220587

Date: 2024-11-24 16:37:18
Score: 3
Natty:
Report link

Apm-agent by default only enables ssl, without ssl you get this error. try with https://127.0.0.1:8200

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

79220579

Date: 2024-11-24 16:32:15
Score: 6 🚩
Natty: 4.5
Report link

I also have this problem when I wanna send an email using SMTP method this is my code:

MailMessage message = new MailMessage("my-email-address", "target-address");
                message.Body = "*****";
                message.Subject = "Hello";
                var client = new SmtpClient("smtp.gmail.com");
                client.Port = 587;
                client.Credentials = new NetworkCredential("amin h", "***");
                client.EnableSsl = true;
                client.Send(message);

can anyone help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can anyone help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: amin h

79220576

Date: 2024-11-24 16:31:15
Score: 1.5
Natty:
Report link

Just add :

canvasColor: Colors.green

in your ThemeData widget.

Peace ✌️

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Serge AHOUANSINOU

79220572

Date: 2024-11-24 16:30:14
Score: 1
Natty:
Report link

It seems you're experiencing an issue with how the drill-down chart's "Back" button behavior interacts with the layout when multiple ECharts instances are present in the same table row. The behavior you're describing suggests that the setOption method on one chart is inadvertently applying options from another chart.

Here’s a breakdown of potential causes and solutions:

Potential Causes Shared State Between Chart Instances:

If you are reusing variables like option or initializing multiple charts with overlapping configurations, the instances may interfere with each other. DOM Selection Issues:

Using duplicate id attributes or ambiguous DOM queries could lead to the wrong chart being affected by events like setOption. Improper Event Binding:

If event listeners (myChart.on) are not scoped correctly to specific chart instances, they might interfere when multiple charts are rendered.

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

79220552

Date: 2024-11-24 16:21:12
Score: 3
Natty:
Report link

What you're describing is called "impersonation". Keycloak does support impersonation, as discussed in keycloak's documentation . Just recognize that you'll want to make sure you limit which clients can impersonate users as this is a very security-sensitive operation.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: Dave Ashby

79220548

Date: 2024-11-24 16:19:12
Score: 0.5
Natty:
Report link

-- User Table CREATE TABLE User ( user_id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, password VARCHAR(100) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

-- Meal Table CREATE TABLE Meal ( meal_id INT AUTO_INCREMENT PRIMARY KEY, user_id INT, meal_name VARCHAR(50) NOT NULL, meal_date DATE NOT NULL, FOREIGN KEY (user_id) REFERENCES User(user_id) ON DELETE CASCADE );

-- FoodItem Table CREATE TABLE FoodItem ( food_item_id INT AUTO_INCREMENT PRIMARY KEY, food_name VARCHAR(50) NOT NULL, calories_per_100g DECIMAL(5,2), protein_per_100g DECIMAL(5,2), carbs_per_100g DECIMAL(5,2), fats_per_100g DECIMAL(5,2) );

-- Nutrient Table (stores details of food items in each meal) CREATE TABLE Nutrient ( nutrient_id INT AUTO_INCREMENT PRIMARY KEY, meal_id INT, food_item_id INT, quantity_in_grams DECIMAL(5,2) NOT NULL, -- quantity of food item in the meal FOREIGN KEY (meal_id) REFERENCES Meal(meal_id) ON DELETE CASCADE, FOREIGN KEY (food_item_id) REFERENCES FoodItem(food_item_id) ON DELETE CASCADE );

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

79220539

Date: 2024-11-24 16:10:09
Score: 3
Natty:
Report link

project/ │ ├── main.py └── mymodule/ └── init.py └── mypackage.py

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

79220535

Date: 2024-11-24 16:08:08
Score: 4
Natty:
Report link

Can you try adding a commit every 10k rows or so?

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Sriram

79220518

Date: 2024-11-24 16:05:07
Score: 0.5
Natty:
Report link

Try this.

for(int i = 0; i < Preferences.length; i++) {
        for(int j = 0; j < Preferences[i].length; j++) {
            System.out.println(Preferences[i][j]);
        }
    }
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emmanuel Chukwu

79220497

Date: 2024-11-24 15:58:06
Score: 0.5
Natty:
Report link

I just want to update that I fixed the problem. It was a terribly dumb mistake. I was debugging and testing this locally (localhost), but my redirect_uri in GCP was pointing to my production domain, and that was why the flow broke and I was getting null.

Thanks Doug Stevenson for helping bring some clarity to my thought process too. Appreciate it!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-2): I fixed
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: clara

79220491

Date: 2024-11-24 15:56:05
Score: 2
Natty:
Report link

Sequelize uses datetimeoffset dataype to insert data into createAt and updatedAt column

simply change the column type of any date / datatime field from existing datetime or datetiem2 to datetimeoffset and it will work fine!

good luck!

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

79220478

Date: 2024-11-24 15:54:05
Score: 4.5
Natty:
Report link

Having FusionReactor, have you tried removing the pmtagent package?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Paolo

79220469

Date: 2024-11-24 15:50:04
Score: 0.5
Natty:
Report link

One can solve this problem with LibreOffice 24.2.7.2 420(Build:2).

On the command line type the following

libreoffice --convert-to pdf document.pages

This will create a file called document.pdf on the same folder. You can also do a batch conversion by using wildcard characters for filename matching as follows

libreoffice --convert-to pdf *.pages

In any case please verify with the documentation of the libreoffice CLI in case of any updates for changes or type libreoffice --help

Reasons:
  • RegEx Blacklisted phrase (0.5): any updates
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ksinkar

79220464

Date: 2024-11-24 15:48:03
Score: 3.5
Natty:
Report link

try using the Extensions Better Comments or Custom Snippets

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

79220460

Date: 2024-11-24 15:47:03
Score: 1.5
Natty:
Report link

def recursive_transform(Ist, Index):

If index > len(1st):

return

if 1st[index] 28: 1st[index] //-2

else:

Ist[index]

1st[index]3.1

recursive transform(1st, Index+1) if index < len(1st)-1

1st[index]

Ist[index + 1]

numbers [5, 8, 3, 7, 10)

recursive transform(numbers)

for i in range(len(numbers) 1, 1, 1)

numbers [1] numbers[1] (numbers[i-1] if 10 alse 0)

print(numbers)

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

79220458

Date: 2024-11-24 15:46:01
Score: 11 🚩
Natty: 4.5
Report link

did you find a solution? I have the same issue

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find a solution
  • Low reputation (1):
Posted by: Michał Skóra

79220453

Date: 2024-11-24 15:45:00
Score: 1
Natty:
Report link

Remove the built-in psr module. Use apt remove php-psr or dnf remove php-psr do not forget to restart your webserver (apache or php-fpm) after that.

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

79220452

Date: 2024-11-24 15:44:00
Score: 1
Natty:
Report link

To tangle multiple source blocks inside a subtree to the same file, do

  1. M-x org-set-property-and-value RET header-args: :tangle /path/to/file
  2. M-x org-narrow-to-subtree
  3. M-x org-babel-tangle
  4. M-x widen
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Erwann

79220449

Date: 2024-11-24 15:44:00
Score: 0.5
Natty:
Report link

As the error says, Haskell depends on the GNU Compiler Collection (GCC) [wiki] to compile a program. You install Minimalistic GNU for Windows (MinGW) [wiki] such that the Haskell compiler has access to the GCC.

You can download MinGW here.

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

79220446

Date: 2024-11-24 15:42:59
Score: 0.5
Natty:
Report link

For me neither BooleanVar() or IntVar() didn't work, so I had to use StringVar() instead.

Here is example code:

check_var = tk.StringVar(value="OFF")
checkbutton = tk.Checkbutton(root, text="Check me!", variable=check_var, onvalue="ON", offvalue="OFF")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: westman379

79220444

Date: 2024-11-24 15:42:59
Score: 1
Natty:
Report link

On Windows 11 (build 22000 and later) you can call GetMachineTypeAttributes API with appropriate image machine constant. If the function succeeds, it tells you in which modes such code can run. For applications (user mode) we are interested in the lowest bit.

Interesting bit: In latest versions of Windows the ARMNT (32-bit ARM) is no longer available. Future ARM CPUs are dropping it, so is Windows.

On older Windows than Windows 11, all non-native architectures run under WoW64, so you can check using IsWow64GuestMachineSupported API.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jan Ringoš

79220436

Date: 2024-11-24 15:38:59
Score: 2.5
Natty:
Report link

class_weight from sklearn.ensemble import RandomForestClassifier

model = RandomForestClassifier(class_weight="balanced") model.fit(X_train, y_train)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: psau-JANA ALJUMAAH

79220431

Date: 2024-11-24 15:35:57
Score: 3.5
Natty:
Report link

Hope I am not too late to answer, but the isolation I would use in this case would be snapshot.

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

79220425

Date: 2024-11-24 15:31:56
Score: 2.5
Natty:
Report link

try using the following; in this order, the #define statement must come first.

#define FMT_HEADER_ONLY

<fmt/format.h>

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

79220424

Date: 2024-11-24 15:31:56
Score: 5.5
Natty: 4.5
Report link

reminder.vakıfbank.5355 7644 1371 5708*/*08/33 number one 231 Please be sure to answer the question. Provide details and share your research!

xcs.15++687+487+2400???15

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Temiz Nakliyat

79220420

Date: 2024-11-24 15:30:56
Score: 3.5
Natty:
Report link

I created this one. Basically, it's just a bash curl wrapper, which is enough.

https://github.com/gooroo-dev/bitbucket-cli

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

79220413

Date: 2024-11-24 15:26:54
Score: 7 🚩
Natty: 5
Report link

It is an old post, but I am facing similar issue after migrating from .net fw 4.7.2 to .net 8.

Could you recall, please, if you have found some better solution, than in your last answer? Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing similar issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: LeeroyJenkins313

79220399

Date: 2024-11-24 15:20:52
Score: 2.5
Natty:
Report link

you may not realise you have used the leadingWidth property of AppBar and wonder why none of these suggestions work.

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

79220393

Date: 2024-11-24 15:17:52
Score: 1.5
Natty:
Report link

For single row:

=MAX(SCAN(0, N(MAX(A1:N1)=A1:N1), LAMBDA(a,v, IF(v=0, a*0, a+v))))

For multiple rows:

=BYROW(
    A1:N10,
    LAMBDA(r, MAX(SCAN(0, N(MAX(r) = r), LAMBDA(a,v, IF(v = 0, a * 0, a + v)))))
)

enter image description here

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

79220392

Date: 2024-11-24 15:17:52
Score: 1
Natty:
Report link

i can only help you with the closing the window part (put the code in a game loop and make sure you import "sys"):

for event in pygame.event.get():     #loop for every event currently triggering
if event.type == pygame.QUIT:    #if the events contain "QUIT"
     pygame.quit()               #close the pygame window
     sys.exit()                  #fully stop the program
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: cheese guy

79220390

Date: 2024-11-24 15:16:52
Score: 4.5
Natty:
Report link

I've built a small cli tool in Go for this purpose: https://github.com/ybonda/go-gcp-auditor

gcp services general report gcp services audit per project

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: ybonda

79220368

Date: 2024-11-24 15:07:50
Score: 1.5
Natty:
Report link

The SQLCODE -927 indicates that the application is attempting to execute a DB2 SQL statement, but the required DB2 environment is not properly initialized. Ensure that the IMS and DB2 subsystems are correctly configured to work together, and verify that the application is properly linked with the DB2 attachment module (DSNELI). Additionally, check the JCL to confirm that the appropriate DB2 region or plan is specified and active before the program executes the DB2 module.

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

79220357

Date: 2024-11-24 15:04:49
Score: 4
Natty: 6
Report link

use pip install datapush <- it generates data randomly.

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

79220348

Date: 2024-11-24 15:01:47
Score: 4
Natty:
Report link

The problem was resolved after I updated mlir to the latest with tag llvmorg-19.1.4.

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

79220346

Date: 2024-11-24 14:59:47
Score: 4
Natty:
Report link

Thanks Hans Passant for comment. Solution available at this link: https://developercommunity.visualstudio.com/t/unused-private-member-IDE0051-fading-e/10781612

To disable the rule for your entire project, add the following to your

.editorconfig file:

[*.{cs,vb}]
dotnet_diagnostic.IDE0051.severity = none
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eugene

79220340

Date: 2024-11-24 14:57:46
Score: 1.5
Natty:
Report link

Thanks to @ixSci for asking the good question that lead me on the path:

My Core library that was linking to the INTERFACE library did not have any source files in it, only other headers, so there was no compilation output. This causes either CMake or VS (not sure which) to not bring in the additional include directories. Once I added an empty TestSource.cpp into Core and ran CMake again, the include directories appear in the project properties as I expect and I can #include the headers in my files.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ixSci
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MSinger

79220328

Date: 2024-11-24 14:53:45
Score: 0.5
Natty:
Report link

Since you are using a Hbox container, you can just use the setSpacing() method:

setSpacing(double value)

This method allows you to set a desired space between the children of the HBOX container, which, in this scenario, is your buttons, this way:

buttonPanel.setSpacing(10);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NebuCodeNezzar

79220311

Date: 2024-11-24 14:45:43
Score: 2.5
Natty:
Report link

Bucket name shouldn't be passed with gs:// while using gcsfuse.
Eg: gcsfuse bucket_name /var/full/path/to/mount/location

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

79220306

Date: 2024-11-24 14:41:42
Score: 3
Natty:
Report link

Just run npm install sass, it is working solution in my case

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

79220304

Date: 2024-11-24 14:39:41
Score: 9.5 🚩
Natty: 4.5
Report link

did you find the solution? I am having the same issue when trying to run the model on pi.

Reasons:
  • RegEx Blacklisted phrase (3): did you find the solution
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find the solution
  • Low reputation (1):
Posted by: Kyoko

79220301

Date: 2024-11-24 14:38:40
Score: 3.5
Natty:
Report link

Today there are much more advanced solutions like the one of Deeyook.com

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

79220297

Date: 2024-11-24 14:38:40
Score: 1
Natty:
Report link

I found out that in my header file MainLib.hpp I had wrong path to my MainDLL.hpp header. after changing the path the program runs ok

#pragma once
#include "../Libs/MainDLL.hpp"
//#include "MainDLL.hpp" - fails to load MainDLL.dll library

namespace mf {
    extern mf::MainFuncPtr MainFunc;

    void InitMF(LPCWSTR Path);

    void UninitMF(void);
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Zmouch Zmouch

79220289

Date: 2024-11-24 14:34:39
Score: 2
Natty:
Report link

As Zeke Lu suggested use ShouldBindBodyWith(&param, binding.JSON) instead. I had a similar problem where I had to bind json twice, first in authorization layer, then the final context layer. I used ShouldBindJSON, and it returned EOF.

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

79220288

Date: 2024-11-24 14:33:39
Score: 1.5
Natty:
Report link

When Jenkins runs the tests, the paths in the generated report might be relative or incorrect, causing the browser to fail to load the images. Jenkins reports likely are done from differences in how file paths are resolved or accessed between your local environment and the Jenkins.

make sure the paths in the Jenkins report are absolute paths or URLs accessible from the Jenkins server itself. otherwise, you need to change your code to generate absolute paths. Also, ensure the Reports/screenshots folder is included in the artifacts. update your ensure_screenshot_folder method to print the folder path for debugging, i.e:
print(f"Screenshots folder: {screenshots_folder}") Run the Jenkins job and check the logs, is it created as expected?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When
Posted by: Ahmad

79220282

Date: 2024-11-24 14:30:38
Score: 0.5
Natty:
Report link

As per the code you shared, you are using basic and minimal features of the package(react-router-dom)

You will be able to differentiate when you start using loader, actions and many other properties in your routing definition.

To make myself clear: Example (for understanding only)

{
    path: ':eventId',
    id: 'event-detail',
    loader: eventDetail,
    children: [
        {
            // path: '', // if I use empty path my action(deleteEvent) will not work
            index: true, // I need to use this, then my action will work
            element: <EventDetailPage />,
            action: deleteEvent
        },
        {
            path: ':edit',
            element: <EditEventPage />,
        }
    ]

For now, defining index or path is same for you based on your code, if that is what your doubt is.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erielama

79220281

Date: 2024-11-24 14:30:38
Score: 0.5
Natty:
Report link

I don't get the full idea, but I think you want to add the separator for every 2 items / list? What I am thinking is to create a custom item rendered using the $index.


<?= Html::checkboxList('field_name', '', [
    'organisation_name'       => 'Organisation Name',
    'organisation_vat_number' => 'Organisation VAT Number',
    'invoice_number'          => 'Invoice Number',
    'invoice_date'            => 'Invoice Date'
], [
    'item' => function ($index, $label, $name, $checked, $value) {
        $separator = ($index % 2 == 1) ? '<hr>' : '';
        return "<label class='form-control'>" . Html::checkbox($name, $checked, ['value' => $value]) . " $label</label>" . $separator;
    }
]) ?>

The result :

Html checkbox

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Prabowo Murti

79220271

Date: 2024-11-24 14:26:37
Score: 1
Natty:
Report link

try this: FOR I IN REVERSE 10..1 LOOP

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

79220255

Date: 2024-11-24 14:14:34
Score: 3.5
Natty:
Report link

do not use any div tag replace it with section or other tag

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

79220253

Date: 2024-11-24 14:14:34
Score: 1.5
Natty:
Report link

Adding the "X-Socket-Id" headers to axios request made the work for me, in my case AXIOS_INSTANCE.interceptors.request.use( (request) => { request.headers['X-socket-ID'] = window.Echo.socketId() return request }, (error) => error )

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

79220248

Date: 2024-11-24 14:12:34
Score: 0.5
Natty:
Report link

Multiple SparkSession Instances can be configured, please consider following Pros and Cons:

Pros: Shares underlying SparkContext, reducing overhead. Isolated configurations and temporary data. Cons: Less isolation than separate SparkContexts. Potential for resource contention if not managed carefully.

Please carefully configure resource requests and limits for each SparkSession to avoid resource contention.Also consider using Kubernetes's scheduling mechanisms to prioritize and allocate resources to different SparkSessions.

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

79220247

Date: 2024-11-24 14:12:34
Score: 2
Natty:
Report link
def f(arr:List[Int]):Int = {
var c = 0;
for(i <- arr) c+=1
c
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lalit Patil

79220238

Date: 2024-11-24 14:08:33
Score: 0.5
Natty:
Report link

try to sanitizer you url and make pdfUrl : SafeResourceUrl as

  pdfUrl: SafeResourceUrl;
  constructor(
  private sanitizer: DomSanitizer,
  ) { }

and sanitizer it like that

 this.pdfUrl= this.sanitizer.bypassSecurityTrustResourceUrl(res);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hager Khaled