79331615

Date: 2025-01-05 21:53:24
Score: 1
Natty:
Report link

thanks for your answer, I agree with the fact of using Bind, I also saw this suggestion in Microsoft documentation I think.

I tried this:

t_mainform->Bind(wxEVT_SOCKET, &TcpIP::OnServerAppEvent, this, C_SERVER_ID_APP, wxID_ANY, (wxObject*)NULL);

void TcpIP::OnServerAppEvent(wxSocketEvent& event)
{
   ...
}

and it works, compiles without any error.

regarding connect, I get a 'wxSocketEventHandler undefined', despite that I have included wx/socket.h (in which it is defined and enabled) in the source file.

and ok for using a more up to date wxWidgets, I can see that the latest stable is 3.2.6. But I don't understand why the connect was compiling in another project using the same code.

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

79331610

Date: 2025-01-05 21:49:23
Score: 1
Natty:
Report link

Add this to your next.config.ts file:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
  devIndicators: {
    appIsrStatus: false,
  },
};

export default nextConfig;

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

79331606

Date: 2025-01-05 21:46:23
Score: 2.5
Natty:
Report link

SELECT round( CAST(float8 '1.100000' as numeric), 2);

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

79331605

Date: 2025-01-05 21:45:19
Score: 11.5
Natty: 4
Report link

Did you get this working? I’m trying to recreate the same project but am having the same issue with the broken pipe.

Reasons:
  • RegEx Blacklisted phrase (3): Did you get this
  • RegEx Blacklisted phrase (2): working?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having 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: Andrew

79331603

Date: 2025-01-05 21:45:17
Score: 10.5 🚩
Natty: 4.5
Report link

Hey I am stuck with the same problem here with getting flink to read from kafka with avro and schema registry. I am able to see logs on schema-registry with flink trying to read from the server but I am also getting the same error:

Server Response Message:
org.apache.flink.runtime.rest.handler.RestHandlerException: Could not execute application.
    at org.apache.flink.runtime.webmonitor.handlers.JarRunHandler.lambda$handleRequest$1(JarRunHandler.java:114)
    at java.base/java.util.concurrent.CompletableFuture.uniHandle(Unknown Source)
    at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(Unknown Source)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.CompletionException: java.lang.NoSuchMethodError: 'org.apache.flink.formats.avro.AvroDeserializationSchema org.apache.flink.formats.avro.AvroDeserializationSchema.forGeneric(org.apache.avro.Schema)'
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
    ... 2 more
Caused by: java.lang.NoSuchMethodError: 'org.apache.flink.formats.avro.AvroDeserializationSchema org.apache.flink.formats.avro.AvroDeserializationSchema.forGeneric(org.apache.avro.Schema)'
    at com.example.DataStreamJob.main(DataStreamJob.java:50)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:356)
    at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:223)
    at org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:113)
    at org.apache.flink.client.deployment.application.DetachedApplicationRunner.tryExecuteJobs(DetachedApplicationRunner.java:84)
    at org.apache.flink.client.deployment.application.DetachedApplicationRunner.run(DetachedApplicationRunner.java:70)
    at org.apache.flink.runtime.webmonitor.handlers.JarRunHandler.lambda$handleRequest$0(JarRunHandler.java:108)
    ... 2 more

what can I do here's my pom.xml(I am using flink 1.20.0 version):

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>flink-kafka-avro</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>Flink Quickstart Job</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <flink.version>1.20.0</flink.version>
        <target.java.version>1.8</target.java.version>
        <scala.binary.version>2.12</scala.binary.version>
        <maven.compiler.source>${target.java.version}</maven.compiler.source>
        <maven.compiler.target>${target.java.version}</maven.compiler.target>
        <log4j.version>2.17.1</log4j.version>
        <kafka.version>3.9.0</kafka.version>
        <confluent.version>7.8.0</confluent.version>

    </properties>

    <repositories>
        <repository>
            <id>apache.snapshots</id>
            <name>Apache Development Snapshot Repository</name>
            <url>https://repository.apache.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>confluent</id>
            <url>https://packages.confluent.io/maven/</url>
        </repository>
    </repositories>

    <dependencies>
        <!-- Apache Flink dependencies -->
        <!-- These dependencies are provided, because they should not be packaged into the JAR file. -->
    <dependency>
      <groupId>org.apache.flink</groupId>
      <artifactId>flink-core</artifactId>
      <version>${flink.version}</version>
    </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-clients</artifactId>
            <version>${flink.version}</version>
        </dependency>
    <dependency>
        <groupId>org.apache.flink</groupId>
        <artifactId>flink-streaming-java</artifactId>
        <version>${flink.version}</version>
    </dependency>

        <!-- Add connector dependencies here. They must be in the default scope (compile). -->

        <!-- Example:

        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-connector-kafka</artifactId>
            <version>3.0.0-1.17</version>
        </dependency>
        -->

        <!-- Add logging framework, to produce console output when running in the IDE. -->
        <!-- These dependencies are excluded from the application JAR by default. -->
    <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-connector-kafka</artifactId>
            <version>3.3.0-1.20</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
            <version>${log4j.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>${log4j.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>${log4j.version}</version>
            <scope>runtime</scope>
        </dependency>

        <!-- flink dependencies -->
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-runtime</artifactId>
            <version>${flink.version}</version>
            <scope>compile</scope>
        </dependency>
    <dependency>
      <groupId>org.apache.flink</groupId>
      <artifactId>flink-connector-base</artifactId>
      <version>${flink.version}</version>
      <scope>provided</scope>
    </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-java</artifactId>
            <version>${flink.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka-clients</artifactId>
            <version>${kafka.version}</version>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>kafka-avro-serializer</artifactId>
            <version>${confluent.version}</version>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>io.confluent</groupId>-->
<!--            <artifactId>kafka-schema-serializer</artifactId>-->
<!--            <version>7.8.0</version>-->
<!--        </dependency>-->
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>kafka-schema-registry-client</artifactId>
            <version>7.8.0</version>
        </dependency>
    <dependency>
        <groupId>org.apache.flink</groupId>
        <artifactId>flink-avro</artifactId>
        <version>${flink.version}</version>
    </dependency>
    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.flink</groupId>
                <artifactId>flink-core</artifactId>
                <version>${flink.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.flink</groupId>
                <artifactId>flink-streaming-java</artifactId>
                <version>${flink.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>

            <!-- Java Compiler -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${target.java.version}</source>
                    <target>${target.java.version}</target>
                </configuration>
            </plugin>

            <!-- Maven Shade Plugin to create a fat jar -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>

        <pluginManagement>
            <plugins>

                <!-- Lifecycle Mapping Plugin for Eclipse -->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-shade-plugin</artifactId>
                                        <versionRange>[3.1.1,)</versionRange>
                                        <goals>
                                            <goal>shade</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-compiler-plugin</artifactId>
                                        <versionRange>[3.1,)</versionRange>
                                        <goals>
                                            <goal>testCompile</goal>
                                            <goal>compile</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>

            </plugins>
        </pluginManagement>
    </build>
</project>

Suggest me what I should do?

Reasons:
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): what can I do
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (1): I am also getting the same error
  • RegEx Blacklisted phrase (2): Hey I am
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am stuck with the same problem
  • Me too answer (0): I am also getting the same error
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rajat Sinha

79331594

Date: 2025-01-05 21:35:14
Score: 6 🚩
Natty: 4.5
Report link

Hey have you found how to change that without reverting by the helm? Got a similar issue here.

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found how to change that without reverting by the helm
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kuan

79331588

Date: 2025-01-05 21:30:11
Score: 10 🚩
Natty:
Report link

Getting same issue with the gender dimension with viewerPercentage metric. Also gender is not working with views metric. There's no proper documentation provided by the YouTube Doc. So if anybody can help it would be greatful.

Reasons:
  • RegEx Blacklisted phrase (3): anybody can help
  • RegEx Blacklisted phrase (2): would be greatful
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): Getting same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: UZAIR SHAKEEL

79331587

Date: 2025-01-05 21:30:11
Score: 1.5
Natty:
Report link

Double check that aiogram is installed by doing python -m pip show aiogram.

if not you can do python -m pip install aiogram

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

79331579

Date: 2025-01-05 21:23:10
Score: 2
Natty:
Report link

The signif() function in R is designed for this purpose, but you want more control over rounding behavior, especially when dealing with ties (e.g., numbers ending in 5). Here's how you can modify your function:

MPV_Round_1 <- function(x) {
  # Handle rounding to 3 significant figures
  posneg <- sign(x)                     # Preserve the sign of the number
  abs_x <- abs(x)                       # Get absolute value
  
  # Calculate significant figures based on magnitude
  rounded <- ifelse(abs_x > 0, signif(abs_x, digits = 3), 0)
  rounded * posneg                      # Restore original sign
}

# Sample data
dat_merge <- data.frame(MPV = c(0.000600, 0.0055, 12.3456, 123.456, 999.999, -0.00456))

How do I add this change back to my original data set called dat_merge?

# Apply the rounding function
dat_merge$MPV_Round <- MPV_Round_1(dat_merge$MPV) # use the function on the column of dat_merge

# View results
print(dat_merge)

enter image description here

Reasons:
  • Blacklisted phrase (1): How do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: G-Man

79331576

Date: 2025-01-05 21:20:09
Score: 2
Natty:
Report link

For me it was due to a ' (single quote) at the end of the url. Ex:

/api/path/'

instead of

/api/path/

without the useless single quote at the end.

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

79331570

Date: 2025-01-05 21:14:08
Score: 1.5
Natty:
Report link

So the CSS and the toggleScroll function to hide the scroll work, it seems to be a problem with Vue.

I don't know what your setup is and I'm not very familiar with Vue, but, refactoring the code like below works as expected, so can you check if your function is ruining, do you get any warnings/errors in your console ? Are you using their CLI ?

const {
  createApp,
  ref
} = Vue

createApp({
  data: () => ({
    isScrollLocked: ref(false),
  }),

  methods: {
    toggleScrollLock() {
      this.isScrollLocked = !this.isScrollLocked
      if (this.isScrollLocked) {
        document.body.style.overflow = "hidden"
      } else {
        document.body.style.overflow = ""
      }
    },
  },
}).mount("#app")
.container {
  /* Make the page tall so we can easily see scroll locking. */
  height: 2000px;
  background-color: #fafafa;
  padding: 20px;
  font-family: sans-serif;
}

button {
  margin: 20px;
  padding: 10px 15px;
  cursor: pointer;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script>
<div id="app" class="container">
  <div class="container">
    <button @click="toggleScrollLock">
    {{ isScrollLocked ? 'Unlock Scroll' : 'Lock Scroll' }}
    </button>
    <p>Scroll down to test. When locked, the page shouldn’t scroll.</p>
  </div>
</div>

Reasons:
  • Blacklisted phrase (1): do you get any
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: RDU

79331560

Date: 2025-01-05 21:09:07
Score: 3
Natty:
Report link

had same issue for a while. go to phone settings / Aaps / select your music app / turn off microphone permissions

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

79331557

Date: 2025-01-05 21:07:07
Score: 2
Natty:
Report link

The problem was misconfiguration of asdf Java Plugin. I've installed Java 21, but not configured JAVA_HOME to point to current reference to Java binary in asdf, as described here: https://github.com/halcyon/asdf-java?tab=readme-ov-file#java_home.

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

79331551

Date: 2025-01-05 21:04:06
Score: 1.5
Natty:
Report link

The model definition looks right. Surely, you have also tried other models that are smaller due to the occurrence of overfitting. You model overfitts the data. This shows the first image (Lower Loss for train and always higher loss for valid/test). Your training and validation data may not be well distributed or contain inconsistent labels, which confuses the model and leads to high variability in the training metrics. Your trainingsratio is 91% and your eval ratio is 9%. The difference is relatively large for such a small amount of data. Overall, the number of data is quite small. It correct that you are using data augmentaion, to create more data. "I suspect that the difference in quality and size between the training data and the evaluation data is too large.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maciej W

79331538

Date: 2025-01-05 20:58:04
Score: 1.5
Natty:
Report link

very new command:

composer run dev

does actually what we always needed.

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

79331533

Date: 2025-01-05 20:53:04
Score: 2
Natty:
Report link

Maui: Java.Lang.AbstractMethodError Message=abstract method "android.util.Size androidx.camera.core.ImageAnalysis$Analyzer.getDefaultTargetResolution()"

     [Solved]
     <SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
     <SupportedOSPlatformVersion>24</SupportedOSPlatformVersion>

https://github.com/dotnet/android-libraries/issues/767#issuecomment-1658163275

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

79331517

Date: 2025-01-05 20:46:02
Score: 3
Natty:
Report link

In other languages, e.g. Basic, INT is the left half of a decimal. In 3.14, '3' is the int(3.14).

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

79331511

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

You can dynamically parse PHP code with tokenizer or library like nikic/php-parser to extract method names and their leading lines from a test data class.

Map methods to expected errors. Specify which methods in your test data should generate errors and which should not, using their names rather than line numbers.

Reasons:
  • No code block (0.5):
Posted by: Szymon Roziewski

79331507

Date: 2025-01-05 20:39:01
Score: 1
Natty:
Report link
QIcon HmsUiHelper::createIconFromSvg(const QString& svgFilePath, const QColor& color, int width, int height)
{
    QSvgRenderer svgRenderer{ svgFilePath };
    
    QPixmap pixmap{ width, height };
    pixmap.fill(Qt::transparent);
    
    QPainter painter{ &pixmap };
    painter.setRenderHint(QPainter::Antialiasing);
    
    svgRenderer.render(&painter);
    
    QGraphicsScene scene;
    QGraphicsPixmapItem item{ pixmap };
    
    auto* colorizeEffect = new QGraphicsColorizeEffect{};
    colorizeEffect->setColor(color);
    item.setGraphicsEffect(colorizeEffect);
    scene.addItem(&item);
    
    QPixmap resultPixmap{ width, height };
    resultPixmap.fill(Qt::transparent);
    
    QPainter resultPainter{ &resultPixmap };
    scene.render(&resultPainter);
    
    return QIcon{ resultPixmap };
}

The result demo-code using QGraphicsColorizeEffect. Thank you musicamante!

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

79331505

Date: 2025-01-05 20:39:01
Score: 2.5
Natty:
Report link

Might be of use to anyone else who's had this tts runandwait hanging issue, mine was the fact I had another instance of pyttsx3 running on my machine, it does not play nice if two are running at the same time.

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

79331491

Date: 2025-01-05 20:30:59
Score: 1
Natty:
Report link

Here you have the tutorial from Apple.

I suspect you might not have added it to the target you are building, or the font name in the .plist file might be different.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Łukasz Łabuński

79331490

Date: 2025-01-05 20:29:59
Score: 1
Natty:
Report link

Based on the information provided, it is difficult to draw any definitive conclusions. Several factors could potentially contribute to this issue.

One possible reason is overfitting to the training data. The model may be too specialized to the training set, which can lead to poor generalization. The regularization (l2 term) appears to be relatively high for such a "simple model".

Another potential cause could be that the training data is unrepresentative.

Distribution shift of the data between Train and Test

Ultimately, it is challenging to determine the exact cause due to the limited amount of information shared.

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

79331489

Date: 2025-01-05 20:28:58
Score: 2
Natty:
Report link

I am a bit late. There are docs on that keycloak-angular Github repository. Here is an example how to include BearerTokenInterceptor, which adds Bearer Access Token to your http request to your api: https://github.com/mauriciovigolo/keycloak-angular/blob/main/docs/interceptors.md

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

79331480

Date: 2025-01-05 20:25:57
Score: 0.5
Natty:
Report link

Your controller method is missing the instance of SubscriberRequest. You should rewrite your code to this.

public function subscribe(SubscriberRequest $request) {
        dd($request->validated()); // returns all the validated data as an array
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ridwan Kasim

79331478

Date: 2025-01-05 20:23:57
Score: 0.5
Natty:
Report link

Here you go. There was an NA in your source column.

library(networkD3)
library(dplyr)
library(tidyr)

Key<-read.csv(file="Cat_Key.csv", header=TRUE) %>% select(Num, Name) #select important cols
Sankey_data<-read.csv(file="Sankey_data.csv", header=TRUE) %>% drop_na() #Remove any NA values

#Generate the plot
sankeyNetwork(Links = Sankey_data, Nodes = Key, Source = "Source",
              Target = "Sink", Value = "Value", NodeID = "Name", 
              iterations = 32)

out

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: G-Man

79331476

Date: 2025-01-05 20:18:56
Score: 2.5
Natty:
Report link

I am experiencing the same issue while trying to fetch gender percentage data from the YouTube API. I am working on a Next.js project and getting incorrect data compared to YouTube Studio.

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

79331474

Date: 2025-01-05 20:18:56
Score: 1
Natty:
Report link

as of MongoDB 8.0.4

//php
$filter = ['fileType' => ['$regex' => '^image', '$options' => 'i']];
$rr = $collection->find( $filter  );
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan

79331442

Date: 2025-01-05 19:54:51
Score: 2.5
Natty:
Report link

Consider the following:
https://codesandbox.io/p/sandbox/sticky-nav-c7lcvs
Based on https://www.w3schools.com/howto/howto_js_sidenav.asp
In short: position: fixed; on #menu-bar selector is probably what you are looking for.

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

79331441

Date: 2025-01-05 19:54:51
Score: 3.5
Natty:
Report link

Maybe you could do as many letters until it stops becoming a word; just a recommendation.

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

79331439

Date: 2025-01-05 19:54:51
Score: 2.5
Natty:
Report link

If the images reload every time a new page shows they are most likely too big for the memory you allow your app. If you increase the memory imageCache like this, they will most likely not refresh anymore: PaintingBinding.instance.imageCache.maximumSizeBytes = 200 << 20;

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

79331428

Date: 2025-01-05 19:47:48
Score: 6 🚩
Natty:
Report link

I suggest using the relevant API rather than trying to get the values from the downloadable file. Is there any reason you cannot do that in your scenario?

https://learn.microsoft.com/en-us/azure/virtual-network/service-tags-overview#use-the-service-tag-discovery-api

Reasons:
  • Blacklisted phrase (1): Is there any
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: KonTheCat

79331427

Date: 2025-01-05 19:47:48
Score: 2
Natty:
Report link

https://plotly.com/python/reference/

In the reference, the attributes are nested. Like in xaxis > title > font > color, family, size, ... So if I were to change the size of the xaxis's title, I would get the attribute like this, xaxis_title_font_size = 12. This is really the whole gist. You can read more details here, https://plotly.com/python/reference/index/

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

79331425

Date: 2025-01-05 19:46:48
Score: 0.5
Natty:
Report link

You can't cast List<Child> to List<Parent> directly, but you can cast List<Child> to IReadOnlyList<Parent>. Ex:

List<Child> childList = new List<Child>();
...
IReadOnlyList<Parent> parentList = childList;

This works because List<T> extends IReadOnlyList<out T>. Note T is covariant in the IReadOnlyList<out T> interface.

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

79331420

Date: 2025-01-05 19:42:46
Score: 2
Natty:
Report link

This method is rather antiquated ( I have learned) And can be easily achieved just using a actual user-management interface in Flask, to authenticate the user. And then using WebAssembly to offload the actual running of the on the task to users machine. I have still not perfected my overall goal with this, but I have learned, at least, the above question is not the way.

Thanks to all for helping with this!

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

79331418

Date: 2025-01-05 19:42:46
Score: 2.5
Natty:
Report link

DROP DATABASE then CREATE TABLE works fine for external tables.

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

79331412

Date: 2025-01-05 19:38:45
Score: 0.5
Natty:
Report link

You are using PowerShell in your VS Code terminal, likely version 5.1. PowerShell 5.1's default execution policy does not allow you to execute script files, like the npm entry point script npm.ps1.

Try changing the execution policy to a more permissive one:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mwopitz

79331402

Date: 2025-01-05 19:31:44
Score: 1
Natty:
Report link

As suspected in Finn Bear's comment, the writeNext method was actually blocking for minutes and then writing hundreds of thousands of messages in a second.

Extracting the message sending into a separate Goroutine and atomically incrementing the messagesSinceLastReport variable solved the issue for me.

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

79331401

Date: 2025-01-05 19:30:44
Score: 2.5
Natty:
Report link

gcc.exe for CMAKE_C_COMPILER and g++.exe for CMAKE_CXX_COMPILER

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

79331398

Date: 2025-01-05 19:26:43
Score: 2
Natty:
Report link

I found the solution of the problem: the annotation @EnableWebMvc was missing in the controller class.

I just added it and everything worked as expected.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @EnableWebMvc
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Iscee

79331387

Date: 2025-01-05 19:24:42
Score: 4.5
Natty:
Report link

I hope you are good I am trying to fix that problem for nearly two months and finally I found a random video on youtube just I had to write "sqlite3.dll" when running file and add sqlite3.dll to cpp file directory and it works like a magic I even do not know what changes but it works that is for future visitors facing the same problem

1-) add sqlite3.dll file to cpp file directory

2-) when running g++ command to run file add "sqlite3.dll" at the end of command

g++ filename.cpp sqlite3.dll -o filename.exe

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Low reputation (1):
Posted by: Amr Emam

79331385

Date: 2025-01-05 19:24:42
Score: 0.5
Natty:
Report link

You can specify a function using ANOFA::count.

an_count <- \(x) ANOFA::count(x)
do.call("an_count", list(c(1,2,3)))

By the way, plyr is a retired package. It is recommend to use dplyr or purrr instead. See: https://github.com/hadley/plyr

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

79331374

Date: 2025-01-05 19:16:39
Score: 4
Natty: 4.5
Report link

"Using either of the names will produce the exact same behavior."

Ref: https://docs.open-mpi.org/en/main/man-openmpi/man1/mpirun.1.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ehsan taghizadeh ghoozhdi

79331365

Date: 2025-01-05 19:07:37
Score: 0.5
Natty:
Report link

my bad, just forgot to add

.withBasicAuth("sina", "abc123")

Fixed Test:

    @Test
    @DirtiesContext
    void shouldCreateANewCashCard() {
        var cashcard = new CashCard(null, 6985.9, "sina");
        ResponseEntity<Void> response = restTemplate
                .withBasicAuth("sina", "abc123")
                .postForEntity("/cashcards", cashcard, Void.class);
        assertThat(response.getStatusCode()).isEqualTo(HttpStatus.CREATED);

        URI locationOfNewCashCard = response.getHeaders().getLocation();
        ResponseEntity<String> response1 = restTemplate
                .withBasicAuth("sina", "abc123") // here ;)
                .getForEntity(locationOfNewCashCard, String.class);
        assertThat(response1.getStatusCode()).isEqualTo(HttpStatus.OK);
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AmirSina01

79331358

Date: 2025-01-05 19:00:36
Score: 1
Natty:
Report link

All right guys, this is my answer based on your comments, now fully functional. Thanks a lot: enter image description here

//pregenerate ciphers key
    function prepare_key($encryption_key){
        return openssl_digest($encryption_key, 'MD5', TRUE);
    }
    //literature manual: https://www.php.net/manual/en/function.openssl-encrypt.php
    //function cipher string 
    function cipher_string($plaintext,$encryption_key){
        $method=openssl_get_cipher_methods()[0];
        $ivlen = openssl_cipher_iv_length($method);
        //$iv = openssl_random_pseudo_bytes($ivlen);
        $encrypted = openssl_encrypt($plaintext, $method, prepare_key($encryption_key), $options=0, substr(prepare_key($encryption_key),0,10), $tag);
        return $encrypted;  
    }
    
    //function to decipher string
    function decipher_string($encrypted,$encryption_key){
        $method=openssl_get_cipher_methods()[0];
        $ivlen = openssl_cipher_iv_length($method);
        //$iv = openssl_random_pseudo_bytes($ivlen);
        $decrypted = openssl_decrypt($encrypted, $method, prepare_key($encryption_key), $options=0, substr(prepare_key($encryption_key),0,10), $tag);
        var_dump("dumpfn:".openssl_decrypt($encrypted, $method, prepare_key($encryption_key), $options=0, $iv, $tag));
        echo("<br>");
        var_dump("encr:".$encrypted);
        echo("<br>");
        var_dump("decr:".$decrypted);
        echo("<br>");
        return $decrypted;
    }
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lesna Vevericka

79331352

Date: 2025-01-05 18:57:35
Score: 2.5
Natty:
Report link

I had a similar issue. For me, it was simply that I had a valid JSON string but not a JSON object. Simply using the json.loads(data) function in my Python code did the trick for me. There should be a similar library for whatever language you’re using.

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

79331349

Date: 2025-01-05 18:56:35
Score: 1.5
Natty:
Report link

I recently encountered the same issue and found an effective solution. You can resolve it by setting the React Native packager hostname to your local IP address. Simply run the following command in your VSCode PowerShell terminal:

Set-Item env:REACT_NATIVE_PACKAGER_HOSTNAME "your_ip_address"; npx expo start

Make sure to replace "your_ip_address" with your actual IP address. This approach worked wonders for me!

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

79331348

Date: 2025-01-05 18:56:35
Score: 1.5
Natty:
Report link

The trouble here is a use-after-free, but a sneaky one. PostMessageW doesn't wait for the message to return, so it goes right through to the next instructions, eventually freeing the memory from the heap and returning 0. By the time handlePaint gets to the command vector, it's already gone, so dereferencing the pointer results in a segfault. Waiting for the message to be processed before continuing fixes the issue. Changing PostMessageW to SendMessageW fixes this.

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

79331344

Date: 2025-01-05 18:53:34
Score: 2
Natty:
Report link

Don't know what the gameState board is supposed to look like exactly, but I see you're calling split on key instead of pieceData. Regardless, it may be easier to debug scripts in a browser like FireFox using a separate js file to breakpoint and see where it's getting null versus console log.

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

79331341

Date: 2025-01-05 18:51:34
Score: 2.5
Natty:
Report link

You can't just hard code the signature as it will be different each time. You have to call the getPresigned directly before uploading on the server and pass the url to the client. It will also expire.

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

79331336

Date: 2025-01-05 18:49:33
Score: 0.5
Natty:
Report link

Try to paste a unicode control character to the text. Like:

rtl_string = `تعداد ساعات روز`

image_append(c(white_space, img), stack = TRUE) %>% 
  image_annotate(
    text = paste0("\u202B", rtl_string), 
    size = 30, 
    gravity = "North")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Near Lin

79331334

Date: 2025-01-05 18:45:32
Score: 0.5
Natty:
Report link

Templates are a compile-time feature in C++, and the compiler only generates code for a template when it encounters a specific instantiation of that template.

When the compiler processes the SimpleVector code, it sees the definitions of template member functions such as sortData, size, and capacity as templates. However, the compiler does not generate any actual code for these template functions at this stage because there are no concrete types () specified. Templates are only blueprints until instantiated.

Since there are no explicit instantiations of SimpleVector in SimpleVector code ( no SimpleVector or SimpleVector), the compiler effectively skips generating code for these functions.

The compiler generates the actual code for a template function or class only when it knows the type T.

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

79331319

Date: 2025-01-05 18:38:30
Score: 2
Natty:
Report link
npm install -g

use this command for install npm globaly.

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

79331303

Date: 2025-01-05 18:26:28
Score: 1
Natty:
Report link

You need to change overflow value to hidden in .center class selector.

.center {
  text-align: center;
  min-width: 0;
  min-height: 0;
  /*This is wrong
    overflow: auto;
  change to*/
  overflow-y: hidden;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: InternetWanderer

79331302

Date: 2025-01-05 18:26:28
Score: 1.5
Natty:
Report link

Use CallByName or Reflection as discussed here:

Dynamically invoke properties by string name using VB.NET

Example:

Private Class Calculations
    Public Function calc(ByVal ParamArray args() As Integer) As Integer
       Return args(0) * 2
    End Function
End Class
Dim args(1) As Integer
args(0) = 2
Dim result = Microsoft.VisualBasic.CallByName(calculator, "calc", Microsoft.VisualBasic.CallType.Get, 7)

'result = 14
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gary S

79331300

Date: 2025-01-05 18:24:26
Score: 12.5 🚩
Natty: 6.5
Report link

Did you solve your problem because i'm having the same issue right now, thanks in advance for your answer

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (3): thanks in advance
  • RegEx Blacklisted phrase (3): Did you solve your problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i'm having the same issue
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve you
  • Low reputation (1):
Posted by: BenoitEstival

79331296

Date: 2025-01-05 18:21:26
Score: 1.5
Natty:
Report link

I found a way to resolve the issue: basically reinstall pytorch and update protobuf to a newer version: Original version: protobuf 5.28.2 and pytorch 2.5.1

conda install --force-reinstall pytorch=2.5.1 protobuf=5.28.3

Now python -c 'import torch' works perfectly.

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

79331274

Date: 2025-01-05 18:07:22
Score: 1
Natty:
Report link

To avoid:

Hooks can only be called inside of the body of a function component.

Use zustand/vanilla instead:

import { createStore } from 'zustand/vanilla';

export const useOrganisationStoreBase = createStore<OrganisationStore>()(...)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kader

79331272

Date: 2025-01-05 18:07:22
Score: 2
Natty:
Report link

Just running the sudo rm -rfv /Library/Caches/com.apple.iconservices.store command was enough for me (plus running sudo killall Dock; killall Finder). It makes sense to remove a cache. On the other side, I see very dangerous to remove anything from inside the /private/ folder, which is a sensible folder for the stability of the operating system.

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

79331270

Date: 2025-01-05 18:07:21
Score: 4
Natty: 4
Report link

There's a implementation proposal on envoy to cover that: Envoy Reverse Connections: Communicate with downstream envoy behind a private network

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

79331250

Date: 2025-01-05 17:59:19
Score: 0.5
Natty:
Report link

Not an answer, but the same problem occurs in the i-jetty project where a Java servlet is loaded dynamically, only when Android below 10 is used.

01-05 17:18:27.405  3941  3993 E Jetty   : FAILED search: java.lang.IncompatibleClassChangeError: Structural change of javax.servlet.http.HttpServlet is hazardous (/data/data/org.mortbay.ijetty/cache/jetty-0.0.0.0-8080-msx-_msx-any-/classes.dex at compile time, /data/app/org.mortbay.ijetty-1/oat/arm/base.odex at runtime): Direct method count off: 5 vs 4

Compile time direct methods in the 'msx' servlet (normal .dex)

01-05 17:18:27.405  3941  3993 E Jetty   :  Direct methods:
01-05 17:18:27.405  3941  3993 E Jetty   :   <clinit>()V
01-05 17:18:27.405  3941  3993 E Jetty   :   <init>()V
01-05 17:18:27.405  3941  3993 E Jetty   :   class$(Ljava/lang/String;)Ljava/lang/Class;
01-05 17:18:27.405  3941  3993 E Jetty   :   getAllDeclaredMethods(Ljava/lang/Class;)[Ljava/lang/reflect/Method;
01-05 17:18:27.405  3941  3993 E Jetty   :   maybeSetLastModified(Ljavax/servlet/http/HttpServletResponse;J)V

Runtime direct methods in the i-jetty container (optimized .odex)

01-05 17:18:27.405  3941  3993 E Jetty   :  Direct methods:
01-05 17:18:27.405  3941  3993 E Jetty   :   <clinit>()V
01-05 17:18:27.405  3941  3993 E Jetty   :   <init>()V
01-05 17:18:27.405  3941  3993 E Jetty   :   getAllDeclaredMethods(Ljava/lang/Class;)[Ljava/lang/reflect/Method;
01-05 17:18:27.405  3941  3993 E Jetty   :   maybeSetLastModified(Ljavax/servlet/http/HttpServletResponse;J)V

In the .odex

class$(Ljava/lang/String;)Ljava/lang/Class;

has been removed

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: hfmanson

79331238

Date: 2025-01-05 17:50:18
Score: 3.5
Natty:
Report link

Use a real bank card, not a virtual one.

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

79331229

Date: 2025-01-05 17:45:17
Score: 1.5
Natty:
Report link

Thanks, this is exactly what I needed. I might add that my LoginPage

Navigator.pushReplacement(context, MaterialPageRoute(
    builder: (context) => const HomePage(title: 'xxx'),
),);
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bo Hellgren

79331218

Date: 2025-01-05 17:40:15
Score: 0.5
Natty:
Report link

That's a good question, let me first clarify something:

Why can't it use off-heap space?

Alternativies:

Resources used:

1 - https://blog.devgenius.io/spark-on-heap-and-off-heap-memory-27b625af778b

2 - https://spark.apache.org/docs/latest/tuning.html

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

79331205

Date: 2025-01-05 17:36:14
Score: 1
Natty:
Report link

The backpropagation in the CNNs are very similar to how it happens in the fully connected layers but with different operations, as we know we begin the backpropagation by calculating the derivative of the loss with respect to the weights (of the filters or of the linear layers), Dloss/Dweights = Dloss/Dz * Dz/Dweights (where the Z is the output generated by the layer), so for we put it more simple lets think of the layer as a function that takes in f(x) and outputs z, breaking that function to parts we get y = x * w (where * denotes the cross-correlation operation, lets avoid the bias for simplicity) and after that y output we get the predictions and then the derivative of the loss (by doing the softmax of the raw predictions and subtracting from the real label ) so in that chain rule expression lets begin by getting Dloss/Dz with is the loss with respect to the output (or activations) it is the gradient that we are propagating backwards and we multiply that by dz/Dweights wich is the derivative of z with respect to the loss, remember from later z = x * w so a change in w is proportional to x (from the chain rule) so dz/Dweights are the input to that conv layer, the last step of the backpropagation of the first layer (for we can actually implement it programatically) is calculate the derivative of the loss with respect to the input, we did later the derivative of the loss with respect to the weights and we get the input z = x * w so a change in the input x is proportional to w so for we get it we multiply Dloss/Dz * Dz/Dx, where Dloss/Dz is the actual derivative of the loss which is given and Dz/Dx is the weights, we do that for we propagate the gradient backwards to the others layers (size we cant update the input). I hope my answer was useful

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mystery mysterious

79331200

Date: 2025-01-05 17:33:14
Score: 2.5
Natty:
Report link

You will need to build tailwindcss with used classes for select2, depends on how you are importing. Can you give more details?

Just created npm package for tailwindcss theme, there is also CDN option that you can use without need tailwindcss build.

Demo: https://erimicel.github.io/select2-tailwindcss-theme/

Github: https://github.com/erimicel/select2-tailwindcss-theme

You can install with:

npm install select2-tailwindcss-theme

And change select2 default theme:

$('select').select2({
  theme: 'tailwindcss-3',
});
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): Can you give
  • Contains signature (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: erimicel

79331196

Date: 2025-01-05 17:32:13
Score: 1
Natty:
Report link

Not perfect, but this is what I'm using. You can append data source name before the table with a dot between, like localhost.users so Search Everywhere only look for tables in your data source

For example, users table is pushed down before other matches without the prefix Search Everywhere without data source prefix

With the prefix, users table is now prioritised, and other matches are even removed out from the search Search Everywhere without data source prefix

Glad this helps

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

79331195

Date: 2025-01-05 17:31:13
Score: 1
Natty:
Report link

By running below command you can create an android folder in your managed expo project.

npx expo run:android

Please refere to the official documentation: https://docs.expo.dev/guides/local-app-development/

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

79331194

Date: 2025-01-05 17:31:13
Score: 0.5
Natty:
Report link

I would also say a good way of dealing with this problem is providing a default (if there is one).

const result = items.find(item.id === myId) || 'A default'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Broccoli

79331188

Date: 2025-01-05 17:27:12
Score: 3
Natty:
Report link

How should this supposed to work for localhost origins ?

Like calling a R2 from a localhost:3000 ( react client ) with a PUT and pre signd URL.

Whatever config i did, it's always a CORS ERROR.

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

79331180

Date: 2025-01-05 17:23:11
Score: 3
Natty:
Report link

I found an API Service from RapidAPI, It's very Accurate, better Latency and we get free and really cheap Paid Plans. Checkout here->(Gold Silver Live Price India (https://rapidapi.com/dpcloudbusiness/api/gold-silver-live-price-india)).

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

79331174

Date: 2025-01-05 17:19:10
Score: 10
Natty: 7.5
Report link

which modification have u added in your code in order to make it works? if i want to use the 2nd option, how can i add the modification to that code please? thank you in advance

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): how can i
  • RegEx Blacklisted phrase (3): thank you in advance
  • RegEx Blacklisted phrase (1): i want
  • RegEx Blacklisted phrase (1): i add the modification to that code please
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): which
  • Low reputation (1):
Posted by: Simo

79331173

Date: 2025-01-05 17:19:09
Score: 7.5 🚩
Natty: 5.5
Report link

I have the same problem. In tg browser the buttons are not working properly

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

79331140

Date: 2025-01-05 17:00:02
Score: 1
Natty:
Report link

Clickhouse does not support SELECT TOP 2.

See the SQL Reference of Clickhouse here. I would suggest rewritting the query using LIMIT e.g.

select storage_name
from proxy_space
LIMIT 2;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Schnurres

79331138

Date: 2025-01-05 16:59:02
Score: 1.5
Natty:
Report link

for MacBook Apple Sillicon chip m1/m2/m3/m4

brew install --cask zulu@8 

it installs it in /Library/Java/JavaVirtualMachines/

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bashir Onuche Okala III

79331137

Date: 2025-01-05 16:59:02
Score: 1.5
Natty:
Report link

I am in the same situation (beginner to CPP, working through this introductory textbook). I was able to run code as per the above, but failed on a subsequent step which involves string concatenation:

#include "PPP.h"

int main()
{
    cout << "Hello\n";
    string first;
    string second;
    cin >> first >> second;
    //string name = "";
    string name = first + " " + second;
    cout << "Hello, " << name << "\n";
}

Whilst I couldn't get rid of the error message "incomplete type "PPP::Checked_string" is not allowed", I was at least able to get this code to build and run by modifying the definition of "Checked String" in PPP_support.h:

PPP_EXPORT class Checked_string : public std::string {
public:
    using std::string::string; // Inherit constructors

    // Default constructor
    Checked_string() : std::string() {}

    // Constructor to accept std::string
    Checked_string(const std::string& s) : std::string(s) {}

    // Implicit conversion to std::string
    operator std::string() const {
        return std::string(*this);
    }

    // Overloaded subscript operator with range checking
    char& operator[](size_t i) {
        std::cerr << "PPP::string::[]\n";
        return this->std::string::at(i);
    }

    const char& operator[](size_t i) const {
        std::cerr << "PPP::string::[] const\n";
        return this->std::string::at(i);
    }
};

I don't really understand why this works, but it did at least allow me to progress in Chapter 2 of this introductory textbook for beginners.

Reasons:
  • Blacklisted phrase (2): I am in the same situation
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29062989

79331136

Date: 2025-01-05 16:58:02
Score: 1
Natty:
Report link

Packing the matrices A and B is indeed necessary.

For an short outline, consider the PowerPC documentation (red book). https://www.redbooks.ibm.com/abstracts/redp5612.html (page 35). PowerPC has a similar blocked matrix multiply instruction as VNNI and Arm Neon.

I have written such packing function within the matrix multiply code. The packing didn't do any harm to the throughput of the code.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: fabian

79331133

Date: 2025-01-05 16:57:01
Score: 2.5
Natty:
Report link

.NET MAUI App is single project application but .NET MAUI Multi-project app have multiple projects for common code , android, windows, IOS, MAC. so it's easy to configure different platform differently. sometimes it reduces complexity of application sometimes it makes your application complex.

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

79331126

Date: 2025-01-05 16:53:00
Score: 1
Natty:
Report link

Are you sure that, the log that you are expecting are not just... from Microsoft nameSpace ?

You put :

 lc.MinimumLevel.Override("Microsoft", Serilog.Events.LogEventLevel.Warning);
 lc.MinimumLevel.Override("System", Serilog.Events.LogEventLevel.Warning);

If you were excepting a log saying now listenning to some port or something, these are Information level from Microsoft.* namespace

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

79331117

Date: 2025-01-05 16:46:58
Score: 1
Natty:
Report link

I was working on a problem where I needed to handle ASCII values within the alphabetical range. Specifically, if I add or subtract a value from a character, the result should wrap around the alphabet.

For example:

'z' + 2 should give 'b'

'a' - 2 should give 'y'

To achieve this, I used the following logic:

char c;
// Wrap around to the start of the alphabet
if (c > 'z')  
    c = c - 26;  

// Wrap around to the end of the alphabet<hr>
if (c < 'a')  
    c = c + 26;

This ensures the character stays within the range of 'a' to 'z'.**

Is this approach efficient, or are there other ways to achieve the same result? Any insights or suggestions are welcome!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: hakuna matata

79331107

Date: 2025-01-05 16:41:56
Score: 6.5 🚩
Natty: 4.5
Report link

I cannot register on Glympse Developer tools, when I try, I get this error: 404 Oops.

When I go to this link to register "https://developer.glympse.com/apps", I get this 404 error.

Does anyone gets this?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Joaquin

79331106

Date: 2025-01-05 16:40:54
Score: 4
Natty: 5.5
Report link

There is no such feature yet. i need that too

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dilavər Ağabəyov

79331093

Date: 2025-01-05 16:34:53
Score: 2
Natty:
Report link

certGen.AddExtension( X509Extensions.SubjectAlternativeName, false, new GeneralNames(new GeneralName(GeneralName.DnsName, "www.google.com")));

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

79331084

Date: 2025-01-05 16:30:52
Score: 2.5
Natty:
Report link

The function you provided is an example of a pure nullary function, read this answer for more details.

According to this article:

  • Pure functions return consistent results for identical inputs.
  • They do not modify external states or depend on mutable data.

Since the function does not take any inputs, it will always return the exact same ouput, and it does not modify any external states, hence the function is pure.

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • Low reputation (1):
Posted by: badAtCoding

79331079

Date: 2025-01-05 16:26:52
Score: 1
Natty:
Report link

I used jit_compile=False and my problem solved:

model.compile(metrics=['mae', 'mse'], loss='mse', optimizer=optimizer, jit_compile=False)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali karimi

79331072

Date: 2025-01-05 16:21:51
Score: 1
Natty:
Report link

For anyone who stumbles here, redshift now has snapshot isolation and that’s the default for any new instances. Switching to it should alleviate issues, but I stumbled here cause a simple incremental refresh was locking selecting from the mat view and I’m trying to figure out why, even with snapshot isolation.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: user433342

79331070

Date: 2025-01-05 16:20:50
Score: 2.5
Natty:
Report link

enter link description here

1: https://AppOptions%20*%20LoadFromJsonConfig(%20%20%20const%20char%20config,%20%20%20AppOptions%20options%20 Facebook account hacker FREE emphasized textAppOptions * LoadFromJsonConfig( const char *config, AppOptions *options )

Blockquote

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: BABU BITTEL

79331057

Date: 2025-01-05 16:12:49
Score: 2.5
Natty:
Report link

It's seems that new version of hibernate dose not recognize ID field value of 0 to be new record setting it's value to null will solve it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mos.saudi

79331053

Date: 2025-01-05 16:10:49
Score: 1.5
Natty:
Report link

according to this ticket, User Maxim Dounin said:

QUIC on Windows is not currently supported due to lack of UDP handling infrastructure implemented for this platform.

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

79331052

Date: 2025-01-05 16:10:48
Score: 4
Natty:
Report link

@ JayashankarGS is there any way to contact you? I have some questions about Azure functions combined with azure ai search Blog Storage etc.

Reasons:
  • Blacklisted phrase (1): is there any
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lukas Witschel

79331048

Date: 2025-01-05 16:09:48
Score: 3.5
Natty:
Report link

Set the DisabledItemForeColor property to ControlText. This is the easiest way to make read-only properties appear the same as read-write properties.

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

79331047

Date: 2025-01-05 16:09:48
Score: 1
Natty:
Report link

I had spaces in my content key in tailwind.config.js.

Before content: ["./src/**/*.{html,js, jsx, tsx}"]

After   content: ["./src/**/*.{html,js,jsx,tsx}"]

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

79331043

Date: 2025-01-05 16:06:47
Score: 2.5
Natty:
Report link

The answer is:

predict() for whatever reason gives an error if the name of the variable for vm() has an underscore in it.

Example: "line_code" = error, "linecode" = should work. At least that is how I debugged my issue.

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

79331036

Date: 2025-01-05 16:00:46
Score: 1.5
Natty:
Report link

Additionally to @lansana answer, the problem is when doing

vendedores v 
LEFT JOIN v.lojas l ON l.franquia.voToken = :tokenFranquia AND v.voId = :voId

I'm not just taking the sellers whose dont match voToken and voId, I'm also taking sellers without a store, because:

vendedores v LEFT JOIN v.lojas l ON ...

Will be translated to something like:

vendedores v LEFT JOIN vendedores_lojas vl ON vl.vendedor_system_id = v.system_id AND (the ON condition in JPQL)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @lansana
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lucas Amaral

79331034

Date: 2025-01-05 15:59:46
Score: 2.5
Natty:
Report link

I made a complete uninstall of vs code and then reinstall and looks like this solve the problem for me...

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

79331031

Date: 2025-01-05 15:58:46
Score: 1.5
Natty:
Report link

I followed your steps and ran into the same issue, and solved it by creating a project using the HIP SDK template

Make sure you've got the AMD HIP Toolchain extension installed for visual studio. Then launch VS>Create a New Project>AMD HIP SDK. Then setup your paths and includes as you did

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

79331021

Date: 2025-01-05 15:50:43
Score: 1.5
Natty:
Report link

Use the ord() function in Python to get the ASCII value of a character.

Shift the ASCII Value:

For shifting to the right, add a specific value. For shifting to the left, subtract a specific value. Handle Wraparounds:

If the shifted value goes beyond the range of printable ASCII values, wrap it around within the range (e.g., 32–126 for printable characters). Convert Back to Characters: Use the chr() function in Python to convert the shifted ASCII value back to a character.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aashutosh kumar bhardwaj

79331020

Date: 2025-01-05 15:48:43
Score: 1
Natty:
Report link

You are probably looking for something like

a[i] += 3 if c[i] == 'fine' else (1 if c[i] == 'check' else 0)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sourin_karmakar

79331016

Date: 2025-01-05 15:47:43
Score: 1.5
Natty:
Report link
fun getCurrentFragment() = fa.supportFragmentManager.getBackStackEntryAt(fa.supportFragmentManager.backStackEntryCount - 1)

where fa is the fragment activity passed to your adapter

See: https://developer.android.com/develop/ui/views/animations/screen-slide-2

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

79331015

Date: 2025-01-05 15:46:42
Score: 3
Natty:
Report link

i don't find TabBar.js on the nodemodule package. i have TabBar.tsx and at line 147 and 412 is not the same way that what you share

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

79330997

Date: 2025-01-05 15:37:41
Score: 0.5
Natty:
Report link

In my node.js project , i was using .env file to store the port number. So if you are following the same then: solution: DO NOT ADD ; in .env file

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