79582682

Date: 2025-04-19 18:04:28
Score: 2
Natty:
Report link

I'm sure you get this issue when you are not using Gradle.

So just get an internet connection and create the project.

You don't even need to install jdk i use to do and don't get the problem solved

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

79582680

Date: 2025-04-19 18:00:27
Score: 3
Natty:
Report link

I'm working on a Url Shortener, would you want me to give you an access to the API ?

Have a nice day 😁

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nelson Raon DRCLS

79582676

Date: 2025-04-19 17:54:26
Score: 5
Natty: 5
Report link

Is anyone at Intel wondering why so many users want to go back to the non-Intel-updated version of icc? And thanks for not bringing up LLVM again...

Best regards.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: djg

79582670

Date: 2025-04-19 17:47:24
Score: 1.5
Natty:
Report link

Code is working as expected, Http client timeouts actually working with Polly properly. After lot of research found out that Kong gateway API, has a default timeout of 60, got that increased similar to http timeout and everything working as expected.

We will also add logs into Polly policy so that any future errors gets highlighted.

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

79582664

Date: 2025-04-19 17:40:22
Score: 4
Natty: 5
Report link

In 2025:

[![AWS Identity pool ID path][1]][1]

[1]: https://i.sstatic.net/f7zys.png

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

79582662

Date: 2025-04-19 17:36:21
Score: 0.5
Natty:
Report link

I'm quite new to using torch but maybe you can try setting your device to something like this it first checks for "mps" if its not available it checks GPU "cuda" and if that's not available finally the CPU.

        self.device = (
            "mps"
            if torch.backends.mps.is_available() and torch.backends.mps.is_built()
            else ("cuda" if torch.cuda.is_available() else "cpu")
        )

since you have 2 gpu's cuda:0 and cuda:1 wrap your model with DataParallel and send it to the devices defined above. Hope this helps but as i said i am very new to using torch and i have no idea what's being pulled in with those templates or auto mode ect.

        model = torch.nn.DataParallel(model)
        model.to(self.device)

** Note: DataParallel is being considered for deprecation so if you can figure it out DistributedDataParallel that would be a better solution but a bit more complex.
also make sure there**

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • RegEx Blacklisted phrase (1.5): i am very new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28405727

79582660

Date: 2025-04-19 17:34:21
Score: 2.5
Natty:
Report link

I also suggest you to use react-native-background-geolocation lib of transistor softwares, I used it and our app is in the production, working good.for iphone that lib is free so u can setup and give it a try

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

79582649

Date: 2025-04-19 17:28:19
Score: 4
Natty:
Report link

That's a very good link. But it is not directly relevant to your situation. Have you been able to get "Hello world" to cross compile and run on Ubuntu? (Without having Visual Studio Code involved at all.)

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: yeremiayss

79582646

Date: 2025-04-19 17:23:18
Score: 1
Natty:
Report link

I made a blank screen, where I added a timer of 300 miliseconds using Future.delayed, which then took me to the required screen. This is how I solved it.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Zaid Ahmed Soomro

79582644

Date: 2025-04-19 17:21:18
Score: 2.5
Natty:
Report link
import pandas as pd
import numpy as np

Raw Data:


date       lplp_returns
2018-03-14  0.000000
2018-03-15  0.000000
2018-03-16  0.000006
2018-03-19  -0.000469
2018-03-20  -0.001312
... ...
2025-04-10  0.082415
2025-04-11  0.002901
2025-04-14  0.005738
2025-04-15  0.007664
2025-04-16  0.012883
1848 rows × 1 columns

Creating groups before using groupBy helped get me going in the right direction:

start_date = pd.Timestamp('2018-04-20')
df['group'] = ((df.index - start_date).days // 365)
grouped = df.groupby('group')
result = grouped['lplp_returns']

From there, I want cumulative returns (cumprod). This, of course, is problematic because it is a groupby/transform operation.

g = result.apply(lambda x: np.cumprod(1 + x) - 1)
g.groupby('group').tail(1)

Output:

group  Date      
-1     2018-04-19    0.003971
 0     2019-04-19   -0.077341
 1     2020-04-17   -0.068972
 2     2021-04-16    0.429971
 3     2022-04-18   -0.024132
 4     2023-04-18    0.032741
 5     2024-04-17    0.190119
 6     2025-04-16    0.131955
Name: lplp_returns, dtype: float64

This gets me 95% to where I want to be.

Needs for improvement:

(1) I don't want/need group '-1',

(2) I want each group to start on or after 'xxxx-04-20' not to proceed 'xxxx-04-20', and

(3) to stop on or before 'xxxx-04-20' not to exceed 'xxxx-04-20'. (This is to address trading days).

Suggestions on coding or approaching/solving this in a better way?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Brent

79582636

Date: 2025-04-19 17:07:15
Score: 1.5
Natty:
Report link

Deleting the function and redeploying it again fixes the problem. I was quite desperately trying to resolve it for a few hours. I had a problem with NextJS dynamic routes and SSR. It turned out to be this exact issue. I deleted the function and redeployed it from scratch - all works well now. Phew. I thought after updating NextJS to 15+ messed something up. No, the new AppRouter and Firebase Hosting (not App Hosting) works fine, it's just the annoying cloudrun permission that was holding me.

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

79582631

Date: 2025-04-19 17:01:14
Score: 1.5
Natty:
Report link

You can try typing this in your terminal window:

pytest --fixtures-per-test -v

It shows which tests use which fixtures

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

79582624

Date: 2025-04-19 16:56:13
Score: 2.5
Natty:
Report link

const data = [ { "label": "A", "seriesA": 45, "seriesB": 20, }, { "label": "B", "seriesA": 62, "seriesB": 50, }, { "label": "C", "seriesA": 38, "seriesB": 80, }, { "label": "D", "seriesA": 75, "seriesB": 40, }, ];

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: user2533687

79582614

Date: 2025-04-19 16:50:11
Score: 2.5
Natty:
Report link

MS VS 2022 - SQL Server Object Browser doesn't want to connect to any sql servers it seems like dead service. At the same time SQL Server Browser is connected to all local DB including MSSQLLocalDB. I checked everything and I cleaned Cache and re-installed MS VS? I re-wrote the project but it doesn't work. CMD is showing the all DBs are running and I restarted its as well.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: LRusl

79582611

Date: 2025-04-19 16:41:10
Score: 2
Natty:
Report link

Been a while... but after trial and error I managed to actually get something running in .Net8
There is also a separate Registration tool in here for the addin, so no need for regsvr32 or dscom.
https://github.com/HCarlb/DotnetExcelComAddIn

Works great on Win 11 x64, Office 2016 x64 with .Net8.
(but wont load if build on .Net9)

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

79582608

Date: 2025-04-19 16:38:09
Score: 3.5
Natty:
Report link

There's confusion between the Toolbar and the ExplorerBar. OP's question (and mine) concerns the Explorer Bar. He/she wants to add a button to it that will run a command on the selected file. At least that's how I understand the question. I already have a button on the Toolbar that I can drag and drop a file onto to run a virus check on it. But it would be much better if I could select the file and click a button on the Explorer Bar.

By the way, I know this isn't an answer; it's a comment clarifying the question. I'm not allowed to comment (? :-[). Feel free to edit or delete it.

Reasons:
  • Blacklisted phrase (1): not allowed to comment
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lestrad

79582599

Date: 2025-04-19 16:32:08
Score: 1.5
Natty:
Report link

Another infinite iterator:

import string

def words(alphabet):
    yield from alphabet
    for word in words(alphabet):
        for letter in alphabet:
            yield word + letter

for word in words(string.ascii_lowercase):
    print(word)

Attempt This Online!

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

79582587

Date: 2025-04-19 16:20:05
Score: 1
Natty:
Report link

I had a variant of the same issue (on Windows), where npm did't want to upgrade because of some dependency threw an error, even though I had deleted and reinstalled Node.

I dimply delete the followingfolders, and npm installed correctly.

Just be careful when messing around in the AppData folder!

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

79582582

Date: 2025-04-19 16:12:03
Score: 0.5
Natty:
Report link

You are close but instead of

 item-text="text"

you actually need

item-title="text"

also item-value="value" is not necessary. v-select automatically gets value and title. So if your object had title instead of text for example it would work out of the box.

v-select docs

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

79582580

Date: 2025-04-19 16:11:03
Score: 1.5
Natty:
Report link

In the code

verify(log,times(1)).info(anyString())

you have referenced a test method itself, not from the aopClass.

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

79582573

Date: 2025-04-19 15:59:01
Score: 0.5
Natty:
Report link

On mac you can use F1 or Ctrl + J . On some macs Command+J is used to achieve.

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

79582567

Date: 2025-04-19 15:49:59
Score: 3.5
Natty:
Report link

@a.dibacco

awesome, that upperfilter removal was the fix for me.

It's nuts bc any guest OS didn't get any usb devices handed over, even tho they were "captured"

Thank you. ;)

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Micha

79582565

Date: 2025-04-19 15:48:58
Score: 3
Natty:
Report link

Problem was in Theme, removing it solve the problem. Yet didn't know which part of it cause such veird behavior but will dig deeper into it.

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

79582549

Date: 2025-04-19 15:28:54
Score: 2
Natty:
Report link

I've read that sqlite doesn't support web app, that's why we're seeing these kind of errors. The expo team said that they will fix it in the near future.

https://github.com/expo/expo/issues/32918

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

79582540

Date: 2025-04-19 15:20:52
Score: 3.5
Natty:
Report link

Could you kindly provide the code? I am using the same code, but when I disable the TextField, the text is fully visible on iOS.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tornike Despotashvili

79582535

Date: 2025-04-19 15:13:51
Score: 0.5
Natty:
Report link

Please read the official doc comment of buildDefaultDragHandles before using ReorderableDragStartListener. The default behavior is different depending on the platform, on desktop, the behavior is same as Flutter 2.x, on mobile, users will need to long press the item and then drag to save some space of adding the trailing drag handle icon. Using ReorderableDragStartListener without setting buildDefaultDragHandles to false, will cause to duplicate the icon on desktop platforms.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: bart mine

79582532

Date: 2025-04-19 15:09:50
Score: 5
Natty:
Report link

CAN ANYONE HELP PLEASE.

I'm getting issue with geolocation_android in my build.gradle(android)

I have added

build.gradle(android),build.gradle(app),local.properties,gradle-wrapper.properties and pubspec.yaml.

Solve the following error:

[{
"resource": "/c:/Users/shiva/wetoucart_seller/android/build.gradle",
"owner": "_generated_diagnostic_collection_name_#7",
"code": "0",
"severity": 8,
"message": "The supplied phased action failed with an exception.\r\nA problem occurred configuring project ':geolocator_android'.\r\nFailed to notify project evaluation listener.\r\nCannot invoke method substring() on null object",
"source": "Java",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]


build.gradle(app):

plugins {
    id "com.android.application"
    id "kotlin-android"
    id "com.google.gms.google-services"
    // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
    id "dev.flutter.flutter-gradle-plugin"
}

android {
    namespace = "com.wetoucart.seller"
    compileSdk = 34
    ndkVersion = "25.1.8937393"

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_17
    }

    tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xlint:-options"
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId = "com.wetoucart.seller"
        // You can update the following values to match your application needs.
        // For more information, see: https://flutter.dev/to/review-gradle-config.
        minSdk 23
        targetSdk = 34
        versionCode = 1
        versionName = 1.0
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig = signingConfigs.debug
        }
    }
}

flutter {
    source = "../.."
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation 'com.google.android.material:material:1.12.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.core:core-splashscreen:1.0.1'
    implementation 'androidx.annotation:annotation:1.9.0'
    implementation 'androidx.multidex:multidex:2.0.1'

    // Firebase dependencies
    implementation platform('com.google.firebase:firebase-bom:33.5.1')
    implementation 'com.google.firebase:firebase-analytics:22.1.2'
    implementation 'com.google.firebase:firebase-auth:23.1.0'
    implementation 'com.google.firebase:firebase-firestore:25.1.1'
    implementation 'com.google.firebase:firebase-crashlytics:19.2.1'
    implementation 'com.google.firebase:firebase-storage:21.0.1'

    // Test dependencies
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}


build.gradle(android):

buildscript {
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://storage.googleapis.com/download.flutter.io'
        }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:8.3.0'
        classpath 'com.google.gms:google-services:4.4.2'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

local.properties:

sdk.dir=C:\\Users\\shiva\\AppData\\Local\\Android\\sdk
ndk.dir=C:\Users\shiva\AppData\Local\Android\Sdk\ndk\25.1.8937393
flutter.sdk=C:\\Users\\shiva\\flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1

gradle-wrapper.properties:

org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true

pubspec.yaml:


name: wetoucart_seller
description: "A new Flutter project."

# Remove this line if you wish to publish to pub.dev
publish_to: 'none'


version: 1.0.0+1

environment:
  sdk: '>=3.2.3 <4.0.0'


dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  url_launcher: ^6.0.12
  image_picker: ^1.0.7
  cloud_firestore: ^5.0.1
  firebase_core: ^3.6.0
  firebase_crashlytics: ^4.0.1
  firebase_auth: ^5.3.1
  firebase_storage: ^12.0.1
  geolocator: ^13.0.3


dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^4.0.0
  matcher: ^0.12.16
  material_color_utilities: ^0.11.1
  meta: ^1.12.0
  path: ^1.8.3
  test_api: ^0.7.0



flutter:
  uses-material-design: true
  assets:
    - assets/wetoucartseller.png
    - assets/storeprofile.png
    - assets/sellerback.jpg

Solution for geolocation_android

Reasons:
  • RegEx Blacklisted phrase (3): CAN ANYONE HELP
  • RegEx Blacklisted phrase (0.5): ANYONE HELP PLEASE
  • RegEx Blacklisted phrase (1.5): HELP PLEASE
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): CAN ANYONE HELP PLEASE
  • Low reputation (1):
Posted by: MAFIC YT

79582531

Date: 2025-04-19 15:08:49
Score: 7 🚩
Natty:
Report link

enter image description heresupplement

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dawn

79582521

Date: 2025-04-19 14:57:47
Score: 2
Natty:
Report link

For me $source admin-openrc did not work.

The complete source command found on the devstack/openrc repo is
source openrc [username] [projectname].

$source openrc will work but may not allow the execution of all commands.
$source openrc admin should run properly if admin user has not been altered.

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

79582520

Date: 2025-04-19 14:56:46
Score: 1
Natty:
Report link

Sorry the code submitted includes reference to the superseded column which in not relevant to this question. Only this is needed:

CREATE TRIGGER [dbo].[AddSpecificationID]
   ON  [dbo].[Specification]
   AFTER INSERT
AS 
BEGIN
    SET NOCOUNT ON;
    Update Specification
    Set SpecificationID = EntryID 
    where isnull(SpecificationID,0) = 0
END
GO

This worked on MS SQL

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

79582516

Date: 2025-04-19 14:53:46
Score: 1.5
Natty:
Report link

Turns out I needed to dive more into Hive functions.

Here's the solution to my problem, using this SQL code I'm able to do the conversion while extracting the column:

SELECT from_unixtime(unix_timestamp('Jan 18 2019 1:54PM', 'MMM dd yyyy h:mma'), 'yyyy-MM-dd HH:mm:00') AS formatted_date;

Result:

formatted_date
2019-01-18 13:54:00
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paolo Cimmino

79582515

Date: 2025-04-19 14:53:46
Score: 1.5
Natty:
Report link

My solution for this problem using Android Studio Meerkat | 2024.3.1 Patch 1

Runtime 21.05 amd64, is to hover your tracking device over the object you wish to reference within the documentation and the separate window is within the bottom right three vertical dot's OR

View -> Tools -> Documentation. The documentation window updates depending on where your cursor is within your code editor.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Utur.Yaku

79582514

Date: 2025-04-19 14:52:45
Score: 9.5 🚩
Natty: 5
Report link

Can someone help me please,

I want to show all markers with the keyword " hospital" for example on launch activity my map should zoom to my location and show all the hospitals in that area

how can I get that ?

  private void fetchLocation() {
        if (ActivityCompat.checkSelfPermission(
                this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(
                this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
            ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE);
            return;
        }
        Task<Location> task = fusedLocationProviderClient.getLastLocation();
        task.addOnSuccessListener(location -> {
            if (location != null) {
                currentLocation = location;
                Toast.makeText(getApplicationContext(), currentLocation.getLatitude() + "" + currentLocation.getLongitude(), Toast.LENGTH_SHORT).show();
                SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.myMap);
                assert supportMapFragment != null;
                supportMapFragment.getMapAsync(MosqueActivity.this);

            }
        });
    }
    @Override
    public void onMapReady(GoogleMap googleMap) {
        LatLng latLng = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());
        MarkerOptions markerOptions = new MarkerOptions().position(latLng).title("Your Location");
        googleMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));
        googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12));
        googleMap.addMarker(markerOptions);

    }
Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2): help me please
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can someone help me please
  • Low reputation (1):
Posted by: Futurelinx Informatique

79582476

Date: 2025-04-19 14:12:35
Score: 2
Natty:
Report link

I got the same problem. And I fix this by changing direction='minimize' . Because the function LightGBMPruningCallback is use AUC for optimize mean, u want to find the highest AUC. So the direction is true maximize

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: vvthai10

79582469

Date: 2025-04-19 14:05:33
Score: 2.5
Natty:
Report link

In both winbgim.h and graphics.h edit line 302 change int right=0 to int top=0. In the editor under compiler settings > linker settings click the Add button select libbgi.a as explained above.

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

79582467

Date: 2025-04-19 14:02:33
Score: 3
Natty:
Report link

It’s impossible to achieve your goal with a sheet. The best way might be to create your own view that behaves like a sheet. It’s not difficult.

struct Foo: View {
  @State var isSheetVisible = false
  
  var body: some View {
    ZStack {
      if isSheetVisible {
       // your "sheet view" code and animation
      }
      
      YourCutomView() // this view will remain front
    }
    
  }
}

If you have any more questions about this, please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tornike Despotashvili

79582446

Date: 2025-04-19 13:36:27
Score: 1
Natty:
Report link

This one workes well in the newest version of Tensorflow 2.x

from tensorflow.python.keras import Sequential
from tensorflow.python.keras.layers import Conv2D, Activation,MaxPooling2D
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Touati Slimane

79582440

Date: 2025-04-19 13:31:25
Score: 4
Natty:
Report link

Just try following the steps written in the documentation. It really helped me.

https://www.heroui.com/docs/guide/tailwind-v4

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

79582439

Date: 2025-04-19 13:31:25
Score: 1.5
Natty:
Report link
require 'ipaddr'

cidr = IPAddr.new '192.168.1.0/24'
cidr.netmask
=> "255.255.255.0"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MatzFan

79582437

Date: 2025-04-19 13:29:25
Score: 2
Natty:
Report link

After some attempts, I found the problem is about the header search path setting in Xcode.

Previously, I added "/usr/local/include/**" and "....(my project path)/include/**" to "header search path" to use some 3rd libraries. After I modified all of the header search path to non-recursive ones, everything works fine.

But I still don't know the reason.

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

79582432

Date: 2025-04-19 13:22:23
Score: 7.5 🚩
Natty: 5
Report link

i have searched alot and find that you should be with the backend or you should have access at the system files ( will not happen ), so do you find anything else ?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you find any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kerlos Magdy

79582428

Date: 2025-04-19 13:16:21
Score: 1
Natty:
Report link

This also worked for me...

=SUM(MAP('Shot List'!A:A,'Shot List'!D:D,'Shot List'!H:H,LAMBDA(a,b,c,IF(a=B6,SUMPRODUCT(COUNTIF(a,B6),b*c)))))

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dominic McAfee

79582426

Date: 2025-04-19 13:13:20
Score: 0.5
Natty:
Report link

While I cannot comment on how to code in C#, your issue is most likely due to not writing to these pipes on separate threads.

Named pipes do not buffer the data for you, so your program will be blocked after feeding the pipe until FFmpeg reads ALL the provided data, and your program does not know which one of the pipes FFmpeg currently needs and how many bytes. So, your pipes must be fed completely independently of each other to avoid what you're experiencing.

This will work though. I've successfully implemented it in Python.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • Long answer (-0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: kesh

79582418

Date: 2025-04-19 13:04:19
Score: 0.5
Natty:
Report link

You can change the offset, let suppose you have TabView you can get height of sheet and update offset.enter image description here

struct DemoView: View {
    @State var isPresented = false
    var body: some View {
        ZStack {
            Color.brown
                .ignoresSafeArea()
            VStack {
                Button {
                    isPresented.toggle()
                } label: {
                    Text("Show Sheet")
                }
                .buttonStyle(.borderedProminent)
                Spacer()
                TabView {
                    Text("First Tab")
                        .tabItem {
                            Label("Home", systemImage: "house.fill")
                        }
                    Text("Second Tab")
                        .tabItem {
                            Label("Gallery", systemImage: "photo")
                        }
                    Text("Third Tab")
                        .tabItem {
                            Label("Comment", systemImage: "message")
                        }
                    Text("Fourth Tab")
                        .tabItem {
                            Label("Settings", systemImage: "gear")
                        }
                }
                .offset(y: isPresented ? -100 : 0)
                .sheet(isPresented: $isPresented) {
                    Text("my news page")
                        .presentationDetents([.height(100), .fraction(0.9)])
                }
                
            }
            
        }
        
    }
}
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vaibhav Upadhyay

79582417

Date: 2025-04-19 13:04:19
Score: 2.5
Natty:
Report link

I recorded the service times and inter-arrival times I obtained in a single doctor's room on 6 different days in an excel file, I uploaded it to the Anylogic program to calculate the service start, waiting time in the queue, end times, time spent in the system and time spent idle, but it gave many errors, could you please try it in the Anylogic program? i can add excel file

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hayrettin Gök

79582401

Date: 2025-04-19 12:47:15
Score: 1
Natty:
Report link

The VS code open AI chat extension sends [the file that is currently open in the editor] along with the prompt.

In the chat prompt input box where it says, "Ask Copilot". There is a button that says "Add Context" and, next to that, the currently-opened file. Either click it to disable the current file context, reduce the file size in the editor, or choose a less-expensive model to ask in the chat box.

The crux of it is, if you're editing a large file, it will consume a lot of tokens.

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

79582382

Date: 2025-04-19 12:28:11
Score: 1
Natty:
Report link

I ended up using onPressOut, and I assume onPressIn also works as @Tushar suggested.

on _layout.js

import { Stack, router } from "expo-router";
import { Text, StyleSheet, TouchableOpacity } from "react-native";


<Stack
  screenOptions={{         
    headerTintColor: "#f0f",
    ...
    headerRight: () => (
      <TouchableOpacity onPressOut={() => router.push("/about")}>
        <Text style={styles.buttonText}>Help</Text>
      </TouchableOpacity>
    ),
  }}
/>

any other page in case I need a different action on the buttonText products.js

<Stack.Screen
  options={{    
    headerTintColor: "#a5c",
    ....
    headerRight: () => (
    <TouchableOpacity onPressOut={() => router.push("/new")}>
      <Text style={styles.buttonText}>New Product</Text>
    </TouchableOpacity>
    ),
   }}
/>

This way I could still use expo version 52 package.json

{
  "dependencies": {
    "@expo/vector-icons": "^14.0.2",
    "@react-native-community/datetimepicker": "8.2.0",
    "@react-native-picker/picker": "2.9.0",
    "expo": "~52.0.41",
    "expo-camera": "~16.0.10",
    "expo-constants": "~17.0.8",
    "expo-font": "~13.0.4",
    "expo-linking": "~7.0.5",
    "expo-router": "~4.0.19",
    "expo-splash-screen": "~0.29.22",
    "expo-status-bar": "~2.0.1",
    "nativewind": "^2.0.11",
    "react": "18.3.1",
    "react-native": "0.76.7",
    "react-native-dotenv": "^3.4.11",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.4.0"
  },
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Tushar
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alberto Sanchez

79582368

Date: 2025-04-19 12:13:08
Score: 1
Natty:
Report link

I'm facing exactly de same issue, the solution seems to add a request on your instagram like that :

"https://graph.instagram.com/me"
"fields": "id,username,account_type,user_id",
to get the id of the main user of the Ig account
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user30315693

79582364

Date: 2025-04-19 12:07:06
Score: 0.5
Natty:
Report link

try writing your yaml file like below:

path: /data/dataset_split

train: train/images
val:   val/images

names:
  0: Person
  1: CellPhone

and also double check your txt files in labels folder; see if they are in the correct format.

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

79582353

Date: 2025-04-19 11:54:03
Score: 9 🚩
Natty: 4.5
Report link

Did you to solve the problem? I encountered the same error

Reasons:
  • RegEx Blacklisted phrase (3): Did you to solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you to solve the
  • Low reputation (1):
Posted by: Boris

79582332

Date: 2025-04-19 11:41:00
Score: 1.5
Natty:
Report link

I encountered an Error: Unexpected end of form originating from the busboy library, specifically within its Multipart._final method. While I'm using multer for file uploads, the issue isn't likely within multer itself, as multer integrates with (or uses) busboy internally to handle multipart form data. The problem often arises from conflicting Express middleware. If you are also using the express-fileupload middleware globally (e.g., with app.use(fileUpload()) in your app.js or main server file), this is likely the cause. Both multer (via busboy) and express-fileupload attempt to parse the incoming form data stream. This conflict can lead to one middleware consuming the stream prematurely, causing busboy to signal an unexpected end. To resolve this, remove the global app.use(fileUpload()) middleware registration from your application setup.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Usama Ali Khan

79582330

Date: 2025-04-19 11:36:59
Score: 2
Natty:
Report link

For Windows and converting of ID3D11Texture2D textures to OpenGL in GPU is described in https://stackoverflow.com/a/79577300/1468775.

For Linux and VAAPI and VDPAU hw decoders: decoded AVFrame returns VdpVideoSurface or VASurfaceID and you would need to use some dedicated API to transfer data to OpenGL textures.

For Android and mediacodec, there is android/graphics/SurfaceTexture which can use AVMediaCodecBuffer returned from AVFrame.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: valbok

79582327

Date: 2025-04-19 11:35:59
Score: 4
Natty:
Report link

sdfghjkjhgfdsfghjhgfdfghyjuyhgtrfdeerfgthyygt

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ирина Шинкаренко

79582326

Date: 2025-04-19 11:34:58
Score: 1
Natty:
Report link

use the LOGIN_REQUIRED_IGNORE_PATHS in your setting.py

LOGIN_REQUIRED_IGNORE_PATHS = [     r"^/media/"]

then restart your django server.

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

79582324

Date: 2025-04-19 11:33:58
Score: 2
Natty:
Report link
total = []
for lag in zit:
    total.append(lag["languages"])
print(len(total))
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Azuama Odinaka Maximus

79582323

Date: 2025-04-19 11:32:58
Score: 2
Natty:
Report link

I am able to resolve this issue by turning down protected mode of redis using below commands.

redis-cli CONFIG SET protected-mode no
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Egeon

79582321

Date: 2025-04-19 11:31:57
Score: 2.5
Natty:
Report link

Just download the "Java extension pack" from Microsoft in vs code extensions.

  1. Shortcut:
  1. Right click >> Source Action
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kapil Kokcha

79582316

Date: 2025-04-19 11:20:55
Score: 1.5
Natty:
Report link

Adding my 2 cents to the wonderful answer posted by @Mike O'Connor the below code is just another adaptation of the same using the bitwise inverse.

A = np.array([1, 2, 23, 4, 15, 78, 6, 7, 18, 9, 10]) 
~np.sort(~A)

Output: [78 23 18 15 10 9 7 6 4 2 1]

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mike
  • Low reputation (0.5):
Posted by: Vivek

79582313

Date: 2025-04-19 11:17:54
Score: 1.5
Natty:
Report link
window.addEventListener('beforeunload', () => {
   console.log('Clicked back');
});
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Babbo Natale

79582311

Date: 2025-04-19 11:13:53
Score: 2
Natty:
Report link

Permission Denial: writing

com.android.providers.media. Media Provider uri content:

//media/external/video/media from pid=13150, uid=13172

requires android.permission.WRITE_EXTERNAL_STORAGE, or

grantUriPermission()

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nhân Huỳnh

79582302

Date: 2025-04-19 11:02:51
Score: 3
Natty:
Report link

Thank you for your comments.

Before reaching out to the component support team, they suggested that we activate the library license using the link provided by CodeCanyon.

Our integration was working fine before that.

Thank you all again!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Judicaël DAKIN

79582298

Date: 2025-04-19 11:01:50
Score: 1
Natty:
Report link

In your xml, the Factors attribute needs a value

<ControllerSetupData>
    <MasterSetupData ControllerId="0" ControllerModelId="1" ControllerTypeId="2"
        EcolabAccountNumber="040242802" TabId="0" TopicName="test 78" Factors="MISSING VALUE" Multiplier="10"
...

I checked your xml with this validation tool i made. Feel free to check it out if you want

https://file-format-validator.onrender.com/xml

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user30315291

79582292

Date: 2025-04-19 10:51:48
Score: 3
Natty:
Report link

I solved the problem, thanks all

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-2): I solved
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Galang Hardy Muhadzdzib

79582287

Date: 2025-04-19 10:45:47
Score: 3
Natty:
Report link

I have the same issue. My workaround is the same: closing the file, and reopening it when more data to write is availabe. If you don't close the file, the data in the write buffer will actually be lost when the PLC is stopped.

Therefore, I have sent a feature request to Beckhoff Support. You may do the same to let them know the need for such a functionality.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • High reputation (-1):
Posted by: Tobias Knauss

79582280

Date: 2025-04-19 10:36:45
Score: 2
Natty:
Report link

The page.window.width and page.window.height solution worked for me. Also page.window.resizable.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Trevor O'Connell

79582273

Date: 2025-04-19 10:30:44
Score: 0.5
Natty:
Report link

I have found out why I was not getting the RecyclerView to work. Make sure to add your firebase url in the getInstance parenthesis. Mine was set in Singapore while the getInstance() is defaulted to us-central1. That is why I was not seeing anything:

MainViewModel.kt:

private val firebaseDatabase = FirebaseDatabase.getInstance("[your firebase url]")

Please check logcat located at the bottom-left corner of Android Studio. This was a rookie mistake of mine as I was looking for errors in the build section.

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

79582271

Date: 2025-04-19 10:27:43
Score: 0.5
Natty:
Report link

I had to improve performence for decoding large amounts of text (several Kb):

    CREATE FUNCTION [dbo].[fn_url_decode] 
            (@encoded_text as nvarchar(max)) 


        /*****************************************************************************************************************************
        *   Autor:  Nuno Sousa  
        *   Data criação: 2025-04-18
        *
        *   Descrição:  Faz o "URL decode" da string passada em @encoded_text
        *
        *   PARÂMETROS
        *
        *   @encoded_text
        *       texto que está encoded e que será decoded por esta função
        *
        *****************************************************************************************************************************/

    RETURNS nvarchar(max)
    AS BEGIN 
    
        /**********************************
        DEBUG

        declare @encoded_text nvarchar(max) = '%C3%81%20meu%20nome%20%C3%A1%C3%A9'
        **********************************/
        
        declare @decoded_text nvarchar(max) = ''
        declare @decoded_char nvarchar(2) = ''
        


        DECLARE @Position INT
                ,@Base CHAR(16)
                ,@High TINYINT
                ,@Low TINYINT
                ,@Pattern CHAR(21)
        
        DECLARE @Byte1Value INT
                ,@SurrogateHign INT
                ,@SurrogateLow INT
        SELECT  @Pattern = '%[%][0-9a-f][0-9a-f]%'
                ,@Position = PATINDEX(@Pattern, @encoded_text)


        WHILE @Position > 0
        BEGIN
            
            if @Position > 1
            begin
                set @decoded_text = @decoded_text + left(@encoded_text,@Position - 1)
                set @encoded_text = substring(@encoded_text, @Position, len(@encoded_text))
                set @Position = 1
            end

            set @decoded_char = ''


            SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
            @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
            @High = @High / 17 * 10 + @High % 17,
            @Low  = @Low  / 17 * 10 + @Low  % 17,
            @Byte1Value = 16 * @High + @Low
            
            IF @Byte1Value < 128 --1-byte UTF-8
            begin
                SELECT  @decoded_char = NCHAR(@Byte1Value)
                        ,@encoded_text = substring(@encoded_text, 4, len(@encoded_text))
                        ,@Position = PATINDEX(@Pattern, @encoded_text)
            end
            
            ELSE IF @Byte1Value >= 192 AND @Byte1Value < 224 AND @Position > 0 --2-byte UTF-8
            BEGIN
                SELECT  @Byte1Value = (@Byte1Value & (POWER(2,5) - 1)) * POWER(2,6),
                        @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                        @Position = PATINDEX(@Pattern, @encoded_text)
                
                IF @Position > 0
                    SELECT  @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                            @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                            @High = @High / 17 * 10 + @High % 17,
                            @Low  = @Low  / 17 * 10 + @Low  % 17,
                            @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1)),
                            @decoded_char = NCHAR(@Byte1Value),
                            @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                            @Position = PATINDEX(@Pattern, @encoded_text)
            END
            
            ELSE IF @Byte1Value >= 224 AND @Byte1Value < 240 AND @Position > 0 --3-byte UTF-8
            BEGIN
                
                SELECT @Byte1Value = (@Byte1Value & (POWER(2,4) - 1)) * POWER(2,12),
                    @encoded_text = STUFF(@encoded_text, @Position, 3, ''),
                    @Position = PATINDEX(@Pattern, @encoded_text)
            
                IF @Position > 0
                    SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                        @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                        @High = @High / 17 * 10 + @High % 17,
                        @Low  = @Low  / 17 * 10 + @Low  % 17,
                        @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1)) * POWER(2,6),
                        @decoded_char = NCHAR(@Byte1Value),
                        @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                        @Position = PATINDEX(@Pattern, @encoded_text)
                
                IF @Position > 0
                    SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                            @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                            @High = @High / 17 * 10 + @High % 17,
                            @Low  = @Low  / 17 * 10 + @Low  % 17,
                            @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1)),
                            @decoded_char = NCHAR(@Byte1Value),
                            @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                            @Position = PATINDEX(@Pattern, @encoded_text)
            
            END

            ELSE IF @Byte1Value >= 240 AND @Position > 0  --4-byte UTF-8
            BEGIN
                
                SELECT @Byte1Value = (@Byte1Value & (POWER(2,3) - 1)) * POWER(2,18),
                        @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                        @Position = PATINDEX(@Pattern, @encoded_text)
                
                IF @Position > 0
                    SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                            @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                            @High = @High / 17 * 10 + @High % 17,
                            @Low  = @Low  / 17 * 10 + @Low  % 17,
                            @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1)) * POWER(2,12),
                            @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                            @Position = PATINDEX(@Pattern, @encoded_text)
                
                IF @Position > 0
                    SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                        @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                        @High = @High / 17 * 10 + @High % 17,
                        @Low  = @Low  / 17 * 10 + @Low  % 17,
                        @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1)) * POWER(2,6),
                        @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                        @Position = PATINDEX(@Pattern, @encoded_text)
                
                IF @Position > 0
                BEGIN
                    SELECT @High = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 1, 1))) - 48,
                            @Low  = ASCII(UPPER(SUBSTRING(@encoded_text, @Position + 2, 1))) - 48,
                            @High = @High / 17 * 10 + @High % 17,
                            @Low  = @Low  / 17 * 10 + @Low  % 17,
                            @Byte1Value = @Byte1Value + ((16 * @High + @Low) & (POWER(2,6) - 1))
                            --,@encoded_text = STUFF(@encoded_text, @Position, 3, cast(@Byte1Value as varchar))
                            --,@Position = PATINDEX(@Pattern, @encoded_text)

                    SELECT @SurrogateHign = ((@Byte1Value - POWER(16,4)) & (POWER(2,20) - 1)) / POWER(2,10) + 13 * POWER(16,3) + 8 * POWER(16,2),
                            @SurrogateLow = ((@Byte1Value - POWER(16,4)) & (POWER(2,10) - 1)) + 13 * POWER(16,3) + 12 * POWER(16,2),
                            @decoded_char = NCHAR(@SurrogateHign) + NCHAR(@SurrogateLow),
                            @encoded_text = substring(@encoded_text, 4, len(@encoded_text)),
                            @Position = PATINDEX(@Pattern, @encoded_text)
                END /* IF @Position > 0 */
            END /* IF @Byte1Value */

            set @decoded_text = @decoded_text + @decoded_char
        
        END /* WHILE @Position > 0 */

        set @decoded_text = @decoded_text + @encoded_text

        --select REPLACE(@decoded_text, '+', ' '),@num_ciclos 
        RETURN REPLACE(@decoded_text, '+', ' ') 

    END /* CREATE FUNCTION [dbo].[fn_url_decode] */
Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nuno Sousa

79582267

Date: 2025-04-19 10:25:42
Score: 2
Natty:
Report link

After moving from 2.2 to 2.3.7 I am not getting the SimpleSAMLphp installation page but just a page with the pointer to the documentation (see 2.3.7 picture) ... and there is nothing to be found. It is a different behavior than under 2.2 (see also 2.2 image)

2.3.7

2.2

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

79582265

Date: 2025-04-19 10:23:42
Score: 2.5
Natty:
Report link

So strangely I ran this code today and it works just fine. Getting all the values as I would have expected. I guess someone rebooted the server for something!

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

79582253

Date: 2025-04-19 10:05:38
Score: 1
Natty:
Report link

I found the reason for the error. It is the keyword "Enums".

It should be "Enum". That is,

SELECT
    MoneyInOut.Date AS Date,
    MoneyInOut.InOut AS InOut,
    MoneyInOut.Currency AS Currency,
    MoneyInOut.Value AS Value,
    MoneyInOut.Comment AS Comment
FROM
    Document.MoneyInOut AS MoneyInOut
WHERE
    MoneyInOut.InOut = VALUE(Enum.MoneyInOut.In)

This single letter "s" caused so much trouble :)

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

79582246

Date: 2025-04-19 09:59:37
Score: 1
Natty:
Report link

For thoses who need type hint, this code works with pyright


class staticproperty(Generic[GetterReturnType]):

    def __init__(self, func: Callable[..., GetterReturnType]):
        if isinstance(func, staticmethod):
            fget = func
        else:
            fget = staticmethod(func)
        self.fget = fget

    def __get__(self, obj, klass=None) -> GetterReturnType:
        if klass is None:
            klass = type(obj)
        return self.fget.__get__(obj, klass)()

enter image description here

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

79582234

Date: 2025-04-19 09:44:34
Score: 1.5
Natty:
Report link

To annotate bone level on dental X-rays, follow these steps:

  1. Obtain a Clear Radiograph: Use high-quality periapical or bitewing radiographs where the alveolar bone crest is clearly visible.

  2. Identify Key Landmarks:

    • Locate the cementoenamel junction (CEJ) of the teeth.

    • Identify the alveolar bone crest, which appears as a radiopaque (white) line adjacent to the tooth root.

  3. Draw Reference Lines:

    • Draw a horizontal line connecting the CEJs of adjacent teeth.

    • Draw another line from the CEJ to the crest of the alveolar bone. This vertical distance represents the bone level.

  4. Measure Bone Loss:

    • Measure the distance from the CEJ to the bone crest.

    • In healthy bone, this distance is typically 1–2 mm. Greater distances indicate bone loss and may be annotated accordingly (e.g., mild, moderate, or severe).

  5. Document Findings:

    • Annotate the measurements on the radiograph or in clinical notes.

    • Note areas with horizontal or vertical bone loss and any furcation involvement.

  6. Use Digital Tools:

    • If using digital radiography software, use the annotation and measurement tools to draw lines and label bone levels directly on the image.
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dentalkart

79582229

Date: 2025-04-19 09:41:33
Score: 3.5
Natty:
Report link

I got it solve already thanks

SELECT (curdate() - INTERVAL((WEEKDAY(curdate()))+10) DAY) as e, (curdate() - INTERVAL((WEEKDAY(curdate()))+16) DAY) as s;

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

79582227

Date: 2025-04-19 09:39:33
Score: 2.5
Natty:
Report link

The approach you are using is really correct, but the output <IPython.core.display.HTML object> means the display object was created — the actual HTML should render in the notebook cell until there is no frontend issue: enter image description here

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

79582223

Date: 2025-04-19 09:35:32
Score: 3.5
Natty:
Report link

Apologies, the issue appears to have been due to a linking issue not running multiple gpiod chips.

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

79582220

Date: 2025-04-19 09:29:31
Score: 0.5
Natty:
Report link

I have two ideas:

  1. Build you own Event Output system(rather than using langgraph stream), send a custom event after routing decision in intentRouter

  2. use stream_mode="custom" and writer() to send custom event at the beginning of the node execution

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

79582214

Date: 2025-04-19 09:19:29
Score: 3
Natty:
Report link

I have tried running the app on my real iPhone, and I am still getting this error.
[Error: [auth/internal-error] An internal error has occurred, please try again.].

But if I add a phone number, a test number, to the Firebase console, that works for me, but

I want otp to be sent to any phone number.

Reasons:
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): I am still getting this error
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Faisal Khawaj

79582213

Date: 2025-04-19 09:18:28
Score: 1.5
Natty:
Report link
user_input = input()
test_grades = list(map(int, user_input.split())) # test_grades is an integer list of test scores


sum_extra = -999 # Initialize 0 before your loop
sum_extra = 0

for grade in test_grades:
    if grade > 100:
        sum_extra += (grade - 100)

print('Sum extra:', sum_extra)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Nina Meredith

79582211

Date: 2025-04-19 09:16:28
Score: 1
Natty:
Report link

You may confirm the port 6277

sudo lsof -i :6277

If a port is in use, find the PID of the process and kill it.
`kill -9 623862

ps aux | grep mcp

Then wait a bit and run it again.

sleep 2
mcp dev server.py
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: JINSA Shin

79582200

Date: 2025-04-19 09:04:25
Score: 2.5
Natty:
Report link

I solved my similar case, explained in https://github.com/react-native-async-storage/async-storage/issues/1199

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: libeasy

79582195

Date: 2025-04-19 08:59:24
Score: 0.5
Natty:
Report link

Since the event is passed as the first argument, replace onclick="somefunction(event)" with onclick="somefunction(arguments[0]). The alternative is to add an id attribute to the element and a script to add the eventListener, which has the potential of introducing bugs, and is laborious on a large code base.

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

79582194

Date: 2025-04-19 08:57:23
Score: 4.5
Natty:
Report link

I disabled all the breakpoints and ran again. It worked. Thanks to SpringBoot app takes ages to start in debug mode only

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): It worked
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Emmutua

79582185

Date: 2025-04-19 08:47:20
Score: 2.5
Natty:
Report link

You can fire event upon closing first dialog and run second in same await manner in event handler. Such call chain can be any size and supports any conditions to break or select next dialog.

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

79582184

Date: 2025-04-19 08:45:20
Score: 3
Natty:
Report link

Don't use the IP. Use the "regional settings of the browser. That's what they are for.

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

79582182

Date: 2025-04-19 08:44:20
Score: 2
Natty:
Report link

From your question, it's a bit unclear what you're trying to achieve exactly. However, I recently encountered a similar issue.

In my case, I was using the OpenAI API with the text-embedding-3-large model and kept receiving a 429 status code. After some digging, I realized that OpenAI doesn’t offer any free embedding models — all their embedding APIs require payment.

If you're facing a similar problem, a good alternative is to use the all-MiniLM-L6-v2 model from Hugging Face. It's free and works well for tasks like building a semantic search engine, which is what I was working on.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar problem
  • Low reputation (0.5):
Posted by: Mehedi Hasan Shifat

79582180

Date: 2025-04-19 08:43:19
Score: 3
Natty:
Report link

how about this sql how can I get the date range

"SELECT timestamp, SUM(name) AS tits FROM amount_data WHERE timestamp >= curdate() - interval 14 + weekday(curdate()) - 0 DAY and timestamp < curdate() + interval - weekday(curdate()) - 7 DAY";

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): how
  • Low reputation (1):
Posted by: maximos

79582179

Date: 2025-04-19 08:42:19
Score: 3.5
Natty:
Report link

Just go to C:\laragon\data\mysql-8\ folder and delete "test" folder

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

79582177

Date: 2025-04-19 08:39:18
Score: 3
Natty:
Report link

Use spark email app

https://apps.apple.com/app/id997102246

Very efficient and can also be shared with others

Can share thread or single email

Can disable link anytime

Cost effective one time purchase the app

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

79582172

Date: 2025-04-19 08:35:17
Score: 1
Natty:
Report link

You can prevent the closure by saving b in a local variable with for b in [b]:

gen_factory=((pow(b,a) for b in [b] for a in it.count(1)) for b in it.count(10,10))

Attempt This Online!

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

79582165

Date: 2025-04-19 08:25:15
Score: 3.5
Natty:
Report link

You do have a space in this node_id goto parameter?

return Command(goto="teach _ai"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: RockyDon

79582159

Date: 2025-04-19 08:21:13
Score: 1.5
Natty:
Report link

If you are unable to scrape using Playwright, I will suggest using scarpfly, with asp true. Hopefullt it will fix the captcha issue.

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

79582155

Date: 2025-04-19 08:12:11
Score: 1.5
Natty:
Report link

from pydub import AudioSegment

from pydub.generators import Sine

# Create a placeholder audio (1.5 min of silence) for timing while the real voice track is in development

duration_ms = 90 * 1000 # 1 minute 30 seconds

silent_audio = AudioSegment.silent(duration=duration_ms)

# Export the silent placeholder audio

file_path = "/mnt/data/ertan_diss_placeholder.mp3"

silent_audio.export(file_path, format="mp3")

file_path

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

79582147

Date: 2025-04-19 08:04:09
Score: 0.5
Natty:
Report link

Using the .Net SDK:

Azure.Monitor.Query.LogsQueryClient c = new LogsQueryClient(credential, new LogsQueryClientOptions() { });
var r = await c.QueryResourceAsync(this.Resource.Id, "AzureActivity", QueryTimeRange.All, new LogsQueryOptions(), cancellationToken);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David

79582144

Date: 2025-04-19 08:03:08
Score: 4
Natty: 4.5
Report link

thank you Henil Patel your code works

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MohammadReza Parviz

79582143

Date: 2025-04-19 08:02:08
Score: 8
Natty: 7
Report link

So, a question related to this. How do I dynamically create an instance of an object that is 1 of many that implement an interface? For example, in the example above, say there are 3 types of user, but I only want to create an instance of 1 of them at any given moment. I suppose you could put each of them in their own class or method and call the appropriate class/method, but that adds an extra unneeded level of abstraction. Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (3): Thanks in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: matthew

79582130

Date: 2025-04-19 07:40:03
Score: 1
Natty:
Report link

Also by changing the import statement from this:

import axios from 'axios';

to this: (importing the module package directly in the file where axios is used)

import axios from 'axios/dist/browser/axios.cjs';

resolved the error.

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

79582126

Date: 2025-04-19 07:35:02
Score: 1
Natty:
Report link

I had this same error while installing the package directly through installation window. Mistake which i made was that i downloaded the wrong package. (For Apple silicon (M1,2,..) Macs:
R-4.5.0-arm64.pkg SHA1-hash: a47d9579664f0ca878b83d90416d66af2581ef9c
(ca. 97MB, notarized and signed))

Since i am using macOS i had selected Apple Silicon package to install, but if you are using a macOS you need to download package for Intel Mac if your macOS has Intel processor - For older Intel Macs:
R-4.5.0-x86_64.pkg SHA1-hash: d1121c69451118c6e43d66b643c589008340f3e7
(ca. 100MB, notarized and signed)

R package download page screenshot

Using right package solved my problem and i was able to install R console smoothly on my macOS.

I used <https://mirror.niser.ac.in/cran/>link to download the package for R console.

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

79582125

Date: 2025-04-19 07:33:02
Score: 3.5
Natty:
Report link

thans to Cyrus and derpirscher, by default ? in sed is not a wildcard, use \? to use it as traditional regex wildcard.

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

79582121

Date: 2025-04-19 07:31:01
Score: 1
Natty:
Report link

You might just need to use this package app_links subscribe to the initial and further links to the app, and it'll work perfectly, also you'll need to disable default Flutter deep linking

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

79582119

Date: 2025-04-19 07:29:00
Score: 1.5
Natty:
Report link

People were abuing PagingAndSortingRepository, so they split it for better modularity.
PagingAndSortingRepository is only support to getch requests , but we all used it to save and update as well. If you want to have findById, simply extend your repository with CruDRepository

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