79409655

Date: 2025-02-03 18:19:39
Score: 0.5
Natty:
Report link

It's mentioned in the migration guide for v8.0.0.

Change MudDialogInstance to IMudDialogInstance.

It's a good idea to check for breaking changes whenever you upgrade major versions.


semantic version numbers semantic version numbers

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

79409654

Date: 2025-02-03 18:18:38
Score: 1.5
Natty:
Report link

Seems a very simple change can fix this. Dependeing on your global state just use the existence of auth token to check if the user is logged it in the layout file.

If token exists, show logged in users' nav else show default nav

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

79409652

Date: 2025-02-03 18:17:38
Score: 2
Natty:
Report link

Below is my utility function for destroying the cloudinary resources and the splitter URL which I have got from the DB but I am unable to delete the videos, only images get deleted even I have specified the resource type as well.

Function

    const deletefromCloudinary = async (url) => {
    try {
        const splitURL = url.split("/");
        console.log("Split URL:", splitURL);

        // Extract the public ID with the correct filename format
        let publicId = splitURL.slice(7).join("/");

        // Remove extra Cloudinary-generated extensions (like `.webp`)
        publicId = publicId.replace(/\.(jpg|jpeg|png|webp|gif|mp4|mov|avi|mkv)$/, "");

        console.log("Corrected Public ID:", publicId, {resource_type: `${splitURL[4]}`});

        // Use the correct delete method
        const deleteResponse = await cloudinary.uploader.destroy(publicId);

        console.log("Delete Response:", deleteResponse);
        return deleteResponse;
    } catch (error) {
        throw new Apierror(404, `No resource found for ${url} to delete`);
    }
};

Splitted URL

Split URL: [
  'http:',
  '',
  'res.cloudinary.com',
  'my-cloudinary',
  'image',
  'upload',
  'v1738605970',
  'youtube',
  'youtube',
  '1c3302f1145a4ca991633129c15264c7.png.webp'
]

The uploader

const response = await cloudinary.uploader.upload(localfilepath, {
            resource_type: "auto",
            use_filename: true,
            public_id: `youtube/${filename}`,
            folder: "youtube",
            overwrite: true,
            chunk_size: 6000000
        })

I am unable to figure out why I cannot delete the video files

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2): even I have
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Qasim Nauman

79409650

Date: 2025-02-03 18:15:37
Score: 1
Natty:
Report link

The other solution posted here did not work for me because the =WEEKDAY(A1,x)=1 function only allows x to be number 1 to 4 instead of 1 to 7

Example: 10 rows; Column A is the Date, Column B is Number Assigned to the Day of Week Number, Column C is the number you want averaged based on day of week.

Create new column (B) to assign a number for each day of the week.

    B
=WEEKDAY(A1)
=WEEKDAY(A2)
=WEEKDAY(A3)
   etc...

Sunday = 1, Monday = 2, Tuesday = 3, etc.

Then use the AVERAGEIF function for each day of the week.

Sunday

=AVERAGEIF(B1:B10,"1",C1:C10)

Monday

=AVERAGEIF(B1:B10,"2",C1:C10)

Tuesday

=AVERAGEIF(B1:B10,"3",C1:C10)

etc.

This solution only requires you to add one additional column for numeric value of the day of the week.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dogtormusician

79409643

Date: 2025-02-03 18:12:37
Score: 1
Natty:
Report link
Dim pptApp As Object
Dim pptPres As Object
Dim slideIndex As Integer

' Create a new PowerPoint application
Set pptApp = CreateObject("PowerPoint.Application")
pptApp.Visible = True

' Create a new
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Juliana Haddadin

79409639

Date: 2025-02-03 18:10:34
Score: 6.5 đŸš©
Natty:
Report link

Alguém conseguiu resolver esse conflito? Tentei as opçÔes acima e não funcionou!

Reasons:
  • Blacklisted phrase (1): nĂŁo
  • RegEx Blacklisted phrase (1.5): resolver esse conflito?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leonardo Martins

79409633

Date: 2025-02-03 18:09:33
Score: 1
Natty:
Report link

i will add more from my experience

  1. if you are using serverless cloud formation file, check if you deploying packages that are already included in aws env such as boto3 and many more.

  2. improve your code and remove global imports if you are using one function from the package/

  3. search for lite packages like numpy-lite or similar options to reduce size

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

79409627

Date: 2025-02-03 18:06:32
Score: 2
Natty:
Report link

Just update your react native version to "react-native": "0.77.0" and then clean your grade. Is worked for me.

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

79409623

Date: 2025-02-03 18:05:32
Score: 2
Natty:
Report link

Managed to resolve it myself. I retrieve data from a gallery, create a collection from specified items. then save json format of this data using JSON function. then sending that saved text in a newly created automated flow. this then is parsed using json parses. Final step is for each item in this json, update item from a sharepoint list with a specified id. anyone needs more info, let me know

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

79409617

Date: 2025-02-03 18:01:31
Score: 2
Natty:
Report link

This is happening because you have Proportional property set to true.

What Proportional property does is it shrinks the image in order to fit the control while maintaining the aspect ration. But if the size of TImage is larger than the dimensions of the picture the picture never gets stretched in order to fit the TImage control.

And since picture position within TImage control is always aligned to top left corner and you are changing the position of your TImage control it seems as the image starts moving in left and up direction.


How to solve this? Instead of setting Proportional property to True set the Stretch property to True.

However you will need to make sure that you adjust the Width and Height of your TImage in order to maintain aspect ratio of the loaded picture. After that your code will work just nicely.

How do you do this? Check the FormCreate event method in the SO answer you got your code from.

Reasons:
  • Blacklisted phrase (1): How do you
  • Blacklisted phrase (1): How to solve
  • RegEx Blacklisted phrase (1.5): How to solve this?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: SilverWarior

79409616

Date: 2025-02-03 18:00:30
Score: 3.5
Natty:
Report link

Do not confuse build tags with git tags.

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

79409615

Date: 2025-02-03 18:00:30
Score: 1
Natty:
Report link

Look like there is no argument in the CLI to disable the interactive thing progress bar. You could do something dirty like :

ollama pull llama3.2 2>/dev/null

But in case of error in future, you will maybe not like this solution

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

79409603

Date: 2025-02-03 17:52:28
Score: 3.5
Natty:
Report link

Removed the server and redeployed everything and now its working again.

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

79409596

Date: 2025-02-03 17:47:26
Score: 4.5
Natty:
Report link

You can check out this tutorial here. This article contains information on how to implement access to the gallery, camera, and also the necessary permissions for both Android and iOS. link here

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

79409592

Date: 2025-02-03 17:43:24
Score: 2
Natty:
Report link

I encountered this issue, in my case the problem was that I already had a file starting from the same string as the request I wanted to override. I wanted to create an override for "projects" response, but I already had an override for "projects/{id}". Removing the override for "projects/{id}" solved the issue. Stupid, but that's how it works apparently.

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

79409590

Date: 2025-02-03 17:43:24
Score: 0.5
Natty:
Report link

Please have a look

https://material.angular.io/components/progress-bar/styling

You can find the design token in the list

If you are using the material 2 version, you can use the color property. Therefor you should define a theme with you colors.

Information can be found here:

https://material.angular.io/guide/material-2-theming#defining-a-theme

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
Posted by: Thomas Renger

79409589

Date: 2025-02-03 17:42:24
Score: 3.5
Natty:
Report link

From step 3 described above, in the log of your scheduled query, choose the last time you ran with the old code, select edit on the menu that appears on the right:

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Joseph Zaccarillo

79409588

Date: 2025-02-03 17:42:24
Score: 2.5
Natty:
Report link

You have to set maxDuration in your vercel.json file. On hobby plan you can set 60s as maximum.

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

79409581

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

In something like Grid3D_Gas_Master_Emitter, look in the Emitter Update section for "Compensate For Actor Motion" and give it a blue check. So if you move the emitter source, it will act more like motion affected it.

There might be some influence of using "localspace" versus System as well -- I think that might be necessary if you put smoke or flame coming out of say a rocket. That's just updating the source of the output, and would not necessarily act like a flame thrower in a dynamic fashion without the Compensate for Actor Motion check.

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

79409578

Date: 2025-02-03 17:35:23
Score: 2
Natty:
Report link
Route::pattern('param', '[a-zA-Z0-9_-]+');

$euDomains = ['domaina.eu', 'domainb.eu', 'domainc.eu'];
$usDomains = ['domaina.com', 'domainb.com', 'domainc.com'];

foreach ($euDomains as $domain) {
   Route::domain($domain)->group(function () {
       Route::get('/somepage/{param}', 'HomeController@somePage');
   });
}

foreach ($usDomains as $domain) {
    Route::domain($domain)->group(function () {
       Route::get('/somepage/{param}', 'HomeController@somePage');
    });
}

Does this help you?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Hayden Sweet

79409570

Date: 2025-02-03 17:32:22
Score: 3
Natty:
Report link

The Using statement for Visual Studio does not work for unity and you need to add a driver and wrapper class for Unity itself instead of using the Nuget package or other DLL configurations.

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

79409566

Date: 2025-02-03 17:29:21
Score: 3
Natty:
Report link

You can also run the linux commands in windows using the linux subsystem (install linux subsystem, shift right click inside the parent folder and select "Open linux shell here").

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

79409564

Date: 2025-02-03 17:28:21
Score: 1
Natty:
Report link

Since you're on a Google Cloud Free Trial, your quota for SSD storage is limited to 250 GB, while the default GKE cluster requires 300 GB. You need to either:

✅ Option 1: Use Autopilot Mode (Recommended) Autopilot clusters automatically manage resources and fit within the free-tier limits. This avoids storage quota errors.

Steps: 1.Go to Google Cloud Console → Kubernetes Engine.

2.Click Create → Select Autopilot Cluster.

3.Choose a Region (e.g., us-central1).

4.Set a Cluster Name (e.g., my-cluster).

5.Click Create and wait for provisioning.

✅ Option 2: Use Standard Mode with Smaller Disk (Manual Setup) If you must use Standard mode, reduce the node size and disk usage:

Steps: 1.Go to Google Cloud Console → Kubernetes Engine.

2.Click Create → Select Standard Cluster.

3.Set Number of Nodes to 1 (instead of default 3).

4.Choose Machine Type:Select e2-medium (lower resource usage).

5.Under Boot Disk, change:

Click Create. đŸ”č Final Steps: Connect to the Cluster

1.Go to Kubernetes Engine → Clusters.

2.Click on your cluster name.

3.Click "Connect" and follow the instructions.

💡 Key Takeaways Autopilot mode is the best option for free-tier users. If using Standard mode, reduce the disk size and switch to HDD storage. Check your quota under IAM & Admin → Quotas to see available resources. Would you like help deploying an application on the cluster after setup? 😊

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

79409559

Date: 2025-02-03 17:27:20
Score: 1
Natty:
Report link

Encountered this, this morning. After reviewing the workflow, seeing no changes for 12 months and having no deployment issues within the same time, I simply canceled and restarted the workflow. It Worked!. Guess Github was just having a Monday.

TL:DR - have you tried turning it off and back on again?

Reasons:
  • Whitelisted phrase (-1): It Worked
  • Whitelisted phrase (-1): have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: jgritten

79409557

Date: 2025-02-03 17:27:20
Score: 1.5
Natty:
Report link

From the question

The problem is that recently Google is requiring to publish forms before using them. I tried to look for some function to use it in GAS but I do not find any. Can anyone tell me a way to publish forms in a script, so I do not have to do it manually?

You are referring to the change announced in Adding granular control options for who can respond to Google Forms.

This announcement does not mention an update or change to the Google Apps Script, and the Google Apps Script release notes do not say anything new related to Google Forms.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can anyone tell me
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Wicket

79409551

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

I've just used the dialog plugin to create a dialog. I'm not using the open file but I would like to share a snipped of what I did to open a dialog for Tauri V2 from Rust.

use tauri_plugin_dialog::DialogExt;

#[tauri::command]
fn app_exit (app: AppHandle)
{
    let is_confirmed = app.dialog()
        .message("Confirm quit?")
        .title("Quit")
        .kind(tauri_plugin_dialog::MessageDialogKind::Info)
        .buttons(tauri_plugin_dialog::MessageDialogButtons::YesNo)
        .blocking_show();

    if is_confirmed
    {
        app.exit(0);
    }
}

Link to the documentation if it could be useful:

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

79409550

Date: 2025-02-03 17:25:20
Score: 1
Natty:
Report link

You mean like this?

out

library(ggplot2)
    
df <- data.frame(
  category = c('a', 'b', 'c', 'd', 'e'),
  value1 = c(1.02, -0.34, 2.31,  1.15, 0.68),
  value2 = c(-1.14, 2.19, 0.56,  3.12, 1.17),
  value3 = c(0,     0.19, 3.18, -1.14, 2.12)
)

scale_factor <- diff(range(df$value2)) / diff(range(df$value3))

ggplot(df, aes(x = value1)) +
  geom_line(aes(y = value2, color = "Value 2")) +
  geom_line(aes(y = value3 * scale_factor, color = "Value 3")) +
  scale_y_continuous(
    name = "Value 2",
    sec.axis = sec_axis(~./scale_factor, name = "Value 3")
  ) +
  scale_color_manual(values = c("Value 2" = "blue", "Value 3" = "red")) +
  labs(x = "Value 1", color = "Variables") +
  theme_minimal()
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: dog

79409549

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

If all other methods have failed, you might want to check out the following repository, which supports both local and remote Vulkan GUI rendering:

https://github.com/j3soon/docker-vulkan-runtime

I've tested this on two different clean Ubuntu PCs (both local and remote SSH with X11 forwarding), and it works reliably well.

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

79409542

Date: 2025-02-03 17:22:19
Score: 1
Natty:
Report link

Faced this error compiling php7.4 with openssl 3.0.15. As a workaround just commented out line with usage of this constant from sources, did not get any further issues for now, it seems nobody use it.

Likely in your case it is ossl_pkey_rsa.c:942

Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: fidoman

79409523

Date: 2025-02-03 17:17:17
Score: 1
Natty:
Report link

To get all tenant names with their ids

az rest --method get --url https://management.azure.com/tenants?api-version=2022-12-01 --query "value[].{Name: displayName, TenantID: tenantId}" --output table
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben

79409516

Date: 2025-02-03 17:15:17
Score: 2.5
Natty:
Report link

The workaround is don't publish it on the Chrome Extension Store and release it as it is.

Example : https://github.com/Thor110/ChromeExtensions

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

79409505

Date: 2025-02-03 17:11:07
Score: 2.5
Natty:
Report link

firstly, you have to check the version of both angular and ckeditor which have to 5. then check out the link for smooth running of angular 19 with ckeditor 5. https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/predefined-builds.html it should be: npm install ckeditor5

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

79409497

Date: 2025-02-03 17:09:06
Score: 2
Natty:
Report link

Did you already check ConfigSeeder (www.configseeder.com)?

ConfigSeeder can provide configuration data very similar to Spring Config Server (e.g. direct integration for example into spring/spring boot based applications). In addition, it can provide configuration data to different runtime environments - there are different 'connectors' that can:

Disclaimer: I'm one of the ConfigSeeder developers.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Christian

79409492

Date: 2025-02-03 17:07:06
Score: 2.5
Natty:
Report link

In addition to more liberal control of dependencies when creating functions that do not detect some of the errors of object interdependencies in time but only at startup, and the lack of classic PL/SQL packages such as the Oracle database, rewrite queries when creating Views is one of the most irritating features in the PostgreSQL database. according to my limited 35-year experience in working with databases, there is nothing to justify it.

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

79409478

Date: 2025-02-03 17:01:04
Score: 0.5
Natty:
Report link

Turns out this can also happen in cases when your package doesn't support your solution.

In my case, I had a .NET 8 project:

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

I was trying to install Microsoft.AspNetCore.Authentication.JwtBearer version 9.0.1, which is only compatible with net9.0.

The solution? Install the 8.0.12 version of the package instead. Problem solved.

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

79409477

Date: 2025-02-03 17:00:03
Score: 4.5
Natty:
Report link

thanks a lot. I just have a little question : if the height of my Virtualize component is 30 pixels by item, and that I ask a scroll of 30*n pixels via a javascript function, will it make an actual scroll of n elements ?

I'm not good in JavaScript : If I ask a scroll for the div that contains the Virtualize, will it work the way I expect ? Thanks for any help, since I'm still on my project :) Gustave

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): any help
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gustave Robichon

79409473

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

I have figured it out.

On the current stable channel the prisma-engines is in version 5.22. My @prisma/client was in version 6.1.0. This mismatch causes issues with prisma client. Downgrading to 5.22, removing package-lock.json and node_modules and installing everything again (inside the developement repository) worked.

For anyone curious, at the time of wiritng, latest unstable prisma-engines is in version 6.0.1.

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

79409470

Date: 2025-02-03 16:58:03
Score: 3
Natty:
Report link

ensure that "index" is properly recognized in f.getProperty("index"). You might need to check if the property exists or debug by logging all available properties in f to confirm.

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

79409468

Date: 2025-02-03 16:58:02
Score: 4
Natty: 4
Report link

@ Timothy Rylatt

This person is just trying to be helpful however you had to comment something negative. Honestly, if you have nothing nice to say do not say it

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Pearl Patel

79409464

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

I found a solution for this use relative path

-    <script type="module" crossorigin src="/assets/index-BbwXgWnI.js"></script>
-    <link rel="stylesheet" crossorigin href="/assets/index-D9dz9LQE.css">
+    <script type="module" crossorigin src="assets/index-BbwXgWnI.js"></script>
+    <link rel="stylesheet" crossorigin href="assets/index-D9dz9LQE.css">

here is a similar question github pages and relative paths, but I think this question is out of date. Github Page can solve relative paths successfully. without any additional configuration.

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

79409463

Date: 2025-02-03 16:55:01
Score: 2
Natty:
Report link

In my case i just change the <> to <div> and error fixed.

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

79409462

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

The Google Maps/Navigation SDK isn't currently supported on Android Automotive OS Cars with Google built-in, so that may be part of the issue.

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

79409457

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

For this method, both monitors need to be using the same type of cable (DP, HDMI, etc.).

  1. Power on the PC.
  2. Disconnect both cables from the PC.
  3. Reconnect the cable that you want to be Monitor 1, in the port where the previous Monitor 1 was.
  4. Reconnect the other cable in the other port.

I had the same issue. I don't know if this works with a dock, but it works if connected directly to the graphics card with Windows 10/Nvidia graphics/DisplayPort.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Colos Nihili

79409448

Date: 2025-02-03 16:48:00
Score: 2
Natty:
Report link

I can not comment on ÂŽN. KaufmanÂŽ right away, because of my reputation, but I figured a way out to login using your browser auto-login system. It is just entering the username, then TAB to the password section to let your browser auto-fill the password while waiting 2 seconds for the auto-fill to then enter. In this case you also prevent others from stealing your password out of your file and the grandma do not need to bother loosing the file, because of your browsers cloud safe.

@if (@CodeSection == @Batch) @then


@echo off

rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
START FIREFOX "URL"
rem the script only works if the application in question is the active window. Set a 
timer to wait for it to load!
timeout /t 10
rem use the tab key to move the cursor to the login and password inputs. Most htmls 
interact nicely with the tab key being pressed to access quick links.
rem %SendKeys% "{TAB}"
rem now you can have it send the actual username/password to input box
%SendKeys%  "{TAB}"
%SendKeys%  "{TAB}"
%SendKeys%  "USERNAME"
%SendKeys%  "{TAB}"
timeout /t 2
%SendKeys%  "{ENTER}"


goto :EOF

@end
// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));
Reasons:
  • RegEx Blacklisted phrase (1): can not comment
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PAARTHURNAX

79409447

Date: 2025-02-03 16:48:00
Score: 2
Natty:
Report link

In my case, the solution was to add:

await page.waitForNavigation();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LucBerge

79409445

Date: 2025-02-03 16:46:59
Score: 0.5
Natty:
Report link

I am not sure that will help but. If it's beeping, your loop is still running for sure. However, What does not loop is your button 2 handler. So in order, to make your loop stop you need to press on button12.

Furthermore, there is a double equal sign (==) at line 19. This can also explain what happens.

I hope it helped !

Reasons:
  • Whitelisted phrase (-1): hope it help
  • No code block (0.5):
  • Low reputation (1):
Posted by: InsulinJunkie

79409440

Date: 2025-02-03 16:45:58
Score: 7 đŸš©
Natty: 5
Report link

Bro U forgot save file , I have same problem just go in css file and click ctrl + s <3

Reasons:
  • Blacklisted phrase (1): I have same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rimu

79409435

Date: 2025-02-03 16:44:57
Score: 3.5
Natty:
Report link

Colour prediction server hack

*emphasized text

Blockquote

  1. List item## Heading ##
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Vallarasu

79409422

Date: 2025-02-03 16:41:56
Score: 2.5
Natty:
Report link

See comment on similar question here

Perhaps Git Submodules could be applied.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Scott C.

79409404

Date: 2025-02-03 16:35:55
Score: 2
Natty:
Report link

I believe the HTTP Image Filter is a dynamic module that should be enabled during NGINX compilation using the --with-http_image_filter_module=dynamic flag.

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

79409399

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

You can just check if any of the characters is the character you are looking for. Since you are looking for the character value of 0x200D (or 8205 in decimal) you can go like this:

static bool IsNeeded(string input)
{

    return input.Any(c => c == 0x200D);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lucas Sander

79409398

Date: 2025-02-03 16:33:54
Score: 1.5
Natty:
Report link

Clerk employee here!

When you call mountSignIn() to mount the <SignIn /> component, you can pass an optional props parameter: https://clerk.com/docs/components/authentication/sign-in#mount-sign-in

One of those props is forceRedirectUrl: https://clerk.com/docs/components/authentication/sign-in#properties:~:text=Name-,forceRedirectUrl,-%3F

Once you've configured this, when a user uses the <SignIn /> component to sign in, they will be redirected to whatever URL you passed to forceRedirectUrl.

Example:

mountSignIn({ forceRedirectUrl: `/dashboard` })
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: alexisintech

79409394

Date: 2025-02-03 16:32:54
Score: 1.5
Natty:
Report link

i am changed setting graphics to hardware from software and it worked for me +

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

79409393

Date: 2025-02-03 16:32:54
Score: 0.5
Natty:
Report link
func exists(_ filePath: String) async throws{
    let storage = Storage.storage()
    
    let storageRef = storage.reference(withPath: filePath)

    _ = try await storageRef.getMetadata()
}

If exists, do not throw.

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

79409386

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

I just fixed that by asking the IT a newer version of GCC

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

79409384

Date: 2025-02-03 16:26:52
Score: 0.5
Natty:
Report link

I am using SSM Parameter Store for config management. There, I have one GENERAL config that is used by all EC2 instances. Additionally, I have SPECIFIC config for EC2 instances that require more setting beyond the GENERAL config.

Here is how you could do it:

#fetch GENERAL config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -s -m ec2 -c ssm:AmazonCloudWatch-GENERAL-cw-config

#fetch SPECIFIC config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a append-config -m ec2 -s -c ssm:AmazonCloudWatch-SPECIFIC-cw-config

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

79409382

Date: 2025-02-03 16:26:52
Score: 0.5
Natty:
Report link

There is no need for loop, try this easy method, but there are others too:

name=input('Enter your name: ')
bid=input('Enter your bid: ')
dict1={}
dict1[name]=bid
print(dict1)
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Antonis Konstantinou

79409371

Date: 2025-02-03 16:21:50
Score: 0.5
Natty:
Report link

command: "nodemon --inspect=0.0.0.0:9229 -L --nolazy --signal SIGINT file_path_name"

This solution worked for me. You can check this post:here.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harmik Lathiya

79409367

Date: 2025-02-03 16:20:50
Score: 1.5
Natty:
Report link

Restoring a GitLab instance using Docker Swarm can sometimes result in the Git repositories not being restored properly, even if the database and other components are successfully restored.

It looks like the issue is that the Git repositories aren't being restored properly when you're using the GitLab backup/restore process. Here are some steps you can follow to troubleshoot and fix this:

1. Check the Backup File: Make sure the backup file (<backup-id>_gitlab_backup.tar) actually includes the repository data. You can extract or list the contents of the backup file to confirm.

2. Verify Docker Volumes: If you're using Docker, ensure the volume for repository data (usually /var/opt/gitlab) is mounted correctly. If the data wasn't backed up properly due to misconfigured volumes, it won't restore.

3. Use the Correct Restore Command: When restoring, you need to specify the backup ID correctly. For example:

docker exec -t <container_name> gitlab-backup restore BACKUP=<backup-id>

Replace <container_name> with your container's name and <backup-id> with the correct ID of your backup.

4. Match GitLab Versions: The version of GitLab you're restoring to must match the version from which the backup was created. Mismatched versions can lead to issues during the restore process.

5. Monitor for Errors: During the restore process, check the logs for any errors or warnings. These often point to what went wrong.

6. Review Configuration: Make sure your GitLab configuration (like repository paths in /etc/gitlab/gitlab.rb) is set up properly. Incorrect settings here could cause the restore process to skip the repositories.

7. Check Permissions: If the files are restored but GitLab can't access them, it might be a permissions issue. Ensure the correct ownership and permissions are applied to the restored data.

If you've gone through these steps and it still doesn't work, feel free to share more details. For example, any specific error messages or your setup (like Docker Swarm or standalone installation). It might help narrow down the issue!

Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aswana

79409365

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

add these lines inside app/build.gradle file

buildTypes {
  release {
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

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

79409364

Date: 2025-02-03 16:18:50
Score: 0.5
Natty:
Report link

Since the developers changed the path again and the other answers don't work anymore:

if __name__ == "__main__":
    import subprocess
    from streamlit import runtime
    if runtime.exists():
        main()
    else:
        process = subprocess.Popen(["streamlit", "run", "src/main.py"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sglbl

79409338

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

The issue turned out to be the file path. I made a post on Reddit about this issue and one user pointed out

<script>
  import '../scripts/menu.js';
</script>

Really should be

<script>
  import '../assets/scripts/menu.js';
</script> 

Once I made the change the page built as expected.

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

79409334

Date: 2025-02-03 16:09:46
Score: 6.5 đŸš©
Natty: 5
Report link

It didn't help. I've tried all of that including reinstalling pip manually twice, yet the problem persists. The only thing I'm anxious about is the Path variable. Mine is spelt "Path" instead of "PATH". I want to know whether this is the cause of the problem. When i try to change it without applying it, all the other paths in the "Path" variable disappears. Same happens when i try to create a new "PATH" variable. Is there anything else I can do?

Reasons:
  • Blacklisted phrase (1): I want to know
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Emmanuel Oduro

79409329

Date: 2025-02-03 16:06:45
Score: 2
Natty:
Report link

Unity uses a left-handed coordinate system. According to the official tutorials, you use your left hand to determine the direction of cross(a, b). However, if you calculate it directly using the formula, the result appears to be the same as what you get in a right-handed coordinate system. For example, (1,0,0) × (0,1,0) always equals (0,0,1), no matter which coordinate system you are in. The left hand rule applied to Cross(a, b).

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

79409321

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

Thanks to Tom, I now understand I should have specified the width of the first format when I nested it in the second format. In other words, I changed [longfmt.] to [longfmt52.]:

PROC FORMAT;
VALUE longfmt
    1 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
VALUE nestfmt
    1 = [longfmt52.];
QUIT;

PROC SQL;
CREATE TABLE tbl (col NUM);
INSERT INTO tbl VALUES (1);

SELECT col FORMAT=longfmt. FROM tbl;
SELECT col FORMAT=nestfmt. FROM tbl;
QUIT;
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nik

79409319

Date: 2025-02-03 16:01:44
Score: 2.5
Natty:
Report link

SELECT Email, Function FROM database qualify row_number() over(partition by Email order by Function) ==1

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

79409316

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

The problem was the tool that Visual Studio was trying to use for authentication.

Go to Tools > Options > Environment > Accounts. Under Add and reauthenticate accounts using, open the drop-down and select something different. In my case, I changed it from System web browser to Embedded web browser and then VS displayed the sign-in dialog.

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

79409310

Date: 2025-02-03 16:00:43
Score: 2.5
Natty:
Report link

Found a policy that was changing the url of the requestor which caused the good_referrer to NOT match the request_referrer. It took a while to find it. We needed the WTF_CSRF_ENABLED set to true.

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

79409291

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

This can occur due to the antivirus HTTPs checking, like in Avast in my case. I solved exporting the Avast cerfificate to the cerificate bundle file used by the PHP

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AntĂŽnio Diego Silva

79409290

Date: 2025-02-03 15:52:41
Score: 0.5
Natty:
Report link

If you use gym, you can simply disable the xcpretty to show all the log:

xcodebuild_formatter: '',
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: JERC

79409283

Date: 2025-02-03 15:47:40
Score: 4
Natty:
Report link

I managed to find a very ugly workaround to deal with this.

It seems that the figure starts with 3 colorscales. And, as soon as I trigger any hover/highlight event, 2 more colorscales are created, for a total of 5.

The default (viridis) colorscale seems to be always the 3rd one. Thus, I added a little JS snippet that hides its layer on window load:

```{js}
function code_default() {
    document.getElementsByClassName('infolayer')[0].getElementsByClassName('colorbar')[2].style.display = 'none'
}
window.onload = code_default;
```

Does anyone know of a better way to deal with this?

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dkysh

79409274

Date: 2025-02-03 15:43:39
Score: 3
Natty:
Report link

I propose you Excalidraw and Draw.io integration.

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

79409272

Date: 2025-02-03 15:41:39
Score: 3
Natty:
Report link

You can achieve this by creating a separate binary framework for your assets. The Emerge tools team has a great article on how to do it.

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

79409263

Date: 2025-02-03 15:37:38
Score: 1.5
Natty:
Report link

With that syntax you're attempting to set an object to a number property.
To solve this use {'stat.dataCount': records.length} instead of
{'stat.dataCount': {$size: "$data"}}.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hello-there-general-kenobi

79409256

Date: 2025-02-03 15:33:36
Score: 6
Natty: 7
Report link

why do we have to start the whatsapp client on multiple devices?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): why do we have to
  • Low reputation (1):
Posted by: Oriuwa Goodluck

79409251

Date: 2025-02-03 15:31:35
Score: 3
Natty:
Report link

Use this command for mac:

control ^ + -

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Syed Shayan Hasan

79409243

Date: 2025-02-03 15:27:34
Score: 0.5
Natty:
Report link

When Maxima fails to find a symbolic solution, you can always try to find a numeric solution instead:

(%i1) eq1:43=%pi/4*d*d*h$
(%i2) eq2:d1=d0-2*h$
(%i3) eq3:d0=9$
(%i4) eq4:d=(d0+d1)/2$
(%i5) solve(float([eq1,eq2,eq3,eq4]),[d,d1,h,d0]);
(%o5) [[d = 3.02775290957923, d1 = - 2.9444945848375452, 
h = 5.972247918593895, d0 = 9.0], [d = - 2.209973166368515, 
d1 = - 13.41994750656168, h = 11.20997375328084, d0 = 9.0], 
[d = 8.182220434432823, d1 = 7.364440868865648, h = 0.8177795655671762, 
d0 = 9.0]]
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Jaime Villate

79409226

Date: 2025-02-03 15:22:32
Score: 3
Natty:
Report link

In case someone else stumbles upon this thread, this seems to be a good alternative: https://github.com/velopack/velopack

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

79409219

Date: 2025-02-03 15:18:31
Score: 0.5
Natty:
Report link

You could add a Message step of type "Webhook" to call Braze /users/track API to attribute a custom user attribute, and then use this attribute for the Decision split block.

In the Webhook you have access to canvas entry properties which you can access like this:

{
  "attributes": [
    {
      "external_id": "{{${user_id}}}",
      "custom_property": "{{canvas_entry_properties.${custom_value}}}"
    }
  ]
}

and when triggering the Canvas via API passing it to the canvas_entry_properties like this

{
    "canvas_id": "<canvas id>",
    "recipients": [
        {
            "external_user_id": "<user id>",
            "canvas_entry_properties": {
                "custom_value": "Value"
            }
        }
    ]
}

enter image description here

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

79409217

Date: 2025-02-03 15:17:31
Score: 0.5
Natty:
Report link

This is work (_stream and _listener are private fields, initialising into task):

    public void Stop()
    {
        if (_listenTask != null)
        {
            _source.Cancel();

            try
            {
                _stream?.Close();
            }
            catch (Exception)
            { }

            try
            {
                _listener?.Stop();
            }
            catch (Exception)
            { }

            while (!(_listenTask.IsCanceled || _listenTask.IsCompleted || _listenTask.IsFaulted))
            {
                Thread.Sleep(1);
            }

            _listenTask = null;
            _source = null;
        }
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29484439

79409216

Date: 2025-02-03 15:16:31
Score: 3.5
Natty:
Report link

Thanks at all for your contributions. For resolving it definitifly I used $table->timestamps(2) instead of $table->timestamps() in migration file It finually work successful

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

79409214

Date: 2025-02-03 15:16:31
Score: 2
Natty:
Report link

I had the same error message if the storage account was not in the same region as the recovery vault.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AlyaKoni

79409205

Date: 2025-02-03 15:12:30
Score: 2
Natty:
Report link

You could do this easily with send money endpoint. If you send funds to an email which isn't signed up, the email address will receive an email notifying to sign up to redeem funds. If the funds haven't been redeemed (i.e. user signed up) in 30 days, the funds will be returned to sender's Coinbase account. And fake funding to wallet also

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: User Always keep believing in

79409189

Date: 2025-02-03 15:06:28
Score: 2
Natty:
Report link

I have this issue on my side with the right path of the collection and with the right import, and just a yarn install fix it.

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

79409171

Date: 2025-02-03 14:55:26
Score: 2.5
Natty:
Report link

You can use the DinosOffices. is a lib LibreOffice for Delphi. https://github.com/Daniel09Fernandes/DinosOffice

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniel Fernandes

79409164

Date: 2025-02-03 14:54:26
Score: 1
Natty:
Report link

Not a stricktly the answer for width, but for heights - With focus on the terminal, Ctrl + Cmd + up /down worked on macOS.

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

79409161

Date: 2025-02-03 14:53:26
Score: 0.5
Natty:
Report link

When talking about reflection, the 2 mistakes that are most common...

  1. They want a library or compiler feature that does it all for them. Not everything is a plugin.
  2. They want to write
for (const auto& mbr : my_struct)
{
   // but what is the type of mbr now, it changes for every member
   // you cannot "loop" over things of different types.
}

But... While most programmers find 'for loop's a comfortable and familiar way of writing code it is in-fact a bit of an anti-pattern in modern C++. You should prefer algorithms and "visitation". Once you learn to give up on iteration, and prefer visitation (passing functions to algorithms), you find that the pattern I describe below is quite usable.

So what is the easy way... Given just three techniques you can roll your own reflection system in C++17 onwards in a hundred lines of code or so.

  1. You can easily "visit" every member of a tuple in a few line in C++. From - https://en.cppreference.com/w/cpp/utility/apply
template<typename... Ts>
std::ostream& operator<<(std::ostream& os, std::tuple<Ts...> const& theTuple)
{
    std::apply
    (
        [&os](Ts const&... tupleArgs)
        {
            os << '[';
            std::size_t n{0};
            ((os << tupleArgs << (++n != sizeof...(Ts) ? ", " : "")), ...);
            os << ']';
        }, theTuple
    );
    return os;
}

Understand this code before reading on...

What you need a system that makes tuples from structures. Boost-PFR or Boost-Fusion are good at this, if you want a quick-start to experiment on.

  1. The best way to access a member of a structure is using a pointer-to-member. See "Pointers to data members" at https://en.cppreference.com/w/cpp/language/pointer. The syntax is obscure, but this is a pre-C++11 feature and is a stable feature of C++.

  2. You can make a static-member function that constructs a tuple-type for your structure. For example, the code below makes a tuple of member pointers for "Point", pointers to the "offset" of the members x & y. The member-pointers can be determined at compile-time, so this comes with a mostly zero-cost overhead. member-pointers also retain the type of the object they point to and are type-safe. (Every compiler I have used will not actually generate a tuple, just generate the code produced, making this a zero-overhead technique... I can't promise this but it normally is) Example struct...

struct Point
{
    int x{ 0 };
    int y{ 0 };

    static consteval auto get_members() {
        return std::make_tuple(
            &Point::x,
            &Point::y
        );
    }
};

You can now wrap all the nastiness up in simple wrapper functions. For example.

// usage visit(my_point, [](const auto& mbr) { std::cout << mbr; });
// my_point is an object of the type point which has a get_members function.
template <class RS, class Fn>
void visit(RS& obj, Fn&& fn)
{
    const auto mbrs = RS::get_members();

    const auto call_fn = [&](const auto&...mbr)
    {
        (fn(obj.*mbr.pointer), ...);
    };
    std::apply(call_fn, mbrs);
};

To use all you have to do is make a "get_members" function for every class/structure you wish to use reflection on.

I like to extend this pattern to add field names and to allow recursive visitation (when the visit function sees another structure that has a "get_members" function it visits each member of that too). C++20 also allows you to make a "concept" of visitable_object, which gives better errors, when you make a mistake. It is NOT much code and while it requires you to learn some obscure features of C++, it is in fact easier than adding meta-compilers for your code.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Netty Unreal

79409142

Date: 2025-02-03 14:44:24
Score: 2
Natty:
Report link

Visual Studio 2022. Curiously this happens in an ATL with MFC project if the generated project_i.c is compiled prior to dllmain.cpp. The fix is to open the project file project.vcxProj in a text editor like Notepad++, find the ItemGroup containing the C/C++ files, and make sure dllmain.cpp is at the top.

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

79409138

Date: 2025-02-03 14:43:24
Score: 3
Natty:
Report link

What platform are you using? Technology has come a long way since you've asked that question. Variations you can create is pretty much unlimited with a platform like HyperVoice or 11labs. You can even clone your own voices with perfect resemblance.

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

79409136

Date: 2025-02-03 14:43:24
Score: 2.5
Natty:
Report link

For anyone still needing this — I had a similar issue and shared my solution in this GitHub discussion: https://github.com/vercel/next.js/discussions/59488

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rafael Gonçalves

79409129

Date: 2025-02-03 14:39:23
Score: 3
Natty:
Report link

The answer is that there is only one class in this tree, so no class name is displayed.

You can verify this in the source code: https://github.com/scikit-learn/scikit-learn/blob/160fe6719a1f44608159b0999dea0e52a83e0963/sklearn/tree/_export.py#L377

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: giando.c

79409125

Date: 2025-02-03 14:38:22
Score: 1
Natty:
Report link

There is currently a bug in the Cloud SDK where proxy tokens are improperly cached.

To fix this, we currently recommend disabling the cache. E.g. like this:

.execute({ destinationName: 'DESTINATION', jwt: 'JWT', useCache: false })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bananabrÀd

79409124

Date: 2025-02-03 14:37:22
Score: 1.5
Natty:
Report link

Every mongodb document must contain an identifier described as _id (the error does tell you that
An error occurred while serializing the Identifiers property of class Resource);
you can solve the problem by changing the property id to ObjectId _id or by adding [BsonNoId] before each class you are defining.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hello-there-general-kenobi

79409118

Date: 2025-02-03 14:35:22
Score: 2.5
Natty:
Report link

For modern browsers, consider structuredClone:

https://developer.mozilla.org/en-US/docs/Web/API/Window/structuredClone

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

79409113

Date: 2025-02-03 14:32:21
Score: 1
Natty:
Report link

Here's the working example originally suggested by brian d foy:

    use Mojo::URL;
    use Data::Dumper;
    
    my $url = "https://example.com/entry/#/view/TCMaftR7cPYyC3q61TnI6_Mx8PwDTsnVyo9Z6nsXHDRzrN5ftuXxHN7NvIGK34-z/366792786/aHR0cHM6Ly9lcGwuaXJpY2EuZ292LmlyL0ltZWlBZnRlclJlZ2lzdGVyP2ltZWk9MzU5NzQ0MzkxMDc2Mjg4";
    
    my $fragment = Mojo::URL->new($url)->fragment;
    my @parts = $fragment =~ m{([^/]+)}g;
    
    print $parts[1];
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dan

79409104

Date: 2025-02-03 14:29:20
Score: 1.5
Natty:
Report link

A quick fix for it is to hit Ctrl + Shift + F once and hit Ok once, then quickly hit Ctrl + Shift + F once again and hit the Stop Find button before the initial search is complete.

After this, try again to Search normally should prompt the correct output and display all occurrences in the Entire Solution.

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

79409101

Date: 2025-02-03 14:28:20
Score: 1
Natty:
Report link

So by looking a bit more patiently in the documentation, i noticed this section:

sqlalchemy_session_persistence
Control the action taken by sqlalchemy_session at the end of a create call.

Valid values are:

None: do nothing

'flush': perform a session flush()

'commit': perform a session commit()

The default value is None.

Why the hell the default option is 'None'? I don't know. But just by setting it manually to 'commit' the data started being saved on database.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: JoĂŁo Pedro Martins de Paula

79409098

Date: 2025-02-03 14:28:20
Score: 0.5
Natty:
Report link

As from Here:

A deadlock requires four conditions: mutual exclusion, hold and wait, no preemption, and circular wait.

It does not matter matter if you use a unique lock or normal lock, any waiting operation which fulfills the four conditions can cause a deadlock.

The current code does not fulfill the deadlock conditions
As @Mestkon has pointed out in the comments, in your code every thread currently uses only one mutex, thus it is impossible to fulfil the "hold and wait" condition. Thus no deadlock can happen.

Define a locking sequence
A usually simple practical approach is to define a locking sequence and use it everywhere.
For example if you ever need mutex1 and mutex2 at the same time, make sure to always lock mutex1 first, then mutex2 second (or always the other way around).
By that you can easily prevent the "circular wait" (mutex1 waiting for mutex2 and mutex2 waiting for mutex1) condition, thus no deadlock can happen.

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

79409094

Date: 2025-02-03 14:27:20
Score: 0.5
Natty:
Report link

Using getActiveRange() as Parameter

Agreeing @TheMaster you cannot directly assign a parameter into the menu item, Using the getActiveRange() and getValues() method as a workaround would help.

To use this workaround you just need to highlight the range of the value and it returns an array as the value of the parameter additionally using .toast() to check the return values of the highlighted cells.

function onOpen(e) {
  SpreadsheetApp.getUi()
    .createMenu('foo')
    .addItem('bar', 'foobar')
    .addToUi();
}

function foobar(bar = SpreadsheetApp.getActiveRange().getValues()) {
  return SpreadsheetApp.getActiveSpreadsheet().toast(bar);
}

Reference:

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

79409092

Date: 2025-02-03 14:25:19
Score: 2
Natty:
Report link

As suggested by @Rafael Winterhalter, the issue was resolved after injecting the ApplicationTraceContext class.

ClassInjector.UsingUnsafe.ofBootLoader().inject(Collections.singletonMap(
    new TypeDescription.ForLoadedType(ApplicationTraceContext.class),
    ClassFileLocator.ForClassLoader.read(ApplicationTraceContext.class)
));
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Rafael
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jay_ran