79139798

Date: 2024-10-30 05:57:29
Score: 1.5
Natty:
Report link

Yes, you can use

from sortedContainers import SortedList

ref: https://grantjenks.com/docs/sortedcontainers/sortedlist.html

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yu Yan

79139794

Date: 2024-10-30 05:56:29
Score: 2
Natty:
Report link

please set the line height to normal:

span.status-stop {
  line-height: normal;
}

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: iStandWithIsrael.js

79139791

Date: 2024-10-30 05:54:28
Score: 0.5
Natty:
Report link

It is most likely caused by the Edge auto-fill feature. You can try turning it off at edge://wallet/settings --> Save and fill basic info. Just toggle off this option and observe the behavior.

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

79139788

Date: 2024-10-30 05:53:28
Score: 1
Natty:
Report link

I've got the right answer to my question from here on Reddit

Inserting one row at a time will cause single row based snapshot/transaction being created. So if you are inserting thousands or millions of rows, expect each to create a snapshot and also create a parquet of few KBs with just one record in it. INSERT INTO table VALUES syntax will cause all kind of issues including the one you reported.

I will suggest the following:

Try creating a staging table/file/in-memory location where you can store the intermediate rows before doing a BULK upload into Iceberg table. This way there will be only one snapshot/transaction and also the underline parquet file size will also be optimal like 256MB standard. For example create a csv file to hold few thousands of records in the staging area and then upload that csv file as bulk upload to Iceberg since then it will be considered a single snapshot/transaction, this will keep your metadata folder space small in size.

If you want to continue with your existing approach than Iceberg provide options to expires and delete snapshots. You might want to run the expire command after few thousand records being inserted. This way your metadata folder space will be under check.

My recommendation will be Option#1.

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

79139777

Date: 2024-10-30 05:47:27
Score: 1.5
Natty:
Report link

I am happy to report that I have fixed my issue. Here's the solution in case someone faces the same issue -

I added these two in dockerfile

# Set environment variable for the listening port, as required by Cloud Run
ENV ASPNETCORE_URLS=http://+:8080

ENV PORT 8080

FYI - I already had EXPOSE 8080 and yet, the above two lines were required. This makes sense, as the error suggested something about PORT 8080. However, I still do not understand why these two lines were required as it was working fine before. I wonder if it is because of the dotnet 9 upgrade. Let me know if anyone has a clue.

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Komal R

79139775

Date: 2024-10-30 05:46:27
Score: 1
Natty:
Report link

Tip for anyone who encounter a similar problem - try checking the element.isConnected property. When removing an element from it's parent DOM node it also causes the parent element to be null.

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

79139771

Date: 2024-10-30 05:44:26
Score: 0.5
Natty:
Report link

StackOverflow, bad enum value, self referencing properties. All great possible triggers for this error but how to find WHERE!

First of all forget IISExpress - that's just the 'messenger'.

I disabled IISExpress and ran my code in the console. Fortunately this gave me the extra message that wasn't appearing in Visual Studio when using iisexpress.

And for me it was a clumsy Stackoverflow (I added an overload recently but it called itself instead of the other method).

enter image description here

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): Stackoverflow
  • No code block (0.5):
  • High reputation (-2):
Posted by: Simon_Weaver

79139766

Date: 2024-10-30 05:43:26
Score: 1.5
Natty:
Report link

Finally I got the solution. I executed nginx -T. It shows me the loaded configuration. using this, I came to know about the file which was actully overriding all the custom configuration. So, I added my custom config in it.

proxy_read_timeout 1800s
fastcgi_read_timeout 1800s
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Darpan Chaudhari

79139758

Date: 2024-10-30 05:40:25
Score: 1
Natty:
Report link

Other solutions did not work for me. Here is a hacky solution that did work for me:

import select

_ORIGINAL_SELECT = select.select


def _safe_select(*args, **kwargs):
    try:
        return _ORIGINAL_SELECT(*args, **kwargs)
    except OSError as e:
        if e.errno == 10038:
            return [], [], []
        else:
            raise

select.select = _safe_select

This code prevents select.select() to raise the OSError 10038

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

79139732

Date: 2024-10-30 05:26:21
Score: 1.5
Natty:
Report link

This happens with me yesterday, found that Xcode got update in background. Due to which new SDK wasn't installed (iOS 18.1).

Before installing new SDK, I've removed 18.0 SDK & associated simulators with it. After this "No simulator runtime version from [<DVTBuildVersion 21C62>, <DVTBuildVersion 21E213>, <DVTBuildVersion 21F79>] available to use with iphonesimulator SDK version <DVTBuildVersion 22A3362>" was gone.

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

79139723

Date: 2024-10-30 05:23:21
Score: 0.5
Natty:
Report link

The logs went away when adding the following rule to the nlog.config file:

<rules>
    <logger name="Microsoft.*" final="true" /> <!-- <<<< this rule -->
    <logger name="*" minlevel="Info" writeTo="Console"/>
</rules>

The final="True" is to prevent matching any other rule for the loggers on the Microsoft.* namespaces and note that do not have any writeTo attribute.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonathan Gómez Pérez

79139712

Date: 2024-10-30 05:12:19
Score: 3
Natty:
Report link

Yes you don't need to use multiple ports rather can use the same ports.it is not necessary for a chat app to use multiple porats

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

79139710

Date: 2024-10-30 05:09:18
Score: 3
Natty:
Report link

Azure Cosmos DB Gremlin does not support Transaction Management as of today:

https://learn.microsoft.com/en-us/azure/cosmos-db/gremlin/support?source=recommendations#unsupported-features

However, you can post your feedback over Azure Cosmos DB feedback channel to get this feature created if upvoted and prioritized by the team:

https://feedback.azure.com/d365community/forum/3002b3be-0d25-ec11-b6e6-000d3a4f0858

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ShaktiSingh-MSFT

79139708

Date: 2024-10-30 05:08:18
Score: 3.5
Natty:
Report link

Try adding AWS_S3_CUSTOM_DOMAIN

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hitesh

79139704

Date: 2024-10-30 05:06:17
Score: 2
Natty:
Report link

Sounds like the page wasn't even loaded.

See if this answer helps: https://stackoverflow.com/a/66813293/143475

Also refer: https://stackoverflow.com/a/61678536/143475

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Peter Thomas

79139694

Date: 2024-10-30 05:02:16
Score: 0.5
Natty:
Report link

The mobile app would not work offline, without access to the server.

No, the mobile app will work offline without needing access to an external server. It creates a local server on the phone itself, and the distribution files are packed within the APK. The WebView created with Capacitor loads these files directly from the APK, not from a remote server. I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Phantom

79139690

Date: 2024-10-30 04:58:15
Score: 1.5
Natty:
Report link

I am using python script to generate pdf file with page measurement millimeter(mm).

Use pdf.ln(10) for 10 mm break

pdf = FPDF('L','mm','A4')
pdf.add_page()
pdf.set_font("Times", size=10)

pdf.cell(0,7,'This report generate by Python script',align='R',ln=2)
pdf.ln(10)

enter image description here

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

79139687

Date: 2024-10-30 04:57:15
Score: 1
Natty:
Report link

The issue likely arises because, when the post is created programmatically, the event_date field is not fully recognized by WordPress until the post is saved manually. This can happen if the date value isn’t stored correctly in the database, or if it’s missing necessary metadata or cache refresh. Here are a couple of solutions to ensure the date is stored and recognized correctly for sorting:

  1. Use update_field Function for ACF Field When creating the post programmatically, instead of updating the ACF field using generic update_post_meta, try using the ACF-specific function update_field. This helps ACF recognize and format the date field properly.

$event_date = '2024-10-31'; // Example date format 'Y-m-d' update_field('event_date', $event_date, $post_id);

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

79139681

Date: 2024-10-30 04:53:14
Score: 0.5
Natty:
Report link

At first glance, the "UTF-16 stream does not start with BOM" exception suggests that you are opening the file using the wrong encoding. Since I do not have the file on hand, I cannot advise you on which format the csv files are encoded in. I recommend removing the encoding parameter from your open calls, or determining the correct encoding of the files.

Maybe use the simplified snippet below to verify you can open the files.

import glob

files = glob.glob('C:/Users/Downloads/*.csv')
for file in files:
      lines = open(file).readlines()
      print(lines)

Helpful reference of the error you are seeing: UnicodeError: UTF-16 stream does not start with BOM

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ALearningCurve

79139664

Date: 2024-10-30 04:33:10
Score: 2.5
Natty:
Report link

It should be android:id="@+id/nav_graph" not android:id="@+id/nav_graph.xml"

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

79139654

Date: 2024-10-30 04:29:09
Score: 1.5
Natty:
Report link

I'm wondering if this algorithm works correctly for negative coordinate values. I set a starting point at (-5, -2) and an endpoint at (-2, -6), but using the same method of incrementing 𝑥 or 𝑦 based on the slope 𝑚 gives me a line that never seems to actually converge to the endpoint. Someone, please prove me wrong.

I know you might say that physical graphics typically operate in the first quadrant of the Cartesian coordinate system.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Muhtadir Rahman

79139647

Date: 2024-10-30 04:25:09
Score: 2.5
Natty:
Report link

I found the problem, it's not the hat but some internal configuration in the SIM7600, had the same problem. Fixed it with this command that sets the sample rate for the CODEC.

AT+CPCMBANDWIDTH=1,1

Fixed the problem as you have described.

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

79139630

Date: 2024-10-30 04:12:06
Score: 0.5
Natty:
Report link

I was experiencing the same problem as the OP, where emojis were being entered into strings that I needed to store in MySQL. What worked for me was a combination of four things:

  1. Added "?useUnicode=true&characterEncoding=utf8" to the end of my jdbc: connect string
  2. I had been using Class.forName("com.mysql.cj.jdbc.Driver") to register the JDBC driver, and that doesn't seem to work with UTF8MD4. I changed this to:
    DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver());
  3. Altered my table so the default character set for the table is UTF8MD4:
    ALTER TABLE mytable DEFAULT CHARACTER SET utf8mb4
  4. Altered the fields of my table that could contain emoji strings to be utf8md4:
    SET myfield utf8mb4 COLLATE utf8mb4_unicode_ci;

I did not seem to have to alter the entire database to be UTF8MD4, just the table and the fields of the table that would store these emoji strings.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Tom McCaffrey

79139626

Date: 2024-10-30 04:08:05
Score: 2
Natty:
Report link

Check Build Settings: Ensure that Debug Information Format is set to DWARF with dSYM File for both the Debug and Release configurations:

Go to Xcode > Your Project > Build Settings. Set Debug Information Format to DWARF with dSYM File for all configurations.

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

79139625

Date: 2024-10-30 04:06:04
Score: 1
Natty:
Report link

You should create a personal access token (PAT) first

  1. Click "User setting" icon on the top right corner
  2. Personal Access tokens
  3. Create one

Change your remote repository url as the following format: https://{{PAT}}@dev.azure.com/{{Organization}}/{{Project}}/_git/{{repository}}

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Tony Wu

79139622

Date: 2024-10-30 04:03:04
Score: 2
Natty:
Report link

If real-time usage stats is required, try running it as a foreground service. Or if it's ok, access the usage stats only when the user is actively interacting with your app. If your app attempts to gather UsageStatsManager data while in the background, it may fail or receive outdated information. Also make sure your app isn't restricted by battery optimization settings

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

79139617

Date: 2024-10-30 03:59:03
Score: 2
Natty:
Report link

According to this doc, geo request headers are only present in a Vercel deployment, you cannot even use it locally: https://vercel.com/guides/geo-ip-headers-geolocation-vercel-functions

When testing locally, the geolocation headers will not be set. You can only
view geolocation information after making a deployment and reading the
incoming request headers.
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dutompson

79139615

Date: 2024-10-30 03:56:02
Score: 2
Natty:
Report link

You can change the Content types and Associated editors

Under Windows tab in your Eclipse editor, Click:

Preferences -> General -> Content Types & Associated editors

Screenshot of Eclipse editor for XML

You can also manually change formatting options for XML files under

Under Windows tab in your Eclipse editor, Click:

Preferences -> XML -> XML Files -> Editor

Screenshot of Eclipse Editor

I'm using Eclipse Version: 2024-06 (4.32.0), Build id: 20240606-1231

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

79139614

Date: 2024-10-30 03:56:02
Score: 2
Natty:
Report link

uninstalling Microsoft Visual C++ 2017 Redistributable (86x) and (64x) and reinstalling SQL Server Database services 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: Shivam Kumar

79139613

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

The solution is that you need to additionally install the lima machine and start a qemu driven machine instead of the default rusetta machine and then everything will go smoothly. https://github.com/containers/podman/discussions/23201#discussioncomment-11094909

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: HappyKoala

79139612

Date: 2024-10-30 03:52:01
Score: 2
Natty:
Report link

Is it instance or system status check that is failing? If system, then stop/start the EC2, if it does not fix, contact Support.

If it is instance check, then it's something within the EC2. Are you using user-data to set certain values like DNS nameservers, etc? If so, userdata only runs during first time launch, and therefore, it can lose connectivity.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it in
  • Low reputation (0.5):
Posted by: skzi

79139608

Date: 2024-10-30 03:49:01
Score: 2.5
Natty:
Report link

I suggest you use a simple text editor such as notepad. Following the correct syntax, write the code in ordinary pascal coding, even without compiler directives (unless necessary or you are calling some units or library) and save the file with *.pas extension. Compile it with command line and run the exe file when successful.

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

79139606

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

0

I know that this is not the final solution: expo run:android

Reasons:
  • Whitelisted phrase (-2): solution:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Huy Ngo

79139604

Date: 2024-10-30 03:47:00
Score: 1.5
Natty:
Report link

There is no inherent prompt functionality, but you can achieve the result you want with a short wrapper file such as:

read -s -p "password: " PW
xl --xl-release-password $PW "$@"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dave

79139601

Date: 2024-10-30 03:43:59
Score: 2
Natty:
Report link

I encountered a similar issue. I was trying to create a bar chart using a third-party Chart library, but I forgot to assign my custom UIChartView class name in the storyboard. After adding the class name, the issue was resolved.

Xcode's error reporting really isn’t very accurate.

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

79139594

Date: 2024-10-30 03:35:58
Score: 0.5
Natty:
Report link

We can use netron to visualize the operators and the constants in a .tflite model. We can use it from web or install it with pip or install binaries and use it as a local app on windows, linux or mac. The netron app looks like this:

netron windows app

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

79139593

Date: 2024-10-30 03:35:58
Score: 0.5
Natty:
Report link

I don't know if this's a use for it, when I build and upload an artifact to repository, I can remove all maven dependencies needed in this project for artifact's pom.xml, but they will still exist in META-INF/../pom.xml.

In this situation, when my SpringBoot project import this artifact as a dependency, maven won't actively download it's dependencies, but I can use "maven-dependency-plugin: copy dependency" to get needed jars defined in META-INF/../pom.xml, and then include them into classpath, which will make SpringBoot jar smaller.

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

79139588

Date: 2024-10-30 03:31:57
Score: 1
Natty:
Report link

I managed to figure this out. Here is what I ended up using for those interested.

=BYROW(INDIRECT("C3:"&ROWS(A:A)),LAMBDA(x,IF(INDIRECT("A"&ROW(x))="","",COUNTIFS(x,">"""))))

I'm not sure if there is a cleaner or more efficient alternative but this seems to accomplish what I needed. I will refrain from choosing my own answer until I hear from others.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DanCue

79139569

Date: 2024-10-30 03:17:55
Score: 1.5
Natty:
Report link

It's possible that you have forgot the annotation @Repository in interface PercorsiRepository because this anotation tells Spring that this is a component that should be managed by the Spring container.

@Repository
public interface PercorsiRepository extends ReactiveCrudRepository<Percorsi, Integer> {
    @Query("SELECT * FROM PRC_Percorsi")
    Flux<Percorsi> getRepository();
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Repository
  • Low reputation (1):
Posted by: Sergio Tabares

79139566

Date: 2024-10-30 03:16:54
Score: 1.5
Natty:
Report link

My Solutions:

enter image description here

There are 2 mainly reasons for this error:

  1. Configurations .csproj file the .NET project will be built into .exe / .dll file ( by run 'dotnet build'). Incase, we config the .csproj with option: Exe the .NET project will be built to .exe file that need an Main() endpoint. So that why the error happening.

  2. Don't have Main() endpoint

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lê Hồng Thái

79139563

Date: 2024-10-30 03:15:54
Score: 3
Natty:
Report link

A more recent paper presents a systematic comparison among several metrics:

https://arxiv.org/abs/2211.16259

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yu-Hsiang Lin

79139560

Date: 2024-10-30 03:14:54
Score: 4
Natty:
Report link

I know this is an old post but if is useful for anyone, I ran into the same problem trying to make an application launcher with an option to close when unfocused, my solution was to use a g_timeout (if I didn't do it, the program went ahead and closed) and when that timer finished, check a couple of things:

ismoving=0;

gboolean on_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data)
{
   // check for mouse button 1 to set ismoving
    if (event->type == GDK_BUTTON_PRESS && event->button == 1)
    {
        ismoving = 1;
    }
    //GDK_BUTTON_RELEASE doesn't work for me in Wayland
    return FALSE;
}

gboolean close_window_if_unfocused(gpointer widget)
{
    //submenu is a popup menu, dialog is a global variable that i use for dialogs
    if (gtk_widget_get_visible(submenu) || gtk_widget_get_visible(dialog) || ismoving)
    {
        ismoving = 0; // Changing this is a workaround because i don't know other way in Wayland
        return FALSE;
    }

    // I also check for modifier keys
    GdkModifierType modifier_state = gdk_keymap_get_modifier_state(gdk_keymap_get_for_display(gdk_display_get_default()));
    GdkSeat *seat = gdk_display_get_default_seat(gdk_display_get_default());
    GdkDevice *pointer = gdk_seat_get_pointer(seat);
    guint button_state = 0;

    gdk_device_get_state(pointer, gtk_widget_get_window(GTK_WIDGET(widget)), NULL, &button_state);

    if (!gtk_window_has_toplevel_focus(GTK_WINDOW(widget)) &&
        !(modifier_state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_SUPER_MASK)))
    {
        gtk_widget_destroy(GTK_WIDGET(widget));
    }
    return FALSE;
}

gboolean on_focus_out(GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
{
    g_timeout_add(100, close_window_if_unfocused, widget);
    return FALSE;
}

...

g_signal_connect(window, "key-release-event", G_CALLBACK(on_key_release), NULL); // check input
g_signal_connect(window, "focus-out-event", G_CALLBACK(on_focus_out), window);

Please let me know if you know a better solution, this works for my situation

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ItsZariep

79139555

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

According to @maxy 's suggestion of

calling channel_open_direct_tcpip() for every connection.

I moved the behavior of opening the channel from the SSH client into the TCP listener's accept code block. Additionally, I modified the exit signal listening method from rx_clone.changed().await.is_ok() to rx_clone.has_changed()?.

The final code is as follows:

use anyhow::{Error, Result};
use async_trait::async_trait;
use log::{error, info, warn};
use russh::client::{Config, Handler, Msg, Session};
use russh::keys::key;
use russh::{Channel, ChannelId, Disconnect};
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
use std::sync::Arc;
use tokio::io::AsyncWriteExt;
use tokio::net::TcpListener;
use tokio::select;

#[derive(Clone, Debug)]
pub struct SshTunnel {
    pub host: String,
    pub port: u16,
    pub username: String,
    pub password: String,
    pub forwarding_host: String,
    pub forwarding_port: u16,
    tx: tokio::sync::watch::Sender<u8>,
    rx: tokio::sync::watch::Receiver<u8>,
    is_connected: bool,
}

impl SshTunnel {
    pub fn new(host: String, port: u16, username: String, password: String, forwarding_host: String, forwarding_port: u16) -> Self {
        let (tx, rx) = tokio::sync::watch::channel::<u8>(1);
        Self {
            host,
            port,
            username,
            password,
            forwarding_host,
            forwarding_port,
            tx,
            rx,
            is_connected: false,
        }
    }

    pub async fn open(&mut self) -> Result<SocketAddr> {
        let mut ssh_client = russh::client::connect(
            Arc::new(Config::default()),
            format!("{}:{}", self.host, self.port),
            IHandler {},
        ).await?;
        ssh_client.authenticate_password(self.username.clone(), self.password.clone()).await?;
        let listener = TcpListener::bind(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0)).await?;
        let addr = listener.local_addr()?;
        let forwarding_host = self.forwarding_host.clone();
        let forwarding_port = self.forwarding_port as u32;

        let mut rx_clone = self.rx.clone();
        tokio::spawn(async move {
            loop {
                let mut rx_clone_clone = rx_clone.clone();
                if let Ok((mut local_stream, _)) = listener.accept().await {
                    let channel = ssh_client.channel_open_direct_tcpip(
                        forwarding_host.clone(),
                        forwarding_port,
                        Ipv4Addr::LOCALHOST.to_string(),
                        addr.port() as u32,
                    ).await?;
                    let mut remote_stream = channel.into_stream();
                    tokio::spawn(async move {
                        select! {
                            result = tokio::io::copy_bidirectional_with_sizes(&mut local_stream, &mut remote_stream, 255, 8 * 1024) => {
                                if let Err(e) = result {
                                    error!("Error during bidirectional copy: {}", e);
                                }
                                warn!("Bidirectional copy stopped");
                            }
                            _ = rx_clone_clone.changed() => {
                                info!("Received close signal");
                            }
                        }
                        let _ = remote_stream.shutdown().await;
                    });
                }
                if rx_clone.has_changed()? {
                    ssh_client.disconnect(Disconnect::ByApplication, "exit", "none").await?;
                    break;
                }
            }
            drop(listener);
            info!("Stream closed");
            Ok::<(), Error>(())
        });

        self.is_connected = true;
        Ok(addr)
    }

    pub async fn close(&mut self) -> Result<()> {
        self.tx.send(0)?;
        self.is_connected = false;
        Ok(())
    }

    pub fn is_connected(&self) -> bool {
        self.is_connected
    }
}

struct IHandler;

#[async_trait]
impl Handler for IHandler {
    type Error = Error;
    async fn check_server_key(&mut self, _: &key::PublicKey) -> Result<bool, Self::Error> {
        Ok(true)
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @maxy
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: honhim

79139537

Date: 2024-10-30 02:56:50
Score: 1
Natty:
Report link

For my use case in react, you could do something similar:

  snapshot.docs.forEach((doc) => {
    setQuestions((prev: any) => [...prev, { ...doc.data(), id: doc.id }]);
  });
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrés Chávez

79139528

Date: 2024-10-30 02:53:49
Score: 1.5
Natty:
Report link

Please set the margin of <span> tag:

span.status-stop {
  margin: 0;
}

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

79139517

Date: 2024-10-30 02:44:47
Score: 3
Natty:
Report link

I am also getting this issue too. I service I ran before has been working fine until around when this post came out.

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

79139513

Date: 2024-10-30 02:41:47
Score: 2.5
Natty:
Report link

I'm using Webstorm with Remix project, when I try to rename folder, I have to stop the project, do the rename refactor, then start project.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Đức Long

79139512

Date: 2024-10-30 02:40:44
Score: 9.5 🚩
Natty: 5.5
Report link

Could you please give me some help! I found this topic and this code works for me well, but it doesn't remove white spaces in js code! Also I found the next expression - ("#^\s*([^\s].)\s$#U", - it removes white spaces in js! Is it possible to insert it in code? If so, help me to insert.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Is it possible to
  • Blacklisted phrase (3): give me some
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2.5): Could you please give me some
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: SirDistr

79139504

Date: 2024-10-30 02:34:43
Score: 3.5
Natty:
Report link

You can't replace existing library in Databricks cluster with a new version.

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

79139501

Date: 2024-10-30 02:33:43
Score: 3.5
Natty:
Report link

i’m just trying to airplay so i can listen to musics

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

79139498

Date: 2024-10-30 02:29:42
Score: 3
Natty:
Report link

Solved. Export using Ultralytics export.py takes care of it. Coordinates are normalized.

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

79139494

Date: 2024-10-30 02:25:41
Score: 1.5
Natty:
Report link

I had the same issue with nextjs15 equally and I followed this solution from Aman Sadhwani. And Rizwan gives a detailed explanation following the answer

https://stackoverflow.com/a/72597065/19362111

Hope this helps

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): Hope this helps
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emmanuel Jr

79139485

Date: 2024-10-30 02:19:40
Score: 4.5
Natty: 5
Report link

I did some experiment on this topic and came up with observations that I need to understand in light of prior analyses reported above. I have a DF with three columns named A, B, and C. My goal is see if groupby stores a copy of the DF. My test code snippet is as follows:

# Make Df with columns A, B, C.
grp = df.groupby(by=['A', 'B'])
del df  
print(grp.transform(lambda x: x))  # The above outputs the whole DF.

The above snippet seems to indicate that grp contains the DF because the original DF has been deleted and grp can still produce it. Is this conclusion true?

May be that grp maintains a pointer to the DF and after the del operation, the reference count does not go to zero so the data hangs around in memory for grp to use. Can this be true?

My Pandas is V 2.2.2. Thanks in advance for clarification.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user2585330

79139479

Date: 2024-10-30 02:16:38
Score: 1.5
Natty:
Report link

Also late to the post: but i think the only way to solve this, is by some kind of aproximation. I implemented a working aproximation for gerstner waves using newtonian style gradient decent with 4 iterations:

Your problem, generally formulated, is:

Given a position a,b - what are the coordinates x,y, such that

P(x,y,t)=a,b,c

-> this will result in c being the local hight for coordintes a and b.

I dont think, there is an analytic inversion of P derivalble, instead one can solve the minimization problem (for fixed t)

F(x,y)= P(x,y) - a,b = 0

Wich can iteratively aproximated, for example with:

x_1,y_1= F(x_0,y_0)/|det(J(F)(x_0,y_0))| - (x_0,y_0)

where J(F)(x,y) is the jacobian of F (wich is easily derivalble from the Gerstner Function definition)

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

79139474

Date: 2024-10-30 02:13:38
Score: 3
Natty:
Report link

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

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

79139472

Date: 2024-10-30 02:13:38
Score: 3
Natty:
Report link

This is a great topic! Ensuring that a string contains at least one capital letter is crucial for validating user input. It's fascinating how simple checks can enhance security and improve user experience. If you're interested in a detailed guide on how to implement this in JavaScript, check out my blog post here: Check for at least one capital letter in JavaScript.

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kai gan

79139458

Date: 2024-10-30 02:03:36
Score: 3.5
Natty:
Report link

This code are working, thank you [mysqld] skip-grant-tables

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aldrin

79139456

Date: 2024-10-30 02:01:36
Score: 1
Natty:
Report link

Adding the following dedicated query string to the end of a URL will bypass WP Rocket's cache and optimizations:

?nowprocket

For example, if your URL is https://example.com then use https://example.com?nowprocket

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

79139448

Date: 2024-10-30 01:57:35
Score: 1
Natty:
Report link

From what I see is all these errors are related to a not-existing Python interpreter. You need to select another interpreter with Python: Select Interpreter command and select a working one.

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

79139438

Date: 2024-10-30 01:52:34
Score: 1
Natty:
Report link

I also encountered the similar issue that images on CollectionView aren't displayed when adding that android specific codes in MauiProgram.cs.

Instead of adding the android specific codes in MauiProgram.cs., the following solution that setting the WidthRequest and HeightRequest of the images worked for me. https://github.com/dotnet/maui/issues/9712#issuecomment-1312596405

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bacon.dev

79139437

Date: 2024-10-30 01:52:34
Score: 3
Natty:
Report link

I received the same error message when trying to create an Azure VPN Gateway. The problem was that I had not yet created the GatewaySubnet.

The solution for me was to create the GatewaySubnet first, Then the Azure portal allowed me to create the Azure VPN Gateway instance.

enter image description here

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

79139429

Date: 2024-10-30 01:46:33
Score: 1
Natty:
Report link

maybe you can try : Use getToken instead of getServerSession: Try using getToken to manually retrieve the token from the request, as getServerSession may return null in API routes without a valid token.

Configure NEXTAUTH_SECRET: Ensure that NEXTAUTH_SECRET is correctly set in environment variables, as it’s required for token verification in API routes.

Set Session Strategy to jwt: In your next-auth options, make sure session: { strategy: "jwt" } is set, especially for credential-based authentication.

If none of this help, u better get some pen and paper to go through all the steps one by one.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Phan Thành Nhân

79139428

Date: 2024-10-30 01:45:33
Score: 0.5
Natty:
Report link

I ended up not being able to work it out. I took a compromise where strings could be passed through extensions normally, I converted the enum type to a string, and then converted the string to an enum in mapper_response

#[derive(Debug, Deserialize, Clone, AsRefStr, EnumString)]
#[serde(tag = "type", content = "data")]
pub enum Error {
    LoginFail,

    // Auth error
    AuthFaildNoAuthTokenCookie,
    AuthFaildTokenFormatWrong,
    AuthFaildCtxNotInRequestExt,

    // model errors.
    ListenerCreationFailed(ListenerCreationError),
    ListenerRemoveFailed,
    ListenerEditFailed,
}

mapper_response:

response.extensions_mut().insert(self.as_ref().to_string());
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: hanghang

79139423

Date: 2024-10-30 01:42:32
Score: 1
Natty:
Report link

I believe what you are looking for is to set the queryName property

sourceData.writeStream()
   .queryName(queryName)
   ...
   .start()
   .awaitTermination();

Give that a try.

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

79139420

Date: 2024-10-30 01:39:31
Score: 0.5
Natty:
Report link

It's not supported. The constructor that uses the non-default backoff is only used for the JDBCSource Task, not the Sink.

https://github.com/Aiven-Open/jdbc-connector-for-apache-kafka/blob/master/src/main/java/io/aiven/connect/jdbc/util/CachedConnectionProvider.java#L43-L59

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

79139415

Date: 2024-10-30 01:35:30
Score: 4.5
Natty:
Report link

You can refer to the CSS specifically for Safari browser here: https://browserstrangeness.bitbucket.io/css_hacks.html#safari

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

79139395

Date: 2024-10-30 01:18:25
Score: 10.5 🚩
Natty: 6
Report link

Did you manage to find an answer? I have the same issue—in the cart, I can change the price, but on the order, it's the same as calculated by Presta.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): Did you manage to find an answer
  • Low length (1):
  • 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
  • Low reputation (1):
Posted by: Dariusz Włodarski

79139378

Date: 2024-10-30 01:03:21
Score: 2
Natty:
Report link

I could solved this problem by myself. I appended following code:

    webSettings.setDisplayZoomControls(false);

After that touch listener works well.

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

79139376

Date: 2024-10-30 01:03:21
Score: 0.5
Natty:
Report link

You can do something like alt.Size('column').scale(range=(0, 1000)) as in this example https://altair-viz.github.io/gallery/airport_connections.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: joelostblom

79139362

Date: 2024-10-30 00:53:19
Score: 2.5
Natty:
Report link

If you can compile the project and it´s just a "fake" unresolved reference, then you should just clean your project.

Build -> Clean project

After that, everything should work.

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

79139361

Date: 2024-10-30 00:53:19
Score: 3
Natty:
Report link

What worked for me (courtesy of ChatGPT lol) was going to file -> Invalidate Cache, checking all of the options and restarting android studio

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: BayArea123

79139356

Date: 2024-10-30 00:48:18
Score: 0.5
Natty:
Report link

basically libudev cannot be static library because it is part of systemd, and systemd does not seem to support static linking: your app might not work on other systems in that's the case. But if the goal is to remove the direct dependency on libudev, you can use dlopen/dlsym to load libudev.so functions, and the app may run without libudev at all. Take a look at my small wrapper for dynamically linking libudev, maybe it will be helpful: https://github.com/alexbsys/udev_dynamic_wrapper

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: alexb

79139352

Date: 2024-10-30 00:43:17
Score: 3
Natty:
Report link

So far as I know, milvus doesn't specify any partition when creating consumer of kafka. I suppose it always uses the default/first partition.

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

79139345

Date: 2024-10-30 00:33:16
Score: 0.5
Natty:
Report link

Using setTimeout to get window height after rendering completed, $(window).height(), and document.documentElement.clientHeight all return the same inconsistent results (835px after the window is initiated and 818px after it's been maximized/restored to the original size).

window.innerHeight consistently returned 835px so that was my solution.

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

79139340

Date: 2024-10-30 00:32:15
Score: 1.5
Natty:
Report link

I had exact same issue, updating my docker-desktop helped resolve it.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Philip K. Adetiloye

79139329

Date: 2024-10-30 00:25:13
Score: 1.5
Natty:
Report link

I need to install this with python 3.10 because the parent tool requires it. What could be the cause of this?

fastchunking 0.0.3 has no support for Python 3.10. It was released long before Python 3.10. However, it currently supports Python :: 3.5 which is way too old.

What parent package requires it as a dependency? You may consider using a maintained package with similar functionality.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): What could be
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: 16171413

79139328

Date: 2024-10-30 00:25:13
Score: 2.5
Natty:
Report link

To get rid of this error I removed this reference: DevExpress.XtraCharts.v24.1

I converted my project from Framework 4.8 to net 8.0 and DevExpress v24.1

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

79139321

Date: 2024-10-30 00:20:12
Score: 1.5
Natty:
Report link

I do not have a clue how to use these functions https://learn.microsoft.com/en-us/windows/win32/winmsg/window-styles

but along with the magic jack discussions this might be a solution Every time the computer is turned on the magic jack logo hogs the screen Every time any one calls, the screen hogs the window when you are in the middle of doing something

If any windows command will stop the logo from hogging the middle of the screen they will be heroes to millions magic jack screen hog

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

79139312

Date: 2024-10-30 00:08:11
Score: 3.5
Natty:
Report link

Iam play free fire suddenly my phone is multi touched

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

79139311

Date: 2024-10-30 00:07:10
Score: 1
Natty:
Report link

I've been developing in Linux but it seems I can't detect the brightness inside Theme.of(context).brightness.

So I just grab the current scaffold background color if its black or white.

bool kIsDarkMode(BuildContext context) {
  return Theme.of(context).scaffoldBackgroundColor == MyColors.black;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nivek Mozart

79139298

Date: 2024-10-29 23:56:08
Score: 3
Natty:
Report link

strong textfor i, (key, value) in enumerate(testDict.items()): value.append(nameList[i])

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

79139293

Date: 2024-10-29 23:54:08
Score: 1.5
Natty:
Report link

1)Enable developer options and wireless debugging on your phone.

2)Scan the QR code from Android Studio or a third-party tool to pair your device for wireless ADB.

https://developer.android.com/tools/adb#:~:text=To%20pair%20your%20device%20with,devices%20over%20Wi%2DFi%20popup.

Pair Devices over WI-FI

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

79139292

Date: 2024-10-29 23:53:07
Score: 2.5
Natty:
Report link

Alternatively you can set maven to use Windows certificate store.

MAVEN_OPTS="-Djavax.net.ssl.trustStoreType=Windows-ROOT"

More details you can find here: https://medium.com/where-3-worlds-meet/how-to-connect-windows-trust-store-with-maven-java-project-cd6447ac8e47

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user3816621

79139249

Date: 2024-10-29 23:21:01
Score: 3
Natty:
Report link

Thank you all very much for your help, friends. It turned out that everything is very simple. I just did add the picture to the project incorrectly. I managed to add it in the following way - I simply dragged the picture from the folder to the IDE window with the running project and confirmed adding the picture with a specific name. And that's it.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kontekstor

79139240

Date: 2024-10-29 23:15:00
Score: 1.5
Natty:
Report link

Let’s say your row is in cells A1:Z1. To count how many times each unique value appears, use this formula:

=MAX(COUNTIF(A1:Z1, A1:Z1))

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

79139234

Date: 2024-10-29 23:11:59
Score: 3.5
Natty:
Report link

This is the only thing that has worked:

result = dask_cudf.concat([a, b], axis=1)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Austin So

79139207

Date: 2024-10-29 22:54:55
Score: 4
Natty:
Report link

Having the same issue. Using turbopack by running npx next dev --turbo fixed it for me temporarily.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): Having the same issue
  • Low reputation (1):
Posted by: Felix

79139203

Date: 2024-10-29 22:49:55
Score: 1.5
Natty:
Report link

In case anyone else ends up here, add the following to your AJAX call:

xhrFields: { responseType: "arraybuffer" }, dataType: "binary",

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

79139196

Date: 2024-10-29 22:42:54
Score: 3
Natty:
Report link

Try with these changes: MAIL_HOST=smtp.googlemail.com MAIL_ENCRYPTION=ssl

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yair Rodríguez Aparicio

79139194

Date: 2024-10-29 22:41:53
Score: 1.5
Natty:
Report link

Check this reply: https://github.com/pacocoursey/next-themes/issues/15#issuecomment-720168813

The defaultTheme is only used for new visitors to your site. As soon as they visit, the defaultTheme will be stored in localStorage, so if you change your ThemeProvider value of defaultTheme it won't matter, since localStorage will take priority after the first visit.

Try opening your page in incognito and check if default theme is dark.

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

79139189

Date: 2024-10-29 22:39:53
Score: 0.5
Natty:
Report link

It's an issue related to SourceTree. In version 4.2.9, they added a setting to the .gitconfig file that's breaking SPM.

More info here: https://jira.atlassian.com/browse/SRCTREE-8176

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

79139188

Date: 2024-10-29 22:39:52
Score: 4.5
Natty:
Report link

(colima status 2>&1 | grep -Fqe 'colima is running') runs in a subshell because it is in parentheses. I am not sure for your system, but this could be causing the problem because it might return an extra linefeed or some other thing. Try your "if" block with the parentheses removed and go from there?

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

79139164

Date: 2024-10-29 22:26:50
Score: 2
Natty:
Report link

You cannot use custom record, transaction, and activity together as an email related record; these three records are mutually exclusive.

Only entityId is compatible with other records

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gustavo Doná

79139161

Date: 2024-10-29 22:24:49
Score: 12
Natty: 7
Report link

I have the same problem, I correctly upload the type of image file which is JPG and I get that BadRequest, could you solve it?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (2): could you solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andres Gutierrez

79139157

Date: 2024-10-29 22:21:48
Score: 2.5
Natty:
Report link

You’re following this answer You’ll receive notifications when there’s activity on this post.

Manage followed posts in your profile.

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

79139156

Date: 2024-10-29 22:21:48
Score: 0.5
Natty:
Report link

Add private bool firstT = true; and inside update add it to your if, also set the bool to false inside the condition ->

if(Input.GetKeyDown(KeyCode.T) && IsObjectXInvisible() && firstT)
{
    SpawnObject();
    firstT = false;
}

this ensures that SpawnObject(); happens only once.

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

79139141

Date: 2024-10-29 22:16:47
Score: 1.5
Natty:
Report link

Was able to figure out a solution inspired by the "Filled Down" command from horseyride's answer.

Start.png

Starting here I had to add back in the null value in cells to allow the filled down command to work. I only added the null value where I needed based on the text contained in C001.

BlankToNull = Table.TransformRows(#"Renamed Columns", each if Text.Contains(_[C001], "Strata") then Record.TransformFields(_, {{"C002", each null}}) else _),
ExpandRecord1 = Table.FromRecords(BlankToNull),

Next.Png

After that I allowed the Fill Down command to populate all the null cells with values.

FilledDown = Table.FillDown(ExpandRecord1,{"C002"}),

Next2.png

Now I needed to clean the cells I didn't want to have the filled data in.

WhiteOut = Table.TransformRows(FilledDown, each if Text.Contains(_[C001], "Strata") and not Text.Contains(_[C001], "Total") then Record.TransformFields(_, {{"C002", each ""}}) else _),
ExpandRecord2 = Table.FromRecords(WhiteOut)

Finish.Png

I ended up with my desired result. Key takeaway for me was how to transform multiple cells in a column based on the values of cells in other columns. Accomplished this using the Table.TransformRows() command and passing through arguments such as Text.Contains().

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bryce

79139139

Date: 2024-10-29 22:16:47
Score: 1
Natty:
Report link

Most likely the middleware is registered more than once or that query expression is being applied by another part of your application.

You can try commenting out that query and see if the where clause is still added to the query.

Additionally, you can give your anonymous global scopes a name. That should prevent the same scope from being added twice.

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

79139134

Date: 2024-10-29 22:11:46
Score: 2
Natty:
Report link

pip install Pillow import PIL import PIL import mouseinfo mouseinfo.mouseInfo()

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

79139125

Date: 2024-10-29 22:09:46
Score: 1.5
Natty:
Report link

I think the error might be because the favicon.ico is supposed to be in the public folder, not in the app folder

Try:

  1. Moving favicon.ico to public

  2. Updating code references. You can just use /'favicon.ico' if its in public

  3. Clearing cache/delete dependencies

rm -rf .next _node_modules

I would run a npm cache clean --force for good measure too.

  1. Reinstall dependencies -- we nuked them with the rm -rf so need to reinstall

npm install

  1. restart with npm run dev
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: KB DevOpz